(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(e,t,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"01d0":function(e,t){var n=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return i[this.type]||i.element}},r={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},i={element:1,text:3,cdata:4,comment:8};Object.keys(r).forEach((function(e){var t=r[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})}))},"02cc":function(e,t,n){t=e.exports=n("53a3"),t.version=n("205b").version},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"03d6":function(e,t,n){var r=n("9c0e"),i=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},"051a":function(e,t,n){var r=s(n("64b2")),i=l(r);t.XML=d(r,i);var o=s(n("f0f2")),a=l(o);function s(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function l(e){var t=[],n=[];return Object.keys(e).forEach((function(e){1===e.length?t.push("\\"+e):n.push(e)})),n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.HTML=d(o,a);var u=/[^\0-\x7F]/g,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function h(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function p(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=1024*(t-55296)+n-56320+65536;return"&#x"+r.toString(16).toUpperCase()+";"}function d(e,t){function n(t){return e[t]}return function(e){return e.replace(t,n).replace(c,p).replace(u,h)}}var f=l(r);function m(e){return e.replace(f,h).replace(c,p).replace(u,h)}t.escape=m},"051b":function(e,t,n){var r=n("1a14"),i=n("10db");e.exports=n("0bad")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"057f":function(e,t,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},"05f5":function(e,t,n){var r=n("7a41"),i=n("ef08").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"06cf":function(e,t,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),u=n("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},"072d":function(e,t,n){"use strict";var r=n("0bad"),i=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),l=n("9fbb"),u=Object.assign;e.exports=!u||n("4b8b")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=s(e),u=arguments.length,c=1,h=o.f,p=a.f;while(u>c){var d,f=l(arguments[c++]),m=h?i(f).concat(h(f)):i(f),g=m.length,v=0;while(g>v)d=m[v++],r&&!p.call(f,d)||(n[d]=f[d])}return n}:u},"0983":function(e,t,n){var r=n("c901");e.exports=function(e){return Object(r(e))}},"0a06":function(e,t,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b");function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=l},"0ae2":function(e,t,n){var r=n("9876"),i=n("fed5"),o=n("1917");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),l=o.f,u=0;while(s.length>u)l.call(e,a=s[u++])&&t.push(a)}return t}},"0b99":function(e,t,n){"use strict";var r=n("19fa")(!0);n("393a")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"0bad":function(e,t,n){e.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0bfb":function(e,t,n){var r,i,o,a,s=!1,l=!1,u=n("115b")("parse"),c=n("c415");function h(e,t){var n,s;t||(t={}),r=!!t.comments,o=!!t.position,i=0,a=Array.isArray(e)?e.slice():c(e);var h,p=[];l&&(n=Date.now());while(h=d())s=x(h),s&&p.push(s);return l&&u("ran in",Date.now()-n+"ms"),{type:"stylesheet",stylesheet:{rules:p}}}function p(e,t){var n;t||(t={});for(var r=["type","name","value"],i={},a=0;a-1}function Xe(e,t){var n=this.__data__,r=dt(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function Je(e){var t=-1,n=e?e.length:0;this.clear();while(++tu))return!1;var h=o.get(e);if(h&&o.get(t))return h==t;var p=-1,d=!0,f=i&a?new rt:void 0;o.set(e,t),o.set(t,e);while(++p-1&&e%1==0&&e-1&&e%1==0&&e<=u}function cn(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function hn(e){return!!e&&"object"==typeof e}function pn(e){return"symbol"==typeof e||hn(e)&&ye.call(e)==_}var dn=ee?oe(ee):kt;function fn(e){return null==e?"":Ot(e)}function mn(e,t,n){var r=null==e?void 0:yt(e,t);return void 0===r?n:r}function gn(e,t){return null!=e&&zt(e,t,Dt)}function vn(e){return an(e)?pt(e):St(e)}function yn(e){return e}function bn(e){return Ht(e)?re(Jt(e)):Tt(e)}n.exports=Qt}).call(this,n("c8ba"),n("62e4")(e))},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e15":function(e,t,n){var r=n("597f");e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},"0f7c":function(e,t,n){},"0f94":function(e,t,n){var r=e.exports;[n("68b4"),n("26f9"),n("7a39"),n("733c"),n("9f20"),n("f67e")].forEach((function(e){Object.keys(e).forEach((function(t){r[t]=e[t].bind(r)}))}))},"0fae":function(e,t,n){},1098:function(e,t,n){"use strict";t.__esModule=!0;var r=n("17ed"),i=l(r),o=n("f893"),a=l(o),s="function"===typeof a.default&&"symbol"===typeof i.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function l(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof a.default&&"symbol"===s(i.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},"10db":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"111b":function(e,t,n){(function(e){e(n("56b3"),n("7b00"))})((function(e){"use strict";var t={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};e.registerHelper("hint","css",(function(n){var r=n.getCursor(),i=n.getTokenAt(r),o=e.innerMode(n.getMode(),i.state);if("css"==o.mode.name){if("keyword"==i.type&&0=="!important".indexOf(i.string))return{list:["!important"],from:e.Pos(r.line,i.start),to:e.Pos(r.line,i.end)};var a=i.start,s=r.ch,l=i.string.slice(0,s-a);/[^\w$_-]/.test(l)&&(l="",a=s=r.ch);var u=e.resolveMode("text/css"),c=[],h=o.state.state;return"pseudo"==h||"variable-3"==i.type?p(t):"block"==h||"maybeprop"==h?p(u.propertyKeywords):"prop"==h||"parens"==h||"at"==h||"params"==h?(p(u.valueKeywords),p(u.colorKeywords)):"media"!=h&&"media_parens"!=h||(p(u.mediaTypes),p(u.mediaFeatures)),c.length?{list:c,from:e.Pos(r.line,a),to:e.Pos(r.line,s)}:void 0}function p(e){for(var t in e)l&&0!=t.lastIndexOf(l,0)||c.push(t)}}))}))},"115b":function(e,t,n){(function(t){function n(e){return r.bind(null,e)}function r(e){var n=[].slice.call(arguments,1);n.unshift("["+e+"]"),t.stderr.write(n.join(" ")+"\n")}e.exports=n}).call(this,n("4362"))},1276:function(e,t,n){"use strict";var r=n("d784"),i=n("44e7"),o=n("825a"),a=n("1d80"),s=n("4840"),l=n("8aa5"),u=n("50c4"),c=n("14c3"),h=n("9263"),p=n("d039"),d=[].push,f=Math.min,m=4294967295,g=!p((function(){return!RegExp(m,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),o=void 0===n?m:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);var s,l,u,c=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,g=new RegExp(e.source,p+"g");while(s=h.call(g,r)){if(l=g.lastIndex,l>f&&(c.push(r.slice(f,s.index)),s.length>1&&s.index=o))break;g.lastIndex===s.index&&g.lastIndex++}return f===r.length?!u&&g.test("")||c.push(""):c.push(r.slice(f)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var a=n(r,e,this,i,r!==t);if(a.done)return a.value;var h=o(e),p=String(this),d=s(h,RegExp),v=h.unicode,y=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(g?"y":"g"),b=new d(g?h:"^(?:"+h.source+")",y),D=void 0===i?m:i>>>0;if(0===D)return[];if(0===p.length)return null===c(b,p)?[p]:[];var x=0,w=0,C=[];while(w1?n[i-1]:void 0,a=i>2?n[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&w(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++r-1&&e%1==0&&e-1&&e%1==0&&e<=n}function N(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function L(e){return!!e&&"object"==typeof e}var B=D((function(e,t,n,r){b(t,M(t),e,r)})),P=y((function(e){return e.push(void 0,m),s(B,void 0,e)}));function M(e){return A(e)?f(e,!0):v(e)}e.exports=P},"14c3":function(e,t,n){var r=n("c6b6"),i=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"14e9":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=127)}({127:function(e,t,n){"use strict";n.r(t);var r=n(16),i=n(39),o=n.n(i),a=n(3),s=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function u(e){var t=e.move,n=e.size,r=e.bar,i={},o="translate"+r.axis+"("+t+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var c={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:u({size:t,move:n,bar:r})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,r=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(s["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(s["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),r=this.$refs.thumb[this.bar.offset]-t,i=100*(n-r)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(s["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},h={name:"ElScrollbar",components:{Bar:c},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=o()(),n=this.wrapStyle;if(t){var r="-"+t+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(a["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=r):"string"===typeof this.wrapStyle?n+=i:n=i}var s=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),l=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),u=void 0;return u=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,e(c,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(c,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},u)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(h.name,h)}};t["default"]=h},16:function(e,t){e.exports=n("4010")},2:function(e,t){e.exports=n("5924")},3:function(e,t){e.exports=n("8122")},39:function(e,t){e.exports=n("e62d")}})},"159b":function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in i){var l=r[s],u=l&&l.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(c){u.forEach=o}}},1609:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=n("ae40"),a=i("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"17ed":function(e,t,n){e.exports={default:n("511f"),__esModule:!0}},1836:function(e,t,n){var r=n("6ca1"),i=n("6438").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},1880:function(e,t,n){var r=n("4d1e"),i=n("e282"),o={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};function a(e,t){if(e){var n,r="";for(var o in e)n=e[o],r&&(r+=" "),r+=o,(null!==n&&""!==n||t.xmlMode)&&(r+='="'+(t.decodeEntities?i.encodeXML(n):n)+'"');return r}}var s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},l=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var n="",i=0;i",e.children&&(n+=l(e.children,t)),s[e.name]&&!t.xmlMode||(n+="")):n+="/>",n}function c(e){return"<"+e.data+">"}function h(e,t){var n=e.data||"";return!t.decodeEntities||e.parent&&e.parent.name in o||(n=i.encodeXML(n)),n}function p(e){return""}function d(e){return"\x3c!--"+e.data+"--\x3e"}},"18a5":function(e,t,n){"use strict";var r=n("23e7"),i=n("857a"),o=n("af03");r({target:"String",proto:!0,forced:o("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},1917:function(e,t){t.f={}.propertyIsEnumerable},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"19fa":function(e,t,n){var r=n("fc5e"),i=n("c901");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"1a14":function(e,t,n){var r=n("77e9"),i=n("faf5"),o=n("3397"),a=Object.defineProperty;t.f=n("0bad")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(l){}return n}},"1cdc":function(e,t,n){var r=n("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1fb5":function(e,t,n){"use strict";t.byteLength=c,t.toByteArray=p,t.fromByteArray=m;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function h(e,t,n){return 3*(t+n)/4-n}function p(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(h(e,a,s)),c=0,p=s>0?a-4:a;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function f(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2015:function(e,t,n){e.exports=a;var r=n("99e4"),i=r.trueFunc,o=r.falseFunc;function a(e){var t=e[0],n=e[1]-1;if(n<0&&t<=0)return o;if(-1===t)return function(e){return e<=n};if(0===t)return function(e){return e===n};if(1===t)return n<0?i:function(e){return e>=n};var r=n%t;return r<0&&(r+=t),t>1?function(e){return e>=n&&e%t===r}:(t*=-1,function(e){return e<=n&&e%t===r})}},"205b":function(e){e.exports=JSON.parse('{"_from":"cheerio@^0.22.0","_id":"cheerio@0.22.0","_inBundle":false,"_integrity":"sha1-qbqoYKP5tZWmuBsahocxIe06Jp4=","_location":"/cheerio","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"cheerio@^0.22.0","name":"cheerio","escapedName":"cheerio","rawSpec":"^0.22.0","saveSpec":null,"fetchSpec":"^0.22.0"},"_requiredBy":["/juice"],"_resolved":"https://registry.npmjs.org/cheerio/-/cheerio-0.22.0.tgz","_shasum":"a9baa860a3f9b595a6b81b1a86873121ed3a269e","_spec":"cheerio@^0.22.0","_where":"/home/runner/work/md/md/node_modules/juice","author":{"name":"Matt Mueller","email":"mattmuelle@gmail.com","url":"mat.io"},"bugs":{"url":"https://github.com/cheeriojs/cheerio/issues"},"bundleDependencies":false,"dependencies":{"css-select":"~1.2.0","dom-serializer":"~0.1.0","entities":"~1.1.1","htmlparser2":"^3.9.1","lodash.assignin":"^4.0.9","lodash.bind":"^4.1.4","lodash.defaults":"^4.0.1","lodash.filter":"^4.4.0","lodash.flatten":"^4.2.0","lodash.foreach":"^4.3.0","lodash.map":"^4.4.0","lodash.merge":"^4.4.0","lodash.pick":"^4.2.1","lodash.reduce":"^4.4.0","lodash.reject":"^4.4.0","lodash.some":"^4.4.0"},"deprecated":false,"description":"Tiny, fast, and elegant implementation of core jQuery designed specifically for the server","devDependencies":{"benchmark":"^2.1.0","coveralls":"^2.11.9","expect.js":"~0.3.1","istanbul":"^0.4.3","jquery":"^3.0.0","jsdom":"^9.2.1","jshint":"^2.9.2","mocha":"^2.5.3","xyz":"~0.5.0"},"engines":{"node":">= 0.6"},"files":["index.js","lib"],"homepage":"https://github.com/cheeriojs/cheerio#readme","keywords":["htmlparser","jquery","selector","scraper","parser","html"],"license":"MIT","main":"./index.js","name":"cheerio","repository":{"type":"git","url":"git://github.com/cheeriojs/cheerio.git"},"scripts":{"test":"make test"},"version":"0.22.0"}')},2266:function(e,t,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),l=n("9bdd"),u=function(e,t){this.stopped=e,this.result=t},c=e.exports=function(e,t,n,c,h){var p,d,f,m,g,v,y,b=a(t,n,c?2:1);if(h)p=e;else{if(d=s(e),"function"!=typeof d)throw TypeError("Target is not iterable");if(i(d)){for(f=0,m=o(e.length);m>f;f++)if(g=c?b(r(y=e[f])[0],y[1]):b(e[f]),g&&g instanceof u)return g;return new u(!1)}p=d.call(e)}v=p.next;while(!(y=v.call(p)).done)if(g=l(p,b,y.value,c),"object"==typeof g&&g&&g instanceof u)return g;return new u(!1)};c.stop=function(e){return new u(!0,e)}},"23cb":function(e,t,n){var r=n("a691"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e7":function(e,t,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),u=n("94ca");e.exports=function(e,t){var n,c,h,p,d,f,m=e.target,g=e.global,v=e.stat;if(c=g?r:v?r[m]||s(m,{}):(r[m]||{}).prototype,c)for(h in t){if(d=t[h],e.noTargetGet?(f=i(c,h),p=f&&f.value):p=c[h],n=u(g?h:m+(v?".":"#")+h,e.forced),!n&&void 0!==p){if(typeof d===typeof p)continue;l(d,p)}(e.sham||p&&p.sham)&&o(d,"sham",!0),a(c,h,d,e)}}},"241c":function(e,t,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var l={adapter:s(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(o)})),e.exports=l}).call(this,n("4362"))},2562:function(e,t,n){"use strict";var r=/([-.*+?^${}()|[\]\/\\])/g,i=/\\/g,o=function(e){return(e+"").replace(r,"\\$1")},a=function(e){return(e+"").replace(i,"")},s=RegExp("^(?:\\s*(,)\\s*|\\s*(+)\\s*|(\\s+)|(+|\\*)|\\#(+)|\\.(+)|\\[\\s*(+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(//,"["+o(">+~`!@$%^&={}\\;/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(//g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),l=function(e){this.combinator=e||" ",this.tag="*"};l.prototype.toString=function(){if(!this.raw){var e,t,n="";if(n+=this.tag||"*",this.id&&(n+="#"+this.id),this.classes&&(n+="."+this.classList.join(".")),this.attributes)for(e=0;t=this.attributes[e++];)n+="["+t.name+(t.operator?t.operator+'"'+t.value+'"':"")+"]";if(this.pseudos)for(e=0;t=this.pseudos[e++];)n+=":"+t.name,t.value&&(n+="("+t.value+")");this.raw=n}return this.raw};var u=function(){this.length=0};u.prototype.toString=function(){if(!this.raw){for(var e,t="",n=0;e=this[n++];)1!==n&&(t+=" ")," "!==e.combinator&&(t+=e.combinator+" "),t+=e;this.raw=t}return this.raw};var c=function(e,t,n,r,i,s,c,h,p,d,f,m,g,v,y,b){var D,x;if((t||!this.length)&&(D=this[this.length++]=new u,t))return"";if(D||(D=this[this.length-1]),(n||r||!D.length)&&(x=D[D.length++]=new l(n)),x||(x=D[D.length-1]),i)x.tag=a(i);else if(s)x.id=a(s);else if(c){var w=a(c),C=x.classes||(x.classes={});if(!C[w]){C[w]=o(c);var _=x.classList||(x.classList=[]);_.push(w),_.sort()}}else g?(b=b||y,(x.pseudos||(x.pseudos=[])).push({type:1==m.length?"class":"element",name:a(g),escapedName:o(g),value:b?a(b):null,escapedValue:b?o(b):null})):h&&(f=f?o(f):null,(x.attributes||(x.attributes=[])).push({operator:p,name:a(h),escapedName:o(h),value:f?a(f):null,escapedValue:f?o(f):null}));return""},h=function(e){this.length=0;var t,n=this,r=e;while(e){if(t=e.replace(s,(function(){return c.apply(n,arguments)})),t===e)throw new Error(r+" is an invalid expression");e=t}};h.prototype.toString=function(){if(!this.raw){for(var e,t=[],n=0;e=this[n++];)t.push(e);this.raw=t.join(", ")}return this.raw};var p={},d=function(e){return null==e?null:(e=(""+e).replace(/^\s+|\s+$/g,""),p[e]||(p[e]=new h(e)))};e.exports=d},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"26dd":function(e,t,n){"use strict";var r=n("6f4f"),i=n("10db"),o=n("92f0"),a={};n("051b")(a,n("cc15")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"26f9":function(e,t){var n=t.getChildren=function(e){return e.children},r=t.getParent=function(e){return e.parent};t.getSiblings=function(e){var t=r(e);return t?n(t):[e]},t.getAttributeValue=function(e,t){return e.attribs&&e.attribs[t]},t.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)},t.getName=function(e){return e.name}},"27b0":function(e,t){e.exports=class{constructor(){this.seen={}}slug(e){let t=e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){const e=t;do{this.seen[e]++,t=e+"-"+this.seen[e]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t}}},2877:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},"299c":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=131)}({131:function(e,t,n){"use strict";n.r(t);var r=n(5),i=n.n(r),o=n(17),a=n.n(o),s=n(2),l=n(3),u=n(7),c=n.n(u),h={name:"ElTooltip",mixins:[i.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(l["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new c.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=a()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s["on"])(this.referenceElm,"mouseenter",this.show),Object(s["on"])(this.referenceElm,"mouseleave",this.hide),Object(s["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(s["on"])(this.referenceElm,"blur",this.handleBlur),Object(s["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(s["addClass"])(this.referenceElm,"focusing"):Object(s["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;nl&&(e.scrollTop=a-e.clientHeight)}else e.scrollTop=0}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){ /*! * Vue.js v2.6.11 * (c) 2014-2019 Evan You * Released under the MIT License. */ var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function l(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function h(e){return"[object RegExp]"===u.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function D(e,t){return b.call(e,t)}function x(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var w=/-(\w)/g,C=x((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),_=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,E=x((function(e){return e.replace(k,"-$1").toLowerCase()}));function S(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function A(e,t){return e.bind(t)}var F=Function.prototype.bind?A:S;function T(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function O(e,t){for(var n in t)e[n]=t[n];return e}function N(e){for(var t={},n=0;n0,ne=Q&&Q.indexOf("edge/")>0,re=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===Z),ie=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),oe={}.watch,ae=!1;if(X)try{var se={};Object.defineProperty(se,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,se)}catch(Ca){}var le=function(){return void 0===Y&&(Y=!X&&!J&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),Y},ue=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"===typeof e&&/native code/.test(e.toString())}var he,pe="undefined"!==typeof Symbol&&ce(Symbol)&&"undefined"!==typeof Reflect&&ce(Reflect.ownKeys);he="undefined"!==typeof Set&&ce(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=L,fe=0,me=function(){this.id=fe++,this.subs=[]};me.prototype.addSub=function(e){this.subs.push(e)},me.prototype.removeSub=function(e){y(this.subs,e)},me.prototype.depend=function(){me.target&&me.target.addDep(this)},me.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(o&&!D(i,"default"))a=!1;else if(""===a||a===E(e)){var l=et(String,i.type);(l<0||s0&&(a=St(a,(t||"")+"_"+n),Et(a[0])&&Et(u)&&(c[l]=we(u.text+a[0].text),a.shift()),c.push.apply(c,a)):s(a)?Et(u)?c[l]=we(u.text+a):""!==a&&c.push(we(a)):Et(a)&&Et(u)?c[l]=we(u.text+a.text):(o(e._isVList)&&i(a.tag)&&r(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+n+"__"),c.push(a)));return c}function At(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Ft(e){var t=Tt(e.$options.inject,e);t&&(Fe(!1),Object.keys(t).forEach((function(n){Be(e,n,t[n])})),Fe(!0))}function Tt(e,t){if(e){for(var n=Object.create(null),r=pe?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},e)e[l]&&"$"!==l[0]&&(i[l]=Bt(t,l,e[l]))}else i={};for(var u in t)u in i||(i[u]=Pt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),W(i,"$stable",a),W(i,"$key",s),W(i,"$hasNormal",o),i}function Bt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:kt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Pt(e,t){return function(){return e[t]}}function Mt(e,t){var n,r,o,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,o=e.length;r1?T(n):n;for(var r=T(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(Yn=function(){return Kn.now()})}function Xn(){var e,t;for(Gn=Yn(),Hn=!0,Rn.sort((function(e,t){return e.id-t.id})),Wn=0;WnWn&&Rn[n].id>e.id)n--;Rn.splice(n+1,0,e)}else Rn.push(e);Vn||(Vn=!0,ft(Xn))}}var tr=0,nr=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++tr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new he,this.newDepIds=new he,this.expression="","function"===typeof t?this.getter=t:(this.getter=G(t),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var e;ve(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Ca){if(!this.user)throw Ca;tt(Ca,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&>(e),ye(),this.cleanupDeps()}return e},nr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},nr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():er(this)},nr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Ca){tt(Ca,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:L,set:L};function ir(e,t,n){rr.get=function(){return this[t][n]},rr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,rr)}function or(e){e._watchers=[];var t=e.$options;t.props&&ar(e,t.props),t.methods&&fr(e,t.methods),t.data?sr(e):Le(e._data={},!0),t.computed&&cr(e,t.computed),t.watch&&t.watch!==oe&&mr(e,t.watch)}function ar(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Fe(!1);var a=function(o){i.push(o);var a=Xe(o,t,n,e);Be(r,o,a),o in e||ir(e,"_props",o)};for(var s in t)a(s);Fe(!0)}function sr(e){var t=e.$options.data;t=e._data="function"===typeof t?lr(t,e):t||{},c(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var o=n[i];0,r&&D(r,o)||H(o)||ir(e,"_data",o)}Le(t,!0)}function lr(e,t){ve();try{return e.call(t,t)}catch(Ca){return tt(Ca,t,"data()"),{}}finally{ye()}}var ur={lazy:!0};function cr(e,t){var n=e._computedWatchers=Object.create(null),r=le();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(e,a||L,L,ur)),i in e||hr(e,i,o)}}function hr(e,t,n){var r=!le();"function"===typeof n?(rr.get=r?pr(t):dr(n),rr.set=L):(rr.get=n.get?r&&!1!==n.cache?pr(t):dr(n.get):L,rr.set=n.set||L),Object.defineProperty(e,t,rr)}function pr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),me.target&&t.depend(),t.value}}function dr(e){return function(){return e.call(this,this)}}function fr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?L:F(t[n],e)}function mr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1)return this;var n=T(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function kr(e){e.mixin=function(e){return this.options=Ye(this.options,e),this}}function Er(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Ye(n.options,e),a["super"]=n,a.options.props&&Sr(a),a.options.computed&&Ar(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,R.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=O({},a.options),i[r]=a,a}}function Sr(e){var t=e.options.props;for(var n in t)ir(e.prototype,"_props",n)}function Ar(e){var t=e.options.computed;for(var n in t)hr(e.prototype,n,t[n])}function Fr(e){R.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Tr(e){return e&&(e.Ctor.options.name||e.tag)}function Or(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!h(e)&&e.test(t)}function Nr(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=Tr(a.componentOptions);s&&!t(s)&&Lr(n,o,r,i)}}}function Lr(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}br(Cr),vr(Cr),Fn(Cr),Ln(Cr),yn(Cr);var Br=[String,RegExp,Array],Pr={name:"keep-alive",abstract:!0,props:{include:Br,exclude:Br,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Lr(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Nr(e,(function(e){return Or(t,e)}))})),this.$watch("exclude",(function(t){Nr(e,(function(e){return!Or(t,e)}))}))},render:function(){var e=this.$slots.default,t=Cn(e),n=t&&t.componentOptions;if(n){var r=Tr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Or(o,r))||a&&r&&Or(a,r))return t;var s=this,l=s.cache,u=s.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;l[c]?(t.componentInstance=l[c].componentInstance,y(u,c),u.push(c)):(l[c]=t,u.push(c),this.max&&u.length>parseInt(this.max)&&Lr(l,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Mr={KeepAlive:Pr};function jr(e){var t={get:function(){return z}};Object.defineProperty(e,"config",t),e.util={warn:de,extend:O,mergeOptions:Ye,defineReactive:Be},e.set=Pe,e.delete=Me,e.nextTick=ft,e.observable=function(e){return Le(e),e},e.options=Object.create(null),R.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,O(e.options.components,Mr),_r(e),kr(e),Er(e),Fr(e)}jr(Cr),Object.defineProperty(Cr.prototype,"$isServer",{get:le}),Object.defineProperty(Cr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cr,"FunctionalRenderContext",{value:Jt}),Cr.version="2.6.11";var Ir=g("style,class"),$r=g("input,textarea,option,select,progress"),Rr=function(e,t,n){return"value"===n&&$r(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},qr=g("contenteditable,draggable,spellcheck"),zr=g("events,caret,typing,plaintext-only"),Vr=function(e,t){return Yr(t)||"false"===t?"false":"contenteditable"===e&&zr(t)?t:"true"},Hr=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Wr="http://www.w3.org/1999/xlink",Ur=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Gr=function(e){return Ur(e)?e.slice(6,e.length):""},Yr=function(e){return null==e||!1===e};function Kr(e){var t=e.data,n=e,r=e;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Xr(r.data,t));while(i(n=n.parent))n&&n.data&&(t=Xr(t,n.data));return Jr(t.staticClass,t.class)}function Xr(e,t){return{staticClass:Zr(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Jr(e,t){return i(e)||i(t)?Zr(e,Qr(t)):""}function Zr(e,t){return e?t?e+" "+t:e:t||""}function Qr(e){return Array.isArray(e)?ei(e):l(e)?ti(e):"string"===typeof e?e:""}function ei(e){for(var t,n="",r=0,o=e.length;r-1?si[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:si[e]=/HTMLUnknownElement/.test(t.toString())}var ui=g("text,number,password,search,email,tel,url");function ci(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function hi(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function pi(e,t){return document.createElementNS(ni[e],t)}function di(e){return document.createTextNode(e)}function fi(e){return document.createComment(e)}function mi(e,t,n){e.insertBefore(t,n)}function gi(e,t){e.removeChild(t)}function vi(e,t){e.appendChild(t)}function yi(e){return e.parentNode}function bi(e){return e.nextSibling}function Di(e){return e.tagName}function xi(e,t){e.textContent=t}function wi(e,t){e.setAttribute(t,"")}var Ci=Object.freeze({createElement:hi,createElementNS:pi,createTextNode:di,createComment:fi,insertBefore:mi,removeChild:gi,appendChild:vi,parentNode:yi,nextSibling:bi,tagName:Di,setTextContent:xi,setStyleScope:wi}),_i={create:function(e,t){ki(t)},update:function(e,t){e.data.ref!==t.data.ref&&(ki(e,!0),ki(t))},destroy:function(e){ki(e,!0)}};function ki(e,t){var n=e.data.ref;if(i(n)){var r=e.context,o=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?y(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Ei=new be("",{},[]),Si=["create","activate","update","remove","destroy"];function Ai(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&Fi(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&r(t.asyncFactory.error))}function Fi(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,o=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===o||ui(r)&&ui(o)}function Ti(e,t,n){var r,o,a={};for(r=t;r<=n;++r)o=e[r].key,i(o)&&(a[o]=r);return a}function Oi(e){var t,n,a={},l=e.modules,u=e.nodeOps;for(t=0;tm?(h=r(n[y+1])?null:n[y+1].elm,C(e,h,n,f,y,o)):f>y&&k(t,p,m)}function A(e,t,n,r){for(var o=n;o-1?zi(e,t,n):Hr(t)?Yr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):qr(t)?e.setAttribute(t,Vr(t,n)):Ur(t)?Yr(n)?e.removeAttributeNS(Wr,Gr(t)):e.setAttributeNS(Wr,t,n):zi(e,t,n)}function zi(e,t,n){if(Yr(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Vi={create:Ri,update:Ri};function Hi(e,t){var n=t.elm,o=t.data,a=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Kr(t),l=n._transitionClasses;i(l)&&(s=Zr(s,Qr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Wi,Ui={create:Hi,update:Hi},Gi="__r",Yi="__c";function Ki(e){if(i(e[Gi])){var t=ee?"change":"input";e[t]=[].concat(e[Gi],e[t]||[]),delete e[Gi]}i(e[Yi])&&(e.change=[].concat(e[Yi],e.change||[]),delete e[Yi])}function Xi(e,t,n){var r=Wi;return function i(){var o=t.apply(null,arguments);null!==o&&Qi(e,i,n,r)}}var Ji=at&&!(ie&&Number(ie[1])<=53);function Zi(e,t,n,r){if(Ji){var i=Gn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Wi.addEventListener(e,t,ae?{capture:n,passive:r}:n)}function Qi(e,t,n,r){(r||Wi).removeEventListener(e,t._wrapper||t,n)}function eo(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Wi=t.elm,Ki(n),Dt(n,i,Zi,Qi,Xi,t.context),Wi=void 0}}var to,no={create:eo,update:eo};function ro(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,o,a=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in i(l.__ob__)&&(l=t.data.domProps=O({},l)),s)n in l||(a[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var u=r(o)?"":String(o);io(a,u)&&(a.value=u)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){to=to||document.createElement("div"),to.innerHTML=""+o+"";var c=to.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(c.firstChild)a.appendChild(c.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Ca){}}}}function io(e,t){return!e.composing&&("OPTION"===e.tagName||oo(e,t)||ao(e,t))}function oo(e,t){var n=!0;try{n=document.activeElement!==e}catch(Ca){}return n&&e.value!==t}function ao(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return m(n)!==m(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var so={create:ro,update:ro},lo=x((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function uo(e){var t=co(e.style);return e.staticStyle?O(e.staticStyle,t):t}function co(e){return Array.isArray(e)?N(e):"string"===typeof e?lo(e):e}function ho(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=uo(i.data))&&O(r,n)}(n=uo(e.data))&&O(r,n);var o=e;while(o=o.parent)o.data&&(n=uo(o.data))&&O(r,n);return r}var po,fo=/^--/,mo=/\s*!important$/,go=function(e,t,n){if(fo.test(t))e.style.setProperty(t,n);else if(mo.test(n))e.style.setProperty(E(t),n.replace(mo,""),"important");else{var r=yo(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(xo).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Co(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(xo).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function _o(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&O(t,ko(e.name||"v")),O(t,e),t}return"string"===typeof e?ko(e):void 0}}var ko=x((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Eo=X&&!te,So="transition",Ao="animation",Fo="transition",To="transitionend",Oo="animation",No="animationend";Eo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Fo="WebkitTransition",To="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oo="WebkitAnimation",No="webkitAnimationEnd"));var Lo=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Bo(e){Lo((function(){Lo(e)}))}function Po(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),wo(e,t))}function Mo(e,t){e._transitionClasses&&y(e._transitionClasses,t),Co(e,t)}function jo(e,t,n){var r=$o(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===So?To:No,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=a&&u()};setTimeout((function(){l0&&(n=So,c=a,h=o.length):t===Ao?u>0&&(n=Ao,c=u,h=l.length):(c=Math.max(a,u),n=c>0?a>u?So:Ao:null,h=n?n===So?o.length:l.length:0);var p=n===So&&Io.test(r[Fo+"Property"]);return{type:n,timeout:c,propCount:h,hasTransform:p}}function Ro(e,t){while(e.length1}function Uo(e,t){!0!==t.data.show&&zo(t)}var Go=X?{create:Uo,activate:Uo,remove:function(e,t){!0!==e.data.show?Vo(e,t):t()}}:{},Yo=[Vi,Ui,no,so,Do,Go],Ko=Yo.concat($i),Xo=Oi({nodeOps:Ci,modules:Ko});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&ia(e,"input")}));var Jo={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?xt(n,"postpatch",(function(){Jo.componentUpdated(e,t,n)})):Zo(e,t,n.context),e._vOptions=[].map.call(e.options,ta)):("textarea"===n.tag||ui(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",na),e.addEventListener("compositionend",ra),e.addEventListener("change",ra),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Zo(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,ta);if(i.some((function(e,t){return!M(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return ea(e,i)})):t.value!==t.oldValue&&ea(t.value,i);o&&ia(e,"change")}}}};function Zo(e,t,n){Qo(e,t,n),(ee||ne)&&setTimeout((function(){Qo(e,t,n)}),0)}function Qo(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=e.options.length;s-1,a.selected!==o&&(a.selected=o);else if(M(ta(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function ea(e,t){return t.every((function(t){return!M(t,e)}))}function ta(e){return"_value"in e?e._value:e.value}function na(e){e.target.composing=!0}function ra(e){e.target.composing&&(e.target.composing=!1,ia(e.target,"input"))}function ia(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function oa(e){return!e.componentInstance||e.data&&e.data.transition?e:oa(e.componentInstance._vnode)}var aa={bind:function(e,t,n){var r=t.value;n=oa(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,zo(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?zo(n,(function(){e.style.display=e.__vOriginalDisplay})):Vo(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},sa={model:Jo,show:aa},la={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ua(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?ua(Cn(t.children)):e}function ca(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[C(o)]=i[o];return t}function ha(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function pa(e){while(e=e.parent)if(e.data.transition)return!0}function da(e,t){return t.key===e.key&&t.tag===e.tag}var fa=function(e){return e.tag||wn(e)},ma=function(e){return"show"===e.name},ga={name:"transition",props:la,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(fa),n.length)){0;var r=this.mode;0;var i=n[0];if(pa(this.$vnode))return i;var o=ua(i);if(!o)return i;if(this._leaving)return ha(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=ca(this),u=this._vnode,c=ua(u);if(o.data.directives&&o.data.directives.some(ma)&&(o.data.show=!0),c&&c.data&&!da(o,c)&&!wn(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=O({},l);if("out-in"===r)return this._leaving=!0,xt(h,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ha(e,i);if("in-out"===r){if(wn(o))return u;var p,d=function(){p()};xt(l,"afterEnter",d),xt(l,"enterCancelled",d),xt(h,"delayLeave",(function(e){p=e}))}}return i}}},va=O({tag:String,moveClass:String},la);delete va.mode;var ya={props:va,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=On(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ca(this),s=0;s4)return e;for(n=[],r=0;r1&&"0"==i.charAt(0)&&(o=L.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?P:8==o?B:M).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r=k(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r6)return;r=0;while(p()){if(i=null,r>0){if(!("."==p()&&r<4))return;h++}if(!N.test(p()))return;while(N.test(p())){if(o=parseInt(p(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;h++}l[u]=256*l[u]+i,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==p()){if(h++,!p())return}else if(p())return;l[u++]=t}else{if(null!==c)return;h++,u++,c=u}}if(null!==c){a=u-c,u=7;while(0!=u&&a>0)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s}else if(8!=u)return;return l},H=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t},W=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=_(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=H(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},U={},G=p({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),Y=p({},G,{"#":1,"?":1,"{":1,"}":1}),K=p({},Y,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=f(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Z=function(e){return h(J,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&T.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},ie=function(e){return"."===e||"%2e"===e.toLowerCase()},oe=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ae={},se={},le={},ue={},ce={},he={},pe={},de={},fe={},me={},ge={},ve={},ye={},be={},De={},xe={},we={},Ce={},_e={},ke={},Ee={},Se=function(e,t,n,i){var o,a,s,l,u=n||ae,c=0,p="",f=!1,m=!1,g=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace($,"")),t=t.replace(R,""),o=d(t);while(c<=o.length){switch(a=o[c],u){case ae:if(!a||!T.test(a)){if(n)return S;u=le;continue}p+=a.toLowerCase(),u=se;break;case se:if(a&&(O.test(a)||"+"==a||"-"==a||"."==a))p+=a.toLowerCase();else{if(":"!=a){if(n)return S;p="",u=le,c=0;continue}if(n&&(Z(e)!=h(J,p)||"file"==p&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=p,n)return void(Z(e)&&J[e.scheme]==e.port&&(e.port=null));p="","file"==e.scheme?u=be:Z(e)&&i&&i.scheme==e.scheme?u=ue:Z(e)?u=de:"/"==o[c+1]?(u=ce,c++):(e.cannotBeABaseURL=!0,e.path.push(""),u=_e)}break;case le:if(!i||i.cannotBeABaseURL&&"#"!=a)return S;if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,u=Ee;break}u="file"==i.scheme?be:he;continue;case ue:if("/"!=a||"/"!=o[c+1]){u=he;continue}u=fe,c++;break;case ce:if("/"==a){u=me;break}u=Ce;continue;case he:if(e.scheme=i.scheme,a==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&Z(e))u=pe;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",u=ke;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),u=Ce;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=Ee}break;case pe:if(!Z(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,u=Ce;continue}u=me}else u=fe;break;case de:if(u=fe,"/"!=a||"/"!=p.charAt(c+1))continue;c++;break;case fe:if("/"!=a&&"\\"!=a){u=me;continue}break;case me:if("@"==a){f&&(p="%40"+p),f=!0,s=d(p);for(var v=0;v65535)return F;e.port=Z(e)&&D===J[e.scheme]?null:D,p=""}if(n)return;u=we;continue}return F}p+=a;break;case be:if(e.scheme="file","/"==a||"\\"==a)u=De;else{if(!i||"file"!=i.scheme){u=Ce;continue}if(a==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",u=ke;else{if("#"!=a){ne(o.slice(c).join(""))||(e.host=i.host,e.path=i.path.slice(),re(e)),u=Ce;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=Ee}}break;case De:if("/"==a||"\\"==a){u=xe;break}i&&"file"==i.scheme&&!ne(o.slice(c).join(""))&&(te(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),u=Ce;continue;case xe:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&te(p))u=Ce;else if(""==p){if(e.host="",n)return;u=we}else{if(l=q(e,p),l)return l;if("localhost"==e.host&&(e.host=""),n)return;p="",u=we}continue}p+=a;break;case we:if(Z(e)){if(u=Ce,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(u=Ce,"/"!=a))continue}else e.fragment="",u=Ee;else e.query="",u=ke;break;case Ce:if(a==r||"/"==a||"\\"==a&&Z(e)||!n&&("?"==a||"#"==a)){if(oe(p)?(re(e),"/"==a||"\\"==a&&Z(e)||e.path.push("")):ie(p)?"/"==a||"\\"==a&&Z(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(p)&&(e.host&&(e.host=""),p=p.charAt(0)+":"),e.path.push(p)),p="","file"==e.scheme&&(a==r||"?"==a||"#"==a))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==a?(e.query="",u=ke):"#"==a&&(e.fragment="",u=Ee)}else p+=X(a,Y);break;case _e:"?"==a?(e.query="",u=ke):"#"==a?(e.fragment="",u=Ee):a!=r&&(e.path[0]+=X(a,U));break;case ke:n||"#"!=a?a!=r&&("'"==a&&Z(e)?e.query+="%27":e.query+="#"==a?"%23":X(a,U)):(e.fragment="",u=Ee);break;case Ee:a!=r&&(e.fragment+=X(a,G));break}c++}},Ae=function(e){var t,n,r=c(this,Ae,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=w(r,{type:"URL"});if(void 0!==i)if(i instanceof Ae)t=C(i);else if(n=Se(t={},String(i)),n)throw TypeError(n);if(n=Se(s,a,null,t),n)throw TypeError(n);var l=s.searchParams=new D,u=x(l);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(l)||null},o||(r.href=Te.call(r),r.origin=Oe.call(r),r.protocol=Ne.call(r),r.username=Le.call(r),r.password=Be.call(r),r.host=Pe.call(r),r.hostname=Me.call(r),r.port=je.call(r),r.pathname=Ie.call(r),r.search=$e.call(r),r.searchParams=Re.call(r),r.hash=qe.call(r))},Fe=Ae.prototype,Te=function(){var e=C(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==i?(u+="//",Q(e)&&(u+=n+(r?":"+r:"")+"@"),u+=W(i),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},Oe=function(){var e=C(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&Z(e)?t+"://"+W(e.host)+(null!==n?":"+n:""):"null"},Ne=function(){return C(this).scheme+":"},Le=function(){return C(this).username},Be=function(){return C(this).password},Pe=function(){var e=C(this),t=e.host,n=e.port;return null===t?"":null===n?W(t):W(t)+":"+n},Me=function(){var e=C(this).host;return null===e?"":W(e)},je=function(){var e=C(this).port;return null===e?"":String(e)},Ie=function(){var e=C(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},$e=function(){var e=C(this).query;return e?"?"+e:""},Re=function(){return C(this).searchParams},qe=function(){var e=C(this).fragment;return e?"#"+e:""},ze=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&l(Fe,{href:ze(Te,(function(e){var t=C(this),n=String(e),r=Se(t,n);if(r)throw TypeError(r);x(t.searchParams).updateSearchParams(t.query)})),origin:ze(Oe),protocol:ze(Ne,(function(e){var t=C(this);Se(t,String(e)+":",ae)})),username:ze(Le,(function(e){var t=C(this),n=d(String(e));if(!ee(t)){t.username="";for(var r=0;rn)t.push(arguments[n++]);return D[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},m=function(e){delete D[e]},"process"==l(g)?r=function(e){g.nextTick(C(e))}:y&&y.now?r=function(e){y.now(C(e))}:v&&!p?(i=new v,o=i.port2,i.port1.onmessage=_,r=u(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(k)||"file:"===d.protocol?r=x in h("script")?function(e){c.appendChild(h("script"))[x]=function(){c.removeChild(this),w(e)}}:function(e){setTimeout(C(e),0)}:(r=k,a.addEventListener("message",_,!1))),e.exports={set:f,clear:m}},"2d00":function(e,t,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,l=s&&s.versions,u=l&&l.v8;u?(r=u.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2e90":function(e,t,n){e.exports=p,e.exports.compileUnsafe=f,e.exports.compileToken=x;var r=n("5bfe"),i=n("0f94"),o=i.isTag,a=n("fce4"),s=n("50ea"),l=n("99e4"),u=l.trueFunc,c=l.falseFunc,h=n("e700");function p(e,t,n){var r=f(e,t,n);return d(r)}function d(e){return function(t){return o(t)&&e(t)}}function f(e,t,n){var i=r(e,t);return x(i,t,n)}function m(e){return"pseudo"===e.type&&("scope"===e.name||Array.isArray(e.data)&&e.data.some((function(e){return e.some(m)})))}var g={type:"descendant"},v={type:"pseudo",name:"scope"},y={},b=i.getParent;function D(e,t){var n=!!t&&!!t.length&&t.every((function(e){return e===y||!!b(e)}));e.forEach((function(e){if(e.length>0&&w(e[0])&&"descendant"!==e[0].type);else{if(!n||m(e))return;e.unshift(g)}e.unshift(v)}))}function x(e,t,n){e=e.filter((function(e){return e.length>0})),e.forEach(s);var r=Array.isArray(n);return n=t&&t.context||n,n&&!r&&(n=[n]),D(e,n),e.map((function(e){return C(e,t,n,r)})).reduce(_,c)}function w(e){return h[e.type]<0}function C(e,t,n,r){var i=r&&"scope"===e[0].name&&"descendant"===e[1].type;return e.reduce((function(e,r,o){return e===c?e:a[r.type](e,r,t,n,i&&1===o)}),t&&t.rootFunc||u)}function _(e,t){return t===c||e===u?e:e===c||t===u?t:function(n){return e(n)||t(n)}}var k=n("9ebc"),E=k.filters,S=i.existsOne,A=(o=i.isTag,i.getChildren);function F(e){return e.some(w)}E.not=function(e,t,n,r){var i={xmlMode:!(!n||!n.xmlMode),strict:!(!n||!n.strict)};if(i.strict&&(t.length>1||t.some(F)))throw new SyntaxError("complex selectors in :not aren't allowed in strict mode");var o=x(t,i,r);return o===c?e:o===u?c:function(t){return!o(t)&&e(t)}},E.has=function(e,t,n){var r={xmlMode:!(!n||!n.xmlMode),strict:!(!n||!n.strict)},i=t.some(F)?[y]:null,a=x(t,r,i);return a===c?c:a===u?function(t){return A(t).some(o)&&e(t)}:(a=d(a),i?function(t){return e(t)&&(i[0]=t,S(a,A(t)))}:function(t){return e(t)&&S(a,A(t))})},E.matches=function(e,t,n,r){var i={xmlMode:!(!n||!n.xmlMode),strict:!(!n||!n.strict),rootFunc:e};return x(t,i,r)}},"2f62":function(e,t,n){"use strict";(function(e){ /*! * vuex v3.5.1 * (c) 2020 Evan You * @license MIT */ function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return B})),n.d(t,"c",(function(){return L}));var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function l(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=l(e[n],t)})),r}function u(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function h(e){return e&&"function"===typeof e.then}function p(e,t){return function(){return e(t)}}var d=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},d.prototype.addChild=function(e,t){this._children[e]=t},d.prototype.removeChild=function(e){delete this._children[e]},d.prototype.getChild=function(e){return this._children[e]},d.prototype.hasChild=function(e){return e in this._children},d.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},d.prototype.forEachChild=function(e){u(this._children,e)},d.prototype.forEachGetter=function(e){this._rawModule.getters&&u(this._rawModule.getters,e)},d.prototype.forEachAction=function(e){this._rawModule.actions&&u(this._rawModule.actions,e)},d.prototype.forEachMutation=function(e){this._rawModule.mutations&&u(this._rawModule.mutations,e)},Object.defineProperties(d.prototype,f);var m=function(e){this.register([],e,!1)};function g(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;g(e.concat(r),t.getChild(r),n.modules[r])}}m.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},m.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},m.prototype.update=function(e){g([],this.root,e)},m.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new d(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&u(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},m.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},m.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return t.hasChild(n)};var v;var y=function(e){var t=this;void 0===e&&(e={}),!v&&"undefined"!==typeof window&&window.Vue&&N(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new m(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return l.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;C(this,u,[],this._modules.root),w(this,u),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:v.config.devtools;c&&a(this)},b={state:{configurable:!0}};function D(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function x(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;C(e,n,[],e._modules.root,!0),w(e,n,t)}function w(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};u(i,(function(t,n){o[n]=p(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=v.config.silent;v.config.silent=!0,e._vm=new v({data:{$$state:t},computed:o}),v.config.silent=a,e.strict&&F(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),v.nextTick((function(){return r.$destroy()})))}function C(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=T(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){v.set(s,l,r.state)}))}var u=r.context=_(e,a,n);r.forEachMutation((function(t,n){var r=a+n;E(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;S(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;A(e,r,t,u)})),r.forEachChild((function(r,o){C(e,t,n.concat(o),r,i)}))}function _(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=O(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,i){var o=O(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return k(e,t)}},state:{get:function(){return T(e.state,n)}}}),i}function k(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function E(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function S(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return h(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function A(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function F(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function T(e,t){return t.reduce((function(e,t){return e[t]}),e)}function O(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function N(e){v&&e===v||(v=e,r(v))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(e){0},y.prototype.commit=function(e,t,n){var r=this,i=O(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},y.prototype.dispatch=function(e,t){var n=this,r=O(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return D(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return D(n,this._actionSubscribers,t)},y.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),C(this,this.state,e,this._modules.get(e),n.preserveState),w(this,this.state)},y.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=T(t.state,e.slice(0,-1));v.delete(n,e[e.length-1])})),x(this)},y.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},y.prototype.hotUpdate=function(e){this._modules.update(e),x(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,b);var L=R((function(e,t){var n={};return I(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=q(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),B=R((function(e,t){var n={};return I(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=q(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),P=R((function(e,t){var n={};return I(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||q(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),M=R((function(e,t){var n={};return I(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=q(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),j=function(e){return{mapState:L.bind(null,e),mapGetters:P.bind(null,e),mapMutations:B.bind(null,e),mapActions:M.bind(null,e)}};function I(e){return $(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function $(e){return Array.isArray(e)||c(e)}function R(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function q(e,t,n){var r=e._modulesNamespaceMap[n];return r}function z(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var u=e.logActions;void 0===u&&(u=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var h=l(e.state);"undefined"!==typeof c&&(s&&e.subscribe((function(e,o){var a=l(o);if(n(e,h,a)){var s=W(),u=i(e),p="mutation "+e.type+s;V(c,p,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(h)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),H(c)}h=a})),u&&e.subscribeAction((function(e,n){if(o(e,n)){var r=W(),i=a(e),s="action "+e.type+r;V(c,s,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),H(c)}})))}}function V(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function H(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function W(){var e=new Date;return" @ "+G(e.getHours(),2)+":"+G(e.getMinutes(),2)+":"+G(e.getSeconds(),2)+"."+G(e.getMilliseconds(),3)}function U(e,t){return new Array(t+1).join(e)}function G(e,t){return U("0",t-e.toString().length)+e}var Y={Store:y,install:N,version:"3.5.1",mapState:L,mapMutations:B,mapGetters:P,mapActions:M,createNamespacedHelpers:j,createLogger:z};t["a"]=Y}).call(this,n("c8ba"))},"2f9a":function(e,t){e.exports=function(){}},"2fb4":function(e,t,n){(function(t){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,l=a||s||Function("return this")();function u(e,t){var n=-1,r=t.length,i=e.length;while(++n0&&n(s)?t>1?g(s,t-1,n,r,i):u(i,s):r||(i[i.length]=s)}return i}function v(e){return D(e)||b(e)||!!(m&&e&&e[m])}function y(e){var t=e?e.length:0;return t?g(e,1):[]}function b(e){return w(e)&&h.call(e,"callee")&&(!f.call(e,"callee")||p.call(e)==r)}var D=Array.isArray;function x(e){return null!=e&&_(e.length)&&!C(e)}function w(e){return E(e)&&x(e)}function C(e){var t=k(e)?p.call(e):"";return t==i||t==o}function _(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function k(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function E(e){return!!e&&"object"==typeof e}e.exports=y}).call(this,n("c8ba"))},"301c":function(e,t,n){n("e198")("asyncIterator")},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"31c5":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";var t="CodeMirror-activeline",n="CodeMirror-activeline-background",r="CodeMirror-activeline-gutter";function i(e){for(var i=0;i=10.13.0"},h={"@angular/compiler":"9.0.5","@babel/code-frame":"7.8.0","@babel/parser":"7.9.4","@glimmer/syntax":"0.50.0","@iarna/toml":"2.2.3","@typescript-eslint/typescript-estree":"2.26.0","angular-estree-parser":"1.3.0","angular-html-parser":"1.4.0",camelcase:"5.3.1",chalk:"4.0.0","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","cjk-regex":"2.0.0",cosmiconfig:"6.0.0",dashify:"2.0.0",dedent:"0.7.0",diff:"4.0.2",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"2.0.0",esutils:"2.0.3","fast-glob":"3.2.2","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.122.0","get-stream":"5.1.0",globby:"11.0.0",graphql:"15.0.0","html-element-attributes":"2.2.1","html-styles":"1.0.0","html-tag-names":"1.1.5",ignore:"4.0.6","jest-docblock":"25.2.6","json-stable-stringify":"1.0.1",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.9.0",lodash:"4.17.15",mem:"6.0.1",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.0","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-math":"1.0.6","remark-parse":"5.0.0",resolve:"1.16.1",semver:"7.1.3",srcset:"2.0.1","string-width":"4.2.0",typescript:"3.8.3","unicode-regex":"3.0.0",unified:"9.0.0",vnopts:"1.0.2","yaml-unist-parser":"1.1.1"},p={"@babel/core":"7.9.0","@babel/preset-env":"7.9.0","@rollup/plugin-alias":"3.0.1","@rollup/plugin-commonjs":"11.0.2","@rollup/plugin-json":"4.0.2","@rollup/plugin-node-resolve":"7.1.1","@rollup/plugin-replace":"2.3.1","babel-loader":"8.1.0",benchmark:"2.1.4","builtin-modules":"3.1.0",codecov:"3.6.5","cross-env":"7.0.2",cspell:"4.0.55",eslint:"6.8.0","eslint-config-prettier":"6.10.1","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.20.2","eslint-plugin-prettier":"3.1.2","eslint-plugin-react":"7.19.0","eslint-plugin-unicorn":"18.0.1",execa:"4.0.0",jest:"25.2.7","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.5.0",prettier:"2.0.4",rimraf:"3.0.2",rollup:"2.3.2","rollup-plugin-babel":"4.4.0","rollup-plugin-node-globals":"1.4.0","rollup-plugin-terser":"5.3.0",shelljs:"0.8.3","snapshot-diff":"0.7.0","strip-ansi":"6.0.0","synchronous-promise":"2.0.10",tempy:"0.5.0","terser-webpack-plugin":"2.3.5",webpack:"4.42.1"},d={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest tests/","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:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier "**/*.{md,json,yml,html,css}" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2016 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":"cspell {bin,scripts,src,website}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md","lint:deps":"node ./scripts/check-deps.js",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"},f={name:e,version:n,description:r,bin:i,repository:o,homepage:a,author:s,license:l,main:u,engines:c,dependencies:h,devDependencies:p,scripts:d},m=Object.freeze({__proto__:null,name:e,version:n,description:r,bin:i,repository:o,homepage:a,author:s,license:l,main:u,engines:c,dependencies:h,devDependencies:p,scripts:d,default:f});function g(){}function v(e,t,n,r,i){for(var o=0,a=t.length,s=0,l=0;oe.length?n:e})),u.value=e.join(h)}else u.value=e.join(n.slice(s,s+u.count));s+=u.count,u.added||(l+=u.count)}}var p=t[a-1];return a>1&&"string"===typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[a-2].value+=p.value,t.pop()),t}function y(e){return{newPos:e.newPos,components:e.components.slice(0)}}g.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"===typeof n&&(r=n,n={}),this.options=n;var i=this;function o(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var a=t.length,s=e.length,l=1,u=a+s,c=[{newPos:-1,components:[]}],h=this.extractCommon(c[0],t,e,0);if(c[0].newPos+1>=a&&h+1>=s)return o([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*l;n<=l;n+=2){var r=void 0,u=c[n-1],h=c[n+1],p=(h?h.newPos:0)-n;u&&(c[n-1]=void 0);var d=u&&u.newPos+1=a&&p+1>=s)return o(v(i,r.components,t,e,i.useLongestToken));c[n]=r}else c[n]=void 0}l++}if(r)(function e(){setTimeout((function(){if(l>u)return r();p()||e()}),0)})();else while(l<=u){var d=p();if(d)return d}},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){var i=t.length,o=n.length,a=e.newPos,s=a-r,l=0;while(a+11&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function a(){var e={};i.push(e);while(o2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof t&&(t=W(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,i,o=e.split(/\r\n|[\n\v\f\r\x85]/),a=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},u=0,c=n.fuzzFactor||0,h=0,p=0;function d(e,t){for(var n=0;n0?r[0]:" ",a=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!l(t+1,o[t],i,a)&&(u++,u>c))return!1;t++}}return!0}for(var f=0;f0?k[0]:" ",S=k.length>0?k.substr(1):k,A=w.linedelimiters[_];if(" "===E)C++;else if("-"===E)o.splice(C,1),a.splice(C,1);else if("+"===E)o.splice(C,0,S),a.splice(C,0,A),C++;else if("\\"===E){var F=w.lines[_-1]?w.lines[_-1][0]:null;"+"===F?r=!0:"-"===F&&(i=!0)}}}if(r)while(!o[o.length-1])o.pop(),a.pop();else i&&(o.push(""),a.push("\n"));for(var T=0;T0?l(m.lines.slice(-a.context)):[],c-=p.length,h-=p.length)}(o=p).push.apply(o,P(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?f+=i.length:d+=i.length}else{if(c)if(i.length<=2*a.context&&e=s.length-2&&i.length<=a.context){var D=/\n$/.test(n),x=/\n$/.test(r),w=0==i.length&&p.length>b.oldLines;!D&&w&&p.splice(b.oldLines,0,"\\ No newline at end of file"),(D||w)&&x||p.push("\\ No newline at end of file")}u.push(b),c=0,h=0,p=[]}d+=i.length,f+=i.length}},g=0;ge.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push(De(r.value)),r.added?t.push(""):r.removed&&t.push("")}return t.join("")}function De(e){var t=e;return t=t.replace(/&/g,"&"),t=t.replace(//g,">"),t=t.replace(/"/g,"""),t}V.tokenize=function(e){return e.slice()},V.join=V.removeEmpty=function(e){return e};var xe=Object.freeze({__proto__:null,Diff:g,diffChars:D,diffWords:k,diffWordsWithSpace:E,diffLines:A,diffTrimmedLines:F,diffSentences:O,diffCss:L,diffJson:q,diffArrays:H,structuredPatch:K,createTwoFilesPatch:X,createPatch:J,applyPatch:G,applyPatches:Y,parsePatch:W,merge:te,convertChangesToDMP:ye,convertChangesToXML:be,canonicalize:z}),we={},Ce=Object.freeze({__proto__:null,default:we});const _e=/[\\/]/;function ke(e){const t=Ee(e),n=t.lastIndexOf(".");return-1===n?"":t.slice(n)}function Ee(e){return e.split(_e).pop()}function Se(){return!0}var Ae=Object.freeze({__proto__:null,extname:ke,basename:Ee,isAbsolute:Se}),Fe="undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},Te=[],Oe=[],Ne="undefined"!==typeof Uint8Array?Uint8Array:Array,Le=!1;function Be(){Le=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Ne(3*s/4-o),r=o>0?s-4:s;var l=0;for(t=0,n=0;t>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=Oe[e.charCodeAt(t)]<<2|Oe[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=Oe[e.charCodeAt(t)]<<10|Oe[e.charCodeAt(t+1)]<<4|Oe[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}function Me(e){return Te[e>>18&63]+Te[e>>12&63]+Te[e>>6&63]+Te[63&e]}function je(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===r?(t=e[n-1],i+=Te[t>>2],i+=Te[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Te[t>>10],i+=Te[t>>4&63],i+=Te[t<<2&63],i+="="),o.push(i),o.join("")}function $e(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,h=n?i-1:0,p=n?-1:1,d=e[t+h];for(h+=p,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+h],h+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)}function Re(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-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?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+h>=1?p/l:p*Math.pow(2,1-h),t*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=f,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=f,a/=256,u-=8);e[n+d-f]|=128*m}var qe={}.toString,ze=Array.isArray||function(e){return"[object Array]"==qe.call(e)},Ve=50;function He(){return Ue.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function We(e,t){if(He()=He())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+He().toString(16)+" bytes");return 0|e}function nt(e){return!(null==e||!e._isBuffer)}function rt(e,t){if(nt(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 Lt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Mt(e).length;default:if(r)return Lt(e).length;t=(""+t).toLowerCase(),r=!0}}function it(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return Dt(this,t,n);case"utf8":case"utf-8":return mt(this,t,n);case"ascii":return yt(this,t,n);case"latin1":case"binary":return bt(this,t,n);case"base64":return ft(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function ot(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function at(e,t,n,r,i){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=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=Ue.from(t,r)),nt(t))return 0===t.length?-1:st(e,t,n,r,i);if("number"===typeof t)return t&=255,Ue.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):st(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function st(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,p=0;pi&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return vt(r)}Ue.TYPED_ARRAY_SUPPORT=void 0===Fe.TYPED_ARRAY_SUPPORT||Fe.TYPED_ARRAY_SUPPORT,Ue.poolSize=8192,Ue._augment=function(e){return e.__proto__=Ue.prototype,e},Ue.from=function(e,t,n){return Ge(null,e,t,n)},Ue.TYPED_ARRAY_SUPPORT&&(Ue.prototype.__proto__=Uint8Array.prototype,Ue.__proto__=Uint8Array),Ue.alloc=function(e,t,n){return Ke(null,e,t,n)},Ue.allocUnsafe=function(e){return Xe(null,e)},Ue.allocUnsafeSlow=function(e){return Xe(null,e)},Ue.isBuffer=$t,Ue.compare=function(e,t){if(!nt(e)||!nt(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},Ue.prototype.compare=function(e,t,n,r,i){if(!nt(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===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),c=0;ci)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return lt(this,e,t,n);case"utf8":case"utf-8":return ut(this,e,t,n);case"ascii":return ct(this,e,t,n);case"latin1":case"binary":return ht(this,e,t,n);case"base64":return pt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dt(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Ue.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var gt=4096;function vt(e){var t=e.length;if(t<=gt)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function Ct(e,t,n,r,i,o){if(!nt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function _t(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function kt(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function Et(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function St(e,t,n,r,i){return i||Et(e,t,n,4),Re(e,t,n,r,23,4),n+4}function At(e,t,n,r,i){return i||Et(e,t,n,8),Re(e,t,n,r,52,8),n+8}Ue.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(i*=256))r+=this[e+--t]*i;return r},Ue.prototype.readUInt8=function(e,t){return t||wt(e,1,this.length),this[e]},Ue.prototype.readUInt16LE=function(e,t){return t||wt(e,2,this.length),this[e]|this[e+1]<<8},Ue.prototype.readUInt16BE=function(e,t){return t||wt(e,2,this.length),this[e]<<8|this[e+1]},Ue.prototype.readUInt32LE=function(e,t){return t||wt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ue.prototype.readUInt32BE=function(e,t){return t||wt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ue.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||wt(e,t,this.length);var r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},Ue.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||wt(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},Ue.prototype.readInt8=function(e,t){return t||wt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ue.prototype.readInt16LE=function(e,t){t||wt(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Ue.prototype.readInt16BE=function(e,t){t||wt(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Ue.prototype.readInt32LE=function(e,t){return t||wt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ue.prototype.readInt32BE=function(e,t){return t||wt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ue.prototype.readFloatLE=function(e,t){return t||wt(e,4,this.length),$e(this,e,!0,23,4)},Ue.prototype.readFloatBE=function(e,t){return t||wt(e,4,this.length),$e(this,e,!1,23,4)},Ue.prototype.readDoubleLE=function(e,t){return t||wt(e,8,this.length),$e(this,e,!0,52,8)},Ue.prototype.readDoubleBE=function(e,t){return t||wt(e,8,this.length),$e(this,e,!1,52,8)},Ue.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;Ct(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+n},Ue.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Ct(this,e,t,1,255,0),Ue.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ue.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Ct(this,e,t,2,65535,0),Ue.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):_t(this,e,t,!0),t+2},Ue.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Ct(this,e,t,2,65535,0),Ue.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):_t(this,e,t,!1),t+2},Ue.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Ct(this,e,t,4,4294967295,0),Ue.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):kt(this,e,t,!0),t+4},Ue.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Ct(this,e,t,4,4294967295,0),Ue.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):kt(this,e,t,!1),t+4},Ue.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Ct(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},Ue.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Ct(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},Ue.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Ct(this,e,t,1,127,-128),Ue.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ue.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Ct(this,e,t,2,32767,-32768),Ue.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):_t(this,e,t,!0),t+2},Ue.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Ct(this,e,t,2,32767,-32768),Ue.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):_t(this,e,t,!1),t+2},Ue.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Ct(this,e,t,4,2147483647,-2147483648),Ue.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):kt(this,e,t,!0),t+4},Ue.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Ct(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ue.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):kt(this,e,t,!1),t+4},Ue.prototype.writeFloatLE=function(e,t,n){return St(this,e,t,!0,n)},Ue.prototype.writeFloatBE=function(e,t,n){return St(this,e,t,!1,n)},Ue.prototype.writeDoubleLE=function(e,t,n){return At(this,e,t,!0,n)},Ue.prototype.writeDoubleBE=function(e,t,n){return At(this,e,t,!1,n)},Ue.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;--i)e[i+t]=this[i+n];else if(o<1e3||!Ue.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Bt(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function Mt(e){return Pe(Tt(e))}function jt(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function It(e){return e!==e}function $t(e){return null!=e&&(!!e._isBuffer||Rt(e)||qt(e))}function Rt(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function qt(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&Rt(e.slice(0,0))}var zt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Ht(e,t){return t={exports:{}},e(t,t.exports),t.exports}function Wt(e){return e&&e["default"]||e}var Ut=Wt(Ce);class Gt{constructor(e,t){t=t||{},t.readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd="number"===typeof e?e:Ut.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let n=-1;for(let r=0;r<=e.length;r++){let i=e[r];if(i===t){n=r;break}}return n}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){Ut.closeSync(this.fd),this.fd=null}_extractLines(e){let t;const n=[];let r=0,i=0;while(1){let o=e[r++];if(o===this.newLineCharacter)t=e.slice(i,r),n.push(t),i=r;else if(!o)break}let o=e.slice(i,r);return o.length&&n.push(o),n}_readChunk(e){let t,n=0;const r=[];do{const e=new Ue(this.options.readChunk);t=Ut.readSync(this.fd,e,0,this.options.readChunk,this.fdPosition),n+=t,this.fdPosition=this.fdPosition+t,r.push(e)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));let i=Ue.concat(r);return t=0||(i[n]=e[n]);return i}function nn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function rn(){throw new Error("setTimeout has not been defined")}function on(){throw new Error("clearTimeout has not been defined")}var an=rn,sn=on;function ln(e){if(an===setTimeout)return setTimeout(e,0);if((an===rn||!an)&&setTimeout)return an=setTimeout,setTimeout(e,0);try{return an(e,0)}catch(t){try{return an.call(null,e,0)}catch(t){return an.call(this,e,0)}}}function un(e){if(sn===clearTimeout)return clearTimeout(e);if((sn===on||!sn)&&clearTimeout)return sn=clearTimeout,clearTimeout(e);try{return sn(e)}catch(t){try{return sn.call(null,e)}catch(t){return sn.call(this,e)}}}"function"===typeof Fe.setTimeout&&(an=setTimeout),"function"===typeof Fe.clearTimeout&&(sn=clearTimeout);var cn,hn=[],pn=!1,dn=-1;function fn(){pn&&cn&&(pn=!1,cn.length?hn=cn.concat(hn):dn=-1,hn.length&&mn())}function mn(){if(!pn){var e=ln(fn);pn=!0;var t=hn.length;while(t){cn=hn,hn=[];while(++dn1)for(var n=1;nconsole.error("SEMVER",...e):()=>{};var Un=Wn;const Gn="2.0.0",Yn=256,Kn=Number.MAX_SAFE_INTEGER||9007199254740991,Xn=16;var Jn={SEMVER_SPEC_VERSION:Gn,MAX_LENGTH:Yn,MAX_SAFE_INTEGER:Kn,MAX_SAFE_COMPONENT_LENGTH:Xn},Zn=Ht((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=Jn;t=e.exports={};const r=t.re=[],i=t.src=[],o=t.t={};let a=0;const s=(e,t,n)=>{const s=a++;Un(s,t),o[e]=s,i[s]=t,r[s]=new RegExp(t,n?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION","(".concat(i[o.NUMERICIDENTIFIER],")\\.")+"(".concat(i[o.NUMERICIDENTIFIER],")\\.")+"(".concat(i[o.NUMERICIDENTIFIER],")")),s("MAINVERSIONLOOSE","(".concat(i[o.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[o.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[o.NUMERICIDENTIFIERLOOSE],")")),s("PRERELEASEIDENTIFIER","(?:".concat(i[o.NUMERICIDENTIFIER],"|").concat(i[o.NONNUMERICIDENTIFIER],")")),s("PRERELEASEIDENTIFIERLOOSE","(?:".concat(i[o.NUMERICIDENTIFIERLOOSE],"|").concat(i[o.NONNUMERICIDENTIFIER],")")),s("PRERELEASE","(?:-(".concat(i[o.PRERELEASEIDENTIFIER],"(?:\\.").concat(i[o.PRERELEASEIDENTIFIER],")*))")),s("PRERELEASELOOSE","(?:-?(".concat(i[o.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(i[o.PRERELEASEIDENTIFIERLOOSE],")*))")),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD","(?:\\+(".concat(i[o.BUILDIDENTIFIER],"(?:\\.").concat(i[o.BUILDIDENTIFIER],")*))")),s("FULLPLAIN","v?".concat(i[o.MAINVERSION]).concat(i[o.PRERELEASE],"?").concat(i[o.BUILD],"?")),s("FULL","^".concat(i[o.FULLPLAIN],"$")),s("LOOSEPLAIN","[v=\\s]*".concat(i[o.MAINVERSIONLOOSE]).concat(i[o.PRERELEASELOOSE],"?").concat(i[o.BUILD],"?")),s("LOOSE","^".concat(i[o.LOOSEPLAIN],"$")),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE","".concat(i[o.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),s("XRANGEIDENTIFIER","".concat(i[o.NUMERICIDENTIFIER],"|x|X|\\*")),s("XRANGEPLAIN","[v=\\s]*(".concat(i[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIER],")")+"(?:".concat(i[o.PRERELEASE],")?").concat(i[o.BUILD],"?")+")?)?"),s("XRANGEPLAINLOOSE","[v=\\s]*(".concat(i[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(i[o.PRERELEASELOOSE],")?").concat(i[o.BUILD],"?")+")?)?"),s("XRANGE","^".concat(i[o.GTLT],"\\s*").concat(i[o.XRANGEPLAIN],"$")),s("XRANGELOOSE","^".concat(i[o.GTLT],"\\s*").concat(i[o.XRANGEPLAINLOOSE],"$")),s("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),s("COERCERTL",i[o.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM","(\\s*)".concat(i[o.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",s("TILDE","^".concat(i[o.LONETILDE]).concat(i[o.XRANGEPLAIN],"$")),s("TILDELOOSE","^".concat(i[o.LONETILDE]).concat(i[o.XRANGEPLAINLOOSE],"$")),s("LONECARET","(?:\\^)"),s("CARETTRIM","(\\s*)".concat(i[o.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",s("CARET","^".concat(i[o.LONECARET]).concat(i[o.XRANGEPLAIN],"$")),s("CARETLOOSE","^".concat(i[o.LONECARET]).concat(i[o.XRANGEPLAINLOOSE],"$")),s("COMPARATORLOOSE","^".concat(i[o.GTLT],"\\s*(").concat(i[o.LOOSEPLAIN],")$|^$")),s("COMPARATOR","^".concat(i[o.GTLT],"\\s*(").concat(i[o.FULLPLAIN],")$|^$")),s("COMPARATORTRIM","(\\s*)".concat(i[o.GTLT],"\\s*(").concat(i[o.LOOSEPLAIN],"|").concat(i[o.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE","^\\s*(".concat(i[o.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(i[o.XRANGEPLAIN],")")+"\\s*$"),s("HYPHENRANGELOOSE","^\\s*(".concat(i[o.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(i[o.XRANGEPLAINLOOSE],")")+"\\s*$"),s("STAR","(<|>)?=?\\s*\\*")}));Zn.re,Zn.src,Zn.t,Zn.tildeTrimReplace,Zn.caretTrimReplace,Zn.comparatorTrimReplace;const Qn=/^[0-9]+$/,er=(e,t)=>{const n=Qn.test(e),r=Qn.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:eer(t,e);var nr={compareIdentifiers:er,rcompareIdentifiers:tr};const{MAX_LENGTH:rr,MAX_SAFE_INTEGER:ir}=Jn,{re:or,t:ar}=Zn,{compareIdentifiers:sr}=nr;class lr{constructor(e,t){if(t&&"object"===typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof lr){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>rr)throw new TypeError("version is longer than ".concat(rr," characters"));Un("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?or[ar.LOOSE]:or[ar.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>ir||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ir||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ir||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0)"number"===typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}var ur=lr;const cr=(e,t,n)=>new ur(e,n).compare(new ur(t,n));var hr=cr;const pr=(e,t,n)=>hr(e,t,n)<0;var dr=pr;const fr=(e,t,n)=>hr(e,t,n)>=0;var mr=fr,gr=(e,t)=>Object.entries(e).map(([e,n])=>Object.assign({[t]:e},n)),vr=Ht((function(e){function t(e){var t=void 0;t="string"===typeof e?[e]:e.raw;for(var n="",r=0;r"string"===typeof e||"function"===typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:null,description:"Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:Fr,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"===typeof e||"object"===typeof e,cliName:"plugin",cliCategory:_r},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:Fr,description:vr(xr()),exception:e=>"string"===typeof e||"object"===typeof e,cliName:"plugin-search-dir",cliCategory:_r},printWidth:{since:"0.0.0",category:Fr,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:Tr,type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:vr(Dr()),cliCategory:kr},rangeStart:{since:"1.4.0",category:Tr,type:"int",default:0,range:{start:0,end:1/0,step:1},description:vr(br()),cliCategory:kr},requirePragma:{since:"1.7.0",category:Tr,type:"boolean",default:!1,description:vr(yr()),cliCategory:Sr},tabWidth:{type:"int",category:Fr,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:Fr,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."}};var Nr={CATEGORY_CONFIG:_r,CATEGORY_EDITOR:kr,CATEGORY_FORMAT:Er,CATEGORY_OTHER:Sr,CATEGORY_OUTPUT:Ar,CATEGORY_GLOBAL:Fr,CATEGORY_SPECIAL:Tr,options:Or},Lr=Wt(m);const Br={compare:hr,lt:dr,gte:mr},Pr=Lr.version,Mr=Nr.options;function jr({plugins:e=[],showUnreleased:t=!1,showDeprecated:n=!1,showInternal:r=!1}={}){const i=Pr.split("-",1)[0],o=gr(Object.assign({},...e.map(({options:e})=>e),Mr),"name").filter(e=>s(e)&&l(e)).sort((e,t)=>e.name===t.name?0:e.name{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(s).sort((e,t)=>Br.compare(t.since,e.since))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(e=>s(e)&&l(e)));const n=e.filter(e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name]),r=n.reduce((e,n)=>(e[n.name]=n.defaultOptions[t.name],e),{});return Object.assign({},t,{pluginDefaults:r})}),a=e.reduce((e,t)=>e.concat(t.languages||[]),[]).filter(s);return{languages:a,options:o};function s(e){return t||!("since"in e)||e.since&&Br.gte(i,e.since)}function l(e){return n||!("deprecated"in e)||e.deprecated&&Br.lt(i,e.deprecated)}function u(e){if(r)return e;const t=tn(e,["cliName","cliCategory","cliDescription"]);return t}}var Ir={getSupportInfo:jr},$r=function(e,t){return $r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},$r(e,t)}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */function Rr(e,t){function n(){this.constructor=e}$r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var qr=function(){return qr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function Hr(e,t){return function(n,r){t(n,r,e)}}function Wr(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function Ur(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function Gr(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function Xr(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function Jr(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{l(i[e](t))}catch(n){h(o[0][3],n)}}function l(e){e.value instanceof Qr?Promise.resolve(e.value.v).then(u,c):h(o[0][2],e)}function u(e){s("next",e)}function c(e){s("throw",e)}function h(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function ti(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,i){t[r]=e[r]?function(t){return(n=!n)?{value:Qr(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function ni(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof Kr?Kr(e):e[Symbol.iterator](),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,o){t=e[n](t),i(r,o,t.done,t.value)}))}}function i(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}}function ri(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function ii(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}function oi(e){return e&&e.__esModule?e:{default:e}}var ai=Object.freeze({__proto__:null,__extends:Rr,get __assign(){return qr},__rest:zr,__decorate:Vr,__param:Hr,__metadata:Wr,__awaiter:Ur,__generator:Gr,__exportStar:Yr,__values:Kr,__read:Xr,__spread:Jr,__spreadArrays:Zr,__await:Qr,__asyncGenerator:ei,__asyncDelegator:ti,__asyncValues:ni,__makeTemplateObject:ri,__importStar:ii,__importDefault:oi}),si=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!==typeof e)return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map(e=>t.apiDescriptor.value(e)).join(", "),"]");const n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map(n=>"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n]))).join(", ")," }")},pair:({key:e,value:n})=>t.apiDescriptor.value({[e]:n})}}));Vt(si);si.apiDescriptor;var li=Wt(ai),ui=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),li.__exportStar(si,t)}));Vt(ui);var ci=/[|\\{}()[\]^$+*?.]/g,hi=function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(ci,"\\$&")},pi={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]},di=Ht((function(e){var t={};for(var n in pi)pi.hasOwnProperty(n)&&(t[pi[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 i in r)if(r.hasOwnProperty(i)){if(!("channels"in r[i]))throw new Error("missing channels property: "+i);if(!("labels"in r[i]))throw new Error("missing channel labels property: "+i);if(r[i].labels.length!==r[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=r[i].channels,a=r[i].labels;delete r[i].channels,delete r[i].labels,Object.defineProperty(r[i],"channels",{value:o}),Object.defineProperty(r[i],"labels",{value:a})}function s(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}r.rgb.hsl=function(e){var t,n,r,i=e[0]/255,o=e[1]/255,a=e[2]/255,s=Math.min(i,o,a),l=Math.max(i,o,a),u=l-s;return l===s?t=0:i===l?t=(o-a)/u:o===l?t=2+(a-i)/u:a===l&&(t=4+(i-o)/u),t=Math.min(60*t,360),t<0&&(t+=360),r=(s+l)/2,n=l===s?0:r<=.5?u/(l+s):u/(2-l-s),[t,100*n,100*r]},r.rgb.hsv=function(e){var t,n,r,i,o,a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),c=u-Math.min(a,s,l),h=function(e){return(u-e)/6/c+.5};return 0===c?i=o=0:(o=c/u,t=h(a),n=h(s),r=h(l),a===u?i=r-n:s===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2],o=r.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,i));return i=1-1/255*Math.max(t,Math.max(n,i)),[o,100*a,100*i]},r.rgb.cmyk=function(e){var t,n,r,i,o=e[0]/255,a=e[1]/255,s=e[2]/255;return i=Math.min(1-o,1-a,1-s),t=(1-o-i)/(1-i)||0,n=(1-a-i)/(1-i)||0,r=(1-s-i)/(1-i)||0,[100*t,100*n,100*r,100*i]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,i=1/0;for(var o in pi)if(pi.hasOwnProperty(o)){var a=pi[o],l=s(e,a);l.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=.4124*t+.3576*n+.1805*r,o=.2126*t+.7152*n+.0722*r,a=.0193*t+.1192*n+.9505*r;return[100*i,100*o,100*a]},r.rgb.lab=function(e){var t,n,i,o=r.rgb.xyz(e),a=o[0],s=o[1],l=o[2];return a/=95.047,s/=100,l/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,t=116*s-16,n=500*(a-s),i=200*(s-l),[t,n,i]},r.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return o=255*l,[o,o,o];n=l<.5?l*(1+s):l+s-l*s,t=2*l-n,i=[0,0,0];for(var u=0;u<3;u++)r=a+1/3*-(u-1),r<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*o;return i},r.hsl.hsv=function(e){var t,n,r=e[0],i=e[1]/100,o=e[2]/100,a=i,s=Math.max(o,.01);return o*=2,i*=o<=1?o:2-o,a*=s<=1?s:2-s,n=(o+i)/2,t=0===o?2*a/(s+a):2*i/(o+i),[r,100*t,100*n]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},r.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,t=(2-o)*s,n=o*s,n/=t<=1?t:2-t,n=n||0,r/=2,[i,100*n,100*r]},r.hwb.rgb=function(e){var t,n,r,i,o,a,s,l=e[0]/360,u=e[1]/100,c=e[2]/100,h=u+c;switch(h>1&&(u/=h,c/=h),t=Math.floor(6*l),n=1-c,r=6*l-t,0!==(1&t)&&(r=1-r),i=u+r*(n-u),t){default:case 6:case 0:o=n,a=i,s=u;break;case 1:o=i,a=n,s=u;break;case 2:o=u,a=n,s=i;break;case 3:o=u,a=i,s=n;break;case 4:o=i,a=u,s=n;break;case 5:o=n,a=u,s=i;break}return[255*o,255*a,255*s]},r.cmyk.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100,s=e[3]/100;return t=1-Math.min(1,i*(1-s)+s),n=1-Math.min(1,o*(1-s)+s),r=1-Math.min(1,a*(1-s)+s),[255*t,255*n,255*r]},r.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return t=3.2406*i+-1.5372*o+-.4986*a,n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=t>.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,t=Math.min(Math.max(0,t),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*t,255*n,255*r]},r.xyz.lab=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];return i/=95.047,o/=100,a/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,t=116*o-16,n=500*(i-o),r=200*(o-a),[t,n,r]},r.lab.xyz=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];n=(i+16)/116,t=o/500+n,r=n-a/200;var s=Math.pow(n,3),l=Math.pow(t,3),u=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,r=u>.008856?u:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},r.lab.lch=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];return t=Math.atan2(a,o),n=360*t/2/Math.PI,n<0&&(n+=360),r=Math.sqrt(o*o+a*a),[i,r,n]},r.lch.lab=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];return r=a/360*2*Math.PI,t=o*Math.cos(r),n=o*Math.sin(r),[i,t,n]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],o=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(o=Math.round(o/50),0===o)return 30;var a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(a+=60),a},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];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i},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,t];var n=.5*(1+~~(e>50)),r=(1&t)*n*255,i=(t>>1&1)*n*255,o=(t>>2&1)*n*255;return[r,i,o]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;e-=16;var r=Math.floor(e/36)/5*255,i=Math.floor((n=e%36)/6)/5*255,o=n%6/5*255;return[r,i,o]},r.rgb.hex=function(e){var t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n},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),i=r>>16&255,o=r>>8&255,a=255&r;return[i,o,a]},r.rgb.hcg=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.max(Math.max(r,i),o),s=Math.min(Math.min(r,i),o),l=a-s;return t=l<1?s/(1-l):0,n=l<=0?0:a===r?(i-o)/l%6:a===i?2+(o-r)/l:4+(r-i)/l+4,n/=6,n%=1,[360*n,100*l,100*t]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return r=n<.5?2*t*n:2*t*(1-n),r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},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 i=[0,0,0],o=t%1*6,a=o%1,s=1-a,l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},r.hcg.hsv=function(e){var t=e[1]/100,n=e[2]/100,r=t+n*(1-t),i=0;return r>0&&(i=t/r),[e[0],100*i,100*r]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100,r=n*(1-t)+.5*t,i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],100*i,100*r]},r.hcg.hwb=function(e){var t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],100*(r-t),100*(1-r)]},r.hwb.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1-n,i=r-t,o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],100*i,100*o]},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,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r},r.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}}));di.rgb,di.hsl,di.hsv,di.hwb,di.cmyk,di.xyz,di.lab,di.lch,di.hex,di.keyword,di.ansi16,di.ansi256,di.hcg,di.apple,di.gray;function fi(){for(var e={},t=Object.keys(di),n=t.length,r=0;r1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function wi(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===typeof n)for(var r=n.length,i=0;ifunction(){const n=e.apply(Ci,arguments);return"[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(Ci,arguments);return"[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(Ci,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};function i(){const e=new Map,i={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]}};i.color.grey=i.color.gray;for(const t of Object.keys(i)){const n=i[t];for(const t of Object.keys(n)){const r=n[t];i[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=i[t],e.set(r[0],r[1])}Object.defineProperty(i,t,{value:n,enumerable:!1}),Object.defineProperty(i,"codes",{value:e,enumerable:!1})}const o=e=>e,a=(e,t,n)=>[e,t,n];i.color.close="",i.bgColor.close="",i.color.ansi={ansi:t(o,0)},i.color.ansi256={ansi256:n(o,0)},i.color.ansi16m={rgb:r(a,0)},i.bgColor.ansi={ansi:t(o,10)},i.bgColor.ansi256={ansi256:n(o,10)},i.bgColor.ansi16m={rgb:r(a,10)};for(let s of Object.keys(Ci)){if("object"!==typeof Ci[s])continue;const e=Ci[s];"ansi16"===s&&(s="ansi"),"ansi16"in e&&(i.color.ansi[s]=t(e.ansi16,0),i.bgColor.ansi[s]=t(e.ansi16,10)),"ansi256"in e&&(i.color.ansi256[s]=n(e.ansi256,0),i.bgColor.ansi256[s]=n(e.ansi256,10)),"rgb"in e&&(i.color.ansi16m[s]=r(e.rgb,0),i.bgColor.ansi16m[s]=r(e.rgb,10))}return i}Object.defineProperty(e,"exports",{enumerable:!0,get:i})})),ki={EOL:"\n"},Ei=(e,t)=>{t=t||Hn.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r=2,has16m:e>=3}}function Ti(e){if(!1===Ai)return 0;if(Ei("color=16m")||Ei("color=full")||Ei("color=truecolor"))return 3;if(Ei("color=256"))return 2;if(e&&!e.isTTY&&!0!==Ai)return 0;const t=Ai?1:0;if("win32"===Hn.platform){const e=ki.release().split(".");return Number(Hn.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Si)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in Si)||"codeship"===Si.CI_NAME?1:t;if("TEAMCITY_VERSION"in Si)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Si.TEAMCITY_VERSION)?1:0;if("truecolor"===Si.COLORTERM)return 3;if("TERM_PROGRAM"in Si){const e=parseInt((Si.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Si.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Si.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Si.TERM)||"COLORTERM"in Si?1:(Si.TERM,t)}function Oi(e){const t=Ti(e);return Fi(t)}Ei("no-color")||Ei("no-colors")||Ei("color=false")?Ai=!1:(Ei("color")||Ei("colors")||Ei("color=true")||Ei("color=always"))&&(Ai=!0),"FORCE_COLOR"in Si&&(Ai=0===Si.FORCE_COLOR.length||0!==parseInt(Si.FORCE_COLOR,10));var Ni={supportsColor:Oi,stdout:Oi(Hn.stdout),stderr:Oi(Hn.stderr)};const Li=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Bi=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Pi=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Mi=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,ji=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Ii(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):ji.get(e)||e}function $i(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const o of r)if(isNaN(o)){if(!(i=o.match(Pi)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));n.push(i[2].replace(Mi,(e,t,n)=>t?Ii(t):n))}else n.push(Number(o));return n}function Ri(e){Bi.lastIndex=0;const t=[];let n;while(null!==(n=Bi.exec(e))){const e=n[1];if(n[2]){const r=$i(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function qi(e,t){const n={};for(const i of t)for(const e of i.styles)n[e[0]]=i.inverse?null:e.slice(1);let r=e;for(const i of Object.keys(n))if(Array.isArray(n[i])){if(!(i in r))throw new Error("Unknown Chalk style: ".concat(i));r=n[i].length>0?r[i].apply(r,n[i]):r[i]}return r}var zi=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(Li,(t,o,a,s,l,u)=>{if(o)i.push(Ii(o));else if(s){const t=i.join("");i=[],r.push(0===n.length?t:qi(e,n)(t)),n.push({inverse:a,styles:Ri(s)})}else if(l){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(qi(e,n)(i.join(""))),i=[],n.pop()}else i.push(u)}),r.push(i.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},Vi=Ht((function(e){const t=Ni.stdout,n="win32"===Hn.platform&&!(Hn.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),o=Object.create(null);function a(e,n){n=n||{};const 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 s(e){if(!this||!(this instanceof s)||this.template){const t={};return a(t,e),t.template=function(){const e=[].slice.call(arguments);return h.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,s.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=s,t.template}a(this,e)}n&&(_i.blue.open="");for(const p of Object.keys(_i))_i[p].closeRe=new RegExp(hi(_i[p].close),"g"),o[p]={get(){const e=_i[p];return u.call(this,this._styles?this._styles.concat(e):[e],this._empty,p)}};o.visible={get(){return u.call(this,this._styles||[],!0,"visible")}},_i.color.closeRe=new RegExp(hi(_i.color.close),"g");for(const p of Object.keys(_i.color.ansi))i.has(p)||(o[p]={get(){const e=this.level;return function(){const t=_i.color[r[e]][p].apply(null,arguments),n={open:t,close:_i.color.close,closeRe:_i.color.closeRe};return u.call(this,this._styles?this._styles.concat(n):[n],this._empty,p)}}});_i.bgColor.closeRe=new RegExp(hi(_i.bgColor.close),"g");for(const p of Object.keys(_i.bgColor.ansi)){if(i.has(p))continue;const e="bg"+p[0].toUpperCase()+p.slice(1);o[e]={get(){const e=this.level;return function(){const t=_i.bgColor[r[e]][p].apply(null,arguments),n={open:t,close:_i.bgColor.close,closeRe:_i.bgColor.closeRe};return u.call(this,this._styles?this._styles.concat(n):[n],this._empty,p)}}}}const l=Object.defineProperties(()=>{},o);function u(e,t,n){const r=function e(){return c.apply(e,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get(){return i.level},set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get(){return i.enabled},set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=l,r}function c(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n{const r=["".concat(Vi.default.yellow("string"===typeof e?n.key(e):n.pair(e))," is deprecated")];return t&&r.push("we now treat it as ".concat(Vi.default.blue("string"===typeof t?n.key(t):n.pair(t)))),r.join("; ")+"."}})));Vt(Hi);Hi.commonDeprecatedHandler;var Wi=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),li.__exportStar(Hi,t)}));Vt(Wi);var Ui=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonInvalidHandler=(e,t,n)=>["Invalid ".concat(Vi.default.red(n.descriptor.key(e))," value."),"Expected ".concat(Vi.default.blue(n.schemas[e].expected(n)),","),"but received ".concat(Vi.default.red(n.descriptor.value(t)),".")].join(" ")}));Vt(Ui);Ui.commonInvalidHandler;var Gi=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),li.__exportStar(Ui,t)}));Vt(Gi);var Yi=[],Ki=[],Xi=function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);var r=e.length,i=t.length;if(0===r)return i;if(0===i)return r;while(r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i))r--,i--;if(0===r)return i;var o,a,s,l,u=0;while(ua?l>a?a+1:l:l>s?s+1:l;return a},Ji=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.levenUnknownHandler=(e,t,{descriptor:n,logger:r,schemas:i})=>{const o=["Ignored unknown option ".concat(Vi.default.yellow(n.pair({key:e,value:t})),".")],a=Object.keys(i).sort().find(t=>Xi(e,t)<3);a&&o.push("Did you mean ".concat(Vi.default.blue(n.key(a)),"?")),r.warn(o.join(" "))}}));Vt(Ji);Ji.levenUnknownHandler;var Zi=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),li.__exportStar(Ji,t)}));Vt(Zi);var Qi=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),li.__exportStar(Wi,t),li.__exportStar(Gi,t),li.__exportStar(Zi,t)}));Vt(Qi);var eo=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,t){const r=new e(t),a=Object.create(r);for(const s of n)s in t&&(a[s]=o(t[s],r,i.prototype[s].length));return a}t.createSchema=r;class i{constructor(e){this.name=e.name}static create(e){return r(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return e}}function o(e,t,n){return"function"===typeof e?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}t.Schema=i}));Vt(eo);eo.createSchema,eo.Schema;var to=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends eo.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}}t.AliasSchema=n}));Vt(to);to.AliasSchema;var no=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends eo.Schema{expected(){return"anything"}validate(){return!0}}t.AnySchema=n}));Vt(no);no.AnySchema;var ro=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends eo.Schema{constructor(e){var{valueSchema:t,name:n=t.name}=e,r=li.__rest(e,["valueSchema","name"]);super(Object.assign({},r,{name:n})),this._valueSchema=t}expected(e){return"an array of ".concat(this._valueSchema.expected(e))}validate(e,t){if(!Array.isArray(e))return!1;const n=[];for(const r of e){const e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){const n=[];for(const r of e){const e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map(({value:e})=>({value:[e]})))}return n}forward(e,t){const n=[];for(const i of e){const e=t.normalizeForwardResult(this._valueSchema.forward(i,t),i);n.push(...e.map(r))}return n}redirect(e,t){const n=[],i=[];for(const o of e){const e=t.normalizeRedirectResult(this._valueSchema.redirect(o,t),o);"remain"in e&&n.push(e.remain),i.push(...e.redirect.map(r))}return 0===n.length?{redirect:i}:{redirect:i,remain:n}}overlap(e,t){return e.concat(t)}}function r({from:e,to:t}){return{from:[e],to:t}}t.ArraySchema=n}));Vt(ro);ro.ArraySchema;var io=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends eo.Schema{expected(){return"true or false"}validate(e){return"boolean"===typeof e}}t.BooleanSchema=n}));Vt(io);io.BooleanSchema;var oo=Ht((function(e,t){function n(e,t){const n=Object.create(null);for(const r of e){const e=r[t];if(n[e])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n[e]=r}return n}function r(e,t){const n=new Map;for(const r of e){const e=r[t];if(n.has(e))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n.set(e,r)}return n}function i(){const e=Object.create(null);return t=>{const n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}}function o(e,t){const n=[],r=[];for(const i of e)t(i)?n.push(i):r.push(i);return[n,r]}function a(e){return e===Math.floor(e)}function s(e,t){if(e===t)return 0;const n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)}function l(e){return void 0===e?{}:e}function u(e,t){return!0===e||(!1===e?{value:t}:e)}function c(e,t,n=!1){return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function h(e,t){return"string"===typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function p(e,t){return void 0===e?[]:Array.isArray(e)?e.map(e=>h(e,t)):[h(e,t)]}function d(e,t){const n=p("object"===typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"===typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.recordFromArray=n,t.mapFromArray=r,t.createAutoChecklist=i,t.partition=o,t.isInt=a,t.comparePrimitive=s,t.normalizeDefaultResult=l,t.normalizeValidateResult=u,t.normalizeDeprecatedResult=c,t.normalizeTransferResult=h,t.normalizeForwardResult=p,t.normalizeRedirectResult=d}));Vt(oo);oo.recordFromArray,oo.mapFromArray,oo.createAutoChecklist,oo.partition,oo.isInt,oo.comparePrimitive,oo.normalizeDefaultResult,oo.normalizeValidateResult,oo.normalizeDeprecatedResult,oo.normalizeTransferResult,oo.normalizeForwardResult,oo.normalizeRedirectResult;var ao=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends eo.Schema{constructor(e){super(e),this._choices=oo.mapFromArray(e.choices.map(e=>e&&"object"===typeof e?e:{value:e}),"value")}expected({descriptor:e}){const t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(e=>!e.deprecated).map(e=>e.value).sort(oo.comparePrimitive).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return n.concat(r.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){const t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){const t=this._choices.get(e);return t?t.forward:void 0}redirect(e){const t=this._choices.get(e);return t?t.redirect:void 0}}t.ChoiceSchema=n}));Vt(ao);ao.ChoiceSchema;var so=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends eo.Schema{expected(){return"a number"}validate(e,t){return"number"===typeof e}}t.NumberSchema=n}));Vt(so);so.NumberSchema;var lo=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends so.NumberSchema{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&oo.isInt(e)}}t.IntegerSchema=n}));Vt(lo);lo.IntegerSchema;var uo=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends eo.Schema{expected(){return"a string"}validate(e){return"string"===typeof e}}t.StringSchema=n}));Vt(uo);uo.StringSchema;var co=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),li.__exportStar(to,t),li.__exportStar(no,t),li.__exportStar(ro,t),li.__exportStar(io,t),li.__exportStar(ao,t),li.__exportStar(lo,t),li.__exportStar(so,t),li.__exportStar(uo,t)}));Vt(co);var ho=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=si.apiDescriptor,t.defaultUnknownHandler=Ji.levenUnknownHandler,t.defaultInvalidHandler=Gi.commonInvalidHandler,t.defaultDeprecatedHandler=Hi.commonDeprecatedHandler}));Vt(ho);ho.defaultDescriptor,ho.defaultUnknownHandler,ho.defaultInvalidHandler,ho.defaultDeprecatedHandler;var po=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=(e,t,r)=>new n(t,r).normalize(e);class n{constructor(e,t){const{logger:n=console,descriptor:r=ho.defaultDescriptor,unknown:i=ho.defaultUnknownHandler,invalid:o=ho.defaultInvalidHandler,deprecated:a=ho.defaultDeprecatedHandler}=t||{};this._utils={descriptor:r,logger:n||{warn:()=>{}},schemas:oo.recordFromArray(e,"name"),normalizeDefaultResult:oo.normalizeDefaultResult,normalizeDeprecatedResult:oo.normalizeDeprecatedResult,normalizeForwardResult:oo.normalizeForwardResult,normalizeRedirectResult:oo.normalizeRedirectResult,normalizeValidateResult:oo.normalizeValidateResult},this._unknownHandler=i,this._invalidHandler=o,this._deprecatedHandler=a,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=oo.createAutoChecklist()}normalize(e){const t={},n=[e],r=()=>{while(0!==n.length){const e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(const i of Object.keys(this._utils.schemas)){const e=this._utils.schemas[i];if(!(i in t)){const t=oo.normalizeDefaultResult(e.default(this._utils));"value"in t&&n.push({[i]:t.value})}}r();for(const i of Object.keys(this._utils.schemas)){const e=this._utils.schemas[i];i in t&&(t[i]=e.postprocess(t[i],this._utils))}return t}_applyNormalization(e,t){const n=[],[r,i]=oo.partition(Object.keys(e),e=>e in this._utils.schemas);for(const o of r){const r=this._utils.schemas[o],i=r.preprocess(e[o],this._utils),a=oo.normalizeValidateResult(r.validate(i,this._utils),i);if(!0!==a){const{value:e}=a,t=this._invalidHandler(o,e,this._utils);throw"string"===typeof t?new Error(t):t}const s=({from:e,to:t})=>{n.push("string"===typeof t?{[t]:e}:{[t.key]:t.value})},l=({value:e,redirectTo:t})=>{const n=oo.normalizeDeprecatedResult(r.deprecated(e,this._utils),i,!0);if(!1!==n)if(!0===n)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,t,this._utils));else for(const{value:r}of n){const e={key:o,value:r};if(!this._hasDeprecationWarned(e)){const n="string"===typeof t?{key:t,value:r}:t;this._utils.logger.warn(this._deprecatedHandler(e,n,this._utils))}}},u=oo.normalizeForwardResult(r.forward(i,this._utils),i);u.forEach(s);const c=oo.normalizeRedirectResult(r.redirect(i,this._utils),i);if(c.redirect.forEach(s),"remain"in c){const e=c.remain;t[o]=o in t?r.overlap(t[o],e,this._utils):e,l({value:e})}for(const{from:e,to:t}of c.redirect)l({value:e,redirectTo:t})}for(const o of i){const r=e[o],i=this._unknownHandler(o,r,this._utils);if(i)for(const e of Object.keys(i)){const r={[e]:i[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}}t.Normalizer=n}));Vt(po);po.normalize,po.Normalizer;var fo=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),li.__exportStar(ui,t),li.__exportStar(Qi,t),li.__exportStar(co,t),li.__exportStar(po,t),li.__exportStar(eo,t)}));Vt(fo);const mo=[],go=[],vo=(e,t)=>{if(e===t)return 0;const n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;while(r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i))r--,i--;let o,a,s,l,u=0;while(ua?l>a?a+1:l:l>s?s+1:l;return a};var yo=vo,bo=vo;yo.default=bo;var Do={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]};const xo={};for(const t of Object.keys(Do))xo[Do[t]]=t;const wo={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"]}};var Co=wo;for(const t of Object.keys(wo)){if(!("channels"in wo[t]))throw new Error("missing channels property: "+t);if(!("labels"in wo[t]))throw new Error("missing channel labels property: "+t);if(wo[t].labels.length!==wo[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=wo[t];delete wo[t].channels,delete wo[t].labels,Object.defineProperty(wo[t],"channels",{value:e}),Object.defineProperty(wo[t],"labels",{value:n})}function _o(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}function ko(){const e={},t=Object.keys(Co);for(let n=t.length,r=0;r1&&(i-=1)),[360*i,100*o,100*u]},wo.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=wo.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*o,100*r]},wo.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),o=(1-t-i)/(1-i)||0,a=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[100*o,100*a,100*s,100*i]},wo.rgb.keyword=function(e){const t=xo[e];if(t)return t;let n,r=1/0;for(const i of Object.keys(Do)){const t=Do[i],o=_o(e,t);o.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=.4124*t+.3576*n+.1805*r,o=.2126*t+.7152*n+.0722*r,a=.0193*t+.1192*n+.9505*r;return[100*i,100*o,100*a]},wo.rgb.lab=function(e){const t=wo.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*r-16,a=500*(n-r),s=200*(r-i);return[o,a,s]},wo.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,a;if(0===n)return a=255*r,[a,a,a];i=r<.5?r*(1+n):r+n-r*n;const s=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,a=6*o<1?s+6*(i-s)*o:2*o<1?i:3*o<2?s+(i-s)*(2/3-o)*6:s,l[u]=255*a;return l},wo.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;const a=(r+n)/2,s=0===r?2*i/(o+i):2*n/(r+n);return[t,100*s,100*a]},wo.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},wo.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,100*o,100*a]},wo.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*t),s=1-r;o=6*t-a,0!==(1&a)&&(o=1-o);const l=n+o*(s-n);let u,c,h;switch(a){default:case 6:case 0:u=s,c=l,h=n;break;case 1:u=l,c=s,h=n;break;case 2:u=n,c=s,h=l;break;case 3:u=n,c=l,h=s;break;case 4:u=l,c=n,h=s;break;case 5:u=s,c=n,h=l;break}return[255*u,255*c,255*h]},wo.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[255*o,255*a,255*s]},wo.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,a;return i=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[255*i,255*o,255*a]},wo.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,o=500*(t-n),a=200*(n-r);return[i,o,a]},wo.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,o,a;o=(t+16)/116,i=n/500+o,a=o-r/200;const s=o**3,l=i**3,u=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]},wo.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;const o=Math.atan2(r,n);i=360*o/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(n*n+r*r);return[t,a,i]},wo.lch.lab=function(e){const t=e[0],n=e[1],r=e[2],i=r/360*2*Math.PI,o=n*Math.cos(i),a=n*Math.sin(i);return[t,o,a]},wo.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=null===t?wo.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===o&&(a+=60),a},wo.hsv.ansi16=function(e){return wo.rgb.ansi16(wo.hsv.rgb(e),e[2])},wo.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;const i=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i},wo.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50)),r=(1&t)*n*255,i=(t>>1&1)*n*255,o=(t>>2&1)*n*255;return[r,i,o]},wo.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]},wo.rgb.hex=function(e){const t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n},wo.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));const r=parseInt(n,16),i=r>>16&255,o=r>>8&255,a=255&r;return[i,o,a]},wo.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),a=i-o;let s,l;return s=a<1?o/(1-a):0,l=a<=0?0:i===t?(n-r)/a%6:i===n?2+(r-t)/a:4+(t-n)/a,l/=6,l%=1,[360*l,100*a,100*s]},wo.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},wo.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},wo.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},wo.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],100*i,100*r]},wo.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100,r=n*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],100*i,100*r]},wo.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],100*(r-t),100*(1-r)]},wo.hwb.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=1-n,i=r-t;let o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],100*i,100*o]},wo.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},wo.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},wo.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},wo.gray.hsl=function(e){return[0,0,e[0]]},wo.gray.hsv=wo.gray.hsl,wo.gray.hwb=function(e){return[0,100,e[0]]},wo.gray.cmyk=function(e){return[0,0,0,e[0]]},wo.gray.lab=function(e){return[e[0],0,0]},wo.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=(t<<16)+(t<<8)+t,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r},wo.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]};var Fo=function(e){const t=Eo(e),n={},r=Object.keys(t);for(let i=r.length,o=0;o1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function Lo(e){const t=function(...t){const n=t[0];if(void 0===n||null===n)return n;n.length>1&&(t=n);const r=e(t);if("object"===typeof r)for(let e=r.length,i=0;i{To[e]={},Object.defineProperty(To[e],"channels",{value:Co[e].channels}),Object.defineProperty(To[e],"labels",{value:Co[e].labels});const t=Fo(e),n=Object.keys(t);n.forEach(n=>{const r=t[n];To[e][n]=Lo(r),To[e][n].raw=No(r)})});var Bo=To,Po=Ht((function(e){const t=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(r+t,"m")},n=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(38+t,";5;").concat(r,"m")},r=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(38+t,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")},i=e=>e,o=(e,t,n)=>[e,t,n],a=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let s;const l=(e,t,n,r)=>{void 0===s&&(s=Bo);const i=r?10:0,o={};for(const[a,l]of Object.entries(s)){const r="ansi16"===a?"ansi":a;a===t?o[r]=e(n,i):"object"===typeof l&&(o[r]=e(l[t],i))}return o};function u(){const e=new Map,s={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],blackBright:[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]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(const[t,n]of Object.entries(s)){for(const[t,r]of Object.entries(n))s[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=s[t],e.set(r[0],r[1]);Object.defineProperty(s,t,{value:n,enumerable:!1})}return Object.defineProperty(s,"codes",{value:e,enumerable:!1}),s.color.close="",s.bgColor.close="",a(s.color,"ansi",()=>l(t,"ansi16",i,!1)),a(s.color,"ansi256",()=>l(n,"ansi256",i,!1)),a(s.color,"ansi16m",()=>l(r,"rgb",o,!1)),a(s.bgColor,"ansi",()=>l(t,"ansi16",i,!0)),a(s.bgColor,"ansi256",()=>l(n,"ansi256",i,!0)),a(s.bgColor,"ansi16m",()=>l(r,"rgb",o,!0)),s}Object.defineProperty(e,"exports",{enumerable:!0,get:u})})),Mo={isatty(){return!1}},jo=(e,t=Hn.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r=2,has16m:e>=3}}function qo(e,t){if(0===$o)return 0;if(jo("color=16m")||jo("color=full")||jo("color=truecolor"))return 3;if(jo("color=256"))return 2;if(e&&!t&&void 0===$o)return 0;const n=$o||0;if("dumb"===Io.TERM)return n;if("win32"===Hn.platform){const e=ki.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Io)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in Io)||"codeship"===Io.CI_NAME?1:n;if("TEAMCITY_VERSION"in Io)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Io.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in Io)return 1;if("truecolor"===Io.COLORTERM)return 3;if("TERM_PROGRAM"in Io){const e=parseInt((Io.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Io.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Io.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Io.TERM)||"COLORTERM"in Io?1:n}function zo(e){const t=qo(e,e&&e.isTTY);return Ro(t)}jo("no-color")||jo("no-colors")||jo("color=false")||jo("color=never")?$o=0:(jo("color")||jo("colors")||jo("color=true")||jo("color=always"))&&($o=1),"FORCE_COLOR"in Io&&($o="true"===Io.FORCE_COLOR?1:"false"===Io.FORCE_COLOR?0:0===Io.FORCE_COLOR.length?1:Math.min(parseInt(Io.FORCE_COLOR,10),3));var Vo={supportsColor:zo,stdout:Ro(qo(!0,Mo.isatty(1))),stderr:Ro(qo(!0,Mo.isatty(2)))};const Ho=(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const i=t.length;let o=0,a="";do{a+=e.substr(o,r-o)+t+n,o=r+i,r=e.indexOf(t,o)}while(-1!==r);return a+=e.substr(o),a},Wo=(e,t,n,r)=>{let i=0,o="";do{const a="\r"===e[r-1];o+=e.substr(i,(a?r-1:r)-i)+t+(a?"\r\n":"\n")+n,i=r+1,r=e.indexOf("\n",i)}while(-1!==r);return o+=e.substr(i),o};var Uo={stringReplaceAll:Ho,stringEncaseCRLFWithFirstIndex:Wo};const Go=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Yo=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Ko=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Xo=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Jo=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Zo(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Jo.get(e)||e}function Qo(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const o of r){const t=Number(o);if(Number.isNaN(t)){if(!(i=o.match(Ko)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));n.push(i[2].replace(Xo,(e,t,n)=>t?Zo(t):n))}else n.push(t)}return n}function ea(e){Yo.lastIndex=0;const t=[];let n;while(null!==(n=Yo.exec(e))){const e=n[1];if(n[2]){const r=Qo(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function ta(e,t){const n={};for(const i of t)for(const e of i.styles)n[e[0]]=i.inverse?null:e.slice(1);let r=e;for(const[i,o]of Object.entries(n))if(Array.isArray(o)){if(!(i in r))throw new Error("Unknown Chalk style: ".concat(i));r=o.length>0?r[i](...o):r[i]}return r}var na=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(Go,(t,o,a,s,l,u)=>{if(o)i.push(Zo(o));else if(s){const t=i.join("");i=[],r.push(0===n.length?t:ta(e,n)(t)),n.push({inverse:a,styles:ea(s)})}else if(l){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(ta(e,n)(i.join(""))),i=[],n.pop()}else i.push(u)}),r.push(i.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")};const{stdout:ra,stderr:ia}=Vo,{stringReplaceAll:oa,stringEncaseCRLFWithFirstIndex:aa}=Uo,sa=["ansi","ansi","ansi256","ansi16m"],la=Object.create(null),ua=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=ra?ra.level:0;e.level=void 0===t.level?n:t.level};class ca{constructor(e){return ha(e)}}const ha=e=>{const t={};return ua(t,e),t.template=(...e)=>ba(t.template,...e),Object.setPrototypeOf(t,pa.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=ca,t.template};function pa(e){return ha(e)}for(const[t,gB]of Object.entries(Po))la[t]={get(){const e=ga(this,ma(gB.open,gB.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:e}),e}};la.visible={get(){const e=ga(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const da=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of da)la[t]={get(){const{level:e}=this;return function(...n){const r=ma(Po.color[sa[e]][t](...n),Po.color.close,this._styler);return ga(this,r,this._isEmpty)}}};for(const t of da){const e="bg"+t[0].toUpperCase()+t.slice(1);la[e]={get(){const{level:e}=this;return function(...n){const r=ma(Po.bgColor[sa[e]][t](...n),Po.bgColor.close,this._styler);return ga(this,r,this._isEmpty)}}}}const fa=Object.defineProperties(()=>{},Object.assign({},la,{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),ma=(e,t,n)=>{let r,i;return void 0===n?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},ga=(e,t,n)=>{const r=(...e)=>va(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,fa),r._generator=e,r._styler=t,r._isEmpty=n,r},va=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:i}=n;if(-1!==t.indexOf(""))while(void 0!==n)t=oa(t,n.close,n.open),n=n.parent;const o=t.indexOf("\n");return-1!==o&&(t=aa(t,i,r,o)),r+t+i};let ya;const ba=(e,...t)=>{const[n]=t;if(!Array.isArray(n))return t.join(" ");const r=t.slice(1),i=[n.raw[0]];for(let o=1;o1===e.length?"-".concat(e):"--".concat(e),value:e=>fo.apiDescriptor.value(e),pair:({key:e,value:t})=>!1===t?"--no-".concat(e):!0===t?wa.key(e):""===t?"".concat(wa.key(e)," without an argument"):"".concat(wa.key(e),"=").concat(t)};class Ca extends fo.ChoiceSchema{constructor({name:e,flags:t}){super({name:e,choices:t}),this._flags=t.slice().sort()}preprocess(e,t){if("string"===typeof e&&0!==e.length&&!this._flags.includes(e)){const n=this._flags.find(t=>yo(t,e)<3);if(n)return t.logger.warn(["Unknown flag ".concat(xa.yellow(t.descriptor.value(e)),","),"did you mean ".concat(xa.blue(t.descriptor.value(n)),"?")].join(" ")),n}return e}expected(){return"a flag"}}let _a;function ka(e,t,{logger:n,isCLI:r=!1,passThrough:i=!1}={}){const o=i?Array.isArray(i)?(e,t)=>i.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):fo.levenUnknownHandler,a=r?wa:fo.apiDescriptor,s=Ea(t,{isCLI:r}),l=new fo.Normalizer(s,{logger:n,unknown:o,descriptor:a}),u=!1!==n;u&&_a&&(l._hasDeprecationWarned=_a);const c=l.normalize(e);return u&&(_a=l._hasDeprecationWarned),c}function Ea(e,{isCLI:t}){const n=[];t&&n.push(fo.AnySchema.create({name:"_"}));for(const r of e)n.push(Sa(r,{isCLI:t,optionInfos:e})),r.alias&&t&&n.push(fo.AliasSchema.create({name:r.alias,sourceName:r.name}));return n}function Sa(e,{isCLI:t,optionInfos:n}){let r;const i={name:e.name},o={};switch(e.type){case"int":r=fo.IntegerSchema,t&&(i.preprocess=e=>Number(e));break;case"string":r=fo.StringSchema;break;case"choice":r=fo.ChoiceSchema,i.choices=e.choices.map(t=>"object"===typeof t&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t);break;case"boolean":r=fo.BooleanSchema;break;case"flag":r=Ca,i.flags=n.map(e=>[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[])).reduce((e,t)=>e.concat(t),[]);break;case"path":r=fo.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?i.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):i.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(o.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),t&&!e.array){const e=i.preprocess||(e=>e);i.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?t[t.length-1]:t),r)}return e.array?fo.ArraySchema.create(Object.assign({},t?{preprocess:e=>[].concat(e)}:{},{},o,{valueSchema:r.create(i)})):r.create(Object.assign({},i,{},o))}function Aa(e,t,n){return ka(e,t,n)}function Fa(e,t,n){return ka(e,t,Object.assign({isCLI:!0},n))}var Ta={normalizeApiOptions:Aa,normalizeCliOptions:Fa},Oa=e=>e[e.length-1];function Na(e,t){return t=t||{},!t.ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?Na(e.declaration.decorators[0]):!t.ignoreDecorators&&e.decorators&&e.decorators.length>0?Na(e.decorators[0]):e.__location?e.__location.startOffset:e.range?e.range[0]:"number"===typeof e.start?e.start:e.loc?e.loc.start:null}function La(e){const t=e.nodes&&Oa(e.nodes);if(t&&e.source&&!e.source.end&&(e=t),e.__location)return e.__location.endOffset;const n=e.range?e.range[1]:"number"===typeof e.end?e.end:null;return e.typeAnnotation?Math.max(n,La(e.typeAnnotation)):e.loc&&!n?e.loc.end:n}function Ba(e,t=e){const n="number"===typeof t?t:-1,r=Na(e),i=-1!==n?r+n:La(t),o=e.loc.start;return{start:r,end:i,range:[r,i],loc:{start:o,end:-1!==n?{line:o.line,column:o.column+n}:t.loc.end}}}var Pa={locStart:Na,locEnd:La,composeLoc:Ba},Ma=Ht((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}}));Vt(Ma);Ma.matchToToken;var ja=Ht((function(e){(function(){function t(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}function n(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(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 i(e){return r(e)||null!=e&&"FunctionDeclaration"===e.type}function o(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}function a(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=o(t)}while(t);return!1}e.exports={isExpression:t,isStatement:r,isIterationStatement:n,isSourceElement:i,isProblematicIfStatement:a,trailingStatement:o}})()})),Ia=(ja.isExpression,ja.isStatement,ja.isIterationStatement,ja.isSourceElement,ja.isProblematicIfStatement,ja.trailingStatement,Ht((function(e){(function(){var t,n,r,i,o,a;function s(e){return 48<=e&&e<=57}function l(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function u(e){return e>=48&&e<=55}function c(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0}function h(e){return 10===e||13===e||8232===e||8233===e}function p(e){if(e<=65535)return String.fromCharCode(e);var t=String.fromCharCode(Math.floor((e-65536)/1024)+55296),n=String.fromCharCode((e-65536)%1024+56320);return t+n}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-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(o=new Array(128),a=0;a<128;++a)o[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;function d(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(p(e))}function f(e){return e<128?o[e]:n.NonAsciiIdentifierPart.test(p(e))}function m(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(p(e))}function g(e){return e<128?o[e]:t.NonAsciiIdentifierPart.test(p(e))}e.exports={isDecimalDigit:s,isHexDigit:l,isOctalDigit:u,isWhiteSpace:c,isLineTerminator:h,isIdentifierStartES5:d,isIdentifierPartES5:f,isIdentifierStartES6:m,isIdentifierPartES6:g}})()}))),$a=(Ia.isDecimalDigit,Ia.isHexDigit,Ia.isOctalDigit,Ia.isWhiteSpace,Ia.isLineTerminator,Ia.isIdentifierStartES5,Ia.isIdentifierPartES5,Ia.isIdentifierStartES6,Ia.isIdentifierPartES6,Ht((function(e){(function(){var t=Ia;function n(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(e,t){return!(!t&&"yield"===e)&&i(e,t)}function i(e,t){if(t&&n(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 o(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||i(e,t)}function s(e){return"eval"===e||"arguments"===e}function l(e){var n,r,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(n=1,r=e.length;n=r)return!1;if(o=e.charCodeAt(n),!(56320<=o&&o<=57343))return!1;i=u(i,o)}if(!a(i))return!1;a=t.isIdentifierPartES6}return!0}function h(e,t){return l(e)&&!o(e,t)}function p(e,t){return c(e)&&!a(e,t)}e.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:o,isReservedWordES6:a,isRestrictedWord:s,isIdentifierNameES5:l,isIdentifierNameES6:c,isIdentifierES5:h,isIdentifierES6:p}})()}))),Ra=($a.isKeywordES5,$a.isKeywordES6,$a.isReservedWordES5,$a.isReservedWordES6,$a.isRestrictedWord,$a.isIdentifierNameES5,$a.isIdentifierNameES6,$a.isIdentifierES5,$a.isIdentifierES6,Ht((function(e,t){(function(){t.ast=ja,t.code=Ia,t.keyword=$a})()}))),qa=(Ra.ast,Ra.code,Ra.keyword,/[|\\{}()[\]^$+*?.]/g),za=function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(qa,"\\$&")},Va={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]},Ha=Ht((function(e){var t={};for(var n in Va)Va.hasOwnProperty(n)&&(t[Va[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 i in r)if(r.hasOwnProperty(i)){if(!("channels"in r[i]))throw new Error("missing channels property: "+i);if(!("labels"in r[i]))throw new Error("missing channel labels property: "+i);if(r[i].labels.length!==r[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=r[i].channels,a=r[i].labels;delete r[i].channels,delete r[i].labels,Object.defineProperty(r[i],"channels",{value:o}),Object.defineProperty(r[i],"labels",{value:a})}function s(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}r.rgb.hsl=function(e){var t,n,r,i=e[0]/255,o=e[1]/255,a=e[2]/255,s=Math.min(i,o,a),l=Math.max(i,o,a),u=l-s;return l===s?t=0:i===l?t=(o-a)/u:o===l?t=2+(a-i)/u:a===l&&(t=4+(i-o)/u),t=Math.min(60*t,360),t<0&&(t+=360),r=(s+l)/2,n=l===s?0:r<=.5?u/(l+s):u/(2-l-s),[t,100*n,100*r]},r.rgb.hsv=function(e){var t,n,r,i,o,a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),c=u-Math.min(a,s,l),h=function(e){return(u-e)/6/c+.5};return 0===c?i=o=0:(o=c/u,t=h(a),n=h(s),r=h(l),a===u?i=r-n:s===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2],o=r.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,i));return i=1-1/255*Math.max(t,Math.max(n,i)),[o,100*a,100*i]},r.rgb.cmyk=function(e){var t,n,r,i,o=e[0]/255,a=e[1]/255,s=e[2]/255;return i=Math.min(1-o,1-a,1-s),t=(1-o-i)/(1-i)||0,n=(1-a-i)/(1-i)||0,r=(1-s-i)/(1-i)||0,[100*t,100*n,100*r,100*i]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,i=1/0;for(var o in Va)if(Va.hasOwnProperty(o)){var a=Va[o],l=s(e,a);l.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=.4124*t+.3576*n+.1805*r,o=.2126*t+.7152*n+.0722*r,a=.0193*t+.1192*n+.9505*r;return[100*i,100*o,100*a]},r.rgb.lab=function(e){var t,n,i,o=r.rgb.xyz(e),a=o[0],s=o[1],l=o[2];return a/=95.047,s/=100,l/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,t=116*s-16,n=500*(a-s),i=200*(s-l),[t,n,i]},r.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return o=255*l,[o,o,o];n=l<.5?l*(1+s):l+s-l*s,t=2*l-n,i=[0,0,0];for(var u=0;u<3;u++)r=a+1/3*-(u-1),r<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*o;return i},r.hsl.hsv=function(e){var t,n,r=e[0],i=e[1]/100,o=e[2]/100,a=i,s=Math.max(o,.01);return o*=2,i*=o<=1?o:2-o,a*=s<=1?s:2-s,n=(o+i)/2,t=0===o?2*a/(s+a):2*i/(o+i),[r,100*t,100*n]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},r.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,t=(2-o)*s,n=o*s,n/=t<=1?t:2-t,n=n||0,r/=2,[i,100*n,100*r]},r.hwb.rgb=function(e){var t,n,r,i,o,a,s,l=e[0]/360,u=e[1]/100,c=e[2]/100,h=u+c;switch(h>1&&(u/=h,c/=h),t=Math.floor(6*l),n=1-c,r=6*l-t,0!==(1&t)&&(r=1-r),i=u+r*(n-u),t){default:case 6:case 0:o=n,a=i,s=u;break;case 1:o=i,a=n,s=u;break;case 2:o=u,a=n,s=i;break;case 3:o=u,a=i,s=n;break;case 4:o=i,a=u,s=n;break;case 5:o=n,a=u,s=i;break}return[255*o,255*a,255*s]},r.cmyk.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100,s=e[3]/100;return t=1-Math.min(1,i*(1-s)+s),n=1-Math.min(1,o*(1-s)+s),r=1-Math.min(1,a*(1-s)+s),[255*t,255*n,255*r]},r.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return t=3.2406*i+-1.5372*o+-.4986*a,n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=t>.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,t=Math.min(Math.max(0,t),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*t,255*n,255*r]},r.xyz.lab=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];return i/=95.047,o/=100,a/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,t=116*o-16,n=500*(i-o),r=200*(o-a),[t,n,r]},r.lab.xyz=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];n=(i+16)/116,t=o/500+n,r=n-a/200;var s=Math.pow(n,3),l=Math.pow(t,3),u=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,r=u>.008856?u:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},r.lab.lch=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];return t=Math.atan2(a,o),n=360*t/2/Math.PI,n<0&&(n+=360),r=Math.sqrt(o*o+a*a),[i,r,n]},r.lch.lab=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];return r=a/360*2*Math.PI,t=o*Math.cos(r),n=o*Math.sin(r),[i,t,n]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],o=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(o=Math.round(o/50),0===o)return 30;var a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(a+=60),a},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];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i},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,t];var n=.5*(1+~~(e>50)),r=(1&t)*n*255,i=(t>>1&1)*n*255,o=(t>>2&1)*n*255;return[r,i,o]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;e-=16;var r=Math.floor(e/36)/5*255,i=Math.floor((n=e%36)/6)/5*255,o=n%6/5*255;return[r,i,o]},r.rgb.hex=function(e){var t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n},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),i=r>>16&255,o=r>>8&255,a=255&r;return[i,o,a]},r.rgb.hcg=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.max(Math.max(r,i),o),s=Math.min(Math.min(r,i),o),l=a-s;return t=l<1?s/(1-l):0,n=l<=0?0:a===r?(i-o)/l%6:a===i?2+(o-r)/l:4+(r-i)/l+4,n/=6,n%=1,[360*n,100*l,100*t]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return r=n<.5?2*t*n:2*t*(1-n),r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},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 i=[0,0,0],o=t%1*6,a=o%1,s=1-a,l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},r.hcg.hsv=function(e){var t=e[1]/100,n=e[2]/100,r=t+n*(1-t),i=0;return r>0&&(i=t/r),[e[0],100*i,100*r]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100,r=n*(1-t)+.5*t,i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],100*i,100*r]},r.hcg.hwb=function(e){var t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],100*(r-t),100*(1-r)]},r.hwb.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1-n,i=r-t,o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],100*i,100*o]},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,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r},r.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}}));Ha.rgb,Ha.hsl,Ha.hsv,Ha.hwb,Ha.cmyk,Ha.xyz,Ha.lab,Ha.lch,Ha.hex,Ha.keyword,Ha.ansi16,Ha.ansi256,Ha.hcg,Ha.apple,Ha.gray;function Wa(){for(var e={},t=Object.keys(Ha),n=t.length,r=0;r1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function Qa(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===typeof n)for(var r=n.length,i=0;ifunction(){const n=e.apply(es,arguments);return"[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(es,arguments);return"[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(es,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};function i(){const e=new Map,i={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]}};i.color.grey=i.color.gray;for(const t of Object.keys(i)){const n=i[t];for(const t of Object.keys(n)){const r=n[t];i[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=i[t],e.set(r[0],r[1])}Object.defineProperty(i,t,{value:n,enumerable:!1}),Object.defineProperty(i,"codes",{value:e,enumerable:!1})}const o=e=>e,a=(e,t,n)=>[e,t,n];i.color.close="",i.bgColor.close="",i.color.ansi={ansi:t(o,0)},i.color.ansi256={ansi256:n(o,0)},i.color.ansi16m={rgb:r(a,0)},i.bgColor.ansi={ansi:t(o,10)},i.bgColor.ansi256={ansi256:n(o,10)},i.bgColor.ansi16m={rgb:r(a,10)};for(let s of Object.keys(es)){if("object"!==typeof es[s])continue;const e=es[s];"ansi16"===s&&(s="ansi"),"ansi16"in e&&(i.color.ansi[s]=t(e.ansi16,0),i.bgColor.ansi[s]=t(e.ansi16,10)),"ansi256"in e&&(i.color.ansi256[s]=n(e.ansi256,0),i.bgColor.ansi256[s]=n(e.ansi256,10)),"rgb"in e&&(i.color.ansi16m[s]=r(e.rgb,0),i.bgColor.ansi16m[s]=r(e.rgb,10))}return i}Object.defineProperty(e,"exports",{enumerable:!0,get:i})}));const ns=Hn.env;let rs;function is(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function os(e){if(!1===rs)return 0;if(Ei("color=16m")||Ei("color=full")||Ei("color=truecolor"))return 3;if(Ei("color=256"))return 2;if(e&&!e.isTTY&&!0!==rs)return 0;const t=rs?1:0;if("win32"===Hn.platform){const e=ki.release().split(".");return Number(Hn.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in ns)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in ns)||"codeship"===ns.CI_NAME?1:t;if("TEAMCITY_VERSION"in ns)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ns.TEAMCITY_VERSION)?1:0;if("truecolor"===ns.COLORTERM)return 3;if("TERM_PROGRAM"in ns){const e=parseInt((ns.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ns.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ns.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ns.TERM)||"COLORTERM"in ns?1:(ns.TERM,t)}function as(e){const t=os(e);return is(t)}Ei("no-color")||Ei("no-colors")||Ei("color=false")?rs=!1:(Ei("color")||Ei("colors")||Ei("color=true")||Ei("color=always"))&&(rs=!0),"FORCE_COLOR"in ns&&(rs=0===ns.FORCE_COLOR.length||0!==parseInt(ns.FORCE_COLOR,10));var ss={supportsColor:as,stdout:as(Hn.stdout),stderr:as(Hn.stderr)};const ls=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,us=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,cs=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,hs=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,ps=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function ds(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):ps.get(e)||e}function fs(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const o of r)if(isNaN(o)){if(!(i=o.match(cs)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));n.push(i[2].replace(hs,(e,t,n)=>t?ds(t):n))}else n.push(Number(o));return n}function ms(e){us.lastIndex=0;const t=[];let n;while(null!==(n=us.exec(e))){const e=n[1];if(n[2]){const r=fs(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function gs(e,t){const n={};for(const i of t)for(const e of i.styles)n[e[0]]=i.inverse?null:e.slice(1);let r=e;for(const i of Object.keys(n))if(Array.isArray(n[i])){if(!(i in r))throw new Error("Unknown Chalk style: ".concat(i));r=n[i].length>0?r[i].apply(r,n[i]):r[i]}return r}var vs=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(ls,(t,o,a,s,l,u)=>{if(o)i.push(ds(o));else if(s){const t=i.join("");i=[],r.push(0===n.length?t:gs(e,n)(t)),n.push({inverse:a,styles:ms(s)})}else if(l){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(gs(e,n)(i.join(""))),i=[],n.pop()}else i.push(u)}),r.push(i.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},ys=Ht((function(e){const t=ss.stdout,n="win32"===Hn.platform&&!(Hn.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),o=Object.create(null);function a(e,n){n=n||{};const 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 s(e){if(!this||!(this instanceof s)||this.template){const t={};return a(t,e),t.template=function(){const e=[].slice.call(arguments);return h.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,s.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=s,t.template}a(this,e)}n&&(ts.blue.open="");for(const p of Object.keys(ts))ts[p].closeRe=new RegExp(za(ts[p].close),"g"),o[p]={get(){const e=ts[p];return u.call(this,this._styles?this._styles.concat(e):[e],this._empty,p)}};o.visible={get(){return u.call(this,this._styles||[],!0,"visible")}},ts.color.closeRe=new RegExp(za(ts.color.close),"g");for(const p of Object.keys(ts.color.ansi))i.has(p)||(o[p]={get(){const e=this.level;return function(){const t=ts.color[r[e]][p].apply(null,arguments),n={open:t,close:ts.color.close,closeRe:ts.color.closeRe};return u.call(this,this._styles?this._styles.concat(n):[n],this._empty,p)}}});ts.bgColor.closeRe=new RegExp(za(ts.bgColor.close),"g");for(const p of Object.keys(ts.bgColor.ansi)){if(i.has(p))continue;const e="bg"+p[0].toUpperCase()+p.slice(1);o[e]={get(){const e=this.level;return function(){const t=ts.bgColor[r[e]][p].apply(null,arguments),n={open:t,close:ts.bgColor.close,closeRe:ts.bgColor.closeRe};return u.call(this,this._styles?this._styles.concat(n):[n],this._empty,p)}}}}const l=Object.defineProperties(()=>{},o);function u(e,t,n){const r=function e(){return c.apply(e,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get(){return i.level},set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get(){return i.enabled},set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=l,r}function c(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;nr(e)).join("\n"):t[0]}))}function f(e){return i.default.supportsColor||e.forceColor}function m(e){let t=i.default;return e.forceColor&&(t=new i.default.constructor({enabled:!0,level:1})),t}function g(e,t={}){if(f(t)){const n=m(t),r=l(n);return d(r,e)}return e}})));Vt(bs);bs.shouldHighlight,bs.getChalk;var Ds=Ht((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=u,t.default=c;var n=i(bs);function r(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function i(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}let o=!1;function a(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}const s=/\r\n|[\n\r\u2028\u2029]/;function l(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,{},e.end),{linesAbove:o=2,linesBelow:a=3}=n||{},s=r.line,l=r.column,u=i.line,c=i.column;let h=Math.max(s-(o+1),0),p=Math.min(t.length,u+a);-1===s&&(h=0),-1===u&&(p=t.length);const d=u-s,f={};if(d)for(let m=0;m<=d;m++){const e=m+s;if(l)if(0===m){const n=t[e-1].length;f[e]=[l,n-l+1]}else if(m===d)f[e]=[0,c];else{const n=t[e-m].length;f[e]=[0,n]}else f[e]=!0}else f[s]=l===c?!l||[l,0]:[l,c-l];return{start:h,end:p,markerLines:f}}function u(e,t,r={}){const i=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),o=(0,n.getChalk)(r),u=a(o),c=(e,t)=>i?e(t):t,h=e.split(s),{start:p,end:d,markerLines:f}=l(t,h,r),m=t.start&&"number"===typeof t.start.column,g=String(d).length,v=i?(0,n.default)(e,r):e;let y=v.split(s).slice(p,d).map((e,t)=>{const n=p+1+t,i=" ".concat(n).slice(-g),o=" ".concat(i," | "),a=f[n],s=!f[n+1];if(a){let t="";if(Array.isArray(a)){const n=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," "),i=a[1]||1;t=["\n ",c(u.gutter,o.replace(/\d/g," ")),n,c(u.marker,"^").repeat(i)].join(""),s&&r.message&&(t+=" "+c(u.message,r.message))}return[c(u.marker,">"),c(u.gutter,o),e,t].join("")}return" ".concat(c(u.gutter,o)).concat(e)}).join("\n");return r.message&&!m&&(y="".concat(" ".repeat(g+1)).concat(r.message,"\n").concat(y)),i?o.reset(y):y}function c(e,t,n,r={}){if(!o){o=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(Hn.emitWarning)Hn.emitWarning(e,"DeprecationWarning");else{const t=new Error(e);t.name="DeprecationWarning",console.warn(new Error(e))}}n=Math.max(n,0);const i={start:{column:n,line:t}};return u(e,i,r)}}));Vt(Ds);Ds.codeFrameColumns;const{ConfigError:xs}=en,{locStart:ws,locEnd:Cs}=Pa,_s=Object.getOwnPropertyNames,ks=Object.getOwnPropertyDescriptor;function Es(e){const t={};for(const n of e.plugins)if(n.parsers)for(const e of _s(n.parsers))Object.defineProperty(t,e,ks(n.parsers,e));return t}function Ss(e,t){if(t=t||Es(e),"function"===typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:ws,locEnd:Cs};if("string"===typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new xs("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}function As(e,t){const n=Es(t),r=Object.keys(n).reduce((e,t)=>Object.defineProperty(e,t,{enumerable:!0,get(){return n[t].parse}}),{}),i=Ss(t,n);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,r,t)}}catch(o){const{loc:t}=o;if(t){const n=Ds;throw o.codeFrame=n.codeFrameColumns(e,t,{highlightCode:!0}),o.message+="\n"+o.codeFrame,o}throw o.stack}}var Fs={parse:As,resolveParser:Ss};const{UndefinedParserError:Ts}=en,{getSupportInfo:Os}=Ir,{resolveParser:Ns}=Fs,Ls={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Bs(e,t){t=t||{};const n=Object.assign({},e),r=Os({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,i=Object.assign({},Ls,{},Xt(r.filter(e=>void 0!==e.default).map(e=>[e.name,e.default])));if(!n.parser)if(n.filepath){if(n.parser=js(n.filepath,n.plugins),!n.parser)throw new Ts("No parser could be inferred for file: ".concat(n.filepath))}else{const e=t.logger||console;e.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"}const o=Ns(Ta.normalizeApiOptions(n,[r.find(e=>"parser"===e.name)],{passThrough:!0,logger:!1}));n.astFormat=o.astFormat,n.locEnd=o.locEnd,n.locStart=o.locStart;const a=Ps(n);n.printer=a.printers[n.astFormat];const s=r.filter(e=>e.pluginDefaults&&void 0!==e.pluginDefaults[a.name]).reduce((e,t)=>Object.assign(e,{[t.name]:t.pluginDefaults[a.name]}),{}),l=Object.assign({},i,{},s);return Object.keys(l).forEach(e=>{null==n[e]&&(n[e]=l[e])}),"json"===n.parser&&(n.trailingComma="none"),Ta.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(Ls)},t))}function Ps(e){const{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");const n=e.plugins.find(e=>e.printers&&e.printers[t]);if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}function Ms(e){if("string"!==typeof e)return"";let t;try{t=Ut.openSync(e,"r")}catch(n){return""}try{const e=new Yt(t),r=e.next().toString("utf8"),i=r.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(i)return i[1];const o=r.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return o?o[1]:""}catch(n){return""}finally{try{Ut.closeSync(t)}catch(n){}}}function js(e,t){const n=Ae.basename(e).toLowerCase(),r=Os({plugins:t}).languages.filter(e=>null!==e.since);let i=r.find(e=>e.extensions&&e.extensions.some(e=>n.endsWith(e))||e.filenames&&e.filenames.find(e=>e.toLowerCase()===n));if(!i&&!n.includes(".")){const t=Ms(e);i=r.find(e=>e.interpreters&&e.interpreters.includes(t))}return i&&i.parsers[0]}var Is={normalize:Bs,hiddenDefaults:Ls,inferParser:js};function $s(e,t,n){if(Array.isArray(e))return e.map(e=>$s(e,t,n)).filter(Boolean);if(!e||"object"!==typeof e)return e;const r={};for(const i of Object.keys(e))"function"!==typeof e[i]&&(r[i]=$s(e[i],t,e));if(t.printer.massageAstNode){const i=t.printer.massageAstNode(e,r,n);if(null===i)return;if(i)return i}return r}var Rs=$s;function qs(){}function zs(e){return{type:"concat",parts:e}}function Vs(e){return{type:"indent",contents:e}}function Hs(e,t){return{type:"align",contents:t,n:e}}function Ws(e,t){return t=t||{},{type:"group",id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Us(e){return Hs(-1/0,e)}function Gs(e){return Hs({type:"root"},e)}function Ys(e){return Hs(-1,e)}function Ks(e,t){return Ws(e[0],Object.assign({},t,{expandedStates:e}))}function Xs(e){return{type:"fill",parts:e}}function Js(e,t,n){return n=n||{},{type:"if-break",breakContents:e,flatContents:t,groupId:n.groupId}}function Zs(e){return{type:"line-suffix",contents:e}}qs.ok=function(){},qs.strictEqual=function(){};const Qs={type:"line-suffix-boundary"},el={type:"break-parent"},tl={type:"trim"},nl={type:"line"},rl={type:"line",soft:!0},il=zs([{type:"line",hard:!0},el]),ol=zs([{type:"line",hard:!0,literal:!0},el]),al={type:"cursor",placeholder:Symbol("cursor")};function sl(e,t){const n=[];for(let r=0;r0){for(let e=0;e{const 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?void 0:"g")},hl=e=>"string"===typeof e?e.replace(cl(),""):e;const pl=e=>!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));var dl=pl,fl=pl;dl.default=fl;var ml=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\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])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\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[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\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\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\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\uDDCD-\uDDCF\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\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\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\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*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\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g};const gl=e=>{if(e=e.replace(ml()," "),"string"!==typeof e||0===e.length)return 0;e=hl(e);let t=0;for(let n=0;n=127&&r<=159||(r>=768&&r<=879||(r>65535&&n++,t+=dl(r)?2:1))}return t};var vl=gl,yl=gl;vl.default=yl;const bl=/[|\\{}()[\]^$+*?.-]/g;var Dl=e=>{if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(bl,"\\$&")};const xl=/[^\x20-\x7F]/;function wl(e){return e.length>1?e[e.length-2]:null}function Cl(e){return(t,n,r)=>{const i=r&&r.backwards;if(!1===n)return!1;const{length:o}=t;let a=n;while(a>=0&&a"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((e,t)=>{e.forEach(e=>{zl[e]=t})});const Hl={"==":!0,"!=":!0,"===":!0,"!==":!0},Wl={"*":!0,"/":!0,"%":!0},Ul={">>":!0,">>>":!0,"<<":!0};function Gl(e,t){return Vl(t)===Vl(e)&&("**"!==e&&((!Hl[e]||!Hl[t])&&(!("%"===t&&Wl[e]||"%"===e&&Wl[t])&&((t===e||!Wl[t]||!Wl[e])&&(!Ul[e]||!Ul[t])))))}function Yl(e){return!!Ul[e]||"|"===e||"^"===e||"&"===e}function Kl(e,t){switch(e=Xl(e),e.type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return t;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return Kl(e.object,t);case"TaggedTemplateExpression":return"FunctionExpression"!==e.tag.type&&Kl(e.tag,t);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==e.callee.type&&Kl(e.callee,t);case"ConditionalExpression":return Kl(e.test,t);case"UpdateExpression":return!e.prefix&&Kl(e.argument,t);case"BindExpression":return e.object&&Kl(e.object,t);case"SequenceExpression":return Kl(e.expressions[0],t);case"TSAsExpression":return Kl(e.expression,t);default:return!1}}function Xl(e){return e.left?Xl(e.left):e}function Jl(e,t,n){n=n||0;let r=0;for(let i=n;it?a.quote:o.quote}return s}function eu(e,t,n){const r=e.slice(1,-1),i=!r.includes('"')&&!r.includes("'"),o="json"===t.parser?'"':t.__isInHtmlAttribute?"'":Ql(e,t.singleQuote?"'":'"');return n?i?o+r+o:e:tu(r,o,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.embeddedInHtml))}function tu(e,t,n){const r='"'===t?"'":'"',i=/\\([\s\S])|(['"])/g,o=e.replace(i,(e,i,o)=>i===r?i:o===t?"\\"+o:o||(n&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(i)?i:"\\"+i));return t+o+t}function nu(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function ru(e,t){const n=e.match(new RegExp("(".concat(Dl(t),")+"),"g"));return null===n?0:n.reduce((e,n)=>Math.max(e,n.length/t.length),0)}function iu(e,t){const n=e.match(new RegExp("(".concat(Dl(t),")+"),"g"));if(null===n)return 0;const r=new Map;let i=0;for(const o of n){const e=o.length/t.length;r.set(e,!0),e>i&&(i=e)}for(let o=1;o0&&e.comments.some(e=>lu(e)&&!e.unignore)||e.prettierIgnore)}function lu(e){return"prettier-ignore"===e.value.trim()}function uu(e,t){const n=e.comments||(e.comments=[]);n.push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}function cu(e,t){t.leading=!0,t.trailing=!1,uu(e,t)}function hu(e,t){t.leading=!1,t.trailing=!1,uu(e,t)}function pu(e,t){t.leading=!1,t.trailing=!0,uu(e,t)}function du(e,t){const n=e.getValue(),r=e.getParentNode();if(null==r)return!1;if(!Array.isArray(r[t]))return!1;const i=e.getName();return r[t][i]===n}function fu(e,t){const n=[];for(const r of e.split("\n"))0!==n.length&&n.push(t),n.push(r);return n}var mu={replaceEndOfLineWith:fu,getStringWidth:ou,getMaxContinuousCount:ru,getMinNotPresentContinuousCount:iu,getPrecedence:Vl,shouldFlatten:Gl,isBitwiseOperator:Yl,getPenultimate:wl,getLast:Oa,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Ml,getNextNonSpaceNonCommentCharacterIndex:jl,getNextNonSpaceNonCommentCharacter:Il,skip:Cl,skipWhitespace:_l,skipSpaces:kl,skipToLineEnd:El,skipEverythingButNewLine:Sl,skipInlineComment:Al,skipTrailingComment:Fl,skipNewline:Tl,isNextLineEmptyAfterIndex:Bl,isNextLineEmpty:Pl,isPreviousLineEmpty:Ll,hasNewline:Ol,hasNewlineInRange:Nl,hasSpaces:$l,setLocStart:Rl,setLocEnd:ql,startsWithNoLookaheadToken:Kl,getAlignmentSize:Jl,getIndentSize:Zl,getPreferredQuote:Ql,printString:eu,printNumber:nu,hasIgnoreComment:au,hasNodeIgnoreComment:su,isNodeIgnoreComment:lu,makeString:tu,addLeadingComment:cu,addDanglingComment:hu,addTrailingComment:pu,isWithinParentArrayProperty:du};function gu(e){const t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}function vu(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}var yu={guessEndOfLine:gu,convertEndOfLineToChars:vu};const{getStringWidth:bu}=mu,{convertEndOfLineToChars:Du}=yu,{concat:xu,fill:wu,cursor:Cu}=ul;let _u;const ku=1,Eu=2;function Su(){return{value:"",length:0,queue:[]}}function Au(e,t){return Tu(e,{type:"indent"},t)}function Fu(e,t,n){return t===-1/0?e.root||Su():t<0?Tu(e,{type:"dedent"},n):t?"root"===t.type?Object.assign({},e,{root:e}):Tu(e,"string"===typeof t?{type:"stringAlign",n:t}:{type:"numberAlign",n:t},n):e}function Tu(e,t,n){const r="dedent"===t.type?e.queue.slice(0,-1):e.queue.concat(t);let i="",o=0,a=0,s=0;for(const f of r)switch(f.type){case"indent":c(),n.useTabs?l(1):u(n.tabWidth);break;case"stringAlign":c(),i+=f.n,o+=f.n.length;break;case"numberAlign":a+=1,s+=f.n;break;default:throw new Error("Unexpected type '".concat(f.type,"'"))}return p(),Object.assign({},e,{value:i,length:o,queue:r});function l(e){i+="\t".repeat(e),o+=n.tabWidth*e}function u(e){i+=" ".repeat(e),o+=e}function c(){n.useTabs?h():p()}function h(){a>0&&l(a),d()}function p(){s>0&&u(s),d()}function d(){a=0,s=0}}function Ou(e){if(0===e.length)return 0;let t=0;while(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]){const n=e[e.length-1].replace(/[ \t]*$/,"");t+=e[e.length-1].length-n.length,e[e.length-1]=n}return t}function Nu(e,t,n,r,i){let o=t.length;const a=[e],s=[];while(n>=0){if(0===a.length){if(0===o)return!0;a.push(t[o-1]),o--;continue}const[e,l,u]=a.pop();if("string"===typeof u)s.push(u),n-=bu(u);else switch(u.type){case"concat":for(let t=u.parts.length-1;t>=0;t--)a.push([e,l,u.parts[t]]);break;case"indent":a.push([Au(e,r),l,u.contents]);break;case"align":a.push([Fu(e,u.n,r),l,u.contents]);break;case"trim":n+=Ou(s);break;case"group":if(i&&u.break)return!1;a.push([e,u.break?ku:l,u.contents]),u.id&&(_u[u.id]=a[a.length-1][1]);break;case"fill":for(let t=u.parts.length-1;t>=0;t--)a.push([e,l,u.parts[t]]);break;case"if-break":{const t=u.groupId?_u[u.groupId]:l;t===ku&&u.breakContents&&a.push([e,l,u.breakContents]),t===Eu&&u.flatContents&&a.push([e,l,u.flatContents]);break}case"line":switch(l){case Eu:if(!u.hard){u.soft||(s.push(" "),n-=1);break}return!0;case ku:return!0}break}}return!1}function Lu(e,t){_u={};const n=t.printWidth,r=Du(t.endOfLine);let i=0;const o=[[Su(),ku,e]],a=[];let s=!1,l=[];while(0!==o.length){const[e,u,c]=o.pop();if("string"===typeof c){const e="\n"!==r&&c.includes("\n")?c.replace(/\n/g,r):c;a.push(e),i+=bu(e)}else switch(c.type){case"cursor":a.push(Cu.placeholder);break;case"concat":for(let t=c.parts.length-1;t>=0;t--)o.push([e,u,c.parts[t]]);break;case"indent":o.push([Au(e,t),u,c.contents]);break;case"align":o.push([Fu(e,c.n,t),u,c.contents]);break;case"trim":i-=Ou(a);break;case"group":switch(u){case Eu:if(!s){o.push([e,c.break?ku:Eu,c.contents]);break}case ku:{s=!1;const r=[e,Eu,c.contents],a=n-i;if(!c.break&&Nu(r,o,a,t))o.push(r);else if(c.expandedStates){const n=c.expandedStates[c.expandedStates.length-1];if(c.break){o.push([e,ku,n]);break}for(let r=1;r=c.expandedStates.length){o.push([e,ku,n]);break}{const n=c.expandedStates[r],i=[e,Eu,n];if(Nu(i,o,a,t)){o.push(i);break}}}}else o.push([e,ku,c.contents]);break}}c.id&&(_u[c.id]=o[o.length-1][1]);break;case"fill":{const r=n-i,{parts:a}=c;if(0===a.length)break;const[s,l]=a,h=[e,Eu,s],p=[e,ku,s],d=Nu(h,[],r,t,!0);if(1===a.length){d?o.push(h):o.push(p);break}const f=[e,Eu,l],m=[e,ku,l];if(2===a.length){d?(o.push(f),o.push(h)):(o.push(m),o.push(p));break}a.splice(0,2);const g=[e,u,wu(a)],v=a[0],y=[e,Eu,xu([s,l,v])],b=Nu(y,[],r,t,!0);b?(o.push(g),o.push(f),o.push(h)):d?(o.push(g),o.push(m),o.push(h)):(o.push(g),o.push(m),o.push(p));break}case"if-break":{const t=c.groupId?_u[c.groupId]:u;t===ku&&c.breakContents&&o.push([e,u,c.breakContents]),t===Eu&&c.flatContents&&o.push([e,u,c.flatContents]);break}case"line-suffix":l.push([e,u,c.contents]);break;case"line-suffix-boundary":l.length>0&&o.push([e,u,{type:"line",hard:!0}]);break;case"line":switch(u){case Eu:if(!c.hard){c.soft||(a.push(" "),i+=1);break}s=!0;case ku:if(l.length){o.push([e,u,c]),o.push(...l.reverse()),l=[];break}c.literal?e.root?(a.push(r,e.root.value),i=e.root.length):(a.push(r),i=0):(i-=Ou(a),a.push(r+e.value),i=e.length);break}break}}const u=a.indexOf(Cu.placeholder);if(-1!==u){const e=a.indexOf(Cu.placeholder,u+1),t=a.slice(0,u).join(""),n=a.slice(u+1,e).join(""),r=a.slice(e+1).join("");return{formatted:t+n+r,cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:a.join("")}}var Bu={printDocToString:Lu};const Pu={};function Mu(e,t,n,r){const i=[e];while(0!==i.length){const e=i.pop();if(e===Pu){n(i.pop());continue}let o=!0;if(t&&!1===t(e)&&(o=!1),n&&(i.push(e),i.push(Pu)),o)if("concat"===e.type||"fill"===e.type)for(let t=e.parts.length,n=t-1;n>=0;--n)i.push(e.parts[n]);else if("if-break"===e.type)e.flatContents&&i.push(e.flatContents),e.breakContents&&i.push(e.breakContents);else if("group"===e.type&&e.expandedStates)if(r)for(let t=e.expandedStates.length,n=t-1;n>=0;--n)i.push(e.expandedStates[n]);else i.push(e.contents);else e.contents&&i.push(e.contents)}}function ju(e,t){if("concat"===e.type||"fill"===e.type){const n=e.parts.map(e=>ju(e,t));return t(Object.assign({},e,{parts:n}))}if("if-break"===e.type){const n=e.breakContents&&ju(e.breakContents,t),r=e.flatContents&&ju(e.flatContents,t);return t(Object.assign({},e,{breakContents:n,flatContents:r}))}if(e.contents){const n=ju(e.contents,t);return t(Object.assign({},e,{contents:n}))}return t(e)}function Iu(e,t,n){let r=n,i=!1;function o(e){const n=t(e);if(void 0!==n&&(i=!0,r=n),i)return!1}return Mu(e,o),r}function $u(e){return"string"===typeof e&&0===e.length}function Ru(e){return"string"!==typeof e&&("line"===e.type||void 0)}function qu(e){return Iu(e,Ru,!1)}function zu(e){return!("group"!==e.type||!e.break)||(!("line"!==e.type||!e.hard)||("break-parent"===e.type||void 0))}function Vu(e){return Iu(e,zu,!1)}function Hu(e){if(e.length>0){const t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function Wu(e){const t=new Set,n=[];function r(e){if("break-parent"===e.type&&Hu(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}function i(e){if("group"===e.type){const e=n.pop();e.break&&Hu(n)}}Mu(e,r,i,!0)}function Uu(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function Gu(e){return ju(e,Uu)}function Yu(e){if("concat"===e.type&&0!==e.parts.length){const t=e.parts[e.parts.length-1];if("concat"===t.type)return 2===t.parts.length&&t.parts[0].hard&&"break-parent"===t.parts[1].type?{type:"concat",parts:e.parts.slice(0,-1)}:{type:"concat",parts:e.parts.slice(0,-1).concat(Yu(t))}}return e}var Ku={isEmpty:$u,willBreak:Vu,isLineNext:qu,traverseDoc:Mu,findInDoc:Iu,mapDoc:ju,propagateBreaks:Wu,removeLines:Gu,stripTrailingHardline:Yu};function Xu(e){if("concat"===e.type){const t=[];for(let n=0;n=0;--t)if(i(n[t])<=i(e)&&o(n[t])<=o(e))break;return void n.splice(t+1,0,e)}}else if(e[Ic])return e[Ic];const a=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"===typeof e&&Object.keys(e).filter(e=>"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e).map(t=>e[t]);return a?(n||Object.defineProperty(e,Ic,{value:n=[],enumerable:!1}),a.forEach(e=>{$c(e,t,n)}),n):void 0}function Rc(e,t,n){const{locStart:r,locEnd:i}=n,o=$c(e,n);let a,s,l=0,u=o.length;while(l>1,c=o[e];if(r(c)-r(t)<=0&&i(t)-i(c)<=0)return t.enclosingNode=c,void Rc(c,t,n);if(i(c)-r(t)<=0)a=c,l=e+1;else{if(!(i(t)-r(c)<=0))throw new Error("Comment location overlaps with node location");s=c,u=e}}if(t.enclosingNode&&"TemplateLiteral"===t.enclosingNode.type){const{quasis:e}=t.enclosingNode,r=Hc(e,t,n);a&&Hc(e,a,n)!==r&&(a=null),s&&Hc(e,s,n)!==r&&(s=null)}a&&(t.precedingNode=a),s&&(t.followingNode=s)}function qc(e,t,n,r){if(!Array.isArray(e))return;const i=[],{locStart:o,locEnd:a}=r;e.forEach((s,l)=>{if("json"===r.parser||"json5"===r.parser||"__js_expression"===r.parser||"__vue_expression"===r.parser){if(o(s)-o(t)<=0)return void Pc(t,s);if(a(s)-a(t)>=0)return void jc(t,s)}Rc(t,s,r);const{precedingNode:u,enclosingNode:c,followingNode:h}=s,p=r.printer.handleComments&&r.printer.handleComments.ownLine?r.printer.handleComments.ownLine:()=>!1,d=r.printer.handleComments&&r.printer.handleComments.endOfLine?r.printer.handleComments.endOfLine:()=>!1,f=r.printer.handleComments&&r.printer.handleComments.remaining?r.printer.handleComments.remaining:()=>!1,m=e.length-1===l;if(Nc(n,o(s),{backwards:!0}))p(s,n,r,t,m)||(h?Pc(h,s):u?jc(u,s):Mc(c||t,s));else if(Nc(n,a(s)))d(s,n,r,t,m)||(u?jc(u,s):h?Pc(h,s):Mc(c||t,s));else if(f(s,n,r,t,m));else if(u&&h){const e=i.length;if(e>0){const t=i[e-1];t.followingNode!==s.followingNode&&zc(i,n,r)}i.push(s)}else u?jc(u,s):h?Pc(h,s):Mc(c||t,s)}),zc(i,n,r),e.forEach(e=>{delete e.precedingNode,delete e.enclosingNode,delete e.followingNode})}function zc(e,t,n){const r=e.length;if(0===r)return;const{precedingNode:i,followingNode:o,enclosingNode:a}=e[0],s=n.printer.getGapRegex&&n.printer.getGapRegex(a)||/^[\s(]*$/;let l,u=n.locStart(o);for(l=r;l>0;--l){const r=e[l-1];qs.strictEqual(r.precedingNode,i),qs.strictEqual(r.followingNode,o);const a=t.slice(n.locEnd(r),u);if(!s.test(a))break;u=n.locStart(r)}e.forEach((e,t)=>{t{const n=e.getValue();!n||n.leading||n.trailing||r&&!r(n)||i.push(Vc(e,t))},"comments"),0===i.length?"":n?Tc(Ec,i):Ac(_c([Ec,Tc(Ec,i)]))):""}function Kc(e,t,n){return e.getNode()===t.cursorNode&&e.getValue()?_c([Oc,n,Oc]):n}function Xc(e,t,n,r){const i=e.getValue(),o=t(e),a=i&&i.comments;if(!a||0===a.length)return Kc(e,n,o);const s=[],l=[r?";":"",o];return e.each(e=>{const r=e.getValue(),{leading:i,trailing:o}=r;if(i){const i=Uc(e,t,n);if(!i)return;s.push(i);const o=n.originalText,a=Lc(o,n.locEnd(r));!1!==a&&Nc(o,a)&&s.push(Ec)}else o&&l.push(Gc(e,t,n))},"comments"),Kc(e,n,_c(s.concat(l)))}var Jc={attach:qc,printComments:Xc,printDanglingComments:Yc,getSortedChildNodes:$c};function Zc(e,t){const n=Qc(e.stack,t);return-1===n?null:e.stack[n]}function Qc(e,t){for(let n=e.length-1;n>=0;n-=2){const r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}class eh{constructor(e){this.stack=[e]}getName(){const{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return Oa(this.stack)}getNode(e=0){return Zc(this,e)}getParentNode(e=0){return Zc(this,e+1)}call(e,...t){const{stack:n}=this,{length:r}=n;let i=Oa(n);for(const a of t)i=i[a],n.push(a,i);const o=e(this);return n.length=r,o}callParent(e,t=0){const n=Qc(this.stack,t+1),r=this.stack.splice(n+1),i=e(this);return this.stack.push(...r),i}each(e,...t){const{stack:n}=this,{length:r}=n;let i=Oa(n);for(const o of t)i=i[o],n.push(o,i);for(let o=0;oih(e,t,n,r),n)}function ih(e,t,n,r){const i=nh(Object.assign({},n,{},t,{parentParser:n.parser,embeddedInHtml:!(!n.embeddedInHtml&&"html"!==n.parser&&"vue"!==n.parser&&"angular"!==n.parser&&"lwc"!==n.parser),originalText:e}),{passThrough:!0}),o=Fs.parse(e,i),{ast:a}=o;e=o.text;const s=a.comments;return delete a.comments,Jc.attach(s,a,e,i),r(a,i)}var oh={printSubtree:rh};const ah=Qu,sh=ah.builders,{concat:lh,hardline:uh,addAlignmentToDoc:ch}=sh,hh=ah.utils;function ph(e,t,n=0){const{printer:r}=t;r.preprocess&&(e=r.preprocess(e,t));const i=new Map;function o(e,n){const a=e.getValue(),s=a&&"object"===typeof a&&void 0===n;if(s&&i.has(a))return i.get(a);let l;return l=r.willPrintOwnComments&&r.willPrintOwnComments(e,t)?dh(e,t,o,n):Jc.printComments(e,e=>dh(e,t,o,n),t,n&&n.needsSemi),s&&i.set(a,l),l}let a=o(new th(e));return n>0&&(a=ch(lh([uh,a]),n,t.tabWidth)),hh.propagateBreaks(a),a}function dh(e,t,n,r){qs.ok(e instanceof th);const i=e.getValue(),{printer:o}=t;if(o.hasPrettierIgnore&&o.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(i),t.locEnd(i));if(i)try{const r=oh.printSubtree(e,n,t,ph);if(r)return r}catch(a){if(zt.PRETTIER_DEBUG)throw a}return o.print(e,t,n,r)}var fh=ph;function mh(e,t,n){let r=e.node,i=t.node;if(r===i)return{startNode:r,endNode:i};for(const o of t.parentNodes){if(!("Program"!==o.type&&"File"!==o.type&&n.locStart(o)>=n.locStart(e.node)))break;i=o}for(const o of e.parentNodes){if(!("Program"!==o.type&&"File"!==o.type&&n.locEnd(o)<=n.locEnd(t.node)))break;r=o}return{startNode:r,endNode:i}}function gh(e,t,n,r,i){r=r||(()=>!0),i=i||[];const o=n.locStart(e,n.locStart),a=n.locEnd(e,n.locEnd);if(o<=t&&t<=a){for(const o of Jc.getSortedChildNodes(e,n)){const a=gh(o,t,n,r,[e].concat(i));if(a)return a}if(r(e))return{node:e,parentNodes:i}}}function vh(e,t){if(null==t)return!1;const n=["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"],r=["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"],i=["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"];switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":return n.includes(t.type);case"json":return r.includes(t.type);case"graphql":return i.includes(t.kind);case"vue":return"root"!==t.tag}return!1}function yh(e,t,n){const r=e.slice(t.rangeStart,t.rangeEnd),i=Math.max(t.rangeStart+r.search(/\S/),t.rangeStart);let o;for(o=t.rangeEnd;o>t.rangeStart;--o)if(e[o-1].match(/\S/))break;const a=gh(n,i,t,e=>vh(t,e)),s=gh(n,o,t,e=>vh(t,e));if(!a||!s)return{rangeStart:0,rangeEnd:0};const l=mh(a,s,t),{startNode:u,endNode:c}=l,h=Math.min(t.locStart(u,t.locStart),t.locStart(c,t.locStart)),p=Math.max(t.locEnd(u,t.locEnd),t.locEnd(c,t.locEnd));return{rangeStart:h,rangeEnd:p}}var bh={calculateRange:yh,findNodeAtOffset:gh},Dh=Wt(xe);const xh=Is.normalize,{guessEndOfLine:wh,convertEndOfLineToChars:Ch}=yu,{printer:{printDocToString:_h},debug:{printDocToDebug:kh}}=Qu,Eh="\ufeff",Sh=Symbol("cursor"),Ah={cursorOffset:"<<>>",rangeStart:"<<>>",rangeEnd:"<<>>"};function Fh(e){if(e){for(let t=0;t{if(!e.printed)throw new Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed})}}function Th(e,t,n){const r=t.comments;return r&&(delete t.comments,Jc.attach(r,t,e,n)),t.tokens=[],n.originalText="yaml"===n.parser?e:e.trimEnd(),r}function Oh(e,t,n){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};n=n||0;const r=Fs.parse(e,t),{ast:i}=r;if(e=r.text,t.cursorOffset>=0){const e=bh.findNodeAtOffset(i,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}const o=Th(e,i,t),a=fh(i,t,n),s=_h(a,t);if(Fh(o),n>0){const e=s.formatted.trim();void 0!==s.cursorNodeStart&&(s.cursorNodeStart-=s.formatted.indexOf(e)),s.formatted=e+Ch(t.endOfLine)}if(t.cursorOffset>=0){let n,r,i,o,a;if(t.cursorNode&&s.cursorNodeText?(n=t.locStart(t.cursorNode),r=e.slice(n,t.locEnd(t.cursorNode)),i=t.cursorOffset-n,o=s.cursorNodeStart,a=s.cursorNodeText):(n=0,r=e,i=t.cursorOffset,o=0,a=s.formatted),r===a)return{formatted:s.formatted,cursorOffset:o+i};const l=r.split("");l.splice(i,0,Sh);const u=a.split(""),c=Dh.diffArrays(l,u);let h=o;for(const e of c)if(e.removed){if(e.value.includes(Sh))break}else h+=e.count;return{formatted:s.formatted,cursorOffset:h}}return{formatted:s.formatted}}function Nh(e,t){const n=Fs.parse(e,t),{ast:r}=n;e=n.text;const i=bh.calculateRange(e,t,r),{rangeStart:o,rangeEnd:a}=i,s=e.slice(o,a),l=Math.min(o,e.lastIndexOf("\n",o)+1),u=e.slice(l,o),c=mu.getAlignmentSize(u,t.tabWidth),h=Oh(s,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=o&&t.cursorOffset=a?g=t.cursorOffset-a+(o+p.length):void 0!==h.cursorOffset&&(g=h.cursorOffset+o),"lf"===t.endOfLine)m=d+p+f;else{const e=Ch(t.endOfLine);if(g>=0){const t=[d,p,f];let n=0,r=g;while(n(g=t,""))}else m=d.replace(/\n/g,e)+p+f.replace(/\n/g,e)}return{formatted:m,cursorOffset:g}}function Lh(e,t){const n=Fs.resolveParser(t),r=!n.hasPragma||n.hasPragma(e);if(t.requirePragma&&!r)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=wh(e));const i=t.cursorOffset>=0,o=t.rangeStart>0,a=t.rangeEndt[e]-t[n]);for(let r=n.length-1;r>=0;r--){const i=n[r];e=e.slice(0,t[i])+Ah[i]+e.slice(t[i])}e=e.replace(/\r\n?/g,"\n");for(let r=0;r(t[i]=n,""))}}const s=e.charAt(0)===Eh;s&&(e=e.slice(1),i&&t.cursorOffset++,o&&t.rangeStart++,a&&t.rangeEnd++),i||(t.cursorOffset=-1),t.rangeStart<0&&(t.rangeStart=0),t.rangeEnd>e.length&&(t.rangeEnd=e.length);const l=o||a?Nh(e,t):Oh(t.insertPragma&&t.printer.insertPragma&&!r?t.printer.insertPragma(e):e,t);return s&&(l.formatted=Eh+l.formatted,i&&l.cursorOffset++),l}var Bh={formatWithCursor(e,t){return t=xh(t),Lh(e,t)},parse(e,t,n){t=xh(t),e.includes("\r")&&(e=e.replace(/\r\n?/g,"\n"));const r=Fs.parse(e,t);return n&&(r.ast=Rs(r.ast,t)),r},formatAST(e,t){t=xh(t);const n=fh(e,t);return _h(n,t)},formatDoc(e,t){const n=kh(e);return t=xh(Object.assign({},t,{parser:"babel"})),Lh(n,t).formatted},printToDoc(e,t){t=xh(t);const n=Fs.parse(e,t),{ast:r}=n;return e=n.text,Th(e,r,t),fh(r,t)},printDocToString(e,t){return _h(e,xh(t))}};function Ph(e,t,n){if(["raw","raws","sourceIndex","source","before","after","trailingComma"].forEach(e=>{delete t[e]}),"yaml"===e.type&&delete t.value,"css-comment"===e.type&&"css-root"===n.type&&0!==n.nodes.length&&(n.nodes[0]===e||("yaml"===n.nodes[0].type||"toml"===n.nodes[0].type)&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text)))return null;if("media-query"!==e.type&&"media-query-list"!==e.type&&"media-feature-expression"!==e.type||delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),"css-atrule"!==e.type&&"css-import"!==e.type||(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),"media-feature"!==e.type&&"media-keyword"!==e.type&&"media-type"!==e.type&&"media-unknown"!==e.type&&"media-url"!==e.type&&"media-value"!==e.type&&"selector-attribute"!==e.type&&"selector-string"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"value-string"!==e.type||!t.value||(t.value=Mh(t.value)),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"===typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^['"]|['"]$/g,""),delete t.quoted)),"media-value"!==e.type&&"media-type"!==e.type&&"value-number"!==e.type&&"selector-root-invalid"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"selector-tag"!==e.type||!t.value||(t.value=t.value.replace(/([\d.eE+-]+)([a-zA-Z]*)/g,(e,t,n)=>{const r=Number(t);return isNaN(r)?e:r+n.toLowerCase()})),"selector-tag"===e.type){const n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}"css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value}function Mh(e){return e.replace(/'/g,'"').replace(/\\([^a-fA-F\d])/g,"$1")}var jh=Ph;const{builders:{hardline:Ih,literalline:$h,concat:Rh,markAsRoot:qh},utils:{mapDoc:zh}}=Qu;function Vh(e,t,n){const r=e.getValue();return"yaml"===r.type?qh(Rh(["---",Ih,r.value.trim()?i(n(r.value,{parser:"yaml"})):"","---",Ih])):null;function i(e){return zh(e,e=>"string"===typeof e&&e.includes("\n")?Rh(e.split(/(\n)/g).map((e,t)=>t%2===0?e:$h)):e)}}var Hh=Vh;const Wh=e=>{if("string"!==typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const n=t.filter(e=>"\r\n"===e).length,r=t.length-n;return n>r?"\r\n":"\n"};var Uh=Wh,Gh=e=>"string"===typeof e&&Wh(e)||"\n";Uh.graceful=Gh;var Yh=Ht((function(e,t){function n(){const e=ki;return n=function(){return e},e}function r(){const e=i(Uh);return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=d,t.strip=f,t.parse=m,t.parseWithComments=g,t.print=v;const o=/\*\/$/,a=/^\/\*\*/,s=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,l=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,h=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g;function d(e){const t=e.match(s);return t?t[0].trimLeft():""}function f(e){const t=e.match(s);return t&&t[0]?e.substring(t[0].length):e}function m(e){return g(e).pragmas}function g(e){const t=(0,r().default)(e)||n().EOL;e=e.replace(a,"").replace(o,"").replace(p,"$1");let i="";while(i!==e)i=e,e=e.replace(c,"".concat(t,"$1 $2").concat(t));e=e.replace(u,"").trimRight();const s=Object.create(null),d=e.replace(h,"").replace(u,"").trimRight();let f;while(f=h.exec(e)){const e=f[2].replace(l,"");"string"===typeof s[f[1]]||Array.isArray(s[f[1]])?s[f[1]]=[].concat(s[f[1]],e):s[f[1]]=e}return{comments:d,pragmas:s}}function v({comments:e="",pragmas:t={}}){const i=(0,r().default)(e)||n().EOL,o="/**",a=" *",s=" */",l=Object.keys(t),u=l.map(e=>y(e,t[e])).reduce((e,t)=>e.concat(t),[]).map(e=>a+" "+e+i).join("");if(!e){if(0===l.length)return"";if(1===l.length&&!Array.isArray(t[l[0]])){const e=t[l[0]];return"".concat(o," ").concat(y(l[0],e)[0]).concat(s)}}const c=e.split(i).map(e=>"".concat(a," ").concat(e)).join(i)+i;return o+i+(e?c:"")+(e&&l.length?a+i:"")+u+s}function y(e,t){return[].concat(t).map(t=>"@".concat(e," ").concat(t).trim())}}));Vt(Yh);Yh.extract,Yh.strip,Yh.parse,Yh.parseWithComments,Yh.print;function Kh(e){const t=Object.keys(Yh.parse(Yh.extract(e)));return t.includes("prettier")||t.includes("format")}function Xh(e){const t=Yh.parseWithComments(Yh.extract(e)),n=Object.assign({format:""},t.pragmas),r=Yh.print({pragmas:n,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),i=Yh.strip(e),o=i.startsWith("\n")?"\n":"\n\n";return r+o+i}var Jh={hasPragma:Kh,insertPragma:Xh};const Zh={"---":"yaml","+++":"toml"};function Qh(e){const t=Object.keys(Zh).map(Dl).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};const[r,i,o]=n;return{frontMatter:{type:Zh[i],value:o,raw:r.replace(/\n$/,"")},content:r.replace(/[^\n]/g," ")+e.slice(r.length)}}var ep=Qh;function tp(e){return Jh.hasPragma(ep(e).content)}function np(e){const{frontMatter:t,content:n}=ep(e);return(t?t.raw+"\n\n":"")+Jh.insertPragma(n)}var rp={hasPragma:tp,insertPragma:np},ip=function(e,t){let n=0;for(let r=0;r","<=",">="].includes(e.value)}function $p(e){return"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)}function Rp(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")}function qp(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)}function zp(e){return e.name.startsWith("prettier-placeholder")}function Vp(e){return e.prop.startsWith("@prettier-placeholder")}function Hp(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before}function Wp(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()}function Up(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}function Gp(e){return e.raws&&""===e.raws.before}function Yp(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function Kp(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&Yp(e.groups[0])}function Xp(e){const t=e.getValue();if(0===t.groups.length)return!1;const n=e.getParentNode(1);if(!Kp(t)&&(!n||!Kp(n)))return!1;const r=mp(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||(!!Kp(n)||"value-func"===n.type)}function Jp(e){return"value-comment"===e.type&&e.inline}function Zp(e){return"value-word"===e.type&&"#"===e.value}function Qp(e){return"value-word"===e.type&&"{"===e.value}function ed(e){return"value-word"===e.type&&"}"===e.value}function td(e){return["value-word","value-atword"].includes(e.type)}function nd(e){return"value-colon"===e.type}function rd(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function id(e){return"value-func"===e.type&&dp.includes(e.value.toLowerCase())}function od(e){return"css"===e.parser||"less"===e.parser}function ad(e){return/\/\//.test(e.split(/[\r\n]/).pop())}var sd={getAncestorCounter:fp,getAncestorNode:mp,getPropOfDeclNode:gp,maybeToLowerCase:Dp,insideValueFunctionNode:xp,insideICSSRuleNode:wp,insideAtRuleNode:Cp,insideURLFunctionInImportAtRuleNode:_p,isKeyframeAtRuleKeywords:bp,isWideKeywords:yp,isSCSS:vp,isLastNode:Ep,isLessParser:od,isSCSSControlDirectiveNode:$p,isDetachedRulesetDeclarationNode:Sp,isRelationalOperatorNode:Ip,isEqualityOperatorNode:jp,isMultiplicationNode:Op,isDivisionNode:Np,isAdditionNode:Lp,isSubtractionNode:Bp,isModuloNode:Pp,isMathOperatorNode:Mp,isEachKeywordNode:Tp,isForKeywordNode:Ap,isURLFunctionNode:kp,isIfElseKeywordNode:Fp,hasComposesNode:Wp,hasParensAroundNode:Up,hasEmptyRawBefore:Gp,isSCSSNestedPropertyNode:Rp,isDetachedRulesetCallNode:qp,isTemplatePlaceholderNode:zp,isTemplatePropNode:Vp,isPostcssSimpleVarNode:Hp,isKeyValuePairNode:Yp,isKeyValuePairInParenGroupNode:Kp,isSCSSMapItemNode:Xp,isInlineValueCommentNode:Jp,isHashNode:Zp,isLeftCurlyBraceNode:Qp,isRightCurlyBraceNode:ed,isWordNode:td,isColonNode:nd,isMediaAndSupportsKeywords:rd,isColorAdjusterFuncNode:id,lastLineHasInlineComment:ad};const{insertPragma:ld}=rp,{printNumber:ud,printString:cd,hasIgnoreComment:hd,hasNewline:pd}=mu,{isNextLineEmpty:dd}=Cc,{restoreQuotesInInlineComments:fd}=pp,{builders:{concat:md,join:gd,line:vd,hardline:yd,softline:bd,group:Dd,fill:xd,indent:wd,dedent:Cd,ifBreak:_d},utils:{removeLines:kd}}=Qu,{getAncestorNode:Ed,getPropOfDeclNode:Sd,maybeToLowerCase:Ad,insideValueFunctionNode:Fd,insideICSSRuleNode:Td,insideAtRuleNode:Od,insideURLFunctionInImportAtRuleNode:Nd,isKeyframeAtRuleKeywords:Ld,isWideKeywords:Bd,isSCSS:Pd,isLastNode:Md,isLessParser:jd,isSCSSControlDirectiveNode:Id,isDetachedRulesetDeclarationNode:$d,isRelationalOperatorNode:Rd,isEqualityOperatorNode:qd,isMultiplicationNode:zd,isDivisionNode:Vd,isAdditionNode:Hd,isSubtractionNode:Wd,isMathOperatorNode:Ud,isEachKeywordNode:Gd,isForKeywordNode:Yd,isURLFunctionNode:Kd,isIfElseKeywordNode:Xd,hasComposesNode:Jd,hasParensAroundNode:Zd,hasEmptyRawBefore:Qd,isKeyValuePairNode:ef,isDetachedRulesetCallNode:tf,isTemplatePlaceholderNode:nf,isTemplatePropNode:rf,isPostcssSimpleVarNode:of,isSCSSMapItemNode:af,isInlineValueCommentNode:sf,isHashNode:lf,isLeftCurlyBraceNode:uf,isRightCurlyBraceNode:cf,isWordNode:hf,isColonNode:pf,isMediaAndSupportsKeywords:df,isColorAdjusterFuncNode:ff,lastLineHasInlineComment:mf}=sd;function gf(e){switch(e.trailingComma){case"all":case"es5":return!0;case"none":default:return!1}}function vf(e,t,n){const r=e.getValue();if(!r)return"";if("string"===typeof r)return r;switch(r.type){case"yaml":case"toml":return md([r.raw,yd]);case"css-root":{const r=yf(e,t,n);return r.parts.length?md([r,t.__isHTMLStyleAttribute?"":yd]):r}case"css-comment":{const e=r.inline||r.raws.inline,n=t.originalText.slice(t.locStart(r),t.locEnd(r));return e?n.trimEnd():n}case"css-rule":return md([e.call(n,"selector"),r.important?" !important":"",r.nodes?md([r.selector&&"selector-unknown"===r.selector.type&&mf(r.selector.value)?vd:" ","{",r.nodes.length>0?wd(md([yd,yf(e,t,n)])):"",yd,"}",$d(r)?";":""]):";"]);case"css-decl":{const i=e.getParentNode();return md([r.raws.before.replace(/[\s;]/g,""),Td(e)?r.prop:Ad(r.prop),":"===r.raws.between.trim()?":":r.raws.between.trim(),r.extend?"":" ",Jd(r)?kd(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?md([" {",wd(md([bd,yf(e,t,n)])),bd,"}"]):rf(r)&&!i.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1]?"":";"])}case"css-atrule":{const i=e.getParentNode(),o=nf(r)&&!i.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1];if(jd(t)){if(r.mixin)return md([e.call(n,"selector"),r.important?" !important":"",o?"":";"]);if(r.function)return md([r.name,md([e.call(n,"params")]),o?"":";"]);if(r.variable)return md(["@",r.name,": ",r.value?md([e.call(n,"value")]):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?md(["{",wd(md([r.nodes.length>0?bd:"",yf(e,t,n)])),bd,"}"]):"",o?"":";"])}return md(["@",tf(r)||r.name.endsWith(":")?r.name:Ad(r.name),r.params?md([tf(r)?"":nf(r)?""===r.raws.afterName?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?md([yd,yd]):/^\s*\n/.test(r.raws.afterName)?yd:" ":" ",e.call(n,"params")]):"",r.selector?wd(md([" ",e.call(n,"selector")])):"",r.value?Dd(md([" ",e.call(n,"value"),Id(r)?Zd(r)?" ":vd:""])):"else"===r.name?" ":"",r.nodes?md([Id(r)?"":" ","{",wd(md([r.nodes.length>0?bd:"",yf(e,t,n)])),bd,"}"]):o?"":";"])}case"media-query-list":{const t=[];return e.each(e=>{const r=e.getValue();"media-query"===r.type&&""===r.value||t.push(e.call(n))},"nodes"),Dd(wd(gd(vd,t)))}case"media-query":return md([gd(" ",e.map(n,"nodes")),Md(e,r)?"":","]);case"media-type":return Ef(_f(r.value,t));case"media-feature-expression":return r.nodes?md(["(",md(e.map(n,"nodes")),")"]):r.value;case"media-feature":return Ad(_f(r.value.replace(/ +/g," "),t));case"media-colon":return md([r.value," "]);case"media-value":return Ef(_f(r.value,t));case"media-keyword":return _f(r.value,t);case"media-url":return _f(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return r.value;case"selector-root":return Dd(md([Od(e,"custom-selector")?md([Ed(e,"css-atrule").customSelector,vd]):"",gd(md([",",Od(e,["extend","custom-selector","nest"])?vd:yd]),e.map(n,"nodes"))]));case"selector-selector":return Dd(wd(md(e.map(n,"nodes"))));case"selector-comment":return r.value;case"selector-string":return _f(r.value,t);case"selector-tag":{const t=e.getParentNode(),n=t&&t.nodes.indexOf(r),i=n&&t.nodes[n-1];return md([r.namespace?md([!0===r.namespace?"":r.namespace.trim(),"|"]):"","selector-nesting"===i.type?r.value:Ef(Ld(e,r.value)?r.value.toLowerCase():r.value)])}case"selector-id":return md(["#",r.value]);case"selector-class":return md([".",Ef(_f(r.value,t))]);case"selector-attribute":return md(["[",r.namespace?md([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.attribute.trim(),r.operator?r.operator:"",r.value?kf(_f(r.value.trim(),t),t):"",r.insensitive?" i":"","]"]);case"selector-combinator":{if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){const t=e.getParentNode(),n="selector-selector"===t.type&&t.nodes[0]===r?"":vd;return md([n,r.value,Md(e,r)?"":" "])}const n=r.value.trim().startsWith("(")?vd:"",i=Ef(_f(r.value.trim(),t))||vd;return md([n,i])}case"selector-universal":return md([r.namespace?md([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.value]);case"selector-pseudo":return md([Ad(r.value),r.nodes&&r.nodes.length>0?md(["(",gd(", ",e.map(n,"nodes")),")"]):""]);case"selector-nesting":return r.value;case"selector-unknown":{const n=Ed(e,"css-rule");if(n&&n.isSCSSNesterProperty)return Ef(_f(Ad(r.value),t));const i=e.getParentNode();if(i.raws&&i.raws.selector){const e=t.locStart(i),n=e+i.raws.selector.length;return t.originalText.slice(e,n).trim()}return r.value}case"value-value":case"value-root":return e.call(n,"group");case"value-comment":return md([r.inline?"//":"/*",fd(r.value),r.inline?"":"*/"]);case"value-comma_group":{const t=e.getParentNode(),i=e.getParentNode(1),o=Sd(e),a=o&&"value-value"===t.type&&("grid"===o||o.startsWith("grid-template")),s=Ed(e,"css-atrule"),l=s&&Id(s),u=e.map(n,"groups"),c=[],h=Fd(e,"url");let p=!1,d=!1;for(let n=0;n0&&"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 md([r.open?e.call(n,"open"):"",gd(",",e.map(n,"groups")),r.close?e.call(n,"close"):""]);if(!r.open){const t=e.map(n,"groups"),r=[];for(let e=0;e{const t=e.getValue(),r=n(e);return ef(t)&&"value-comma_group"===t.type&&t.groups&&t.groups[2]&&"value-paren_group"===t.groups[2].type?(r.contents.contents.parts[1]=Dd(r.contents.contents.parts[1]),Dd(Cd(r))):r},"groups"))])),_d(!s&&Pd(t.parser,t.originalText)&&o&&gf(t)?",":""),bd,r.close?e.call(n,"close"):""]),{shouldBreak:o})}case"value-func":return md([r.value,Od(e,"supports")&&df(r)?" ":"",e.call(n,"group")]);case"value-paren":return r.value;case"value-number":return md([Sf(r.value),Ad(r.unit)]);case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||Bd(r.value)?r.value.toLowerCase():r.value;case"value-colon":return md([r.value,Fd(e,"url")?"":vd]);case"value-comma":return md([r.value," "]);case"value-string":return cd(r.raws.quote+r.value+r.raws.quote,t);case"value-atword":return md(["@",r.value]);case"value-unicode-range":return r.value;case"value-unknown":return r.value;default:throw new Error("Unknown postcss type ".concat(JSON.stringify(r.type)))}}function yf(e,t,n){const r=e.getValue(),i=[];let o=0;return e.map(e=>{const a=r.nodes[o-1];if(a&&"css-comment"===a.type&&"prettier-ignore"===a.text.trim()){const n=e.getValue();i.push(t.originalText.slice(t.locStart(n),t.locEnd(n)))}else i.push(e.call(n));o!==r.nodes.length-1&&("css-comment"===r.nodes[o+1].type&&!pd(t.originalText,t.locStart(r.nodes[o+1]),{backwards:!0})&&"yaml"!==r.nodes[o].type&&"toml"!==r.nodes[o].type||"css-atrule"===r.nodes[o+1].type&&"else"===r.nodes[o+1].name&&"css-comment"!==r.nodes[o].type?i.push(" "):(i.push(t.__isHTMLStyleAttribute?vd:yd),dd(t.originalText,e.getValue(),t.locEnd)&&"yaml"!==r.nodes[o].type&&"toml"!==r.nodes[o].type&&i.push(yd))),o++},"nodes"),md(i)}const bf=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,Df=/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g,xf=/[a-zA-Z]+/g,wf=/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g,Cf=new RegExp(bf.source+"|"+"(".concat(wf.source,")?")+"(".concat(Df.source,")")+"(".concat(xf.source,")?"),"g");function _f(e,t){return e.replace(bf,e=>cd(e,t))}function kf(e,t){const n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function Ef(e){return e.replace(Cf,(e,t,n,r,i)=>!n&&r?Sf(r)+Ad(i||""):e)}function Sf(e){return ud(e).replace(/\.0(?=$|e)/,"")}var Af={print:vf,embed:Hh,insertPragma:ld,hasPrettierIgnore:hd,massageAstNode:jh};const Ff="Common";var Tf={bracketSpacing:{since:"0.0.0",category:Ff,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:Ff,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:Ff,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}},Of={singleQuote:Tf.singleQuote},Nf=function(e,t){const{languageId:n}=e,r=tn(e,["languageId"]);return Object.assign({linguistLanguageId:n},r,{},t(e))},Lf="CSS",Bf="markup",Pf="source.css",Mf="css",jf="css",If="text/css",$f="#563d7c",Rf=[".css"],qf=50,zf={name:Lf,type:Bf,tmScope:Pf,aceMode:Mf,codemirrorMode:jf,codemirrorMimeType:If,color:$f,extensions:Rf,languageId:qf},Vf=Object.freeze({__proto__:null,name:Lf,type:Bf,tmScope:Pf,aceMode:Mf,codemirrorMode:jf,codemirrorMimeType:If,color:$f,extensions:Rf,languageId:qf,default:zf}),Hf="PostCSS",Wf="markup",Uf="source.postcss",Gf="CSS",Yf=[".pcss",".postcss"],Kf="text",Xf=262764437,Jf={name:Hf,type:Wf,tmScope:Uf,group:Gf,extensions:Yf,aceMode:Kf,languageId:Xf},Zf=Object.freeze({__proto__:null,name:Hf,type:Wf,tmScope:Uf,group:Gf,extensions:Yf,aceMode:Kf,languageId:Xf,default:Jf}),Qf="Less",em="markup",tm="CSS",nm=[".less"],rm="source.css.less",im="less",om="css",am="text/css",sm=198,lm={name:Qf,type:em,group:tm,extensions:nm,tmScope:rm,aceMode:im,codemirrorMode:om,codemirrorMimeType:am,languageId:sm},um=Object.freeze({__proto__:null,name:Qf,type:em,group:tm,extensions:nm,tmScope:rm,aceMode:im,codemirrorMode:om,codemirrorMimeType:am,languageId:sm,default:lm}),cm="SCSS",hm="markup",pm="source.css.scss",dm="CSS",fm="scss",mm="css",gm="text/x-scss",vm=[".scss"],ym=329,bm={name:cm,type:hm,tmScope:pm,group:dm,aceMode:fm,codemirrorMode:mm,codemirrorMimeType:gm,extensions:vm,languageId:ym},Dm=Object.freeze({__proto__:null,name:cm,type:hm,tmScope:pm,group:dm,aceMode:fm,codemirrorMode:mm,codemirrorMimeType:gm,extensions:vm,languageId:ym,default:bm}),xm=Wt(Vf),wm=Wt(Zf),Cm=Wt(um),_m=Wt(Dm);const km=[Nf(xm,()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"]})),Nf(wm,()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),Nf(Cm,()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),Nf(_m,()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],Em={postcss:Af};var Sm={languages:km,options:Of,printers:Em};function Am(e){return/^\s*#[^\n\S]*@(format|prettier)\s*(\n|$)/.test(e)}function Fm(e){return"# @format\n\n"+e}var Tm={hasPragma:Am,insertPragma:Fm};const{concat:Om,join:Nm,hardline:Lm,line:Bm,softline:Pm,group:Mm,indent:jm,ifBreak:Im}=Qu.builders,{hasIgnoreComment:$m}=mu,{isNextLineEmpty:Rm}=Cc,{insertPragma:qm}=Tm;function zm(e,t,n){const r=e.getValue();if(!r)return"";if("string"===typeof r)return r;switch(r.kind){case"Document":{const i=[];return e.map((e,o)=>{i.push(Om([e.call(n)])),o!==r.definitions.length-1&&(i.push(Lm),Rm(t.originalText,e.getValue(),t.locEnd)&&i.push(Lm))},"definitions"),Om([Om(i),Lm])}case"OperationDefinition":{const i="{"!==t.originalText[t.locStart(r)],o=!!r.name;return Om([i?r.operation:"",i&&o?Om([" ",e.call(n,"name")]):"",r.variableDefinitions&&r.variableDefinitions.length?Mm(Om(["(",jm(Om([Pm,Nm(Om([Im("",", "),Pm]),e.map(n,"variableDefinitions"))])),Pm,")"])):"",Vm(e,n,r),r.selectionSet&&(i||o)?" ":"",e.call(n,"selectionSet")])}case"FragmentDefinition":return Om(["fragment ",e.call(n,"name"),r.variableDefinitions&&r.variableDefinitions.length?Mm(Om(["(",jm(Om([Pm,Nm(Om([Im("",", "),Pm]),e.map(n,"variableDefinitions"))])),Pm,")"])):""," on ",e.call(n,"typeCondition"),Vm(e,n,r)," ",e.call(n,"selectionSet")]);case"SelectionSet":return Om(["{",jm(Om([Lm,Nm(Lm,e.call(e=>Hm(e,t,n),"selections"))])),Lm,"}"]);case"Field":return Mm(Om([r.alias?Om([e.call(n,"alias"),": "]):"",e.call(n,"name"),r.arguments.length>0?Mm(Om(["(",jm(Om([Pm,Nm(Om([Im("",", "),Pm]),e.call(e=>Hm(e,t,n),"arguments"))])),Pm,")"])):"",Vm(e,n,r),r.selectionSet?" ":"",e.call(n,"selectionSet")]));case"Name":return r.value;case"StringValue":return r.block?Om(['"""',Lm,Nm(Lm,r.value.replace(/"""/g,"\\$&").split("\n")),Lm,'"""']):Om(['"',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 Om(["$",e.call(n,"name")]);case"ListValue":return Mm(Om(["[",jm(Om([Pm,Nm(Om([Im("",", "),Pm]),e.map(n,"values"))])),Pm,"]"]));case"ObjectValue":return Mm(Om(["{",t.bracketSpacing&&r.fields.length>0?" ":"",jm(Om([Pm,Nm(Om([Im("",", "),Pm]),e.map(n,"fields"))])),Pm,Im("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return Om([e.call(n,"name"),": ",e.call(n,"value")]);case"Directive":return Om(["@",e.call(n,"name"),r.arguments.length>0?Mm(Om(["(",jm(Om([Pm,Nm(Om([Im("",", "),Pm]),e.call(e=>Hm(e,t,n),"arguments"))])),Pm,")"])):""]);case"NamedType":return e.call(n,"name");case"VariableDefinition":return Om([e.call(n,"variable"),": ",e.call(n,"type"),r.defaultValue?Om([" = ",e.call(n,"defaultValue")]):"",Vm(e,n,r)]);case"TypeExtensionDefinition":return Om(["extend ",e.call(n,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return Om([e.call(n,"description"),r.description?Lm:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",e.call(n,"name"),r.interfaces.length>0?Om([" implements ",Om(Ym(e,t,n))]):"",Vm(e,n,r),r.fields.length>0?Om([" {",jm(Om([Lm,Nm(Lm,e.call(e=>Hm(e,t,n),"fields"))])),Lm,"}"]):""]);case"FieldDefinition":return Om([e.call(n,"description"),r.description?Lm:"",e.call(n,"name"),r.arguments.length>0?Mm(Om(["(",jm(Om([Pm,Nm(Om([Im("",", "),Pm]),e.call(e=>Hm(e,t,n),"arguments"))])),Pm,")"])):"",": ",e.call(n,"type"),Vm(e,n,r)]);case"DirectiveDefinition":return Om([e.call(n,"description"),r.description?Lm:"","directive ","@",e.call(n,"name"),r.arguments.length>0?Mm(Om(["(",jm(Om([Pm,Nm(Om([Im("",", "),Pm]),e.call(e=>Hm(e,t,n),"arguments"))])),Pm,")"])):"",r.repeatable?" repeatable":"",Om([" on ",Nm(" | ",e.map(n,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return Om([e.call(n,"description"),r.description?Lm:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",e.call(n,"name"),Vm(e,n,r),r.values.length>0?Om([" {",jm(Om([Lm,Nm(Lm,e.call(e=>Hm(e,t,n),"values"))])),Lm,"}"]):""]);case"EnumValueDefinition":return Om([e.call(n,"description"),r.description?Lm:"",e.call(n,"name"),Vm(e,n,r)]);case"InputValueDefinition":return Om([e.call(n,"description"),r.description?r.description.block?Lm:Bm:"",e.call(n,"name"),": ",e.call(n,"type"),r.defaultValue?Om([" = ",e.call(n,"defaultValue")]):"",Vm(e,n,r)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return Om([e.call(n,"description"),r.description?Lm:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",e.call(n,"name"),Vm(e,n,r),r.fields.length>0?Om([" {",jm(Om([Lm,Nm(Lm,e.call(e=>Hm(e,t,n),"fields"))])),Lm,"}"]):""]);case"SchemaDefinition":return Om(["schema",Vm(e,n,r)," {",r.operationTypes.length>0?jm(Om([Lm,Nm(Lm,e.call(e=>Hm(e,t,n),"operationTypes"))])):"",Lm,"}"]);case"OperationTypeDefinition":return Om([e.call(n,"operation"),": ",e.call(n,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return Om([e.call(n,"description"),r.description?Lm:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",e.call(n,"name"),Vm(e,n,r),r.fields.length>0?Om([" {",jm(Om([Lm,Nm(Lm,e.call(e=>Hm(e,t,n),"fields"))])),Lm,"}"]):""]);case"FragmentSpread":return Om(["...",e.call(n,"name"),Vm(e,n,r)]);case"InlineFragment":return Om(["...",r.typeCondition?Om([" on ",e.call(n,"typeCondition")]):"",Vm(e,n,r)," ",e.call(n,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return Mm(Om([e.call(n,"description"),r.description?Lm:"",Mm(Om(["UnionTypeExtension"===r.kind?"extend ":"","union ",e.call(n,"name"),Vm(e,n,r),r.types.length>0?Om([" =",Im(""," "),jm(Om([Im(Om([Bm," "])),Nm(Om([Bm,"| "]),e.map(n,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return Om([e.call(n,"description"),r.description?Lm:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",e.call(n,"name"),Vm(e,n,r)]);case"NonNullType":return Om([e.call(n,"type"),"!"]);case"ListType":return Om(["[",e.call(n,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}}function Vm(e,t,n){return 0===n.directives.length?"":Om([" ",Mm(jm(Om([Pm,Nm(Om([Im(""," "),Pm]),e.map(t,"directives"))])))])}function Hm(e,t,n){const r=e.getValue().length;return e.map((e,i)=>{const o=n(e);return Rm(t.originalText,e.getValue(),t.locEnd)&&in(e),"interfaces");for(let s=0;s0&&i.push(Gm(o[s-1],e,t)),i.push(a[s])}return i}function Km(e,t){delete t.loc,delete t.comments}var Xm={print:zm,massageAstNode:Km,hasPrettierIgnore:$m,insertPragma:qm,printComment:Um,canAttachComment:Wm},Jm={bracketSpacing:Tf.bracketSpacing},Zm="GraphQL",Qm="data",eg=[".graphql",".gql",".graphqls"],tg="source.graphql",ng="text",rg=139,ig={name:Zm,type:Qm,extensions:eg,tmScope:tg,aceMode:ng,languageId:rg},og=Object.freeze({__proto__:null,name:Zm,type:Qm,extensions:eg,tmScope:tg,aceMode:ng,languageId:rg,default:ig}),ag=Wt(og);const sg=[Nf(ag,()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],lg={graphql:Xm};var ug={languages:sg,options:Jm,printers:lg},cg=function(e,t){if(delete t.loc,delete t.selfClosing,"TextNode"===e.type){const n=e.chars.trim();if(!n)return null;t.chars=n}};function hg(e){return e.toUpperCase()===e}function pg(e){return fg(e,["ElementNode"])&&"string"===typeof e.tag&&(hg(e.tag[0])||e.tag.includes("."))}function dg(e){return fg(e,["TextNode"])&&!/\S/.test(e.chars)}function fg(e,t){return e&&t.some(t=>e.type===t)}function mg(e,t){const n=e.getParentNode(0);return fg(n,t)}function gg(e,t){const n=bg(e);return fg(n,t)}function vg(e,t){const n=Dg(e);return fg(n,t)}function yg(e,t){const n=e.getValue(),r=e.getParentNode(0)||{},i=r.children||r.body||[],o=i.indexOf(n);return-1!==o&&i[o+t]}function bg(e,t=1){return yg(e,-t)}function Dg(e){return yg(e,1)}function xg(e){return fg(e,["MustacheCommentStatement"])&&"string"===typeof e.value&&"prettier-ignore"===e.value.trim()}function wg(e){const t=e.getValue(),n=bg(e,2);return xg(t)||xg(n)}var Cg={getNextNode:Dg,getPreviousNode:bg,hasPrettierIgnore:wg,isGlimmerComponent:pg,isNextNodeOfSomeType:vg,isNodeOfSomeType:fg,isParentOfSomeType:mg,isPreviousNodeOfSomeType:gg,isWhitespaceNode:dg};const{concat:_g,join:kg,softline:Eg,hardline:Sg,line:Ag,group:Fg,indent:Tg,ifBreak:Og}=Qu.builders,{getNextNode:Ng,getPreviousNode:Lg,hasPrettierIgnore:Bg,isGlimmerComponent:Pg,isNextNodeOfSomeType:Mg,isParentOfSomeType:jg,isPreviousNodeOfSomeType:Ig,isWhitespaceNode:$g}=Cg,Rg=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function qg(e,t,n){const r=e.getValue();if(!r)return"";if(Bg(e)){const e=ev(t.originalText,r.loc.start.line-1,r.loc.start.column),n=ev(t.originalText,r.loc.end.line-1,r.loc.end.column),i=t.originalText.slice(e,n);return i}switch(r.type){case"Block":case"Program":case"Template":return Fg(_g(e.map(n,"body")));case"ElementNode":{const i=r.children.length>0,o=r.children.some(e=>!$g(e)),a=Pg(r)&&(!i||!o)||Rg.includes(r.tag),s=a?_g([" />",Eg]):">",l=a?"/>":">",u=(e,t)=>Tg(_g([r.attributes.length?Ag:"",kg(Ag,e.map(t,"attributes")),r.modifiers.length?Ag:"",kg(Ag,e.map(t,"modifiers")),r.comments.length?Ag:"",kg(Ag,e.map(t,"comments"))])),c=Ng(e);return _g([Fg(_g(["<",r.tag,u(e,n),r.blockParams.length?" as |".concat(r.blockParams.join(" "),"|"):"",Og(Eg,""),Og(l,s)])),a?"":Fg(_g([o?Tg(zg(e,t,n)):"",Og(i?Sg:"",""),_g([""])])),c&&"ElementNode"===c.type?Sg:""])}case"BlockStatement":{const t=e.getParentNode(1),i=t&&t.inverse&&1===t.inverse.body.length&&t.inverse.body[0]===r&&"if"===t.inverse.body[0].path.parts[0],o=r.inverse&&1===r.inverse.body.length&&"BlockStatement"===r.inverse.body[0].type&&"if"===r.inverse.body[0].path.parts[0],a=o?e=>e:Tg,s=(r.inverseStrip.open?"{{~":"{{")+"else"+(r.inverseStrip.close?"~}}":"}}");if(r.inverse)return _g([i?_g([r.openStrip.open?"{{~else ":"{{else ",Ug(e,n),r.openStrip.close?"~}}":"}}"]):Yg(e,n,r.openStrip),Tg(_g([Sg,e.call(n,"program")])),r.inverse&&!o?_g([Sg,s]):"",r.inverse?a(_g([Sg,e.call(n,"inverse")])):"",i?"":_g([Sg,Kg(e,n,r.closeStrip)])]);if(i)return _g([_g([r.openStrip.open?"{{~else":"{{else ",Ug(e,n),r.openStrip.close?"~}}":"}}"]),Tg(_g([Sg,e.call(n,"program")]))]);const l=r.program.body.some(e=>!$g(e));return _g([Yg(e,n,r.openStrip),Fg(_g([Tg(_g([Eg,e.call(n,"program")])),l?Sg:Eg,Kg(e,n,r.closeStrip)]))])}case"ElementModifierStatement":return Fg(_g(["{{",Ug(e,n),Eg,"}}"]));case"MustacheStatement":{const t=!1===r.escaped,{open:i,close:o}=r.strip,a=(t?"{{{":"{{")+(i?"~":""),s=(o?"~":"")+(t?"}}}":"}}"),l=jg(e,["AttrNode","ConcatStatement","ElementNode"])?[a,Tg(Eg)]:[a];return Fg(_g([...l,Ug(e,n),Eg,s]))}case"SubExpression":{const t=Wg(e,n),r=t.length>0?Tg(_g([Ag,Fg(kg(Ag,t))])):"";return Fg(_g(["(",Hg(e,n),r,Eg,")"]))}case"AttrNode":{const i="TextNode"===r.value.type,o=i&&""===r.value.chars,a=o&&r.value.loc.start.column===r.value.loc.end.column;if(a)return _g([r.name]);const s=e.call(n,"value"),l=i?Vg(s.parts.join(),t):s;return _g([r.name,"=",l])}case"ConcatStatement":return _g(['"',_g(e.map(e=>n(e),"parts").filter(e=>""!==e)),'"']);case"Hash":return _g([kg(Ag,e.map(n,"pairs"))]);case"HashPair":return _g([r.key,"=",e.call(n,"value")]);case"TextNode":{const t=2,n=!Lg(e),i=!Ng(e),o=!/\S/.test(r.chars),a=Xg(r.chars),s="Block"===e.getParentNode(0).type,l="ElementNode"===e.getParentNode(0).type,u="Template"===e.getParentNode(0).type;let c=Jg(r.chars),h=Zg(r.chars);if((n||i)&&o&&(s||l||u))return"";o&&a?(c=Math.min(a,t),h=0):(Mg(e,["BlockStatement","ElementNode"])&&(h=Math.max(h,1)),(Ig(e,["ElementNode"])||Ig(e,["BlockStatement"]))&&(c=Math.max(c,1)));let p="",d="";const f=e.stack.includes("attributes");if(f){const t=e.getParentNode(0),n="ConcatStatement"===t.type;if(n){const{parts:e}=t,n=e.indexOf(r);if(n>0){const t=e[n-1].type,r="MustacheStatement"===t;r&&(p=" ")}if(n{const o=e.getValue(),a=0===i,s=i===e.getParentNode(0).children.length-1,l=s&&!a,u=$g(o);return u&&l?n(r,t,n):a?_g([Eg,n(r,t,n)]):n(r,t,n)},"children"))}function Vg(e,t){const n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},i=t.singleQuote?r:n,o=i===r?n:r;let a=!1;if(e.includes(i.quote)||e.includes(o.quote)){const t=(e.match(i.regex)||[]).length,n=(e.match(o.regex)||[]).length;a=t>n}const s=a?o:i,l=e.replace(s.regex,"\\".concat(s.quote));return _g([s.quote,l,s.quote])}function Hg(e,t){return e.call(t,"path")}function Wg(e,t){const n=e.getValue();let 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 Ug(e,t){const n=Hg(e,t),r=Wg(e,t),i=[n,...r];return Tg(Fg(kg(Ag,i)))}function Gg(e){const t=e.getValue();return t.program&&t.program.blockParams.length?_g([" as |",t.program.blockParams.join(" "),"|"]):""}function Yg(e,t,{open:n=!1,close:r=!1}={}){return Fg(_g([n?"{{~#":"{{#",Ug(e,t),Gg(e),Eg,r?"~}}":"}}"]))}function Kg(e,t,{open:n=!1,close:r=!1}={}){return _g([n?"{{~/":"{{/",e.call(t,"path"),r?"~}}":"}}"])}function Xg(e){return e="string"===typeof e?e:"",e.split("\n").length-1}function Jg(e){e="string"===typeof e?e:"";const t=(e.match(/^([^\S\r\n]*[\r\n])+/g)||[])[0]||"";return Xg(t)}function Zg(e){e="string"===typeof e?e:"";const t=(e.match(/([\r\n][^\S\r\n]*)+$/g)||[])[0]||"";return Xg(t)}function Qg(e=0,t=0){return new Array(Math.min(e,t)).fill(Sg)}function ev(e,t,n){let r=0,i=0;while(1){if(i===e.length)return null;let o=e.indexOf("\n",i);if(-1===o&&(o=e.length),r===t)return i+n>o?null:i+n;if(-1===o)return null;r+=1,i=o+1}}var tv={print:qg,massageAstNode:cg},nv="Handlebars",rv="markup",iv="HTML",ov=["hbs","htmlbars"],av=[".handlebars",".hbs"],sv="text.html.handlebars",lv="handlebars",uv=155,cv={name:nv,type:rv,group:iv,aliases:ov,extensions:av,tmScope:sv,aceMode:lv,languageId:uv},hv=Object.freeze({__proto__:null,name:nv,type:rv,group:iv,aliases:ov,extensions:av,tmScope:sv,aceMode:lv,languageId:uv,default:cv}),pv=Wt(hv);const dv=[Nf(pv,()=>({since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],fv={glimmer:tv};var mv={languages:dv,printers:fv},gv=function(e,t){return delete t.sourceSpan,delete t.startSourceSpan,delete t.endSourceSpan,delete t.nameSpan,delete t.valueSpan,"text"===e.type||"comment"===e.type||"yaml"===e.type||"toml"===e.type?null:("attribute"===e.type&&delete t.value,void("docType"===e.type&&delete t.value))},vv={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"block",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"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},yv=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"],bv=Object.freeze({__proto__:null,default:yv}),Dv=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],xv=["title"],wv=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],Cv=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],_v=["autoplay","controls","crossorigin","loop","muted","preload","src"],kv=["href","target"],Ev=["color","face","size"],Sv=["dir"],Av=["cite"],Fv=["alink","background","bgcolor","link","text","vlink"],Tv=["clear"],Ov=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],Nv=["height","width"],Lv=["align"],Bv=["align","char","charoff","span","valign","width"],Pv=["align","char","charoff","span","valign","width"],Mv=["value"],jv=["cite","datetime"],Iv=["open"],$v=["title"],Rv=["open"],qv=["compact"],zv=["align"],Vv=["compact"],Hv=["height","src","type","width"],Wv=["disabled","form","name"],Uv=["color","face","size"],Gv=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],Yv=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],Kv=["cols","rows"],Xv=["align"],Jv=["align"],Zv=["align"],Qv=["align"],ey=["align"],ty=["align"],ny=["profile"],ry=["align","noshade","size","width"],iy=["manifest","version"],oy=["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],ay=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],sy=["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"],ly=["cite","datetime"],uy=["prompt"],cy=["accesskey","for","form"],hy=["accesskey","align"],py=["type","value"],dy=["as","charset","color","crossorigin","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],fy=["name"],my=["compact"],gy=["charset","content","http-equiv","name","scheme"],vy=["high","low","max","min","optimum","value"],yy=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],by=["compact","reversed","start","type"],Dy=["disabled","label"],xy=["disabled","label","selected","value"],wy=["for","form","name"],Cy=["align"],_y=["name","type","value","valuetype"],ky=["width"],Ey=["max","value"],Sy=["cite"],Ay=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],Fy=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],Ty=["name"],Oy=["media","sizes","src","srcset","type"],Ny=["media","nonce","title","type"],Ly=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],By=["align","char","charoff","valign"],Py=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],My=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],jy=["align","char","charoff","valign"],Iy=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],$y=["align","char","charoff","valign"],Ry=["datetime"],qy=["align","bgcolor","char","charoff","valign"],zy=["default","kind","label","src","srclang"],Vy=["compact","type"],Hy=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],Wy={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:Dv,abbr:xv,applet:wv,area:Cv,audio:_v,base:kv,basefont:Ev,bdo:Sv,blockquote:Av,body:Fv,br:Tv,button:Ov,canvas:Nv,caption:Lv,col:Bv,colgroup:Pv,data:Mv,del:jv,details:Iv,dfn:$v,dialog:Rv,dir:qv,div:zv,dl:Vv,embed:Hv,fieldset:Wv,font:Uv,form:Gv,frame:Yv,frameset:Kv,h1:Xv,h2:Jv,h3:Zv,h4:Qv,h5:ey,h6:ty,head:ny,hr:ry,html:iy,iframe:oy,img:ay,input:sy,ins:ly,isindex:uy,label:cy,legend:hy,li:py,link:dy,map:fy,menu:my,meta:gy,meter:vy,object:yy,ol:by,optgroup:Dy,option:xy,output:wy,p:Cy,param:_y,pre:ky,progress:Ey,q:Sy,script:Ay,select:Fy,slot:Ty,source:Oy,style:Ny,table:Ly,tbody:By,td:Py,textarea:My,tfoot:jy,th:Iy,thead:$y,time:Ry,tr:qy,track:zy,ul:Vy,video:Hy},Uy=Object.freeze({__proto__:null,a:Dv,abbr:xv,applet:wv,area:Cv,audio:_v,base:kv,basefont:Ev,bdo:Sv,blockquote:Av,body:Fv,br:Tv,button:Ov,canvas:Nv,caption:Lv,col:Bv,colgroup:Pv,data:Mv,del:jv,details:Iv,dfn:$v,dialog:Rv,dir:qv,div:zv,dl:Vv,embed:Hv,fieldset:Wv,font:Uv,form:Gv,frame:Yv,frameset:Kv,h1:Xv,h2:Jv,h3:Zv,h4:Qv,h5:ey,h6:ty,head:ny,hr:ry,html:iy,iframe:oy,img:ay,input:sy,ins:ly,isindex:uy,label:cy,legend:hy,li:py,link:dy,map:fy,menu:my,meta:gy,meter:vy,object:yy,ol:by,optgroup:Dy,option:xy,output:wy,p:Cy,param:_y,pre:ky,progress:Ey,q:Sy,script:Ay,select:Fy,slot:Ty,source:Oy,style:Ny,table:Ly,tbody:By,td:Py,textarea:My,tfoot:jy,th:Iy,thead:$y,time:Ry,tr:qy,track:zy,ul:Vy,video:Hy,default:Wy}),Gy=Wt(bv),Yy=Wt(Uy);const{CSS_DISPLAY_TAGS:Ky,CSS_DISPLAY_DEFAULT:Xy,CSS_WHITE_SPACE_TAGS:Jy,CSS_WHITE_SPACE_DEFAULT:Zy}=vv,Qy=tb(Gy),eb=nb(Yy,tb);function tb(e){const t=Object.create(null);for(const n of e)t[n]=!0;return t}function nb(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function rb(e,t){return!!e.endSourceSpan&&(!("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&&!["template","style","script","html"].includes(e.fullName)||!(!Bb(e)||!e.children.some(e=>"text"!==e.type&&"interpolation"!==e.type))))))}function ib(e){if("attribute"===e.type)return!1;if(!e.parent)return!1;if("number"!==typeof e.index||0===e.index)return!1;const t=e.parent.children[e.index-1];return ob(t)}function ob(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}function ab(e){const t=e.trim().match(/^prettier-ignore-attribute(?:\s+([^]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))}function sb(e){return"text"===e.type||"comment"===e.type}function lb(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||Ib(e)&&("script"===e.name||"style"===e.name))}function ub(e){return"yaml"===e.type||"toml"===e.type}function cb(e){return e.children&&!lb(e)}function hb(e){return lb(e)||"interpolation"===e.type||pb(e)}function pb(e){return $b(e).startsWith("pre")}function db(e){const t=n();return t&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:t;function n(){return!ub(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!Bb(e.parent)||!(!e.prev&&("root"===e.parent.type||Bb(e)&&e.parent||lb(e.parent)||!Fb(e.parent.cssDisplay)))&&!(e.prev&&!Nb(e.prev.cssDisplay))))}}function fb(e){return!ub(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!Bb(e.parent)||!(!e.next&&("root"===e.parent.type||Bb(e)&&e.parent||lb(e.parent)||!Tb(e.parent.cssDisplay)))&&!(e.next&&!Ob(e.next.cssDisplay))))}function mb(e){return Lb(e.cssDisplay)&&!lb(e)}function gb(e){return ub(e)||e.next&&e.sourceSpan.end.line+1Eb(e)))||e.firstChild&&e.firstChild===e.lastChild&&wb(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Cb(e.lastChild))}function yb(e){return"element"===e.type&&0!==e.children.length&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function bb(e){return _b(e)||e.prev&&Db(e.prev)||xb(e)}function Db(e){return _b(e)||"element"===e.type&&"br"===e.fullName||xb(e)}function xb(e){return wb(e)&&Cb(e)}function wb(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function _b(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function kb(e){return e.lastChild?kb(e.lastChild):e}function Eb(e){return e.children&&e.children.some(e=>"text"!==e.type)}function Sb(e){if("script"===e.name&&!e.attrMap.src){if(!e.attrMap.lang&&!e.attrMap.type||"module"===e.attrMap.type||"text/javascript"===e.attrMap.type||"text/babel"===e.attrMap.type||"application/javascript"===e.attrMap.type||"jsx"===e.attrMap.lang)return"babel";if("application/x-typescript"===e.attrMap.type||"ts"===e.attrMap.lang||"tsx"===e.attrMap.lang)return"typescript";if("text/markdown"===e.attrMap.type)return"markdown";if(e.attrMap.type.endsWith("json")||e.attrMap.type.endsWith("importmap"))return"json";if("text/x-handlebars-template"===e.attrMap.type)return"glimmer"}if("style"===e.name){if(!e.attrMap.lang||"postcss"===e.attrMap.lang||"css"===e.attrMap.lang)return"css";if("scss"===e.attrMap.lang)return"scss";if("less"===e.attrMap.lang)return"less"}return null}function Ab(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Fb(e){return!Ab(e)&&"inline-block"!==e}function Tb(e){return!Ab(e)&&"inline-block"!==e}function Ob(e){return!Ab(e)}function Nb(e){return!Ab(e)}function Lb(e){return!Ab(e)&&"inline-block"!==e}function Bb(e){return $b(e).startsWith("pre")}function Pb(e,t=(()=>!0)){let n=0;for(let r=e.stack.length-1;r>=0;r--){const i=e.stack[r];i&&"object"===typeof i&&!Array.isArray(i)&&t(i)&&n++}return n}function Mb(e,t){let n=e;while(n){if(t(n))return!0;n=n.parent}return!1}function jb(e,t){if(e.prev&&"comment"===e.prev.type){const t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(t)return t[1]}let n=!1;if("element"===e.type&&"svg"===e.namespace){if(!Mb(e,e=>"svg:foreignObject"===e.fullName))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===e.type&&(!e.namespace||n||Ib(e))&&Ky[e.name]||Xy}}function Ib(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function $b(e){return"element"===e.type&&(!e.namespace||Ib(e))&&Jy[e.name]||Zy}function Rb(e){let t=1/0;for(const n of e.split("\n")){if(0===n.length)continue;if(/\S/.test(n[0]))return 0;const e=n.match(/^\s*/)[0].length;n.length!==e&&(ee.slice(t)).join("\n")}function zb(e){const t=[],n=e.slice();while(0!==n.length){const e=n.shift();e&&("concat"!==e.type?0===t.length||"string"!==typeof t[t.length-1]||"string"!==typeof e?t.push(e):t.push(t.pop()+e):n.unshift(...e.parts))}return t}function Vb(e){return e}function Hb(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(ib(e)||rb(e.parent,t))}function Wb(e,t){let n=0;for(let r=0;r{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&0!==e.children.length&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){const[t,...n]=e.children;return e.clone({children:1===t.value.length?n:[t.clone({value:t.value.slice(1)}),...n]})}return e})}function iD(e){const t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;return e.map(e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r{if(e.children){const r=e.children.map(t);if(r.some(Boolean)){const t=[];for(let i=0;i"cdata"===e.type,e=>""))}function sD(e){const t=e=>"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(e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r")+i.firstChild.value+"")+o.value,sourceSpan:new a(n.sourceSpan.start,o.sourceSpan.end),isTrailingSpaceSensitive:s,hasTrailingSpaces:l}))}else t.push(i)}return e.clone({children:t})}}return e})}function lD(e,t){if("html"===t.parser)return e;const n=/\{\{([\s\S]+?)\}\}/g;return e.map(e=>{if(!Yb(e))return e;const t=[];for(const r of e.children){if("text"!==r.type){t.push(r);continue}const e=r.sourceSpan.constructor;let i=r.sourceSpan.start,o=null;const a=r.value.split(n);for(let n=0;n{if(!e.children)return e;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===e.children[0].value.trim().length)return e.clone({children:[],hasDanglingSpaces:0!==e.children.length});const n=eD(e),r=Jb(e);return e.clone({isWhitespaceSensitive:n,isIndentationSensitive:r,children:e.children.reduce((e,r)=>{if("text"!==r.type||n)return e.concat(r);const i=[],[,o,a,s]=r.value.match(/^(\s*)([\s\S]*?)(\s*)$/);o&&i.push({type:t});const l=r.sourceSpan.constructor;return a&&i.push({type:"text",value:a,sourceSpan:new l(r.sourceSpan.start.moveBy(o.length),r.sourceSpan.end.moveBy(-s.length))}),s&&i.push({type:t}),e.concat(i)},[]).reduce((e,n,r,i)=>{if(n.type===t)return e;const o=0!==r&&i[r-1].type===t,a=r!==i.length-1&&i[r+1].type===t;return e.concat(Object.assign({},n,{hasLeadingSpaces:o,hasTrailingSpaces:a}))},[])})})}function cD(e){return e.map(e=>Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)}))}function hD(e,t){return e.map(e=>"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))}))}function pD(e,t){return e.map(e=>Object.assign(e,{cssDisplay:Kb(e,t)}))}function dD(e){return e.map(e=>e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:Xb(e)}):e.clone({children:e.children.map(e=>Object.assign({},e,{isLeadingSpaceSensitive:Zb(e),isTrailingSpaceSensitive:Qb(e)})).map((e,t,n)=>Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive}))}):e)}var fD=nD;function mD(e){return/^\s*/.test(e)}function gD(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}var vD={hasPragma:mD,insertPragma:gD};const{builders:{concat:yD,group:bD}}=Qu;function DD(e,t){const{left:n,operator:r,right:i}=xD(e);return yD([bD(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(i,{parser:"__js_expression"})])}function xD(e){const t=/([^]*?)\s+(in|of)\s+([^]*)/,n=/,([^,}\]]*)(?:,([^,}\]]*))?$/,r=/^\(|\)$/g,i=e.match(t);if(!i)return;const o={};o.for=i[3].trim();const a=i[1].trim().replace(r,""),s=a.match(n);return s?(o.alias=a.replace(n,""),o.iterator1=s[1].trim(),s[2]&&(o.iterator2=s[2].trim())):o.alias=a,{left:"".concat([o.alias,o.iterator1,o.iterator2].filter(Boolean).join(",")),operator:i[2],right:o.for}}function wD(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueSlotScope:!0})}function CD(e){const t=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,n=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,r=e.trim();return t.test(r)||n.test(r)}var _D={isVueEventBindingExpression:CD,printVueFor:DD,printVueSlotScope:wD};const kD=/^\d+$/;function ED(e){return e.sort().filter((t,n)=>JSON.stringify(t)!==JSON.stringify(e[n-1]))}var SD=e=>ED(e.split(",").map(e=>{const t={};return e.trim().split(/\s+/).forEach((e,n)=>{if(0===n)return void(t.url=e);const r=e.slice(0,e.length-1),i=e[e.length-1],o=parseInt(r,10),a=parseFloat(r);if("w"===i&&kD.test(r))t.width=o;else if("h"===i&&kD.test(r))t.height=o;else{if("x"!==i||Number.isNaN(a))throw new Error("Invalid srcset descriptor: ".concat(e));t.density=a}}),t})),AD=e=>[...new Set(e.map(e=>{if(!e.url)throw new Error("URL is required");const t=[e.url];return e.width&&t.push("".concat(e.width,"w")),e.height&&t.push("".concat(e.height,"h")),e.density&&t.push("".concat(e.density,"x")),t.join(" ")}))].join(", "),FD={parse:SD,stringify:AD};const{builders:{concat:TD,ifBreak:OD,join:ND,line:LD}}=Qu,BD=FD.parse;function PD(e){const t=BD(e),n=t.some(e=>e.width),r=t.some(e=>e.height),i=t.some(e=>e.density);if(n+r+i>1)throw new Error("Mixed descriptor in srcset is not supported");const o=n?"width":r?"height":"density",a=n?"w":r?"h":"x",s=e=>Math.max(...e),l=t.map(e=>e.url),u=s(l.map(e=>e.length)),c=t.map(e=>e[o]).map(e=>e?e.toString():""),h=c.map(e=>{const t=e.indexOf(".");return-1===t?e.length:t}),p=s(h);return ND(TD([",",LD]),l.map((e,t)=>{const n=[e],r=c[t];if(r){const i=u-e.length+1,o=p-h[t],s=" ".repeat(i+o);n.push(OD(s," "),r+a)}return TD(n)}))}function MD(e){return e.trim().split(/\s+/).join(" ")}var jD={printImgSrcset:PD,printClassNames:MD};const{builders:ID,utils:{stripTrailingHardline:$D,mapDoc:RD}}=Qu,{breakParent:qD,dedentToRoot:zD,fill:VD,group:HD,hardline:WD,ifBreak:UD,indent:GD,join:YD,line:KD,literalline:XD,markAsRoot:JD,softline:ZD}=ID,{countChars:QD,countParents:ex,dedentString:tx,forceBreakChildren:nx,forceBreakContent:rx,forceNextEmptyLine:ix,getLastDescendant:ox,getPrettierIgnoreAttributeCommentData:ax,hasPrettierIgnore:sx,inferScriptParser:lx,isScriptLikeTag:ux,isTextLikeNode:cx,normalizeParts:hx,preferHardlineAsLeadingSpaces:px,shouldNotPrintClosingTag:dx,shouldPreserveContent:fx,unescapeQuoteEntities:mx}=Gb,{replaceEndOfLineWith:gx}=mu,{insertPragma:vx}=vD,{printVueFor:yx,printVueSlotScope:bx,isVueEventBindingExpression:Dx}=_D,{printImgSrcset:xx,printClassNames:wx}=jD;function Cx(e){const t=hx(e);return 0===t.length?"":1===t.length?t[0]:ID.concat(t)}function _x(e,t,n,r){const i=e.getValue();switch(i.type){case"text":if(ux(i.parent)){const e=lx(i.parent);if(e){const t="markdown"===e?tx(i.value.replace(/^[^\S\n]*?\n/,"")):i.value;return ID.concat([Cx([qD,Ix(i,r),$D(n(t,{parser:e})),Rx(i,r)])])}}else if("interpolation"===i.parent.type)return Cx([GD(Cx([KD,n(i.value,Object.assign({__isInHtmlInterpolation:!0},"angular"===r.parser?{parser:"__ng_interpolation",trailingComma:"none"}:"vue"===r.parser?{parser:"__vue_expression"}:{parser:"__js_expression"}))])),i.parent.next&&Px(i.parent.next)?" ":KD]);break;case"attribute":{if(!i.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.originalText.slice(i.valueSpan.start.offset,i.valueSpan.end.offset)))return Cx([i.rawName,"=",i.value]);if("lwc"===r.parser){const e=/^\{[\s\S]*\}$/;if(e.test(r.originalText.slice(i.valueSpan.start.offset,i.valueSpan.end.offset)))return Cx([i.rawName,"=",i.value])}const e=Ux(i,(e,t)=>n(e,Object.assign({__isInHtmlAttribute:!0},t)),r);if(e)return Cx([i.rawName,'="',HD(RD(e,e=>"string"===typeof e?e.replace(/"/g,"""):e)),'"']);break}case"yaml":return JD(Cx(["---",WD,0===i.value.trim().length?"":n(i.value,{parser:"yaml"}),"---"]))}}function kx(e,t,n){const r=e.getValue();switch(r.type){case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),ID.concat([HD(Ex(e,t,n)),WD]);case"element":case"ieConditionalComment":{const i=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,o=Symbol("element-attr-group-id");return Cx([HD(Cx([HD(Sx(e,t,n),{id:o}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?KD:"":Cx([rx(r)?qD:"",(e=>i?UD(GD(e),e,{groupId:o}):ux(r)&&"root"===r.parent.type&&"vue"===t.parser&&!t.vueIndentScriptAndStyle?e:GD(e))(Cx([i?UD(ZD,"",{groupId:o}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?KD:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?zD(ZD):ZD,Ex(e,t,n)])),(r.next?Px(r.next):Mx(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":i?UD(ZD,"",{groupId:o}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?KD:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*ex(e,e=>e.parent&&"root"!==e.parent.type),"}$")).test(r.lastChild.value)?"":ZD])])),Tx(r,t)])}case"ieConditionalStartComment":case"ieConditionalEndComment":return Cx([Ax(r),Nx(r)]);case"interpolation":return Cx([Ax(r,t),Cx(e.map(n,"children")),Nx(r,t)]);case"text":if("interpolation"===r.parent.type){const e=/\n[^\S\n]*?$/,t=e.test(r.value),n=t?r.value.replace(e,""):r.value;return Cx([Cx(gx(n,XD)),t?WD:""])}return VD(hx([].concat(Ix(r,t),Wx(r),Rx(r,t))));case"docType":return Cx([HD(Cx([Ax(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),Nx(r,t)]);case"comment":return Cx([Ix(r,t),Cx(gx(t.originalText.slice(t.locStart(r),t.locEnd(r)),XD)),Rx(r,t)]);case"attribute":{if(null===r.value)return r.rawName;const e=mx(r.value),t=QD(e,"'"),n=QD(e,'"'),i=t{const t=e.getValue(),n=t.prev?a(t.prev,t):"";return Cx([n?Cx([n,ix(t.prev)?WD:""]):"",o(e)])},"children"))]);const i=r.children.map(()=>Symbol(""));return Cx(e.map((e,t)=>{const n=e.getValue();if(cx(n)){if(n.prev&&cx(n.prev)){const t=a(n.prev,n);if(t)return ix(n.prev)?Cx([WD,WD,o(e)]):Cx([t,o(e)])}return o(e)}const r=[],s=[],l=[],u=[],c=n.prev?a(n.prev,n):"",h=n.next?a(n,n.next):"";return c&&(ix(n.prev)?r.push(WD,WD):c===WD?r.push(WD):cx(n.prev)?s.push(c):s.push(UD("",ZD,{groupId:i[t-1]}))),h&&(ix(n)?cx(n.next)&&u.push(WD,WD):h===WD?cx(n.next)&&u.push(WD):l.push(h)),Cx([].concat(r,HD(Cx([Cx(s),HD(Cx([o(e),Cx(l)]),{id:i[t]})])),u))},"children"));function o(e){const r=e.getValue();return sx(r)?Cx([].concat(Ix(r,t),gx(t.originalText.slice(t.locStart(r)+(r.prev&&Lx(r.prev)?qx(r).length:0),t.locEnd(r)-(r.next&&Px(r.next)?Hx(r,t).length:0)),XD),Rx(r,t))):fx(r,t)?Cx([].concat(Ix(r,t),HD(Sx(e,t,n)),gx(t.originalText.slice(r.startSourceSpan.end.offset+(r.firstChild&&Bx(r.firstChild)?-zx(r).length:0),r.endSourceSpan.start.offset+(r.lastChild&&jx(r.lastChild)?Vx(r,t).length:Mx(r)?-Hx(r.lastChild,t).length:0)),XD),Tx(r,t),Rx(r,t))):n(e)}function a(e,t){return cx(e)&&cx(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?px(t)?WD:KD:"":px(t)?WD:ZD:Lx(e)&&(sx(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&0!==t.attrs.length)||"element"===e.type&&e.isSelfClosing&&Px(t)?"":!t.isLeadingSpaceSensitive||px(t)||Px(t)&&e.lastChild&&jx(e.lastChild)&&e.lastChild.lastChild&&jx(e.lastChild.lastChild)?WD:t.hasLeadingSpaces?KD:ZD}}function Sx(e,t,n){const r=e.getValue(),i="element"===r.type&&"script"===r.fullName&&1===r.attrs.length&&"src"===r.attrs[0].fullName&&0===r.children.length;return Cx([Ax(r,t),r.attrs&&0!==r.attrs.length?Cx([GD(Cx([i?" ":KD,YD(KD,(r=>{const i="boolean"===typeof r?()=>r:Array.isArray(r)?e=>r.includes(e.rawName):()=>!1;return e.map(e=>{const r=e.getValue();return i(r)?Cx(gx(t.originalText.slice(t.locStart(r),t.locEnd(r)),XD)):n(e)},"attrs")})(r.prev&&"comment"===r.prev.type&&ax(r.prev.value)))])),r.firstChild&&Bx(r.firstChild)||r.isSelfClosing&&Mx(r.parent)?r.isSelfClosing?" ":"":r.isSelfClosing?i?" ":KD:i?"":ZD]):r.isSelfClosing?" ":"",r.isSelfClosing?"":Fx(r)])}function Ax(e,t){return e.prev&&Lx(e.prev)?"":Cx([Ix(e,t),qx(e)])}function Fx(e){return e.firstChild&&Bx(e.firstChild)?"":zx(e)}function Tx(e,t){return Cx([e.isSelfClosing?"":Ox(e,t),Nx(e,t)])}function Ox(e,t){return e.lastChild&&jx(e.lastChild)?"":Cx([$x(e,t),Vx(e,t)])}function Nx(e,t){return(e.next?Px(e.next):Mx(e.parent))?"":Cx([Hx(e,t),Rx(e,t)])}function Lx(e){return e.next&&!cx(e.next)&&cx(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Bx(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Px(e){return e.prev&&!cx(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Mx(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!cx(ox(e.lastChild))}function jx(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&cx(ox(e))}function Ix(e,t){return Bx(e)?zx(e.parent):Px(e)?Hx(e.prev,t):""}function $x(e,t){return Mx(e)?Hx(e.lastChild,t):""}function Rx(e,t){return jx(e)?Vx(e.parent,t):Lx(e)?qx(e.next):""}function qx(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function zx(e){switch(qs(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function Vx(e,t){if(qs(!e.isSelfClosing),dx(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function Wx(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?gx(t,XD):gx(tx(t.replace(/^\s*?\n|\n\s*?$/g,"")),WD):YD(KD,t.split(/[\t\n\f\r ]+/)).parts}function Ux(e,t,n){const r=t=>new RegExp(t.join("|")).test(e.fullName),i=()=>mx(e.value);let o=!1;const a=(e,t)=>{const n="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&("__vue_expression"!==t.parser||"TemplateLiteral"!==n.type&&"StringLiteral"!==n.type)||(o=!0)},s=e=>HD(e),l=(e,t=!0)=>HD(Cx([GD(Cx([ZD,e])),t?ZD:""])),u=e=>o?s(e):l(e),c=(e,n)=>t(e,Object.assign({__onHtmlBindingRoot:a},n));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return l(xx(i()));if("class"===e.fullName&&!n.parentParser){const e=i();if(!e.includes("{{"))return wx(e)}if("style"===e.fullName&&!n.parentParser){const e=i();if(!e.includes("{{"))return l(c(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return yx(i(),c);if("slot-scope"===e.fullName)return bx(i(),c);const t=["^@","^v-on:"],n=["^:","^v-bind:"],o=["^v-"];if(r(t)){const e=i();return u(Dx(e)?c(e,{parser:"__js_expression"}):$D(c(e,{parser:"__vue_event_binding"})))}if(r(n))return u(c(i(),{parser:"__vue_expression"}));if(r(o))return u(c(i(),{parser:"__js_expression"}))}if("angular"===n.parser){const t=(e,t)=>c(e,Object.assign({},t,{trailingComma:"none"})),n=["^\\*"],o=["^\\(.+\\)$","^on-"],a=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],s=["^i18n(-.+)?$"];if(r(o))return u(t(i(),{parser:"__ng_action"}));if(r(a))return u(t(i(),{parser:"__ng_binding"}));if(r(s)){const t=i().trim();return l(VD(Wx(e,t)),!t.includes("@@"))}if(r(n))return u(t(i(),{parser:"__ng_directive"}));const h=/\{\{([\s\S]+?)\}\}/g,p=i();if(h.test(p)){const e=[];return p.split(h).forEach((n,r)=>{if(r%2===0)e.push(Cx(gx(n,XD)));else try{e.push(HD(Cx(["{{",GD(Cx([KD,t(n,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})])),KD,"}}"])))}catch(i){e.push("{{",Cx(gx(n,XD)),"}}")}}),HD(Cx(e))}}return null}var Gx={preprocess:fD,print:kx,insertPragma:vx,massageAstNode:gv,embed:_x};const Yx="HTML";var Kx={htmlWhitespaceSensitivity:{since:"1.15.0",category:Yx,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:Yx,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Xx="HTML",Jx="markup",Zx="text.html.basic",Qx="html",ew="htmlmixed",tw="text/html",nw="#e34c26",rw=["xhtml"],iw=[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],ow=146,aw={name:Xx,type:Jx,tmScope:Zx,aceMode:Qx,codemirrorMode:ew,codemirrorMimeType:tw,color:nw,aliases:rw,extensions:iw,languageId:ow},sw=Object.freeze({__proto__:null,name:Xx,type:Jx,tmScope:Zx,aceMode:Qx,codemirrorMode:ew,codemirrorMimeType:tw,color:nw,aliases:rw,extensions:iw,languageId:ow,default:aw}),lw="Vue",uw="markup",cw="#2c3e50",hw=[".vue"],pw="text.html.vue",dw="html",fw=391,mw={name:lw,type:uw,color:cw,extensions:hw,tmScope:pw,aceMode:dw,languageId:fw},gw=Object.freeze({__proto__:null,name:lw,type:uw,color:cw,extensions:hw,tmScope:pw,aceMode:dw,languageId:fw,default:mw}),vw=Wt(sw),yw=Wt(gw);const bw=[Nf(vw,()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),Nf(vw,e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:e.extensions.concat([".mjml"])})),Nf(vw,()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),Nf(yw,()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],Dw={html:Gx};var xw={languages:bw,printers:Dw,options:Kx};const{addLeadingComment:ww,addTrailingComment:Cw,addDanglingComment:_w,getNextNonSpaceNonCommentCharacterIndex:kw}=Cc;function Ew(e,t,n,r,i){const{precedingNode:o,enclosingNode:a,followingNode:s}=e;return Vw(t,o,a,s,e,n)||Pw(a,s,e)||Nw(t,o,a,s,e,n)||Lw(t,o,a,s,e,n)||Bw(a,o,s,e)||Iw(a,o,s,e)||Hw(a,e)||Jw(a,o,e)||Yw(o,a,s,e)||Xw(a,r,e,i)||Zw(t,a,o,e,n)||Qw(a,e)||$w(t,a,o,e,n)||Ww(a,e)}function Sw(e,t,n,r,i){const{precedingNode:o,enclosingNode:a,followingNode:s}=e;return Ow(s,e)||Vw(t,o,a,s,e,n)||Mw(a,o,s,e,t,n)||Hw(a,e)||Nw(t,o,a,s,e,n)||Lw(t,o,a,s,e,n)||Bw(a,o,s,e)||Iw(a,o,s,e)||Ww(a,e)||Gw(o,a,e)||Kw(a,e)||Xw(a,r,e,i)||eC(a,s,e)||tC(a,s,e)}function Aw(e,t,n,r,i){const{precedingNode:o,enclosingNode:a,followingNode:s}=e;return!!(Nw(t,o,a,s,e,n)||Lw(t,o,a,s,e,n)||jw(a,o,e)||zw(t,a,e,n)||$w(t,a,o,e,n)||Xw(a,r,e,i)||qw(t,a,e,n)||Rw(t,a,o,e,n)||rC(t,a,o,s,e)||Uw(a,e)||nC(t,a,s,e,n))}function Fw(e,t){const n=e.body.filter(e=>"EmptyStatement"!==e.type);0===n.length?_w(e,t):ww(n[0],t)}function Tw(e,t){"BlockStatement"===e.type?Fw(e,t):ww(e,t)}function Ow(e,t){return!(!e||!uC(t))&&(ww(e,t),!0)}function Nw(e,t,n,r,i,o){if(!n||"IfStatement"!==n.type||!r)return!1;const a=mu.getNextNonSpaceNonCommentCharacter(e,i,o.locEnd);return")"===a?(Cw(t,i),!0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?Cw(t,i):_w(n,i),!0):"BlockStatement"===r.type?(Fw(r,i),!0):"IfStatement"===r.type?(Tw(r.consequent,i),!0):n.consequent===r&&(ww(r,i),!0)}function Lw(e,t,n,r,i,o){if(!n||"WhileStatement"!==n.type||!r)return!1;const a=mu.getNextNonSpaceNonCommentCharacter(e,i,o.locEnd);return")"===a?(Cw(t,i),!0):"BlockStatement"===r.type&&(Fw(r,i),!0)}function Bw(e,t,n,r){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!n)&&("CatchClause"===e.type&&t?(Cw(t,r),!0):"BlockStatement"===n.type?(Fw(n,r),!0):"TryStatement"===n.type?(Tw(n.finalizer,r),!0):"CatchClause"===n.type&&(Tw(n.body,r),!0))}function Pw(e,t,n){return!(!e||"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||!t||"Identifier"!==t.type)&&(ww(e,n),!0)}function Mw(e,t,n,r,i,o){const a=t&&!mu.hasNewlineInRange(i,o.locEnd(t),o.locStart(r));return!(t&&a||!e||"ConditionalExpression"!==e.type||!n)&&(ww(n,r),!0)}function jw(e,t,n){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type)&&(Cw(e.value.left,n),!0)}function Iw(e,t,n,r){return!(!(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type)&&e.decorators&&e.decorators.length>0)||n&&"Decorator"===n.type)&&(e.decorators&&0!==e.decorators.length?Cw(e.decorators[e.decorators.length-1],r):ww(e,r),!0)}function $w(e,t,n,r,i){return(t&&n&&("Property"===t.type||"TSDeclareMethod"===t.type||"TSAbstractMethodDefinition"===t.type)&&"Identifier"===n.type&&t.key===n&&":"!==mu.getNextNonSpaceNonCommentCharacter(e,n,i.locEnd)||!(!n||!t||"Decorator"!==n.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"TSDeclareMethod"!==t.type&&"MethodDefinition"!==t.type))&&(Cw(n,r),!0)}function Rw(e,t,n,r,i){return"("===mu.getNextNonSpaceNonCommentCharacter(e,r,i.locEnd)&&(!(!n||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type)&&(Cw(n,r),!0))}function qw(e,t,n,r){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const i=kw(e,n,r.locEnd);return"=>"===e.slice(i,i+2)&&(_w(t,n),!0)}function zw(e,t,n,r){return")"===mu.getNextNonSpaceNonCommentCharacter(e,n,r.locEnd)&&(t&&(aC(t)&&0===(t.params||t.parameters).length||("CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type)&&0===t.arguments.length)?(_w(t,n),!0):!(!t||"MethodDefinition"!==t.type||0!==t.value.params.length)&&(_w(t.value,n),!0))}function Vw(e,t,n,r,i,o){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return Cw(t,i),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&aC(n)&&")"===mu.getNextNonSpaceNonCommentCharacter(e,i,o.locEnd))return Cw(t,i),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){const t=(()=>{if(0!==(n.params||n.parameters).length)return mu.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,o.locEnd(mu.getLast(n.params||n.parameters)));const t=mu.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,o.locEnd(n.id));return mu.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)})();if(o.locStart(i)>t)return Fw(r,i),!0}return!1}function Hw(e,t){return!(!e||"ImportSpecifier"!==e.type)&&(ww(e,t),!0)}function Ww(e,t){return!(!e||"LabeledStatement"!==e.type)&&(ww(e,t),!0)}function Uw(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label)&&(Cw(e,t),!0)}function Gw(e,t,n){return!!(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)&&(ww(t.arguments[0],n),!0)}function Yw(e,t,n,r){return!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type?(n&&("UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)&&mu.isNodeIgnoreComment(r)&&(n.types[0].prettierIgnore=!0,r.unignore=!0),!1):(mu.isNodeIgnoreComment(r)&&(n.prettierIgnore=!0,r.unignore=!0),!!e&&(Cw(e,r),!0))}function Kw(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type)&&(ww(e,t),!0)}function Xw(e,t,n,r){return t&&t.body&&0===t.body.length?(r?_w(t,n):ww(t,n),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length)&&(r?_w(e,n):ww(e,n),!0)}function Jw(e,t,n){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type)&&(ww(e,n),!0)}function Zw(e,t,n,r,i){return!!(n&&"ImportSpecifier"===n.type&&t&&"ImportDeclaration"===t.type&&mu.hasNewline(e,i.locEnd(r)))&&(Cw(n,r),!0)}function Qw(e,t){return!(!e||"AssignmentPattern"!==e.type)&&(ww(e,t),!0)}function eC(e,t,n){return!(!e||"TypeAlias"!==e.type)&&(ww(e,n),!0)}function tC(e,t,n){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type&&!iC(n))&&(ww(t,n),!0)}function nC(e,t,n,r,i){return!(n||!t||"TSMethodSignature"!==t.type&&"TSDeclareFunction"!==t.type&&"TSAbstractMethodDefinition"!==t.type||";"!==mu.getNextNonSpaceNonCommentCharacter(e,r,i.locEnd))&&(Cw(t,r),!0)}function rC(e,t,n,r,i){return!(!t||"TSMappedType"!==t.type)&&(r&&"TSTypeParameter"===r.type&&r.name?(ww(r.name,i),!0):!(!n||"TSTypeParameter"!==n.type||!n.constraint)&&(Cw(n.constraint,i),!0))}function iC(e){return"Block"===e.type||"CommentBlock"===e.type}function oC(e,t=(()=>!0)){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(e=>e.leading&&t(e))}function aC(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function sC(e){if(e&&"BinaryExpression"!==e.type&&"LogicalExpression"!==e.type)return/^[\s(&|]*$/}function lC(e,t){if(("typescript"===t.parser||"flow"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===e.value.params.length&&!e.value.returnType&&(!e.value.typeParameters||0===e.value.typeParameters.length)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function uC(e){return iC(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var cC={handleOwnLineComment:Ew,handleEndOfLineComment:Sw,handleRemainingComment:Aw,hasLeadingComment:oC,isBlockComment:iC,isTypeCastComment:uC,getGapRegex:sC,getCommentChildNodes:lC};const{isBlockComment:hC,hasLeadingComment:pC}=cC,{builders:{indent:dC,join:fC,line:mC,hardline:gC,softline:vC,literalline:yC,concat:bC,group:DC,dedentToRoot:xC},utils:{mapDoc:wC,stripTrailingHardline:CC}}=Qu;function _C(e,t,n,r){const i=e.getValue(),o=e.getParentNode(),a=e.getParentNode(1);switch(i.type){case"TemplateLiteral":{const o=[OC,PC,MC,NC].some(t=>t(e));if(o){const r=i.quasis.map(e=>e.value.raw);let o=0;const a=r.reduce((e,t,n)=>0===n?t:e+"@prettier-placeholder-"+o+++"-id"+t,""),s=n(a,{parser:"scss"});return AC(s,e,t)}if($C(e)){const r=i.expressions?e.map(t,"expressions"):[],o=i.quasis.length;if(1===o&&""===i.quasis[0].value.raw.trim())return"``";const a=[];for(let e=0;e2&&""===c[0].trim()&&""===c[1].trim(),f=h>2&&""===c[h-1].trim()&&""===c[h-2].trim(),m=c.every(e=>/^\s*(?:#[^\r\n]*)?$/.test(e));if(!l&&/#[^\r\n]*$/.test(c[h-1]))return null;let g=null;g=m?TC(c):CC(n(u,{parser:"graphql"})),g?(g=SC(g,!1),!s&&d&&a.push(""),a.push(g),!l&&f&&a.push("")):s||l||!d||a.push(""),p&&a.push(bC(["${",p,"}"]))}return bC(["`",dC(bC([gC,fC(gC,a)])),gC,"`"])}const a=qC(e)?"html":LC(e)?"angular":void 0;if(a)return VC(e,t,n,a,r);break}case"TemplateElement":if(a&&"TaggedTemplateExpression"===a.type&&1===o.quasis.length&&"Identifier"===a.tag.type&&("md"===a.tag.name||"markdown"===a.tag.name)){const e=o.quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(e,t)=>"\\".repeat(t.length/2)+"`"),t=kC(e),n=""!==t;return bC([n?dC(bC([vC,s(e.replace(new RegExp("^".concat(t),"gm"),""))])):bC([yC,xC(s(e))]),vC])}break}function s(e){const t=n(e,{parser:"markdown",__inJsTemplate:!0});return CC(SC(t,!0))}}function kC(e){const t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}function EC(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function SC(e,t){return wC(e,e=>{if(!e.parts)return e;const n=[];return e.parts.forEach(e=>{"string"===typeof e?n.push(t?e.replace(/(\\*)`/g,"$1$1\\`"):EC(e)):n.push(e)}),Object.assign({},e,{parts:n})})}function AC(e,t,n){const r=t.getValue(),i=1===r.quasis.length&&!r.quasis[0].value.raw.trim();if(i)return"``";const o=r.expressions?t.map(n,"expressions"):[],a=FC(e,o);if(!a)throw new Error("Couldn't insert all the expressions");return bC(["`",dC(bC([gC,CC(a)])),vC,"`"])}function FC(e,t){if(!t||!t.length)return e;const n=t.slice();let r=0;const i=wC(e,e=>{if(!e||!e.parts||!e.parts.length)return e;let{parts:t}=e;const i=t.indexOf("@"),o=i+1;if(i>-1&&"string"===typeof t[o]&&t[o].startsWith("prettier-placeholder")){const e=t[i],n=t[o],r=t.slice(o+1);t=t.slice(0,i).concat([e+n]).concat(r)}const a=t.findIndex(e=>"string"===typeof e&&e.startsWith("@prettier-placeholder"));if(a>-1){const e=t[a],i=t.slice(a+1),o=e.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),s=o[1],l=o[2],u=n[s];r++,t=t.slice(0,a).concat(["${",u,"}"+l]).concat(i)}return Object.assign({},e,{parts:t})});return n.length===r?i:null}function TC(e){const t=[];let n=!1;return e.map(e=>e.trim()).forEach((e,r,i)=>{""!==e&&(""===i[r-1]&&n?t.push(bC([gC,e])):t.push(e),n=!0)}),0===t.length?null:fC(gC,t)}function OC(e){const 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(e=>"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 NC(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"ArrayExpression"===e.type&&"elements"===t,(e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t,...BC)}function LC(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t,...BC)}const BC=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function PC(e){const t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;const{tag:n}=t;switch(n.type){case"MemberExpression":return jC(n.object)||IC(n);case"CallExpression":return jC(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(jC(n.callee.object.object)||IC(n.callee.object))||"CallExpression"===n.callee.object.type&&jC(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function MC(e){const t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function jC(e){return"Identifier"===e.type&&"styled"===e.name}function IC(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function $C(e){const t=e.getValue(),n=e.getParentNode();return RC(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)}function RC(e,t){return pC(e,e=>hC(e)&&e.value===" ".concat(t," "))}function qC(e){return RC(e.getValue(),"HTML")||e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t)}let zC=0;function VC(e,t,n,r,i){const o=e.getValue(),a=zC;zC=zC+1>>>0;const s=e=>"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(a,"_IN_JS"),l=o.quasis.map((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+s(t)).join(""),u=e.map(t,"expressions");if(0===u.length&&0===l.trim().length)return"``";const c=new RegExp(s("(\\d+)"),"g");let h=0;const p=wC(CC(n(l,{parser:r,__onHtmlRoot(e){h=e.children.length}})),e=>{if("string"!==typeof e)return e;const t=[],n=e.split(c);for(let r=0;r1?dC(DC(p)):DC(p),f,"`"]))}var HC=_C;function WC(e,t,n){if(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","flags","errors"].forEach(e=>{delete t[e]}),e.loc&&null===e.loc.source&&delete t.loc.source,"BigIntLiteral"===e.type&&(t.value=t.value.toLowerCase()),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("JSXExpressionContainer"===e.type&&"Literal"===e.expression.type&&" "===e.expression.value)return null;if("TSParameterProperty"===e.type&&null===e.accessibility&&!e.readonly)return{type:"Identifier",name:e.parameter.name,typeAnnotation:t.parameter.typeAnnotation,decorators:t.decorators};if("TSNamespaceExportDeclaration"===e.type&&e.specifiers&&0===e.specifiers.length&&delete t.specifiers,"JSXOpeningElement"===e.type&&delete t.selfClosing,"JSXElement"===e.type&&delete t.closingElement,"Property"!==e.type&&"ObjectProperty"!==e.type&&"MethodDefinition"!==e.type&&"ClassProperty"!==e.type&&"TSPropertySignature"!==e.type&&"ObjectTypeProperty"!==e.type||"object"!==typeof e.key||!e.key||"Literal"!==e.key.type&&"StringLiteral"!==e.key.type&&"Identifier"!==e.key.type||delete t.key,"OptionalMemberExpression"===e.type&&!1===e.optional&&(t.type="MemberExpression",delete t.optional),"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some(e=>"jsx"===e.name.name)){const e=t.children.filter(e=>"JSXExpressionContainer"===e.type&&"TemplateLiteral"===e.expression.type).map(e=>e.expression),n=e.reduce((e,t)=>e.concat(t.quasis),[]);n.forEach(e=>delete e.value)}"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&t.value.expression.quasis.forEach(e=>delete e.value);const r=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length){const n=e.expression.arguments[0].properties;t.expression.arguments[0].properties.forEach((e,t)=>{let r=null;switch(n[t].key.name){case"styles":"ArrayExpression"===e.value.type&&(r=e.value.elements[0]);break;case"template":"TemplateLiteral"===e.value.type&&(r=e.value);break}r&&r.quasis.forEach(e=>delete e.value)})}if("TaggedTemplateExpression"!==e.type||"MemberExpression"!==e.tag.type&&("Identifier"!==e.tag.type||"gql"!==e.tag.name&&"graphql"!==e.tag.name&&"css"!==e.tag.name&&"md"!==e.tag.name&&"markdown"!==e.tag.name&&"html"!==e.tag.name)&&"CallExpression"!==e.tag.type||t.quasi.quasis.forEach(e=>delete e.value),"TemplateLiteral"===e.type){const r=e.leadingComments&&e.leadingComments.some(e=>"CommentBlock"===e.type&&["GraphQL","HTML"].some(t=>e.value===" ".concat(t," ")));(r||"CallExpression"===n.type&&"graphql"===n.callee.name)&&t.quasis.forEach(e=>delete e.value)}}var UC=WC;const{getLast:GC,hasNewline:YC,hasNewlineInRange:KC,hasIgnoreComment:XC,hasNodeIgnoreComment:JC,skipWhitespace:ZC}=mu,QC=Ra.keyword.isIdentifierNameES5,e_="(?:(?=.)\\s)",t_=new RegExp("^".concat(e_,"*:")),n_=new RegExp("^".concat(e_,"*::"));function r_(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&e.trailingComments[0].value.match(t_)}function i_(e){return e&&e[0].value.match(n_)}function o_(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e))return e.some(e=>o_(e,t));const n=t(e);return"boolean"===typeof n?n:Object.keys(e).some(n=>o_(e[n],t))}function a_(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||"CallExpression"===e.type||"OptionalCallExpression"===e.type||"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type}function s_(e){return e.expressions?e.expressions[0]:e.left||e.test||e.callee||e.object||e.tag||e.argument||e.expression}function l_(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side",t)}const u_=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function c_(e){return e&&u_.has(e.type)}function h_(e){const t=e.getParentNode();return"declaration"===e.getName()&&c_(t)?t:null}function p_(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 d_(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"===typeof e.value}function f_(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"===typeof e.value}function m_(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type}function g_(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function v_(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}function y_(e){return"TemplateLiteral"===e.type}function b_(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 D_(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function x_(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;const n=t.getNode();if(!n.expression||!D_(n.expression))return!1;const r=t.getParentNode();return"Program"===r.type&&1===r.body.length}function w_(e){return"JSXExpressionContainer"===e.type&&p_(e.expression)&&" "===e.expression.value&&!e.expression.comments}function C_(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&("Identifier"===e.object.type||C_(e.object))}function __(e){return"get"===e.kind||"set"===e.kind}function k_(e,t,n){return n.locStart(e)===n.locStart(t)}function E_(e,t){return __(e)||k_(e,e.value,t)}function S_(e,t){return("ObjectTypeProperty"===e.type||"ObjectTypeInternalSlot"===e.type)&&"FunctionTypeAnnotation"===e.value.type&&!e.static&&!E_(e,t)}function A_(e,t){return("TypeAnnotation"===e.type||"TSTypeAnnotation"===e.type)&&"FunctionTypeAnnotation"===e.typeAnnotation.type&&!e.static&&!k_(e,e.typeAnnotation,t)}const F_=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function T_(e){return F_.has(e.type)}function O_(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object}function N_(e){const t=["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"];return e&&t.includes(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)}const L_=/^(skip|[fx]?(it|describe|test))$/;function B_(e){return("MemberExpression"===e.callee.type||"OptionalMemberExpression"===e.callee.type)&&"Identifier"===e.callee.object.type&&"Identifier"===e.callee.property.type&&L_.test(e.callee.object.name)&&("only"===e.callee.property.name||"skip"===e.callee.property.name)}function P_(e){const t=/^(before|after)(Each|All)$/;return"Identifier"===e.callee.type&&t.test(e.callee.name)&&1===e.arguments.length}function M_(e,t){if("CallExpression"!==e.type)return!1;if(1===e.arguments.length){if(b_(e)&&t&&M_(t))return g_(e.arguments[0]);if(P_(e))return b_(e.arguments[0])}else if((2===e.arguments.length||3===e.arguments.length)&&("Identifier"===e.callee.type&&L_.test(e.callee.name)||B_(e))&&(y_(e.arguments[0])||f_(e.arguments[0])))return!(e.arguments[2]&&!d_(e.arguments[2]))&&((2===e.arguments.length?g_(e.arguments[1]):v_(e.arguments[1])&&e.arguments[1].params.length<=1)||b_(e.arguments[1]));return!1}function j_(e){return e.comments&&e.comments.some(e=>e.leading)}function I_(e){return e.comments&&e.comments.some(e=>e.trailing)}function $_(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}function R_(e){return e.comments&&e.comments.some(e=>!e.leading&&!e.trailing)}function q_(e){return o_(e.getValue(),e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}function z_(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value}function V_(e){return 0!==e.expressions.length&&e.expressions.every(e=>{if(e.comments)return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if("MemberExpression"===e.type||"OptionalMemberExpression"===e.type){let t=e;while("MemberExpression"===t.type||"OptionalMemberExpression"===t.type){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(t=t.object,t.comments)return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1})}function H_(e){if(!e.variance)return null;const t=e.variance.kind||e.variance;switch(t){case"plus":return"+";case"minus":return"-";default:return t}}function W_(e){const t=e.getNode();if("ClassProperty"!==t.type)return!1;const n=t.key&&t.key.name;return!("static"!==n&&"get"!==n&&"set"!==n||t.value||t.typeAnnotation)||void 0}function U_(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){const 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":{const t=e.value?e.value.async:e.async,n=e.value?e.value.generator:e.generator;return!t&&"get"!==e.kind&&"set"!==e.kind&&!(!e.computed&&!n)}case"TSIndexSignature":return!0;default:return!1}}}function G_(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t}function Y_(e,t){return KC(t.originalText,t.locStart(e.decorators[0]),t.locEnd(GC(e.decorators)))||YC(t.originalText,t.locEnd(GC(e.decorators)))}const K_=" \n\r\t",X_=new RegExp("(["+K_+"]+)"),J_=new RegExp("[^"+K_+"]");function Z_(e){return p_(e)&&(J_.test(gk(e))||!/\n/.test(gk(e)))}function Q_(e){const t=e.getValue(),n=e.getParentNode();if(!n||!t||!D_(t)||!D_(n))return!1;const r=n.children.indexOf(t);let i=null;for(let o=r;o>0;o--){const e=n.children[o-1];if("JSXText"!==e.type||Z_(e)){i=e;break}}return i&&"JSXExpressionContainer"===i.type&&"JSXEmptyExpression"===i.expression.type&&i.expression.comments&&i.expression.comments.find(e=>"prettier-ignore"===e.value.trim())}function ek(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;const t=e.children[0];return p_(t)&&!Z_(t)}function tk(e){return XC(e)||Q_(e)}function nk(e){const t=e.getParentNode();if(!t)return!0;const n=e.getValue(),r=(t.body||t.consequent).filter(e=>"EmptyStatement"!==e.type);return r&&r[r.length-1]===n}function rk(e,t,n){const r=n.locStart(t),i=ZC(e,n.locEnd(t));return"/*"===e.slice(r,r+2)&&"*/"===e.slice(i,i+2)}function ik(e,t,n){if(D_(t))return JC(t);const r=t.comments&&t.comments.some(t=>t.leading&&YC(e,n.locEnd(t)));return r}function ok(e,t){if(ik(e.originalText,t,e))return!0;if(a_(t)){let n,r=t;while(n=s_(r))if(r=n,ik(e.originalText,r,e))return!0}return!1}function ak(e,t){return f_(e.key)&&QC(e.key.value)&&"json"!==t.parser&&!(("typescript"===t.parser||"babel-ts"===t.parser)&&"ClassProperty"===e.type)}function sk(e,t){const 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))}function lk(e){return e.quasis.some(e=>e.value.raw.includes("\n"))}function uk(e,t,n){return("TemplateLiteral"===e.type&&lk(e)||"TaggedTemplateExpression"===e.type&&lk(e.quasi))&&!YC(t,n.locStart(e),{backwards:!0})}function ck(e){if(!e.comments)return!1;const t=GC(e.comments.filter(e=>!e.leading&&!e.trailing));return t&&!cC.isBlockComment(t)}function hk(e){const t=[];function n(e){"ConditionalExpression"===e.type?(n(e.test),n(e.consequent),n(e.alternate)):t.push(e)}return n(e),t}function pk(e){return Boolean(hk(e).find(D_))}function dk(e){if(e.length<=1)return!1;let t=0;for(const n of e)if(g_(n)){if(t+=1,t>1)return!0}else if($_(n))for(const e of n.arguments)if(g_(e))return!0;return!1}function fk(e){const t=e.getValue(),n=e.getParentNode();return $_(t)&&$_(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0}function mk(e,t){if(t>=2)return!1;const n=e=>mk(e,t+1),r="Literal"===e.type&&e.regex&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return!(r&&r.length>5)&&("Literal"===e.type||"BooleanLiteral"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"StringLiteral"===e.type||"Identifier"===e.type||"ThisExpression"===e.type||"Super"===e.type||"BigIntLiteral"===e.type||"PrivateName"===e.type||"ArgumentPlaceholder"===e.type||"RegExpLiteral"===e.type||"Import"===e.type||("TemplateLiteral"===e.type?e.expressions.every(n):"ObjectExpression"===e.type?e.properties.every(e=>!e.computed&&(e.shorthand||e.value&&n(e.value))):"ArrayExpression"===e.type?e.elements.every(e=>null==e||n(e)):"CallExpression"===e.type||"OptionalCallExpression"===e.type||"NewExpression"===e.type?mk(e.callee,t)&&e.arguments.every(n):"MemberExpression"===e.type||"OptionalMemberExpression"===e.type?mk(e.object,t)&&mk(e.property,t):"UnaryExpression"!==e.type||"!"!==e.operator&&"-"!==e.operator?"TSNonNullExpression"===e.type&&mk(e.expression,t):mk(e.argument,t)))}function gk(e){return e.extra?e.extra.raw:e.raw}function vk(e){return e}function yk(e){return e.filepath&&/\.tsx$/i.test(e.filepath)}var bk={classChildNeedsASIProtection:U_,classPropMayCauseASIProblems:W_,conditionalExpressionChainContainsJSX:pk,getFlowVariance:H_,getLeftSidePathName:l_,getParentExportDeclaration:h_,getTypeScriptMappedTypeModifier:G_,hasDanglingComments:R_,hasFlowAnnotationComment:i_,hasFlowShorthandAnnotationComment:r_,hasLeadingComment:j_,hasLeadingOwnLineComment:ik,hasNakedLeftSide:a_,hasNewlineBetweenOrAfterDecorators:Y_,hasNgSideEffect:q_,hasNode:o_,hasPrettierIgnore:tk,hasTrailingComment:I_,identity:vk,isBinaryish:T_,isCallOrOptionalCallExpression:$_,isEmptyJSXElement:ek,isExportDeclaration:c_,isFlowAnnotationComment:rk,isFunctionCompositionArgs:dk,isFunctionNotation:E_,isFunctionOrArrowExpression:g_,isGetterOrSetter:__,isJestEachTemplateLiteral:sk,isJSXNode:D_,isJSXWhitespaceExpression:w_,isLastStatement:nk,isLiteral:p_,isLongCurriedCallExpression:fk,isSimpleCallArgument:mk,isMeaningfulJSXText:Z_,isMemberExpressionChain:C_,isMemberish:O_,isNgForOf:z_,isNumericLiteral:d_,isObjectType:m_,isObjectTypePropertyAFunction:S_,isSimpleFlowType:N_,isSimpleTemplateLiteral:V_,isStringLiteral:f_,isStringPropSafeToCoerceToIdentifier:ak,isTemplateOnItsOwnLine:uk,isTestCall:M_,isTheOnlyJSXElementInMarkdown:x_,isTSXFile:yk,isTypeAnnotationAFunction:A_,matchJsxWhitespaceRegex:X_,needsHardlineAfterDanglingComment:ck,rawText:gk,returnArgumentHasLeadingComment:ok};const{getLeftSidePathName:Dk,hasFlowShorthandAnnotationComment:xk,hasNakedLeftSide:wk,hasNode:Ck}=bk;function _k(e,t){const n=e.getParentNode();if(!n)return!1;const r=e.getName(),i=e.getNode();if(e.getValue()!==i)return!1;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&Sk(i)&&Ak(e))return!0;if(kk(i))return!1;if("flow"!==t.parser&&xk(e.getValue()))return!0;if("Identifier"===i.type)return!!(i.extra&&i.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(i.name));if("ParenthesizedExpression"===n.type)return!1;if(("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===i&&("ArrowFunctionExpression"===i.type||"AssignmentExpression"===i.type||"AwaitExpression"===i.type||"BinaryExpression"===i.type||"ConditionalExpression"===i.type||"LogicalExpression"===i.type||"NewExpression"===i.type||"ObjectExpression"===i.type||"ParenthesizedExpression"===i.type||"SequenceExpression"===i.type||"TaggedTemplateExpression"===i.type||"UnaryExpression"===i.type||"UpdateExpression"===i.type||"YieldExpression"===i.type))return!0;if("ExportDefaultDeclaration"===n.type)return Fk(e,t)||"SequenceExpression"===i.type;if("Decorator"===n.type&&n.expression===i){let e=!1,t=!1,n=i;while(n)switch(n.type){case"MemberExpression":t=!0,n=n.object;break;case"CallExpression":if(t||e)return!0;e=!0,n=n.callee;break;case"Identifier":return!1;default:return!0}return!0}if("ArrowFunctionExpression"===n.type&&n.body===i&&"SequenceExpression"!==i.type&&mu.startsWithNoLookaheadToken(i,!1)||"ExpressionStatement"===n.type&&mu.startsWithNoLookaheadToken(i,!0))return!0;switch(i.type){case"SpreadElement":case"SpreadProperty":return"MemberExpression"===n.type&&"object"===r&&n.object===i;case"UpdateExpression":if("UnaryExpression"===n.type)return i.prefix&&("++"===i.operator&&"+"===n.operator||"--"===i.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return i.operator===n.operator&&("+"===i.operator||"-"===i.operator);case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"BinaryExpression":return"**"===n.operator&&"left"===r;case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":{if("UpdateExpression"===n.type)return!0;const t=t=>{let n=0;while(t){const r=e.getParentNode(n++);if(!r)return!1;if("ForStatement"===r.type&&r.init===t)return!0;t=r}return!1};if("in"===i.operator&&t(i))return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"ConditionalExpression":return"TSAsExpression"===i.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===r;case"ClassExpression":case"ClassDeclaration":return"superClass"===r&&n.superClass===i;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"AssignmentExpression":return n.left===i&&("TSTypeAssertion"===i.type||"TSAsExpression"===i.type);case"LogicalExpression":if("LogicalExpression"===i.type)return n.operator!==i.operator;case"BinaryExpression":{if(!i.operator&&"TSTypeAssertion"!==i.type)return!0;const e=n.operator,t=mu.getPrecedence(e),o=i.operator,a=mu.getPrecedence(o);return t>a||(t===a&&"right"===r?(qs.strictEqual(n.right,i),!0):t===a&&!mu.shouldFlatten(e,o)||(t"ObjectTypeAnnotation"===e.type&&Ck(e,e=>"FunctionTypeAnnotation"===e.type||void 0)||void 0)}function Sk(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}function Ak(e){const t=e.getValue(),n=e.getParentNode(),r=e.getName();switch(n.type){case"NGPipeExpression":if("number"===typeof r&&n.arguments[r]===t&&n.arguments.length-1===r)return e.callParent(Ak);break;case"ObjectProperty":if("value"===r){const t=e.getParentNode(1);return t.properties[t.properties.length-1]===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(Ak);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(Ak);break;case"UnaryExpression":if(n.prefix)return e.callParent(Ak);break}return!1}function Fk(e,t){const n=e.getValue(),r=e.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===r.type||!_k(e,t):!(!wk(n)||"ExportDefaultDeclaration"!==r.type&&_k(e,t))&&e.call(e=>Fk(e,t),...Dk(e,n))}var Tk=_k;const{builders:{concat:Ok,join:Nk,line:Lk}}=Qu;function Bk(e,t,n){const r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r,t),"File"===r.type)return t.__isVueForBindingLeft?e.call(e=>{const{params:t}=e.getValue();return Ok([t.length>1?"(":"",Nk(Ok([",",Lk]),e.map(n,"params")),t.length>1?")":""])},"program","body",0):t.__isVueSlotScope?e.call(e=>Nk(Ok([",",Lk]),e.map(n,"params")),"program","body",0):void 0}function Pk(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return Pk(e.object)}return!1;case"Identifier":return!0;default:return!1}}var Mk={isVueEventBindingExpression:Pk,printHtmlBinding:Bk};function jk(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:[],rootMarker:t.rootMarker});default:return e}}var Ik=jk;const{shouldFlatten:$k,getNextNonSpaceNonCommentCharacter:Rk,hasNewline:qk,hasNewlineInRange:zk,getLast:Vk,getStringWidth:Hk,printString:Wk,printNumber:Uk,hasIgnoreComment:Gk,hasNodeIgnoreComment:Yk,getPenultimate:Kk,startsWithNoLookaheadToken:Xk,getIndentSize:Jk,getPreferredQuote:Zk}=mu,{isNextLineEmpty:Qk,isNextLineEmptyAfterIndex:eE,getNextNonSpaceNonCommentCharacterIndex:tE}=Cc,{insertPragma:nE}=Jh,{printHtmlBinding:rE,isVueEventBindingExpression:iE}=Mk,{classChildNeedsASIProtection:oE,classPropMayCauseASIProblems:aE,conditionalExpressionChainContainsJSX:sE,getFlowVariance:lE,getLeftSidePathName:uE,getParentExportDeclaration:cE,getTypeScriptMappedTypeModifier:hE,hasDanglingComments:pE,hasFlowAnnotationComment:dE,hasFlowShorthandAnnotationComment:fE,hasLeadingComment:mE,hasLeadingOwnLineComment:gE,hasNakedLeftSide:vE,hasNewlineBetweenOrAfterDecorators:yE,hasNgSideEffect:bE,hasPrettierIgnore:DE,hasTrailingComment:xE,identity:wE,isBinaryish:CE,isCallOrOptionalCallExpression:_E,isEmptyJSXElement:kE,isExportDeclaration:EE,isFlowAnnotationComment:SE,isFunctionCompositionArgs:AE,isFunctionNotation:FE,isFunctionOrArrowExpression:TE,isGetterOrSetter:OE,isJestEachTemplateLiteral:NE,isJSXNode:LE,isJSXWhitespaceExpression:BE,isLastStatement:PE,isLiteral:ME,isLongCurriedCallExpression:jE,isMeaningfulJSXText:IE,isMemberExpressionChain:$E,isMemberish:RE,isNgForOf:qE,isNumericLiteral:zE,isObjectType:VE,isObjectTypePropertyAFunction:HE,isSimpleCallArgument:WE,isSimpleFlowType:UE,isSimpleTemplateLiteral:GE,isStringLiteral:YE,isStringPropSafeToCoerceToIdentifier:KE,isTemplateOnItsOwnLine:XE,isTestCall:JE,isTheOnlyJSXElementInMarkdown:ZE,isTSXFile:QE,isTypeAnnotationAFunction:eS,matchJsxWhitespaceRegex:tS,needsHardlineAfterDanglingComment:nS,rawText:rS,returnArgumentHasLeadingComment:iS}=bk,oS=new WeakMap,{builders:{concat:aS,join:sS,line:lS,hardline:uS,softline:cS,literalline:hS,group:pS,indent:dS,align:fS,conditionalGroup:mS,fill:gS,ifBreak:vS,breakParent:yS,lineSuffixBoundary:bS,addAlignmentToDoc:DS,dedent:xS},utils:{willBreak:wS,isLineNext:CS,isEmpty:_S,removeLines:kS},printer:{printDocToString:ES}}=Qu;let SS=0;function AS(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 FS(e,t,n,r){const i=e.getValue();let o=!1;const a=NS(e,t,n,r);if(!i||_S(a))return a;const s=cE(e),l=[];if("ClassMethod"===i.type||"ClassPrivateMethod"===i.type||"ClassProperty"===i.type||"TSAbstractClassProperty"===i.type||"ClassPrivateProperty"===i.type||"MethodDefinition"===i.type||"TSAbstractMethodDefinition"===i.type||"TSDeclareMethod"===i.type);else if(i.decorators&&i.decorators.length>0&&!(s&&t.locStart(s,{ignoreDecorators:!0})>t.locStart(i.decorators[0]))){const r="ClassExpression"===i.type||"ClassDeclaration"===i.type||yE(i,t),o=r?uS:lS;e.each(e=>{let t=e.getValue();t=t.expression?t.expression:t.callee,l.push(n(e),o)},"decorators"),s&&l.unshift(uS)}else EE(i)&&i.declaration&&i.declaration.decorators&&i.declaration.decorators.length>0&&t.locStart(i,{ignoreDecorators:!0})>t.locStart(i.declaration.decorators[0])?e.each(e=>{const t=e.getValue(),r="Decorator"===t.type?"":"@";l.push(r,n(e),uS)},"declaration","decorators"):o=Tk(e,t);const u=[];if(o&&u.unshift("("),u.push(a),o){const t=e.getValue();fE(t)&&(u.push(" /*"),u.push(t.trailingComments[0].value.trimStart()),u.push("*/"),t.trailingComments[0].printed=!0),u.push(")")}return l.length>0?pS(aS(l.concat(u))):aS(u)}function TS(e,t,n){const r=e.getValue();return pS(aS([sS(lS,e.map(n,"decorators")),yE(r,t)?uS:lS]))}function OS(e,t,n,r){const i=e.getValue(),o=i[r.consequentNodePropertyName],a=i[r.alternateNodePropertyName],s=[];let l=!1;const u=e.getParentNode(),c=u.type===r.conditionalNodeType&&r.testNodePropertyNames.some(e=>u[e]===i);let h,p,d=u.type===r.conditionalNodeType&&!c,f=0;do{p=h||i,h=e.getParentNode(f),f++}while(h&&h.type===r.conditionalNodeType&&r.testNodePropertyNames.every(e=>h[e]!==p));const m=h||u,g=p;if(r.shouldCheckJsx&&(LE(i[r.testNodePropertyNames[0]])||LE(o)||LE(a)||sE(g))){l=!0,d=!0;const t=e=>aS([vS("(",""),dS(aS([cS,e])),cS,vS(")","")]),i=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;s.push(" ? ",i(o)?e.call(n,r.consequentNodePropertyName):t(e.call(n,r.consequentNodePropertyName))," : ",a.type===r.conditionalNodeType||i(a)?e.call(n,r.alternateNodePropertyName):t(e.call(n,r.alternateNodePropertyName)))}else{const l=aS([lS,"? ",o.type===r.conditionalNodeType?vS("","("):"",fS(2,e.call(n,r.consequentNodePropertyName)),o.type===r.conditionalNodeType?vS("",")"):"",lS,": ",a.type===r.conditionalNodeType?e.call(n,r.alternateNodePropertyName):fS(2,e.call(n,r.alternateNodePropertyName))]);s.push(u.type!==r.conditionalNodeType||u[r.alternateNodePropertyName]===i||c?l:t.useTabs?xS(dS(l)):fS(Math.max(0,t.tabWidth-2),l))}const v=e=>u===m?pS(e):e,y=!l&&("MemberExpression"===u.type||"OptionalMemberExpression"===u.type||"NGPipeExpression"===u.type&&u.left===i)&&!u.computed,b=v(aS([].concat((e=>u.type===r.conditionalNodeType&&u[r.alternateNodePropertyName]===i?fS(2,e):e)(aS(r.beforeParts())),d?aS(s):dS(aS(s)),r.afterParts(y))));return c?pS(aS([dS(aS([cS,b])),cS])):b}function NS(e,t,n,r){const i=e.getValue(),o=t.semi?";":"";if(!i)return"";if("string"===typeof i)return i;const a=rE(e,t,n);if(a)return a;let s=[];switch(i.type){case"JsExpressionRoot":return e.call(n,"node");case"JsonRoot":return aS([e.call(n,"node"),uS]);case"File":return i.program&&i.program.interpreter&&s.push(e.call(e=>e.call(n,"interpreter"),"program")),s.push(e.call(n,"program")),aS(s);case"Program":return i.directives&&e.each(e=>{s.push(n(e),o,uS),Qk(t.originalText,e.getValue(),t.locEnd)&&s.push(uS)},"directives"),s.push(e.call(e=>LS(e,t,n),"body")),s.push(Jc.printDanglingComments(e,t,!0)),i.body.every(({type:e})=>"EmptyStatement"===e)&&!i.comments||s.push(uS),aS(s);case"EmptyStatement":return"";case"ExpressionStatement":if(i.directive)return aS([fA(i.expression,t,!0),o]);if("__vue_event_binding"===t.parser){const t=e.getParentNode();if("Program"===t.type&&1===t.body.length&&t.body[0]===i)return aS([e.call(n,"expression"),iE(i.expression)?";":""])}return aS([e.call(n,"expression"),ZE(t,e)?"":o]);case"ParenthesizedExpression":{const t=!i.expression.comments;return t?aS(["(",e.call(n,"expression"),")"]):pS(aS(["(",dS(aS([cS,e.call(n,"expression")])),cS,")"]))}case"AssignmentExpression":return pA(i.left,e.call(n,"left"),aS([" ",i.operator]),i.right,e.call(n,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":{const r=e.getParentNode(),o=e.getParentNode(1),a=i!==r.body&&("IfStatement"===r.type||"WhileStatement"===r.type||"SwitchStatement"===r.type||"DoWhileStatement"===r.type),s=cA(e,n,t,!1,a);if(a)return aS(s);if(("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&r.callee===i||"UnaryExpression"===r.type||("MemberExpression"===r.type||"OptionalMemberExpression"===r.type)&&!r.computed)return pS(aS([dS(aS([cS,aS(s)])),cS]));const l="ReturnStatement"===r.type||"ThrowStatement"===r.type||"JSXExpressionContainer"===r.type&&"JSXAttribute"===o.type||"|"!==i.operator&&"JsExpressionRoot"===r.type||"NGPipeExpression"!==i.type&&("NGRoot"===r.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===r.type&&"NGMicrosyntax"===o.type&&1===o.body.length)||i===r.body&&"ArrowFunctionExpression"===r.type||i!==r.body&&"ForStatement"===r.type||"ConditionalExpression"===r.type&&"ReturnStatement"!==o.type&&"ThrowStatement"!==o.type&&"CallExpression"!==o.type&&"OptionalCallExpression"!==o.type||"TemplateLiteral"===r.type,u="AssignmentExpression"===r.type||"VariableDeclarator"===r.type||"ClassProperty"===r.type||"TSAbstractClassProperty"===r.type||"ClassPrivateProperty"===r.type||"ObjectProperty"===r.type||"Property"===r.type,c=CE(i.left)&&$k(i.operator,i.left.operator);if(l||uA(i)&&!c||!uA(i)&&u)return pS(aS(s));if(0===s.length)return"";const h=LE(i.right),p=aS(h?s.slice(1,-1):s.slice(1)),d=Symbol("logicalChain-"+ ++SS),f=pS(aS([s.length>0?s[0]:"",dS(p)]),{id:d});if(!h)return f;const m=Vk(s);return pS(aS([f,vS(dS(m),m,{groupId:d})]))}case"AssignmentPattern":return aS([e.call(n,"left")," = ",e.call(n,"right")]);case"TSTypeAssertion":{const t=!("ArrayExpression"===i.expression.type||"ObjectExpression"===i.expression.type),r=pS(aS(["<",dS(aS([cS,e.call(n,"typeAnnotation")])),cS,">"])),o=aS([vS("("),dS(aS([cS,e.call(n,"expression")])),cS,vS(")")]);return t?mS([aS([r,e.call(n,"expression")]),aS([r,pS(o,{shouldBreak:!0})]),aS([r,e.call(n,"expression")])]):pS(aS([r,e.call(n,"expression")]))}case"OptionalMemberExpression":case"MemberExpression":{const r=e.getParentNode();let o,a=0;do{o=e.getParentNode(a),a++}while(o&&("MemberExpression"===o.type||"OptionalMemberExpression"===o.type||"TSNonNullExpression"===o.type));const s=o&&("NewExpression"===o.type||"BindExpression"===o.type||"VariableDeclarator"===o.type&&"Identifier"!==o.id.type||"AssignmentExpression"===o.type&&"Identifier"!==o.left.type)||i.computed||"Identifier"===i.object.type&&"Identifier"===i.property.type&&"MemberExpression"!==r.type&&"OptionalMemberExpression"!==r.type;return aS([e.call(n,"object"),s?tA(e,t,n):pS(dS(aS([cS,tA(e,t,n)])))])}case"MetaProperty":return aS([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return i.object&&s.push(e.call(n,"object")),s.push(pS(dS(aS([cS,nA(e,t,n)])))),aS(s);case"Identifier":return aS([i.name,eA(e),zS(e,t,n)]);case"V8IntrinsicIdentifier":return aS(["%",i.name]);case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return aS(["...",e.call(n,"argument"),zS(e,t,n)]);case"FunctionDeclaration":case"FunctionExpression":return s.push(GS(e,n,t)),i.body||s.push(o),aS(s);case"ArrowFunctionExpression":{i.async&&s.push("async "),WS(e,t)?s.push(e.call(n,"params",0)):s.push(pS(aS([HS(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),YS(e,n,t)])));const o=Jc.printDanglingComments(e,t,!0,e=>{const n=tE(t.originalText,e,t.locEnd);return"=>"===t.originalText.slice(n,n+2)});o&&s.push(" ",o),s.push(" =>");const a=e.call(e=>n(e,r),"body");if(!gE(t.originalText,i.body,t)&&("ArrayExpression"===i.body.type||"ObjectExpression"===i.body.type||"BlockStatement"===i.body.type||LE(i.body)||XE(i.body,t.originalText,t)||"ArrowFunctionExpression"===i.body.type||"DoExpression"===i.body.type))return pS(aS([aS(s)," ",a]));if("SequenceExpression"===i.body.type)return pS(aS([aS(s),pS(aS([" (",dS(aS([cS,a])),cS,")"]))]));const l=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(i.comments&&i.comments.length),u=r&&r.expandLastArg&&AS(t,"all"),c="ConditionalExpression"===i.body.type&&!Xk(i.body,!1);return pS(aS([aS(s),pS(aS([dS(aS([lS,c?vS("","("):"",a,c?vS("",")"):""])),l?aS([vS(u?",":""),cS]):""]))]))}case"YieldExpression":return s.push("yield"),i.delegate&&s.push("*"),i.argument&&s.push(" ",e.call(n,"argument")),aS(s);case"AwaitExpression":{s.push("await ",e.call(n,"argument"));const t=e.getParentNode();return("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&t.callee===i||("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&t.object===i?pS(aS([dS(aS([cS,aS(s)])),cS])):aS(s)}case"ImportSpecifier":return i.importKind&&s.push(e.call(n,"importKind")," "),s.push(e.call(n,"imported")),i.local&&i.local.name!==i.imported.name&&s.push(" as ",e.call(n,"local")),aS(s);case"ExportSpecifier":return s.push(e.call(n,"local")),i.exported&&i.exported.name!==i.local.name&&s.push(" as ",e.call(n,"exported")),aS(s);case"ImportNamespaceSpecifier":return s.push("* as "),s.push(e.call(n,"local")),aS(s);case"ImportDefaultSpecifier":return e.call(n,"local");case"TSExportAssignment":return aS(["export = ",e.call(n,"expression"),o]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return KS(e,t,n);case"ExportAllDeclaration":return s.push("export "),"type"===i.exportKind&&s.push("type "),s.push("* "),i.exported&&s.push("as ",e.call(n,"exported")," "),s.push("from ",e.call(n,"source"),o),aS(s);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(n,"exported");case"ImportDeclaration":{s.push("import "),i.importKind&&"value"!==i.importKind&&s.push(i.importKind+" ");const r=[],a=[];return i.specifiers&&i.specifiers.length>0?(e.each(e=>{const t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?r.push(n(e)):a.push(n(e))},"specifiers"),r.length>0&&s.push(sS(", ",r)),r.length>0&&a.length>0&&s.push(", "),1===a.length&&0===r.length&&i.specifiers&&!i.specifiers.some(e=>e.comments)?s.push(aS(["{",t.bracketSpacing?" ":"",aS(a),t.bracketSpacing?" ":"","}"])):a.length>=1&&s.push(pS(aS(["{",dS(aS([t.bracketSpacing?lS:cS,sS(aS([",",lS]),a)])),vS(AS(t)?",":""),t.bracketSpacing?lS:cS,"}"]))),s.push(" from ")):(i.importKind&&"type"===i.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(i),t.locStart(i.source))))&&s.push("{} from "),s.push(e.call(n,"source"),o),aS(s)}case"Import":return"import";case"TSModuleBlock":case"BlockStatement":{const r=e.call(e=>LS(e,t,n),"body"),a=i.body.find(e=>"EmptyStatement"!==e.type),l=i.directives&&i.directives.length>0,u=e.getParentNode(),c=e.getParentNode(1);return a||l||pE(i)||"ArrowFunctionExpression"!==u.type&&"FunctionExpression"!==u.type&&"FunctionDeclaration"!==u.type&&"ObjectMethod"!==u.type&&"ClassMethod"!==u.type&&"ClassPrivateMethod"!==u.type&&"ForStatement"!==u.type&&"WhileStatement"!==u.type&&"DoWhileStatement"!==u.type&&"DoExpression"!==u.type&&("CatchClause"!==u.type||c.finalizer)&&"TSModuleDeclaration"!==u.type?(s.push("{"),l&&e.each(e=>{s.push(dS(aS([uS,n(e),o]))),Qk(t.originalText,e.getValue(),t.locEnd)&&s.push(uS)},"directives"),a&&s.push(dS(aS([uS,r]))),s.push(Jc.printDanglingComments(e,t)),s.push(uS,"}"),aS(s)):"{}"}case"ReturnStatement":return aS(["return",xA(e,t,n)]);case"NewExpression":case"OptionalCallExpression":case"CallExpression":{const r="NewExpression"===i.type,o=eA(e);if(!r&&"Identifier"===i.callee.type&&("require"===i.callee.name||"define"===i.callee.name)||1===i.arguments.length&&XE(i.arguments[0],t.originalText,t)||!r&&JE(i,e.getParentNode()))return aS([r?"new ":"",e.call(n,"callee"),o,VS(e,t,n),aS(["(",sS(", ",e.map(n,"arguments")),")"])]);const a="Identifier"===i.callee.type&&dE(i.callee.trailingComments);if(a&&(i.callee.trailingComments[0].printed=!0),!r&&RE(i.callee)&&!e.call(e=>Tk(e,t),"callee"))return rA(e,t,n);const s=aS([r?"new ":"",e.call(n,"callee"),o,a?"/*:: ".concat(i.callee.trailingComments[0].value.slice(2).trim()," */"):"",VS(e,t,n),qS(e,t,n)]);return _E(i.callee)?pS(s):s}case"TSInterfaceDeclaration":return i.declare&&s.push("declare "),s.push(i.abstract?"abstract ":"",JS(e,t,n),"interface ",e.call(n,"id"),i.typeParameters?e.call(n,"typeParameters"):""," "),i.extends&&i.extends.length&&s.push(pS(dS(aS([cS,"extends ",(1===i.extends.length?wE:dS)(sS(aS([",",lS]),e.map(n,"extends")))," "])))),s.push(e.call(n,"body")),aS(s);case"ObjectTypeInternalSlot":return aS([i.static?"static ":"","[[",e.call(n,"id"),"]]",eA(e),i.method?"":": ",e.call(n,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":{let r;r="TSTypeLiteral"===i.type?"members":"TSInterfaceBody"===i.type?"body":"properties";const a="ObjectTypeAnnotation"===i.type,s=[];a&&s.push("indexers","callProperties","internalSlots"),s.push(r);const l=s.map(e=>i[e][0]).sort((e,n)=>t.locStart(e)-t.locStart(n))[0],u=e.getParentNode(0),c=a&&u&&("InterfaceDeclaration"===u.type||"DeclareInterface"===u.type||"DeclareClass"===u.type)&&"body"===e.getName(),h="TSInterfaceBody"===i.type||c||"ObjectPattern"===i.type&&"FunctionDeclaration"!==u.type&&"FunctionExpression"!==u.type&&"ArrowFunctionExpression"!==u.type&&"ObjectMethod"!==u.type&&"ClassMethod"!==u.type&&"ClassPrivateMethod"!==u.type&&"AssignmentPattern"!==u.type&&"CatchClause"!==u.type&&i.properties.some(e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type))||"ObjectPattern"!==i.type&&l&&zk(t.originalText,t.locStart(i),t.locStart(l)),p=c?";":"TSInterfaceBody"===i.type||"TSTypeLiteral"===i.type?vS(o,";"):",",d=i.exact?"{|":"{",f=i.exact?"|}":"}",m=[];s.forEach(r=>{e.each(e=>{const r=e.getValue();m.push({node:r,printed:n(e),loc:t.locStart(r)})},r)});let g=[];const v=m.sort((e,t)=>e.loc-t.loc).map(e=>{const n=aS(g.concat(pS(e.printed)));return g=[p,lS],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!Yk(e.node)||g.shift(),Qk(t.originalText,e.node,t.locEnd)&&g.push(uS),n});if(i.inexact){let n;if(pE(i)){const r=!i.comments.every(cC.isBlockComment),o=Jc.printDanglingComments(e,t,!0);n=aS([o,r||qk(t.originalText,t.locEnd(i.comments[i.comments.length-1]))?uS:lS,"..."])}else n="...";v.push(aS(g.concat(n)))}const y=Vk(i[r]),b=!(i.inexact||y&&("RestElement"===y.type||Yk(y)));let D;if(0===v.length){if(!pE(i))return aS([d,f,zS(e,t,n)]);D=pS(aS([d,Jc.printDanglingComments(e,t),cS,f,eA(e),zS(e,t,n)]))}else D=aS([d,dS(aS([t.bracketSpacing?lS:cS,aS(v)])),vS(b&&(","!==p||AS(t))?p:""),aS([t.bracketSpacing?lS:cS,f]),eA(e),zS(e,t,n)]);return e.match(e=>"ObjectPattern"===e.type&&!e.decorators,(e,t,n)=>bA(e)&&("params"===t||"parameters"===t)&&0===n)||e.match(yA,(e,t)=>"typeAnnotation"===t,(e,t)=>"typeAnnotation"===t,(e,t,n)=>bA(e)&&("params"===t||"parameters"===t)&&0===n)?D:pS(D,{shouldBreak:h})}case"ObjectProperty":case"Property":return i.method||"get"===i.kind||"set"===i.kind?PS(e,t,n):(i.shorthand?s.push(e.call(n,"value")):s.push(pA(i.key,BS(e,t,n),":",i.value,e.call(n,"value"),t)),aS(s));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":case"TSDeclareMethod":return i.decorators&&0!==i.decorators.length&&s.push(TS(e,t,n)),i.accessibility&&s.push(i.accessibility+" "),i.static&&s.push("static "),("TSAbstractMethodDefinition"===i.type||i.abstract)&&s.push("abstract "),s.push(PS(e,t,n)),aS(s);case"ObjectMethod":return PS(e,t,n);case"Decorator":return aS(["@",e.call(n,"expression"),e.call(n,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===i.elements.length)pE(i)?s.push(pS(aS(["[",Jc.printDanglingComments(e,t),cS,"]"]))):s.push("[]");else{const r=Vk(i.elements),o=!(r&&"RestElement"===r.type),a=o&&null===r,l=i.elements.length>1&&i.elements.every((e,t,n)=>{const r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;const i=n[t+1];if(i&&r!==i.type)return!1;const o="ArrayExpression"===r?"elements":"properties";return e[o]&&e[o].length>1});s.push(pS(aS(["[",dS(aS([cS,DA(e,t,"elements",n)])),a?",":"",vS(o&&!a&&AS(t)?",":""),Jc.printDanglingComments(e,t,!0),cS,"]"]),{shouldBreak:l}))}return s.push(eA(e),zS(e,t,n)),aS(s);case"SequenceExpression":{const t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){const t=[];return e.each(e=>{0===e.getName()?t.push(n(e)):t.push(",",dS(aS([lS,n(e)])))},"expressions"),pS(aS(t))}return pS(aS([sS(aS([",",lS]),e.map(n,"expressions"))]))}case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return mA(i);case"NumericLiteral":return Uk(i.extra.raw);case"BigIntLiteral":return(i.bigint||(i.extra?i.extra.raw:i.raw)).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":{if(i.regex)return mA(i.regex);if("number"===typeof i.value)return Uk(i.raw);if("string"!==typeof i.value)return""+i.value;const n=e.getParentNode(1),r="typescript"===t.parser&&"string"===typeof i.value&&n&&("Program"===n.type||"BlockStatement"===n.type);return fA(i,t,r)}case"Directive":return e.call(n,"value");case"DirectiveLiteral":return fA(i,t);case"UnaryExpression":return s.push(i.operator),/[a-z]$/.test(i.operator)&&s.push(" "),i.argument.comments&&i.argument.comments.length>0?s.push(pS(aS(["(",dS(aS([cS,e.call(n,"argument")])),cS,")"]))):s.push(e.call(n,"argument")),aS(s);case"UpdateExpression":return s.push(e.call(n,"argument"),i.operator),i.prefix&&s.reverse(),aS(s);case"ConditionalExpression":return OS(e,t,n,{beforeParts:()=>[e.call(n,"test")],afterParts:e=>[e?cS:""],shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyNames:["test"]});case"VariableDeclaration":{const t=e.map(e=>n(e),"declarations"),r=e.getParentNode(),a="ForStatement"===r.type||"ForInStatement"===r.type||"ForOfStatement"===r.type,l=i.declarations.some(e=>e.init);let u;return 1!==t.length||i.declarations[0].comments?t.length>0&&(u=dS(t[0])):u=t[0],s=[i.declare?"declare ":"",i.kind,u?aS([" ",u]):"",dS(aS(t.slice(1).map(e=>aS([",",l&&!a?uS:lS,e]))))],a&&r.body!==i||s.push(o),pS(aS(s))}case"TSTypeAliasDeclaration":{i.declare&&s.push("declare ");const r=hA(i.id,i.typeAnnotation,i.typeAnnotation&&e.call(n,"typeAnnotation"),t);return s.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,o),pS(aS(s))}case"VariableDeclarator":return pA(i.id,e.call(n,"id")," =",i.init,i.init&&e.call(n,"init"),t);case"WithStatement":return pS(aS(["with (",e.call(n,"object"),")",dA(i.body,e.call(n,"body"))]));case"IfStatement":{const r=dA(i.consequent,e.call(n,"consequent")),o=pS(aS(["if (",pS(aS([dS(aS([cS,e.call(n,"test")])),cS])),")",r]));if(s.push(o),i.alternate){const r=xE(i.consequent)&&i.consequent.comments.some(e=>e.trailing&&!cC.isBlockComment(e))||nS(i),o="BlockStatement"===i.consequent.type&&!r;s.push(o?" ":uS),pE(i)&&s.push(Jc.printDanglingComments(e,t,!0),r?uS:" "),s.push("else",pS(dA(i.alternate,e.call(n,"alternate"),"IfStatement"===i.alternate.type)))}return aS(s)}case"ForStatement":{const r=dA(i.body,e.call(n,"body")),o=Jc.printDanglingComments(e,t,!0),a=o?aS([o,cS]):"";return i.init||i.test||i.update?aS([a,pS(aS(["for (",pS(aS([dS(aS([cS,e.call(n,"init"),";",lS,e.call(n,"test"),";",lS,e.call(n,"update")])),cS])),")",r]))]):aS([a,pS(aS(["for (;;)",r]))])}case"WhileStatement":return pS(aS(["while (",pS(aS([dS(aS([cS,e.call(n,"test")])),cS])),")",dA(i.body,e.call(n,"body"))]));case"ForInStatement":return pS(aS([i.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",dA(i.body,e.call(n,"body"))]));case"ForOfStatement":return pS(aS(["for",i.await?" await":""," (",e.call(n,"left")," of ",e.call(n,"right"),")",dA(i.body,e.call(n,"body"))]));case"DoWhileStatement":{const t=dA(i.body,e.call(n,"body")),r=pS(aS(["do",t]));return s=[r],"BlockStatement"===i.body.type?s.push(" "):s.push(uS),s.push("while ("),s.push(pS(aS([dS(aS([cS,e.call(n,"test")])),cS])),")",o),aS(s)}case"DoExpression":return aS(["do ",e.call(n,"body")]);case"BreakStatement":return s.push("break"),i.label&&s.push(" ",e.call(n,"label")),s.push(o),aS(s);case"ContinueStatement":return s.push("continue"),i.label&&s.push(" ",e.call(n,"label")),s.push(o),aS(s);case"LabeledStatement":return"EmptyStatement"===i.body.type?aS([e.call(n,"label"),":;"]):aS([e.call(n,"label"),": ",e.call(n,"body")]);case"TryStatement":return aS(["try ",e.call(n,"block"),i.handler?aS([" ",e.call(n,"handler")]):"",i.finalizer?aS([" finally ",e.call(n,"finalizer")]):""]);case"CatchClause":if(i.param){const r=i.param.comments&&i.param.comments.some(e=>!cC.isBlockComment(e)||e.leading&&qk(t.originalText,t.locEnd(e))||e.trailing&&qk(t.originalText,t.locStart(e),{backwards:!0})),o=e.call(n,"param");return aS(["catch ",aS(r?["(",dS(aS([cS,o])),cS,") "]:["(",o,") "]),e.call(n,"body")])}return aS(["catch ",e.call(n,"body")]);case"ThrowStatement":return aS(["throw",xA(e,t,n)]);case"SwitchStatement":return aS([pS(aS(["switch (",dS(aS([cS,e.call(n,"discriminant")])),cS,")"]))," {",i.cases.length>0?dS(aS([uS,sS(uS,e.map(e=>{const r=e.getValue();return aS([e.call(n),i.cases.indexOf(r)!==i.cases.length-1&&Qk(t.originalText,r,t.locEnd)?uS:""])},"cases"))])):"",uS,"}"]);case"SwitchCase":{i.test?s.push("case ",e.call(n,"test"),":"):s.push("default:");const r=i.consequent.filter(e=>"EmptyStatement"!==e.type);if(r.length>0){const i=e.call(e=>LS(e,t,n),"consequent");s.push(1===r.length&&"BlockStatement"===r[0].type?aS([" ",i]):dS(aS([uS,i])))}return aS(s)}case"DebuggerStatement":return aS(["debugger",o]);case"JSXAttribute":if(s.push(e.call(n,"name")),i.value){let r;if(YE(i.value)){const e=rS(i.value);let n=e.replace(/'/g,"'").replace(/"/g,'"');const o=Zk(n,t.jsxSingleQuote?"'":'"'),a="'"===o?"'":""";n=n.slice(1,-1).replace(new RegExp(o,"g"),a),r=aS([o,n,o])}else r=e.call(n,"value");s.push("=",r)}return aS(s);case"JSXIdentifier":return""+i.name;case"JSXNamespacedName":return sS(":",[e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return sS(".",[e.call(n,"object"),e.call(n,"property")]);case"TSQualifiedName":return sS(".",[e.call(n,"left"),e.call(n,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return aS(["{",e.call(e=>{const r=aS(["...",n(e)]),i=e.getValue();return i.comments&&i.comments.length?aS([dS(aS([cS,Jc.printComments(e,()=>r,t)])),cS]):r},"JSXSpreadAttribute"===i.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":{const t=e.getParentNode(0),r=i.expression.comments&&i.expression.comments.length>0,o="JSXEmptyExpression"===i.expression.type||!r&&("ArrayExpression"===i.expression.type||"ObjectExpression"===i.expression.type||"ArrowFunctionExpression"===i.expression.type||"CallExpression"===i.expression.type||"OptionalCallExpression"===i.expression.type||"FunctionExpression"===i.expression.type||"TemplateLiteral"===i.expression.type||"TaggedTemplateExpression"===i.expression.type||"DoExpression"===i.expression.type||LE(t)&&("ConditionalExpression"===i.expression.type||CE(i.expression)));return pS(o?aS(["{",e.call(n,"expression"),bS,"}"]):aS(["{",dS(aS([cS,e.call(n,"expression")])),cS,bS,"}"]))}case"JSXFragment":case"JSXElement":{const r=Jc.printComments(e,()=>sA(e,t,n),t);return lA(e,r,t)}case"JSXOpeningElement":{const r=e.getValue(),i=r.name&&r.name.comments&&r.name.comments.length>0||r.typeParameters&&r.typeParameters.comments&&r.typeParameters.comments.length>0;if(r.selfClosing&&!r.attributes.length&&!i)return aS(["<",e.call(n,"name"),e.call(n,"typeParameters")," />"]);if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&YE(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!i&&(!r.attributes[0].comments||!r.attributes[0].comments.length))return pS(aS(["<",e.call(n,"name"),e.call(n,"typeParameters")," ",aS(e.map(n,"attributes")),r.selfClosing?" />":">"]));const o=r.attributes.length&&xE(Vk(r.attributes)),a=!r.attributes.length&&!i||t.jsxBracketSameLine&&(!i||r.attributes.length)&&!o,s=r.attributes&&r.attributes.some(e=>e.value&&YE(e.value)&&e.value.value.includes("\n"));return pS(aS(["<",e.call(n,"name"),e.call(n,"typeParameters"),aS([dS(aS(e.map(e=>aS([lS,n(e)]),"attributes"))),r.selfClosing?lS:a?">":cS]),r.selfClosing?"/>":a?"":">"]),{shouldBreak:s})}case"JSXClosingElement":return aS([""]);case"JSXOpeningFragment":case"JSXClosingFragment":{const n=i.comments&&i.comments.length,r=n&&!i.comments.every(cC.isBlockComment),o="JSXOpeningFragment"===i.type;return aS([o?"<":""])}case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":{const n=i.comments&&!i.comments.every(cC.isBlockComment);return aS([Jc.printDanglingComments(e,t,!n),n?uS:""])}case"ClassBody":return i.comments||0!==i.body.length?aS(["{",i.body.length>0?dS(aS([uS,e.call(e=>LS(e,t,n),"body")])):Jc.printDanglingComments(e,t),uS,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":{i.decorators&&0!==i.decorators.length&&s.push(TS(e,t,n)),i.accessibility&&s.push(i.accessibility+" "),i.declare&&s.push("declare "),i.static&&s.push("static "),("TSAbstractClassProperty"===i.type||i.abstract)&&s.push("abstract "),i.readonly&&s.push("readonly ");const r=lE(i);return r&&s.push(r),s.push(BS(e,t,n),eA(e),zS(e,t,n)),i.value&&s.push(" =",hA(i.key,i.value,e.call(n,"value"),t)),s.push(o),pS(aS(s))}case"ClassDeclaration":case"ClassExpression":return i.declare&&s.push("declare "),s.push(aS(QS(e,t,n))),aS(s);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return s.push(e.call(n,"expression")),i.typeParameters&&s.push(e.call(n,"typeParameters")),aS(s);case"TemplateElement":return sS(hS,i.value.raw.split(/\r?\n/g));case"TemplateLiteral":{let r=e.map(n,"expressions");const o=e.getParentNode();if(NE(i,o)){const e=RS(i,r,t);if(e)return e}const a=GE(i);return a&&(r=r.map(e=>ES(e,Object.assign({},t,{printWidth:1/0})).formatted)),s.push(bS,"`"),e.each(e=>{const o=e.getName();if(s.push(n(e)),o0&&"TSRestType"===Vk(i[r]).type;return pS(aS(["[",dS(aS([cS,DA(e,t,r,n)])),vS(AS(t,"all")&&!o?",":""),Jc.printDanglingComments(e,t,!0),cS,"]"]))}case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"AnyTypeAnnotation":return"any";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return aS([e.call(n,"elementType"),"[]"]);case"BooleanTypeAnnotation":return"boolean";case"BooleanLiteralTypeAnnotation":return""+i.value;case"DeclareClass":return XS(e,QS(e,t,n));case"TSDeclareFunction":return aS([i.declare?"declare ":"",GS(e,n,t),o]);case"DeclareFunction":return XS(e,["function ",e.call(n,"id"),i.predicate?" ":"",e.call(n,"predicate"),o]);case"DeclareModule":return XS(e,["module ",e.call(n,"id")," ",e.call(n,"body")]);case"DeclareModuleExports":return XS(e,["module.exports",": ",e.call(n,"typeAnnotation"),o]);case"DeclareVariable":return XS(e,["var ",e.call(n,"id"),o]);case"DeclareExportAllDeclaration":return aS(["declare export * from ",e.call(n,"source")]);case"DeclareExportDeclaration":return aS(["declare ",KS(e,t,n)]);case"DeclareOpaqueType":case"OpaqueType":return s.push("opaque type ",e.call(n,"id"),e.call(n,"typeParameters")),i.supertype&&s.push(": ",e.call(n,"supertype")),i.impltype&&s.push(" = ",e.call(n,"impltype")),s.push(o),"DeclareOpaqueType"===i.type?XS(e,s):aS(s);case"EnumDeclaration":return aS(["enum ",e.call(n,"id")," ",e.call(n,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===i.type||i.explicitType){let e=null;switch(i.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol";break}s.push("of ",e," ")}return 0===i.members.length?s.push(pS(aS(["{",Jc.printDanglingComments(e,t),cS,"}"]))):s.push(pS(aS(["{",dS(aS([uS,DA(e,t,"members",n),AS(t)?",":""])),Jc.printDanglingComments(e,t,!0),uS,"}"]))),aS(s);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return aS([e.call(n,"id")," = ","object"===typeof i.init?e.call(n,"init"):String(i.init)]);case"EnumDefaultedMember":return e.call(n,"id");case"FunctionTypeAnnotation":case"TSFunctionType":{const r=e.getParentNode(0),o=e.getParentNode(1),a=e.getParentNode(2);let l="TSFunctionType"===i.type||!(("ObjectTypeProperty"===r.type||"ObjectTypeInternalSlot"===r.type)&&!lE(r)&&!r.optional&&t.locStart(r)===t.locStart(i)||"ObjectTypeCallProperty"===r.type||a&&"DeclareFunction"===a.type),u=l&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type);const c=u&&l&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type)&&"ArrowFunctionExpression"===o.type;return HE(r,t)&&(l=!0,u=!0),c&&s.push("("),s.push(HS(e,n,t,!1,!0)),(i.returnType||i.predicate||i.typeAnnotation)&&s.push(l?" => ":": ",e.call(n,"returnType"),e.call(n,"predicate"),e.call(n,"typeAnnotation")),c&&s.push(")"),pS(aS(s))}case"TSRestType":return aS(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return aS([e.call(n,"typeAnnotation"),"?"]);case"FunctionTypeParam":return aS([e.call(n,"name"),eA(e),i.name?": ":"",e.call(n,"typeAnnotation")]);case"GenericTypeAnnotation":return aS([e.call(n,"id"),e.call(n,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===i.type||i.declare)&&s.push("declare "),s.push("interface"),"DeclareInterface"!==i.type&&"InterfaceDeclaration"!==i.type||s.push(" ",e.call(n,"id"),e.call(n,"typeParameters")),i.extends.length>0&&s.push(pS(dS(aS([lS,"extends ",(1===i.extends.length?wE:dS)(sS(aS([",",lS]),e.map(n,"extends")))])))),s.push(" ",e.call(n,"body")),pS(aS(s));case"ClassImplements":case"InterfaceExtends":return aS([e.call(n,"id"),e.call(n,"typeParameters")]);case"TSClassImplements":return aS([e.call(n,"expression"),e.call(n,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{const t=e.map(n,"types"),r=[];let o=!1;for(let e=0;e1&&(o=!0),r.push(" & ",e>1?dS(t[e]):t[e])):r.push(dS(aS([" &",lS,t[e]])));return pS(aS(r))}case"TSUnionType":case"UnionTypeAnnotation":{const r=e.getParentNode(),o="TypeParameterInstantiation"!==r.type&&"TSTypeParameterInstantiation"!==r.type&&"GenericTypeAnnotation"!==r.type&&"TSTypeReference"!==r.type&&"TSTypeAssertion"!==r.type&&"TupleTypeAnnotation"!==r.type&&"TSTupleType"!==r.type&&!("FunctionTypeParam"===r.type&&!r.name)&&!(("TypeAlias"===r.type||"VariableDeclarator"===r.type||"TSTypeAliasDeclaration"===r.type)&&gE(t.originalText,i,t)),a=yA(i),s=e.map(e=>{let r=e.call(n);return a||(r=fS(2,r)),Jc.printComments(e,()=>r,t)},"types");if(a)return sS(" | ",s);const l=o&&!gE(t.originalText,i,t),u=aS([vS(aS([l?lS:"","| "])),sS(aS([lS,"| "]),s)]);return Tk(e,t)?pS(aS([dS(u),cS])):"TupleTypeAnnotation"===r.type&&r.types.length>1||"TSTupleType"===r.type&&r.elementTypes.length>1?pS(aS([dS(aS([vS(aS(["(",cS])),u])),cS,vS(")")])):pS(o?dS(u):u)}case"NullableTypeAnnotation":return aS(["?",e.call(n,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"ObjectTypeCallProperty":return i.static&&s.push("static "),s.push(e.call(n,"value")),aS(s);case"ObjectTypeIndexer":{const t=lE(i);return aS([t||"","[",e.call(n,"id"),i.id?": ":"",e.call(n,"key"),"]: ",e.call(n,"value")])}case"ObjectTypeProperty":{const r=lE(i);let o="";return i.proto?o="proto ":i.static&&(o="static "),aS([o,OE(i)?i.kind+" ":"",r||"",BS(e,t,n),eA(e),FE(i,t)?"":": ",e.call(n,"value")])}case"QualifiedTypeIdentifier":return aS([e.call(n,"qualification"),".",e.call(n,"id")]);case"StringLiteralTypeAnnotation":return fA(i,t);case"NumberLiteralTypeAnnotation":return qs.strictEqual(typeof i.value,"number"),null!=i.extra?Uk(i.extra.raw):Uk(i.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":{("DeclareTypeAlias"===i.type||i.declare)&&s.push("declare ");const r=hA(i.id,i.right,e.call(n,"right"),t);return s.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,o),pS(aS(s))}case"TypeCastExpression":return aS(["(",e.call(n,"expression"),zS(e,t,n),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":{const r=e.getValue(),i=r.range?t.originalText.slice(0,r.range[0]).lastIndexOf("/*"):-1,o=i>=0&&t.originalText.slice(i).match(/^\/\*\s*::/);return o?aS(["/*:: ",ZS(e,t,n,"params")," */"]):ZS(e,t,n,"params")}case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return ZS(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":{const r=e.getParentNode();if("TSMappedType"===r.type)return s.push("[",e.call(n,"name")),i.constraint&&s.push(" in ",e.call(n,"constraint")),s.push("]"),aS(s);const o=lE(i);o&&s.push(o),s.push(e.call(n,"name")),i.bound&&(s.push(": "),s.push(e.call(n,"bound"))),i.constraint&&s.push(" extends ",e.call(n,"constraint")),i.default&&s.push(" = ",e.call(n,"default"));const a=e.getNode(2);return r.params&&1===r.params.length&&QE(t)&&!i.constraint&&"ArrowFunctionExpression"===a.type&&s.push(","),aS(s)}case"TypeofTypeAnnotation":return aS(["typeof ",e.call(n,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return aS(["%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 aS([e.call(n,"expression")," as ",e.call(n,"typeAnnotation")]);case"TSArrayType":return aS([e.call(n,"elementType"),"[]"]);case"TSPropertySignature":return i.export&&s.push("export "),i.accessibility&&s.push(i.accessibility+" "),i.static&&s.push("static "),i.readonly&&s.push("readonly "),s.push(BS(e,t,n),eA(e)),i.typeAnnotation&&(s.push(": "),s.push(e.call(n,"typeAnnotation"))),i.initializer&&s.push(" = ",e.call(n,"initializer")),aS(s);case"TSParameterProperty":return i.accessibility&&s.push(i.accessibility+" "),i.export&&s.push("export "),i.static&&s.push("static "),i.readonly&&s.push("readonly "),s.push(e.call(n,"parameter")),aS(s);case"TSTypeReference":return aS([e.call(n,"typeName"),ZS(e,t,n,"typeParameters")]);case"TSTypeQuery":return aS(["typeof ",e.call(n,"exprName")]);case"TSIndexSignature":{const r=e.getParentNode(),a=i.parameters.length>1?vS(AS(t)?",":""):"",s=pS(aS([dS(aS([cS,sS(aS([", ",cS]),e.map(n,"parameters"))])),a,cS]));return aS([i.export?"export ":"",i.accessibility?aS([i.accessibility," "]):"",i.static?"static ":"",i.readonly?"readonly ":"","[",i.parameters?s:"",i.typeAnnotation?"]: ":"]",i.typeAnnotation?e.call(n,"typeAnnotation"):"","ClassBody"===r.type?o:""])}case"TSTypePredicate":return aS([i.asserts?"asserts ":"",e.call(n,"parameterName"),i.typeAnnotation?aS([" is ",e.call(n,"typeAnnotation")]):""]);case"TSNonNullExpression":return aS([e.call(n,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return aS([i.isTypeOf?"typeof ":"","import(",e.call(n,i.parameter?"parameter":"argument"),")",i.qualifier?aS([".",e.call(n,"qualifier")]):"",ZS(e,t,n,"typeParameters")]);case"TSLiteralType":return e.call(n,"literal");case"TSIndexedAccessType":return aS([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSCallSignatureDeclaration"!==i.type&&s.push("new "),s.push(pS(HS(e,n,t,!1,!0))),i.returnType||i.typeAnnotation){const t="TSConstructorType"===i.type;s.push(t?" => ":": ",e.call(n,"returnType"),e.call(n,"typeAnnotation"))}return aS(s);case"TSTypeOperator":return aS([i.operator," ",e.call(n,"typeAnnotation")]);case"TSMappedType":{const r=zk(t.originalText,t.locStart(i),t.locEnd(i));return pS(aS(["{",dS(aS([t.bracketSpacing?lS:cS,i.readonly?aS([hE(i.readonly,"readonly")," "]):"",JS(e,t,n),e.call(n,"typeParameter"),i.optional?hE(i.optional,"?"):"",i.typeAnnotation?": ":"",e.call(n,"typeAnnotation"),vS(o,"")])),Jc.printDanglingComments(e,t,!0),t.bracketSpacing?lS:cS,"}"]),{shouldBreak:r})}case"TSMethodSignature":return s.push(i.accessibility?aS([i.accessibility," "]):"",i.export?"export ":"",i.static?"static ":"",i.readonly?"readonly ":"",i.computed?"[":"",e.call(n,"key"),i.computed?"]":"",eA(e),HS(e,n,t,!1,!0)),(i.returnType||i.typeAnnotation)&&s.push(": ",e.call(n,"returnType"),e.call(n,"typeAnnotation")),pS(aS(s));case"TSNamespaceExportDeclaration":return s.push("export as namespace ",e.call(n,"id")),t.semi&&s.push(";"),pS(aS(s));case"TSEnumDeclaration":return i.declare&&s.push("declare "),i.modifiers&&s.push(JS(e,t,n)),i.const&&s.push("const "),s.push("enum ",e.call(n,"id")," "),0===i.members.length?s.push(pS(aS(["{",Jc.printDanglingComments(e,t),cS,"}"]))):s.push(pS(aS(["{",dS(aS([uS,DA(e,t,"members",n),AS(t,"es5")?",":""])),Jc.printDanglingComments(e,t,!0),uS,"}"]))),aS(s);case"TSEnumMember":return s.push(e.call(n,"id")),i.initializer&&s.push(" = ",e.call(n,"initializer")),aS(s);case"TSImportEqualsDeclaration":return i.isExport&&s.push("export "),s.push("import ",e.call(n,"id")," = ",e.call(n,"moduleReference")),t.semi&&s.push(";"),pS(aS(s));case"TSExternalModuleReference":return aS(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":{const r=e.getParentNode(),a=ME(i.id),l="TSModuleDeclaration"===r.type,u=i.body&&"TSModuleDeclaration"===i.body.type;if(l)s.push(".");else{i.declare&&s.push("declare "),s.push(JS(e,t,n));const r=t.originalText.slice(t.locStart(i),t.locStart(i.id)),o="Identifier"===i.id.type&&"global"===i.id.name&&!/namespace|module/.test(r);o||s.push(a||/(^|\s)module(\s|$)/.test(r)?"module ":"namespace ")}return s.push(e.call(n,"id")),u?s.push(e.call(n,"body")):i.body?s.push(" ",pS(e.call(n,"body"))):s.push(o),aS(s)}case"PrivateName":return aS(["#",e.call(n,"id")]);case"TSPrivateIdentifier":return i.escapedText;case"TSConditionalType":return OS(e,t,n,{beforeParts:()=>[e.call(n,"checkType")," ","extends"," ",e.call(n,"extendsType")],afterParts:()=>[],shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyNames:["checkType","extendsType"]});case"TSInferType":return aS(["infer"," ",e.call(n,"typeParameter")]);case"InterpreterDirective":return s.push("#!",i.value,uS),Qk(t.originalText,i,t.locEnd)&&s.push(uS),aS(s);case"NGRoot":return aS([].concat(e.call(n,"node"),i.node.comments&&0!==i.node.comments.length?aS([" //",i.node.comments[0].value.trimEnd()]):[]));case"NGChainedExpression":return pS(sS(aS([";",lS]),e.map(e=>bE(e)?n(e):aS(["(",n(e),")"]),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return aS([i.prefix,": ",i.value.trim()]);case"NGMicrosyntax":return aS(e.map((e,t)=>aS([0===t?"":qE(e.getValue(),t,i)?" ":aS([";",lS]),n(e)]),"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(i.name)?i.name:JSON.stringify(i.name);case"NGMicrosyntaxExpression":return aS([e.call(n,"expression"),null===i.alias?"":aS([" as ",e.call(n,"alias")])]);case"NGMicrosyntaxKeyedExpression":{const t=e.getName(),r=e.getParentNode(),o=qE(i,t,r)||(1===t&&("then"===i.key.name||"else"===i.key.name)||2===t&&"else"===i.key.name&&"NGMicrosyntaxKeyedExpression"===r.body[t-1].type&&"then"===r.body[t-1].key.name)&&"NGMicrosyntaxExpression"===r.body[0].type;return aS([e.call(n,"key"),o?" ":": ",e.call(n,"expression")])}case"NGMicrosyntaxLet":return aS(["let ",e.call(n,"key"),null===i.value?"":aS([" = ",e.call(n,"value")])]);case"NGMicrosyntaxAs":return aS([e.call(n,"key")," as ",e.call(n,"alias")]);case"ArgumentPlaceholder":return"?";case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return aS(["?",e.call(n,"typeAnnotation")]);case"TSJSDocNonNullableType":return aS(["!",e.call(n,"typeAnnotation")]);case"TSJSDocFunctionType":return aS(["function(","): ",e.call(n,"typeAnnotation")]);default:throw new Error("unknown type: "+JSON.stringify(i.type))}}function LS(e,t,n){const r=[],i=e.getNode(),o="ClassBody"===i.type;return e.map((e,a)=>{const s=e.getValue();if(!s)return;if("EmptyStatement"===s.type)return;const l=n(e),u=t.originalText,c=[];if(t.semi||o||ZE(t,e)||!vA(e,t)?c.push(l):s.comments&&s.comments.some(e=>e.leading)?c.push(n(e,{needsSemi:!0})):c.push(";",l),!t.semi&&o)if(aE(e))c.push(";");else if("ClassProperty"===s.type){const e=i.body[a+1];oE(e)&&c.push(";")}Qk(u,s,t.locEnd)&&!PE(e)&&c.push(uS),r.push(aS(c))}),sS(uS,r)}function BS(e,t,n){const r=e.getNode();if(r.computed)return aS(["[",e.call(n,"key"),"]"]);const i=e.getParentNode(),{key:o}=r;if("ClassPrivateProperty"===r.type&&"Identifier"===o.type)return aS(["#",e.call(n,"key")]);if("consistent"===t.quoteProps&&!oS.has(i)){const e=(i.properties||i.body||i.members).some(e=>!e.computed&&e.key&&YE(e.key)&&!KE(e,t));oS.set(i,e)}if("Identifier"===o.type&&("json"===t.parser||"consistent"===t.quoteProps&&oS.get(i))){const n=Wk(JSON.stringify(o.name),t);return e.call(e=>Jc.printComments(e,()=>n,t),"key")}return KE(r,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!oS.get(i))?e.call(e=>Jc.printComments(e,()=>o.value,t),"key"):e.call(n,"key")}function PS(e,t,n){const r=e.getNode(),{kind:i}=r,o=r.value||r,a=[];return i&&"init"!==i&&"method"!==i&&"constructor"!==i?(qs.ok("get"===i||"set"===i),a.push(i," ")):(o.async&&a.push("async "),o.generator&&a.push("*")),a.push(BS(e,t,n),r.optional||r.key.optional?"?":"",r===o?MS(e,t,n):e.call(e=>MS(e,t,n),"value")),aS(a)}function MS(e,t,n){const r=[VS(e,t,n),pS(aS([HS(e,n,t),YS(e,n,t)]))];return e.getNode().body?r.push(" ",e.call(n,"body")):r.push(t.semi?";":""),aS(r)}function jS(e){return"ObjectExpression"===e.type&&(e.properties.length>0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type&&jS(e.expression)||"TSAsExpression"===e.type&&jS(e.expression)||"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||LE(e.body))}function IS(e){const t=Vk(e),n=Kk(e);return!mE(t)&&!xE(t)&&jS(t)&&(!n||n.type!==t.type)}function $S(e){if(2!==e.length)return!1;const[t,n]=e;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&&!jS(n)}function RS(e,t,n){const r=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(r.length>1||r.some(e=>0!==e.length)){const i=[],o=t.map(e=>"${"+ES(e,Object.assign({},n,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"),a=[{hasLineBreak:!1,cells:[]}];for(let t=1;te.cells.length)),l=Array.from({length:s}).fill(0),u=[{cells:r},...a.filter(e=>0!==e.cells.length)];for(const{cells:e}of u.filter(e=>!e.hasLineBreak))e.forEach((e,t)=>{l[t]=Math.max(l[t],Hk(e))});return i.push(bS,"`",dS(aS([uS,sS(uS,u.map(e=>sS(" | ",e.cells.map((t,n)=>e.hasLineBreak?t:t+" ".repeat(l[n]-Hk(t))))))])),uS,"`"),aS(i)}}function qS(e,t,n){const r=e.getValue(),i=r.arguments;if(0===i.length)return aS(["(",Jc.printDanglingComments(e,t,!0),")"]);if(2===i.length&&"ArrowFunctionExpression"===i[0].type&&0===i[0].params.length&&"BlockStatement"===i[0].body.type&&"ArrayExpression"===i[1].type&&!i.find(e=>e.comments))return aS(["(",e.call(n,"arguments",0),", ",e.call(n,"arguments",1),")"]);function o(e,t){if(!e||"ArrowFunctionExpression"!==e.type||!e.body||"BlockStatement"!==e.body.type||!e.params||e.params.length<1)return!1;let r=!1;return t.each(e=>{const t=aS([n(e)]);r=r||wS(t)},"params"),r}let a=!1,s=!1,l=!1;const u=i.length-1,c=e.map((e,r)=>{const i=e.getNode(),c=[n(e)];return r===u||(Qk(t.originalText,i,t.locEnd)?(0===r&&(l=!0),a=!0,c.push(",",uS,uS)):c.push(",",lS)),s=o(i,e),aS(c)},"arguments"),h=r.callee&&"Import"===r.callee.type||!AS(t,"all")?"":",";function p(){return pS(aS(["(",dS(aS([lS,aS(c)])),h,lS,")"]),{shouldBreak:!0})}if("Decorator"!==e.getParentNode().type&&AE(i))return p();const d=$S(i),f=IS(i);if(d||f){const t=(d?c.slice(1).some(wS):c.slice(0,-1).some(wS))||a||s;let o,u=0;e.each(e=>{d&&0===u&&(o=[aS([e.call(e=>n(e,{expandFirstArg:!0})),c.length>1?",":"",l?uS:lS,l?uS:""])].concat(c.slice(1))),f&&u===i.length-1&&(o=c.slice(0,-1).concat(e.call(e=>n(e,{expandLastArg:!0})))),u++},"arguments");const h=c.some(wS),m=aS(["(",aS(o),")"]);return aS([h?yS:"",mS([h||r.typeArguments||r.typeParameters?vS(p(),m):m,aS(d?["(",pS(o[0],{shouldBreak:!0}),aS(o.slice(1)),")"]:["(",aS(c.slice(0,-1)),pS(Vk(o),{shouldBreak:!0}),")"]),p()],{shouldBreak:t})])}const m=aS(["(",dS(aS([cS,aS(c)])),vS(h),cS,")"]);return jE(e)?m:pS(m,{shouldBreak:c.some(wS)||a})}function zS(e,t,n){const r=e.getValue();if(!r.typeAnnotation)return"";const i=e.getParentNode(),o=r.definite||i&&"VariableDeclarator"===i.type&&i.definite,a="DeclareFunction"===i.type&&i.id===r;return SE(t.originalText,r.typeAnnotation,t)?aS([" /*: ",e.call(n,"typeAnnotation")," */"]):aS([a?"":o?"!: ":": ",e.call(n,"typeAnnotation")])}function VS(e,t,n){const r=e.getValue();return r.typeArguments?e.call(n,"typeArguments"):r.typeParameters?e.call(n,"typeParameters"):""}function HS(e,t,n,r,i){const o=e.getValue(),a=e.getParentNode(),s=o.parameters?"parameters":"params",l=JE(a),u=bA(o),c=r&&!(o[s]&&o[s].some(e=>e.comments)),h=i?VS(e,n,t):"";let p=[];if(o[s]){const r=o[s].length-1;p=e.map((e,i)=>{const a=[],s=e.getValue();return a.push(t(e)),i===r?o.rest&&a.push(",",lS):l||u||c?a.push(", "):Qk(n.originalText,s,n.locEnd)?a.push(",",uS,uS):a.push(",",lS),aS(a)},s)}if(o.rest&&p.push(aS(["...",e.call(t,"rest")])),0===p.length)return aS([h,"(",Jc.printDanglingComments(e,n,!0,e=>")"===Rk(n.originalText,e,n.locEnd)),")"]);const d=Vk(o[s]);if(c)return pS(aS([kS(h),"(",aS(p.map(kS)),")"]));const f=o[s].every(e=>!e.decorators);if(u&&f)return aS([h,"(",aS(p),")"]);if(l)return aS([h,"(",aS(p),")"]);const m=(HE(a,n)||eS(a,n)||"TypeAlias"===a.type||"UnionTypeAnnotation"===a.type||"TSUnionType"===a.type||"IntersectionTypeAnnotation"===a.type||"FunctionTypeAnnotation"===a.type&&a.returnType===o)&&1===o[s].length&&null===o[s][0].name&&o[s][0].typeAnnotation&&null===o.typeParameters&&UE(o[s][0].typeAnnotation)&&!o.rest;if(m)return"always"===n.arrowParens?aS(["(",aS(p),")"]):aS(p);const g=!(d&&"RestElement"===d.type)&&!o.rest;return aS([h,"(",dS(aS([cS,aS(p)])),vS(g&&AS(n,"all")?",":""),cS,")"])}function WS(e,t){if("always"===t.arrowParens)return!1;if("avoid"===t.arrowParens){const t=e.getValue();return US(t)}return!1}function US(e){return 1===e.params.length&&!e.rest&&!e.typeParameters&&!pE(e)&&"Identifier"===e.params[0].type&&!e.params[0].typeAnnotation&&!e.params[0].comments&&!e.params[0].optional&&!e.predicate&&!e.returnType}function GS(e,t,n){const r=e.getValue(),i=[];return r.async&&i.push("async "),r.generator?i.push("function* "):i.push("function "),r.id&&i.push(e.call(t,"id")),i.push(VS(e,n,t),pS(aS([HS(e,t,n),YS(e,t,n)])),r.body?" ":"",e.call(t,"body")),aS(i)}function YS(e,t,n){const r=e.getValue(),i=e.call(t,"returnType");if(r.returnType&&SE(n.originalText,r.returnType,n))return aS([" /*: ",i," */"]);const o=[i];return r.returnType&&r.returnType.typeAnnotation&&o.unshift(": "),r.predicate&&o.push(r.returnType?" ":": ",e.call(t,"predicate")),aS(o)}function KS(e,t,n){const r=e.getValue(),i=t.semi?";":"",o=["export "],a=r.default||"ExportDefaultDeclaration"===r.type;if(a&&o.push("default "),o.push(Jc.printDanglingComments(e,t,!0)),nS(r)&&o.push(uS),r.declaration)o.push(e.call(n,"declaration")),a&&"ClassDeclaration"!==r.declaration.type&&"FunctionDeclaration"!==r.declaration.type&&"TSInterfaceDeclaration"!==r.declaration.type&&"DeclareClass"!==r.declaration.type&&"DeclareFunction"!==r.declaration.type&&"TSDeclareFunction"!==r.declaration.type&&o.push(i);else{if(r.specifiers&&r.specifiers.length>0){const i=[],a=[],s=[];e.each(t=>{const r=e.getValue().type;"ExportSpecifier"===r?i.push(n(t)):"ExportDefaultSpecifier"===r?a.push(n(t)):"ExportNamespaceSpecifier"===r&&s.push(aS(["* as ",n(t)]))},"specifiers");const l=0!==s.length&&0!==i.length,u=0!==a.length&&(0!==s.length||0!==i.length),c=i.length>1||a.length>0||r.specifiers&&r.specifiers.some(e=>e.comments);let h="";0!==i.length&&(h=c?pS(aS(["{",dS(aS([t.bracketSpacing?lS:cS,sS(aS([",",lS]),i)])),vS(AS(t)?",":""),t.bracketSpacing?lS:cS,"}"])):aS(["{",t.bracketSpacing?" ":"",aS(i),t.bracketSpacing?" ":"","}"])),o.push("type"===r.exportKind?"type ":"",aS(a),aS([u?", ":""]),aS(s),aS([l?", ":""]),h)}else o.push("{}");r.source&&o.push(" from ",e.call(n,"source")),o.push(i)}return aS(o)}function XS(e,t){const n=cE(e);return n?qs.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),aS(t)}function JS(e,t,n){const r=e.getValue();return r.modifiers&&r.modifiers.length?aS([sS(" ",e.map(n,"modifiers"))," "]):""}function ZS(e,t,n,r){const i=e.getValue();if(!i[r])return"";if(!Array.isArray(i[r]))return e.call(n,r);const o=e.getNode(2),a=e.getNode(3),s=e.getNode(4),l=null!=o&&JE(o),u=l||0===i[r].length||1===i[r].length&&(yA(i[r][0])||"GenericTypeAnnotation"===i[r][0].type&&yA(i[r][0].id)||"TSTypeReference"===i[r][0].type&&yA(i[r][0].typeName)||"NullableTypeAnnotation"===i[r][0].type||s&&"VariableDeclarator"===s.type&&"TSTypeAnnotation"===o.type&&"ArrowFunctionExpression"!==a.type&&"TSUnionType"!==i[r][0].type&&"UnionTypeAnnotation"!==i[r][0].type&&"TSIntersectionType"!==i[r][0].type&&"IntersectionTypeAnnotation"!==i[r][0].type&&"TSConditionalType"!==i[r][0].type&&"TSMappedType"!==i[r][0].type&&"TSTypeOperator"!==i[r][0].type&&"TSIndexedAccessType"!==i[r][0].type&&"TSArrayType"!==i[r][0].type);function c(n){if(!pE(n))return"";const r=n.comments.every(cC.isBlockComment),i=Jc.printDanglingComments(e,t,r);return r?i:aS([i,uS])}return u?aS(["<",sS(", ",e.map(n,r)),c(i),">"]):pS(aS(["<",dS(aS([cS,sS(aS([",",lS]),e.map(n,r))])),vS("typescript"!==t.parser&&"babel-ts"!==t.parser&&AS(t,"all")?",":""),cS,">"]))}function QS(e,t,n){const r=e.getValue(),i=[];r.abstract&&i.push("abstract "),i.push("class"),r.id&&i.push(" ",e.call(n,"id")),i.push(e.call(n,"typeParameters"));const o=[];if(r.superClass){const a=aS(["extends ",e.call(n,"superClass"),e.call(n,"superTypeParameters")]);r.implements&&0!==r.implements.length||r.superClass.comments&&0!==r.superClass.comments.length?o.push(pS(aS([lS,e.call(e=>Jc.printComments(e,()=>a,t),"superClass")]))):i.push(aS([" ",e.call(e=>Jc.printComments(e,()=>a,t),"superClass")]))}else r.extends&&r.extends.length>0&&i.push(" extends ",sS(", ",e.map(n,"extends")));return r.mixins&&r.mixins.length>0&&o.push(lS,"mixins ",pS(dS(sS(aS([",",lS]),e.map(n,"mixins"))))),r.implements&&r.implements.length>0&&o.push(lS,"implements",pS(dS(aS([lS,sS(aS([",",lS]),e.map(n,"implements"))])))),o.length>0&&i.push(pS(dS(aS(o)))),r.body&&r.body.comments&&gE(t.originalText,r.body,t)?i.push(uS):i.push(" "),i.push(e.call(n,"body")),i}function eA(e){const t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function tA(e,t,n){const r=e.call(n,"property"),i=e.getValue(),o=eA(e);return i.computed?!i.property||zE(i.property)?aS([o,"[",r,"]"]):pS(aS([o,"[",dS(aS([cS,r])),cS,"]"])):aS([o,".",r])}function nA(e,t,n){return aS(["::",e.call(n,"callee")])}function rA(e,t,n){const r=[];function i(e){const{originalText:n}=t,r=tE(n,e,t.locEnd),i=n.charAt(r);return")"===i?eE(n,r+1,t.locEnd):Qk(n,e,t.locEnd)}function o(e){const a=e.getValue();"CallExpression"!==a.type&&"OptionalCallExpression"!==a.type||!RE(a.callee)&&"CallExpression"!==a.callee.type&&"OptionalCallExpression"!==a.callee.type?RE(a)?(r.unshift({node:a,needsParens:Tk(e,t),printed:Jc.printComments(e,()=>"OptionalMemberExpression"===a.type||"MemberExpression"===a.type?tA(e,t,n):nA(e,t,n),t)}),e.call(e=>o(e),"object")):"TSNonNullExpression"===a.type?(r.unshift({node:a,printed:Jc.printComments(e,()=>"!",t)}),e.call(e=>o(e),"expression")):r.unshift({node:a,printed:e.call(n)}):(r.unshift({node:a,printed:aS([Jc.printComments(e,()=>aS([eA(e),VS(e,t,n),qS(e,t,n)]),t),i(a)?uS:""])}),e.call(e=>o(e),"callee"))}const a=e.getValue();r.unshift({node:a,printed:aS([eA(e),VS(e,t,n),qS(e,t,n)])}),e.call(e=>o(e),"callee");const s=[];let l=[r[0]],u=1;for(;ue.trailing)&&(s.push(l),l=[],c=!1)}function h(e){return/^[A-Z]|^[_$]+$/.test(e)}function p(e){return e.length<=t.tabWidth}function d(t){const n=e.getParentNode(),r=n&&"ExpressionStatement"===n.type,i=t[1].length&&t[1][0].node.computed;if(1===t[0].length){const e=t[0][0].node;return"ThisExpression"===e.type||"Identifier"===e.type&&(h(e.name)||r&&p(e.name)||i)}const o=Vk(t[0]).node;return("MemberExpression"===o.type||"OptionalMemberExpression"===o.type)&&"Identifier"===o.property.type&&(h(o.property.name)||i)}l.length>0&&s.push(l);const f=s.length>=2&&!s[1][0].node.comments&&d(s);function m(e){const t=e.map(e=>e.printed);return e.length>0&&e[e.length-1].needsParens?aS(["(",...t,")"]):aS(t)}function g(e){return 0===e.length?"":dS(pS(aS([uS,sS(uS,e.map(m))])))}const v=s.map(m),y=aS(v),b=f?3:2,D=s.reduce((e,t)=>e.concat(t),[]),x=D.slice(1,-1).some(e=>mE(e.node))||D.slice(0,-1).some(e=>xE(e.node))||s[b]&&mE(s[b][0].node);if(s.length<=b&&!x)return jE(e)?y:pS(y);const w=Vk(f?s.slice(1,2)[0]:s[0]).node,C="CallExpression"!==w.type&&"OptionalCallExpression"!==w.type&&i(w),_=aS([m(s[0]),f?aS(s.slice(1,2).map(m)):"",C?uS:"",g(s.slice(f?2:1))]),k=r.map(({node:e})=>e).filter(_E);return x||k.length>2&&k.some(e=>!e.arguments.every(e=>WE(e,0)))||v.slice(0,-1).some(wS)||((e,t)=>_E(t)&&wS(e))(Vk(v),Vk(Vk(s)).node)&&k.slice(0,-1).some(e=>e.arguments.some(TE))?pS(_):aS([wS(y)||C?yS:"",mS([y,_])])}function iA(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?cS:uS:cS}function oA(e,t,n,r){return e?uS:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?uS:cS:uS}function aA(e,t,n,r,i){const o=e.getValue(),a=[];return e.map((e,t)=>{const s=e.getValue();if(ME(s)){const e=rS(s);if(IE(s)){const n=e.split(tS);if(""===n[0]){if(a.push(""),n.shift(),/\n/.test(n[0])){const e=o.children[t+1];a.push(oA(i,n[1],s,e))}else a.push(r);n.shift()}let l;if(""===Vk(n)&&(n.pop(),l=n.pop()),0===n.length)return;if(n.forEach((e,t)=>{t%2===1?a.push(lS):a.push(e)}),void 0!==l)if(/\n/.test(l)){const e=o.children[t+1];a.push(oA(i,Vk(a),s,e))}else a.push(r);else{const e=o.children[t+1];a.push(iA(i,Vk(a),s,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&(a.push(""),a.push(uS)):(a.push(""),a.push(r))}else{const r=n(e);a.push(r);const l=o.children[t+1],u=l&&IE(l);if(u){const e=rS(l).trim().split(tS)[0];a.push(iA(i,e,s,l))}else a.push(uS)}},"children"),a}function sA(e,t,n){const r=e.getValue();if("JSXElement"===r.type&&kE(r))return aS([e.call(n,"openingElement"),e.call(n,"closingElement")]);const i="JSXElement"===r.type?e.call(n,"openingElement"):e.call(n,"openingFragment"),o="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 aS([i,aS(e.map(n,"children")),o]);r.children=r.children.map(e=>BE(e)?{type:"JSXText",value:" ",raw:" "}:e);const a=r.children.filter(LE).length>0,s=r.children.filter(e=>"JSXExpressionContainer"===e.type).length>1,l="JSXElement"===r.type&&r.openingElement.attributes.length>1;let u=wS(i)||a||l||s;const c="mdx"===e.getParentNode().rootMarker,h=t.singleQuote?"{' '}":'{" "}',p=c?aS([" "]):vS(aS([h,cS])," "),d=r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name,f=aA(e,t,n,p,d),m=r.children.some(e=>IE(e));for(let b=f.length-2;b>=0;b--){const e=""===f[b]&&""===f[b+1],t=f[b]===uS&&""===f[b+1]&&f[b+2]===uS,n=(f[b]===cS||f[b]===uS)&&""===f[b+1]&&f[b+2]===p,r=f[b]===p&&""===f[b+1]&&(f[b+2]===cS||f[b+2]===uS),i=f[b]===p&&""===f[b+1]&&f[b+2]===p,o=f[b]===cS&&""===f[b+1]&&f[b+2]===uS||f[b]===uS&&""===f[b+1]&&f[b+2]===cS;t&&m||e||n||i||o?f.splice(b,2):r&&f.splice(b+1,2)}while(f.length&&(CS(Vk(f))||_S(Vk(f))))f.pop();while(f.length&&(CS(f[0])||_S(f[0]))&&(CS(f[1])||_S(f[1])))f.shift(),f.shift();const g=[];f.forEach((e,t)=>{if(e===p){if(1===t&&""===f[t-1])return 2===f.length?void g.push(h):void g.push(aS([h,uS]));if(t===f.length-1)return void g.push(h);if(""===f[t-1]&&f[t-2]===uS)return void g.push(h)}g.push(e),wS(e)&&(u=!0)});const v=m?gS(g):pS(aS(g),{shouldBreak:!0});if(c)return v;const y=pS(aS([i,dS(aS([uS,v])),uS,o]));return u?y:mS([pS(aS([i,aS(f),o])),y])}function lA(e,t,n){const r=e.getParentNode();if(!r)return t;const i={ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0};if(i[r.type])return t;const o=e.match(void 0,e=>"ArrowFunctionExpression"===e.type,_E,e=>"JSXExpressionContainer"===e.type),a=Tk(e,n);return pS(aS([a?"":vS("("),dS(aS([cS,t])),cS,a?"":vS(")")]),{shouldBreak:o})}function uA(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||("ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!LE(e.right)))}function cA(e,t,n,r,i){let o=[];const a=e.getValue();if(CE(a)){$k(a.operator,a.left.operator)?o=o.concat(e.call(e=>cA(e,t,n,!0,i),"left")):o.push(e.call(t,"left"));const s=uA(a),l=("|>"===a.operator||"NGPipeExpression"===a.type||"|"===a.operator&&"__vue_expression"===n.parser)&&!gE(n.originalText,a.right,n),u="NGPipeExpression"===a.type?"|":a.operator,c="NGPipeExpression"===a.type&&0!==a.arguments.length?pS(dS(aS([cS,": ",sS(aS([cS,":",vS(" ")]),e.map(t,"arguments").map(e=>fS(2,pS(e))))]))):"",h=aS(s?[u," ",e.call(t,"right"),c]:[l?cS:"",u,l?" ":lS,e.call(t,"right"),c]),p=e.getParentNode(),d=!(i&&"LogicalExpression"===a.type)&&p.type!==a.type&&a.left.type!==a.type&&a.right.type!==a.type;o.push(" ",d?pS(h):h),r&&a.comments&&(o=Jc.printComments(e,()=>aS(o),n))}else o.push(e.call(t));return o}function hA(e,t,n,r){if(gE(r.originalText,t,r))return dS(aS([lS,n]));const i=CE(t)&&!uA(t)||"ConditionalExpression"===t.type&&CE(t.test)&&!uA(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||YE(e)||"MemberExpression"===e.type)&&(YE(t)||$E(t))&&"json"!==r.parser&&"json5"!==r.parser||"SequenceExpression"===t.type;return i?pS(dS(aS([lS,n]))):aS([" ",n])}function pA(e,t,n,r,i,o){if(!r)return t;const a=hA(e,r,i,o);return pS(aS([t,n,a]))}function dA(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?aS([" ",t]):dS(aS([lS,t]))}function fA(e,t,n){const r=rS(e),i=n||"DirectiveLiteral"===e.type;return Wk(r,t,i)}function mA(e){const t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function gA(e,t){const n=e.getValue(),r=Tk(e,t)||"ParenthesizedExpression"===n.type||"TypeCastExpression"===n.type||"ArrowFunctionExpression"===n.type&&!WS(e,t)||"ArrayExpression"===n.type||"ArrayPattern"===n.type||"UnaryExpression"===n.type&&n.prefix&&("+"===n.operator||"-"===n.operator)||"TemplateLiteral"===n.type||"TemplateElement"===n.type||LE(n)||"BindExpression"===n.type&&!n.object||"RegExpLiteral"===n.type||"Literal"===n.type&&n.pattern||"Literal"===n.type&&n.regex;return!!r||!!vE(n)&&e.call(e=>gA(e,t),...uE(e,n))}function vA(e,t){const n=e.getNode();return"ExpressionStatement"===n.type&&e.call(e=>gA(e,t),"expression")}function yA(e){if(UE(e)||VE(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){const t=e.types.filter(e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type).length,n=e.types.some(e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type);if(e.types.length-1===t&&n)return!0}return!1}function bA(e){if(!e||e.rest)return!1;const t=e.params||e.parameters;if(!t||1!==t.length)return!1;const n=t[0];return!n.comments&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&VE(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&VE(n.typeAnnotation)||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||"ObjectExpression"===n.right.type&&0===n.right.properties.length||"ArrayExpression"===n.right.type&&0===n.right.elements.length))}function DA(e,t,n,r){const i=[];let o=[];return e.each(e=>{i.push(aS(o)),i.push(pS(r(e))),o=[",",lS],e.getValue()&&Qk(t.originalText,e.getValue(),t.locEnd)&&o.push(cS)},n),aS(i)}function xA(e,t,n){const r=e.getValue(),i=t.semi?";":"",o=[];r.argument&&(iS(t,r.argument)?o.push(aS([" (",dS(aS([uS,e.call(n,"argument")])),uS,")"])):CE(r.argument)||"SequenceExpression"===r.argument.type?o.push(pS(aS([vS(" ("," "),dS(aS([cS,e.call(n,"argument")])),cS,vS(")")]))):o.push(" ",e.call(n,"argument")));const a=Array.isArray(r.comments)&&r.comments[r.comments.length-1],s=a&&("CommentLine"===a.type||"Line"===a.type);return s&&o.push(i),pE(r)&&o.push(" ",Jc.printDanglingComments(e,t,!0)),s||o.push(i),aS(o)}function wA(e){const t=e.getValue(),n=e.getParentNode();return(t&&(LE(t)||fE(t)||n&&("CallExpression"===n.type||"OptionalCallExpression"===n.type)&&(dE(t.leadingComments)||dE(t.trailingComments)))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!Gk(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)}function CA(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}function _A(e,t){const n=e.getValue();switch(n.type){case"CommentBlock":case"Block":{if(kA(n)){const e=EA(n);return n.trailing&&!qk(t.originalText,t.locStart(n),{backwards:!0})?aS([uS,e]):e}const e=t.locEnd(n),r="*-/"===t.originalText.slice(e-3,e);return"/*"+n.value+(r?"*-/":"*/")}case"CommentLine":case"Line":return t.originalText.slice(t.locStart(n)).startsWith("#!")?"#!"+n.value.trimEnd():"//"+n.value.trimEnd();default:throw new Error("Not a comment: "+JSON.stringify(n))}}function kA(e){const t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every(e=>"*"===e.trim()[0])}function EA(e){const t=e.value.split("\n");return aS(["/*",sS(uS,t.map((e,n)=>0===n?e.trimEnd():" "+(n x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSpacing:Tf.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:PA,type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:PA,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Tf.singleQuote,jsxSingleQuote:{since:"1.15.0",category:PA,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:PA,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:PA,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},jA="JavaScript",IA="programming",$A="source.js",RA="javascript",qA="javascript",zA="text/javascript",VA="#f1e05a",HA=["js","node"],WA=[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],UA=["Jakefile"],GA=["chakra","d8","gjs","js","node","qjs","rhino","v8","v8-shell"],YA=183,KA={name:jA,type:IA,tmScope:$A,aceMode:RA,codemirrorMode:qA,codemirrorMimeType:zA,color:VA,aliases:HA,extensions:WA,filenames:UA,interpreters:GA,languageId:YA},XA=Object.freeze({__proto__:null,name:jA,type:IA,tmScope:$A,aceMode:RA,codemirrorMode:qA,codemirrorMimeType:zA,color:VA,aliases:HA,extensions:WA,filenames:UA,interpreters:GA,languageId:YA,default:KA}),JA="JSX",ZA="programming",QA="JavaScript",eF=[".jsx"],tF="source.js.jsx",nF="javascript",rF="jsx",iF="text/jsx",oF=178,aF={name:JA,type:ZA,group:QA,extensions:eF,tmScope:tF,aceMode:nF,codemirrorMode:rF,codemirrorMimeType:iF,languageId:oF},sF=Object.freeze({__proto__:null,name:JA,type:ZA,group:QA,extensions:eF,tmScope:tF,aceMode:nF,codemirrorMode:rF,codemirrorMimeType:iF,languageId:oF,default:aF}),lF="TypeScript",uF="programming",cF="#2b7489",hF=["ts"],pF=["deno","ts-node"],dF=[".ts"],fF="source.ts",mF="typescript",gF="javascript",vF="application/typescript",yF=378,bF={name:lF,type:uF,color:cF,aliases:hF,interpreters:pF,extensions:dF,tmScope:fF,aceMode:mF,codemirrorMode:gF,codemirrorMimeType:vF,languageId:yF},DF=Object.freeze({__proto__:null,name:lF,type:uF,color:cF,aliases:hF,interpreters:pF,extensions:dF,tmScope:fF,aceMode:mF,codemirrorMode:gF,codemirrorMimeType:vF,languageId:yF,default:bF}),xF="TSX",wF="programming",CF="TypeScript",_F=[".tsx"],kF="source.tsx",EF="javascript",SF="jsx",AF="text/jsx",FF=94901924,TF={name:xF,type:wF,group:CF,extensions:_F,tmScope:kF,aceMode:EF,codemirrorMode:SF,codemirrorMimeType:AF,languageId:FF},OF=Object.freeze({__proto__:null,name:xF,type:wF,group:CF,extensions:_F,tmScope:kF,aceMode:EF,codemirrorMode:SF,codemirrorMimeType:AF,languageId:FF,default:TF}),NF="JSON",LF="data",BF="source.json",PF="json",MF="javascript",jF="application/json",IF=!1,$F=[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],RF=[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],qF=174,zF={name:NF,type:LF,tmScope:BF,aceMode:PF,codemirrorMode:MF,codemirrorMimeType:jF,searchable:IF,extensions:$F,filenames:RF,languageId:qF},VF=Object.freeze({__proto__:null,name:NF,type:LF,tmScope:BF,aceMode:PF,codemirrorMode:MF,codemirrorMimeType:jF,searchable:IF,extensions:$F,filenames:RF,languageId:qF,default:zF}),HF="JSON with Comments",WF="data",UF="JSON",GF="source.js",YF="javascript",KF="javascript",XF="text/javascript",JF=["jsonc"],ZF=[".jsonc",".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"],QF=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","jsconfig.json","language-configuration.json","tsconfig.json"],eT=423,tT={name:HF,type:WF,group:UF,tmScope:GF,aceMode:YF,codemirrorMode:KF,codemirrorMimeType:XF,aliases:JF,extensions:ZF,filenames:QF,languageId:eT},nT=Object.freeze({__proto__:null,name:HF,type:WF,group:UF,tmScope:GF,aceMode:YF,codemirrorMode:KF,codemirrorMimeType:XF,aliases:JF,extensions:ZF,filenames:QF,languageId:eT,default:tT}),rT="JSON5",iT="data",oT=[".json5"],aT="source.js",sT="javascript",lT="javascript",uT="application/json",cT=175,hT={name:rT,type:iT,extensions:oT,tmScope:aT,aceMode:sT,codemirrorMode:lT,codemirrorMimeType:uT,languageId:cT},pT=Object.freeze({__proto__:null,name:rT,type:iT,extensions:oT,tmScope:aT,aceMode:sT,codemirrorMode:lT,codemirrorMimeType:uT,languageId:cT,default:hT}),dT=Wt(XA),fT=Wt(sF),mT=Wt(DF),gT=Wt(OF),vT=Wt(VF),yT=Wt(nT),bT=Wt(pT);const DT=[Nf(dT,e=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript","mongo"],interpreters:e.interpreters.concat(["nodejs"])})),Nf(dT,()=>({name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),Nf(fT,()=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]})),Nf(mT,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),Nf(gT,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),Nf(vT,()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]})),Nf(vT,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:e.filenames.concat([".prettierrc"])})),Nf(yT,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:e.filenames.concat([".eslintrc"])})),Nf(bT,()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],xT={estree:SA,"estree-json":BA};var wT={languages:DT,options:MA,printers:xT},CT={cjkPattern:"[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\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\\udd50-\\udd52\\udd64-\\udd67]|\\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]",kPattern:"[\\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]",punctuationPattern:"[\\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\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\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-\\u2e4f\\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]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"};const{cjkPattern:_T,kPattern:kT,punctuationPattern:ET}=CT,{getLast:ST}=mu,AT=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],FT=AT.concat(["tableCell","paragraph","heading"]),TT=new RegExp(kT),OT=new RegExp(ET);function NT(e,t){const n="non-cjk",r="cj-letter",i="k-letter",o="cjk-punctuation",a=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(_T,")\n(").concat(_T,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach((e,t,l)=>{t%2!==1?(0!==t&&t!==l.length-1||""!==e)&&e.split(new RegExp("(".concat(_T,")"))).forEach((e,t,a)=>{(0!==t&&t!==a.length-1||""!==e)&&(t%2!==0?s(OT.test(e)?{type:"word",value:e,kind:o,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:TT.test(e)?i:r,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&s({type:"word",value:e,kind:n,hasLeadingPunctuation:OT.test(e[0]),hasTrailingPunctuation:OT.test(ST(e))}))}):a.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})}),a;function s(e){const t=ST(a);function i(n,r){return t.kind===n&&e.kind===r||t.kind===r&&e.kind===n}t&&"word"===t.type&&(t.kind===n&&e.kind===r&&!t.hasTrailingPunctuation||t.kind===r&&e.kind===n&&!e.hasLeadingPunctuation?a.push({type:"whitespace",value:" "}):i(n,o)||[t.value,e.value].some(e=>/\u3000/.test(e))||a.push({type:"whitespace",value:""})),a.push(e)}}function LT(e,t){const[,n,r,i]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:r,leadingSpaces:i}}function BT(e,t){if(!e.ordered)return!1;if(e.children.length<2)return!1;const n=Number(LT(e.children[0],t.originalText).numberText),r=Number(LT(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){const n=Number(LT(e.children[2],t.originalText).numberText);return 1===r&&1===n}return 1===r}function PT(e,t){const n=t.slice(e.position.start.offset,e.position.end.offset),r=n.match(/^\s*/)[0].length,i=new RegExp("^\\s{0,".concat(r,"}")),o=n.split("\n"),a=n[r],s=n.slice(r).match(new RegExp("^[".concat(a,"]+")))[0],l=new RegExp("^\\s{0,3}".concat(s)).test(o[o.length-1].slice(u(o.length-1)));return o.slice(1,l?-1:void 0).map((e,t)=>e.slice(u(t+1)).replace(i,"")).join("\n");function u(t){return e.position.indent[t-1]-1}}function MT(e,t){return function e(n,r,i){i=i||[];const o=Object.assign({},t(n,r,i));return o.children&&(o.children=o.children.map((t,n)=>e(t,n,[o].concat(i)))),o}(e,null,null)}var jT={mapAst:MT,splitText:NT,punctuationPattern:ET,getFencedCodeBlockValue:PT,getOrderedListItemInfo:LT,hasGitDiffFriendlyOrderedList:BT,INLINE_NODE_TYPES:AT,INLINE_NODE_WRAPPER_TYPES:FT};const{builders:{hardline:IT,literalline:$T,concat:RT,markAsRoot:qT},utils:{mapDoc:zT}}=Qu,{getFencedCodeBlockValue:VT}=jT;function HT(e,t,n,r){const i=e.getValue();if("code"===i.type&&null!==i.lang){const e=i.lang.match(/^[A-Za-z0-9_-]+/),t=e?e[0]:"",s=o(t);if(s){const e=r.__inJsTemplate?"~":"`",t=e.repeat(Math.max(3,mu.getMaxContinuousCount(i.value,e)+1)),o=n(VT(i,r.originalText),{parser:s});return qT(RT([t,i.lang,IT,a(o),t]))}}if("yaml"===i.type)return qT(RT(["---",IT,i.value&&i.value.trim()?a(n(i.value,{parser:"yaml"})):"","---"]));switch(i.type){case"importExport":return n(i.value,{parser:"babel"});case"jsx":return n("<$>".concat(i.value,""),{parser:"__js_expression",rootMarker:"mdx"})}return null;function o(e){const t=Ir.getSupportInfo({plugins:r.plugins}),n=t.languages.find(t=>t.name.toLowerCase()===e||t.aliases&&t.aliases.includes(e)||t.extensions&&t.extensions.find(t=>t===".".concat(e)));return n?n.parsers[0]:null}function a(e){return zT(e,e=>"string"===typeof e&&e.includes("\n")?RT(e.split(/(\n)/g).map((e,t)=>t%2===0?e:$T)):e)}}var WT=HT;const UT=["format","prettier"];function GT(e){const t="@(".concat(UT.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),r=e.match(n);return r&&0===r.index}var YT={startWithPragma:GT,hasPragma:e=>GT(ep(e).content.trimStart()),insertPragma:e=>{const t=ep(e),n="\x3c!-- @".concat(UT[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(n,"\n\n").concat(t.content):"".concat(n,"\n\n").concat(t.content)}};const{getOrderedListItemInfo:KT,mapAst:XT,splitText:JT}=jT,ZT=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function QT(e,t){return e=nO(e,t),e=oO(e),e=tO(e),e=sO(e,t),e=lO(e,t),e=aO(e,t),e=eO(e),e=rO(e),e}function eO(e){return XT(e,e=>"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"}))}function tO(e){return XT(e,e=>"inlineCode"!==e.type?e:Object.assign({},e,{value:e.value.replace(/\s+/g," ")}))}function nO(e,t){return XT(e,e=>"text"!==e.type?e:Object.assign({},e,{value:"*"!==e.value&&"_"!==e.value&&"$"!==e.value&&ZT.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?t.originalText.slice(e.position.start.offset,e.position.end.offset):e.value}))}function rO(e){return iO(e,(e,t)=>"importExport"===e.type&&"importExport"===t.type,(e,t)=>({type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}))}function iO(e,t,n){return XT(e,e=>{if(!e.children)return e;const r=e.children.reduce((e,r)=>{const i=e[e.length-1];return i&&t(i,r)?e.splice(-1,1,n(i,r)):e.push(r),e},[]);return Object.assign({},e,{children:r})})}function oO(e){return iO(e,(e,t)=>"text"===e.type&&"text"===t.type,(e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}}))}function aO(e,t){return XT(e,(e,n,[r])=>{if("text"!==e.type)return e;let{value:i}=e;return"paragraph"===r.type&&(0===n&&(i=i.trimStart()),n===r.children.length-1&&(i=i.trimEnd())),{type:"sentence",position:e.position,children:JT(i,t)}})}function sO(e,t){return XT(e,(e,n,r)=>{if("code"===e.type){const n=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=n,n)for(let e=0;e{if("list"===e.type&&0!==e.children.length){for(let t=0;t1)return!0;const a=n(r);if(-1===a)return!1;if(1===e.children.length)return a%t.tabWidth===0;const s=n(i);if(a!==s)return!1;if(a%t.tabWidth===0)return!0;const l=KT(i,t.originalText);return l.leadingSpaces.length>1}}var uO=QT;const{builders:{breakParent:cO,concat:hO,join:pO,line:dO,literalline:fO,markAsRoot:mO,hardline:gO,softline:vO,ifBreak:yO,fill:bO,align:DO,indent:xO,group:wO},utils:{mapDoc:CO},printer:{printDocToString:_O}}=Qu,{getFencedCodeBlockValue:kO,hasGitDiffFriendlyOrderedList:EO,splitText:SO,punctuationPattern:AO,INLINE_NODE_TYPES:FO,INLINE_NODE_WRAPPER_TYPES:TO}=jT,{replaceEndOfLineWith:OO}=mu,NO=["importExport"],LO=["heading","tableCell","link"],BO=["listItem","definition","footnoteDefinition"];function PO(e,t,n){const r=e.getValue();if(JO(e))return hO(SO(t.originalText.slice(r.position.start.offset,r.position.end.offset),t).map(n=>"word"===n.type?n.value:""===n.value?"":zO(e,n.value,t)));switch(r.type){case"root":return 0===r.children.length?"":hO([ZO(HO(e,t,n)),NO.includes(UO(r).type)?"":gO]);case"paragraph":return WO(e,t,n,{postprocessor:bO});case"sentence":return WO(e,t,n);case"word":return r.value.replace(/[*$]/g,"\\$&").replace(new RegExp(["(^|".concat(AO,")(_+)"),"(_+)(".concat(AO,"|$)")].join("|"),"g"),(e,t,n,r,i)=>(n?"".concat(t).concat(n):"".concat(r).concat(i)).replace(/_/g,"\\_"));case"whitespace":{const n=e.getParentNode(),i=n.children.indexOf(r),o=n.children[i+1],a=o&&/^>|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(o.value)?"never":t.proseWrap;return zO(e,r.value,{proseWrap:a})}case"emphasis":{const i=e.getParentNode(),o=i.children.indexOf(r),a=i.children[o-1],s=i.children[o+1],l=a&&"sentence"===a.type&&a.children.length>0&&"word"===mu.getLast(a.children).type&&!mu.getLast(a.children).hasTrailingPunctuation||s&&"sentence"===s.type&&s.children.length>0&&"word"===s.children[0].type&&!s.children[0].hasLeadingPunctuation,u=l||qO(e,"emphasis")?"*":"_";return hO([u,WO(e,t,n),u])}case"strong":return hO(["**",WO(e,t,n),"**"]);case"delete":return hO(["~~",WO(e,t,n),"~~"]);case"inlineCode":{const e=mu.getMinNotPresentContinuousCount(r.value,"`"),t="`".repeat(e||1),n=e?" ":"";return hO([t,n,r.value,n,t])}case"link":switch(t.originalText[r.position.start.offset]){case"<":{const e="mailto:",n=r.url.startsWith(e)&&t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+e.length)!==e?r.url.slice(e.length):r.url;return hO(["<",n,">"])}case"[":return hO(["[",WO(e,t,n),"](",QO(r.url,")"),eN(r.title,t),")"]);default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return hO(["![",r.alt||"","](",QO(r.url,")"),eN(r.title,t),")"]);case"blockquote":return hO(["> ",DO("> ",WO(e,t,n))]);case"heading":return hO(["#".repeat(r.depth)+" ",WO(e,t,n)]);case"code":{if(r.isIndented){const e=" ".repeat(4);return DO(e,hO([e,hO(OO(r.value,gO))]))}const e=t.__inJsTemplate?"~":"`",n=e.repeat(Math.max(3,mu.getMaxContinuousCount(r.value,e)+1));return hO([n,r.lang||"",gO,hO(OO(kO(r,t.originalText),gO)),gO,n])}case"yaml":case"toml":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"html":{const t=e.getParentNode(),n="root"===t.type&&mu.getLast(t.children)===r?r.value.trimEnd():r.value,i=/^$/.test(n);return hO(OO(n,i?gO:mO(fO)))}case"list":{const i=IO(r,e.getParentNode()),o=EO(r,t);return WO(e,t,n,{processor:(e,a)=>{const s=u(),l=e.getValue();return 2===l.children.length&&"html"===l.children[1].type&&l.children[0].position.start.column!==l.children[1].position.start.column?hO([s,MO(e,t,n,s)]):hO([s,DO(" ".repeat(s.length),MO(e,t,n,s))]);function u(){const e=r.ordered?(0===a?r.start:o?1:r.start+a)+(i%2===0?". ":") "):i%2===0?"- ":"* ";return r.isAligned||r.hasIndentedCodeblock?jO(e,t):e}}})}case"thematicBreak":{const t=RO(e,"list");if(-1===t)return"---";const n=IO(e.getParentNode(t),e.getParentNode(t+1));return n%2===0?"***":"---"}case"linkReference":return hO(["[",WO(e,t,n),"]","full"===r.referenceType?hO(["[",r.identifier,"]"]):"collapsed"===r.referenceType?"[]":""]);case"imageReference":switch(r.referenceType){case"full":return hO(["![",r.alt||"","][",r.identifier,"]"]);default:return hO(["![",r.alt,"]","collapsed"===r.referenceType?"[]":""])}case"definition":{const e="always"===t.proseWrap?dO:" ";return wO(hO([hO(["[",r.identifier,"]:"]),xO(hO([e,QO(r.url),null===r.title?"":hO([e,eN(r.title,t,!1)])]))]))}case"footnote":return hO(["[^",WO(e,t,n),"]"]);case"footnoteReference":return hO(["[^",r.identifier,"]"]);case"footnoteDefinition":{const i=e.getParentNode().children[e.getName()+1],o=1===r.children.length&&"paragraph"===r.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&r.children[0].position.start.line===r.children[0].position.end.line);return hO(["[^",r.identifier,"]: ",o?WO(e,t,n):wO(hO([DO(" ".repeat(t.tabWidth),WO(e,t,n,{processor:(e,t)=>0===t?wO(hO([vO,e.call(n)])):e.call(n)})),i&&"footnoteDefinition"===i.type?vO:""]))])}case"table":return VO(e,t,n);case"tableCell":return WO(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?hO([" ",mO(fO)]):hO(["\\",gO]);case"liquidNode":return hO(OO(r.value,gO));case"importExport":case"jsx":return r.value;case"math":return hO(["$$",gO,r.value?hO([hO(OO(r.value,gO)),gO]):"","$$"]);case"inlineMath":return t.originalText.slice(t.locStart(r),t.locEnd(r));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(r.type)))}}function MO(e,t,n,r){const i=e.getValue(),o=null===i.checked?"":i.checked?"[x] ":"[ ] ";return hO([o,WO(e,t,n,{processor:(e,i)=>{if(0===i&&"list"!==e.getValue().type)return DO(" ".repeat(o.length),e.call(n));const a=" ".repeat(nN(t.tabWidth-r.length,0,3));return hO([a,DO(a,e.call(n))])}})])}function jO(e,t){const n=r();return e+" ".repeat(n>=4?0:n);function r(){const n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}}function IO(e,t){return $O(e,t,t=>t.ordered===e.ordered)}function $O(e,t,n){n=n||(()=>!0);let r=-1;for(const i of t.children)if(i.type===e.type&&n(i)?r++:r=-1,i===e)return r}function RO(e,t){const n=[].concat(t);let r,i=-1;while(r=e.getParentNode(++i))if(n.includes(r.type))return i;return-1}function qO(e,t){const n=RO(e,t);return-1===n?null:e.getParentNode(n)}function zO(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return gO;const r="always"===n.proseWrap&&!qO(e,LO);return""!==t?r?dO:" ":r?vO:""}function VO(e,t,n){const r=gO.parts[0],i=e.getValue(),o=[];e.map(e=>{const r=[];e.map(e=>{r.push(_O(e.call(n),t).formatted)},"children"),o.push(r)},"children");const a=o.reduce((e,t)=>e.map((e,n)=>Math.max(e,mu.getStringWidth(t[n]))),o[0].map(()=>3)),s=pO(r,[c(o[0]),u(),pO(r,o.slice(1).map(e=>c(e)))]);if("never"!==t.proseWrap)return hO([cO,s]);const l=pO(r,[c(o[0],!0),u(!0),pO(r,o.slice(1).map(e=>c(e,!0)))]);return hO([cO,wO(yO(l,s))]);function u(e){return hO(["| ",pO(" | ",a.map((t,n)=>{const r=e?3:t;switch(i.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 c(e,t){return hO(["| ",pO(" | ",t?e:e.map((e,t)=>{switch(i.align[t]){case"right":return p(e,a[t]);case"center":return d(e,a[t]);default:return h(e,a[t])}}))," |"])}function h(e,t){const n=t-mu.getStringWidth(e);return hO([e," ".repeat(n)])}function p(e,t){const n=t-mu.getStringWidth(e);return hO([" ".repeat(n),e])}function d(e,t){const n=t-mu.getStringWidth(e),r=Math.floor(n/2),i=n-r;return hO([" ".repeat(r),e," ".repeat(i)])}}function HO(e,t,n){const r=[];let i=null;const{children:o}=e.getValue();return o.forEach((e,t)=>{switch(GO(e)){case"start":null===i&&(i={index:t,offset:e.position.end.offset});break;case"end":null!==i&&(r.push({start:i,end:{index:t,offset:e.position.start.offset}}),i=null);break}}),WO(e,t,n,{processor:(e,i)=>{if(0!==r.length){const e=r[0];if(i===e.start.index)return hO([o[e.start.index].value,t.originalText.slice(e.start.offset,e.end.offset),o[e.end.index].value]);if(e.start.indexe.call(n)),a=e.getValue(),s=[];let l;return e.map((e,n)=>{const r=e.getValue(),i=o(e,n);if(!1!==i){const e={parts:s,prevNode:l,parentNode:a,options:t};YO(r,e)||(s.push(gO),l&&NO.includes(l.type)||(KO(r,e)||XO(r,e))&&s.push(gO),XO(r,e)&&s.push(gO)),s.push(i),l=r}},"children"),i(s)}function UO(e){let t=e;while(t.children&&0!==t.children.length)t=t.children[t.children.length-1];return t}function GO(e){if("html"!==e.type)return!1;const t=e.value.match(/^$/);return null!==t&&(t[1]?t[1]:"next")}function YO(e,t){const n=0===t.parts.length,r=FO.includes(e.type),i="html"===e.type&&TO.includes(t.parentNode.type);return n||r||i}function KO(e,t){const n=(t.prevNode&&t.prevNode.type)===e.type,r=n&&BO.includes(e.type),i="listItem"===t.parentNode.type&&!t.parentNode.loose,o=t.prevNode&&"listItem"===t.prevNode.type&&t.prevNode.loose,a="next"===GO(t.prevNode),s="html"===e.type&&t.prevNode&&"html"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line,l="html"===e.type&&"listItem"===t.parentNode.type&&t.prevNode&&"paragraph"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line;return o||!(r||i||a||s||l)}function XO(e,t){const n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function JO(e){const t=qO(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}function ZO(e){return CO(e,e=>{if(!e.parts)return e;if("concat"===e.type&&1===e.parts.length)return e.parts[0];const t=e.parts.reduce((e,t)=>("concat"===t.type?e.push(...t.parts):""!==t&&e.push(t),e),[]);return Object.assign({},e,{parts:tN(t)})})}function QO(e,t){const n=[" "].concat(t||[]);return new RegExp(n.map(e=>"\\".concat(e)).join("|")).test(e)?"<".concat(e,">"):e}function eN(e,t,n){if(null==n&&(n=!0),!e)return"";if(n)return" "+eN(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");const r=e.split("'").length-1,i=e.split('"').length-1,o=r>i?'"':i>r||t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(o,")"),"g"),"\\$1"),"".concat(o).concat(e).concat(o)}function tN(e){return e.reduce((e,t)=>{const n=mu.getLast(e);return"string"===typeof n&&"string"===typeof t?e.splice(-1,1,n+t):e.push(t),e},[])}function nN(e,t,n){return en?n:e}function rN(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&&YT.startWithPragma(e.value)?null:void 0)}function iN(e){const t=+e.getName();if(0===t)return!1;const n=e.getParentNode().children[t-1];return"next"===GO(n)}var oN={preprocess:uO,print:PO,embed:WT,massageAstNode:rN,hasPrettierIgnore:iN,insertPragma:YT.insertPragma},aN={proseWrap:Tf.proseWrap,singleQuote:Tf.singleQuote},sN="Markdown",lN="prose",uN=["pandoc"],cN="markdown",hN="gfm",pN="text/x-gfm",dN=!0,fN=[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],mN=["contents.lr"],gN="source.gfm",vN=222,yN={name:sN,type:lN,aliases:uN,aceMode:cN,codemirrorMode:hN,codemirrorMimeType:pN,wrap:dN,extensions:fN,filenames:mN,tmScope:gN,languageId:vN},bN=Object.freeze({__proto__:null,name:sN,type:lN,aliases:uN,aceMode:cN,codemirrorMode:hN,codemirrorMimeType:pN,wrap:dN,extensions:fN,filenames:mN,tmScope:gN,languageId:vN,default:yN}),DN=Wt(bN);const xN=[Nf(DN,e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:e.filenames.concat(["README"]),extensions:e.extensions.filter(e=>".mdx"!==e)})),Nf(DN,()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}))],wN={mdast:oN};var CN={languages:xN,options:aN,printers:wN};function _N(e){return/^\s*@(prettier|format)\s*$/.test(e)}function kN(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)}function EN(e){return"# @format\n\n".concat(e)}var SN={isPragma:_N,hasPragma:kN,insertPragma:EN};const{getLast:AN}=mu;function FN(e,t){let n=0;const r=e.stack.length-1;for(let i=0;iON(n,t,e))}):e,n)}function NN(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})}function LN(e,t){let n=0;const r=t.length;for(let i=e.position.end.offset-1;i0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart());return"preserve"===n.proseWrap?r.map(e=>0===e.length?[]:[e]):r.map(e=>0===e.length?[]:WN(e)).reduce((t,n,i)=>0===i||0===r[i-1].length||0===n.length||"quoteDouble"===e&&AN(AN(t)).endsWith("\\")?t.concat([n]):t.concat([t.pop().concat(n)]),[]).map(e=>"never"===n.proseWrap?[e.join(" ")]:e)}function GN(e,{parentIndent:t,isLastDescendant:n,options:r}){const i=e.position.start.line===e.position.end.line?"":r.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*?\n([\s\S]*)$/)[1],o=null===e.indent?(e=>e?e[1].length:1/0)(i.match(/^( *)\S/m)):e.indent-1+t,a=i.split("\n").map(e=>e.slice(o));return"preserve"===r.proseWrap||"blockLiteral"===e.type?s(a.map(e=>0===e.length?[]:[e])):s(a.map(e=>0===e.length?[]:WN(e)).reduce((e,t,n)=>0===n||0===a[n-1].length||0===t.length||/^\s/.test(t[0])||/^\s|\s$/.test(AN(e))?e.concat([t]):e.concat([e.pop().concat(t)]),[]).map(e=>e.reduce((e,t)=>0!==e.length&&/\s$/.test(AN(e))?e.concat(e.pop()+" "+t):e.concat(t),[])).map(e=>"never"===r.proseWrap?[e.join(" ")]:e));function s(t){if("keep"===e.chomping)return 0===AN(t).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0;e--){if(0!==t[e].length)break;r++}return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}}var YN={getLast:AN,getAncestorCount:FN,isNode:TN,isEmptyNode:IN,mapNode:ON,defineShortcut:NN,isNextLineEmpty:LN,isLastDescendantNode:BN,getBlockValueLineContents:GN,getFlowScalarLineContents:UN,getLastDescendantNode:PN,hasPrettierIgnore:jN,hasLeadingComments:RN,hasMiddleComments:qN,hasIndicatorComment:zN,hasTrailingComment:VN,hasEndComments:HN};const{insertPragma:KN,isPragma:XN}=SN,{getAncestorCount:JN,getBlockValueLineContents:ZN,getFlowScalarLineContents:QN,getLast:eL,getLastDescendantNode:tL,hasLeadingComments:nL,hasMiddleComments:rL,hasIndicatorComment:iL,hasTrailingComment:oL,hasEndComments:aL,hasPrettierIgnore:sL,isLastDescendantNode:lL,isNextLineEmpty:uL,isNode:cL,isEmptyNode:hL,defineShortcut:pL,mapNode:dL}=YN,fL=Qu.builders,{conditionalGroup:mL,breakParent:gL,concat:vL,dedent:yL,dedentToRoot:bL,fill:DL,group:xL,hardline:wL,ifBreak:CL,join:_L,line:kL,lineSuffix:EL,literalline:SL,markAsRoot:AL,softline:FL}=fL,{replaceEndOfLineWith:TL}=mu;function OL(e){return dL(e,NL)}function NL(e){switch(e.type){case"document":pL(e,"head",()=>e.children[0]),pL(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":pL(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":pL(e,"key",()=>e.children[0]),pL(e,"value",()=>e.children[1]);break}return e}function LL(e,t,n){const r=e.getValue(),i=e.getParentNode(),o=r.tag?e.call(n,"tag"):"",a=r.anchor?e.call(n,"anchor"):"",s=cL(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!lL(e)?VL(e,t.originalText):"";return vL(["mappingValue"!==r.type&&nL(r)?vL([_L(wL,e.map(n,"leadingComments")),wL]):"",o,o&&a?" ":"",a,o||a?cL(r,["sequence","mapping"])&&!rL(r)?wL:" ":"",rL(r)?vL([1===r.middleComments.length?"":wL,_L(wL,e.map(n,"middleComments")),wL]):"",sL(e)?vL(TL(t.originalText.slice(r.position.start.offset,r.position.end.offset),SL)):xL(BL(r,i,e,t,n)),oL(r)&&!cL(r,["document","documentHead"])?EL(vL(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===i.type&&"mapping"===e.getParentNode(2).type&&ML(r)?"":gL,e.call(n,"trailingComment")])):"",s,aL(r)&&!cL(r,["documentHead","documentBody"])?PL("sequenceItem"===r.type?2:0,vL([wL,_L(wL,e.map(n,"endComments"))])):""])}function BL(e,t,n,r,i){switch(e.type){case"root":return vL([_L(wL,n.map((t,r)=>{const o=e.children[r],a=e.children[r+1];return vL([i(t),$L(o,a)?vL([wL,"...",oL(o)?vL([" ",n.call(i,"trailingComment")]):""]):!a||oL(a.head)?"":vL([wL,"---"])])},"children")),0===e.children.length||(e=>cL(e,["blockLiteral","blockFolded"])&&"keep"===e.chomping)(tL(e))?"":wL]);case"document":{const o=t.children[n.getName()+1];return _L(wL,["head"===RL(e,o,t,r)?_L(wL,[0===e.head.children.length&&0===e.head.endComments.length?"":n.call(i,"head"),vL(["---",oL(e.head)?vL([" ",n.call(i,"head","trailingComment")]):""])].filter(Boolean)):"",IL(e)?n.call(i,"body"):""].filter(Boolean))}case"documentHead":return _L(wL,[].concat(n.map(i,"children"),n.map(i,"endComments")));case"documentBody":{const t=_L(wL,n.map(i,"children")).parts,r=_L(wL,n.map(i,"endComments")).parts,o=0===t.length||0===r.length?"":(e=>cL(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":vL([wL,wL]):wL)(tL(e));return vL([].concat(t,o,r))}case"directive":return vL(["%",_L(" ",[e.name].concat(e.parameters))]);case"comment":return vL(["#",e.value]);case"alias":return vL(["*",e.value]);case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return vL(["&",e.value]);case"plain":return HL(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{const t="'",n='"',i=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&i.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(i)){const o="quoteDouble"===e.type?n:t;return vL([o,HL(e.type,i,r),o])}if(i.includes(n))return vL([t,HL(e.type,"quoteDouble"===e.type?i.replace(/\\"/g,n).replace(/'/g,t.repeat(2)):i,r),t]);if(i.includes(t))return vL([n,HL(e.type,"quoteSingle"===e.type?i.replace(/''/g,t):i,r),n]);const o=r.singleQuote?t:n;return vL([o,HL(e.type,i,r),o])}case"blockFolded":case"blockLiteral":{const t=JN(n,e=>cL(e,["sequence","mapping"])),o=lL(n);return vL(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",iL(e)?vL([" ",n.call(i,"indicatorComment")]):"",(null===e.indent?yL:bL)(PL(null===e.indent?r.tabWidth:e.indent-1+t,vL(ZN(e,{parentIndent:t,isLastDescendant:o,options:r}).reduce((t,n,r,i)=>t.concat(0===r?wL:"",DL(_L(kL,n).parts),r!==i.length-1?0===n.length?wL:AL(SL):"keep"===e.chomping&&o?0===n.length?bL(wL):bL(SL):""),[]))))])}case"sequence":return _L(wL,n.map(i,"children"));case"sequenceItem":return vL(["- ",PL(2,e.content?n.call(i,"content"):"")]);case"mappingKey":return e.content?n.call(i,"content"):"";case"mappingValue":return e.content?n.call(i,"content"):"";case"mapping":return _L(wL,n.map(i,"children"));case"mappingItem":case"flowMappingItem":{const a=hL(e.key),s=hL(e.value);if(a&&s)return vL([": "]);const l=n.call(i,"key"),u=n.call(i,"value");if(s)return"flowMappingItem"===e.type&&"flowMapping"===t.type?l:"mappingItem"!==e.type||!qL(e.key.content,r)||oL(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?vL(["? ",PL(2,l)]):vL([l,zL(e)?" ":"",":"]);if(a)return vL([": ",PL(2,u)]);const c=Symbol("mappingKey"),h=nL(e.value)||!ML(e.key.content);return h?vL(["? ",PL(2,l),wL,_L("",n.map(i,"value","leadingComments").map(e=>vL([e,wL]))),": ",PL(2,u)]):!jL(e.key.content)||nL(e.key.content)||rL(e.key.content)||oL(e.key.content)||aL(e.key)||nL(e.value.content)||rL(e.value.content)||aL(e.value)||!qL(e.value.content,r)?mL([vL([xL(vL([CL("? "),xL(PL(2,l),{id:c})])),CL(vL([wL,": ",PL(2,u)]),o(vL([zL(e)?" ":"",":",nL(e.value.content)||aL(e.value)&&e.value.content&&!cL(e.value.content,["mapping","sequence"])||"mapping"===t.type&&oL(e.key.content)&&ML(e.value.content)||cL(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?wL:e.value.content?kL:"",u])),{groupId:c})])]):vL([l,zL(e)?" ":"",": ",u])}case"flowMapping":case"flowSequence":{const t="flowMapping"===e.type?"{":"[",a="flowMapping"===e.type?"}":"]",s="flowMapping"===e.type&&0!==e.children.length&&r.bracketSpacing?kL:FL,l=0!==e.children.length&&(e=>"flowMappingItem"===e.type&&hL(e.key)&&hL(e.value))(eL(e.children));return vL([t,o(vL([s,vL(n.map((t,n)=>vL([i(t),n===e.children.length-1?"":vL([",",kL,e.children[n].position.start.line!==e.children[n+1].position.start.line?VL(t,r.originalText):""])]),"children")),CL(",","")])),l?"":s,a])}case"flowSequenceItem":return n.call(i,"content");default:throw new Error("Unexpected node type ".concat(e.type))}function o(e){return fL.align(" ".repeat(r.tabWidth),e)}}function PL(e,t){return"number"===typeof e&&e>0?fL.align(" ".repeat(e),t):fL.align(e,t)}function ML(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 jL(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}}function IL(e){return 0!==e.body.children.length||aL(e.body)}function $L(e,t){return oL(e)||t&&(0!==t.head.children.length||aL(t.head))}function RL(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||aL(e.head)||oL(e.head)?"head":!$L(e,t)&&(!!t&&"root")}function qL(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!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function zL(e){return e.key.content&&"alias"===e.key.content.type}function VL(e,t){const n=e.getValue(),r=e.stack[0];return r.isNextEmptyLinePrintedChecklist=r.isNextEmptyLinePrintedChecklist||[],!r.isNextEmptyLinePrintedChecklist[n.position.end.line]&&uL(n,t)?(r.isNextEmptyLinePrintedChecklist[n.position.end.line]=!0,FL):""}function HL(e,t,n){const r=QN(e,t,n);return _L(wL,r.map(e=>DL(_L(kL,e).parts)))}function WL(e,t){if(cL(t))switch(delete t.position,t.type){case"comment":if(XN(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote";break}}var UL={preprocess:OL,print:LL,massageAstNode:WL,insertPragma:KN},GL={bracketSpacing:Tf.bracketSpacing,singleQuote:Tf.singleQuote,proseWrap:Tf.proseWrap},YL="YAML",KL="data",XL="source.yaml",JL=["yml"],ZL=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],QL=[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],eB="yaml",tB="yaml",nB="text/x-yaml",rB=407,iB={name:YL,type:KL,tmScope:XL,aliases:JL,extensions:ZL,filenames:QL,aceMode:eB,codemirrorMode:tB,codemirrorMimeType:nB,languageId:rB},oB=Object.freeze({__proto__:null,name:YL,type:KL,tmScope:XL,aliases:JL,extensions:ZL,filenames:QL,aceMode:eB,codemirrorMode:tB,codemirrorMimeType:nB,languageId:rB,default:iB}),aB=Wt(oB);const sB=[Nf(aB,e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"],filenames:e.filenames.filter(e=>"yarn.lock"!==e)}))];var lB={languages:sB,printers:{yaml:UL},options:GL};const{version:uB}=Lr,{getSupportInfo:cB}=Ir,hB=[Sm,ug,mv,xw,wT,CN,lB];function pB(e,t=1){return(...n)=>{const r=n[t]||{},i=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[...hB,...Array.isArray(i)?i:Object.values(i)]}),e(...n)}}const dB=pB(Bh.formatWithCursor);var fB={formatWithCursor:dB,format(e,t){return dB(e,t).formatted},check(e,t){const{formatted:n}=dB(e,t);return n===e},doc:Qu,getSupportInfo:pB(cB,0),version:uB,util:Cc,__debug:{parse:pB(Bh.parse),formatAST:pB(Bh.formatAST),formatDoc:pB(Bh.formatDoc),printToDoc:pB(Bh.printToDoc),printDocToString:pB(Bh.printDocToString)}},mB=fB;return mB}))}).call(this,n("c8ba"))},3397:function(e,t,n){var r=n("7a41");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"33b7":function(e,t,n){"use strict";var r=n("02cc"),i=n("44d1"),o=function(e,t,n){return t=i.extend({decodeEntities:!1},t||{}),e=n(e),r.load(e,t)},a=function(){var t=[],n=function(n){var r=e.exports.codeBlocks;return Object.keys(r).forEach((function(e){var i=new RegExp(r[e].start+"([\\S\\s]*?)"+r[e].end,"g");n=n.replace(i,(function(e,n){return t.push(e),"JUICE_CODE_BLOCK_"+(t.length-1)+"_"}))})),n},r=function(e){for(var n=0;n"},HBS:{start:"{{",end:"}}"}}},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"35a1":function(e,t,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[r(e)]}},"35ae":function(e,t,n){(function(e,n){var r=200,i="Expected a function",o="__lodash_hash_undefined__",a=1,s=2,l=1/0,u=9007199254740991,c="[object Arguments]",h="[object Array]",p="[object Boolean]",d="[object Date]",f="[object Error]",m="[object Function]",g="[object GeneratorFunction]",v="[object Map]",y="[object Number]",b="[object Object]",D="[object Promise]",x="[object RegExp]",w="[object Set]",C="[object String]",_="[object Symbol]",k="[object WeakMap]",E="[object ArrayBuffer]",S="[object DataView]",A="[object Float32Array]",F="[object Float64Array]",T="[object Int8Array]",O="[object Int16Array]",N="[object Int32Array]",L="[object Uint8Array]",B="[object Uint8ClampedArray]",P="[object Uint16Array]",M="[object Uint32Array]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,I=/^\w*$/,$=/^\./,R=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,z=/\\(\\)?/g,V=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,W={};W[A]=W[F]=W[T]=W[O]=W[N]=W[L]=W[B]=W[P]=W[M]=!0,W[c]=W[h]=W[E]=W[p]=W[S]=W[d]=W[f]=W[m]=W[v]=W[y]=W[b]=W[x]=W[w]=W[C]=W[k]=!1;var U="object"==typeof e&&e&&e.Object===Object&&e,G="object"==typeof self&&self&&self.Object===Object&&self,Y=U||G||Function("return this")(),K=t&&!t.nodeType&&t,X=K&&"object"==typeof n&&n&&!n.nodeType&&n,J=X&&X.exports===K,Z=J&&U.process,Q=function(){try{return Z&&Z.binding("util")}catch(e){}}(),ee=Q&&Q.isTypedArray;function te(e,t){var n=-1,r=e?e.length:0,i=Array(r);while(++n-1}function Xe(e,t){var n=this.__data__,r=dt(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function Je(e){var t=-1,n=e?e.length:0;this.clear();while(++tu))return!1;var h=o.get(e);if(h&&o.get(t))return h==t;var p=-1,d=!0,f=i&a?new rt:void 0;o.set(e,t),o.set(t,e);while(++p-1&&e%1==0&&e-1&&e%1==0&&e<=u}function un(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function cn(e){return!!e&&"object"==typeof e}function hn(e){return"symbol"==typeof e||cn(e)&&ye.call(e)==_}var pn=ee?oe(ee):_t;function dn(e){return null==e?"":Ot(e)}function fn(e,t,n){var r=null==e?void 0:vt(e,t);return void 0===r?n:r}function mn(e,t){return null!=e&&zt(e,t,bt)}function gn(e){return on(e)?pt(e):Et(e)}function vn(e){return e}function yn(e){return Ht(e)?re(Jt(e)):Tt(e)}n.exports=Qt}).call(this,n("c8ba"),n("62e4")(e))},"36cc":function(e,t,n){var r=n("4d1e"),i=/\s+/g,o=n("01d0"),a=n("66ec");function s(e,t,n){"object"===typeof e?(n=t,t=e,e=null):"function"===typeof t&&(n=t,t=l),this._callback=e,this._options=t||l,this._elementCB=n,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};s.prototype.onparserinit=function(e){this._parser=e},s.prototype.onreset=function(){s.call(this,this._callback,this._options,this._elementCB)},s.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},s.prototype._handleCallback=s.prototype.onerror=function(e){if("function"===typeof this._callback)this._callback(e,this.dom);else if(e)throw e},s.prototype.onclosetag=function(){var e=this._tagStack.pop();this._options.withEndIndices&&e&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e)},s.prototype._createDomElement=function(e){if(!this._options.withDomLvl1)return e;var t;for(var n in t="tag"===e.type?Object.create(a):Object.create(o),e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},s.prototype._addDomElement=function(e){var t=this._tagStack[this._tagStack.length-1],n=t?t.children:this.dom,r=n[n.length-1];e.next=null,this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),r?(e.prev=r,r.next=e):e.prev=null,n.push(e),e.parent=t||null},s.prototype.onopentag=function(e,t){var n={type:"script"===e?r.Script:"style"===e?r.Style:r.Tag,name:e,attribs:t,children:[]},i=this._createDomElement(n);this._addDomElement(i),this._tagStack.push(i)},s.prototype.ontext=function(e){var t,n=this._options.normalizeWhitespace||this._options.ignoreWhitespace;if(!this._tagStack.length&&this.dom.length&&(t=this.dom[this.dom.length-1]).type===r.Text)n?t.data=(t.data+e).replace(i," "):t.data+=e;else if(this._tagStack.length&&(t=this._tagStack[this._tagStack.length-1])&&(t=t.children[t.children.length-1])&&t.type===r.Text)n?t.data=(t.data+e).replace(i," "):t.data+=e;else{n&&(e=e.replace(i," "));var o=this._createDomElement({data:e,type:r.Text});this._addDomElement(o)}},s.prototype.oncomment=function(e){var t=this._tagStack[this._tagStack.length-1];if(t&&t.type===r.Comment)t.data+=e;else{var n={data:e,type:r.Comment},i=this._createDomElement(n);this._addDomElement(i),this._tagStack.push(i)}},s.prototype.oncdatastart=function(){var e={children:[{data:"",type:r.Text}],type:r.CDATA},t=this._createDomElement(e);this._addDomElement(t),this._tagStack.push(t)},s.prototype.oncommentend=s.prototype.oncdataend=function(){this._tagStack.pop()},s.prototype.onprocessinginstruction=function(e,t){var n=this._createDomElement({name:e,data:t,type:r.Directive});this._addDomElement(n)},e.exports=s},"37e8":function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=a(t),s=r.length,l=0;while(s>l)i.f(e,n=r[l++],t[n]);return e}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"393a":function(e,t,n){"use strict";var r=n("e444"),i=n("512c"),o=n("ba01"),a=n("051b"),s=n("8a0d"),l=n("26dd"),u=n("92f0"),c=n("ce7a"),h=n("cc15")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",f="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,b,D){l(n,t,v);var x,w,C,_=function(e){if(!p&&e in A)return A[e];switch(e){case f:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",E=y==m,S=!1,A=e.prototype,F=A[h]||A[d]||y&&A[y],T=F||_(y),O=y?E?_("entries"):T:void 0,N="Array"==t&&A.entries||F;if(N&&(C=c(N.call(new e)),C!==Object.prototype&&C.next&&(u(C,k,!0),r||"function"==typeof C[h]||a(C,h,g))),E&&F&&F.name!==m&&(S=!0,T=function(){return F.call(this)}),r&&!D||!p&&!S&&A[h]||a(A,h,T),s[t]=T,s[k]=g,y)if(x={values:E?T:_(m),keys:b?T:_(f),entries:O},D)for(w in x)w in A||o(A,w,x[w]);else i(i.P+i.F*(p||S),t,x);return x}},"39ad":function(e,t,n){var r=n("6ca1"),i=n("d16a"),o=n("9d11");e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c4e":function(e,t,n){"use strict";var r=function(e){return i(e)&&!o(e)};function i(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===s}function u(e){return Array.isArray(e)?[]:{}}function c(e,t){var n=t&&!0===t.clone;return n&&r(e)?d(u(e),e,t):e}function h(e,t,n){var i=e.slice();return t.forEach((function(t,o){"undefined"===typeof i[o]?i[o]=c(t,n):r(t)?i[o]=d(e[o],t,n):-1===e.indexOf(t)&&i.push(c(t,n))})),i}function p(e,t,n){var i={};return r(e)&&Object.keys(e).forEach((function(t){i[t]=c(e[t],n)})),Object.keys(t).forEach((function(o){r(t[o])&&e[o]?i[o]=d(e[o],t[o],n):i[o]=c(t[o],n)})),i}function d(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),o=n||{arrayMerge:h},a=r===i;if(a){if(r){var s=o.arrayMerge||h;return s(e,t,n)}return p(e,t,n)}return c(t,n)}d.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return d(e,n,t)}))};var f=d;e.exports=f},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,i=n("69f3"),o=n("7dd0"),a="String Iterator",s=i.set,l=i.getterFor(a);o(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},"3f6b":function(e,t,n){e.exports={default:n("b9c7"),__esModule:!0}},"3f8c":function(e,t){e.exports={}},"3fb5":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},4010:function(e,t,n){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var r=n("6dd8"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a="undefined"===typeof window,s=function(e){var t=e,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i,a=o.target.__resizeListeners__||[];a.length&&a.forEach((function(e){e()}))}};t.addResizeListener=function(e,t){a||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new i.default(s),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},4160:function(e,t,n){"use strict";var r=n("23e7"),i=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},"417f":function(e,t,n){"use strict";t.__esModule=!0;var r=n("2b0e"),i=a(r),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=[],l="@@clickoutsideContext",u=void 0,c=0;function h(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||e.contains(r.target)||e.contains(i.target)||e===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!i.default.prototype.$isServer&&(0,o.on)(document,"mousedown",(function(e){return u=e})),!i.default.prototype.$isServer&&(0,o.on)(document,"mouseup",(function(e){s.forEach((function(t){return t[l].documentHandler(e,u)}))})),t.default={bind:function(e,t,n){s.push(e);var r=c++;e[l]={id:r,documentHandler:h(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=h(e,t,n),e[l].methodName=t.expression,e[l].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n=0;s--)(t.fontFaces&&"font-face"===o[s].type||t.mediaQueries&&"media"===o[s].type||t.keyFrames&&"keyframes"===o[s].type||t.pseudos&&o[s].selectors&&this.matchesPseudo(o[s].selectors[0],n))&&a.unshift(r.stringify({stylesheet:{rules:[o[s]]}},{comments:!1,indentation:" "})),o[s].position.start;return 0!==a.length&&"\n"+a.join("\n")+"\n"},t.normalizeLineEndings=function(e){return e.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n")},t.matchesPseudo=function(e,t){return t.find((function(t){return e.indexOf(t)>-1}))},t.compareFunc=function(e,t){for(var n=Math.min(e.length,t.length),r=0;rt[r]?1:-1;return e.length-t.length},t.compare=function(e,n){return 1==t.compareFunc(e,n)?e:n},t.extend=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);return e},t.getDefaultOptions=function(e){var n=t.extend({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,url:""},e);return n.webResources=n.webResources||{},n}},"44d2":function(e,t,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},"44de":function(e,t,n){var r=n("da84");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},"466b":function(e,t,n){"use strict";var r=n("33b7"),i=n("492c"),o=i((function(e,t){return r(e,{xmlMode:t&&t.xmlMode},a,[t])})),a=function(e,t){return o.juiceDocument(e,t)};o.inlineContent=function(e,t,n){return r(e,{xmlMode:n&&n.xmlMode},o.inlineDocument,[t,n])},e.exports=o},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},4726:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=59)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},14:function(e,t){e.exports=n("14e9")},18:function(e,t){e.exports=n("dcdc")},21:function(e,t){e.exports=n("d397")},26:function(e,t){e.exports=n("92fa")},3:function(e,t){e.exports=n("8122")},31:function(e,t){e.exports=n("2a5e")},32:function(e,t){e.exports=n("e452")},51:function(e,t){e.exports=n("f494")},59:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})})),1)},i=[];r._withStripped=!0;var o,a,s=n(26),l=n.n(s),u=n(14),c=n.n(u),h=n(18),p=n.n(h),d=n(51),f=n.n(d),m=n(3),g=function(e){return e.stopPropagation()},v={inject:["panel"],components:{ElCheckbox:p.a,ElRadio:f.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple,a=i.checkStrictly;!a&&r||n.loading||(i.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var r=!!t&&n.checked;e.handleMultiCheckChange(r)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node,n=e[t.level-1]||{};return n.uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly,o=r.multiple;return o?this.renderCheckbox(e):i?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=g),e("el-checkbox",l()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:r}},i]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,r=this.isDisabled;return Object(m["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:g}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,r=t.renderLabelFn,i=r?r({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[i||n.label])}},render:function(e){var t=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,u=this.nodeId,c=s.expandTrigger,h=s.checkStrictly,p=s.multiple,d=!h&&a,f={on:{}};return"click"===c?f.on.click=this.handleExpand:(f.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},f.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||a||h||p||(f.on.click=this.handleCheckChange),e("li",l()([{attrs:{role:"menuitem",id:u,"aria-expanded":n,tabindex:d?null:-1},class:{"el-cascader-node":!0,"is-selectable":h,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":d}},f]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},y=v,b=n(0),D=Object(b["a"])(y,o,a,!1,null,null,null);D.options.__file="packages/cascader-panel/src/cascader-node.vue";var x,w,C=D.exports,_=n(6),k=n.n(_),E={name:"ElCascaderMenu",mixins:[k.a],inject:["panel"],components:{ElScrollbar:c.a,CascaderNode:C},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(m["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(t&&r)if(t.contains(e.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect(),o=i.left,a=e.clientX-o,s=this.$el,l=s.offsetWidth,u=s.offsetHeight,c=t.offsetTop,h=c+t.offsetHeight;r.innerHTML='\n \n \n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map((function(n,i){var o=n.hasChildren;return e("cascader-node",l()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+i,"aria-haspopup":o,"aria-owns":o?t:null}},r]))}));return[].concat(i,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",l()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},r]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},S=E,A=Object(b["a"])(S,x,w,!1,null,null,null);A.options.__file="packages/cascader-panel/src/cascader-menu.vue";var F=A.exports,T=n(21),O=function(){function e(e,t){for(var n=0;n1?t-1:0),r=1;r1?r-1:0),o=1;o0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},O(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return e[r]||!i&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(T["isDef"])(e[a])?e[a]:!!t&&!r.length;return this.hasChildren=!s,s}return!n}}]),e}(),P=B;function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var j=function e(t,n){return t.reduce((function(t,r){return r.isLeaf?t.push(r):(!n&&t.push(r),t=t.concat(e(r.children,n))),t}),[])},I=function(){function e(t,n){M(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(m["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new P(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new P(e,this.config,t),r=t?t.children:this.nodes;r.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(m["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:j(this.nodes,e)},e.prototype.getNodeByValue=function(e){if(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(m["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null}return null},e}(),$=I,R=n(9),q=n.n(R),z=n(32),V=n.n(z),H=n(31),W=n.n(H),U=Object.assign||function(e){for(var t=1;t0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(r)};r.lazyLoad(e,i)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),r=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");W()(n,r)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var r=this.getFlattedNodes(e);return r.filter((function(e){return e.checked}))}return Object(m["isEmpty"])(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,r=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},te=ee,ne=Object(b["a"])(te,r,i,!1,null,null,null);ne.options.__file="packages/cascader-panel/src/cascader-panel.vue";var re=ne.exports;re.install=function(e){e.component(re.name,re)};t["default"]=re},6:function(e,t){e.exports=n("6b7c")},9:function(e,t){e.exports=n("7f4d")}})},4840:function(e,t,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[a])?t:i(n)}},"4840e":function(e,t,n){(function(e,n){var r=200,i="Expected a function",o="__lodash_hash_undefined__",a=1,s=2,l=1/0,u=9007199254740991,c="[object Arguments]",h="[object Array]",p="[object Boolean]",d="[object Date]",f="[object Error]",m="[object Function]",g="[object GeneratorFunction]",v="[object Map]",y="[object Number]",b="[object Object]",D="[object Promise]",x="[object RegExp]",w="[object Set]",C="[object String]",_="[object Symbol]",k="[object WeakMap]",E="[object ArrayBuffer]",S="[object DataView]",A="[object Float32Array]",F="[object Float64Array]",T="[object Int8Array]",O="[object Int16Array]",N="[object Int32Array]",L="[object Uint8Array]",B="[object Uint8ClampedArray]",P="[object Uint16Array]",M="[object Uint32Array]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,I=/^\w*$/,$=/^\./,R=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,z=/\\(\\)?/g,V=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,W={};W[A]=W[F]=W[T]=W[O]=W[N]=W[L]=W[B]=W[P]=W[M]=!0,W[c]=W[h]=W[E]=W[p]=W[S]=W[d]=W[f]=W[m]=W[v]=W[y]=W[b]=W[x]=W[w]=W[C]=W[k]=!1;var U="object"==typeof e&&e&&e.Object===Object&&e,G="object"==typeof self&&self&&self.Object===Object&&self,Y=U||G||Function("return this")(),K=t&&!t.nodeType&&t,X=K&&"object"==typeof n&&n&&!n.nodeType&&n,J=X&&X.exports===K,Z=J&&U.process,Q=function(){try{return Z&&Z.binding("util")}catch(e){}}(),ee=Q&&Q.isTypedArray;function te(e,t,n,r){var i=-1,o=e?e.length:0;r&&o&&(n=e[++i]);while(++i-1}function Je(e,t){var n=this.__data__,r=ft(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function Ze(e){var t=-1,n=e?e.length:0;this.clear();while(++tu))return!1;var h=o.get(e);if(h&&o.get(t))return h==t;var p=-1,d=!0,f=i&a?new it:void 0;o.set(e,t),o.set(t,e);while(++p-1&&e%1==0&&e-1&&e%1==0&&e<=u}function un(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function cn(e){return!!e&&"object"==typeof e}function hn(e){return"symbol"==typeof e||cn(e)&&be.call(e)==_}var pn=ee?ae(ee):kt;function dn(e){return null==e?"":Ot(e)}function fn(e,t,n){var r=null==e?void 0:yt(e,t);return void 0===r?n:r}function mn(e,t){return null!=e&&zt(e,t,Dt)}function gn(e){return on(e)?dt(e):St(e)}function vn(e){return e}function yn(e){return Ht(e)?re(Jt(e)):Tt(e)}n.exports=Qt}).call(this,n("c8ba"),n("62e4")(e))},4897:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var r=n("f0d9"),i=h(r),o=n("2b0e"),a=h(o),s=n("3c4e"),l=h(s),u=n("9d7e"),c=h(u);function h(e){return e&&e.__esModule?e:{default:e}}var p=(0,c.default)(a.default),d=i.default,f=!1,m=function(){var e=Object.getPrototypeOf(this||a.default).$t;if("function"===typeof e&&a.default.locale)return f||(f=!0,a.default.locale(a.default.config.lang,(0,l.default)(d,a.default.locale(a.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},g=t.t=function(e,t){var n=m.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var r=e.split("."),i=d,o=0,a=r.length;o"+h+"")}}function d(n){for(var o,l=n[0],h=n[1],p=new r.Selector(l),d=p.parsed(),f=i(d),m=0;m=0)return}}if(f){var b=d[d.length-1],D=b.pseudos;b.pseudos=a(b.pseudos),l=d.toString(),b.pseudos=D}try{o=t(l)}catch(x){return}o.each((function(){var n=this;if(!(n.name&&e.nonVisualElements.indexOf(n.name.toUpperCase())>=0)){if(f){var i="pseudo"+f,o=n[i];o||(o=n[i]=t("").get(0),o.pseudoElementType=f,o.pseudoElementParent=n,n[i]=o),n=o}if(!n.styleProps){if(n.styleProps={},t(n).attr(c)){var a="* { "+t(n).attr(c)+" } ";l(r.parseCSS(a)[0][1],new r.Selector("