UNPKG

prettier

Version:

Prettier is an opinionated code formatter

1 lines 186 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.glimmer=t())}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={};!function(e){var t="\n",r=function(){function e(e){this.string=e;for(var r=[0],n=0;n<e.length;)switch(e[n]){case t:n+=t.length,r.push(n);break;case"\r":e[n+="\r".length]===t&&(n+=t.length),r.push(n);break;default:n++}this.offsets=r}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,r=this.offsets;r[t+1]<=e;)t++;return{line:t,column:e-r[t]}},e.prototype.indexForLocation=function(e){var t=e.line,r=e.column;return t<0||t>=this.offsets.length||r<0||r>this.lengthOfLine(t)?null:this.offsets[t]+r},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();e.__esModule=!0,e.default=r}(t);var r=function(e,t){const r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r};var n={locStart:function(e){return e.loc.start.offset},locEnd:function(e){return e.loc.end.offset}},o={},a={};var i=Object.freeze({__proto__:null,DEBUG:!1,CI:!1});const s=Object.freeze([]);function l(){return s}const c=l(),u=l();const h="%+b:0%";var p;const{keys:d}=Object;let f=null!==(p=Object.assign)&&void 0!==p?p:function(e){for(let t=1;t<arguments.length;t++){let r=arguments[t];if(null===r||"object"!=typeof r)continue;let n=d(r);for(let t=0;t<n.length;t++){let o=n[t];e[o]=r[o]}}return e};function m(e){let t={};t[e]=1;for(let r in t)if(r===e)return r;return e}const g="function"==typeof Proxy,b="function"==typeof Symbol&&"symbol"==typeof Symbol();function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unreachable";return new Error(e)}function v(e){return m("__".concat(e).concat(Math.floor(Math.random()*Date.now()),"__"))}const S=b?Symbol:v;function k(e){return-536870913&e}function w(e){return 536870912|e}function E(e){return~e}function P(e){return~e}function T(e){return(e|=0)<0?k(e):E(e)}function x(e){return(e|=0)>-536870913?P(e):w(e)}[1,-1].forEach((e=>x(T(e))));var N="function"==typeof WeakSet?WeakSet:class{constructor(){this._map=new WeakMap}add(e){return this._map.set(e,!0),this}delete(e){return this._map.delete(e)}has(e){return this._map.has(e)}};function O(e){return 9===e.nodeType}function A(e,t){let r=!1;if(null!==e)if("string"==typeof t)r=_(e,t);else{if(!Array.isArray(t))throw y();r=t.some((t=>_(e,t)))}if(r)return e;throw function(e,t){return new Error("cannot cast a ".concat(e," into ").concat(t))}("SimpleElement(".concat(e,")"),t)}function _(e,t){switch(t){case"NODE":return!0;case"HTML":return e instanceof HTMLElement;case"SVG":return e instanceof SVGElement;case"ELEMENT":return e instanceof Element;default:if(t.toUpperCase()===t)throw new Error("BUG: this code is missing handling for a generic node type");return e instanceof Element&&e.tagName.toLowerCase()===t}}function C(e){return e.length>0}const L=console,B=console;var D=Object.freeze({__proto__:null,LOCAL_LOGGER:L,LOGGER:B,assertNever:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unexpected unreachable branch";throw B.log("unreachable",e),B.log("".concat(t," :: ").concat(JSON.stringify(e)," (").concat(e,")")),new Error("code reached unreachable")},assert:function(e,t){if(!e)throw new Error(t||"assertion failure")},deprecate:function(e){L.warn("DEPRECATION: ".concat(e))},dict:function(){return Object.create(null)},isDict:function(e){return null!=e},isObject:function(e){return"function"==typeof e||"object"==typeof e&&null!==e},Stack:class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.current=null,this.stack=e}get size(){return this.stack.length}push(e){this.current=e,this.stack.push(e)}pop(){let e=this.stack.pop(),t=this.stack.length;return this.current=0===t?null:this.stack[t-1],void 0===e?null:e}nth(e){let t=this.stack.length;return t<e?null:this.stack[t-e]}isEmpty(){return 0===this.stack.length}toArray(){return this.stack}},isSerializationFirstNode:function(e){return e.nodeValue===h},SERIALIZATION_FIRST_NODE_STRING:h,assign:f,fillNulls:function(e){let t=new Array(e);for(let r=0;r<e;r++)t[r]=null;return t},values:function(e){const t=[];for(const r in e)t.push(e[r]);return t},_WeakSet:N,castToSimple:function(e){return O(e)||function(e){e.nodeType}(e),e},castToBrowser:function(e,t){if(null==e)return null;if(void 0===typeof document)throw new Error("Attempted to cast to a browser node in a non-browser context");if(O(e))return e;if(e.ownerDocument!==document)throw new Error("Attempted to cast to a browser node with a node that was not created from this document");return A(e,t)},checkNode:A,intern:m,buildUntouchableThis:function(e){return null},debugToString:undefined,beginTestSteps:undefined,endTestSteps:undefined,logStep:undefined,verifySteps:undefined,EMPTY_ARRAY:s,emptyArray:l,EMPTY_STRING_ARRAY:c,EMPTY_NUMBER_ARRAY:u,isEmptyArray:function(e){return e===s},clearElement:function(e){let t=e.firstChild;for(;t;){let r=t.nextSibling;e.removeChild(t),t=r}},HAS_NATIVE_PROXY:g,HAS_NATIVE_SYMBOL:b,keys:function(e){return Object.keys(e)},unwrap:function(e){if(null==e)throw new Error("Expected value to be present");return e},expect:function(e,t){if(null==e)throw new Error(t);return e},unreachable:y,exhausted:function(e){throw new Error("Exhausted ".concat(e))},tuple:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t},enumerableSymbol:v,symbol:S,strip:function(e){let t="";for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];for(let r=0;r<e.length;r++){let o=e[r],a=void 0!==n[r]?String(n[r]):"";t+="".concat(o).concat(a)}let a=t.split("\n");for(;a.length&&a[0].match(/^\s*$/);)a.shift();for(;a.length&&a[a.length-1].match(/^\s*$/);)a.pop();let i=1/0;for(let e of a){let t=e.match(/^\s*/)[0].length;i=Math.min(i,t)}let s=[];for(let e of a)s.push(e.slice(i));return s.join("\n")},isHandle:function(e){return e>=0},isNonPrimitiveHandle:function(e){return e>3},constants:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return[!1,!0,null,void 0,...t]},isSmallInt:function(e){return e%1==0&&e<=536870911&&e>=-536870912},encodeNegative:k,decodeNegative:w,encodePositive:E,decodePositive:P,encodeHandle:function(e){return e},decodeHandle:function(e){return e},encodeImmediate:T,decodeImmediate:x,unwrapHandle:function(e){if("number"==typeof e)return e;{let t=e.errors[0];throw new Error("Compile Error: ".concat(t.problem," @ ").concat(t.span.start,"..").concat(t.span.end))}},unwrapTemplate:function(e){if("error"===e.result)throw new Error("Compile Error: ".concat(e.problem," @ ").concat(e.span.start,"..").concat(e.span.end));return e},extractHandle:function(e){return"number"==typeof e?e:e.handle},isOkHandle:function(e){return"number"==typeof e},isErrHandle:function(e){return"number"==typeof e},isPresent:C,ifPresent:function(e,t,r){return C(e)?t(e):r()},toPresentOption:function(e){return C(e)?e:null},assertPresent:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unexpected empty list";if(!C(e))throw new Error(t)},mapPresent:function(e,t){if(null===e)return null;let r=[];for(let n of e)r.push(t(n));return r}}),I={},R={},q={};Object.defineProperty(q,"__esModule",{value:!0}),q.isLocatedWithPositionsArray=function(e){return(0,M.isPresent)(e)&&e.every(G)},q.isLocatedWithPositions=G,q.BROKEN_LOCATION=q.NON_EXISTENT_LOCATION=q.TEMPORARY_LOCATION=q.SYNTHETIC=q.SYNTHETIC_LOCATION=q.UNKNOWN_POSITION=void 0;var M=D;const j=Object.freeze({line:1,column:0});q.UNKNOWN_POSITION=j;const H=Object.freeze({source:"(synthetic)",start:j,end:j});q.SYNTHETIC_LOCATION=H;const V=H;q.SYNTHETIC=V;const U=Object.freeze({source:"(temporary)",start:j,end:j});q.TEMPORARY_LOCATION=U;const z=Object.freeze({source:"(nonexistent)",start:j,end:j});q.NON_EXISTENT_LOCATION=z;const F=Object.freeze({source:"(broken)",start:j,end:j});function G(e){return void 0!==e.loc}q.BROKEN_LOCATION=F;var $={};Object.defineProperty($,"__esModule",{value:!0}),$.SourceSlice=void 0;var K=I;class Y{constructor(e){this.loc=e.loc,this.chars=e.chars}static synthetic(e){let t=K.SourceSpan.synthetic(e);return new Y({loc:t,chars:e})}static load(e,t){return new Y({loc:K.SourceSpan.load(e,t[1]),chars:t[0]})}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}}$.SourceSlice=Y;var W={};Object.defineProperty(W,"__esModule",{value:!0}),W.match=function(e){return e(new te).check()},W.IsInvisible=W.MatchAny=void 0;var Q=D;const J="MATCH_ANY";W.MatchAny=J;const X="IS_INVISIBLE";W.IsInvisible=X;class Z{constructor(e){this._whens=e}first(e){for(let t of this._whens){let r=t.match(e);if((0,Q.isPresent)(r))return r[0]}return null}}class ee{constructor(){this._map=new Map}get(e,t){let r=this._map.get(e);return r||(r=t(),this._map.set(e,r),r)}add(e,t){this._map.set(e,t)}match(e){let t=function(e){switch(e){case"Broken":case"InternalsSynthetic":case"NonExistent":return X;default:return e}}(e),r=[],n=this._map.get(t),o=this._map.get(J);return n&&r.push(n),o&&r.push(o),r}}class te{constructor(){this._whens=new ee}check(){return(e,t)=>this.matchFor(e.kind,t.kind)(e,t)}matchFor(e,t){let r=this._whens.match(e);return new Z(r).first(t)}when(e,t,r){return this._whens.get(e,(()=>new ee)).add(t,r),this}}var re={};Object.defineProperty(re,"__esModule",{value:!0}),re.InvisiblePosition=re.HbsPosition=re.CharPosition=re.SourceOffset=re.BROKEN=void 0;var ne=q,oe=W,ae=R;const ie="BROKEN";re.BROKEN=ie;class se{constructor(e){this.data=e}static forHbsPos(e,t){return new ce(e,t,null).wrap()}static broken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne.UNKNOWN_POSITION;return new ue("Broken",e).wrap()}get offset(){let e=this.data.toCharPos();return null===e?null:e.offset}eql(e){return he(this.data,e.data)}until(e){return(0,ae.span)(this.data,e.data)}move(e){let t=this.data.toCharPos();if(null===t)return se.broken();{let r=t.offset+e;return t.source.check(r)?new le(t.source,r).wrap():se.broken()}}collapsed(){return(0,ae.span)(this.data,this.data)}toJSON(){return this.data.toJSON()}}re.SourceOffset=se;class le{constructor(e,t){this.source=e,this.charPos=t,this.kind="CharPosition",this._locPos=null}toCharPos(){return this}toJSON(){let e=this.toHbsPos();return null===e?ne.UNKNOWN_POSITION:e.toJSON()}wrap(){return new se(this)}get offset(){return this.charPos}toHbsPos(){let e=this._locPos;if(null===e){let t=this.source.hbsPosFor(this.charPos);this._locPos=e=null===t?ie:new ce(this.source,t,this.charPos)}return e===ie?null:e}}re.CharPosition=le;class ce{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.source=e,this.hbsPos=t,this.kind="HbsPosition",this._charPos=null===r?null:new le(e,r)}toCharPos(){let e=this._charPos;if(null===e){let t=this.source.charPosFor(this.hbsPos);this._charPos=e=null===t?ie:new le(this.source,t)}return e===ie?null:e}toJSON(){return this.hbsPos}wrap(){return new se(this)}toHbsPos(){return this}}re.HbsPosition=ce;class ue{constructor(e,t){this.kind=e,this.pos=t}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new se(this)}get offset(){return null}}re.InvisiblePosition=ue;const he=(0,oe.match)((e=>e.when("HbsPosition","HbsPosition",((e,t)=>{let{hbsPos:r}=e,{hbsPos:n}=t;return r.column===n.column&&r.line===n.line})).when("CharPosition","CharPosition",((e,t)=>{let{charPos:r}=e,{charPos:n}=t;return r===n})).when("CharPosition","HbsPosition",((e,t)=>{let{offset:r}=e;var n;return r===(null===(n=t.toCharPos())||void 0===n?void 0:n.offset)})).when("HbsPosition","CharPosition",((e,t)=>{let{offset:r}=t;var n;return(null===(n=e.toCharPos())||void 0===n?void 0:n.offset)===r})).when(oe.MatchAny,oe.MatchAny,(()=>!1))));Object.defineProperty(R,"__esModule",{value:!0}),R.span=R.HbsSpan=R.SourceSpan=void 0;var pe=i,de=D,fe=q,me=$,ge=W,be=re;class ye{constructor(e){this.data=e,this.isInvisible="CharPosition"!==e.kind&&"HbsPosition"!==e.kind}static get NON_EXISTENT(){return new ke("NonExistent",fe.NON_EXISTENT_LOCATION).wrap()}static load(e,t){return"number"==typeof t?ye.forCharPositions(e,t,t):"string"==typeof t?ye.synthetic(t):Array.isArray(t)?ye.forCharPositions(e,t[0],t[1]):"NonExistent"===t?ye.NON_EXISTENT:"Broken"===t?ye.broken(fe.BROKEN_LOCATION):void(0,de.assertNever)(t)}static forHbsLoc(e,t){let r=new be.HbsPosition(e,t.start),n=new be.HbsPosition(e,t.end);return new Se(e,{start:r,end:n},t).wrap()}static forCharPositions(e,t,r){let n=new be.CharPosition(e,t),o=new be.CharPosition(e,r);return new ve(e,{start:n,end:o}).wrap()}static synthetic(e){return new ke("InternalsSynthetic",fe.NON_EXISTENT_LOCATION,e).wrap()}static broken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fe.BROKEN_LOCATION;return new ke("Broken",e).wrap()}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let e=this.data.toHbsSpan();return null===e?fe.BROKEN_LOCATION:e.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(e){return we(e.data,this.data.getEnd())}withEnd(e){return we(this.data.getStart(),e.data)}asString(){return this.data.asString()}toSlice(e){let t=this.data.asString();return pe.DEBUG&&void 0!==e&&t!==e&&console.warn("unexpectedly found ".concat(JSON.stringify(t)," when slicing source, but expected ").concat(JSON.stringify(e))),new me.SourceSlice({loc:this,chars:e||t})}get start(){return this.loc.start}set start(e){this.data.locDidUpdate({start:e})}get end(){return this.loc.end}set end(e){this.data.locDidUpdate({end:e})}get source(){return this.module}collapse(e){switch(e){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(e){return we(this.data.getStart(),e.data.getEnd())}serialize(){return this.data.serialize()}slice(e){let{skipStart:t=0,skipEnd:r=0}=e;return we(this.getStart().move(t).data,this.getEnd().move(-r).data)}sliceStartChars(e){let{skipStart:t=0,chars:r}=e;return we(this.getStart().move(t).data,this.getStart().move(t+r).data)}sliceEndChars(e){let{skipEnd:t=0,chars:r}=e;return we(this.getEnd().move(t-r).data,this.getStart().move(-t).data)}}R.SourceSpan=ye;class ve{constructor(e,t){this.source=e,this.charPositions=t,this.kind="CharPosition",this._locPosSpan=null}wrap(){return new ye(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let e=this._locPosSpan;if(null===e){let t=this.charPositions.start.toHbsPos(),r=this.charPositions.end.toHbsPos();e=this._locPosSpan=null===t||null===r?be.BROKEN:new Se(this.source,{start:t,end:r})}return e===be.BROKEN?null:e}serialize(){let{start:{charPos:e},end:{charPos:t}}=this.charPositions;return e===t?e:[e,t]}toCharPosSpan(){return this}}class Se{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.source=e,this.hbsPositions=t,this.kind="HbsPosition",this._charPosSpan=null,this._providedHbsLoc=r}serialize(){let e=this.toCharPosSpan();return null===e?"Broken":e.wrap().serialize()}wrap(){return new ye(this)}updateProvided(e,t){this._providedHbsLoc&&(this._providedHbsLoc[t]=e),this._charPosSpan=null,this._providedHbsLoc={start:e,end:e}}locDidUpdate(e){let{start:t,end:r}=e;void 0!==t&&(this.updateProvided(t,"start"),this.hbsPositions.start=new be.HbsPosition(this.source,t,null)),void 0!==r&&(this.updateProvided(r,"end"),this.hbsPositions.end=new be.HbsPosition(this.source,r,null))}asString(){let e=this.toCharPosSpan();return null===e?"":e.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let e=this._charPosSpan;if(null===e){let t=this.hbsPositions.start.toCharPos(),r=this.hbsPositions.end.toCharPos();if(!t||!r)return e=this._charPosSpan=be.BROKEN,null;e=this._charPosSpan=new ve(this.source,{start:t,end:r})}return e===be.BROKEN?null:e}}R.HbsSpan=Se;class ke{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.kind=e,this.loc=t,this.string=r}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new ye(this)}asString(){return this.string||""}locDidUpdate(e){let{start:t,end:r}=e;void 0!==t&&(this.loc.start=t),void 0!==r&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new be.InvisiblePosition(this.kind,this.loc.start)}getEnd(){return new be.InvisiblePosition(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return fe.BROKEN_LOCATION}}const we=(0,ge.match)((e=>e.when("HbsPosition","HbsPosition",((e,t)=>new Se(e.source,{start:e,end:t}).wrap())).when("CharPosition","CharPosition",((e,t)=>new ve(e.source,{start:e,end:t}).wrap())).when("CharPosition","HbsPosition",((e,t)=>{let r=t.toCharPos();return null===r?new ke("Broken",fe.BROKEN_LOCATION).wrap():we(e,r)})).when("HbsPosition","CharPosition",((e,t)=>{let r=e.toCharPos();return null===r?new ke("Broken",fe.BROKEN_LOCATION).wrap():we(r,t)})).when(ge.IsInvisible,ge.MatchAny,(e=>new ke(e.kind,fe.BROKEN_LOCATION).wrap())).when(ge.MatchAny,ge.IsInvisible,((e,t)=>new ke(t.kind,fe.BROKEN_LOCATION).wrap()))));R.span=we,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"SourceSpan",{enumerable:!0,get:function(){return t.SourceSpan}}),Object.defineProperty(e,"SourceOffset",{enumerable:!0,get:function(){return r.SourceOffset}});var t=R,r=re}(I),Object.defineProperty(a,"__esModule",{value:!0}),a.Source=void 0;var Ee=i,Pe=I;a.Source=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"an unknown module";this.source=e,this.module=t}check(e){return e>=0&&e<=this.source.length}slice(e,t){return this.source.slice(e,t)}offsetFor(e,t){return Pe.SourceOffset.forHbsPos(this,{line:e,column:t})}spanFor(e){let{start:t,end:r}=e;return Pe.SourceSpan.forHbsLoc(this,{start:{line:t.line,column:t.column},end:{line:r.line,column:r.column}})}hbsPosFor(e){let t=0,r=0;if(e>this.source.length)return null;for(;;){let n=this.source.indexOf("\n",r);if(e<=n||-1===n)return{line:t+1,column:e-r};t+=1,r=n+1}}charPosFor(e){let{line:t,column:r}=e,n=this.source.length,o=0,a=0;for(;;){if(a>=n)return n;let e=this.source.indexOf("\n",a);if(-1===e&&(e=this.source.length),o===t-1)return a+r>e?e:(Ee.DEBUG&&this.hbsPosFor(a+r),a+r);if(-1===e)return 0;o+=1,a=e+1}}};var Te={},xe={};Object.defineProperty(xe,"__esModule",{value:!0}),xe.PathExpressionImplV1=void 0;var Ne,Oe=(Ne=Te)&&Ne.__esModule?Ne:{default:Ne};xe.PathExpressionImplV1=class{constructor(e,t,r,n){this.original=e,this.loc=n,this.type="PathExpression",this.this=!1,this.data=!1,this._head=void 0;let o=r.slice();"ThisHead"===t.type?this.this=!0:"AtHead"===t.type?(this.data=!0,o.unshift(t.name.slice(1))):o.unshift(t.name),this.parts=o}get head(){if(this._head)return this._head;let e;e=this.this?"this":this.data?"@".concat(this.parts[0]):this.parts[0];let t=this.loc.collapse("start").sliceStartChars({chars:e.length}).loc;return this._head=Oe.default.head(e,t)}get tail(){return this.this?this.parts:this.parts.slice(1)}},Object.defineProperty(Te,"__esModule",{value:!0}),Te.default=void 0;var Ae=D,_e=q,Ce=a,Le=I,Be=xe;let De;function Ie(){return De||(De=new Ce.Source("","(synthetic)")),De}function Re(e){switch(e.type){case"AtHead":case"VarHead":return{original:e.name,parts:[e.name]};case"ThisHead":return{original:"this",parts:[]}}}function qe(e,t){let r,[n,...o]=e.split(".");return r="this"===n?{type:"ThisHead",loc:Fe(t||null)}:"@"===n[0]?{type:"AtHead",name:n,loc:Fe(t||null)}:{type:"VarHead",name:n,loc:Fe(t||null)},{head:r,tail:o}}function Me(e){return{type:"ThisHead",loc:Fe(e||null)}}function je(e,t){return{type:"AtHead",name:e,loc:Fe(t||null)}}function He(e,t){return{type:"VarHead",name:e,loc:Fe(t||null)}}function Ve(e,t){if("string"!=typeof e){if("type"in e)return e;{let{head:r,tail:n}=qe(e.head,Le.SourceSpan.broken()),{original:o}=Re(r);return new Be.PathExpressionImplV1([o,...n].join("."),r,n,Fe(t||null))}}let{head:r,tail:n}=qe(e,Le.SourceSpan.broken());return new Be.PathExpressionImplV1(e,r,n,Fe(t||null))}function Ue(e,t,r){return{type:e,value:t,original:t,loc:Fe(r||null)}}function ze(e,t){return{type:"Hash",pairs:e||[],loc:Fe(t||null)}}function Fe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length){let e=t[0];return e&&"object"==typeof e?Le.SourceSpan.forHbsLoc(Ie(),e):Le.SourceSpan.forHbsLoc(Ie(),_e.SYNTHETIC_LOCATION)}{let[e,r,n,o,a]=t,i=a?new Ce.Source("",a):Ie();return Le.SourceSpan.forHbsLoc(i,{start:{line:e,column:r},end:{line:n,column:o}})}}var Ge={mustache:function(e,t,r,n,o,a){return"string"==typeof e&&(e=Ve(e)),{type:"MustacheStatement",path:e,params:t||[],hash:r||ze([]),escaped:!n,trusting:!!n,loc:Fe(o||null),strip:a||{open:!1,close:!1}}},block:function(e,t,r,n,o,a,i,s,l){let c,u;return c="Template"===n.type?(0,Ae.assign)({},n,{type:"Block"}):n,u=null!=o&&"Template"===o.type?(0,Ae.assign)({},o,{type:"Block"}):o,{type:"BlockStatement",path:Ve(e),params:t||[],hash:r||ze([]),program:c||null,inverse:u||null,loc:Fe(a||null),openStrip:i||{open:!1,close:!1},inverseStrip:s||{open:!1,close:!1},closeStrip:l||{open:!1,close:!1}}},partial:function(e,t,r,n,o){return{type:"PartialStatement",name:e,params:t||[],hash:r||ze([]),indent:n||"",strip:{open:!1,close:!1},loc:Fe(o||null)}},comment:function(e,t){return{type:"CommentStatement",value:e,loc:Fe(t||null)}},mustacheComment:function(e,t){return{type:"MustacheCommentStatement",value:e,loc:Fe(t||null)}},element:function(e,t){let r,{attrs:n,blockParams:o,modifiers:a,comments:i,children:s,loc:l}=t,c=!1;return"object"==typeof e?(c=e.selfClosing,r=e.name):"/"===e.slice(-1)?(r=e.slice(0,-1),c=!0):r=e,{type:"ElementNode",tag:r,selfClosing:c,attributes:n||[],blockParams:o||[],modifiers:a||[],comments:i||[],children:s||[],loc:Fe(l||null)}},elementModifier:function(e,t,r,n){return{type:"ElementModifierStatement",path:Ve(e),params:t||[],hash:r||ze([]),loc:Fe(n||null)}},attr:function(e,t,r){return{type:"AttrNode",name:e,value:t,loc:Fe(r||null)}},text:function(e,t){return{type:"TextNode",chars:e||"",loc:Fe(t||null)}},sexpr:function(e,t,r,n){return{type:"SubExpression",path:Ve(e),params:t||[],hash:r||ze([]),loc:Fe(n||null)}},concat:function(e,t){if(!(0,Ae.isPresent)(e))throw new Error("b.concat requires at least one part");return{type:"ConcatStatement",parts:e||[],loc:Fe(t||null)}},hash:ze,pair:function(e,t,r){return{type:"HashPair",key:e,value:t,loc:Fe(r||null)}},literal:Ue,program:function(e,t,r){return{type:"Template",body:e||[],blockParams:t||[],loc:Fe(r||null)}},blockItself:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0;return{type:"Block",body:e||[],blockParams:t||[],chained:r,loc:Fe(n||null)}},template:function(e,t,r){return{type:"Template",body:e||[],blockParams:t||[],loc:Fe(r||null)}},loc:Fe,pos:function(e,t){return{line:e,column:t}},path:Ve,fullPath:function(e,t,r){let{original:n,parts:o}=Re(e),a=[...n,...[...o,...t]].join(".");return new Be.PathExpressionImplV1(a,e,t,Fe(r||null))},head:function(e,t){return"@"===e[0]?je(e,t):"this"===e?Me(t):He(e,t)},at:je,var:He,this:Me,blockName:function(e,t){return{type:"NamedBlockName",name:e,loc:Fe(t||null)}},string:$e("StringLiteral"),boolean:$e("BooleanLiteral"),number:$e("NumberLiteral"),undefined:()=>Ue("UndefinedLiteral",void 0),null:()=>Ue("NullLiteral",null)};function $e(e){return function(t,r){return Ue(e,t,r)}}Te.default=Ge;var Ke={},Ye={};Object.defineProperty(Ye,"__esModule",{value:!0}),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Ye;Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})}))}(Ke);var We={},Qe={};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.loadResolution=function(e){if("string"==typeof e)switch(e){case"Loose":return Ze.fallback();case"Strict":return Xe}switch(e[0]){case"ambiguous":switch(e[1]){case"Append":return Ze.append({invoke:!1});case"Attr":return Ze.attr();case"Invoke":return Ze.append({invoke:!0})}case"ns":return Ze.namespaced(e[1])}},Qe.ARGUMENT_RESOLUTION=Qe.LooseModeResolution=Qe.STRICT_RESOLUTION=Qe.StrictResolution=void 0;class Je{constructor(){this.isAngleBracket=!1}resolution(){return 31}serialize(){return"Strict"}}Qe.StrictResolution=Je;const Xe=new Je;Qe.STRICT_RESOLUTION=Xe;class Ze{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.ambiguity=e,this.isAngleBracket=t}static namespaced(e){return new Ze({namespaces:[e],fallback:!1},arguments.length>1&&void 0!==arguments[1]&&arguments[1])}static fallback(){return new Ze({namespaces:[],fallback:!0})}static append(e){let{invoke:t}=e;return new Ze({namespaces:["Component","Helper"],fallback:!t})}static trustingAppend(e){let{invoke:t}=e;return new Ze({namespaces:["Helper"],fallback:!t})}static attr(){return new Ze({namespaces:["Helper"],fallback:!0})}resolution(){if(0===this.ambiguity.namespaces.length)return 31;if(1!==this.ambiguity.namespaces.length)return this.ambiguity.fallback?34:35;if(this.ambiguity.fallback)return 36;switch(this.ambiguity.namespaces[0]){case"Helper":return 37;case"Modifier":return 38;case"Component":return 39}}serialize(){return 0===this.ambiguity.namespaces.length?"Loose":1===this.ambiguity.namespaces.length?this.ambiguity.fallback?["ambiguous","Attr"]:["ns",this.ambiguity.namespaces[0]]:this.ambiguity.fallback?["ambiguous","Append"]:["ambiguous","Invoke"]}}Qe.LooseModeResolution=Ze;const et=Ze.fallback();Qe.ARGUMENT_RESOLUTION=et;var tt={};Object.defineProperty(tt,"__esModule",{value:!0}),tt.node=function(e){if(void 0!==e){const t=e;return{fields:()=>class{constructor(e){this.type=t,(0,rt.assign)(this,e)}}}}return{fields:()=>class{constructor(e){(0,rt.assign)(this,e)}}}};var rt=D;var nt={};Object.defineProperty(nt,"__esModule",{value:!0}),nt.NamedArgument=nt.NamedArguments=nt.PositionalArguments=nt.Args=void 0;var ot=tt;class at extends((0,ot.node)().fields()){static empty(e){return new at({loc:e,positional:it.empty(e),named:st.empty(e)})}static named(e){return new at({loc:e.loc,positional:it.empty(e.loc.collapse("end")),named:e})}nth(e){return this.positional.nth(e)}get(e){return this.named.get(e)}isEmpty(){return this.positional.isEmpty()&&this.named.isEmpty()}}nt.Args=at;class it extends((0,ot.node)().fields()){static empty(e){return new it({loc:e,exprs:[]})}get size(){return this.exprs.length}nth(e){return this.exprs[e]||null}isEmpty(){return 0===this.exprs.length}}nt.PositionalArguments=it;class st extends((0,ot.node)().fields()){static empty(e){return new st({loc:e,entries:[]})}get size(){return this.entries.length}get(e){let t=this.entries.filter((t=>t.name.chars===e))[0];return t?t.value:null}isEmpty(){return 0===this.entries.length}}nt.NamedArguments=st;nt.NamedArgument=class{constructor(e){this.loc=e.name.loc.extend(e.value.loc),this.name=e.name,this.value=e.value}};var lt={};Object.defineProperty(lt,"__esModule",{value:!0}),lt.ElementModifier=lt.ComponentArg=lt.SplatAttr=lt.HtmlAttr=void 0;var ct=nt,ut=tt;class ht extends((0,ut.node)("HtmlAttr").fields()){}lt.HtmlAttr=ht;class pt extends((0,ut.node)("SplatAttr").fields()){}lt.SplatAttr=pt;class dt extends((0,ut.node)().fields()){toNamedArgument(){return new ct.NamedArgument({name:this.name,value:this.value})}}lt.ComponentArg=dt;class ft extends((0,ut.node)("ElementModifier").fields()){}lt.ElementModifier=ft;var mt={};Object.defineProperty(mt,"__esModule",{value:!0});var gt={},bt={};Object.defineProperty(bt,"__esModule",{value:!0}),bt.loc=St,bt.hasSpan=kt,bt.maybeLoc=function(e,t){return kt(e)?St(e):t},bt.SpanList=void 0;var yt=I;class vt{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._span=e}static range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yt.SourceSpan.NON_EXISTENT;return new vt(e.map(St)).getRangeOffset(t)}add(e){this._span.push(e)}getRangeOffset(e){if(0===this._span.length)return e;{let e=this._span[0],t=this._span[this._span.length-1];return e.extend(t)}}}function St(e){if(Array.isArray(e)){let t=e[0],r=e[e.length-1];return St(t).extend(St(r))}return e instanceof yt.SourceSpan?e:e.loc}function kt(e){return!Array.isArray(e)||0!==e.length}bt.SpanList=vt,Object.defineProperty(gt,"__esModule",{value:!0}),gt.SimpleElement=gt.InvokeComponent=gt.InvokeBlock=gt.AppendContent=gt.HtmlComment=gt.HtmlText=gt.GlimmerComment=void 0;var wt=bt,Et=nt,Pt=tt;class Tt extends((0,Pt.node)("GlimmerComment").fields()){}gt.GlimmerComment=Tt;class xt extends((0,Pt.node)("HtmlText").fields()){}gt.HtmlText=xt;class Nt extends((0,Pt.node)("HtmlComment").fields()){}gt.HtmlComment=Nt;class Ot extends((0,Pt.node)("AppendContent").fields()){get callee(){return"Call"===this.value.type?this.value.callee:this.value}get args(){return"Call"===this.value.type?this.value.args:Et.Args.empty(this.value.loc.collapse("end"))}}gt.AppendContent=Ot;class At extends((0,Pt.node)("InvokeBlock").fields()){}gt.InvokeBlock=At;class _t extends((0,Pt.node)("InvokeComponent").fields()){get args(){let e=this.componentArgs.map((e=>e.toNamedArgument()));return Et.Args.named(new Et.NamedArguments({loc:wt.SpanList.range(e,this.callee.loc.collapse("end")),entries:e}))}}gt.InvokeComponent=_t;class Ct extends((0,Pt.node)("SimpleElement").fields()){get args(){let e=this.componentArgs.map((e=>e.toNamedArgument()));return Et.Args.named(new Et.NamedArguments({loc:wt.SpanList.range(e,this.tag.loc.collapse("end")),entries:e}))}}gt.SimpleElement=Ct;var Lt={};Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.isLiteral=function(e,t){return"Literal"===e.type&&(void 0===t||("null"===t?null===e.value:typeof e.value===t))},Lt.InterpolateExpression=Lt.DeprecatedCallExpression=Lt.CallExpression=Lt.PathExpression=Lt.LiteralExpression=void 0;var Bt=$,Dt=tt;class It extends((0,Dt.node)("Literal").fields()){toSlice(){return new Bt.SourceSlice({loc:this.loc,chars:this.value})}}Lt.LiteralExpression=It;class Rt extends((0,Dt.node)("Path").fields()){}Lt.PathExpression=Rt;class qt extends((0,Dt.node)("Call").fields()){}Lt.CallExpression=qt;class Mt extends((0,Dt.node)("DeprecatedCall").fields()){}Lt.DeprecatedCallExpression=Mt;class jt extends((0,Dt.node)("Interpolate").fields()){}Lt.InterpolateExpression=jt;var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.FreeVarReference=Ht.LocalVarReference=Ht.ArgReference=Ht.ThisReference=void 0;var Vt=tt;class Ut extends((0,Vt.node)("This").fields()){}Ht.ThisReference=Ut;class zt extends((0,Vt.node)("Arg").fields()){}Ht.ArgReference=zt;class Ft extends((0,Vt.node)("Local").fields()){}Ht.LocalVarReference=Ft;class Gt extends((0,Vt.node)("Free").fields()){}Ht.FreeVarReference=Gt;var $t={};Object.defineProperty($t,"__esModule",{value:!0}),$t.NamedBlock=$t.NamedBlocks=$t.Block=$t.Template=void 0;var Kt=bt,Yt=nt,Wt=tt;class Qt extends((0,Wt.node)().fields()){}$t.Template=Qt;class Jt extends((0,Wt.node)().fields()){}$t.Block=Jt;class Xt extends((0,Wt.node)().fields()){get(e){return this.blocks.filter((t=>t.name.chars===e))[0]||null}}$t.NamedBlocks=Xt;class Zt extends((0,Wt.node)().fields()){get args(){let e=this.componentArgs.map((e=>e.toNamedArgument()));return Yt.Args.named(new Yt.NamedArguments({loc:Kt.SpanList.range(e,this.name.loc.collapse("end")),entries:e}))}}$t.NamedBlock=Zt,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Qe;Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})}));var r=tt;Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}));var n=nt;Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}));var o=lt;Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}));var a=mt;Object.keys(a).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})}));var i=gt;Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})}));var s=Lt;Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}));var l=Ht;Object.keys(l).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})}));var c=$t;Object.keys(c).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})}))}(We);var er={},tr=function(e){return e&&e.Math==Math&&e},rr=tr("object"==typeof globalThis&&globalThis)||tr("object"==typeof window&&window)||tr("object"==typeof self&&self)||tr("object"==typeof e&&e)||function(){return this}()||Function("return this")(),nr={},or=function(e){try{return!!e()}catch(e){return!0}},ar=!or((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ir=Function.prototype.call,sr=ir.bind?ir.bind(ir):function(){return ir.apply(ir,arguments)},lr={},cr={}.propertyIsEnumerable,ur=Object.getOwnPropertyDescriptor,hr=ur&&!cr.call({1:2},1);lr.f=hr?function(e){var t=ur(this,e);return!!t&&t.enumerable}:cr;var pr,dr,fr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},mr=Function.prototype,gr=mr.bind,br=mr.call,yr=gr&&gr.bind(br),vr=gr?function(e){return e&&yr(br,e)}:function(e){return e&&function(){return br.apply(e,arguments)}},Sr=vr,kr=Sr({}.toString),wr=Sr("".slice),Er=function(e){return wr(kr(e),8,-1)},Pr=vr,Tr=or,xr=Er,Nr=rr.Object,Or=Pr("".split),Ar=Tr((function(){return!Nr("z").propertyIsEnumerable(0)}))?function(e){return"String"==xr(e)?Or(e,""):Nr(e)}:Nr,_r=rr.TypeError,Cr=function(e){if(null==e)throw _r("Can't call method on "+e);return e},Lr=Ar,Br=Cr,Dr=function(e){return Lr(Br(e))},Ir=function(e){return"function"==typeof e},Rr=Ir,qr=function(e){return"object"==typeof e?null!==e:Rr(e)},Mr=rr,jr=Ir,Hr=function(e){return jr(e)?e:void 0},Vr=function(e,t){return arguments.length<2?Hr(Mr[e]):Mr[e]&&Mr[e][t]},Ur=vr({}.isPrototypeOf),zr=Vr("navigator","userAgent")||"",Fr=rr,Gr=zr,$r=Fr.process,Kr=Fr.Deno,Yr=$r&&$r.versions||Kr&&Kr.version,Wr=Yr&&Yr.v8;Wr&&(dr=(pr=Wr.split("."))[0]>0&&pr[0]<4?1:+(pr[0]+pr[1])),!dr&&Gr&&(!(pr=Gr.match(/Edge\/(\d+)/))||pr[1]>=74)&&(pr=Gr.match(/Chrome\/(\d+)/))&&(dr=+pr[1]);var Qr=dr,Jr=Qr,Xr=or,Zr=!!Object.getOwnPropertySymbols&&!Xr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Jr&&Jr<41})),en=Zr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,tn=Vr,rn=Ir,nn=Ur,on=en,an=rr.Object,sn=on?function(e){return"symbol"==typeof e}:function(e){var t=tn("Symbol");return rn(t)&&nn(t.prototype,an(e))},ln=rr.String,cn=Ir,un=function(e){try{return ln(e)}catch(e){return"Object"}},hn=rr.TypeError,pn=function(e){if(cn(e))return e;throw hn(un(e)+" is not a function")},dn=pn,fn=sr,mn=Ir,gn=qr,bn=rr.TypeError,yn={exports:{}},vn=rr,Sn=Object.defineProperty,kn=function(e,t){try{Sn(vn,e,{value:t,configurable:!0,writable:!0})}catch(r){vn[e]=t}return t},wn=kn,En="__core-js_shared__",Pn=rr[En]||wn(En,{}),Tn=Pn;(yn.exports=function(e,t){return Tn[e]||(Tn[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"});var xn=Cr,Nn=rr.Object,On=function(e){return Nn(xn(e))},An=On,_n=vr({}.hasOwnProperty),Cn=Object.hasOwn||function(e,t){return _n(An(e),t)},Ln=vr,Bn=0,Dn=Math.random(),In=Ln(1..toString),Rn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+In(++Bn+Dn,36)},qn=rr,Mn=yn.exports,jn=Cn,Hn=Rn,Vn=Zr,Un=en,zn=Mn("wks"),Fn=qn.Symbol,Gn=Fn&&Fn.for,$n=Un?Fn:Fn&&Fn.withoutSetter||Hn,Kn=function(e){if(!jn(zn,e)||!Vn&&"string"!=typeof zn[e]){var t="Symbol."+e;Vn&&jn(Fn,e)?zn[e]=Fn[e]:zn[e]=Un&&Gn?Gn(t):$n(t)}return zn[e]},Yn=sr,Wn=qr,Qn=sn,Jn=function(e,t){var r=e[t];return null==r?void 0:dn(r)},Xn=function(e,t){var r,n;if("string"===t&&mn(r=e.toString)&&!gn(n=fn(r,e)))return n;if(mn(r=e.valueOf)&&!gn(n=fn(r,e)))return n;if("string"!==t&&mn(r=e.toString)&&!gn(n=fn(r,e)))return n;throw bn("Can't convert object to primitive value")},Zn=Kn,eo=rr.TypeError,to=Zn("toPrimitive"),ro=function(e,t){if(!Wn(e)||Qn(e))return e;var r,n=Jn(e,to);if(n){if(void 0===t&&(t="default"),r=Yn(n,e,t),!Wn(r)||Qn(r))return r;throw eo("Can't convert object to primitive value")}return void 0===t&&(t="number"),Xn(e,t)},no=sn,oo=function(e){var t=ro(e,"string");return no(t)?t:t+""},ao=qr,io=rr.document,so=ao(io)&&ao(io.createElement),lo=function(e){return so?io.createElement(e):{}},co=!ar&&!or((function(){return 7!=Object.defineProperty(lo("div"),"a",{get:function(){return 7}}).a})),uo=ar,ho=sr,po=lr,fo=fr,mo=Dr,go=oo,bo=Cn,yo=co,vo=Object.getOwnPropertyDescriptor;nr.f=uo?vo:function(e,t){if(e=mo(e),t=go(t),yo)try{return vo(e,t)}catch(e){}if(bo(e,t))return fo(!ho(po.f,e,t),e[t])};var So={},ko=rr,wo=qr,Eo=ko.String,Po=ko.TypeError,To=function(e){if(wo(e))return e;throw Po(Eo(e)+" is not an object")},xo=ar,No=co,Oo=To,Ao=oo,_o=rr.TypeError,Co=Object.defineProperty;So.f=xo?Co:function(e,t,r){if(Oo(e),t=Ao(t),Oo(r),No)try{return Co(e,t,r)}catch(e){}if("get"in r||"set"in r)throw _o("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Lo=So,Bo=fr,Do=ar?function(e,t,r){return Lo.f(e,t,Bo(1,r))}:function(e,t,r){return e[t]=r,e},Io={exports:{}},Ro=Ir,qo=Pn,Mo=vr(Function.toString);Ro(qo.inspectSource)||(qo.inspectSource=function(e){return Mo(e)});var jo,Ho,Vo,Uo=qo.inspectSource,zo=Ir,Fo=Uo,Go=rr.WeakMap,$o=zo(Go)&&/native code/.test(Fo(Go)),Ko=yn.exports,Yo=Rn,Wo=Ko("keys"),Qo={},Jo=$o,Xo=rr,Zo=vr,ea=qr,ta=Do,ra=Cn,na=Pn,oa=function(e){return Wo[e]||(Wo[e]=Yo(e))},aa=Qo,ia="Object already initialized",sa=Xo.TypeError,la=Xo.WeakMap;if(Jo||na.state){var ca=na.state||(na.state=new la),ua=Zo(ca.get),ha=Zo(ca.has),pa=Zo(ca.set);jo=function(e,t){if(ha(ca,e))throw new sa(ia);return t.facade=e,pa(ca,e,t),t},Ho=function(e){return ua(ca,e)||{}},Vo=function(e){return ha(ca,e)}}else{var da=oa("state");aa[da]=!0,jo=function(e,t){if(ra(e,da))throw new sa(ia);return t.facade=e,ta(e,da,t),t},Ho=function(e){return ra(e,da)?e[da]:{}},Vo=function(e){return ra(e,da)}}var fa={set:jo,get:Ho,has:Vo,enforce:function(e){return Vo(e)?Ho(e):jo(e,{})},getterFor:function(e){return function(t){var r;if(!ea(t)||(r=Ho(t)).type!==e)throw sa("Incompatible receiver, "+e+" required");return r}}},ma=ar,ga=Cn,ba=Function.prototype,ya=ma&&Object.getOwnPropertyDescriptor,va=ga(ba,"name"),Sa=va&&"something"===function(){}.name,ka=va&&(!ma||ma&&ya(ba,"name").configurable),wa=rr,Ea=Ir,Pa=Cn,Ta=Do,xa=kn,Na=Uo,Oa={EXISTS:va,PROPER:Sa,CONFIGURABLE:ka}.CONFIGURABLE,Aa=fa.get,_a=fa.enforce,Ca=String(String).split("String");(Io.exports=function(e,t,r,n){var o,a=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,s=!!n&&!!n.noTargetGet,l=n&&void 0!==n.name?n.name:t;Ea(r)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Pa(r,"name")||Oa&&r.name!==l)&&Ta(r,"name",l),(o=_a(r)).source||(o.source=Ca.join("string"==typeof l?l:""))),e!==wa?(a?!s&&e[t]&&(i=!0):delete e[t],i?e[t]=r:Ta(e,t,r)):i?e[t]=r:xa(t,r)})(Function.prototype,"toString",(function(){return Ea(this)&&Aa(this).source||Na(this)}));var La={},Ba=Math.ceil,Da=Math.floor,Ia=function(e){var t=+e;return t!=t||0===t?0:(t>0?Da:Ba)(t)},Ra=Ia,qa=Math.max,Ma=Math.min,ja=Ia,Ha=Math.min,Va=function(e){return e>0?Ha(ja(e),9007199254740991):0},Ua=function(e){return Va(e.length)},za=Dr,Fa=function(e,t){var r=Ra(e);return r<0?qa(r+t,0):Ma(r,t)},Ga=Ua,$a=function(e){return function(t,r,n){var o,a=za(t),i=Ga(a),s=Fa(n,i);if(e&&r!=r){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===r)return e||s||0;return!e&&-1}},Ka={includes:$a(!0),indexOf:$a(!1)},Ya=Cn,Wa=Dr,Qa=Ka.indexOf,Ja=Qo,Xa=vr([].push),Za=function(e,t){var r,n=Wa(e),o=0,a=[];for(r in n)!Ya(Ja,r)&&Ya(n,r)&&Xa(a,r);for(;t.length>o;)Ya(n,r=t[o++])&&(~Qa(a,r)||Xa(a,r));return a},ei=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");La.f=Object.getOwnPropertyNames||function(e){return Za(e,ei)};var ti={};ti.f=Object.getOwnPropertySymbols;var ri=Vr,ni=La,oi=ti,ai=To,ii=vr([].concat),si=ri("Reflect","ownKeys")||function(e){var t=ni.f(ai(e)),r=oi.f;return r?ii(t,r(e)):t},li=Cn,ci=si,ui=nr,hi=So,pi=or,di=Ir,fi=/#|\.prototype\./,mi=function(e,t){var r=bi[gi(e)];return r==vi||r!=yi&&(di(t)?pi(t):!!t)},gi=mi.normalize=function(e){return String(e).replace(fi,".").toLowerCase()},bi=mi.data={},yi=mi.NATIVE="N",vi=mi.POLYFILL="P",Si=mi,ki=rr,wi=nr.f,Ei=Do,Pi=Io.exports,Ti=kn,xi=function(e,t){for(var r=ci(t),n=hi.f,o=ui.f,a=0;a<r.length;a++){var i=r[a];li(e,i)||n(e,i,o(t,i))}},Ni=Si,Oi={};Oi[Kn("toStringTag")]="z";var Ai=rr,_i="[object z]"===String(Oi),Ci=Ir,Li=Er,Bi=Kn("toStringTag"),Di=Ai.Object,Ii="Arguments"==Li(function(){return arguments}()),Ri=_i?Li:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Di(e),Bi))?r:Ii?Li(t):"Object"==(n=Li(t))&&Ci(t.callee)?"Arguments":n},qi=rr.String,Mi=vr([].slice),ji=Math.floor,Hi=function(e,t){var r=e.length,n=ji(r/2);return r<8?Vi(e,t):Ui(e,Hi(Mi(e,0,n),t),Hi(Mi(e,n),t),t)},Vi=function(e,t){for(var r,n,o=e.length,a=1;a<o;){for(n=a,r=e[a];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},Ui=function(e,t,r,n){for(var o=t.length,a=r.length,i=0,s=0;i<o||s<a;)e[i+s]=i<o&&s<a?n(t[i],r[s])<=0?t[i++]:r[s++]:i<o?t[i++]:r[s++];return e},zi=Hi,Fi=or,Gi=zr.match(/firefox\/(\d+)/i),$i=!!Gi&&+Gi[1],Ki=/MSIE|Trident/.test(zr),Yi=zr.match(/AppleWebKit\/(\d+)\./),Wi=!!Yi&&+Yi[1],Qi=function(e,t){var r,n,o,a,i,s=e.target,l=e.global,c=e.stat;if(r=l?ki:c?ki[s]||Ti(s,{}):(ki[s]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(i=wi(r,n))&&i.value:r[n],!Ni(l?n:s+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;xi(a,o)}(e.sham||o&&o.sham)&&Ei(a,"sham",!0),Pi(r,n,a,e)}},Ji=vr,Xi=pn,Zi=On,es=Ua,ts=function(e){if("Symbol"===Ri(e))throw TypeError("Cannot convert a Symbol value to a string");return qi(e)},rs=or,ns=zi,os=function(e,t){var r=[][e];return!!r&&Fi((function(){r.call(null,t||function(){throw 1},1)}))},as=$i,is=Ki,ss=Qr,ls=Wi,cs=[],us=Ji(cs.sort),hs=Ji(cs.push),ps=rs((function(){cs.sort(void 0)})),ds=rs((function(){cs.sort(null)})),fs=os("sort"),ms=!rs((function(){if(ss)return ss<70;if(!(as&&as>3)){if(is)return!0;if(ls)return ls<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)cs.push({k:t+n,v:r})}for(cs.sort((function(e,t){return t.v-e.v})),n=0;n<cs.length;n++)t=cs[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));Qi({target:"Array",proto:!0,forced:ps||!ds||!fs||!ms},{sort:function(e){void 0!==e&&Xi(e);var t=Zi(this);if(ms)return void 0===e?us(t):us(t,e);var r,n,o=[],a=es(t);for(n=0;n<a;n++)n in t&&hs(o,t[n]);for(ns(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:ts(t)>ts(r)?1:-1}}(e)),r=o.length,n=0;n<r;)t[n]=o[n++];for(;n<a;)delete t[n++];return t}});var gs={},bs={};Object.defineProperty(bs,"__esModule",{value:!0}),bs.escapeAttrValue=function(e){if(ys.test(e))return e.replace(vs,ws);return e},bs.escapeText=function(e){if(Ss.test(e))return e.replace(ks,Es);return e},bs.sortByLoc=function(e,t){if(e.loc.isInvisible||t.loc.isInvisible)return 0;if(e.loc.startPosition.line<t.loc.startPosition.line)return-1;if(e.loc.startPosition.line===t.loc.startPosition.line&&e.loc.startPosition.column<t.loc.startPosition.column)return-1;if(e.loc.startPosition.line===t.loc.startPosition.line&&e.loc.startPosition.column===t.loc.startPosition.column)return 0;return 1};const ys=/[\xA0"&]/,vs=new RegExp(ys.source,"g"),Ss=/[\xA0&<>]/,ks=new RegExp(Ss.source,"g");function ws(e){switch(e.charCodeAt(0)){case 160:return"&nbsp;";case 34:return"&quot;";case 38:return"&amp;";default:return e}}function Es(e){switch(e.charCodeAt(0)){case 160:return"&nbsp;";case 38:return"&amp;";case 60:return"&lt;";case 62:return"&gt;";default:return e}}Object.defineProperty(gs,"__esModule",{value:!0}),gs.default=gs.voidMap=void 0;var Ps=bs;const Ts=Object.create(null);gs.voidMap=Ts;"area base br col command embed hr img input keygen link meta param source track wbr".split(" ").forEach((e=>{Ts[e]=!0}));const xs=/\S/;gs.default=class{constructor(e){this.buffer="",this.options=e}handledByOverride(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0!==this.options.override){let r=this.options.override(e,this.options);if("string"==typeof r)return t&&""!==r&&xs.test(r[0])&&(r=" ".concat(r)),this.buffer+=r,!0}return!1}Node(e){switch(e.type){case"MustacheStatement":case"BlockStatement":case"PartialStatement":case"MustacheCommentStatement":case"CommentStatement":case"TextNode":case"ElementNode":case"AttrNode":case"Block":case"Template":return this.TopLevelStatement(e);case"StringLiteral":case"BooleanLiteral":case"NumberLiteral":case"UndefinedLiteral":case"NullLiteral":case"PathExpression":case"SubExpression":return this.Expression(e);case"Program":return this.Block(e);case"ConcatStatement":return this.ConcatStatement(e);case"Hash":return this.Hash(e);case"HashPair":return this.HashPair(e);case"ElementModifierStatement":return this.ElementModifierStatement(e)}}Expression(e){switch(e.type){case"StringLiteral":case"BooleanLiteral":case"NumberLiteral":case"UndefinedLiteral":case"NullLiteral":return this.Literal(e);case"PathExpression":return this.PathExpression(e);case"SubExpression":return this.SubExpression(e)}}Literal(e){switch(e.type){case"StringLiteral":return this.StringLiteral(e);case"BooleanLiteral":return this.BooleanLiteral(e);case"NumberLiteral":return this.NumberLiteral(e);case"UndefinedLiteral":return this.UndefinedLiteral(e);case"NullLiteral":return this.NullLiteral(e)}}TopLevelStatement(e){switch(e.type){case"MustacheStatement":return this.MustacheStatement(e);case"BlockStatement":return this.BlockStatement(e);case"PartialStatement":return this.PartialStatement(e);case"MustacheCommentStatement":return this.MustacheCommentStatement(e);case"CommentStatement":return this.CommentStatement(e);case"TextNode":return this.TextNode(e);case"ElementNode":return this.ElementNode(e);case"Block":case"Template":return this.Block(e);case"AttrNode":return this.AttrNode(e)}}Block(e){if(e.chained){e.body[0].chained=!0}this.handledByOverride(e)||this.TopLevelStatements(e.body)}TopLevelStatements(e){e.forEach((e=>this.TopLevelStatement(e)))}ElementNode(e){this.handledByOverride(e)||(this.OpenElementNode(e),this.TopLevelStatements(e.children),this.CloseElementNode(e))}OpenElementNode(e){this.buffer+="<".concat(e.tag);const t=[...e.attributes,...e.modifiers,...e.comments].sort(Ps.sortByLoc);for(const e of t)switch(this.buffer+=" ",e.type){case"AttrNode":this.AttrNode(e);break;case"ElementModifierStatement":this.ElementModifierStatement(e);break;case"MustacheCommentStatement":this.MustacheCommentStatement(e)}e.blockParams.length&&this.BlockParams(e.blockParams),e.selfClosing&&(this.buffer+=" /"),this.buffer+=">"}CloseElementNode(e){e.selfClosing||Ts[e.tag.toLowerCase()]||(this.buffer+="</".concat(e.tag,">"))}AttrNode(e){if(this.handledByOverride(e))return;let{name:t,value:r}=e;this.buffer+=t,("TextNode"!==r.type||r.chars.length>0)&&(this.buffer+="=",this.AttrNodeValue(r))}AttrNodeValue(e){"TextNode"===e.type?(this.buffer+='"',this.TextNode(e,!0),this.buffer+='"'):this.Node(e)}TextNode(e,t){this.handledByOverride(e)||("raw"===this.options.entityEncoding?this.buffer+=e.chars:this.buffer+=t?(0,Ps.escapeAttrValue)(e.chars):(0,Ps.escapeText)(e.chars))}MustacheStatement(e){this.handledByOverride(e)||(this.buffer+=e.escaped?"{{":"{{{",e.strip.open&&(this.buffer+="~"),this.Expression(e.path),this.Params(e.params),this.Hash(e.hash),e.strip.close&&(this.buffer+="~"),this.buffer+=e.escaped?"}}":"}}}")}BlockStatement(e){this.handledByOverride(e)||(e.chained?(this.buffer+=e.inverseStrip.open?"{{~":"{{",this.buffer+="else "):this.buffer+=e.openStrip.open?"{{~#":"{{#",this.Expression(e.path),this.Params(e.params),this.Hash(e.hash),e.program.blockParams.length&&this.BlockParams(e.program.blockParams),e.chained?this.buffer+=e.inverseStrip.close?"~}}":"}}":this.buffer+=e.openStrip.close?"~}}":"}}",this.Block(e.program),e.inverse&&(e.inverse.chained||(this.buffer+=e.inverseStrip.open?"{{~":"{{",this.buffer+="else",this.buffer+=e.inverseStrip.close?"~}}":"}}"),this.Block(e.inverse)),e.chained||(this.buffer+=e.closeStrip.open?"{{~/":"{{/",this.Expression(e.path),this.buffer+=e.closeStrip.close?"~}}":"}}"))}BlockParams(e){this.buffer+=" as |".concat(e.join(" "),"|")}PartialStatement(e){this.handledByOverride(e)||(this.buffer+="{{>",this.Expression(e.name),this.Params(e.params),this.Hash(e.hash),this.buffer+="}}")}ConcatStatement(e){this.handledByOverride(e)||(this.buffer+='"',e.parts.forEach((e=>{"TextNode"===e.type?this.TextNode(e,!0):this.Node(e)})),this.buffer+='"')}MustacheCommentStatement(e){this.handledByOverride(e)||(this.buffer+="{{!--".concat(e