vasp-cli 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,118 @@
1
+ # vasp-cli
2
+
3
+ The official CLI for [Vasp](https://github.com/vasp-framework/vasp) — a declarative full-stack framework for Vue developers powered by Bun + Elysia.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ # Bun (recommended)
9
+ bun install -g vasp-cli
10
+
11
+ # npm
12
+ npm install -g vasp-cli
13
+ ```
14
+
15
+ > **Requires [Bun](https://bun.sh) >= 1.0**
16
+
17
+ ## Commands
18
+
19
+ ### `vasp new <project-name>`
20
+
21
+ Scaffold a new Vasp project.
22
+
23
+ ```bash
24
+ vasp new my-app # JavaScript + SPA (default)
25
+ vasp new my-app --typescript # TypeScript
26
+ vasp new my-app --ssr # SSR via Nuxt 4
27
+ vasp new my-app --ssg # Static Site Generation via Nuxt 4
28
+ vasp new my-app --ssr --typescript # SSR + TypeScript
29
+ vasp new my-app --starter=todo # Use a starter template
30
+ vasp new my-app --no-install # Skip bun install
31
+ ```
32
+
33
+ **Starters:** `minimal`, `todo`, `todo-auth-ssr`
34
+
35
+ ### `vasp start`
36
+
37
+ Start the dev servers (backend + frontend) concurrently with color-prefixed output.
38
+
39
+ ```bash
40
+ cd my-app && vasp start
41
+ ```
42
+
43
+ ### `vasp build`
44
+
45
+ Build for production — compiles the Elysia backend with Bun and the frontend with Vite or Nuxt.
46
+
47
+ ```bash
48
+ cd my-app && vasp build
49
+ ```
50
+
51
+ ### `vasp migrate-to-ts`
52
+
53
+ Convert an existing JavaScript Vasp project to TypeScript in-place.
54
+
55
+ ```bash
56
+ cd my-app && vasp migrate-to-ts
57
+ ```
58
+
59
+ - Sets `typescript: true` in `main.vasp`
60
+ - Renames `.js` → `.ts` in `src/` and `server/`
61
+ - Regenerates TypeScript scaffold files
62
+
63
+ ### `vasp enable-ssr`
64
+
65
+ Switch an existing SPA project to SSR (Nuxt 4).
66
+
67
+ ```bash
68
+ cd my-app && vasp enable-ssr
69
+ ```
70
+
71
+ - Patches `ssr: false` → `ssr: true` in `main.vasp`
72
+ - Regenerates the Nuxt 4 frontend files
73
+
74
+ ## Example `main.vasp`
75
+
76
+ ```
77
+ app TodoApp {
78
+ title: "Todo App"
79
+ db: Drizzle
80
+ ssr: false
81
+ typescript: true
82
+ }
83
+
84
+ auth UserAuth {
85
+ userEntity: User
86
+ methods: [usernameAndPassword]
87
+ }
88
+
89
+ route HomeRoute {
90
+ path: "/"
91
+ to: HomePage
92
+ }
93
+
94
+ page HomePage {
95
+ component: import Home from "@src/pages/Home.vue"
96
+ }
97
+
98
+ crud Todo {
99
+ entity: Todo
100
+ operations: [list, create, update, delete]
101
+ }
102
+
103
+ query getTodos {
104
+ fn: import { getTodos } from "@src/queries.ts"
105
+ entities: [Todo]
106
+ auth: true
107
+ }
108
+
109
+ action createTodo {
110
+ fn: import { createTodo } from "@src/actions.ts"
111
+ entities: [Todo]
112
+ auth: true
113
+ }
114
+ ```
115
+
116
+ ## License
117
+
118
+ [Apache 2.0](../../LICENSE)
package/dist/vasp CHANGED
@@ -1,19 +1,19 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
3
  #!/usr/bin/env bun
4
- var Gf=Object.create;var{getPrototypeOf:af,defineProperty:Q_,getOwnPropertyNames:bf}=Object;var lf=Object.prototype.hasOwnProperty;function Sf(_){return this[_]}var Cf,Vf,q$=(_,q,$)=>{var f=_!=null&&typeof _==="object";if(f){var K=q?Cf??=new WeakMap:Vf??=new WeakMap,P=K.get(_);if(P)return P}$=_!=null?Gf(af(_)):{};let j=q||!_||!_.__esModule?Q_($,"default",{value:_,enumerable:!0}):$;for(let w of bf(_))if(!lf.call(j,w))Q_(j,w,{get:Sf.bind(_,w),enumerable:!0});if(f)K.set(_,j);return j};var z=(_,q)=>()=>(q||_((q={exports:{}}).exports,q),q.exports);var Yq=import.meta.require;var f$=z((F4,Lq)=>{var tq=process||{},_$=tq.argv||[],dq=tq.env||{},Mf=!(!!dq.NO_COLOR||_$.includes("--no-color"))&&(!!dq.FORCE_COLOR||_$.includes("--color")||tq.platform==="win32"||(tq.stdout||{}).isTTY&&dq.TERM!=="dumb"||!!dq.CI),Nf=(_,q,$=_)=>(f)=>{let K=""+f,P=K.indexOf(q,_.length);return~P?_+cf(K,q,$,P)+q:_+K+q},cf=(_,q,$,f)=>{let K="",P=0;do K+=_.substring(P,f)+$,P=f+q.length,f=_.indexOf(q,P);while(~f);return K+_.substring(P)},$$=(_=Mf)=>{let q=_?Nf:()=>String;return{isColorSupported:_,reset:q("\x1B[0m","\x1B[0m"),bold:q("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:q("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:q("\x1B[3m","\x1B[23m"),underline:q("\x1B[4m","\x1B[24m"),inverse:q("\x1B[7m","\x1B[27m"),hidden:q("\x1B[8m","\x1B[28m"),strikethrough:q("\x1B[9m","\x1B[29m"),black:q("\x1B[30m","\x1B[39m"),red:q("\x1B[31m","\x1B[39m"),green:q("\x1B[32m","\x1B[39m"),yellow:q("\x1B[33m","\x1B[39m"),blue:q("\x1B[34m","\x1B[39m"),magenta:q("\x1B[35m","\x1B[39m"),cyan:q("\x1B[36m","\x1B[39m"),white:q("\x1B[37m","\x1B[39m"),gray:q("\x1B[90m","\x1B[39m"),bgBlack:q("\x1B[40m","\x1B[49m"),bgRed:q("\x1B[41m","\x1B[49m"),bgGreen:q("\x1B[42m","\x1B[49m"),bgYellow:q("\x1B[43m","\x1B[49m"),bgBlue:q("\x1B[44m","\x1B[49m"),bgMagenta:q("\x1B[45m","\x1B[49m"),bgCyan:q("\x1B[46m","\x1B[49m"),bgWhite:q("\x1B[47m","\x1B[49m"),blackBright:q("\x1B[90m","\x1B[39m"),redBright:q("\x1B[91m","\x1B[39m"),greenBright:q("\x1B[92m","\x1B[39m"),yellowBright:q("\x1B[93m","\x1B[39m"),blueBright:q("\x1B[94m","\x1B[39m"),magentaBright:q("\x1B[95m","\x1B[39m"),cyanBright:q("\x1B[96m","\x1B[39m"),whiteBright:q("\x1B[97m","\x1B[39m"),bgBlackBright:q("\x1B[100m","\x1B[49m"),bgRedBright:q("\x1B[101m","\x1B[49m"),bgGreenBright:q("\x1B[102m","\x1B[49m"),bgYellowBright:q("\x1B[103m","\x1B[49m"),bgBlueBright:q("\x1B[104m","\x1B[49m"),bgMagentaBright:q("\x1B[105m","\x1B[49m"),bgCyanBright:q("\x1B[106m","\x1B[49m"),bgWhiteBright:q("\x1B[107m","\x1B[49m")}};Lq.exports=$$();Lq.exports.createColors=$$});var X=z((_8)=>{_8.__esModule=!0;_8.extend=h$;_8.indexOf=sf;_8.escapeExpression=Bf;_8.isEmpty=Uf;_8.createFrame=Ff;_8.blockParams=Qf;_8.appendContextPath=q8;var yf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},Df=/[&<>"'`=]/g,xf=/[&<>"'`=]/;function Lf(_){return yf[_]}function h$(_){for(var q=1;q<arguments.length;q++)for(var $ in arguments[q])if(Object.prototype.hasOwnProperty.call(arguments[q],$))_[$]=arguments[q][$];return _}var __=Object.prototype.toString;_8.toString=__;var q_=function(q){return typeof q==="function"};if(q_(/x/))_8.isFunction=q_=function(_){return typeof _==="function"&&__.call(_)==="[object Function]"};_8.isFunction=q_;var r$=Array.isArray||function(_){return _&&typeof _==="object"?__.call(_)==="[object Array]":!1};_8.isArray=r$;function sf(_,q){for(var $=0,f=_.length;$<f;$++)if(_[$]===q)return $;return-1}function Bf(_){if(typeof _!=="string"){if(_&&_.toHTML)return _.toHTML();else if(_==null)return"";else if(!_)return _+"";_=""+_}if(!xf.test(_))return _;return _.replace(Df,Lf)}function Uf(_){if(!_&&_!==0)return!0;else if(r$(_)&&_.length===0)return!0;else return!1}function Ff(_){var q=h$({},_);return q._parent=_,q}function Qf(_,q){return _.path=q,_}function q8(_,q){return(_?_+".":"")+q}});var t=z((T$,k$)=>{T$.__esModule=!0;var $_=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function f_(_,q){var $=q&&q.loc,f=void 0,K=void 0,P=void 0,j=void 0;if($)f=$.start.line,K=$.end.line,P=$.start.column,j=$.end.column,_+=" - "+f+":"+P;var w=Error.prototype.constructor.call(this,_);for(var O=0;O<$_.length;O++)this[$_[O]]=w[$_[O]];if(Error.captureStackTrace)Error.captureStackTrace(this,f_);try{if($)if(this.lineNumber=f,this.endLineNumber=K,Object.defineProperty)Object.defineProperty(this,"column",{value:P,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:j,enumerable:!0});else this.column=P,this.endColumn=j}catch(v){}}f_.prototype=Error();T$.default=f_;k$.exports=T$.default});var W$=z((z$,H$)=>{z$.__esModule=!0;var K_=X();z$.default=function(_){_.registerHelper("blockHelperMissing",function(q,$){var{inverse:f,fn:K}=$;if(q===!0)return K(this);else if(q===!1||q==null)return f(this);else if(K_.isArray(q))if(q.length>0){if($.ids)$.ids=[$.name];return _.helpers.each(q,$)}else return f(this);else{if($.data&&$.ids){var P=K_.createFrame($.data);P.contextPath=K_.appendContextPath($.data.contextPath,$.name),$={data:P}}return K(q,$)}})};H$.exports=z$.default});var m$=z((J$,Z$)=>{J$.__esModule=!0;function W8(_){return _&&_.__esModule?_:{default:_}}var rq=X(),J8=t(),Z8=W8(J8);J$.default=function(_){_.registerHelper("each",function(q,$){if(!$)throw new Z8.default("Must pass iterator to #each");var{fn:f,inverse:K}=$,P=0,j="",w=void 0,O=void 0;if($.data&&$.ids)O=rq.appendContextPath($.data.contextPath,$.ids[0])+".";if(rq.isFunction(q))q=q.call(this);if($.data)w=rq.createFrame($.data);function v(W,m,a){if(w){if(w.key=W,w.index=m,w.first=m===0,w.last=!!a,O)w.contextPath=O+W}j=j+f(q[W],{data:w,blockParams:rq.blockParams([q[W],W],[O+W,null])})}if(q&&typeof q==="object")if(rq.isArray(q)){for(var h=q.length;P<h;P++)if(P in q)v(P,P,P===q.length-1)}else if(typeof Symbol==="function"&&q[Symbol.iterator]){var Y=[],r=q[Symbol.iterator]();for(var k=r.next();!k.done;k=r.next())Y.push(k.value);q=Y;for(var h=q.length;P<h;P++)v(P,P,P===q.length-1)}else(function(){var W=void 0;if(Object.keys(q).forEach(function(m){if(W!==void 0)v(W,P-1);W=m,P++}),W!==void 0)v(W,P-1,!0)})();if(P===0)j=K(this);return j})};Z$.exports=J$.default});var n$=z((u$,o$)=>{u$.__esModule=!0;function o8(_){return _&&_.__esModule?_:{default:_}}var n8=t(),A8=o8(n8);u$.default=function(_){_.registerHelper("helperMissing",function(){if(arguments.length===1)return;else throw new A8.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};o$.exports=u$.default});var d$=z((X$,e$)=>{X$.__esModule=!0;function e8(_){return _&&_.__esModule?_:{default:_}}var A$=X(),d8=t(),p$=e8(d8);X$.default=function(_){_.registerHelper("if",function(q,$){if(arguments.length!=2)throw new p$.default("#if requires exactly one argument");if(A$.isFunction(q))q=q.call(this);if(!$.hash.includeZero&&!q||A$.isEmpty(q))return $.inverse(this);else return $.fn(this)}),_.registerHelper("unless",function(q,$){if(arguments.length!=2)throw new p$.default("#unless requires exactly one argument");return _.helpers.if.call(this,q,{fn:$.inverse,inverse:$.fn,hash:$.hash})})};e$.exports=X$.default});var i$=z((t$,G$)=>{t$.__esModule=!0;t$.default=function(_){_.registerHelper("log",function(){var q=[void 0],$=arguments[arguments.length-1];for(var f=0;f<arguments.length-1;f++)q.push(arguments[f]);var K=1;if($.hash.level!=null)K=$.hash.level;else if($.data&&$.data.level!=null)K=$.data.level;q[0]=K,_.log.apply(_,q)})};G$.exports=t$.default});var l$=z((a$,b$)=>{a$.__esModule=!0;a$.default=function(_){_.registerHelper("lookup",function(q,$,f){if(!q)return q;return f.lookupProperty(q,$)})};b$.exports=a$.default});var V$=z((S$,C$)=>{S$.__esModule=!0;function S8(_){return _&&_.__esModule?_:{default:_}}var Tq=X(),C8=t(),V8=S8(C8);S$.default=function(_){_.registerHelper("with",function(q,$){if(arguments.length!=2)throw new V8.default("#with requires exactly one argument");if(Tq.isFunction(q))q=q.call(this);var f=$.fn;if(!Tq.isEmpty(q)){var K=$.data;if($.data&&$.ids)K=Tq.createFrame($.data),K.contextPath=Tq.appendContextPath($.data.contextPath,$.ids[0]);return f(q,{data:K,blockParams:Tq.blockParams([q],[K&&K.contextPath])})}else return $.inverse(this)})};C$.exports=S$.default});var P_=z(($K)=>{$K.__esModule=!0;$K.registerDefaultHelpers=qK;$K.moveHelperToHooks=_K;function L(_){return _&&_.__esModule?_:{default:_}}var c8=W$(),E8=L(c8),R8=m$(),g8=L(R8),I8=n$(),y8=L(I8),D8=d$(),x8=L(D8),L8=i$(),s8=L(L8),B8=l$(),U8=L(B8),F8=V$(),Q8=L(F8);function qK(_){E8.default(_),g8.default(_),y8.default(_),x8.default(_),s8.default(_),U8.default(_),Q8.default(_)}function _K(_,q,$){if(_.helpers[q]){if(_.hooks[q]=_.helpers[q],!$)delete _.helpers[q]}}});var c$=z((M$,N$)=>{M$.__esModule=!0;var jK=X();M$.default=function(_){_.registerDecorator("inline",function(q,$,f,K){var P=q;if(!$.partials)$.partials={},P=function(j,w){var O=f.partials;f.partials=jK.extend({},O,$.partials);var v=q(j,w);return f.partials=O,v};return $.partials[K.args[0]]=K.fn,P})};N$.exports=M$.default});var E$=z((TK)=>{TK.__esModule=!0;TK.registerDefaultDecorators=rK;function OK(_){return _&&_.__esModule?_:{default:_}}var YK=c$(),hK=OK(YK);function rK(_){hK.default(_)}});var j_=z((R$,g$)=>{R$.__esModule=!0;var HK=X(),_q={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(q){if(typeof q==="string"){var $=HK.indexOf(_q.methodMap,q.toLowerCase());if($>=0)q=$;else q=parseInt(q,10)}return q},log:function(q){if(q=_q.lookupLevel(q),typeof console<"u"&&_q.lookupLevel(_q.level)<=q){var $=_q.methodMap[q];if(!console[$])$="log";for(var f=arguments.length,K=Array(f>1?f-1:0),P=1;P<f;P++)K[P-1]=arguments[P];console[$].apply(console,K)}}};R$.default=_q;g$.exports=R$.default});var I$=z((uK)=>{uK.__esModule=!0;uK.createNewLookupObject=mK;var ZK=X();function mK(){for(var _=arguments.length,q=Array(_),$=0;$<_;$++)q[$]=arguments[$];return ZK.extend.apply(void 0,[Object.create(null)].concat(q))}});var v_=z((iK)=>{iK.__esModule=!0;iK.createProtoAccessControl=eK;iK.resultIsAllowed=dK;iK.resetLoggedProperties=GK;function AK(_){return _&&_.__esModule?_:{default:_}}var y$=I$(),pK=j_(),XK=AK(pK),iq=Object.create(null);function eK(_){var q=Object.create(null);q.constructor=!1,q.__defineGetter__=!1,q.__defineSetter__=!1,q.__lookupGetter__=!1;var $=Object.create(null);return $.__proto__=!1,{properties:{whitelist:y$.createNewLookupObject($,_.allowedProtoProperties),defaultValue:_.allowProtoPropertiesByDefault},methods:{whitelist:y$.createNewLookupObject(q,_.allowedProtoMethods),defaultValue:_.allowProtoMethodsByDefault}}}function dK(_,q,$){if(typeof _==="function")return D$(q.methods,$);else return D$(q.properties,$)}function D$(_,q){if(_.whitelist[q]!==void 0)return _.whitelist[q]===!0;if(_.defaultValue!==void 0)return _.defaultValue;return tK(q),!1}function tK(_){if(iq[_]!==!0)iq[_]=!0,XK.default.log("error",'Handlebars: Access has been denied to resolve the property "'+_+`" because it is not an "own property" of its parent.
4
+ var g8=Object.create;var{getPrototypeOf:I8,defineProperty:f$,getOwnPropertyNames:y8}=Object;var D8=Object.prototype.hasOwnProperty;function x8(_){return this[_]}var L8,s8,Lq=(_,q,$)=>{var f=_!=null&&typeof _==="object";if(f){var K=q?L8??=new WeakMap:s8??=new WeakMap,P=K.get(_);if(P)return P}$=_!=null?g8(I8(_)):{};let j=q||!_||!_.__esModule?f$($,"default",{value:_,enumerable:!0}):$;for(let w of y8(_))if(!D8.call(j,w))f$(j,w,{get:x8.bind(_,w),enumerable:!0});if(f)K.set(_,j);return j};var H=(_,q)=>()=>(q||_((q={exports:{}}).exports,q),q.exports);var Tq=import.meta.require;var Bq=H((m7,sq)=>{var tq=process||{},K$=tq.argv||[],dq=tq.env||{},B8=!(!!dq.NO_COLOR||K$.includes("--no-color"))&&(!!dq.FORCE_COLOR||K$.includes("--color")||tq.platform==="win32"||(tq.stdout||{}).isTTY&&dq.TERM!=="dumb"||!!dq.CI),U8=(_,q,$=_)=>(f)=>{let K=""+f,P=K.indexOf(q,_.length);return~P?_+F8(K,q,$,P)+q:_+K+q},F8=(_,q,$,f)=>{let K="",P=0;do K+=_.substring(P,f)+$,P=f+q.length,f=_.indexOf(q,P);while(~f);return K+_.substring(P)},P$=(_=B8)=>{let q=_?U8:()=>String;return{isColorSupported:_,reset:q("\x1B[0m","\x1B[0m"),bold:q("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:q("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:q("\x1B[3m","\x1B[23m"),underline:q("\x1B[4m","\x1B[24m"),inverse:q("\x1B[7m","\x1B[27m"),hidden:q("\x1B[8m","\x1B[28m"),strikethrough:q("\x1B[9m","\x1B[29m"),black:q("\x1B[30m","\x1B[39m"),red:q("\x1B[31m","\x1B[39m"),green:q("\x1B[32m","\x1B[39m"),yellow:q("\x1B[33m","\x1B[39m"),blue:q("\x1B[34m","\x1B[39m"),magenta:q("\x1B[35m","\x1B[39m"),cyan:q("\x1B[36m","\x1B[39m"),white:q("\x1B[37m","\x1B[39m"),gray:q("\x1B[90m","\x1B[39m"),bgBlack:q("\x1B[40m","\x1B[49m"),bgRed:q("\x1B[41m","\x1B[49m"),bgGreen:q("\x1B[42m","\x1B[49m"),bgYellow:q("\x1B[43m","\x1B[49m"),bgBlue:q("\x1B[44m","\x1B[49m"),bgMagenta:q("\x1B[45m","\x1B[49m"),bgCyan:q("\x1B[46m","\x1B[49m"),bgWhite:q("\x1B[47m","\x1B[49m"),blackBright:q("\x1B[90m","\x1B[39m"),redBright:q("\x1B[91m","\x1B[39m"),greenBright:q("\x1B[92m","\x1B[39m"),yellowBright:q("\x1B[93m","\x1B[39m"),blueBright:q("\x1B[94m","\x1B[39m"),magentaBright:q("\x1B[95m","\x1B[39m"),cyanBright:q("\x1B[96m","\x1B[39m"),whiteBright:q("\x1B[97m","\x1B[39m"),bgBlackBright:q("\x1B[100m","\x1B[49m"),bgRedBright:q("\x1B[101m","\x1B[49m"),bgGreenBright:q("\x1B[102m","\x1B[49m"),bgYellowBright:q("\x1B[103m","\x1B[49m"),bgBlueBright:q("\x1B[104m","\x1B[49m"),bgMagentaBright:q("\x1B[105m","\x1B[49m"),bgCyanBright:q("\x1B[106m","\x1B[49m"),bgWhiteBright:q("\x1B[107m","\x1B[49m")}};sq.exports=P$();sq.exports.createColors=P$});var p=H((rf)=>{rf.__esModule=!0;rf.extend=r$;rf.indexOf=vf;rf.escapeExpression=wf;rf.isEmpty=Of;rf.createFrame=Yf;rf.blockParams=hf;rf.appendContextPath=Tf;var ff={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},Kf=/[&<>"'`=]/g,Pf=/[&<>"'`=]/;function jf(_){return ff[_]}function r$(_){for(var q=1;q<arguments.length;q++)for(var $ in arguments[q])if(Object.prototype.hasOwnProperty.call(arguments[q],$))_[$]=arguments[q][$];return _}var f_=Object.prototype.toString;rf.toString=f_;var $_=function(q){return typeof q==="function"};if($_(/x/))rf.isFunction=$_=function(_){return typeof _==="function"&&f_.call(_)==="[object Function]"};rf.isFunction=$_;var k$=Array.isArray||function(_){return _&&typeof _==="object"?f_.call(_)==="[object Array]":!1};rf.isArray=k$;function vf(_,q){for(var $=0,f=_.length;$<f;$++)if(_[$]===q)return $;return-1}function wf(_){if(typeof _!=="string"){if(_&&_.toHTML)return _.toHTML();else if(_==null)return"";else if(!_)return _+"";_=""+_}if(!Pf.test(_))return _;return _.replace(Kf,jf)}function Of(_){if(!_&&_!==0)return!0;else if(k$(_)&&_.length===0)return!0;else return!1}function Yf(_){var q=r$({},_);return q._parent=_,q}function hf(_,q){return _.path=q,_}function Tf(_,q){return(_?_+".":"")+q}});var t=H((z$,H$)=>{z$.__esModule=!0;var K_=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function P_(_,q){var $=q&&q.loc,f=void 0,K=void 0,P=void 0,j=void 0;if($)f=$.start.line,K=$.end.line,P=$.start.column,j=$.end.column,_+=" - "+f+":"+P;var w=Error.prototype.constructor.call(this,_);for(var O=0;O<K_.length;O++)this[K_[O]]=w[K_[O]];if(Error.captureStackTrace)Error.captureStackTrace(this,P_);try{if($)if(this.lineNumber=f,this.endLineNumber=K,Object.defineProperty)Object.defineProperty(this,"column",{value:P,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:j,enumerable:!0});else this.column=P,this.endColumn=j}catch(v){}}P_.prototype=Error();z$.default=P_;H$.exports=z$.default});var Z$=H((W$,J$)=>{W$.__esModule=!0;var j_=p();W$.default=function(_){_.registerHelper("blockHelperMissing",function(q,$){var{inverse:f,fn:K}=$;if(q===!0)return K(this);else if(q===!1||q==null)return f(this);else if(j_.isArray(q))if(q.length>0){if($.ids)$.ids=[$.name];return _.helpers.each(q,$)}else return f(this);else{if($.data&&$.ids){var P=j_.createFrame($.data);P.contextPath=j_.appendContextPath($.data.contextPath,$.name),$={data:P}}return K(q,$)}})};J$.exports=W$.default});var o$=H((m$,u$)=>{m$.__esModule=!0;function tf(_){return _&&_.__esModule?_:{default:_}}var kq=p(),Gf=t(),af=tf(Gf);m$.default=function(_){_.registerHelper("each",function(q,$){if(!$)throw new af.default("Must pass iterator to #each");var{fn:f,inverse:K}=$,P=0,j="",w=void 0,O=void 0;if($.data&&$.ids)O=kq.appendContextPath($.data.contextPath,$.ids[0])+".";if(kq.isFunction(q))q=q.call(this);if($.data)w=kq.createFrame($.data);function v(W,m,a){if(w){if(w.key=W,w.index=m,w.first=m===0,w.last=!!a,O)w.contextPath=O+W}j=j+f(q[W],{data:w,blockParams:kq.blockParams([q[W],W],[O+W,null])})}if(q&&typeof q==="object")if(kq.isArray(q)){for(var h=q.length;P<h;P++)if(P in q)v(P,P,P===q.length-1)}else if(typeof Symbol==="function"&&q[Symbol.iterator]){var Y=[],T=q[Symbol.iterator]();for(var z=T.next();!z.done;z=T.next())Y.push(z.value);q=Y;for(var h=q.length;P<h;P++)v(P,P,P===q.length-1)}else(function(){var W=void 0;if(Object.keys(q).forEach(function(m){if(W!==void 0)v(W,P-1);W=m,P++}),W!==void 0)v(W,P-1,!0)})();if(P===0)j=K(this);return j})};u$.exports=m$.default});var X$=H((n$,A$)=>{n$.__esModule=!0;function Cf(_){return _&&_.__esModule?_:{default:_}}var lf=t(),Vf=Cf(lf);n$.default=function(_){_.registerHelper("helperMissing",function(){if(arguments.length===1)return;else throw new Vf.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};A$.exports=n$.default});var G$=H((d$,t$)=>{d$.__esModule=!0;function cf(_){return _&&_.__esModule?_:{default:_}}var p$=p(),Ef=t(),e$=cf(Ef);d$.default=function(_){_.registerHelper("if",function(q,$){if(arguments.length!=2)throw new e$.default("#if requires exactly one argument");if(p$.isFunction(q))q=q.call(this);if(!$.hash.includeZero&&!q||p$.isEmpty(q))return $.inverse(this);else return $.fn(this)}),_.registerHelper("unless",function(q,$){if(arguments.length!=2)throw new e$.default("#unless requires exactly one argument");return _.helpers.if.call(this,q,{fn:$.inverse,inverse:$.fn,hash:$.hash})})};t$.exports=d$.default});var b$=H((i$,a$)=>{i$.__esModule=!0;i$.default=function(_){_.registerHelper("log",function(){var q=[void 0],$=arguments[arguments.length-1];for(var f=0;f<arguments.length-1;f++)q.push(arguments[f]);var K=1;if($.hash.level!=null)K=$.hash.level;else if($.data&&$.data.level!=null)K=$.data.level;q[0]=K,_.log.apply(_,q)})};a$.exports=i$.default});var l$=H((S$,C$)=>{S$.__esModule=!0;S$.default=function(_){_.registerHelper("lookup",function(q,$,f){if(!q)return q;return f.lookupProperty(q,$)})};C$.exports=S$.default});var N$=H((V$,M$)=>{V$.__esModule=!0;function Lf(_){return _&&_.__esModule?_:{default:_}}var zq=p(),sf=t(),Bf=Lf(sf);V$.default=function(_){_.registerHelper("with",function(q,$){if(arguments.length!=2)throw new Bf.default("#with requires exactly one argument");if(zq.isFunction(q))q=q.call(this);var f=$.fn;if(!zq.isEmpty(q)){var K=$.data;if($.data&&$.ids)K=zq.createFrame($.data),K.contextPath=zq.appendContextPath($.data.contextPath,$.ids[0]);return f(q,{data:K,blockParams:zq.blockParams([q],[K&&K.contextPath])})}else return $.inverse(this)})};M$.exports=V$.default});var v_=H((zK)=>{zK.__esModule=!0;zK.registerDefaultHelpers=rK;zK.moveHelperToHooks=kK;function L(_){return _&&_.__esModule?_:{default:_}}var Qf=Z$(),qK=L(Qf),_K=o$(),$K=L(_K),fK=X$(),KK=L(fK),PK=G$(),jK=L(PK),vK=b$(),wK=L(vK),OK=l$(),YK=L(OK),hK=N$(),TK=L(hK);function rK(_){qK.default(_),$K.default(_),KK.default(_),jK.default(_),wK.default(_),YK.default(_),TK.default(_)}function kK(_,q,$){if(_.helpers[q]){if(_.hooks[q]=_.helpers[q],!$)delete _.helpers[q]}}});var R$=H((c$,E$)=>{c$.__esModule=!0;var ZK=p();c$.default=function(_){_.registerDecorator("inline",function(q,$,f,K){var P=q;if(!$.partials)$.partials={},P=function(j,w){var O=f.partials;f.partials=ZK.extend({},O,$.partials);var v=q(j,w);return f.partials=O,v};return $.partials[K.args[0]]=K.fn,P})};E$.exports=c$.default});var g$=H((pK)=>{pK.__esModule=!0;pK.registerDefaultDecorators=XK;function oK(_){return _&&_.__esModule?_:{default:_}}var nK=R$(),AK=oK(nK);function XK(_){AK.default(_)}});var w_=H((I$,y$)=>{I$.__esModule=!0;var tK=p(),fq={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(q){if(typeof q==="string"){var $=tK.indexOf(fq.methodMap,q.toLowerCase());if($>=0)q=$;else q=parseInt(q,10)}return q},log:function(q){if(q=fq.lookupLevel(q),typeof console<"u"&&fq.lookupLevel(fq.level)<=q){var $=fq.methodMap[q];if(!console[$])$="log";for(var f=arguments.length,K=Array(f>1?f-1:0),P=1;P<f;P++)K[P-1]=arguments[P];console[$].apply(console,K)}}};I$.default=fq;y$.exports=I$.default});var D$=H((SK)=>{SK.__esModule=!0;SK.createNewLookupObject=bK;var aK=p();function bK(){for(var _=arguments.length,q=Array(_),$=0;$<_;$++)q[$]=arguments[$];return aK.extend.apply(void 0,[Object.create(null)].concat(q))}});var O_=H((IK)=>{IK.__esModule=!0;IK.createProtoAccessControl=cK;IK.resultIsAllowed=EK;IK.resetLoggedProperties=gK;function VK(_){return _&&_.__esModule?_:{default:_}}var x$=D$(),MK=w_(),NK=VK(MK),iq=Object.create(null);function cK(_){var q=Object.create(null);q.constructor=!1,q.__defineGetter__=!1,q.__defineSetter__=!1,q.__lookupGetter__=!1;var $=Object.create(null);return $.__proto__=!1,{properties:{whitelist:x$.createNewLookupObject($,_.allowedProtoProperties),defaultValue:_.allowProtoPropertiesByDefault},methods:{whitelist:x$.createNewLookupObject(q,_.allowedProtoMethods),defaultValue:_.allowProtoMethodsByDefault}}}function EK(_,q,$){if(typeof _==="function")return L$(q.methods,$);else return L$(q.properties,$)}function L$(_,q){if(_.whitelist[q]!==void 0)return _.whitelist[q]===!0;if(_.defaultValue!==void 0)return _.defaultValue;return RK(q),!1}function RK(_){if(iq[_]!==!0)iq[_]=!0,NK.default.log("error",'Handlebars: Access has been denied to resolve the property "'+_+`" because it is not an "own property" of its parent.
5
5
  You can add a runtime option to disable the check or this warning:
6
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`)}function GK(){Object.keys(iq).forEach(function(_){delete iq[_]})}});var bq=z((DK)=>{DK.__esModule=!0;DK.HandlebarsEnvironment=Y_;function x$(_){return _&&_.__esModule?_:{default:_}}var s=X(),CK=t(),w_=x$(CK),VK=P_(),MK=E$(),NK=j_(),aq=x$(NK),cK=v_(),EK="4.7.8";DK.VERSION=EK;var RK=8;DK.COMPILER_REVISION=RK;var gK=7;DK.LAST_COMPATIBLE_COMPILER_REVISION=gK;var IK={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};DK.REVISION_CHANGES=IK;var O_="[object Object]";function Y_(_,q,$){this.helpers=_||{},this.partials=q||{},this.decorators=$||{},VK.registerDefaultHelpers(this),MK.registerDefaultDecorators(this)}Y_.prototype={constructor:Y_,logger:aq.default,log:aq.default.log,registerHelper:function(q,$){if(s.toString.call(q)===O_){if($)throw new w_.default("Arg not supported with multiple helpers");s.extend(this.helpers,q)}else this.helpers[q]=$},unregisterHelper:function(q){delete this.helpers[q]},registerPartial:function(q,$){if(s.toString.call(q)===O_)s.extend(this.partials,q);else{if(typeof $>"u")throw new w_.default('Attempting to register a partial called "'+q+'" as undefined');this.partials[q]=$}},unregisterPartial:function(q){delete this.partials[q]},registerDecorator:function(q,$){if(s.toString.call(q)===O_){if($)throw new w_.default("Arg not supported with multiple decorators");s.extend(this.decorators,q)}else this.decorators[q]=$},unregisterDecorator:function(q){delete this.decorators[q]},resetLoggedPropertyAccesses:function(){cK.resetLoggedProperties()}};var yK=aq.default.log;DK.log=yK;DK.createFrame=s.createFrame;DK.logger=aq.default});var B$=z((L$,s$)=>{L$.__esModule=!0;function h_(_){this.string=_}h_.prototype.toString=h_.prototype.toHTML=function(){return""+this.string};L$.default=h_;s$.exports=L$.default});var U$=z((PP)=>{PP.__esModule=!0;PP.wrapHelper=KP;function KP(_,q){if(typeof _!=="function")return _;var $=function(){var K=arguments[arguments.length-1];return arguments[arguments.length-1]=q(K),_.apply(this,arguments)};return $}});var $6=z((mP)=>{mP.__esModule=!0;mP.checkRevision=TP;mP.template=kP;mP.wrapProgram=lq;mP.resolvePartial=zP;mP.invokePartial=HP;mP.noop=q6;function wP(_){return _&&_.__esModule?_:{default:_}}function OP(_){if(_&&_.__esModule)return _;else{var q={};if(_!=null){for(var $ in _)if(Object.prototype.hasOwnProperty.call(_,$))q[$]=_[$]}return q.default=_,q}}var YP=X(),M=OP(YP),hP=t(),N=wP(hP),c=bq(),F$=P_(),rP=U$(),Q$=v_();function TP(_){var q=_&&_[0]||1,$=c.COMPILER_REVISION;if(q>=c.LAST_COMPATIBLE_COMPILER_REVISION&&q<=c.COMPILER_REVISION)return;if(q<c.LAST_COMPATIBLE_COMPILER_REVISION){var f=c.REVISION_CHANGES[$],K=c.REVISION_CHANGES[q];throw new N.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+f+") or downgrade your runtime to an older version ("+K+").")}else throw new N.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+_[1]+").")}function kP(_,q){if(!q)throw new N.default("No environment passed to template");if(!_||!_.main)throw new N.default("Unknown template object: "+typeof _);_.main.decorator=_.main_d,q.VM.checkRevision(_.compiler);var $=_.compiler&&_.compiler[0]===7;function f(j,w,O){if(O.hash){if(w=M.extend({},w,O.hash),O.ids)O.ids[0]=!0}j=q.VM.resolvePartial.call(this,j,w,O);var v=M.extend({},O,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),h=q.VM.invokePartial.call(this,j,w,v);if(h==null&&q.compile)O.partials[O.name]=q.compile(j,_.compilerOptions,q),h=O.partials[O.name](w,v);if(h!=null){if(O.indent){var Y=h.split(`
7
- `);for(var r=0,k=Y.length;r<k;r++){if(!Y[r]&&r+1===k)break;Y[r]=O.indent+Y[r]}h=Y.join(`
8
- `)}return h}else throw new N.default("The partial "+O.name+" could not be compiled when running in runtime-only mode")}var K={strict:function(w,O,v){if(!w||!(O in w))throw new N.default('"'+O+'" not defined in '+w,{loc:v});return K.lookupProperty(w,O)},lookupProperty:function(w,O){var v=w[O];if(v==null)return v;if(Object.prototype.hasOwnProperty.call(w,O))return v;if(Q$.resultIsAllowed(v,K.protoAccessControl,O))return v;return},lookup:function(w,O){var v=w.length;for(var h=0;h<v;h++){var Y=w[h]&&K.lookupProperty(w[h],O);if(Y!=null)return w[h][O]}},lambda:function(w,O){return typeof w==="function"?w.call(O):w},escapeExpression:M.escapeExpression,invokePartial:f,fn:function(w){var O=_[w];return O.decorator=_[w+"_d"],O},programs:[],program:function(w,O,v,h,Y){var r=this.programs[w],k=this.fn(w);if(O||Y||h||v)r=lq(this,w,k,O,v,h,Y);else if(!r)r=this.programs[w]=lq(this,w,k);return r},data:function(w,O){while(w&&O--)w=w._parent;return w},mergeIfNeeded:function(w,O){var v=w||O;if(w&&O&&w!==O)v=M.extend({},O,w);return v},nullContext:Object.seal({}),noop:q.VM.noop,compilerInfo:_.compiler};function P(j){var w=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],O=w.data;if(P._setup(w),!w.partial&&_.useData)O=WP(j,O);var v=void 0,h=_.useBlockParams?[]:void 0;if(_.useDepths)if(w.depths)v=j!=w.depths[0]?[j].concat(w.depths):w.depths;else v=[j];function Y(r){return""+_.main(K,r,K.helpers,K.partials,O,h,v)}return Y=_6(_.main,Y,K,w.depths||[],O,h),Y(j,w)}return P.isTop=!0,P._setup=function(j){if(!j.partial){var w=M.extend({},q.helpers,j.helpers);if(JP(w,K),K.helpers=w,_.usePartial)K.partials=K.mergeIfNeeded(j.partials,q.partials);if(_.usePartial||_.useDecorators)K.decorators=M.extend({},q.decorators,j.decorators);K.hooks={},K.protoAccessControl=Q$.createProtoAccessControl(j);var O=j.allowCallsToHelperMissing||$;F$.moveHelperToHooks(K,"helperMissing",O),F$.moveHelperToHooks(K,"blockHelperMissing",O)}else K.protoAccessControl=j.protoAccessControl,K.helpers=j.helpers,K.partials=j.partials,K.decorators=j.decorators,K.hooks=j.hooks},P._child=function(j,w,O,v){if(_.useBlockParams&&!O)throw new N.default("must pass block params");if(_.useDepths&&!v)throw new N.default("must pass parent depths");return lq(K,j,_[j],w,0,O,v)},P}function lq(_,q,$,f,K,P,j){function w(O){var v=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=j;if(j&&O!=j[0]&&!(O===_.nullContext&&j[0]===null))h=[O].concat(j);return $(_,O,_.helpers,_.partials,v.data||f,P&&[v.blockParams].concat(P),h)}return w=_6($,w,_,j,f,P),w.program=q,w.depth=j?j.length:0,w.blockParams=K||0,w}function zP(_,q,$){if(!_)if($.name==="@partial-block")_=$.data["partial-block"];else _=$.partials[$.name];else if(!_.call&&!$.name)$.name=_,_=$.partials[_];return _}function HP(_,q,$){var f=$.data&&$.data["partial-block"];if($.partial=!0,$.ids)$.data.contextPath=$.ids[0]||$.data.contextPath;var K=void 0;if($.fn&&$.fn!==q6)(function(){$.data=c.createFrame($.data);var P=$.fn;if(K=$.data["partial-block"]=function(w){var O=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return O.data=c.createFrame(O.data),O.data["partial-block"]=f,P(w,O)},P.partials)$.partials=M.extend({},$.partials,P.partials)})();if(_===void 0&&K)_=K;if(_===void 0)throw new N.default("The partial "+$.name+" could not be found");else if(_ instanceof Function)return _(q,$)}function q6(){return""}function WP(_,q){if(!q||!("root"in q))q=q?c.createFrame(q):{},q.root=_;return q}function _6(_,q,$,f,K,P){if(_.decorator){var j={};q=_.decorator(q,j,$,f&&f[0],K,P,f),M.extend(q,j)}return q}function JP(_,q){Object.keys(_).forEach(function($){var f=_[$];_[$]=ZP(f,q)})}function ZP(_,q){var $=q.lookupProperty;return rP.wrapHelper(_,function(f){return M.extend({lookupProperty:$},f)})}});var r_=z((f6,K6)=>{f6.__esModule=!0;f6.default=function(_){(function(){if(typeof globalThis==="object")return;Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__})();var q=globalThis.Handlebars;_.noConflict=function(){if(globalThis.Handlebars===_)globalThis.Handlebars=q;return _}};K6.exports=f6.default});var Y6=z((w6,O6)=>{w6.__esModule=!0;function k_(_){return _&&_.__esModule?_:{default:_}}function z_(_){if(_&&_.__esModule)return _;else{var q={};if(_!=null){for(var $ in _)if(Object.prototype.hasOwnProperty.call(_,$))q[$]=_[$]}return q.default=_,q}}var GP=bq(),P6=z_(GP),iP=B$(),aP=k_(iP),bP=t(),lP=k_(bP),SP=X(),T_=z_(SP),CP=$6(),j6=z_(CP),VP=r_(),MP=k_(VP);function v6(){var _=new P6.HandlebarsEnvironment;return T_.extend(_,P6),_.SafeString=aP.default,_.Exception=lP.default,_.Utils=T_,_.escapeExpression=T_.escapeExpression,_.VM=j6,_.template=function(q){return j6.template(q,_)},_}var kq=v6();kq.create=v6;MP.default(kq);kq.default=kq;w6.default=kq;O6.exports=w6.default});var H_=z((r6,T6)=>{r6.__esModule=!0;var h6={helpers:{helperExpression:function(q){return q.type==="SubExpression"||(q.type==="MustacheStatement"||q.type==="BlockStatement")&&!!(q.params&&q.params.length||q.hash)},scopedId:function(q){return/^\.|this\b/.test(q.original)},simpleId:function(q){return q.parts.length===1&&!h6.helpers.scopedId(q)&&!q.depth}}};r6.default=h6;T6.exports=r6.default});var H6=z((k6,z6)=>{k6.__esModule=!0;var gP=function(){var _={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(K,P,j,w,O,v,h){var Y=v.length-1;switch(O){case 1:return v[Y-1];case 2:this.$=w.prepareProgram(v[Y]);break;case 3:this.$=v[Y];break;case 4:this.$=v[Y];break;case 5:this.$=v[Y];break;case 6:this.$=v[Y];break;case 7:this.$=v[Y];break;case 8:this.$=v[Y];break;case 9:this.$={type:"CommentStatement",value:w.stripComment(v[Y]),strip:w.stripFlags(v[Y],v[Y]),loc:w.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:v[Y],value:v[Y],loc:w.locInfo(this._$)};break;case 11:this.$=w.prepareRawBlock(v[Y-2],v[Y-1],v[Y],this._$);break;case 12:this.$={path:v[Y-3],params:v[Y-2],hash:v[Y-1]};break;case 13:this.$=w.prepareBlock(v[Y-3],v[Y-2],v[Y-1],v[Y],!1,this._$);break;case 14:this.$=w.prepareBlock(v[Y-3],v[Y-2],v[Y-1],v[Y],!0,this._$);break;case 15:this.$={open:v[Y-5],path:v[Y-4],params:v[Y-3],hash:v[Y-2],blockParams:v[Y-1],strip:w.stripFlags(v[Y-5],v[Y])};break;case 16:this.$={path:v[Y-4],params:v[Y-3],hash:v[Y-2],blockParams:v[Y-1],strip:w.stripFlags(v[Y-5],v[Y])};break;case 17:this.$={path:v[Y-4],params:v[Y-3],hash:v[Y-2],blockParams:v[Y-1],strip:w.stripFlags(v[Y-5],v[Y])};break;case 18:this.$={strip:w.stripFlags(v[Y-1],v[Y-1]),program:v[Y]};break;case 19:var r=w.prepareBlock(v[Y-2],v[Y-1],v[Y],v[Y],!1,this._$),k=w.prepareProgram([r],v[Y-1].loc);k.chained=!0,this.$={strip:v[Y-2].strip,program:k,chain:!0};break;case 20:this.$=v[Y];break;case 21:this.$={path:v[Y-1],strip:w.stripFlags(v[Y-2],v[Y])};break;case 22:this.$=w.prepareMustache(v[Y-3],v[Y-2],v[Y-1],v[Y-4],w.stripFlags(v[Y-4],v[Y]),this._$);break;case 23:this.$=w.prepareMustache(v[Y-3],v[Y-2],v[Y-1],v[Y-4],w.stripFlags(v[Y-4],v[Y]),this._$);break;case 24:this.$={type:"PartialStatement",name:v[Y-3],params:v[Y-2],hash:v[Y-1],indent:"",strip:w.stripFlags(v[Y-4],v[Y]),loc:w.locInfo(this._$)};break;case 25:this.$=w.preparePartialBlock(v[Y-2],v[Y-1],v[Y],this._$);break;case 26:this.$={path:v[Y-3],params:v[Y-2],hash:v[Y-1],strip:w.stripFlags(v[Y-4],v[Y])};break;case 27:this.$=v[Y];break;case 28:this.$=v[Y];break;case 29:this.$={type:"SubExpression",path:v[Y-3],params:v[Y-2],hash:v[Y-1],loc:w.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:v[Y],loc:w.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:w.id(v[Y-2]),value:v[Y],loc:w.locInfo(this._$)};break;case 32:this.$=w.id(v[Y-1]);break;case 33:this.$=v[Y];break;case 34:this.$=v[Y];break;case 35:this.$={type:"StringLiteral",value:v[Y],original:v[Y],loc:w.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(v[Y]),original:Number(v[Y]),loc:w.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:v[Y]==="true",original:v[Y]==="true",loc:w.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:w.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:w.locInfo(this._$)};break;case 40:this.$=v[Y];break;case 41:this.$=v[Y];break;case 42:this.$=w.preparePath(!0,v[Y],this._$);break;case 43:this.$=w.preparePath(!1,v[Y],this._$);break;case 44:v[Y-2].push({part:w.id(v[Y]),original:v[Y],separator:v[Y-1]}),this.$=v[Y-2];break;case 45:this.$=[{part:w.id(v[Y]),original:v[Y]}];break;case 46:this.$=[];break;case 47:v[Y-1].push(v[Y]);break;case 48:this.$=[];break;case 49:v[Y-1].push(v[Y]);break;case 50:this.$=[];break;case 51:v[Y-1].push(v[Y]);break;case 58:this.$=[];break;case 59:v[Y-1].push(v[Y]);break;case 64:this.$=[];break;case 65:v[Y-1].push(v[Y]);break;case 70:this.$=[];break;case 71:v[Y-1].push(v[Y]);break;case 78:this.$=[];break;case 79:v[Y-1].push(v[Y]);break;case 82:this.$=[];break;case 83:v[Y-1].push(v[Y]);break;case 86:this.$=[];break;case 87:v[Y-1].push(v[Y]);break;case 90:this.$=[];break;case 91:v[Y-1].push(v[Y]);break;case 94:this.$=[];break;case 95:v[Y-1].push(v[Y]);break;case 98:this.$=[v[Y]];break;case 99:v[Y-1].push(v[Y]);break;case 100:this.$=[v[Y]];break;case 101:v[Y-1].push(v[Y]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(K,P){throw Error(K)},parse:function(K){var P=this,j=[0],w=[null],O=[],v=this.table,h="",Y=0,r=0,k=0,W=2,m=1;if(this.lexer.setInput(K),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u")this.lexer.yylloc={};var a=this.lexer.yylloc;O.push(a);var n=this.lexer.options&&this.lexer.options.ranges;if(typeof this.yy.parseError==="function")this.parseError=this.yy.parseError;function D(V){j.length=j.length-2*V,w.length=w.length-V,O.length=O.length-V}function pq(){var V=P.lexer.lex()||1;if(typeof V!=="number")V=P.symbols_[V]||V;return V}var p,yq,x,d,B4,Dq,Q={},Xq,C,F_,eq;while(!0){if(x=j[j.length-1],this.defaultActions[x])d=this.defaultActions[x];else{if(p===null||typeof p>"u")p=pq();d=v[x]&&v[x][p]}if(typeof d>"u"||!d.length||!d[0]){var xq="";if(!k){eq=[];for(Xq in v[x])if(this.terminals_[Xq]&&Xq>2)eq.push("'"+this.terminals_[Xq]+"'");if(this.lexer.showPosition)xq="Parse error on line "+(Y+1)+`:
6
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`)}function gK(){Object.keys(iq).forEach(function(_){delete iq[_]})}});var bq=H((PP)=>{PP.__esModule=!0;PP.HandlebarsEnvironment=T_;function s$(_){return _&&_.__esModule?_:{default:_}}var s=p(),sK=t(),Y_=s$(sK),BK=v_(),UK=g$(),FK=w_(),aq=s$(FK),QK=O_(),qP="4.7.8";PP.VERSION=qP;var _P=8;PP.COMPILER_REVISION=_P;var $P=7;PP.LAST_COMPATIBLE_COMPILER_REVISION=$P;var fP={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};PP.REVISION_CHANGES=fP;var h_="[object Object]";function T_(_,q,$){this.helpers=_||{},this.partials=q||{},this.decorators=$||{},BK.registerDefaultHelpers(this),UK.registerDefaultDecorators(this)}T_.prototype={constructor:T_,logger:aq.default,log:aq.default.log,registerHelper:function(q,$){if(s.toString.call(q)===h_){if($)throw new Y_.default("Arg not supported with multiple helpers");s.extend(this.helpers,q)}else this.helpers[q]=$},unregisterHelper:function(q){delete this.helpers[q]},registerPartial:function(q,$){if(s.toString.call(q)===h_)s.extend(this.partials,q);else{if(typeof $>"u")throw new Y_.default('Attempting to register a partial called "'+q+'" as undefined');this.partials[q]=$}},unregisterPartial:function(q){delete this.partials[q]},registerDecorator:function(q,$){if(s.toString.call(q)===h_){if($)throw new Y_.default("Arg not supported with multiple decorators");s.extend(this.decorators,q)}else this.decorators[q]=$},unregisterDecorator:function(q){delete this.decorators[q]},resetLoggedPropertyAccesses:function(){QK.resetLoggedProperties()}};var KP=aq.default.log;PP.log=KP;PP.createFrame=s.createFrame;PP.logger=aq.default});var F$=H((B$,U$)=>{B$.__esModule=!0;function r_(_){this.string=_}r_.prototype.toString=r_.prototype.toHTML=function(){return""+this.string};B$.default=r_;U$.exports=B$.default});var Q$=H((JP)=>{JP.__esModule=!0;JP.wrapHelper=WP;function WP(_,q){if(typeof _!=="function")return _;var $=function(){var K=arguments[arguments.length-1];return arguments[arguments.length-1]=q(K),_.apply(this,arguments)};return $}});var K6=H((bP)=>{bP.__esModule=!0;bP.checkRevision=pP;bP.template=eP;bP.wrapProgram=Sq;bP.resolvePartial=dP;bP.invokePartial=tP;bP.noop=$6;function uP(_){return _&&_.__esModule?_:{default:_}}function oP(_){if(_&&_.__esModule)return _;else{var q={};if(_!=null){for(var $ in _)if(Object.prototype.hasOwnProperty.call(_,$))q[$]=_[$]}return q.default=_,q}}var nP=p(),M=oP(nP),AP=t(),N=uP(AP),c=bq(),q6=v_(),XP=Q$(),_6=O_();function pP(_){var q=_&&_[0]||1,$=c.COMPILER_REVISION;if(q>=c.LAST_COMPATIBLE_COMPILER_REVISION&&q<=c.COMPILER_REVISION)return;if(q<c.LAST_COMPATIBLE_COMPILER_REVISION){var f=c.REVISION_CHANGES[$],K=c.REVISION_CHANGES[q];throw new N.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+f+") or downgrade your runtime to an older version ("+K+").")}else throw new N.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+_[1]+").")}function eP(_,q){if(!q)throw new N.default("No environment passed to template");if(!_||!_.main)throw new N.default("Unknown template object: "+typeof _);_.main.decorator=_.main_d,q.VM.checkRevision(_.compiler);var $=_.compiler&&_.compiler[0]===7;function f(j,w,O){if(O.hash){if(w=M.extend({},w,O.hash),O.ids)O.ids[0]=!0}j=q.VM.resolvePartial.call(this,j,w,O);var v=M.extend({},O,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),h=q.VM.invokePartial.call(this,j,w,v);if(h==null&&q.compile)O.partials[O.name]=q.compile(j,_.compilerOptions,q),h=O.partials[O.name](w,v);if(h!=null){if(O.indent){var Y=h.split(`
7
+ `);for(var T=0,z=Y.length;T<z;T++){if(!Y[T]&&T+1===z)break;Y[T]=O.indent+Y[T]}h=Y.join(`
8
+ `)}return h}else throw new N.default("The partial "+O.name+" could not be compiled when running in runtime-only mode")}var K={strict:function(w,O,v){if(!w||!(O in w))throw new N.default('"'+O+'" not defined in '+w,{loc:v});return K.lookupProperty(w,O)},lookupProperty:function(w,O){var v=w[O];if(v==null)return v;if(Object.prototype.hasOwnProperty.call(w,O))return v;if(_6.resultIsAllowed(v,K.protoAccessControl,O))return v;return},lookup:function(w,O){var v=w.length;for(var h=0;h<v;h++){var Y=w[h]&&K.lookupProperty(w[h],O);if(Y!=null)return w[h][O]}},lambda:function(w,O){return typeof w==="function"?w.call(O):w},escapeExpression:M.escapeExpression,invokePartial:f,fn:function(w){var O=_[w];return O.decorator=_[w+"_d"],O},programs:[],program:function(w,O,v,h,Y){var T=this.programs[w],z=this.fn(w);if(O||Y||h||v)T=Sq(this,w,z,O,v,h,Y);else if(!T)T=this.programs[w]=Sq(this,w,z);return T},data:function(w,O){while(w&&O--)w=w._parent;return w},mergeIfNeeded:function(w,O){var v=w||O;if(w&&O&&w!==O)v=M.extend({},O,w);return v},nullContext:Object.seal({}),noop:q.VM.noop,compilerInfo:_.compiler};function P(j){var w=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],O=w.data;if(P._setup(w),!w.partial&&_.useData)O=GP(j,O);var v=void 0,h=_.useBlockParams?[]:void 0;if(_.useDepths)if(w.depths)v=j!=w.depths[0]?[j].concat(w.depths):w.depths;else v=[j];function Y(T){return""+_.main(K,T,K.helpers,K.partials,O,h,v)}return Y=f6(_.main,Y,K,w.depths||[],O,h),Y(j,w)}return P.isTop=!0,P._setup=function(j){if(!j.partial){var w=M.extend({},q.helpers,j.helpers);if(iP(w,K),K.helpers=w,_.usePartial)K.partials=K.mergeIfNeeded(j.partials,q.partials);if(_.usePartial||_.useDecorators)K.decorators=M.extend({},q.decorators,j.decorators);K.hooks={},K.protoAccessControl=_6.createProtoAccessControl(j);var O=j.allowCallsToHelperMissing||$;q6.moveHelperToHooks(K,"helperMissing",O),q6.moveHelperToHooks(K,"blockHelperMissing",O)}else K.protoAccessControl=j.protoAccessControl,K.helpers=j.helpers,K.partials=j.partials,K.decorators=j.decorators,K.hooks=j.hooks},P._child=function(j,w,O,v){if(_.useBlockParams&&!O)throw new N.default("must pass block params");if(_.useDepths&&!v)throw new N.default("must pass parent depths");return Sq(K,j,_[j],w,0,O,v)},P}function Sq(_,q,$,f,K,P,j){function w(O){var v=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=j;if(j&&O!=j[0]&&!(O===_.nullContext&&j[0]===null))h=[O].concat(j);return $(_,O,_.helpers,_.partials,v.data||f,P&&[v.blockParams].concat(P),h)}return w=f6($,w,_,j,f,P),w.program=q,w.depth=j?j.length:0,w.blockParams=K||0,w}function dP(_,q,$){if(!_)if($.name==="@partial-block")_=$.data["partial-block"];else _=$.partials[$.name];else if(!_.call&&!$.name)$.name=_,_=$.partials[_];return _}function tP(_,q,$){var f=$.data&&$.data["partial-block"];if($.partial=!0,$.ids)$.data.contextPath=$.ids[0]||$.data.contextPath;var K=void 0;if($.fn&&$.fn!==$6)(function(){$.data=c.createFrame($.data);var P=$.fn;if(K=$.data["partial-block"]=function(w){var O=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return O.data=c.createFrame(O.data),O.data["partial-block"]=f,P(w,O)},P.partials)$.partials=M.extend({},$.partials,P.partials)})();if(_===void 0&&K)_=K;if(_===void 0)throw new N.default("The partial "+$.name+" could not be found");else if(_ instanceof Function)return _(q,$)}function $6(){return""}function GP(_,q){if(!q||!("root"in q))q=q?c.createFrame(q):{},q.root=_;return q}function f6(_,q,$,f,K,P){if(_.decorator){var j={};q=_.decorator(q,j,$,f&&f[0],K,P,f),M.extend(q,j)}return q}function iP(_,q){Object.keys(_).forEach(function($){var f=_[$];_[$]=aP(f,q)})}function aP(_,q){var $=q.lookupProperty;return XP.wrapHelper(_,function(f){return M.extend({lookupProperty:$},f)})}});var k_=H((P6,j6)=>{P6.__esModule=!0;P6.default=function(_){(function(){if(typeof globalThis==="object")return;Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__})();var q=globalThis.Handlebars;_.noConflict=function(){if(globalThis.Handlebars===_)globalThis.Handlebars=q;return _}};j6.exports=P6.default});var T6=H((Y6,h6)=>{Y6.__esModule=!0;function H_(_){return _&&_.__esModule?_:{default:_}}function W_(_){if(_&&_.__esModule)return _;else{var q={};if(_!=null){for(var $ in _)if(Object.prototype.hasOwnProperty.call(_,$))q[$]=_[$]}return q.default=_,q}}var gP=bq(),v6=W_(gP),IP=F$(),yP=H_(IP),DP=t(),xP=H_(DP),LP=p(),z_=W_(LP),sP=K6(),w6=W_(sP),BP=k_(),UP=H_(BP);function O6(){var _=new v6.HandlebarsEnvironment;return z_.extend(_,v6),_.SafeString=yP.default,_.Exception=xP.default,_.Utils=z_,_.escapeExpression=z_.escapeExpression,_.VM=w6,_.template=function(q){return w6.template(q,_)},_}var Hq=O6();Hq.create=O6;UP.default(Hq);Hq.default=Hq;Y6.default=Hq;h6.exports=Y6.default});var J_=H((k6,z6)=>{k6.__esModule=!0;var r6={helpers:{helperExpression:function(q){return q.type==="SubExpression"||(q.type==="MustacheStatement"||q.type==="BlockStatement")&&!!(q.params&&q.params.length||q.hash)},scopedId:function(q){return/^\.|this\b/.test(q.original)},simpleId:function(q){return q.parts.length===1&&!r6.helpers.scopedId(q)&&!q.depth}}};k6.default=r6;z6.exports=k6.default});var J6=H((H6,W6)=>{H6.__esModule=!0;var $j=function(){var _={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(K,P,j,w,O,v,h){var Y=v.length-1;switch(O){case 1:return v[Y-1];case 2:this.$=w.prepareProgram(v[Y]);break;case 3:this.$=v[Y];break;case 4:this.$=v[Y];break;case 5:this.$=v[Y];break;case 6:this.$=v[Y];break;case 7:this.$=v[Y];break;case 8:this.$=v[Y];break;case 9:this.$={type:"CommentStatement",value:w.stripComment(v[Y]),strip:w.stripFlags(v[Y],v[Y]),loc:w.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:v[Y],value:v[Y],loc:w.locInfo(this._$)};break;case 11:this.$=w.prepareRawBlock(v[Y-2],v[Y-1],v[Y],this._$);break;case 12:this.$={path:v[Y-3],params:v[Y-2],hash:v[Y-1]};break;case 13:this.$=w.prepareBlock(v[Y-3],v[Y-2],v[Y-1],v[Y],!1,this._$);break;case 14:this.$=w.prepareBlock(v[Y-3],v[Y-2],v[Y-1],v[Y],!0,this._$);break;case 15:this.$={open:v[Y-5],path:v[Y-4],params:v[Y-3],hash:v[Y-2],blockParams:v[Y-1],strip:w.stripFlags(v[Y-5],v[Y])};break;case 16:this.$={path:v[Y-4],params:v[Y-3],hash:v[Y-2],blockParams:v[Y-1],strip:w.stripFlags(v[Y-5],v[Y])};break;case 17:this.$={path:v[Y-4],params:v[Y-3],hash:v[Y-2],blockParams:v[Y-1],strip:w.stripFlags(v[Y-5],v[Y])};break;case 18:this.$={strip:w.stripFlags(v[Y-1],v[Y-1]),program:v[Y]};break;case 19:var T=w.prepareBlock(v[Y-2],v[Y-1],v[Y],v[Y],!1,this._$),z=w.prepareProgram([T],v[Y-1].loc);z.chained=!0,this.$={strip:v[Y-2].strip,program:z,chain:!0};break;case 20:this.$=v[Y];break;case 21:this.$={path:v[Y-1],strip:w.stripFlags(v[Y-2],v[Y])};break;case 22:this.$=w.prepareMustache(v[Y-3],v[Y-2],v[Y-1],v[Y-4],w.stripFlags(v[Y-4],v[Y]),this._$);break;case 23:this.$=w.prepareMustache(v[Y-3],v[Y-2],v[Y-1],v[Y-4],w.stripFlags(v[Y-4],v[Y]),this._$);break;case 24:this.$={type:"PartialStatement",name:v[Y-3],params:v[Y-2],hash:v[Y-1],indent:"",strip:w.stripFlags(v[Y-4],v[Y]),loc:w.locInfo(this._$)};break;case 25:this.$=w.preparePartialBlock(v[Y-2],v[Y-1],v[Y],this._$);break;case 26:this.$={path:v[Y-3],params:v[Y-2],hash:v[Y-1],strip:w.stripFlags(v[Y-4],v[Y])};break;case 27:this.$=v[Y];break;case 28:this.$=v[Y];break;case 29:this.$={type:"SubExpression",path:v[Y-3],params:v[Y-2],hash:v[Y-1],loc:w.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:v[Y],loc:w.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:w.id(v[Y-2]),value:v[Y],loc:w.locInfo(this._$)};break;case 32:this.$=w.id(v[Y-1]);break;case 33:this.$=v[Y];break;case 34:this.$=v[Y];break;case 35:this.$={type:"StringLiteral",value:v[Y],original:v[Y],loc:w.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(v[Y]),original:Number(v[Y]),loc:w.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:v[Y]==="true",original:v[Y]==="true",loc:w.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:w.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:w.locInfo(this._$)};break;case 40:this.$=v[Y];break;case 41:this.$=v[Y];break;case 42:this.$=w.preparePath(!0,v[Y],this._$);break;case 43:this.$=w.preparePath(!1,v[Y],this._$);break;case 44:v[Y-2].push({part:w.id(v[Y]),original:v[Y],separator:v[Y-1]}),this.$=v[Y-2];break;case 45:this.$=[{part:w.id(v[Y]),original:v[Y]}];break;case 46:this.$=[];break;case 47:v[Y-1].push(v[Y]);break;case 48:this.$=[];break;case 49:v[Y-1].push(v[Y]);break;case 50:this.$=[];break;case 51:v[Y-1].push(v[Y]);break;case 58:this.$=[];break;case 59:v[Y-1].push(v[Y]);break;case 64:this.$=[];break;case 65:v[Y-1].push(v[Y]);break;case 70:this.$=[];break;case 71:v[Y-1].push(v[Y]);break;case 78:this.$=[];break;case 79:v[Y-1].push(v[Y]);break;case 82:this.$=[];break;case 83:v[Y-1].push(v[Y]);break;case 86:this.$=[];break;case 87:v[Y-1].push(v[Y]);break;case 90:this.$=[];break;case 91:v[Y-1].push(v[Y]);break;case 94:this.$=[];break;case 95:v[Y-1].push(v[Y]);break;case 98:this.$=[v[Y]];break;case 99:v[Y-1].push(v[Y]);break;case 100:this.$=[v[Y]];break;case 101:v[Y-1].push(v[Y]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(K,P){throw Error(K)},parse:function(K){var P=this,j=[0],w=[null],O=[],v=this.table,h="",Y=0,T=0,z=0,W=2,m=1;if(this.lexer.setInput(K),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u")this.lexer.yylloc={};var a=this.lexer.yylloc;O.push(a);var n=this.lexer.options&&this.lexer.options.ranges;if(typeof this.yy.parseError==="function")this.parseError=this.yy.parseError;function D(V){j.length=j.length-2*V,w.length=w.length-V,O.length=O.length-V}function Xq(){var V=P.lexer.lex()||1;if(typeof V!=="number")V=P.symbols_[V]||V;return V}var X,yq,x,d,J7,Dq,_q={},pq,l,$$,eq;while(!0){if(x=j[j.length-1],this.defaultActions[x])d=this.defaultActions[x];else{if(X===null||typeof X>"u")X=Xq();d=v[x]&&v[x][X]}if(typeof d>"u"||!d.length||!d[0]){var xq="";if(!z){eq=[];for(pq in v[x])if(this.terminals_[pq]&&pq>2)eq.push("'"+this.terminals_[pq]+"'");if(this.lexer.showPosition)xq="Parse error on line "+(Y+1)+`:
9
9
  `+this.lexer.showPosition()+`
10
- Expecting `+eq.join(", ")+", got '"+(this.terminals_[p]||p)+"'";else xq="Parse error on line "+(Y+1)+": Unexpected "+(p==1?"end of input":"'"+(this.terminals_[p]||p)+"'");this.parseError(xq,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:a,expected:eq})}}if(d[0]instanceof Array&&d.length>1)throw Error("Parse Error: multiple actions possible at state: "+x+", token: "+p);switch(d[0]){case 1:if(j.push(p),w.push(this.lexer.yytext),O.push(this.lexer.yylloc),j.push(d[1]),p=null,!yq){if(r=this.lexer.yyleng,h=this.lexer.yytext,Y=this.lexer.yylineno,a=this.lexer.yylloc,k>0)k--}else p=yq,yq=null;break;case 2:if(C=this.productions_[d[1]][1],Q.$=w[w.length-C],Q._$={first_line:O[O.length-(C||1)].first_line,last_line:O[O.length-1].last_line,first_column:O[O.length-(C||1)].first_column,last_column:O[O.length-1].last_column},n)Q._$.range=[O[O.length-(C||1)].range[0],O[O.length-1].range[1]];if(Dq=this.performAction.call(Q,h,r,Y,this.yy,d[1],w,O),typeof Dq<"u")return Dq;if(C)j=j.slice(0,-1*C*2),w=w.slice(0,-1*C),O=O.slice(0,-1*C);j.push(this.productions_[d[1]][0]),w.push(Q.$),O.push(Q._$),F_=v[j[j.length-2]][j[j.length-1]],j.push(F_);break;case 3:return!0}}return!0}},q=function(){var f={EOF:1,parseError:function(P,j){if(this.yy.parser)this.yy.parser.parseError(P,j);else throw Error(P)},setInput:function(P){if(this._input=P,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},input:function(){var P=this._input[0];this.yytext+=P,this.yyleng++,this.offset++,this.match+=P,this.matched+=P;var j=P.match(/(?:\r\n?|\n).*/g);if(j)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),P},unput:function(P){var j=P.length,w=P.split(/(?:\r\n?|\n)/g);this._input=P+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-j-1),this.offset-=j;var O=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),w.length-1)this.yylineno-=w.length-1;var v=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:w?(w.length===O.length?this.yylloc.first_column:0)+O[O.length-w.length].length-w[0].length:this.yylloc.first_column-j},this.options.ranges)this.yylloc.range=[v[0],v[0]+this.yyleng-j];return this},more:function(){return this._more=!0,this},less:function(P){this.unput(this.match.slice(P))},pastInput:function(){var P=this.matched.substr(0,this.matched.length-this.match.length);return(P.length>20?"...":"")+P.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var P=this.match;if(P.length<20)P+=this._input.substr(0,20-P.length);return(P.substr(0,20)+(P.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var P=this.pastInput(),j=Array(P.length+1).join("-");return P+this.upcomingInput()+`
11
- `+j+"^"},next:function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var P,j,w,O,v,h;if(!this._more)this.yytext="",this.match="";var Y=this._currentRules();for(var r=0;r<Y.length;r++)if(w=this._input.match(this.rules[Y[r]]),w&&(!j||w[0].length>j[0].length)){if(j=w,O=r,!this.options.flex)break}if(j){if(h=j[0].match(/(?:\r\n?|\n).*/g),h)this.yylineno+=h.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+j[0].length},this.yytext+=j[0],this.match+=j[0],this.matches=j,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._input=this._input.slice(j[0].length),this.matched+=j[0],P=this.performAction.call(this,this.yy,this,Y[O],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(P)return P;else return}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
12
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var P=this.next();if(typeof P<"u")return P;else return this.lex()},begin:function(P){this.conditionStack.push(P)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(P){this.begin(P)}};return f.options={},f.performAction=function(P,j,w,O){function v(Y,r){return j.yytext=j.yytext.substring(Y,j.yyleng-r+Y)}var h=O;switch(w){case 0:if(j.yytext.slice(-2)==="\\\\")v(0,1),this.begin("mu");else if(j.yytext.slice(-1)==="\\")v(0,1),this.begin("emu");else this.begin("mu");if(j.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:if(this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw")return 15;else return v(5,9),"END_RAW_BLOCK";break;case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(j.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return j.yytext=v(1,2).replace(/\\"/g,'"'),80;break;case 32:return j.yytext=v(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return j.yytext=j.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},f.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],f.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},f}();_.lexer=q;function $(){this.yy={}}return $.prototype=_,_.Parser=$,new $}();k6.default=gP;z6.exports=k6.default});var Vq=z((Z6,m6)=>{Z6.__esModule=!0;function DP(_){return _&&_.__esModule?_:{default:_}}var xP=t(),W_=DP(xP);function Sq(){this.parents=[]}Sq.prototype={constructor:Sq,mutating:!1,acceptKey:function(q,$){var f=this.accept(q[$]);if(this.mutating){if(f&&!Sq.prototype[f.type])throw new W_.default('Unexpected node type "'+f.type+'" found when accepting '+$+" on "+q.type);q[$]=f}},acceptRequired:function(q,$){if(this.acceptKey(q,$),!q[$])throw new W_.default(q.type+" requires "+$)},acceptArray:function(q){for(var $=0,f=q.length;$<f;$++)if(this.acceptKey(q,$),!q[$])q.splice($,1),$--,f--},accept:function(q){if(!q)return;if(!this[q.type])throw new W_.default("Unknown type: "+q.type,q);if(this.current)this.parents.unshift(this.current);this.current=q;var $=this[q.type](q);if(this.current=this.parents.shift(),!this.mutating||$)return $;else if($!==!1)return q},Program:function(q){this.acceptArray(q.body)},MustacheStatement:Cq,Decorator:Cq,BlockStatement:W6,DecoratorBlock:W6,PartialStatement:J6,PartialBlockStatement:function(q){J6.call(this,q),this.acceptKey(q,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:Cq,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(q){this.acceptArray(q.pairs)},HashPair:function(q){this.acceptRequired(q,"value")}};function Cq(_){this.acceptRequired(_,"path"),this.acceptArray(_.params),this.acceptKey(_,"hash")}function W6(_){Cq.call(this,_),this.acceptKey(_,"program"),this.acceptKey(_,"inverse")}function J6(_){this.acceptRequired(_,"name"),this.acceptArray(_.params),this.acceptKey(_,"hash")}Z6.default=Sq;m6.exports=Z6.default});var n6=z((u6,o6)=>{u6.__esModule=!0;function BP(_){return _&&_.__esModule?_:{default:_}}var UP=Vq(),FP=BP(UP);function S(){var _=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=_}S.prototype=new FP.default;S.prototype.Program=function(_){var q=!this.options.ignoreStandalone,$=!this.isRootSeen;this.isRootSeen=!0;var f=_.body;for(var K=0,P=f.length;K<P;K++){var j=f[K],w=this.accept(j);if(!w)continue;var O=J_(f,K,$),v=Z_(f,K,$),h=w.openStandalone&&O,Y=w.closeStandalone&&v,r=w.inlineStandalone&&O&&v;if(w.close)B(f,K,!0);if(w.open)y(f,K,!0);if(q&&r){if(B(f,K),y(f,K)){if(j.type==="PartialStatement")j.indent=/([ \t]+$)/.exec(f[K-1].original)[1]}}if(q&&h)B((j.program||j.inverse).body),y(f,K);if(q&&Y)B(f,K),y((j.inverse||j.program).body)}return _};S.prototype.BlockStatement=S.prototype.DecoratorBlock=S.prototype.PartialBlockStatement=function(_){this.accept(_.program),this.accept(_.inverse);var q=_.program||_.inverse,$=_.program&&_.inverse,f=$,K=$;if($&&$.chained){f=$.body[0].program;while(K.chained)K=K.body[K.body.length-1].program}var P={open:_.openStrip.open,close:_.closeStrip.close,openStandalone:Z_(q.body),closeStandalone:J_((f||q).body)};if(_.openStrip.close)B(q.body,null,!0);if($){var j=_.inverseStrip;if(j.open)y(q.body,null,!0);if(j.close)B(f.body,null,!0);if(_.closeStrip.open)y(K.body,null,!0);if(!this.options.ignoreStandalone&&J_(q.body)&&Z_(f.body))y(q.body),B(f.body)}else if(_.closeStrip.open)y(q.body,null,!0);return P};S.prototype.Decorator=S.prototype.MustacheStatement=function(_){return _.strip};S.prototype.PartialStatement=S.prototype.CommentStatement=function(_){var q=_.strip||{};return{inlineStandalone:!0,open:q.open,close:q.close}};function J_(_,q,$){if(q===void 0)q=_.length;var f=_[q-1],K=_[q-2];if(!f)return $;if(f.type==="ContentStatement")return(K||!$?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function Z_(_,q,$){if(q===void 0)q=-1;var f=_[q+1],K=_[q+2];if(!f)return $;if(f.type==="ContentStatement")return(K||!$?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function B(_,q,$){var f=_[q==null?0:q+1];if(!f||f.type!=="ContentStatement"||!$&&f.rightStripped)return;var K=f.value;f.value=f.value.replace($?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==K}function y(_,q,$){var f=_[q==null?_.length-1:q-1];if(!f||f.type!=="ContentStatement"||!$&&f.leftStripped)return;var K=f.value;return f.value=f.value.replace($?/\s+$/:/[ \t]+$/,""),f.leftStripped=f.value!==K,f.leftStripped}u6.default=S;o6.exports=u6.default});var A6=z((Tj)=>{Tj.__esModule=!0;Tj.SourceLocation=fj;Tj.id=Kj;Tj.stripFlags=Pj;Tj.stripComment=jj;Tj.preparePath=vj;Tj.prepareMustache=wj;Tj.prepareRawBlock=Oj;Tj.prepareBlock=Yj;Tj.prepareProgram=hj;Tj.preparePartialBlock=rj;function _j(_){return _&&_.__esModule?_:{default:_}}var $j=t(),m_=_j($j);function u_(_,q){if(q=q.path?q.path.original:q,_.path.original!==q){var $={loc:_.path.loc};throw new m_.default(_.path.original+" doesn't match "+q,$)}}function fj(_,q){this.source=_,this.start={line:q.first_line,column:q.first_column},this.end={line:q.last_line,column:q.last_column}}function Kj(_){if(/^\[.*\]$/.test(_))return _.substring(1,_.length-1);else return _}function Pj(_,q){return{open:_.charAt(2)==="~",close:q.charAt(q.length-3)==="~"}}function jj(_){return _.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function vj(_,q,$){$=this.locInfo($);var f=_?"@":"",K=[],P=0;for(var j=0,w=q.length;j<w;j++){var O=q[j].part,v=q[j].original!==O;if(f+=(q[j].separator||"")+O,!v&&(O===".."||O==="."||O==="this")){if(K.length>0)throw new m_.default("Invalid path: "+f,{loc:$});else if(O==="..")P++}else K.push(O)}return{type:"PathExpression",data:_,depth:P,parts:K,original:f,loc:$}}function wj(_,q,$,f,K,P){var j=f.charAt(3)||f.charAt(2),w=j!=="{"&&j!=="&",O=/\*/.test(f);return{type:O?"Decorator":"MustacheStatement",path:_,params:q,hash:$,escaped:w,strip:K,loc:this.locInfo(P)}}function Oj(_,q,$,f){u_(_,$),f=this.locInfo(f);var K={type:"Program",body:q,strip:{},loc:f};return{type:"BlockStatement",path:_.path,params:_.params,hash:_.hash,program:K,openStrip:{},inverseStrip:{},closeStrip:{},loc:f}}function Yj(_,q,$,f,K,P){if(f&&f.path)u_(_,f);var j=/\*/.test(_.open);q.blockParams=_.blockParams;var w=void 0,O=void 0;if($){if(j)throw new m_.default("Unexpected inverse block on decorator",$);if($.chain)$.program.body[0].closeStrip=f.strip;O=$.strip,w=$.program}if(K)K=w,w=q,q=K;return{type:j?"DecoratorBlock":"BlockStatement",path:_.path,params:_.params,hash:_.hash,program:q,inverse:w,openStrip:_.strip,inverseStrip:O,closeStrip:f&&f.strip,loc:this.locInfo(P)}}function hj(_,q){if(!q&&_.length){var $=_[0].loc,f=_[_.length-1].loc;if($&&f)q={source:$.source,start:{line:$.start.line,column:$.start.column},end:{line:f.end.line,column:f.end.column}}}return{type:"Program",body:_,strip:{},loc:q}}function rj(_,q,$,f){return u_(_,$),{type:"PartialBlockStatement",name:_.path,params:_.params,hash:_.hash,program:q,openStrip:_.strip,closeStrip:$&&$.strip,loc:this.locInfo(f)}}});var e6=z((bj)=>{bj.__esModule=!0;bj.parseWithoutProcessing=X6;bj.parse=aj;function pj(_){if(_&&_.__esModule)return _;else{var q={};if(_!=null){for(var $ in _)if(Object.prototype.hasOwnProperty.call(_,$))q[$]=_[$]}return q.default=_,q}}function p6(_){return _&&_.__esModule?_:{default:_}}var Xj=H6(),o_=p6(Xj),ej=n6(),dj=p6(ej),tj=A6(),Gj=pj(tj),ij=X();bj.parser=o_.default;var Mq={};ij.extend(Mq,Gj);function X6(_,q){if(_.type==="Program")return _;o_.default.yy=Mq,Mq.locInfo=function(f){return new Mq.SourceLocation(q&&q.srcName,f)};var $=o_.default.parse(_);return $}function aj(_,q){var $=X6(_,q),f=new dj.default(q);return f.accept($)}});var i6=z((gj)=>{gj.__esModule=!0;gj.Compiler=n_;gj.precompile=Ej;gj.compile=Rj;function t6(_){return _&&_.__esModule?_:{default:_}}var Mj=t(),Hq=t6(Mj),Wq=X(),Nj=H_(),zq=t6(Nj),cj=[].slice;function n_(){}n_.prototype={compiler:n_,equals:function(q){var $=this.opcodes.length;if(q.opcodes.length!==$)return!1;for(var f=0;f<$;f++){var K=this.opcodes[f],P=q.opcodes[f];if(K.opcode!==P.opcode||!G6(K.args,P.args))return!1}$=this.children.length;for(var f=0;f<$;f++)if(!this.children[f].equals(q.children[f]))return!1;return!0},guid:0,compile:function(q,$){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=$,this.stringParams=$.stringParams,this.trackIds=$.trackIds,$.blockParams=$.blockParams||[],$.knownHelpers=Wq.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},$.knownHelpers),this.accept(q)},compileProgram:function(q){var $=new this.compiler,f=$.compile(q,this.options),K=this.guid++;return this.usePartial=this.usePartial||f.usePartial,this.children[K]=f,this.useDepths=this.useDepths||f.useDepths,K},accept:function(q){if(!this[q.type])throw new Hq.default("Unknown type: "+q.type,q);this.sourceNode.unshift(q);var $=this[q.type](q);return this.sourceNode.shift(),$},Program:function(q){this.options.blockParams.unshift(q.blockParams);var $=q.body,f=$.length;for(var K=0;K<f;K++)this.accept($[K]);return this.options.blockParams.shift(),this.isSimple=f===1,this.blockParams=q.blockParams?q.blockParams.length:0,this},BlockStatement:function(q){d6(q);var{program:$,inverse:f}=q;$=$&&this.compileProgram($),f=f&&this.compileProgram(f);var K=this.classifySexpr(q);if(K==="helper")this.helperSexpr(q,$,f);else if(K==="simple")this.simpleSexpr(q),this.opcode("pushProgram",$),this.opcode("pushProgram",f),this.opcode("emptyHash"),this.opcode("blockValue",q.path.original);else this.ambiguousSexpr(q,$,f),this.opcode("pushProgram",$),this.opcode("pushProgram",f),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue");this.opcode("append")},DecoratorBlock:function(q){var $=q.program&&this.compileProgram(q.program),f=this.setupFullMustacheParams(q,$,void 0),K=q.path;this.useDecorators=!0,this.opcode("registerDecorator",f.length,K.original)},PartialStatement:function(q){this.usePartial=!0;var $=q.program;if($)$=this.compileProgram(q.program);var f=q.params;if(f.length>1)throw new Hq.default("Unsupported number of partial arguments: "+f.length,q);else if(!f.length)if(this.options.explicitPartialContext)this.opcode("pushLiteral","undefined");else f.push({type:"PathExpression",parts:[],depth:0});var K=q.name.original,P=q.name.type==="SubExpression";if(P)this.accept(q.name);this.setupFullMustacheParams(q,$,void 0,!0);var j=q.indent||"";if(this.options.preventIndent&&j)this.opcode("appendContent",j),j="";this.opcode("invokePartial",P,K,j),this.opcode("append")},PartialBlockStatement:function(q){this.PartialStatement(q)},MustacheStatement:function(q){if(this.SubExpression(q),q.escaped&&!this.options.noEscape)this.opcode("appendEscaped");else this.opcode("append")},Decorator:function(q){this.DecoratorBlock(q)},ContentStatement:function(q){if(q.value)this.opcode("appendContent",q.value)},CommentStatement:function(){},SubExpression:function(q){d6(q);var $=this.classifySexpr(q);if($==="simple")this.simpleSexpr(q);else if($==="helper")this.helperSexpr(q);else this.ambiguousSexpr(q)},ambiguousSexpr:function(q,$,f){var K=q.path,P=K.parts[0],j=$!=null||f!=null;this.opcode("getContext",K.depth),this.opcode("pushProgram",$),this.opcode("pushProgram",f),K.strict=!0,this.accept(K),this.opcode("invokeAmbiguous",P,j)},simpleSexpr:function(q){var $=q.path;$.strict=!0,this.accept($),this.opcode("resolvePossibleLambda")},helperSexpr:function(q,$,f){var K=this.setupFullMustacheParams(q,$,f),P=q.path,j=P.parts[0];if(this.options.knownHelpers[j])this.opcode("invokeKnownHelper",K.length,j);else if(this.options.knownHelpersOnly)throw new Hq.default("You specified knownHelpersOnly, but used the unknown helper "+j,q);else P.strict=!0,P.falsy=!0,this.accept(P),this.opcode("invokeHelper",K.length,P.original,zq.default.helpers.simpleId(P))},PathExpression:function(q){this.addDepth(q.depth),this.opcode("getContext",q.depth);var $=q.parts[0],f=zq.default.helpers.scopedId(q),K=!q.depth&&!f&&this.blockParamIndex($);if(K)this.opcode("lookupBlockParam",K,q.parts);else if(!$)this.opcode("pushContext");else if(q.data)this.options.data=!0,this.opcode("lookupData",q.depth,q.parts,q.strict);else this.opcode("lookupOnContext",q.parts,q.falsy,q.strict,f)},StringLiteral:function(q){this.opcode("pushString",q.value)},NumberLiteral:function(q){this.opcode("pushLiteral",q.value)},BooleanLiteral:function(q){this.opcode("pushLiteral",q.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(q){var $=q.pairs,f=0,K=$.length;this.opcode("pushHash");for(;f<K;f++)this.pushParam($[f].value);while(f--)this.opcode("assignToHash",$[f].key);this.opcode("popHash")},opcode:function(q){this.opcodes.push({opcode:q,args:cj.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(q){if(!q)return;this.useDepths=!0},classifySexpr:function(q){var $=zq.default.helpers.simpleId(q.path),f=$&&!!this.blockParamIndex(q.path.parts[0]),K=!f&&zq.default.helpers.helperExpression(q),P=!f&&(K||$);if(P&&!K){var j=q.path.parts[0],w=this.options;if(w.knownHelpers[j])K=!0;else if(w.knownHelpersOnly)P=!1}if(K)return"helper";else if(P)return"ambiguous";else return"simple"},pushParams:function(q){for(var $=0,f=q.length;$<f;$++)this.pushParam(q[$])},pushParam:function(q){var $=q.value!=null?q.value:q.original||"";if(this.stringParams){if($.replace)$=$.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".");if(q.depth)this.addDepth(q.depth);if(this.opcode("getContext",q.depth||0),this.opcode("pushStringParam",$,q.type),q.type==="SubExpression")this.accept(q)}else{if(this.trackIds){var f=void 0;if(q.parts&&!zq.default.helpers.scopedId(q)&&!q.depth)f=this.blockParamIndex(q.parts[0]);if(f){var K=q.parts.slice(1).join(".");this.opcode("pushId","BlockParam",f,K)}else{if($=q.original||$,$.replace)$=$.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"");this.opcode("pushId",q.type,$)}}this.accept(q)}},setupFullMustacheParams:function(q,$,f,K){var P=q.params;if(this.pushParams(P),this.opcode("pushProgram",$),this.opcode("pushProgram",f),q.hash)this.accept(q.hash);else this.opcode("emptyHash",K);return P},blockParamIndex:function(q){for(var $=0,f=this.options.blockParams.length;$<f;$++){var K=this.options.blockParams[$],P=K&&Wq.indexOf(K,q);if(K&&P>=0)return[$,P]}}};function Ej(_,q,$){if(_==null||typeof _!=="string"&&_.type!=="Program")throw new Hq.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+_);if(q=q||{},!("data"in q))q.data=!0;if(q.compat)q.useDepths=!0;var f=$.parse(_,q),K=new $.Compiler().compile(f,q);return new $.JavaScriptCompiler().compile(K,q)}function Rj(_,q,$){if(q===void 0)q={};if(_==null||typeof _!=="string"&&_.type!=="Program")throw new Hq.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+_);if(q=Wq.extend({},q),!("data"in q))q.data=!0;if(q.compat)q.useDepths=!0;var f=void 0;function K(){var j=$.parse(_,q),w=new $.Compiler().compile(j,q),O=new $.JavaScriptCompiler().compile(w,q,void 0,!0);return $.template(O)}function P(j,w){if(!f)f=K();return f.call(this,j,w)}return P._setup=function(j){if(!f)f=K();return f._setup(j)},P._child=function(j,w,O,v){if(!f)f=K();return f._child(j,w,O,v)},P}function G6(_,q){if(_===q)return!0;if(Wq.isArray(_)&&Wq.isArray(q)&&_.length===q.length){for(var $=0;$<_.length;$++)if(!G6(_[$],q[$]))return!1;return!0}}function d6(_){if(!_.path.parts){var q=_.path;_.path={type:"PathExpression",data:!1,depth:0,parts:[q.original+""],original:q.original+"",loc:q.loc}}}});var b6=z((Lj)=>{var a6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Lj.encode=function(_){if(0<=_&&_<a6.length)return a6[_];throw TypeError("Must be between 0 and 63: "+_)};Lj.decode=function(_){var q=65,$=90,f=97,K=122,P=48,j=57,w=43,O=47,v=26,h=52;if(q<=_&&_<=$)return _-q;if(f<=_&&_<=K)return _-f+v;if(P<=_&&_<=j)return _-P+h;if(_==w)return 62;if(_==O)return 63;return-1}});var p_=z((Qj)=>{var l6=b6(),A_=5,S6=1<<A_,C6=S6-1,V6=S6;function Uj(_){return _<0?(-_<<1)+1:(_<<1)+0}function Fj(_){var q=(_&1)===1,$=_>>1;return q?-$:$}Qj.encode=function(q){var $="",f,K=Uj(q);do{if(f=K&C6,K>>>=A_,K>0)f|=V6;$+=l6.encode(f)}while(K>0);return $};Qj.decode=function(q,$,f){var K=q.length,P=0,j=0,w,O;do{if($>=K)throw Error("Expected more digits in base 64 VLQ value.");if(O=l6.decode(q.charCodeAt($++)),O===-1)throw Error("Invalid base64 digit: "+q.charAt($-1));w=!!(O&V6),O&=C6,P=P+(O<<j),j+=A_}while(w);f.value=Fj(P),f.rest=$}});var Kq=z((r3)=>{function $3(_,q,$){if(q in _)return _[q];else if(arguments.length===3)return $;else throw Error('"'+q+'" is a required argument.')}r3.getArg=$3;var M6=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,f3=/^data:.+\,.+$/;function Jq(_){var q=_.match(M6);if(!q)return null;return{scheme:q[1],auth:q[2],host:q[3],port:q[4],path:q[5]}}r3.urlParse=Jq;function $q(_){var q="";if(_.scheme)q+=_.scheme+":";if(q+="//",_.auth)q+=_.auth+"@";if(_.host)q+=_.host;if(_.port)q+=":"+_.port;if(_.path)q+=_.path;return q}r3.urlGenerate=$q;function X_(_){var q=_,$=Jq(_);if($){if(!$.path)return _;q=$.path}var f=r3.isAbsolute(q),K=q.split(/\/+/);for(var P,j=0,w=K.length-1;w>=0;w--)if(P=K[w],P===".")K.splice(w,1);else if(P==="..")j++;else if(j>0)if(P==="")K.splice(w+1,j),j=0;else K.splice(w,2),j--;if(q=K.join("/"),q==="")q=f?"/":".";if($)return $.path=q,$q($);return q}r3.normalize=X_;function N6(_,q){if(_==="")_=".";if(q==="")q=".";var $=Jq(q),f=Jq(_);if(f)_=f.path||"/";if($&&!$.scheme){if(f)$.scheme=f.scheme;return $q($)}if($||q.match(f3))return q;if(f&&!f.host&&!f.path)return f.host=q,$q(f);var K=q.charAt(0)==="/"?q:X_(_.replace(/\/+$/,"")+"/"+q);if(f)return f.path=K,$q(f);return K}r3.join=N6;r3.isAbsolute=function(_){return _.charAt(0)==="/"||M6.test(_)};function K3(_,q){if(_==="")_=".";_=_.replace(/\/$/,"");var $=0;while(q.indexOf(_+"/")!==0){var f=_.lastIndexOf("/");if(f<0)return q;if(_=_.slice(0,f),_.match(/^([^\/]+:\/)?\/*$/))return q;++$}return Array($+1).join("../")+q.substr(_.length+1)}r3.relative=K3;var c6=function(){var _=Object.create(null);return!("__proto__"in _)}();function E6(_){return _}function P3(_){if(R6(_))return"$"+_;return _}r3.toSetString=c6?E6:P3;function j3(_){if(R6(_))return _.slice(1);return _}r3.fromSetString=c6?E6:j3;function R6(_){if(!_)return!1;var q=_.length;if(q<9)return!1;if(_.charCodeAt(q-1)!==95||_.charCodeAt(q-2)!==95||_.charCodeAt(q-3)!==111||_.charCodeAt(q-4)!==116||_.charCodeAt(q-5)!==111||_.charCodeAt(q-6)!==114||_.charCodeAt(q-7)!==112||_.charCodeAt(q-8)!==95||_.charCodeAt(q-9)!==95)return!1;for(var $=q-10;$>=0;$--)if(_.charCodeAt($)!==36)return!1;return!0}function v3(_,q,$){var f=fq(_.source,q.source);if(f!==0)return f;if(f=_.originalLine-q.originalLine,f!==0)return f;if(f=_.originalColumn-q.originalColumn,f!==0||$)return f;if(f=_.generatedColumn-q.generatedColumn,f!==0)return f;if(f=_.generatedLine-q.generatedLine,f!==0)return f;return fq(_.name,q.name)}r3.compareByOriginalPositions=v3;function w3(_,q,$){var f=_.generatedLine-q.generatedLine;if(f!==0)return f;if(f=_.generatedColumn-q.generatedColumn,f!==0||$)return f;if(f=fq(_.source,q.source),f!==0)return f;if(f=_.originalLine-q.originalLine,f!==0)return f;if(f=_.originalColumn-q.originalColumn,f!==0)return f;return fq(_.name,q.name)}r3.compareByGeneratedPositionsDeflated=w3;function fq(_,q){if(_===q)return 0;if(_===null)return 1;if(q===null)return-1;if(_>q)return 1;return-1}function O3(_,q){var $=_.generatedLine-q.generatedLine;if($!==0)return $;if($=_.generatedColumn-q.generatedColumn,$!==0)return $;if($=fq(_.source,q.source),$!==0)return $;if($=_.originalLine-q.originalLine,$!==0)return $;if($=_.originalColumn-q.originalColumn,$!==0)return $;return fq(_.name,q.name)}r3.compareByGeneratedPositionsInflated=O3;function Y3(_){return JSON.parse(_.replace(/^\)]}'[^\n]*\n/,""))}r3.parseSourceMapInput=Y3;function h3(_,q,$){if(q=q||"",_){if(_[_.length-1]!=="/"&&q[0]!=="/")_+="/";q=_+q}if($){var f=Jq($);if(!f)throw Error("sourceMapURL could not be parsed");if(f.path){var K=f.path.lastIndexOf("/");if(K>=0)f.path=f.path.substring(0,K+1)}q=N6($q(f),q)}return X_(q)}r3.computeSourceURL=h3});var t_=z((e3)=>{var e_=Kq(),d_=Object.prototype.hasOwnProperty,U=typeof Map<"u";function E(){this._array=[],this._set=U?new Map:Object.create(null)}E.fromArray=function(q,$){var f=new E;for(var K=0,P=q.length;K<P;K++)f.add(q[K],$);return f};E.prototype.size=function(){return U?this._set.size:Object.getOwnPropertyNames(this._set).length};E.prototype.add=function(q,$){var f=U?q:e_.toSetString(q),K=U?this.has(q):d_.call(this._set,f),P=this._array.length;if(!K||$)this._array.push(q);if(!K)if(U)this._set.set(q,P);else this._set[f]=P};E.prototype.has=function(q){if(U)return this._set.has(q);else{var $=e_.toSetString(q);return d_.call(this._set,$)}};E.prototype.indexOf=function(q){if(U){var $=this._set.get(q);if($>=0)return $}else{var f=e_.toSetString(q);if(d_.call(this._set,f))return this._set[f]}throw Error('"'+q+'" is not in the set.')};E.prototype.at=function(q){if(q>=0&&q<this._array.length)return this._array[q];throw Error("No element indexed by "+q)};E.prototype.toArray=function(){return this._array.slice()};e3.ArraySet=E});var I6=z((G3)=>{var g6=Kq();function t3(_,q){var $=_.generatedLine,f=q.generatedLine,K=_.generatedColumn,P=q.generatedColumn;return f>$||f==$&&P>=K||g6.compareByGeneratedPositionsInflated(_,q)<=0}function Nq(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Nq.prototype.unsortedForEach=function(q,$){this._array.forEach(q,$)};Nq.prototype.add=function(q){if(t3(this._last,q))this._last=q,this._array.push(q);else this._sorted=!1,this._array.push(q)};Nq.prototype.toArray=function(){if(!this._sorted)this._array.sort(g6.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};G3.MappingList=Nq});var G_=z((b3)=>{var Zq=p_(),u=Kq(),cq=t_().ArraySet,a3=I6().MappingList;function G(_){if(!_)_={};this._file=u.getArg(_,"file",null),this._sourceRoot=u.getArg(_,"sourceRoot",null),this._skipValidation=u.getArg(_,"skipValidation",!1),this._sources=new cq,this._names=new cq,this._mappings=new a3,this._sourcesContents=null}G.prototype._version=3;G.fromSourceMap=function(q){var $=q.sourceRoot,f=new G({file:q.file,sourceRoot:$});return q.eachMapping(function(K){var P={generated:{line:K.generatedLine,column:K.generatedColumn}};if(K.source!=null){if(P.source=K.source,$!=null)P.source=u.relative($,P.source);if(P.original={line:K.originalLine,column:K.originalColumn},K.name!=null)P.name=K.name}f.addMapping(P)}),q.sources.forEach(function(K){var P=K;if($!==null)P=u.relative($,K);if(!f._sources.has(P))f._sources.add(P);var j=q.sourceContentFor(K);if(j!=null)f.setSourceContent(K,j)}),f};G.prototype.addMapping=function(q){var $=u.getArg(q,"generated"),f=u.getArg(q,"original",null),K=u.getArg(q,"source",null),P=u.getArg(q,"name",null);if(!this._skipValidation)this._validateMapping($,f,K,P);if(K!=null){if(K=String(K),!this._sources.has(K))this._sources.add(K)}if(P!=null){if(P=String(P),!this._names.has(P))this._names.add(P)}this._mappings.add({generatedLine:$.line,generatedColumn:$.column,originalLine:f!=null&&f.line,originalColumn:f!=null&&f.column,source:K,name:P})};G.prototype.setSourceContent=function(q,$){var f=q;if(this._sourceRoot!=null)f=u.relative(this._sourceRoot,f);if($!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[u.toSetString(f)]=$}else if(this._sourcesContents){if(delete this._sourcesContents[u.toSetString(f)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};G.prototype.applySourceMap=function(q,$,f){var K=$;if($==null){if(q.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);K=q.file}var P=this._sourceRoot;if(P!=null)K=u.relative(P,K);var j=new cq,w=new cq;this._mappings.unsortedForEach(function(O){if(O.source===K&&O.originalLine!=null){var v=q.originalPositionFor({line:O.originalLine,column:O.originalColumn});if(v.source!=null){if(O.source=v.source,f!=null)O.source=u.join(f,O.source);if(P!=null)O.source=u.relative(P,O.source);if(O.originalLine=v.line,O.originalColumn=v.column,v.name!=null)O.name=v.name}}var h=O.source;if(h!=null&&!j.has(h))j.add(h);var Y=O.name;if(Y!=null&&!w.has(Y))w.add(Y)},this),this._sources=j,this._names=w,q.sources.forEach(function(O){var v=q.sourceContentFor(O);if(v!=null){if(f!=null)O=u.join(f,O);if(P!=null)O=u.relative(P,O);this.setSourceContent(O,v)}},this)};G.prototype._validateMapping=function(q,$,f,K){if($&&typeof $.line!=="number"&&typeof $.column!=="number")throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(q&&"line"in q&&"column"in q&&q.line>0&&q.column>=0&&!$&&!f&&!K)return;else if(q&&"line"in q&&"column"in q&&$&&"line"in $&&"column"in $&&q.line>0&&q.column>=0&&$.line>0&&$.column>=0&&f)return;else throw Error("Invalid mapping: "+JSON.stringify({generated:q,source:f,original:$,name:K}))};G.prototype._serializeMappings=function(){var q=0,$=1,f=0,K=0,P=0,j=0,w="",O,v,h,Y,r=this._mappings.toArray();for(var k=0,W=r.length;k<W;k++){if(v=r[k],O="",v.generatedLine!==$){q=0;while(v.generatedLine!==$)O+=";",$++}else if(k>0){if(!u.compareByGeneratedPositionsInflated(v,r[k-1]))continue;O+=","}if(O+=Zq.encode(v.generatedColumn-q),q=v.generatedColumn,v.source!=null){if(Y=this._sources.indexOf(v.source),O+=Zq.encode(Y-j),j=Y,O+=Zq.encode(v.originalLine-1-K),K=v.originalLine-1,O+=Zq.encode(v.originalColumn-f),f=v.originalColumn,v.name!=null)h=this._names.indexOf(v.name),O+=Zq.encode(h-P),P=h}w+=O}return w};G.prototype._generateSourcesContent=function(q,$){return q.map(function(f){if(!this._sourcesContents)return null;if($!=null)f=u.relative($,f);var K=u.toSetString(f);return Object.prototype.hasOwnProperty.call(this._sourcesContents,K)?this._sourcesContents[K]:null},this)};G.prototype.toJSON=function(){var q={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)q.file=this._file;if(this._sourceRoot!=null)q.sourceRoot=this._sourceRoot;if(this._sourcesContents)q.sourcesContent=this._generateSourcesContent(q.sources,q.sourceRoot);return q};G.prototype.toString=function(){return JSON.stringify(this.toJSON())};b3.SourceMapGenerator=G});var D6=z((S3)=>{S3.GREATEST_LOWER_BOUND=1;S3.LEAST_UPPER_BOUND=2;function i_(_,q,$,f,K,P){var j=Math.floor((q-_)/2)+_,w=K($,f[j],!0);if(w===0)return j;else if(w>0){if(q-j>1)return i_(j,q,$,f,K,P);if(P==S3.LEAST_UPPER_BOUND)return q<f.length?q:-1;else return j}else{if(j-_>1)return i_(_,j,$,f,K,P);if(P==S3.LEAST_UPPER_BOUND)return j;else return _<0?-1:_}}S3.search=function(q,$,f,K){if($.length===0)return-1;var P=i_(-1,$.length,q,$,f,K||S3.GREATEST_LOWER_BOUND);if(P<0)return-1;while(P-1>=0){if(f($[P],$[P-1],!0)!==0)break;--P}return P}});var x6=z((M3)=>{function b_(_,q,$){var f=_[q];_[q]=_[$],_[$]=f}function V3(_,q){return Math.round(_+Math.random()*(q-_))}function l_(_,q,$,f){if($<f){var K=V3($,f),P=$-1;b_(_,K,f);var j=_[f];for(var w=$;w<f;w++)if(q(_[w],j)<=0)P+=1,b_(_,P,w);b_(_,P+1,w);var O=P+1;l_(_,q,$,O-1),l_(_,q,O+1,f)}}M3.quickSort=function(_,q){l_(_,q,0,_.length-1)}});var s6=z((E3)=>{var T=Kq(),S_=D6(),Pq=t_().ArraySet,c3=p_(),mq=x6().quickSort;function J(_,q){var $=_;if(typeof _==="string")$=T.parseSourceMapInput(_);return $.sections!=null?new i($,q):new A($,q)}J.fromSourceMap=function(_,q){return A.fromSourceMap(_,q)};J.prototype._version=3;J.prototype.__generatedMappings=null;Object.defineProperty(J.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});J.prototype.__originalMappings=null;Object.defineProperty(J.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});J.prototype._charIsMappingSeparator=function(q,$){var f=q.charAt($);return f===";"||f===","};J.prototype._parseMappings=function(q,$){throw Error("Subclasses must implement _parseMappings")};J.GENERATED_ORDER=1;J.ORIGINAL_ORDER=2;J.GREATEST_LOWER_BOUND=1;J.LEAST_UPPER_BOUND=2;J.prototype.eachMapping=function(q,$,f){var K=$||null,P=f||J.GENERATED_ORDER,j;switch(P){case J.GENERATED_ORDER:j=this._generatedMappings;break;case J.ORIGINAL_ORDER:j=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var w=this.sourceRoot;j.map(function(O){var v=O.source===null?null:this._sources.at(O.source);return v=T.computeSourceURL(w,v,this._sourceMapURL),{source:v,generatedLine:O.generatedLine,generatedColumn:O.generatedColumn,originalLine:O.originalLine,originalColumn:O.originalColumn,name:O.name===null?null:this._names.at(O.name)}},this).forEach(q,K)};J.prototype.allGeneratedPositionsFor=function(q){var $=T.getArg(q,"line"),f={source:T.getArg(q,"source"),originalLine:$,originalColumn:T.getArg(q,"column",0)};if(f.source=this._findSourceIndex(f.source),f.source<0)return[];var K=[],P=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",T.compareByOriginalPositions,S_.LEAST_UPPER_BOUND);if(P>=0){var j=this._originalMappings[P];if(q.column===void 0){var w=j.originalLine;while(j&&j.originalLine===w)K.push({line:T.getArg(j,"generatedLine",null),column:T.getArg(j,"generatedColumn",null),lastColumn:T.getArg(j,"lastGeneratedColumn",null)}),j=this._originalMappings[++P]}else{var O=j.originalColumn;while(j&&j.originalLine===$&&j.originalColumn==O)K.push({line:T.getArg(j,"generatedLine",null),column:T.getArg(j,"generatedColumn",null),lastColumn:T.getArg(j,"lastGeneratedColumn",null)}),j=this._originalMappings[++P]}}return K};E3.SourceMapConsumer=J;function A(_,q){var $=_;if(typeof _==="string")$=T.parseSourceMapInput(_);var f=T.getArg($,"version"),K=T.getArg($,"sources"),P=T.getArg($,"names",[]),j=T.getArg($,"sourceRoot",null),w=T.getArg($,"sourcesContent",null),O=T.getArg($,"mappings"),v=T.getArg($,"file",null);if(f!=this._version)throw Error("Unsupported version: "+f);if(j)j=T.normalize(j);K=K.map(String).map(T.normalize).map(function(h){return j&&T.isAbsolute(j)&&T.isAbsolute(h)?T.relative(j,h):h}),this._names=Pq.fromArray(P.map(String),!0),this._sources=Pq.fromArray(K,!0),this._absoluteSources=this._sources.toArray().map(function(h){return T.computeSourceURL(j,h,q)}),this.sourceRoot=j,this.sourcesContent=w,this._mappings=O,this._sourceMapURL=q,this.file=v}A.prototype=Object.create(J.prototype);A.prototype.consumer=J;A.prototype._findSourceIndex=function(_){var q=_;if(this.sourceRoot!=null)q=T.relative(this.sourceRoot,q);if(this._sources.has(q))return this._sources.indexOf(q);var $;for($=0;$<this._absoluteSources.length;++$)if(this._absoluteSources[$]==_)return $;return-1};A.fromSourceMap=function(q,$){var f=Object.create(A.prototype),K=f._names=Pq.fromArray(q._names.toArray(),!0),P=f._sources=Pq.fromArray(q._sources.toArray(),!0);f.sourceRoot=q._sourceRoot,f.sourcesContent=q._generateSourcesContent(f._sources.toArray(),f.sourceRoot),f.file=q._file,f._sourceMapURL=$,f._absoluteSources=f._sources.toArray().map(function(k){return T.computeSourceURL(f.sourceRoot,k,$)});var j=q._mappings.toArray().slice(),w=f.__generatedMappings=[],O=f.__originalMappings=[];for(var v=0,h=j.length;v<h;v++){var Y=j[v],r=new L6;if(r.generatedLine=Y.generatedLine,r.generatedColumn=Y.generatedColumn,Y.source){if(r.source=P.indexOf(Y.source),r.originalLine=Y.originalLine,r.originalColumn=Y.originalColumn,Y.name)r.name=K.indexOf(Y.name);O.push(r)}w.push(r)}return mq(f.__originalMappings,T.compareByOriginalPositions),f};A.prototype._version=3;Object.defineProperty(A.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function L6(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}A.prototype._parseMappings=function(q,$){var f=1,K=0,P=0,j=0,w=0,O=0,v=q.length,h=0,Y={},r={},k=[],W=[],m,a,n,D,pq;while(h<v)if(q.charAt(h)===";")f++,h++,K=0;else if(q.charAt(h)===",")h++;else{m=new L6,m.generatedLine=f;for(D=h;D<v;D++)if(this._charIsMappingSeparator(q,D))break;if(a=q.slice(h,D),n=Y[a],n)h+=a.length;else{n=[];while(h<D)c3.decode(q,h,r),pq=r.value,h=r.rest,n.push(pq);if(n.length===2)throw Error("Found a source, but no line and column");if(n.length===3)throw Error("Found a source and line, but no column");Y[a]=n}if(m.generatedColumn=K+n[0],K=m.generatedColumn,n.length>1){if(m.source=w+n[1],w+=n[1],m.originalLine=P+n[2],P=m.originalLine,m.originalLine+=1,m.originalColumn=j+n[3],j=m.originalColumn,n.length>4)m.name=O+n[4],O+=n[4]}if(W.push(m),typeof m.originalLine==="number")k.push(m)}mq(W,T.compareByGeneratedPositionsDeflated),this.__generatedMappings=W,mq(k,T.compareByOriginalPositions),this.__originalMappings=k};A.prototype._findMapping=function(q,$,f,K,P,j){if(q[f]<=0)throw TypeError("Line must be greater than or equal to 1, got "+q[f]);if(q[K]<0)throw TypeError("Column must be greater than or equal to 0, got "+q[K]);return S_.search(q,$,P,j)};A.prototype.computeColumnSpans=function(){for(var q=0;q<this._generatedMappings.length;++q){var $=this._generatedMappings[q];if(q+1<this._generatedMappings.length){var f=this._generatedMappings[q+1];if($.generatedLine===f.generatedLine){$.lastGeneratedColumn=f.generatedColumn-1;continue}}$.lastGeneratedColumn=1/0}};A.prototype.originalPositionFor=function(q){var $={generatedLine:T.getArg(q,"line"),generatedColumn:T.getArg(q,"column")},f=this._findMapping($,this._generatedMappings,"generatedLine","generatedColumn",T.compareByGeneratedPositionsDeflated,T.getArg(q,"bias",J.GREATEST_LOWER_BOUND));if(f>=0){var K=this._generatedMappings[f];if(K.generatedLine===$.generatedLine){var P=T.getArg(K,"source",null);if(P!==null)P=this._sources.at(P),P=T.computeSourceURL(this.sourceRoot,P,this._sourceMapURL);var j=T.getArg(K,"name",null);if(j!==null)j=this._names.at(j);return{source:P,line:T.getArg(K,"originalLine",null),column:T.getArg(K,"originalColumn",null),name:j}}}return{source:null,line:null,column:null,name:null}};A.prototype.hasContentsOfAllSources=function(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(q){return q==null})};A.prototype.sourceContentFor=function(q,$){if(!this.sourcesContent)return null;var f=this._findSourceIndex(q);if(f>=0)return this.sourcesContent[f];var K=q;if(this.sourceRoot!=null)K=T.relative(this.sourceRoot,K);var P;if(this.sourceRoot!=null&&(P=T.urlParse(this.sourceRoot))){var j=K.replace(/^file:\/\//,"");if(P.scheme=="file"&&this._sources.has(j))return this.sourcesContent[this._sources.indexOf(j)];if((!P.path||P.path=="/")&&this._sources.has("/"+K))return this.sourcesContent[this._sources.indexOf("/"+K)]}if($)return null;else throw Error('"'+K+'" is not in the SourceMap.')};A.prototype.generatedPositionFor=function(q){var $=T.getArg(q,"source");if($=this._findSourceIndex($),$<0)return{line:null,column:null,lastColumn:null};var f={source:$,originalLine:T.getArg(q,"line"),originalColumn:T.getArg(q,"column")},K=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",T.compareByOriginalPositions,T.getArg(q,"bias",J.GREATEST_LOWER_BOUND));if(K>=0){var P=this._originalMappings[K];if(P.source===f.source)return{line:T.getArg(P,"generatedLine",null),column:T.getArg(P,"generatedColumn",null),lastColumn:T.getArg(P,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};E3.BasicSourceMapConsumer=A;function i(_,q){var $=_;if(typeof _==="string")$=T.parseSourceMapInput(_);var f=T.getArg($,"version"),K=T.getArg($,"sections");if(f!=this._version)throw Error("Unsupported version: "+f);this._sources=new Pq,this._names=new Pq;var P={line:-1,column:0};this._sections=K.map(function(j){if(j.url)throw Error("Support for url field in sections not implemented.");var w=T.getArg(j,"offset"),O=T.getArg(w,"line"),v=T.getArg(w,"column");if(O<P.line||O===P.line&&v<P.column)throw Error("Section offsets must be ordered and non-overlapping.");return P=w,{generatedOffset:{generatedLine:O+1,generatedColumn:v+1},consumer:new J(T.getArg(j,"map"),q)}})}i.prototype=Object.create(J.prototype);i.prototype.constructor=J;i.prototype._version=3;Object.defineProperty(i.prototype,"sources",{get:function(){var _=[];for(var q=0;q<this._sections.length;q++)for(var $=0;$<this._sections[q].consumer.sources.length;$++)_.push(this._sections[q].consumer.sources[$]);return _}});i.prototype.originalPositionFor=function(q){var $={generatedLine:T.getArg(q,"line"),generatedColumn:T.getArg(q,"column")},f=S_.search($,this._sections,function(P,j){var w=P.generatedLine-j.generatedOffset.generatedLine;if(w)return w;return P.generatedColumn-j.generatedOffset.generatedColumn}),K=this._sections[f];if(!K)return{source:null,line:null,column:null,name:null};return K.consumer.originalPositionFor({line:$.generatedLine-(K.generatedOffset.generatedLine-1),column:$.generatedColumn-(K.generatedOffset.generatedLine===$.generatedLine?K.generatedOffset.generatedColumn-1:0),bias:q.bias})};i.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(q){return q.consumer.hasContentsOfAllSources()})};i.prototype.sourceContentFor=function(q,$){for(var f=0;f<this._sections.length;f++){var K=this._sections[f],P=K.consumer.sourceContentFor(q,!0);if(P)return P}if($)return null;else throw Error('"'+q+'" is not in the SourceMap.')};i.prototype.generatedPositionFor=function(q){for(var $=0;$<this._sections.length;$++){var f=this._sections[$];if(f.consumer._findSourceIndex(T.getArg(q,"source"))===-1)continue;var K=f.consumer.generatedPositionFor(q);if(K){var P={line:K.line+(f.generatedOffset.generatedLine-1),column:K.column+(f.generatedOffset.generatedLine===K.line?f.generatedOffset.generatedColumn-1:0)};return P}}return{line:null,column:null}};i.prototype._parseMappings=function(q,$){this.__generatedMappings=[],this.__originalMappings=[];for(var f=0;f<this._sections.length;f++){var K=this._sections[f],P=K.consumer._generatedMappings;for(var j=0;j<P.length;j++){var w=P[j],O=K.consumer._sources.at(w.source);O=T.computeSourceURL(K.consumer.sourceRoot,O,this._sourceMapURL),this._sources.add(O),O=this._sources.indexOf(O);var v=null;if(w.name)v=K.consumer._names.at(w.name),this._names.add(v),v=this._names.indexOf(v);var h={source:O,generatedLine:w.generatedLine+(K.generatedOffset.generatedLine-1),generatedColumn:w.generatedColumn+(K.generatedOffset.generatedLine===w.generatedLine?K.generatedOffset.generatedColumn-1:0),originalLine:w.originalLine,originalColumn:w.originalColumn,name:v};if(this.__generatedMappings.push(h),typeof h.originalLine==="number")this.__originalMappings.push(h)}}mq(this.__generatedMappings,T.compareByGeneratedPositionsDeflated),mq(this.__originalMappings,T.compareByOriginalPositions)};E3.IndexedSourceMapConsumer=i});var B6=z((L3)=>{var y3=G_().SourceMapGenerator,Eq=Kq(),D3=/(\r?\n)/,x3=10,jq="$$$isSourceNode$$$";function e(_,q,$,f,K){if(this.children=[],this.sourceContents={},this.line=_==null?null:_,this.column=q==null?null:q,this.source=$==null?null:$,this.name=K==null?null:K,this[jq]=!0,f!=null)this.add(f)}e.fromStringWithSourceMap=function(q,$,f){var K=new e,P=q.split(D3),j=0,w=function(){var r=W(),k=W()||"";return r+k;function W(){return j<P.length?P[j++]:void 0}},O=1,v=0,h=null;if($.eachMapping(function(r){if(h!==null)if(O<r.generatedLine)Y(h,w()),O++,v=0;else{var k=P[j]||"",W=k.substr(0,r.generatedColumn-v);P[j]=k.substr(r.generatedColumn-v),v=r.generatedColumn,Y(h,W),h=r;return}while(O<r.generatedLine)K.add(w()),O++;if(v<r.generatedColumn){var k=P[j]||"";K.add(k.substr(0,r.generatedColumn)),P[j]=k.substr(r.generatedColumn),v=r.generatedColumn}h=r},this),j<P.length){if(h)Y(h,w());K.add(P.splice(j).join(""))}return $.sources.forEach(function(r){var k=$.sourceContentFor(r);if(k!=null){if(f!=null)r=Eq.join(f,r);K.setSourceContent(r,k)}}),K;function Y(r,k){if(r===null||r.source===void 0)K.add(k);else{var W=f?Eq.join(f,r.source):r.source;K.add(new e(r.originalLine,r.originalColumn,W,k,r.name))}}};e.prototype.add=function(q){if(Array.isArray(q))q.forEach(function($){this.add($)},this);else if(q[jq]||typeof q==="string"){if(q)this.children.push(q)}else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+q);return this};e.prototype.prepend=function(q){if(Array.isArray(q))for(var $=q.length-1;$>=0;$--)this.prepend(q[$]);else if(q[jq]||typeof q==="string")this.children.unshift(q);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+q);return this};e.prototype.walk=function(q){var $;for(var f=0,K=this.children.length;f<K;f++)if($=this.children[f],$[jq])$.walk(q);else if($!=="")q($,{source:this.source,line:this.line,column:this.column,name:this.name})};e.prototype.join=function(q){var $,f,K=this.children.length;if(K>0){$=[];for(f=0;f<K-1;f++)$.push(this.children[f]),$.push(q);$.push(this.children[f]),this.children=$}return this};e.prototype.replaceRight=function(q,$){var f=this.children[this.children.length-1];if(f[jq])f.replaceRight(q,$);else if(typeof f==="string")this.children[this.children.length-1]=f.replace(q,$);else this.children.push("".replace(q,$));return this};e.prototype.setSourceContent=function(q,$){this.sourceContents[Eq.toSetString(q)]=$};e.prototype.walkSourceContents=function(q){for(var $=0,f=this.children.length;$<f;$++)if(this.children[$][jq])this.children[$].walkSourceContents(q);var K=Object.keys(this.sourceContents);for(var $=0,f=K.length;$<f;$++)q(Eq.fromSetString(K[$]),this.sourceContents[K[$]])};e.prototype.toString=function(){var q="";return this.walk(function($){q+=$}),q};e.prototype.toStringWithSourceMap=function(q){var $={code:"",line:1,column:0},f=new y3(q),K=!1,P=null,j=null,w=null,O=null;return this.walk(function(v,h){if($.code+=v,h.source!==null&&h.line!==null&&h.column!==null){if(P!==h.source||j!==h.line||w!==h.column||O!==h.name)f.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:$.line,column:$.column},name:h.name});P=h.source,j=h.line,w=h.column,O=h.name,K=!0}else if(K)f.addMapping({generated:{line:$.line,column:$.column}}),P=null,K=!1;for(var Y=0,r=v.length;Y<r;Y++)if(v.charCodeAt(Y)===x3){if($.line++,$.column=0,Y+1===r)P=null,K=!1;else if(K)f.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:$.line,column:$.column},name:h.name})}else $.column++}),this.walkSourceContents(function(v,h){f.setSourceContent(v,h)}),{code:$.code,map:f}};L3.SourceNode=e});var U6=z((B3)=>{B3.SourceMapGenerator=G_().SourceMapGenerator;B3.SourceMapConsumer=s6().SourceMapConsumer;B3.SourceNode=B6().SourceNode});var _f=z((Q6,qf)=>{Q6.__esModule=!0;var V_=X(),F=void 0;try{if(typeof define!=="function"||!define.amd)M_=U6(),F=M_.SourceNode}catch(_){}var M_;if(!F)F=function(_,q,$,f){if(this.src="",f)this.add(f)},F.prototype={add:function(q){if(V_.isArray(q))q=q.join("");this.src+=q},prepend:function(q){if(V_.isArray(q))q=q.join("");this.src=q+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}};function C_(_,q,$){if(V_.isArray(_)){var f=[];for(var K=0,P=_.length;K<P;K++)f.push(q.wrap(_[K],$));return f}else if(typeof _==="boolean"||typeof _==="number")return _+"";return _}function F6(_){this.srcFile=_,this.source=[]}F6.prototype={isEmpty:function(){return!this.source.length},prepend:function(q,$){this.source.unshift(this.wrap(q,$))},push:function(q,$){this.source.push(this.wrap(q,$))},merge:function(){var q=this.empty();return this.each(function($){q.add([" ",$,`
13
- `])}),q},each:function(q){for(var $=0,f=this.source.length;$<f;$++)q(this.source[$])},empty:function(){var q=this.currentLocation||{start:{}};return new F(q.start.line,q.start.column,this.srcFile)},wrap:function(q){var $=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];if(q instanceof F)return q;return q=C_(q,this,$),new F($.start.line,$.start.column,this.srcFile,q)},functionCall:function(q,$,f){return f=this.generateList(f),this.wrap([q,$?"."+$+"(":"(",f,")"])},quotedString:function(q){return'"'+(q+"").replace(/\\/g,"\\\\").replace(/"/g,"\\\"").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(q){var $=this,f=[];Object.keys(q).forEach(function(P){var j=C_(q[P],$);if(j!=="undefined")f.push([$.quotedString(P),":",j])});var K=this.generateList(f);return K.prepend("{"),K.add("}"),K},generateList:function(q){var $=this.empty();for(var f=0,K=q.length;f<K;f++){if(f)$.add(",");$.add(C_(q[f],this))}return $},generateArray:function(q){var $=this.generateList(q);return $.prepend("["),$.add("]"),$}};Q6.default=F6;qf.exports=Q6.default});var vf=z((Pf,jf)=>{Pf.__esModule=!0;function Kf(_){return _&&_.__esModule?_:{default:_}}var $f=bq(),$4=t(),N_=Kf($4),f4=X(),K4=_f(),ff=Kf(K4);function vq(_){this.value=_}function wq(){}wq.prototype={nameLookup:function(q,$){return this.internalNameLookup(q,$)},depthedLookup:function(q){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(q),")"]},compilerInfo:function(){var q=$f.COMPILER_REVISION,$=$f.REVISION_CHANGES[q];return[q,$]},appendToBuffer:function(q,$,f){if(!f4.isArray(q))q=[q];if(q=this.source.wrap(q,$),this.environment.isSimple)return["return ",q,";"];else if(f)return["buffer += ",q,";"];else return q.appendToBuffer=!0,q},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(q,$){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",q,",",JSON.stringify($),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(q,$,f,K){this.environment=q,this.options=$,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!K,this.name=this.environment.name,this.isChild=!!f,this.context=f||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(q,$),this.useDepths=this.useDepths||q.useDepths||q.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||q.useBlockParams;var P=q.opcodes,j=void 0,w=void 0,O=void 0,v=void 0;for(O=0,v=P.length;O<v;O++)j=P[O],this.source.currentLocation=j.loc,w=w||j.loc,this[j.opcode].apply(this,j.args);if(this.source.currentLocation=w,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new N_.default("Compile completed with content left on stack");if(!this.decorators.isEmpty())if(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
10
+ Expecting `+eq.join(", ")+", got '"+(this.terminals_[X]||X)+"'";else xq="Parse error on line "+(Y+1)+": Unexpected "+(X==1?"end of input":"'"+(this.terminals_[X]||X)+"'");this.parseError(xq,{text:this.lexer.match,token:this.terminals_[X]||X,line:this.lexer.yylineno,loc:a,expected:eq})}}if(d[0]instanceof Array&&d.length>1)throw Error("Parse Error: multiple actions possible at state: "+x+", token: "+X);switch(d[0]){case 1:if(j.push(X),w.push(this.lexer.yytext),O.push(this.lexer.yylloc),j.push(d[1]),X=null,!yq){if(T=this.lexer.yyleng,h=this.lexer.yytext,Y=this.lexer.yylineno,a=this.lexer.yylloc,z>0)z--}else X=yq,yq=null;break;case 2:if(l=this.productions_[d[1]][1],_q.$=w[w.length-l],_q._$={first_line:O[O.length-(l||1)].first_line,last_line:O[O.length-1].last_line,first_column:O[O.length-(l||1)].first_column,last_column:O[O.length-1].last_column},n)_q._$.range=[O[O.length-(l||1)].range[0],O[O.length-1].range[1]];if(Dq=this.performAction.call(_q,h,T,Y,this.yy,d[1],w,O),typeof Dq<"u")return Dq;if(l)j=j.slice(0,-1*l*2),w=w.slice(0,-1*l),O=O.slice(0,-1*l);j.push(this.productions_[d[1]][0]),w.push(_q.$),O.push(_q._$),$$=v[j[j.length-2]][j[j.length-1]],j.push($$);break;case 3:return!0}}return!0}},q=function(){var f={EOF:1,parseError:function(P,j){if(this.yy.parser)this.yy.parser.parseError(P,j);else throw Error(P)},setInput:function(P){if(this._input=P,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},input:function(){var P=this._input[0];this.yytext+=P,this.yyleng++,this.offset++,this.match+=P,this.matched+=P;var j=P.match(/(?:\r\n?|\n).*/g);if(j)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),P},unput:function(P){var j=P.length,w=P.split(/(?:\r\n?|\n)/g);this._input=P+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-j-1),this.offset-=j;var O=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),w.length-1)this.yylineno-=w.length-1;var v=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:w?(w.length===O.length?this.yylloc.first_column:0)+O[O.length-w.length].length-w[0].length:this.yylloc.first_column-j},this.options.ranges)this.yylloc.range=[v[0],v[0]+this.yyleng-j];return this},more:function(){return this._more=!0,this},less:function(P){this.unput(this.match.slice(P))},pastInput:function(){var P=this.matched.substr(0,this.matched.length-this.match.length);return(P.length>20?"...":"")+P.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var P=this.match;if(P.length<20)P+=this._input.substr(0,20-P.length);return(P.substr(0,20)+(P.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var P=this.pastInput(),j=Array(P.length+1).join("-");return P+this.upcomingInput()+`
11
+ `+j+"^"},next:function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var P,j,w,O,v,h;if(!this._more)this.yytext="",this.match="";var Y=this._currentRules();for(var T=0;T<Y.length;T++)if(w=this._input.match(this.rules[Y[T]]),w&&(!j||w[0].length>j[0].length)){if(j=w,O=T,!this.options.flex)break}if(j){if(h=j[0].match(/(?:\r\n?|\n).*/g),h)this.yylineno+=h.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+j[0].length},this.yytext+=j[0],this.match+=j[0],this.matches=j,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._input=this._input.slice(j[0].length),this.matched+=j[0],P=this.performAction.call(this,this.yy,this,Y[O],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(P)return P;else return}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var P=this.next();if(typeof P<"u")return P;else return this.lex()},begin:function(P){this.conditionStack.push(P)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(P){this.begin(P)}};return f.options={},f.performAction=function(P,j,w,O){function v(Y,T){return j.yytext=j.yytext.substring(Y,j.yyleng-T+Y)}var h=O;switch(w){case 0:if(j.yytext.slice(-2)==="\\\\")v(0,1),this.begin("mu");else if(j.yytext.slice(-1)==="\\")v(0,1),this.begin("emu");else this.begin("mu");if(j.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:if(this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw")return 15;else return v(5,9),"END_RAW_BLOCK";break;case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(j.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return j.yytext=v(1,2).replace(/\\"/g,'"'),80;break;case 32:return j.yytext=v(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return j.yytext=j.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},f.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],f.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},f}();_.lexer=q;function $(){this.yy={}}return $.prototype=_,_.Parser=$,new $}();H6.default=$j;W6.exports=H6.default});var Vq=H((u6,o6)=>{u6.__esModule=!0;function Pj(_){return _&&_.__esModule?_:{default:_}}var jj=t(),Z_=Pj(jj);function Cq(){this.parents=[]}Cq.prototype={constructor:Cq,mutating:!1,acceptKey:function(q,$){var f=this.accept(q[$]);if(this.mutating){if(f&&!Cq.prototype[f.type])throw new Z_.default('Unexpected node type "'+f.type+'" found when accepting '+$+" on "+q.type);q[$]=f}},acceptRequired:function(q,$){if(this.acceptKey(q,$),!q[$])throw new Z_.default(q.type+" requires "+$)},acceptArray:function(q){for(var $=0,f=q.length;$<f;$++)if(this.acceptKey(q,$),!q[$])q.splice($,1),$--,f--},accept:function(q){if(!q)return;if(!this[q.type])throw new Z_.default("Unknown type: "+q.type,q);if(this.current)this.parents.unshift(this.current);this.current=q;var $=this[q.type](q);if(this.current=this.parents.shift(),!this.mutating||$)return $;else if($!==!1)return q},Program:function(q){this.acceptArray(q.body)},MustacheStatement:lq,Decorator:lq,BlockStatement:Z6,DecoratorBlock:Z6,PartialStatement:m6,PartialBlockStatement:function(q){m6.call(this,q),this.acceptKey(q,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:lq,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(q){this.acceptArray(q.pairs)},HashPair:function(q){this.acceptRequired(q,"value")}};function lq(_){this.acceptRequired(_,"path"),this.acceptArray(_.params),this.acceptKey(_,"hash")}function Z6(_){lq.call(this,_),this.acceptKey(_,"program"),this.acceptKey(_,"inverse")}function m6(_){this.acceptRequired(_,"name"),this.acceptArray(_.params),this.acceptKey(_,"hash")}u6.default=Cq;o6.exports=u6.default});var X6=H((n6,A6)=>{n6.__esModule=!0;function Oj(_){return _&&_.__esModule?_:{default:_}}var Yj=Vq(),hj=Oj(Yj);function C(){var _=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=_}C.prototype=new hj.default;C.prototype.Program=function(_){var q=!this.options.ignoreStandalone,$=!this.isRootSeen;this.isRootSeen=!0;var f=_.body;for(var K=0,P=f.length;K<P;K++){var j=f[K],w=this.accept(j);if(!w)continue;var O=m_(f,K,$),v=u_(f,K,$),h=w.openStandalone&&O,Y=w.closeStandalone&&v,T=w.inlineStandalone&&O&&v;if(w.close)B(f,K,!0);if(w.open)y(f,K,!0);if(q&&T){if(B(f,K),y(f,K)){if(j.type==="PartialStatement")j.indent=/([ \t]+$)/.exec(f[K-1].original)[1]}}if(q&&h)B((j.program||j.inverse).body),y(f,K);if(q&&Y)B(f,K),y((j.inverse||j.program).body)}return _};C.prototype.BlockStatement=C.prototype.DecoratorBlock=C.prototype.PartialBlockStatement=function(_){this.accept(_.program),this.accept(_.inverse);var q=_.program||_.inverse,$=_.program&&_.inverse,f=$,K=$;if($&&$.chained){f=$.body[0].program;while(K.chained)K=K.body[K.body.length-1].program}var P={open:_.openStrip.open,close:_.closeStrip.close,openStandalone:u_(q.body),closeStandalone:m_((f||q).body)};if(_.openStrip.close)B(q.body,null,!0);if($){var j=_.inverseStrip;if(j.open)y(q.body,null,!0);if(j.close)B(f.body,null,!0);if(_.closeStrip.open)y(K.body,null,!0);if(!this.options.ignoreStandalone&&m_(q.body)&&u_(f.body))y(q.body),B(f.body)}else if(_.closeStrip.open)y(q.body,null,!0);return P};C.prototype.Decorator=C.prototype.MustacheStatement=function(_){return _.strip};C.prototype.PartialStatement=C.prototype.CommentStatement=function(_){var q=_.strip||{};return{inlineStandalone:!0,open:q.open,close:q.close}};function m_(_,q,$){if(q===void 0)q=_.length;var f=_[q-1],K=_[q-2];if(!f)return $;if(f.type==="ContentStatement")return(K||!$?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function u_(_,q,$){if(q===void 0)q=-1;var f=_[q+1],K=_[q+2];if(!f)return $;if(f.type==="ContentStatement")return(K||!$?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function B(_,q,$){var f=_[q==null?0:q+1];if(!f||f.type!=="ContentStatement"||!$&&f.rightStripped)return;var K=f.value;f.value=f.value.replace($?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==K}function y(_,q,$){var f=_[q==null?_.length-1:q-1];if(!f||f.type!=="ContentStatement"||!$&&f.leftStripped)return;var K=f.value;return f.value=f.value.replace($?/\s+$/:/[ \t]+$/,""),f.leftStripped=f.value!==K,f.leftStripped}n6.default=C;A6.exports=n6.default});var p6=H((pj)=>{pj.__esModule=!0;pj.SourceLocation=Hj;pj.id=Wj;pj.stripFlags=Jj;pj.stripComment=Zj;pj.preparePath=mj;pj.prepareMustache=uj;pj.prepareRawBlock=oj;pj.prepareBlock=nj;pj.prepareProgram=Aj;pj.preparePartialBlock=Xj;function kj(_){return _&&_.__esModule?_:{default:_}}var zj=t(),o_=kj(zj);function n_(_,q){if(q=q.path?q.path.original:q,_.path.original!==q){var $={loc:_.path.loc};throw new o_.default(_.path.original+" doesn't match "+q,$)}}function Hj(_,q){this.source=_,this.start={line:q.first_line,column:q.first_column},this.end={line:q.last_line,column:q.last_column}}function Wj(_){if(/^\[.*\]$/.test(_))return _.substring(1,_.length-1);else return _}function Jj(_,q){return{open:_.charAt(2)==="~",close:q.charAt(q.length-3)==="~"}}function Zj(_){return _.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function mj(_,q,$){$=this.locInfo($);var f=_?"@":"",K=[],P=0;for(var j=0,w=q.length;j<w;j++){var O=q[j].part,v=q[j].original!==O;if(f+=(q[j].separator||"")+O,!v&&(O===".."||O==="."||O==="this")){if(K.length>0)throw new o_.default("Invalid path: "+f,{loc:$});else if(O==="..")P++}else K.push(O)}return{type:"PathExpression",data:_,depth:P,parts:K,original:f,loc:$}}function uj(_,q,$,f,K,P){var j=f.charAt(3)||f.charAt(2),w=j!=="{"&&j!=="&",O=/\*/.test(f);return{type:O?"Decorator":"MustacheStatement",path:_,params:q,hash:$,escaped:w,strip:K,loc:this.locInfo(P)}}function oj(_,q,$,f){n_(_,$),f=this.locInfo(f);var K={type:"Program",body:q,strip:{},loc:f};return{type:"BlockStatement",path:_.path,params:_.params,hash:_.hash,program:K,openStrip:{},inverseStrip:{},closeStrip:{},loc:f}}function nj(_,q,$,f,K,P){if(f&&f.path)n_(_,f);var j=/\*/.test(_.open);q.blockParams=_.blockParams;var w=void 0,O=void 0;if($){if(j)throw new o_.default("Unexpected inverse block on decorator",$);if($.chain)$.program.body[0].closeStrip=f.strip;O=$.strip,w=$.program}if(K)K=w,w=q,q=K;return{type:j?"DecoratorBlock":"BlockStatement",path:_.path,params:_.params,hash:_.hash,program:q,inverse:w,openStrip:_.strip,inverseStrip:O,closeStrip:f&&f.strip,loc:this.locInfo(P)}}function Aj(_,q){if(!q&&_.length){var $=_[0].loc,f=_[_.length-1].loc;if($&&f)q={source:$.source,start:{line:$.start.line,column:$.start.column},end:{line:f.end.line,column:f.end.column}}}return{type:"Program",body:_,strip:{},loc:q}}function Xj(_,q,$,f){return n_(_,$),{type:"PartialBlockStatement",name:_.path,params:_.params,hash:_.hash,program:q,openStrip:_.strip,closeStrip:$&&$.strip,loc:this.locInfo(f)}}});var t6=H((Dj)=>{Dj.__esModule=!0;Dj.parseWithoutProcessing=d6;Dj.parse=yj;function Mj(_){if(_&&_.__esModule)return _;else{var q={};if(_!=null){for(var $ in _)if(Object.prototype.hasOwnProperty.call(_,$))q[$]=_[$]}return q.default=_,q}}function e6(_){return _&&_.__esModule?_:{default:_}}var Nj=J6(),A_=e6(Nj),cj=X6(),Ej=e6(cj),Rj=p6(),gj=Mj(Rj),Ij=p();Dj.parser=A_.default;var Mq={};Ij.extend(Mq,gj);function d6(_,q){if(_.type==="Program")return _;A_.default.yy=Mq,Mq.locInfo=function(f){return new Mq.SourceLocation(q&&q.srcName,f)};var $=A_.default.parse(_);return $}function yj(_,q){var $=d6(_,q),f=new Ej.default(q);return f.accept($)}});var b6=H(($3)=>{$3.__esModule=!0;$3.Compiler=X_;$3.precompile=q3;$3.compile=_3;function i6(_){return _&&_.__esModule?_:{default:_}}var Uj=t(),Jq=i6(Uj),Zq=p(),Fj=J_(),Wq=i6(Fj),Qj=[].slice;function X_(){}X_.prototype={compiler:X_,equals:function(q){var $=this.opcodes.length;if(q.opcodes.length!==$)return!1;for(var f=0;f<$;f++){var K=this.opcodes[f],P=q.opcodes[f];if(K.opcode!==P.opcode||!a6(K.args,P.args))return!1}$=this.children.length;for(var f=0;f<$;f++)if(!this.children[f].equals(q.children[f]))return!1;return!0},guid:0,compile:function(q,$){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=$,this.stringParams=$.stringParams,this.trackIds=$.trackIds,$.blockParams=$.blockParams||[],$.knownHelpers=Zq.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},$.knownHelpers),this.accept(q)},compileProgram:function(q){var $=new this.compiler,f=$.compile(q,this.options),K=this.guid++;return this.usePartial=this.usePartial||f.usePartial,this.children[K]=f,this.useDepths=this.useDepths||f.useDepths,K},accept:function(q){if(!this[q.type])throw new Jq.default("Unknown type: "+q.type,q);this.sourceNode.unshift(q);var $=this[q.type](q);return this.sourceNode.shift(),$},Program:function(q){this.options.blockParams.unshift(q.blockParams);var $=q.body,f=$.length;for(var K=0;K<f;K++)this.accept($[K]);return this.options.blockParams.shift(),this.isSimple=f===1,this.blockParams=q.blockParams?q.blockParams.length:0,this},BlockStatement:function(q){G6(q);var{program:$,inverse:f}=q;$=$&&this.compileProgram($),f=f&&this.compileProgram(f);var K=this.classifySexpr(q);if(K==="helper")this.helperSexpr(q,$,f);else if(K==="simple")this.simpleSexpr(q),this.opcode("pushProgram",$),this.opcode("pushProgram",f),this.opcode("emptyHash"),this.opcode("blockValue",q.path.original);else this.ambiguousSexpr(q,$,f),this.opcode("pushProgram",$),this.opcode("pushProgram",f),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue");this.opcode("append")},DecoratorBlock:function(q){var $=q.program&&this.compileProgram(q.program),f=this.setupFullMustacheParams(q,$,void 0),K=q.path;this.useDecorators=!0,this.opcode("registerDecorator",f.length,K.original)},PartialStatement:function(q){this.usePartial=!0;var $=q.program;if($)$=this.compileProgram(q.program);var f=q.params;if(f.length>1)throw new Jq.default("Unsupported number of partial arguments: "+f.length,q);else if(!f.length)if(this.options.explicitPartialContext)this.opcode("pushLiteral","undefined");else f.push({type:"PathExpression",parts:[],depth:0});var K=q.name.original,P=q.name.type==="SubExpression";if(P)this.accept(q.name);this.setupFullMustacheParams(q,$,void 0,!0);var j=q.indent||"";if(this.options.preventIndent&&j)this.opcode("appendContent",j),j="";this.opcode("invokePartial",P,K,j),this.opcode("append")},PartialBlockStatement:function(q){this.PartialStatement(q)},MustacheStatement:function(q){if(this.SubExpression(q),q.escaped&&!this.options.noEscape)this.opcode("appendEscaped");else this.opcode("append")},Decorator:function(q){this.DecoratorBlock(q)},ContentStatement:function(q){if(q.value)this.opcode("appendContent",q.value)},CommentStatement:function(){},SubExpression:function(q){G6(q);var $=this.classifySexpr(q);if($==="simple")this.simpleSexpr(q);else if($==="helper")this.helperSexpr(q);else this.ambiguousSexpr(q)},ambiguousSexpr:function(q,$,f){var K=q.path,P=K.parts[0],j=$!=null||f!=null;this.opcode("getContext",K.depth),this.opcode("pushProgram",$),this.opcode("pushProgram",f),K.strict=!0,this.accept(K),this.opcode("invokeAmbiguous",P,j)},simpleSexpr:function(q){var $=q.path;$.strict=!0,this.accept($),this.opcode("resolvePossibleLambda")},helperSexpr:function(q,$,f){var K=this.setupFullMustacheParams(q,$,f),P=q.path,j=P.parts[0];if(this.options.knownHelpers[j])this.opcode("invokeKnownHelper",K.length,j);else if(this.options.knownHelpersOnly)throw new Jq.default("You specified knownHelpersOnly, but used the unknown helper "+j,q);else P.strict=!0,P.falsy=!0,this.accept(P),this.opcode("invokeHelper",K.length,P.original,Wq.default.helpers.simpleId(P))},PathExpression:function(q){this.addDepth(q.depth),this.opcode("getContext",q.depth);var $=q.parts[0],f=Wq.default.helpers.scopedId(q),K=!q.depth&&!f&&this.blockParamIndex($);if(K)this.opcode("lookupBlockParam",K,q.parts);else if(!$)this.opcode("pushContext");else if(q.data)this.options.data=!0,this.opcode("lookupData",q.depth,q.parts,q.strict);else this.opcode("lookupOnContext",q.parts,q.falsy,q.strict,f)},StringLiteral:function(q){this.opcode("pushString",q.value)},NumberLiteral:function(q){this.opcode("pushLiteral",q.value)},BooleanLiteral:function(q){this.opcode("pushLiteral",q.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(q){var $=q.pairs,f=0,K=$.length;this.opcode("pushHash");for(;f<K;f++)this.pushParam($[f].value);while(f--)this.opcode("assignToHash",$[f].key);this.opcode("popHash")},opcode:function(q){this.opcodes.push({opcode:q,args:Qj.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(q){if(!q)return;this.useDepths=!0},classifySexpr:function(q){var $=Wq.default.helpers.simpleId(q.path),f=$&&!!this.blockParamIndex(q.path.parts[0]),K=!f&&Wq.default.helpers.helperExpression(q),P=!f&&(K||$);if(P&&!K){var j=q.path.parts[0],w=this.options;if(w.knownHelpers[j])K=!0;else if(w.knownHelpersOnly)P=!1}if(K)return"helper";else if(P)return"ambiguous";else return"simple"},pushParams:function(q){for(var $=0,f=q.length;$<f;$++)this.pushParam(q[$])},pushParam:function(q){var $=q.value!=null?q.value:q.original||"";if(this.stringParams){if($.replace)$=$.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".");if(q.depth)this.addDepth(q.depth);if(this.opcode("getContext",q.depth||0),this.opcode("pushStringParam",$,q.type),q.type==="SubExpression")this.accept(q)}else{if(this.trackIds){var f=void 0;if(q.parts&&!Wq.default.helpers.scopedId(q)&&!q.depth)f=this.blockParamIndex(q.parts[0]);if(f){var K=q.parts.slice(1).join(".");this.opcode("pushId","BlockParam",f,K)}else{if($=q.original||$,$.replace)$=$.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"");this.opcode("pushId",q.type,$)}}this.accept(q)}},setupFullMustacheParams:function(q,$,f,K){var P=q.params;if(this.pushParams(P),this.opcode("pushProgram",$),this.opcode("pushProgram",f),q.hash)this.accept(q.hash);else this.opcode("emptyHash",K);return P},blockParamIndex:function(q){for(var $=0,f=this.options.blockParams.length;$<f;$++){var K=this.options.blockParams[$],P=K&&Zq.indexOf(K,q);if(K&&P>=0)return[$,P]}}};function q3(_,q,$){if(_==null||typeof _!=="string"&&_.type!=="Program")throw new Jq.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+_);if(q=q||{},!("data"in q))q.data=!0;if(q.compat)q.useDepths=!0;var f=$.parse(_,q),K=new $.Compiler().compile(f,q);return new $.JavaScriptCompiler().compile(K,q)}function _3(_,q,$){if(q===void 0)q={};if(_==null||typeof _!=="string"&&_.type!=="Program")throw new Jq.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+_);if(q=Zq.extend({},q),!("data"in q))q.data=!0;if(q.compat)q.useDepths=!0;var f=void 0;function K(){var j=$.parse(_,q),w=new $.Compiler().compile(j,q),O=new $.JavaScriptCompiler().compile(w,q,void 0,!0);return $.template(O)}function P(j,w){if(!f)f=K();return f.call(this,j,w)}return P._setup=function(j){if(!f)f=K();return f._setup(j)},P._child=function(j,w,O,v){if(!f)f=K();return f._child(j,w,O,v)},P}function a6(_,q){if(_===q)return!0;if(Zq.isArray(_)&&Zq.isArray(q)&&_.length===q.length){for(var $=0;$<_.length;$++)if(!a6(_[$],q[$]))return!1;return!0}}function G6(_){if(!_.path.parts){var q=_.path;_.path={type:"PathExpression",data:!1,depth:0,parts:[q.original+""],original:q.original+"",loc:q.loc}}}});var C6=H((v3)=>{var S6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");v3.encode=function(_){if(0<=_&&_<S6.length)return S6[_];throw TypeError("Must be between 0 and 63: "+_)};v3.decode=function(_){var q=65,$=90,f=97,K=122,P=48,j=57,w=43,O=47,v=26,h=52;if(q<=_&&_<=$)return _-q;if(f<=_&&_<=K)return _-f+v;if(P<=_&&_<=j)return _-P+h;if(_==w)return 62;if(_==O)return 63;return-1}});var e_=H((T3)=>{var l6=C6(),p_=5,V6=1<<p_,M6=V6-1,N6=V6;function Y3(_){return _<0?(-_<<1)+1:(_<<1)+0}function h3(_){var q=(_&1)===1,$=_>>1;return q?-$:$}T3.encode=function(q){var $="",f,K=Y3(q);do{if(f=K&M6,K>>>=p_,K>0)f|=N6;$+=l6.encode(f)}while(K>0);return $};T3.decode=function(q,$,f){var K=q.length,P=0,j=0,w,O;do{if($>=K)throw Error("Expected more digits in base 64 VLQ value.");if(O=l6.decode(q.charCodeAt($++)),O===-1)throw Error("Invalid base64 digit: "+q.charAt($-1));w=!!(O&N6),O&=M6,P=P+(O<<j),j+=p_}while(w);f.value=h3(P),f.rest=$}});var jq=H((X3)=>{function z3(_,q,$){if(q in _)return _[q];else if(arguments.length===3)return $;else throw Error('"'+q+'" is a required argument.')}X3.getArg=z3;var c6=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,H3=/^data:.+\,.+$/;function mq(_){var q=_.match(c6);if(!q)return null;return{scheme:q[1],auth:q[2],host:q[3],port:q[4],path:q[5]}}X3.urlParse=mq;function Kq(_){var q="";if(_.scheme)q+=_.scheme+":";if(q+="//",_.auth)q+=_.auth+"@";if(_.host)q+=_.host;if(_.port)q+=":"+_.port;if(_.path)q+=_.path;return q}X3.urlGenerate=Kq;function d_(_){var q=_,$=mq(_);if($){if(!$.path)return _;q=$.path}var f=X3.isAbsolute(q),K=q.split(/\/+/);for(var P,j=0,w=K.length-1;w>=0;w--)if(P=K[w],P===".")K.splice(w,1);else if(P==="..")j++;else if(j>0)if(P==="")K.splice(w+1,j),j=0;else K.splice(w,2),j--;if(q=K.join("/"),q==="")q=f?"/":".";if($)return $.path=q,Kq($);return q}X3.normalize=d_;function E6(_,q){if(_==="")_=".";if(q==="")q=".";var $=mq(q),f=mq(_);if(f)_=f.path||"/";if($&&!$.scheme){if(f)$.scheme=f.scheme;return Kq($)}if($||q.match(H3))return q;if(f&&!f.host&&!f.path)return f.host=q,Kq(f);var K=q.charAt(0)==="/"?q:d_(_.replace(/\/+$/,"")+"/"+q);if(f)return f.path=K,Kq(f);return K}X3.join=E6;X3.isAbsolute=function(_){return _.charAt(0)==="/"||c6.test(_)};function W3(_,q){if(_==="")_=".";_=_.replace(/\/$/,"");var $=0;while(q.indexOf(_+"/")!==0){var f=_.lastIndexOf("/");if(f<0)return q;if(_=_.slice(0,f),_.match(/^([^\/]+:\/)?\/*$/))return q;++$}return Array($+1).join("../")+q.substr(_.length+1)}X3.relative=W3;var R6=function(){var _=Object.create(null);return!("__proto__"in _)}();function g6(_){return _}function J3(_){if(I6(_))return"$"+_;return _}X3.toSetString=R6?g6:J3;function Z3(_){if(I6(_))return _.slice(1);return _}X3.fromSetString=R6?g6:Z3;function I6(_){if(!_)return!1;var q=_.length;if(q<9)return!1;if(_.charCodeAt(q-1)!==95||_.charCodeAt(q-2)!==95||_.charCodeAt(q-3)!==111||_.charCodeAt(q-4)!==116||_.charCodeAt(q-5)!==111||_.charCodeAt(q-6)!==114||_.charCodeAt(q-7)!==112||_.charCodeAt(q-8)!==95||_.charCodeAt(q-9)!==95)return!1;for(var $=q-10;$>=0;$--)if(_.charCodeAt($)!==36)return!1;return!0}function m3(_,q,$){var f=Pq(_.source,q.source);if(f!==0)return f;if(f=_.originalLine-q.originalLine,f!==0)return f;if(f=_.originalColumn-q.originalColumn,f!==0||$)return f;if(f=_.generatedColumn-q.generatedColumn,f!==0)return f;if(f=_.generatedLine-q.generatedLine,f!==0)return f;return Pq(_.name,q.name)}X3.compareByOriginalPositions=m3;function u3(_,q,$){var f=_.generatedLine-q.generatedLine;if(f!==0)return f;if(f=_.generatedColumn-q.generatedColumn,f!==0||$)return f;if(f=Pq(_.source,q.source),f!==0)return f;if(f=_.originalLine-q.originalLine,f!==0)return f;if(f=_.originalColumn-q.originalColumn,f!==0)return f;return Pq(_.name,q.name)}X3.compareByGeneratedPositionsDeflated=u3;function Pq(_,q){if(_===q)return 0;if(_===null)return 1;if(q===null)return-1;if(_>q)return 1;return-1}function o3(_,q){var $=_.generatedLine-q.generatedLine;if($!==0)return $;if($=_.generatedColumn-q.generatedColumn,$!==0)return $;if($=Pq(_.source,q.source),$!==0)return $;if($=_.originalLine-q.originalLine,$!==0)return $;if($=_.originalColumn-q.originalColumn,$!==0)return $;return Pq(_.name,q.name)}X3.compareByGeneratedPositionsInflated=o3;function n3(_){return JSON.parse(_.replace(/^\)]}'[^\n]*\n/,""))}X3.parseSourceMapInput=n3;function A3(_,q,$){if(q=q||"",_){if(_[_.length-1]!=="/"&&q[0]!=="/")_+="/";q=_+q}if($){var f=mq($);if(!f)throw Error("sourceMapURL could not be parsed");if(f.path){var K=f.path.lastIndexOf("/");if(K>=0)f.path=f.path.substring(0,K+1)}q=E6(Kq(f),q)}return d_(q)}X3.computeSourceURL=A3});var i_=H((c3)=>{var t_=jq(),G_=Object.prototype.hasOwnProperty,U=typeof Map<"u";function E(){this._array=[],this._set=U?new Map:Object.create(null)}E.fromArray=function(q,$){var f=new E;for(var K=0,P=q.length;K<P;K++)f.add(q[K],$);return f};E.prototype.size=function(){return U?this._set.size:Object.getOwnPropertyNames(this._set).length};E.prototype.add=function(q,$){var f=U?q:t_.toSetString(q),K=U?this.has(q):G_.call(this._set,f),P=this._array.length;if(!K||$)this._array.push(q);if(!K)if(U)this._set.set(q,P);else this._set[f]=P};E.prototype.has=function(q){if(U)return this._set.has(q);else{var $=t_.toSetString(q);return G_.call(this._set,$)}};E.prototype.indexOf=function(q){if(U){var $=this._set.get(q);if($>=0)return $}else{var f=t_.toSetString(q);if(G_.call(this._set,f))return this._set[f]}throw Error('"'+q+'" is not in the set.')};E.prototype.at=function(q){if(q>=0&&q<this._array.length)return this._array[q];throw Error("No element indexed by "+q)};E.prototype.toArray=function(){return this._array.slice()};c3.ArraySet=E});var D6=H((g3)=>{var y6=jq();function R3(_,q){var $=_.generatedLine,f=q.generatedLine,K=_.generatedColumn,P=q.generatedColumn;return f>$||f==$&&P>=K||y6.compareByGeneratedPositionsInflated(_,q)<=0}function Nq(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Nq.prototype.unsortedForEach=function(q,$){this._array.forEach(q,$)};Nq.prototype.add=function(q){if(R3(this._last,q))this._last=q,this._array.push(q);else this._sorted=!1,this._array.push(q)};Nq.prototype.toArray=function(){if(!this._sorted)this._array.sort(y6.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};g3.MappingList=Nq});var a_=H((D3)=>{var uq=e_(),u=jq(),cq=i_().ArraySet,y3=D6().MappingList;function G(_){if(!_)_={};this._file=u.getArg(_,"file",null),this._sourceRoot=u.getArg(_,"sourceRoot",null),this._skipValidation=u.getArg(_,"skipValidation",!1),this._sources=new cq,this._names=new cq,this._mappings=new y3,this._sourcesContents=null}G.prototype._version=3;G.fromSourceMap=function(q){var $=q.sourceRoot,f=new G({file:q.file,sourceRoot:$});return q.eachMapping(function(K){var P={generated:{line:K.generatedLine,column:K.generatedColumn}};if(K.source!=null){if(P.source=K.source,$!=null)P.source=u.relative($,P.source);if(P.original={line:K.originalLine,column:K.originalColumn},K.name!=null)P.name=K.name}f.addMapping(P)}),q.sources.forEach(function(K){var P=K;if($!==null)P=u.relative($,K);if(!f._sources.has(P))f._sources.add(P);var j=q.sourceContentFor(K);if(j!=null)f.setSourceContent(K,j)}),f};G.prototype.addMapping=function(q){var $=u.getArg(q,"generated"),f=u.getArg(q,"original",null),K=u.getArg(q,"source",null),P=u.getArg(q,"name",null);if(!this._skipValidation)this._validateMapping($,f,K,P);if(K!=null){if(K=String(K),!this._sources.has(K))this._sources.add(K)}if(P!=null){if(P=String(P),!this._names.has(P))this._names.add(P)}this._mappings.add({generatedLine:$.line,generatedColumn:$.column,originalLine:f!=null&&f.line,originalColumn:f!=null&&f.column,source:K,name:P})};G.prototype.setSourceContent=function(q,$){var f=q;if(this._sourceRoot!=null)f=u.relative(this._sourceRoot,f);if($!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[u.toSetString(f)]=$}else if(this._sourcesContents){if(delete this._sourcesContents[u.toSetString(f)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};G.prototype.applySourceMap=function(q,$,f){var K=$;if($==null){if(q.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);K=q.file}var P=this._sourceRoot;if(P!=null)K=u.relative(P,K);var j=new cq,w=new cq;this._mappings.unsortedForEach(function(O){if(O.source===K&&O.originalLine!=null){var v=q.originalPositionFor({line:O.originalLine,column:O.originalColumn});if(v.source!=null){if(O.source=v.source,f!=null)O.source=u.join(f,O.source);if(P!=null)O.source=u.relative(P,O.source);if(O.originalLine=v.line,O.originalColumn=v.column,v.name!=null)O.name=v.name}}var h=O.source;if(h!=null&&!j.has(h))j.add(h);var Y=O.name;if(Y!=null&&!w.has(Y))w.add(Y)},this),this._sources=j,this._names=w,q.sources.forEach(function(O){var v=q.sourceContentFor(O);if(v!=null){if(f!=null)O=u.join(f,O);if(P!=null)O=u.relative(P,O);this.setSourceContent(O,v)}},this)};G.prototype._validateMapping=function(q,$,f,K){if($&&typeof $.line!=="number"&&typeof $.column!=="number")throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(q&&"line"in q&&"column"in q&&q.line>0&&q.column>=0&&!$&&!f&&!K)return;else if(q&&"line"in q&&"column"in q&&$&&"line"in $&&"column"in $&&q.line>0&&q.column>=0&&$.line>0&&$.column>=0&&f)return;else throw Error("Invalid mapping: "+JSON.stringify({generated:q,source:f,original:$,name:K}))};G.prototype._serializeMappings=function(){var q=0,$=1,f=0,K=0,P=0,j=0,w="",O,v,h,Y,T=this._mappings.toArray();for(var z=0,W=T.length;z<W;z++){if(v=T[z],O="",v.generatedLine!==$){q=0;while(v.generatedLine!==$)O+=";",$++}else if(z>0){if(!u.compareByGeneratedPositionsInflated(v,T[z-1]))continue;O+=","}if(O+=uq.encode(v.generatedColumn-q),q=v.generatedColumn,v.source!=null){if(Y=this._sources.indexOf(v.source),O+=uq.encode(Y-j),j=Y,O+=uq.encode(v.originalLine-1-K),K=v.originalLine-1,O+=uq.encode(v.originalColumn-f),f=v.originalColumn,v.name!=null)h=this._names.indexOf(v.name),O+=uq.encode(h-P),P=h}w+=O}return w};G.prototype._generateSourcesContent=function(q,$){return q.map(function(f){if(!this._sourcesContents)return null;if($!=null)f=u.relative($,f);var K=u.toSetString(f);return Object.prototype.hasOwnProperty.call(this._sourcesContents,K)?this._sourcesContents[K]:null},this)};G.prototype.toJSON=function(){var q={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)q.file=this._file;if(this._sourceRoot!=null)q.sourceRoot=this._sourceRoot;if(this._sourcesContents)q.sourcesContent=this._generateSourcesContent(q.sources,q.sourceRoot);return q};G.prototype.toString=function(){return JSON.stringify(this.toJSON())};D3.SourceMapGenerator=G});var L6=H((L3)=>{L3.GREATEST_LOWER_BOUND=1;L3.LEAST_UPPER_BOUND=2;function b_(_,q,$,f,K,P){var j=Math.floor((q-_)/2)+_,w=K($,f[j],!0);if(w===0)return j;else if(w>0){if(q-j>1)return b_(j,q,$,f,K,P);if(P==L3.LEAST_UPPER_BOUND)return q<f.length?q:-1;else return j}else{if(j-_>1)return b_(_,j,$,f,K,P);if(P==L3.LEAST_UPPER_BOUND)return j;else return _<0?-1:_}}L3.search=function(q,$,f,K){if($.length===0)return-1;var P=b_(-1,$.length,q,$,f,K||L3.GREATEST_LOWER_BOUND);if(P<0)return-1;while(P-1>=0){if(f($[P],$[P-1],!0)!==0)break;--P}return P}});var s6=H((U3)=>{function C_(_,q,$){var f=_[q];_[q]=_[$],_[$]=f}function B3(_,q){return Math.round(_+Math.random()*(q-_))}function l_(_,q,$,f){if($<f){var K=B3($,f),P=$-1;C_(_,K,f);var j=_[f];for(var w=$;w<f;w++)if(q(_[w],j)<=0)P+=1,C_(_,P,w);C_(_,P+1,w);var O=P+1;l_(_,q,$,O-1),l_(_,q,O+1,f)}}U3.quickSort=function(_,q){l_(_,q,0,_.length-1)}});var U6=H((q4)=>{var r=jq(),V_=L6(),vq=i_().ArraySet,Q3=e_(),oq=s6().quickSort;function J(_,q){var $=_;if(typeof _==="string")$=r.parseSourceMapInput(_);return $.sections!=null?new i($,q):new A($,q)}J.fromSourceMap=function(_,q){return A.fromSourceMap(_,q)};J.prototype._version=3;J.prototype.__generatedMappings=null;Object.defineProperty(J.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});J.prototype.__originalMappings=null;Object.defineProperty(J.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});J.prototype._charIsMappingSeparator=function(q,$){var f=q.charAt($);return f===";"||f===","};J.prototype._parseMappings=function(q,$){throw Error("Subclasses must implement _parseMappings")};J.GENERATED_ORDER=1;J.ORIGINAL_ORDER=2;J.GREATEST_LOWER_BOUND=1;J.LEAST_UPPER_BOUND=2;J.prototype.eachMapping=function(q,$,f){var K=$||null,P=f||J.GENERATED_ORDER,j;switch(P){case J.GENERATED_ORDER:j=this._generatedMappings;break;case J.ORIGINAL_ORDER:j=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var w=this.sourceRoot;j.map(function(O){var v=O.source===null?null:this._sources.at(O.source);return v=r.computeSourceURL(w,v,this._sourceMapURL),{source:v,generatedLine:O.generatedLine,generatedColumn:O.generatedColumn,originalLine:O.originalLine,originalColumn:O.originalColumn,name:O.name===null?null:this._names.at(O.name)}},this).forEach(q,K)};J.prototype.allGeneratedPositionsFor=function(q){var $=r.getArg(q,"line"),f={source:r.getArg(q,"source"),originalLine:$,originalColumn:r.getArg(q,"column",0)};if(f.source=this._findSourceIndex(f.source),f.source<0)return[];var K=[],P=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,V_.LEAST_UPPER_BOUND);if(P>=0){var j=this._originalMappings[P];if(q.column===void 0){var w=j.originalLine;while(j&&j.originalLine===w)K.push({line:r.getArg(j,"generatedLine",null),column:r.getArg(j,"generatedColumn",null),lastColumn:r.getArg(j,"lastGeneratedColumn",null)}),j=this._originalMappings[++P]}else{var O=j.originalColumn;while(j&&j.originalLine===$&&j.originalColumn==O)K.push({line:r.getArg(j,"generatedLine",null),column:r.getArg(j,"generatedColumn",null),lastColumn:r.getArg(j,"lastGeneratedColumn",null)}),j=this._originalMappings[++P]}}return K};q4.SourceMapConsumer=J;function A(_,q){var $=_;if(typeof _==="string")$=r.parseSourceMapInput(_);var f=r.getArg($,"version"),K=r.getArg($,"sources"),P=r.getArg($,"names",[]),j=r.getArg($,"sourceRoot",null),w=r.getArg($,"sourcesContent",null),O=r.getArg($,"mappings"),v=r.getArg($,"file",null);if(f!=this._version)throw Error("Unsupported version: "+f);if(j)j=r.normalize(j);K=K.map(String).map(r.normalize).map(function(h){return j&&r.isAbsolute(j)&&r.isAbsolute(h)?r.relative(j,h):h}),this._names=vq.fromArray(P.map(String),!0),this._sources=vq.fromArray(K,!0),this._absoluteSources=this._sources.toArray().map(function(h){return r.computeSourceURL(j,h,q)}),this.sourceRoot=j,this.sourcesContent=w,this._mappings=O,this._sourceMapURL=q,this.file=v}A.prototype=Object.create(J.prototype);A.prototype.consumer=J;A.prototype._findSourceIndex=function(_){var q=_;if(this.sourceRoot!=null)q=r.relative(this.sourceRoot,q);if(this._sources.has(q))return this._sources.indexOf(q);var $;for($=0;$<this._absoluteSources.length;++$)if(this._absoluteSources[$]==_)return $;return-1};A.fromSourceMap=function(q,$){var f=Object.create(A.prototype),K=f._names=vq.fromArray(q._names.toArray(),!0),P=f._sources=vq.fromArray(q._sources.toArray(),!0);f.sourceRoot=q._sourceRoot,f.sourcesContent=q._generateSourcesContent(f._sources.toArray(),f.sourceRoot),f.file=q._file,f._sourceMapURL=$,f._absoluteSources=f._sources.toArray().map(function(z){return r.computeSourceURL(f.sourceRoot,z,$)});var j=q._mappings.toArray().slice(),w=f.__generatedMappings=[],O=f.__originalMappings=[];for(var v=0,h=j.length;v<h;v++){var Y=j[v],T=new B6;if(T.generatedLine=Y.generatedLine,T.generatedColumn=Y.generatedColumn,Y.source){if(T.source=P.indexOf(Y.source),T.originalLine=Y.originalLine,T.originalColumn=Y.originalColumn,Y.name)T.name=K.indexOf(Y.name);O.push(T)}w.push(T)}return oq(f.__originalMappings,r.compareByOriginalPositions),f};A.prototype._version=3;Object.defineProperty(A.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function B6(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}A.prototype._parseMappings=function(q,$){var f=1,K=0,P=0,j=0,w=0,O=0,v=q.length,h=0,Y={},T={},z=[],W=[],m,a,n,D,Xq;while(h<v)if(q.charAt(h)===";")f++,h++,K=0;else if(q.charAt(h)===",")h++;else{m=new B6,m.generatedLine=f;for(D=h;D<v;D++)if(this._charIsMappingSeparator(q,D))break;if(a=q.slice(h,D),n=Y[a],n)h+=a.length;else{n=[];while(h<D)Q3.decode(q,h,T),Xq=T.value,h=T.rest,n.push(Xq);if(n.length===2)throw Error("Found a source, but no line and column");if(n.length===3)throw Error("Found a source and line, but no column");Y[a]=n}if(m.generatedColumn=K+n[0],K=m.generatedColumn,n.length>1){if(m.source=w+n[1],w+=n[1],m.originalLine=P+n[2],P=m.originalLine,m.originalLine+=1,m.originalColumn=j+n[3],j=m.originalColumn,n.length>4)m.name=O+n[4],O+=n[4]}if(W.push(m),typeof m.originalLine==="number")z.push(m)}oq(W,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=W,oq(z,r.compareByOriginalPositions),this.__originalMappings=z};A.prototype._findMapping=function(q,$,f,K,P,j){if(q[f]<=0)throw TypeError("Line must be greater than or equal to 1, got "+q[f]);if(q[K]<0)throw TypeError("Column must be greater than or equal to 0, got "+q[K]);return V_.search(q,$,P,j)};A.prototype.computeColumnSpans=function(){for(var q=0;q<this._generatedMappings.length;++q){var $=this._generatedMappings[q];if(q+1<this._generatedMappings.length){var f=this._generatedMappings[q+1];if($.generatedLine===f.generatedLine){$.lastGeneratedColumn=f.generatedColumn-1;continue}}$.lastGeneratedColumn=1/0}};A.prototype.originalPositionFor=function(q){var $={generatedLine:r.getArg(q,"line"),generatedColumn:r.getArg(q,"column")},f=this._findMapping($,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(q,"bias",J.GREATEST_LOWER_BOUND));if(f>=0){var K=this._generatedMappings[f];if(K.generatedLine===$.generatedLine){var P=r.getArg(K,"source",null);if(P!==null)P=this._sources.at(P),P=r.computeSourceURL(this.sourceRoot,P,this._sourceMapURL);var j=r.getArg(K,"name",null);if(j!==null)j=this._names.at(j);return{source:P,line:r.getArg(K,"originalLine",null),column:r.getArg(K,"originalColumn",null),name:j}}}return{source:null,line:null,column:null,name:null}};A.prototype.hasContentsOfAllSources=function(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(q){return q==null})};A.prototype.sourceContentFor=function(q,$){if(!this.sourcesContent)return null;var f=this._findSourceIndex(q);if(f>=0)return this.sourcesContent[f];var K=q;if(this.sourceRoot!=null)K=r.relative(this.sourceRoot,K);var P;if(this.sourceRoot!=null&&(P=r.urlParse(this.sourceRoot))){var j=K.replace(/^file:\/\//,"");if(P.scheme=="file"&&this._sources.has(j))return this.sourcesContent[this._sources.indexOf(j)];if((!P.path||P.path=="/")&&this._sources.has("/"+K))return this.sourcesContent[this._sources.indexOf("/"+K)]}if($)return null;else throw Error('"'+K+'" is not in the SourceMap.')};A.prototype.generatedPositionFor=function(q){var $=r.getArg(q,"source");if($=this._findSourceIndex($),$<0)return{line:null,column:null,lastColumn:null};var f={source:$,originalLine:r.getArg(q,"line"),originalColumn:r.getArg(q,"column")},K=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(q,"bias",J.GREATEST_LOWER_BOUND));if(K>=0){var P=this._originalMappings[K];if(P.source===f.source)return{line:r.getArg(P,"generatedLine",null),column:r.getArg(P,"generatedColumn",null),lastColumn:r.getArg(P,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};q4.BasicSourceMapConsumer=A;function i(_,q){var $=_;if(typeof _==="string")$=r.parseSourceMapInput(_);var f=r.getArg($,"version"),K=r.getArg($,"sections");if(f!=this._version)throw Error("Unsupported version: "+f);this._sources=new vq,this._names=new vq;var P={line:-1,column:0};this._sections=K.map(function(j){if(j.url)throw Error("Support for url field in sections not implemented.");var w=r.getArg(j,"offset"),O=r.getArg(w,"line"),v=r.getArg(w,"column");if(O<P.line||O===P.line&&v<P.column)throw Error("Section offsets must be ordered and non-overlapping.");return P=w,{generatedOffset:{generatedLine:O+1,generatedColumn:v+1},consumer:new J(r.getArg(j,"map"),q)}})}i.prototype=Object.create(J.prototype);i.prototype.constructor=J;i.prototype._version=3;Object.defineProperty(i.prototype,"sources",{get:function(){var _=[];for(var q=0;q<this._sections.length;q++)for(var $=0;$<this._sections[q].consumer.sources.length;$++)_.push(this._sections[q].consumer.sources[$]);return _}});i.prototype.originalPositionFor=function(q){var $={generatedLine:r.getArg(q,"line"),generatedColumn:r.getArg(q,"column")},f=V_.search($,this._sections,function(P,j){var w=P.generatedLine-j.generatedOffset.generatedLine;if(w)return w;return P.generatedColumn-j.generatedOffset.generatedColumn}),K=this._sections[f];if(!K)return{source:null,line:null,column:null,name:null};return K.consumer.originalPositionFor({line:$.generatedLine-(K.generatedOffset.generatedLine-1),column:$.generatedColumn-(K.generatedOffset.generatedLine===$.generatedLine?K.generatedOffset.generatedColumn-1:0),bias:q.bias})};i.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(q){return q.consumer.hasContentsOfAllSources()})};i.prototype.sourceContentFor=function(q,$){for(var f=0;f<this._sections.length;f++){var K=this._sections[f],P=K.consumer.sourceContentFor(q,!0);if(P)return P}if($)return null;else throw Error('"'+q+'" is not in the SourceMap.')};i.prototype.generatedPositionFor=function(q){for(var $=0;$<this._sections.length;$++){var f=this._sections[$];if(f.consumer._findSourceIndex(r.getArg(q,"source"))===-1)continue;var K=f.consumer.generatedPositionFor(q);if(K){var P={line:K.line+(f.generatedOffset.generatedLine-1),column:K.column+(f.generatedOffset.generatedLine===K.line?f.generatedOffset.generatedColumn-1:0)};return P}}return{line:null,column:null}};i.prototype._parseMappings=function(q,$){this.__generatedMappings=[],this.__originalMappings=[];for(var f=0;f<this._sections.length;f++){var K=this._sections[f],P=K.consumer._generatedMappings;for(var j=0;j<P.length;j++){var w=P[j],O=K.consumer._sources.at(w.source);O=r.computeSourceURL(K.consumer.sourceRoot,O,this._sourceMapURL),this._sources.add(O),O=this._sources.indexOf(O);var v=null;if(w.name)v=K.consumer._names.at(w.name),this._names.add(v),v=this._names.indexOf(v);var h={source:O,generatedLine:w.generatedLine+(K.generatedOffset.generatedLine-1),generatedColumn:w.generatedColumn+(K.generatedOffset.generatedLine===w.generatedLine?K.generatedOffset.generatedColumn-1:0),originalLine:w.originalLine,originalColumn:w.originalColumn,name:v};if(this.__generatedMappings.push(h),typeof h.originalLine==="number")this.__originalMappings.push(h)}}oq(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),oq(this.__originalMappings,r.compareByOriginalPositions)};q4.IndexedSourceMapConsumer=i});var F6=H((v4)=>{var K4=a_().SourceMapGenerator,Eq=jq(),P4=/(\r?\n)/,j4=10,wq="$$$isSourceNode$$$";function e(_,q,$,f,K){if(this.children=[],this.sourceContents={},this.line=_==null?null:_,this.column=q==null?null:q,this.source=$==null?null:$,this.name=K==null?null:K,this[wq]=!0,f!=null)this.add(f)}e.fromStringWithSourceMap=function(q,$,f){var K=new e,P=q.split(P4),j=0,w=function(){var T=W(),z=W()||"";return T+z;function W(){return j<P.length?P[j++]:void 0}},O=1,v=0,h=null;if($.eachMapping(function(T){if(h!==null)if(O<T.generatedLine)Y(h,w()),O++,v=0;else{var z=P[j]||"",W=z.substr(0,T.generatedColumn-v);P[j]=z.substr(T.generatedColumn-v),v=T.generatedColumn,Y(h,W),h=T;return}while(O<T.generatedLine)K.add(w()),O++;if(v<T.generatedColumn){var z=P[j]||"";K.add(z.substr(0,T.generatedColumn)),P[j]=z.substr(T.generatedColumn),v=T.generatedColumn}h=T},this),j<P.length){if(h)Y(h,w());K.add(P.splice(j).join(""))}return $.sources.forEach(function(T){var z=$.sourceContentFor(T);if(z!=null){if(f!=null)T=Eq.join(f,T);K.setSourceContent(T,z)}}),K;function Y(T,z){if(T===null||T.source===void 0)K.add(z);else{var W=f?Eq.join(f,T.source):T.source;K.add(new e(T.originalLine,T.originalColumn,W,z,T.name))}}};e.prototype.add=function(q){if(Array.isArray(q))q.forEach(function($){this.add($)},this);else if(q[wq]||typeof q==="string"){if(q)this.children.push(q)}else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+q);return this};e.prototype.prepend=function(q){if(Array.isArray(q))for(var $=q.length-1;$>=0;$--)this.prepend(q[$]);else if(q[wq]||typeof q==="string")this.children.unshift(q);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+q);return this};e.prototype.walk=function(q){var $;for(var f=0,K=this.children.length;f<K;f++)if($=this.children[f],$[wq])$.walk(q);else if($!=="")q($,{source:this.source,line:this.line,column:this.column,name:this.name})};e.prototype.join=function(q){var $,f,K=this.children.length;if(K>0){$=[];for(f=0;f<K-1;f++)$.push(this.children[f]),$.push(q);$.push(this.children[f]),this.children=$}return this};e.prototype.replaceRight=function(q,$){var f=this.children[this.children.length-1];if(f[wq])f.replaceRight(q,$);else if(typeof f==="string")this.children[this.children.length-1]=f.replace(q,$);else this.children.push("".replace(q,$));return this};e.prototype.setSourceContent=function(q,$){this.sourceContents[Eq.toSetString(q)]=$};e.prototype.walkSourceContents=function(q){for(var $=0,f=this.children.length;$<f;$++)if(this.children[$][wq])this.children[$].walkSourceContents(q);var K=Object.keys(this.sourceContents);for(var $=0,f=K.length;$<f;$++)q(Eq.fromSetString(K[$]),this.sourceContents[K[$]])};e.prototype.toString=function(){var q="";return this.walk(function($){q+=$}),q};e.prototype.toStringWithSourceMap=function(q){var $={code:"",line:1,column:0},f=new K4(q),K=!1,P=null,j=null,w=null,O=null;return this.walk(function(v,h){if($.code+=v,h.source!==null&&h.line!==null&&h.column!==null){if(P!==h.source||j!==h.line||w!==h.column||O!==h.name)f.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:$.line,column:$.column},name:h.name});P=h.source,j=h.line,w=h.column,O=h.name,K=!0}else if(K)f.addMapping({generated:{line:$.line,column:$.column}}),P=null,K=!1;for(var Y=0,T=v.length;Y<T;Y++)if(v.charCodeAt(Y)===j4){if($.line++,$.column=0,Y+1===T)P=null,K=!1;else if(K)f.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:$.line,column:$.column},name:h.name})}else $.column++}),this.walkSourceContents(function(v,h){f.setSourceContent(v,h)}),{code:$.code,map:f}};v4.SourceNode=e});var Q6=H((O4)=>{O4.SourceMapGenerator=a_().SourceMapGenerator;O4.SourceMapConsumer=U6().SourceMapConsumer;O4.SourceNode=F6().SourceNode});var f8=H((_8,$8)=>{_8.__esModule=!0;var N_=p(),F=void 0;try{if(typeof define!=="function"||!define.amd)c_=Q6(),F=c_.SourceNode}catch(_){}var c_;if(!F)F=function(_,q,$,f){if(this.src="",f)this.add(f)},F.prototype={add:function(q){if(N_.isArray(q))q=q.join("");this.src+=q},prepend:function(q){if(N_.isArray(q))q=q.join("");this.src=q+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}};function M_(_,q,$){if(N_.isArray(_)){var f=[];for(var K=0,P=_.length;K<P;K++)f.push(q.wrap(_[K],$));return f}else if(typeof _==="boolean"||typeof _==="number")return _+"";return _}function q8(_){this.srcFile=_,this.source=[]}q8.prototype={isEmpty:function(){return!this.source.length},prepend:function(q,$){this.source.unshift(this.wrap(q,$))},push:function(q,$){this.source.push(this.wrap(q,$))},merge:function(){var q=this.empty();return this.each(function($){q.add([" ",$,`
13
+ `])}),q},each:function(q){for(var $=0,f=this.source.length;$<f;$++)q(this.source[$])},empty:function(){var q=this.currentLocation||{start:{}};return new F(q.start.line,q.start.column,this.srcFile)},wrap:function(q){var $=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];if(q instanceof F)return q;return q=M_(q,this,$),new F($.start.line,$.start.column,this.srcFile,q)},functionCall:function(q,$,f){return f=this.generateList(f),this.wrap([q,$?"."+$+"(":"(",f,")"])},quotedString:function(q){return'"'+(q+"").replace(/\\/g,"\\\\").replace(/"/g,"\\\"").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(q){var $=this,f=[];Object.keys(q).forEach(function(P){var j=M_(q[P],$);if(j!=="undefined")f.push([$.quotedString(P),":",j])});var K=this.generateList(f);return K.prepend("{"),K.add("}"),K},generateList:function(q){var $=this.empty();for(var f=0,K=q.length;f<K;f++){if(f)$.add(",");$.add(M_(q[f],this))}return $},generateArray:function(q){var $=this.generateList(q);return $.prepend("["),$.add("]"),$}};_8.default=q8;$8.exports=_8.default});var O8=H((v8,w8)=>{v8.__esModule=!0;function j8(_){return _&&_.__esModule?_:{default:_}}var K8=bq(),z4=t(),E_=j8(z4),H4=p(),W4=f8(),P8=j8(W4);function Oq(_){this.value=_}function Yq(){}Yq.prototype={nameLookup:function(q,$){return this.internalNameLookup(q,$)},depthedLookup:function(q){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(q),")"]},compilerInfo:function(){var q=K8.COMPILER_REVISION,$=K8.REVISION_CHANGES[q];return[q,$]},appendToBuffer:function(q,$,f){if(!H4.isArray(q))q=[q];if(q=this.source.wrap(q,$),this.environment.isSimple)return["return ",q,";"];else if(f)return["buffer += ",q,";"];else return q.appendToBuffer=!0,q},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(q,$){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",q,",",JSON.stringify($),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(q,$,f,K){this.environment=q,this.options=$,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!K,this.name=this.environment.name,this.isChild=!!f,this.context=f||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(q,$),this.useDepths=this.useDepths||q.useDepths||q.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||q.useBlockParams;var P=q.opcodes,j=void 0,w=void 0,O=void 0,v=void 0;for(O=0,v=P.length;O<v;O++)j=P[O],this.source.currentLocation=j.loc,w=w||j.loc,this[j.opcode].apply(this,j.args);if(this.source.currentLocation=w,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new E_.default("Compile completed with content left on stack");if(!this.decorators.isEmpty())if(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
14
14
  `]),this.decorators.push("return fn;"),K)this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]);else this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
15
15
  `),this.decorators.push(`}
16
- `),this.decorators=this.decorators.merge();else this.decorators=void 0;var h=this.createFunctionContext(K);if(!this.isChild){var Y={compiler:this.compilerInfo(),main:h};if(this.decorators)Y.main_d=this.decorators,Y.useDecorators=!0;var r=this.context,k=r.programs,W=r.decorators;for(O=0,v=k.length;O<v;O++)if(k[O]){if(Y[O]=k[O],W[O])Y[O+"_d"]=W[O],Y.useDecorators=!0}if(this.environment.usePartial)Y.usePartial=!0;if(this.options.data)Y.useData=!0;if(this.useDepths)Y.useDepths=!0;if(this.useBlockParams)Y.useBlockParams=!0;if(this.options.compat)Y.compat=!0;if(!K)if(Y.compiler=JSON.stringify(Y.compiler),this.source.currentLocation={start:{line:1,column:0}},Y=this.objectLiteral(Y),$.srcName)Y=Y.toStringWithSourceMap({file:$.destName}),Y.map=Y.map&&Y.map.toString();else Y=Y.toString();else Y.compilerOptions=this.options;return Y}else return h},preamble:function(){this.lastContext=0,this.source=new ff.default(this.options.srcName),this.decorators=new ff.default(this.options.srcName)},createFunctionContext:function(q){var $=this,f="",K=this.stackVars.concat(this.registers.list);if(K.length>0)f+=", "+K.join(", ");var P=0;if(Object.keys(this.aliases).forEach(function(O){var v=$.aliases[O];if(v.children&&v.referenceCount>1)f+=", alias"+ ++P+"="+O,v.children[0]="alias"+P}),this.lookupPropertyFunctionIsUsed)f+=", "+this.lookupPropertyFunctionVarDeclaration();var j=["container","depth0","helpers","partials","data"];if(this.useBlockParams||this.useDepths)j.push("blockParams");if(this.useDepths)j.push("depths");var w=this.mergeSource(f);if(q)return j.push(w),Function.apply(this,j);else return this.source.wrap(["function(",j.join(","),`) {
16
+ `),this.decorators=this.decorators.merge();else this.decorators=void 0;var h=this.createFunctionContext(K);if(!this.isChild){var Y={compiler:this.compilerInfo(),main:h};if(this.decorators)Y.main_d=this.decorators,Y.useDecorators=!0;var T=this.context,z=T.programs,W=T.decorators;for(O=0,v=z.length;O<v;O++)if(z[O]){if(Y[O]=z[O],W[O])Y[O+"_d"]=W[O],Y.useDecorators=!0}if(this.environment.usePartial)Y.usePartial=!0;if(this.options.data)Y.useData=!0;if(this.useDepths)Y.useDepths=!0;if(this.useBlockParams)Y.useBlockParams=!0;if(this.options.compat)Y.compat=!0;if(!K)if(Y.compiler=JSON.stringify(Y.compiler),this.source.currentLocation={start:{line:1,column:0}},Y=this.objectLiteral(Y),$.srcName)Y=Y.toStringWithSourceMap({file:$.destName}),Y.map=Y.map&&Y.map.toString();else Y=Y.toString();else Y.compilerOptions=this.options;return Y}else return h},preamble:function(){this.lastContext=0,this.source=new P8.default(this.options.srcName),this.decorators=new P8.default(this.options.srcName)},createFunctionContext:function(q){var $=this,f="",K=this.stackVars.concat(this.registers.list);if(K.length>0)f+=", "+K.join(", ");var P=0;if(Object.keys(this.aliases).forEach(function(O){var v=$.aliases[O];if(v.children&&v.referenceCount>1)f+=", alias"+ ++P+"="+O,v.children[0]="alias"+P}),this.lookupPropertyFunctionIsUsed)f+=", "+this.lookupPropertyFunctionVarDeclaration();var j=["container","depth0","helpers","partials","data"];if(this.useBlockParams||this.useDepths)j.push("blockParams");if(this.useDepths)j.push("depths");var w=this.mergeSource(f);if(q)return j.push(w),Function.apply(this,j);else return this.source.wrap(["function(",j.join(","),`) {
17
17
  `,w,"}"])},mergeSource:function(q){var $=this.environment.isSimple,f=!this.forceBuffer,K=void 0,P=void 0,j=void 0,w=void 0;if(this.source.each(function(O){if(O.appendToBuffer){if(j)O.prepend(" + ");else j=O;w=O}else{if(j){if(!P)K=!0;else j.prepend("buffer += ");w.add(";"),j=w=void 0}if(P=!0,!$)f=!1}}),f){if(j)j.prepend("return "),w.add(";");else if(!P)this.source.push('return "";')}else if(q+=", buffer = "+(K?"":this.initializeBuffer()),j)j.prepend("return buffer + "),w.add(";");else this.source.push("return buffer;");if(q)this.source.prepend("var "+q.substring(2)+(K?"":`;
18
18
  `));return this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
19
19
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -22,25 +22,25 @@ Expecting `+eq.join(", ")+", got '"+(this.terminals_[p]||p)+"'";else xq="Parse e
22
22
  }
23
23
  return undefined
24
24
  }
25
- `.trim()},blockValue:function(q){var $=this.aliasable("container.hooks.blockHelperMissing"),f=[this.contextName(0)];this.setupHelperArgs(q,0,f);var K=this.popStack();f.splice(1,0,K),this.push(this.source.functionCall($,"call",f))},ambiguousBlockValue:function(){var q=this.aliasable("container.hooks.blockHelperMissing"),$=[this.contextName(0)];this.setupHelperArgs("",0,$,!0),this.flushInline();var f=this.topStack();$.splice(1,0,f),this.pushSource(["if (!",this.lastHelper,") { ",f," = ",this.source.functionCall(q,"call",$),"}"])},appendContent:function(q){if(this.pendingContent)q=this.pendingContent+q;else this.pendingLocation=this.source.currentLocation;this.pendingContent=q},append:function(){if(this.isInline())this.replaceStack(function($){return[" != null ? ",$,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var q=this.popStack();if(this.pushSource(["if (",q," != null) { ",this.appendToBuffer(q,void 0,!0)," }"]),this.environment.isSimple)this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(q){this.lastContext=q},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(q,$,f,K){var P=0;if(!K&&this.options.compat&&!this.lastContext)this.push(this.depthedLookup(q[P++]));else this.pushContext();this.resolvePath("context",q,P,$,f)},lookupBlockParam:function(q,$){this.useBlockParams=!0,this.push(["blockParams[",q[0],"][",q[1],"]"]),this.resolvePath("context",$,1)},lookupData:function(q,$,f){if(!q)this.pushStackLiteral("data");else this.pushStackLiteral("container.data(data, "+q+")");this.resolvePath("data",$,0,!0,f)},resolvePath:function(q,$,f,K,P){var j=this;if(this.options.strict||this.options.assumeObjects){this.push(P4(this.options.strict&&P,this,$,f,q));return}var w=$.length;for(;f<w;f++)this.replaceStack(function(O){var v=j.nameLookup(O,$[f],q);if(!K)return[" != null ? ",v," : ",O];else return[" && ",v]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(q,$){if(this.pushContext(),this.pushString($),$!=="SubExpression")if(typeof q==="string")this.pushString(q);else this.pushStackLiteral(q)},emptyHash:function(q){if(this.trackIds)this.push("{}");if(this.stringParams)this.push("{}"),this.push("{}");this.pushStackLiteral(q?"undefined":"{}")},pushHash:function(){if(this.hash)this.hashes.push(this.hash);this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var q=this.hash;if(this.hash=this.hashes.pop(),this.trackIds)this.push(this.objectLiteral(q.ids));if(this.stringParams)this.push(this.objectLiteral(q.contexts)),this.push(this.objectLiteral(q.types));this.push(this.objectLiteral(q.values))},pushString:function(q){this.pushStackLiteral(this.quotedString(q))},pushLiteral:function(q){this.pushStackLiteral(q)},pushProgram:function(q){if(q!=null)this.pushStackLiteral(this.programExpression(q));else this.pushStackLiteral(null)},registerDecorator:function(q,$){var f=this.nameLookup("decorators",$,"decorator"),K=this.setupHelperArgs($,q);this.decorators.push(["fn = ",this.decorators.functionCall(f,"",["fn","props","container",K])," || fn;"])},invokeHelper:function(q,$,f){var K=this.popStack(),P=this.setupHelper(q,$),j=[];if(f)j.push(P.name);if(j.push(K),!this.options.strict)j.push(this.aliasable("container.hooks.helperMissing"));var w=["(",this.itemsSeparatedBy(j,"||"),")"],O=this.source.functionCall(w,"call",P.callParams);this.push(O)},itemsSeparatedBy:function(q,$){var f=[];f.push(q[0]);for(var K=1;K<q.length;K++)f.push($,q[K]);return f},invokeKnownHelper:function(q,$){var f=this.setupHelper(q,$);this.push(this.source.functionCall(f.name,"call",f.callParams))},invokeAmbiguous:function(q,$){this.useRegister("helper");var f=this.popStack();this.emptyHash();var K=this.setupHelper(0,q,$),P=this.lastHelper=this.nameLookup("helpers",q,"helper"),j=["(","(helper = ",P," || ",f,")"];if(!this.options.strict)j[0]="(helper = ",j.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"));this.push(["(",j,K.paramsInit?["),(",K.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",K.callParams)," : helper))"])},invokePartial:function(q,$,f){var K=[],P=this.setupParams($,1,K);if(q)$=this.popStack(),delete P.name;if(f)P.indent=JSON.stringify(f);if(P.helpers="helpers",P.partials="partials",P.decorators="container.decorators",!q)K.unshift(this.nameLookup("partials",$,"partial"));else K.unshift($);if(this.options.compat)P.depths="depths";P=this.objectLiteral(P),K.push(P),this.push(this.source.functionCall("container.invokePartial","",K))},assignToHash:function(q){var $=this.popStack(),f=void 0,K=void 0,P=void 0;if(this.trackIds)P=this.popStack();if(this.stringParams)K=this.popStack(),f=this.popStack();var j=this.hash;if(f)j.contexts[q]=f;if(K)j.types[q]=K;if(P)j.ids[q]=P;j.values[q]=$},pushId:function(q,$,f){if(q==="BlockParam")this.pushStackLiteral("blockParams["+$[0]+"].path["+$[1]+"]"+(f?" + "+JSON.stringify("."+f):""));else if(q==="PathExpression")this.pushString($);else if(q==="SubExpression")this.pushStackLiteral("true");else this.pushStackLiteral("null")},compiler:wq,compileChildren:function(q,$){var f=q.children,K=void 0,P=void 0;for(var j=0,w=f.length;j<w;j++){K=f[j],P=new this.compiler;var O=this.matchExistingProgram(K);if(O==null){this.context.programs.push("");var v=this.context.programs.length;K.index=v,K.name="program"+v,this.context.programs[v]=P.compile(K,$,this.context,!this.precompile),this.context.decorators[v]=P.decorators,this.context.environments[v]=K,this.useDepths=this.useDepths||P.useDepths,this.useBlockParams=this.useBlockParams||P.useBlockParams,K.useDepths=this.useDepths,K.useBlockParams=this.useBlockParams}else K.index=O.index,K.name="program"+O.index,this.useDepths=this.useDepths||O.useDepths,this.useBlockParams=this.useBlockParams||O.useBlockParams}},matchExistingProgram:function(q){for(var $=0,f=this.context.environments.length;$<f;$++){var K=this.context.environments[$];if(K&&K.equals(q))return K}},programExpression:function(q){var $=this.environment.children[q],f=[$.index,"data",$.blockParams];if(this.useBlockParams||this.useDepths)f.push("blockParams");if(this.useDepths)f.push("depths");return"container.program("+f.join(", ")+")"},useRegister:function(q){if(!this.registers[q])this.registers[q]=!0,this.registers.list.push(q)},push:function(q){if(!(q instanceof vq))q=this.source.wrap(q);return this.inlineStack.push(q),q},pushStackLiteral:function(q){this.push(new vq(q))},pushSource:function(q){if(this.pendingContent)this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0;if(q)this.source.push(q)},replaceStack:function(q){var $=["("],f=void 0,K=void 0,P=void 0;if(!this.isInline())throw new N_.default("replaceStack on non-inline");var j=this.popStack(!0);if(j instanceof vq)f=[j.value],$=["(",f],P=!0;else{K=!0;var w=this.incrStack();$=["((",this.push(w)," = ",j,")"],f=this.topStack()}var O=q.call(this,f);if(!P)this.popStack();if(K)this.stackSlot--;this.push($.concat(O,")"))},incrStack:function(){if(this.stackSlot++,this.stackSlot>this.stackVars.length)this.stackVars.push("stack"+this.stackSlot);return this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var q=this.inlineStack;this.inlineStack=[];for(var $=0,f=q.length;$<f;$++){var K=q[$];if(K instanceof vq)this.compileStack.push(K);else{var P=this.incrStack();this.pushSource([P," = ",K,";"]),this.compileStack.push(P)}}},isInline:function(){return this.inlineStack.length},popStack:function(q){var $=this.isInline(),f=($?this.inlineStack:this.compileStack).pop();if(!q&&f instanceof vq)return f.value;else{if(!$){if(!this.stackSlot)throw new N_.default("Invalid stack pop");this.stackSlot--}return f}},topStack:function(){var q=this.isInline()?this.inlineStack:this.compileStack,$=q[q.length-1];if($ instanceof vq)return $.value;else return $},contextName:function(q){if(this.useDepths&&q)return"depths["+q+"]";else return"depth"+q},quotedString:function(q){return this.source.quotedString(q)},objectLiteral:function(q){return this.source.objectLiteral(q)},aliasable:function(q){var $=this.aliases[q];if($)return $.referenceCount++,$;return $=this.aliases[q]=this.source.wrap(q),$.aliasable=!0,$.referenceCount=1,$},setupHelper:function(q,$,f){var K=[],P=this.setupHelperArgs($,q,K,f),j=this.nameLookup("helpers",$,"helper"),w=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:K,paramsInit:P,name:j,callParams:[w].concat(K)}},setupParams:function(q,$,f){var K={},P=[],j=[],w=[],O=!f,v=void 0;if(O)f=[];if(K.name=this.quotedString(q),K.hash=this.popStack(),this.trackIds)K.hashIds=this.popStack();if(this.stringParams)K.hashTypes=this.popStack(),K.hashContexts=this.popStack();var h=this.popStack(),Y=this.popStack();if(Y||h)K.fn=Y||"container.noop",K.inverse=h||"container.noop";var r=$;while(r--){if(v=this.popStack(),f[r]=v,this.trackIds)w[r]=this.popStack();if(this.stringParams)j[r]=this.popStack(),P[r]=this.popStack()}if(O)K.args=this.source.generateArray(f);if(this.trackIds)K.ids=this.source.generateArray(w);if(this.stringParams)K.types=this.source.generateArray(j),K.contexts=this.source.generateArray(P);if(this.options.data)K.data="data";if(this.useBlockParams)K.blockParams="blockParams";return K},setupHelperArgs:function(q,$,f,K){var P=this.setupParams(q,$,f);if(P.loc=JSON.stringify(this.source.currentLocation),P=this.objectLiteral(P),K)return this.useRegister("options"),f.push("options"),["options=",P];else if(f)return f.push(P),"";else return P}};(function(){var _="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),q=wq.RESERVED_WORDS={};for(var $=0,f=_.length;$<f;$++)q[_[$]]=!0})();wq.isValidJavaScriptVariableName=function(_){return!wq.RESERVED_WORDS[_]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(_)};function P4(_,q,$,f,K){var P=q.popStack(),j=$.length;if(_)j--;for(;f<j;f++)P=q.nameLookup(P,$[f],K);if(_)return[q.aliasable("container.strict"),"(",P,", ",q.quotedString($[f]),", ",JSON.stringify(q.source.currentLocation)," )"];else return P}Pf.default=wq;jf.exports=Pf.default});var hf=z((Of,Yf)=>{Of.__esModule=!0;function uq(_){return _&&_.__esModule?_:{default:_}}var w4=Y6(),O4=uq(w4),Y4=H_(),h4=uq(Y4),c_=e6(),E_=i6(),r4=vf(),T4=uq(r4),k4=Vq(),z4=uq(k4),H4=r_(),W4=uq(H4),J4=O4.default.create;function wf(){var _=J4();return _.compile=function(q,$){return E_.compile(q,$,_)},_.precompile=function(q,$){return E_.precompile(q,$,_)},_.AST=h4.default,_.Compiler=E_.Compiler,_.JavaScriptCompiler=T4.default,_.Parser=c_.parser,_.parse=c_.parse,_.parseWithoutProcessing=c_.parseWithoutProcessing,_}var Oq=wf();Oq.create=wf;W4.default(Oq);Oq.Visitor=z4.default;Oq.default=Oq;Of.default=Oq;Yf.exports=Of.default});var rf=z((p4)=>{p4.__esModule=!0;p4.print=A4;p4.PrintVisitor=Z;function u4(_){return _&&_.__esModule?_:{default:_}}var o4=Vq(),n4=u4(o4);function A4(_){return new Z().accept(_)}function Z(){this.padding=0}Z.prototype=new n4.default;Z.prototype.pad=function(_){var q="";for(var $=0,f=this.padding;$<f;$++)q+=" ";return q+=_+`
26
- `,q};Z.prototype.Program=function(_){var q="",$=_.body,f=void 0,K=void 0;if(_.blockParams){var P="BLOCK PARAMS: [";for(f=0,K=_.blockParams.length;f<K;f++)P+=" "+_.blockParams[f];P+=" ]",q+=this.pad(P)}for(f=0,K=$.length;f<K;f++)q+=this.accept($[f]);return this.padding--,q};Z.prototype.MustacheStatement=function(_){return this.pad("{{ "+this.SubExpression(_)+" }}")};Z.prototype.Decorator=function(_){return this.pad("{{ DIRECTIVE "+this.SubExpression(_)+" }}")};Z.prototype.BlockStatement=Z.prototype.DecoratorBlock=function(_){var q="";if(q+=this.pad((_.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,q+=this.pad(this.SubExpression(_)),_.program)q+=this.pad("PROGRAM:"),this.padding++,q+=this.accept(_.program),this.padding--;if(_.inverse){if(_.program)this.padding++;if(q+=this.pad("{{^}}"),this.padding++,q+=this.accept(_.inverse),this.padding--,_.program)this.padding--}return this.padding--,q};Z.prototype.PartialStatement=function(_){var q="PARTIAL:"+_.name.original;if(_.params[0])q+=" "+this.accept(_.params[0]);if(_.hash)q+=" "+this.accept(_.hash);return this.pad("{{> "+q+" }}")};Z.prototype.PartialBlockStatement=function(_){var q="PARTIAL BLOCK:"+_.name.original;if(_.params[0])q+=" "+this.accept(_.params[0]);if(_.hash)q+=" "+this.accept(_.hash);return q+=" "+this.pad("PROGRAM:"),this.padding++,q+=this.accept(_.program),this.padding--,this.pad("{{> "+q+" }}")};Z.prototype.ContentStatement=function(_){return this.pad("CONTENT[ '"+_.value+"' ]")};Z.prototype.CommentStatement=function(_){return this.pad("{{! '"+_.value+"' }}")};Z.prototype.SubExpression=function(_){var q=_.params,$=[],f=void 0;for(var K=0,P=q.length;K<P;K++)$.push(this.accept(q[K]));return q="["+$.join(", ")+"]",f=_.hash?" "+this.accept(_.hash):"",this.accept(_.path)+" "+q+f};Z.prototype.PathExpression=function(_){var q=_.parts.join("/");return(_.data?"@":"")+"PATH:"+q};Z.prototype.StringLiteral=function(_){return'"'+_.value+'"'};Z.prototype.NumberLiteral=function(_){return"NUMBER{"+_.value+"}"};Z.prototype.BooleanLiteral=function(_){return"BOOLEAN{"+_.value+"}"};Z.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Z.prototype.NullLiteral=function(){return"NULL"};Z.prototype.Hash=function(_){var q=_.pairs,$=[];for(var f=0,K=q.length;f<K;f++)$.push(this.accept(q[f]));return"HASH{"+$.join(", ")+"}"};Z.prototype.HashPair=function(_){return _.key+"="+this.accept(_.value)}});var Hf=z((B7,zf)=>{var Rq=hf().default,kf=rf();Rq.PrintVisitor=kf.PrintVisitor;Rq.print=kf.print;zf.exports=Rq;function Tf(_,q){var $=Yq("fs"),f=$.readFileSync(q,"utf8");_.exports=Rq.compile(f)}if(Yq.extensions)Yq.extensions[".handlebars"]=Tf,Yq.extensions[".hbs"]=Tf});var g=q$(f$(),1),H={info:(_)=>console.log(g.default.cyan(" \u25B8"),_),success:(_)=>console.log(g.default.green(" \u2713"),_),warn:(_)=>console.warn(g.default.yellow(" \u26A0"),_),error:(_)=>console.error(g.default.red(" \u2717"),_),step:(_)=>console.log(g.default.bold(g.default.white(`
27
- ${_}`))),dim:(_)=>console.log(g.default.dim(` ${_}`))};import{join as Ef}from"path";var K$={info:()=>{},verbose:()=>{},warn:()=>{},error:()=>{}};function P$(_="info"){if(_==="silent")return K$;return{info:(q)=>console.log(` ${q}`),verbose:(q)=>_==="verbose"?console.log(` ${q}`):void 0,warn:(q)=>console.warn(` \u26A0 ${q}`),error:(q)=>console.error(` \u2717 ${q}`)}}function j$(_,q,$={}){let f=_.app.typescript,K=_.app.ssr===!0,P=_.app.ssr==="ssg",j=!K&&!P,w=$.templateDir??Ef(import.meta.dirname,"..","..","..","templates");return{ast:_,outputDir:q,templateDir:w,isTypeScript:f,isSsr:K,isSsg:P,isSpa:j,mode:j?"spa":"ssr",ext:f?"ts":"js",logger:$.logger??K$}}class hq extends Error{code;constructor(_,q){super(_);this.code=q;this.name="VaspError"}}class b extends hq{diagnostics;constructor(_){let q=_[0],$=q?.loc,f=$?` (line ${$.line}, col ${$.col})`:"",K=q?.code??"E000_UNKNOWN";super(`[${K}]${f}: ${q?.message??"Unknown error"}`,K);this.name="ParseError",this.diagnostics=_}format(){return this.diagnostics.map((_)=>{let q=_.loc?` at line ${_.loc.line}:${_.loc.col}`:"";return`[${_.code}]${q} ${_.message}
25
+ `.trim()},blockValue:function(q){var $=this.aliasable("container.hooks.blockHelperMissing"),f=[this.contextName(0)];this.setupHelperArgs(q,0,f);var K=this.popStack();f.splice(1,0,K),this.push(this.source.functionCall($,"call",f))},ambiguousBlockValue:function(){var q=this.aliasable("container.hooks.blockHelperMissing"),$=[this.contextName(0)];this.setupHelperArgs("",0,$,!0),this.flushInline();var f=this.topStack();$.splice(1,0,f),this.pushSource(["if (!",this.lastHelper,") { ",f," = ",this.source.functionCall(q,"call",$),"}"])},appendContent:function(q){if(this.pendingContent)q=this.pendingContent+q;else this.pendingLocation=this.source.currentLocation;this.pendingContent=q},append:function(){if(this.isInline())this.replaceStack(function($){return[" != null ? ",$,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var q=this.popStack();if(this.pushSource(["if (",q," != null) { ",this.appendToBuffer(q,void 0,!0)," }"]),this.environment.isSimple)this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(q){this.lastContext=q},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(q,$,f,K){var P=0;if(!K&&this.options.compat&&!this.lastContext)this.push(this.depthedLookup(q[P++]));else this.pushContext();this.resolvePath("context",q,P,$,f)},lookupBlockParam:function(q,$){this.useBlockParams=!0,this.push(["blockParams[",q[0],"][",q[1],"]"]),this.resolvePath("context",$,1)},lookupData:function(q,$,f){if(!q)this.pushStackLiteral("data");else this.pushStackLiteral("container.data(data, "+q+")");this.resolvePath("data",$,0,!0,f)},resolvePath:function(q,$,f,K,P){var j=this;if(this.options.strict||this.options.assumeObjects){this.push(J4(this.options.strict&&P,this,$,f,q));return}var w=$.length;for(;f<w;f++)this.replaceStack(function(O){var v=j.nameLookup(O,$[f],q);if(!K)return[" != null ? ",v," : ",O];else return[" && ",v]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(q,$){if(this.pushContext(),this.pushString($),$!=="SubExpression")if(typeof q==="string")this.pushString(q);else this.pushStackLiteral(q)},emptyHash:function(q){if(this.trackIds)this.push("{}");if(this.stringParams)this.push("{}"),this.push("{}");this.pushStackLiteral(q?"undefined":"{}")},pushHash:function(){if(this.hash)this.hashes.push(this.hash);this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var q=this.hash;if(this.hash=this.hashes.pop(),this.trackIds)this.push(this.objectLiteral(q.ids));if(this.stringParams)this.push(this.objectLiteral(q.contexts)),this.push(this.objectLiteral(q.types));this.push(this.objectLiteral(q.values))},pushString:function(q){this.pushStackLiteral(this.quotedString(q))},pushLiteral:function(q){this.pushStackLiteral(q)},pushProgram:function(q){if(q!=null)this.pushStackLiteral(this.programExpression(q));else this.pushStackLiteral(null)},registerDecorator:function(q,$){var f=this.nameLookup("decorators",$,"decorator"),K=this.setupHelperArgs($,q);this.decorators.push(["fn = ",this.decorators.functionCall(f,"",["fn","props","container",K])," || fn;"])},invokeHelper:function(q,$,f){var K=this.popStack(),P=this.setupHelper(q,$),j=[];if(f)j.push(P.name);if(j.push(K),!this.options.strict)j.push(this.aliasable("container.hooks.helperMissing"));var w=["(",this.itemsSeparatedBy(j,"||"),")"],O=this.source.functionCall(w,"call",P.callParams);this.push(O)},itemsSeparatedBy:function(q,$){var f=[];f.push(q[0]);for(var K=1;K<q.length;K++)f.push($,q[K]);return f},invokeKnownHelper:function(q,$){var f=this.setupHelper(q,$);this.push(this.source.functionCall(f.name,"call",f.callParams))},invokeAmbiguous:function(q,$){this.useRegister("helper");var f=this.popStack();this.emptyHash();var K=this.setupHelper(0,q,$),P=this.lastHelper=this.nameLookup("helpers",q,"helper"),j=["(","(helper = ",P," || ",f,")"];if(!this.options.strict)j[0]="(helper = ",j.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"));this.push(["(",j,K.paramsInit?["),(",K.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",K.callParams)," : helper))"])},invokePartial:function(q,$,f){var K=[],P=this.setupParams($,1,K);if(q)$=this.popStack(),delete P.name;if(f)P.indent=JSON.stringify(f);if(P.helpers="helpers",P.partials="partials",P.decorators="container.decorators",!q)K.unshift(this.nameLookup("partials",$,"partial"));else K.unshift($);if(this.options.compat)P.depths="depths";P=this.objectLiteral(P),K.push(P),this.push(this.source.functionCall("container.invokePartial","",K))},assignToHash:function(q){var $=this.popStack(),f=void 0,K=void 0,P=void 0;if(this.trackIds)P=this.popStack();if(this.stringParams)K=this.popStack(),f=this.popStack();var j=this.hash;if(f)j.contexts[q]=f;if(K)j.types[q]=K;if(P)j.ids[q]=P;j.values[q]=$},pushId:function(q,$,f){if(q==="BlockParam")this.pushStackLiteral("blockParams["+$[0]+"].path["+$[1]+"]"+(f?" + "+JSON.stringify("."+f):""));else if(q==="PathExpression")this.pushString($);else if(q==="SubExpression")this.pushStackLiteral("true");else this.pushStackLiteral("null")},compiler:Yq,compileChildren:function(q,$){var f=q.children,K=void 0,P=void 0;for(var j=0,w=f.length;j<w;j++){K=f[j],P=new this.compiler;var O=this.matchExistingProgram(K);if(O==null){this.context.programs.push("");var v=this.context.programs.length;K.index=v,K.name="program"+v,this.context.programs[v]=P.compile(K,$,this.context,!this.precompile),this.context.decorators[v]=P.decorators,this.context.environments[v]=K,this.useDepths=this.useDepths||P.useDepths,this.useBlockParams=this.useBlockParams||P.useBlockParams,K.useDepths=this.useDepths,K.useBlockParams=this.useBlockParams}else K.index=O.index,K.name="program"+O.index,this.useDepths=this.useDepths||O.useDepths,this.useBlockParams=this.useBlockParams||O.useBlockParams}},matchExistingProgram:function(q){for(var $=0,f=this.context.environments.length;$<f;$++){var K=this.context.environments[$];if(K&&K.equals(q))return K}},programExpression:function(q){var $=this.environment.children[q],f=[$.index,"data",$.blockParams];if(this.useBlockParams||this.useDepths)f.push("blockParams");if(this.useDepths)f.push("depths");return"container.program("+f.join(", ")+")"},useRegister:function(q){if(!this.registers[q])this.registers[q]=!0,this.registers.list.push(q)},push:function(q){if(!(q instanceof Oq))q=this.source.wrap(q);return this.inlineStack.push(q),q},pushStackLiteral:function(q){this.push(new Oq(q))},pushSource:function(q){if(this.pendingContent)this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0;if(q)this.source.push(q)},replaceStack:function(q){var $=["("],f=void 0,K=void 0,P=void 0;if(!this.isInline())throw new E_.default("replaceStack on non-inline");var j=this.popStack(!0);if(j instanceof Oq)f=[j.value],$=["(",f],P=!0;else{K=!0;var w=this.incrStack();$=["((",this.push(w)," = ",j,")"],f=this.topStack()}var O=q.call(this,f);if(!P)this.popStack();if(K)this.stackSlot--;this.push($.concat(O,")"))},incrStack:function(){if(this.stackSlot++,this.stackSlot>this.stackVars.length)this.stackVars.push("stack"+this.stackSlot);return this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var q=this.inlineStack;this.inlineStack=[];for(var $=0,f=q.length;$<f;$++){var K=q[$];if(K instanceof Oq)this.compileStack.push(K);else{var P=this.incrStack();this.pushSource([P," = ",K,";"]),this.compileStack.push(P)}}},isInline:function(){return this.inlineStack.length},popStack:function(q){var $=this.isInline(),f=($?this.inlineStack:this.compileStack).pop();if(!q&&f instanceof Oq)return f.value;else{if(!$){if(!this.stackSlot)throw new E_.default("Invalid stack pop");this.stackSlot--}return f}},topStack:function(){var q=this.isInline()?this.inlineStack:this.compileStack,$=q[q.length-1];if($ instanceof Oq)return $.value;else return $},contextName:function(q){if(this.useDepths&&q)return"depths["+q+"]";else return"depth"+q},quotedString:function(q){return this.source.quotedString(q)},objectLiteral:function(q){return this.source.objectLiteral(q)},aliasable:function(q){var $=this.aliases[q];if($)return $.referenceCount++,$;return $=this.aliases[q]=this.source.wrap(q),$.aliasable=!0,$.referenceCount=1,$},setupHelper:function(q,$,f){var K=[],P=this.setupHelperArgs($,q,K,f),j=this.nameLookup("helpers",$,"helper"),w=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:K,paramsInit:P,name:j,callParams:[w].concat(K)}},setupParams:function(q,$,f){var K={},P=[],j=[],w=[],O=!f,v=void 0;if(O)f=[];if(K.name=this.quotedString(q),K.hash=this.popStack(),this.trackIds)K.hashIds=this.popStack();if(this.stringParams)K.hashTypes=this.popStack(),K.hashContexts=this.popStack();var h=this.popStack(),Y=this.popStack();if(Y||h)K.fn=Y||"container.noop",K.inverse=h||"container.noop";var T=$;while(T--){if(v=this.popStack(),f[T]=v,this.trackIds)w[T]=this.popStack();if(this.stringParams)j[T]=this.popStack(),P[T]=this.popStack()}if(O)K.args=this.source.generateArray(f);if(this.trackIds)K.ids=this.source.generateArray(w);if(this.stringParams)K.types=this.source.generateArray(j),K.contexts=this.source.generateArray(P);if(this.options.data)K.data="data";if(this.useBlockParams)K.blockParams="blockParams";return K},setupHelperArgs:function(q,$,f,K){var P=this.setupParams(q,$,f);if(P.loc=JSON.stringify(this.source.currentLocation),P=this.objectLiteral(P),K)return this.useRegister("options"),f.push("options"),["options=",P];else if(f)return f.push(P),"";else return P}};(function(){var _="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),q=Yq.RESERVED_WORDS={};for(var $=0,f=_.length;$<f;$++)q[_[$]]=!0})();Yq.isValidJavaScriptVariableName=function(_){return!Yq.RESERVED_WORDS[_]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(_)};function J4(_,q,$,f,K){var P=q.popStack(),j=$.length;if(_)j--;for(;f<j;f++)P=q.nameLookup(P,$[f],K);if(_)return[q.aliasable("container.strict"),"(",P,", ",q.quotedString($[f]),", ",JSON.stringify(q.source.currentLocation)," )"];else return P}v8.default=Yq;w8.exports=v8.default});var r8=H((h8,T8)=>{h8.__esModule=!0;function nq(_){return _&&_.__esModule?_:{default:_}}var u4=T6(),o4=nq(u4),n4=J_(),A4=nq(n4),R_=t6(),g_=b6(),X4=O8(),p4=nq(X4),e4=Vq(),d4=nq(e4),t4=k_(),G4=nq(t4),i4=o4.default.create;function Y8(){var _=i4();return _.compile=function(q,$){return g_.compile(q,$,_)},_.precompile=function(q,$){return g_.precompile(q,$,_)},_.AST=A4.default,_.Compiler=g_.Compiler,_.JavaScriptCompiler=p4.default,_.Parser=R_.parser,_.parse=R_.parse,_.parseWithoutProcessing=R_.parseWithoutProcessing,_}var hq=Y8();hq.create=Y8;G4.default(hq);hq.Visitor=d4.default;hq.default=hq;h8.default=hq;T8.exports=h8.default});var k8=H((M4)=>{M4.__esModule=!0;M4.print=V4;M4.PrintVisitor=Z;function S4(_){return _&&_.__esModule?_:{default:_}}var C4=Vq(),l4=S4(C4);function V4(_){return new Z().accept(_)}function Z(){this.padding=0}Z.prototype=new l4.default;Z.prototype.pad=function(_){var q="";for(var $=0,f=this.padding;$<f;$++)q+=" ";return q+=_+`
26
+ `,q};Z.prototype.Program=function(_){var q="",$=_.body,f=void 0,K=void 0;if(_.blockParams){var P="BLOCK PARAMS: [";for(f=0,K=_.blockParams.length;f<K;f++)P+=" "+_.blockParams[f];P+=" ]",q+=this.pad(P)}for(f=0,K=$.length;f<K;f++)q+=this.accept($[f]);return this.padding--,q};Z.prototype.MustacheStatement=function(_){return this.pad("{{ "+this.SubExpression(_)+" }}")};Z.prototype.Decorator=function(_){return this.pad("{{ DIRECTIVE "+this.SubExpression(_)+" }}")};Z.prototype.BlockStatement=Z.prototype.DecoratorBlock=function(_){var q="";if(q+=this.pad((_.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,q+=this.pad(this.SubExpression(_)),_.program)q+=this.pad("PROGRAM:"),this.padding++,q+=this.accept(_.program),this.padding--;if(_.inverse){if(_.program)this.padding++;if(q+=this.pad("{{^}}"),this.padding++,q+=this.accept(_.inverse),this.padding--,_.program)this.padding--}return this.padding--,q};Z.prototype.PartialStatement=function(_){var q="PARTIAL:"+_.name.original;if(_.params[0])q+=" "+this.accept(_.params[0]);if(_.hash)q+=" "+this.accept(_.hash);return this.pad("{{> "+q+" }}")};Z.prototype.PartialBlockStatement=function(_){var q="PARTIAL BLOCK:"+_.name.original;if(_.params[0])q+=" "+this.accept(_.params[0]);if(_.hash)q+=" "+this.accept(_.hash);return q+=" "+this.pad("PROGRAM:"),this.padding++,q+=this.accept(_.program),this.padding--,this.pad("{{> "+q+" }}")};Z.prototype.ContentStatement=function(_){return this.pad("CONTENT[ '"+_.value+"' ]")};Z.prototype.CommentStatement=function(_){return this.pad("{{! '"+_.value+"' }}")};Z.prototype.SubExpression=function(_){var q=_.params,$=[],f=void 0;for(var K=0,P=q.length;K<P;K++)$.push(this.accept(q[K]));return q="["+$.join(", ")+"]",f=_.hash?" "+this.accept(_.hash):"",this.accept(_.path)+" "+q+f};Z.prototype.PathExpression=function(_){var q=_.parts.join("/");return(_.data?"@":"")+"PATH:"+q};Z.prototype.StringLiteral=function(_){return'"'+_.value+'"'};Z.prototype.NumberLiteral=function(_){return"NUMBER{"+_.value+"}"};Z.prototype.BooleanLiteral=function(_){return"BOOLEAN{"+_.value+"}"};Z.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Z.prototype.NullLiteral=function(){return"NULL"};Z.prototype.Hash=function(_){var q=_.pairs,$=[];for(var f=0,K=q.length;f<K;f++)$.push(this.accept(q[f]));return"HASH{"+$.join(", ")+"}"};Z.prototype.HashPair=function(_){return _.key+"="+this.accept(_.value)}});var J8=H((Jv,W8)=>{var Rq=r8().default,H8=k8();Rq.PrintVisitor=H8.PrintVisitor;Rq.print=H8.print;W8.exports=Rq;function z8(_,q){var $=Tq("fs"),f=$.readFileSync(q,"utf8");_.exports=Rq.compile(f)}if(Tq.extensions)Tq.extensions[".handlebars"]=z8,Tq.extensions[".hbs"]=z8});var g=Lq(Bq(),1),k={info:(_)=>console.log(g.default.cyan(" \u25B8"),_),success:(_)=>console.log(g.default.green(" \u2713"),_),warn:(_)=>console.warn(g.default.yellow(" \u26A0"),_),error:(_)=>console.error(g.default.red(" \u2717"),_),step:(_)=>console.log(g.default.bold(g.default.white(`
27
+ ${_}`))),dim:(_)=>console.log(g.default.dim(` ${_}`))};import{join as Q8}from"path";var j$={info:()=>{},verbose:()=>{},warn:()=>{},error:()=>{}};function v$(_="info"){if(_==="silent")return j$;return{info:(q)=>console.log(` ${q}`),verbose:(q)=>_==="verbose"?console.log(` ${q}`):void 0,warn:(q)=>console.warn(` \u26A0 ${q}`),error:(q)=>console.error(` \u2717 ${q}`)}}function w$(_,q,$={}){let f=_.app.typescript,K=_.app.ssr===!0,P=_.app.ssr==="ssg",j=!K&&!P,w=$.templateDir??Q8(import.meta.dirname,"..","..","..","templates");return{ast:_,outputDir:q,templateDir:w,isTypeScript:f,isSsr:K,isSsg:P,isSpa:j,mode:j?"spa":"ssr",ext:f?"ts":"js",logger:$.logger??j$}}class rq extends Error{code;constructor(_,q){super(_);this.code=q;this.name="VaspError"}}class b extends rq{diagnostics;constructor(_){let q=_[0],$=q?.loc,f=$?` (line ${$.line}, col ${$.col})`:"",K=q?.code??"E000_UNKNOWN";super(`[${K}]${f}: ${q?.message??"Unknown error"}`,K);this.name="ParseError",this.diagnostics=_}format(){return this.diagnostics.map((_)=>{let q=_.loc?` at line ${_.loc.line}:${_.loc.col}`:"";return`[${_.code}]${q} ${_.message}
28
28
  Hint: ${_.hint}`}).join(`
29
29
 
30
- `)}}class Gq extends hq{generatorName;cause;constructor(_,q,$){super(_,"GENERATOR_ERROR");this.generatorName=q;this.cause=$;this.name="GeneratorError"}}var I="0.1.0";var sq=["usernameAndPassword","google","github"],Bq=["list","create","update","delete"],Uq=["created","updated","deleted"];var l=3001,qq=5173,v$=3000;import{join as If}from"path";import{mkdirSync as w$,writeFileSync as Rf}from"fs";import{dirname as gf}from"path";function O$(_,q){w$(gf(_),{recursive:!0}),Rf(_,q,"utf8")}function Y$(_){w$(_,{recursive:!0})}class o{ctx;engine;filesWritten;constructor(_,q,$){this.ctx=_;this.engine=q;this.filesWritten=$}write(_,q){let $=If(this.ctx.outputDir,_);O$($,q),this.filesWritten.push(_),this.ctx.logger.verbose(` write ${_}`)}render(_,q={}){return this.engine.render(_,{...this.baseData(),...q})}baseData(){let{ast:_,isTypeScript:q,isSsr:$,isSsg:f,isSpa:K,ext:P,mode:j}=this.ctx;return{appName:_.app.name,appTitle:_.app.title,isTypeScript:q,isSsr:$,isSsg:f,isSpa:K,ext:P,mode:j,hasAuth:!!_.auth,hasRealtime:_.realtimes.length>0,hasJobs:_.jobs.length>0,routes:_.routes,pages:_.pages,queries:_.queries,actions:_.actions,cruds:_.cruds,realtimes:_.realtimes,jobs:_.jobs,auth:_.auth}}}class Fq extends o{run(){if(!this.ctx.ast.auth)return;this.ctx.logger.info("Generating auth system...");let{ext:_,ast:q}=this.ctx,$=q.auth.methods,f={authMethods:$,backendPort:l};if(this.write(`server/auth/index.${_}`,this.render("shared/auth/server/index.hbs",f)),this.write(`server/auth/middleware.${_}`,this.render("shared/auth/server/middleware.hbs",f)),$.includes("usernameAndPassword"))this.write(`server/auth/providers/usernameAndPassword.${_}`,this.render("shared/auth/server/providers/usernameAndPassword.hbs",f));if($.includes("google"))this.write(`server/auth/providers/google.${_}`,this.render("shared/auth/server/providers/google.hbs",f));if($.includes("github"))this.write(`server/auth/providers/github.${_}`,this.render("shared/auth/server/providers/github.hbs",f));let K=this.ctx.ext;this.write(`src/vasp/auth.${K}`,this.render(`spa/${K}/src/vasp/auth.${K}.hbs`,f)),this.write("src/pages/Login.vue",this.render("shared/auth/client/Login.vue.hbs",f)),this.write("src/pages/Register.vue",this.render("shared/auth/client/Register.vue.hbs",f))}}class Qq extends o{run(){this.ctx.logger.info("Generating Elysia backend...");let _={backendPort:l,frontendPort:qq,vaspVersion:I};this.write(`server/index.${this.ctx.ext}`,this.render("shared/server/index.hbs",_)),this.write(`server/db/client.${this.ctx.ext}`,this.render("shared/server/db/client.hbs",_))}}var Wf=q$(Hf(),1);import{readFileSync as t4,readdirSync as G4,statSync as i4}from"fs";import{extname as a4,join as b4,relative as l4}from"path";class R_{cache=new Map;hbs;constructor(){this.hbs=Wf.default.create(),this.registerHelpers()}loadDirectory(_){this.walkHbs(_,(q)=>{let $=l4(_,q),f=t4(q,"utf8");try{this.cache.set($,this.hbs.compile(f))}catch(K){throw new Gq(`Failed to compile template ${$}: ${String(K)}`,"TemplateEngine")}})}render(_,q){let $=this.cache.get(_);if(!$)throw new Gq(`Template not found: '${_}'`,"TemplateEngine");return $(q)}renderString(_,q){return this.hbs.compile(_)(q)}has(_){return this.cache.has(_)}keys(){return[...this.cache.keys()]}registerHelpers(){this.hbs.registerHelper("camelCase",(_)=>R(_)),this.hbs.registerHelper("pascalCase",(_)=>S4(_)),this.hbs.registerHelper("kebabCase",(_)=>C4(_)),this.hbs.registerHelper("lowerCase",(_)=>_.toLowerCase()),this.hbs.registerHelper("upperCase",(_)=>_.toUpperCase()),this.hbs.registerHelper("join",(_,q)=>{if(!Array.isArray(_))return"";return _.join(typeof q==="string"?q:", ")}),this.hbs.registerHelper("importPath",(_,q)=>{if(q==="ts"&&_.endsWith(".js"))return _.slice(0,-3)+".ts";return _}),this.hbs.registerHelper("eq",(_,q)=>_===q),this.hbs.registerHelper("includes",(_,q)=>Array.isArray(_)&&_.includes(q)),this.hbs.registerHelper("importName",(_)=>{return _.kind==="default"?_.defaultExport??"":_.namedExport??""})}walkHbs(_,q){let $;try{$=G4(_)}catch{return}for(let f of $){let K=b4(_,f);if(i4(K).isDirectory())this.walkHbs(K,q);else if(a4(K)===".hbs")q(K)}}}function R(_){return _.replace(/[-_\s]+(.)/g,(q,$)=>$.toUpperCase()).replace(/^./,(q)=>q.toLowerCase())}function S4(_){let q=R(_);return q.charAt(0).toUpperCase()+q.slice(1)}function C4(_){return _.replace(/([A-Z])/g,"-$1").replace(/[\s_]+/g,"-").toLowerCase().replace(/^-/,"")}class g_ extends o{run(){let{ast:_,ext:q}=this.ctx;if(_.cruds.length===0)return;this.ctx.logger.info("Generating CRUD endpoints...");for(let $ of _.cruds)this.write(`server/routes/crud/${R($.entity)}.${q}`,this.render("shared/server/routes/crud/_crud.hbs",{entity:$.entity,operations:$.operations}));this.write(`src/vasp/client/crud.${q}`,this.render(`spa/${q}/src/vasp/client/crud.${q}.hbs`))}}class I_ extends o{run(){this.ctx.logger.info("Generating Drizzle schema..."),this.write(`drizzle/schema.${this.ctx.ext}`,this.render("shared/drizzle/schema.hbs"))}}import{existsSync as Jf}from"fs";import{join as Zf}from"path";class y_ extends o{run(){if(this.ctx.logger.info(`Generating frontend (${this.ctx.mode} / ${this.ctx.ext})...`),this.ctx.isSpa)this.generateSpa();else this.generateSsr()}generateSpa(){let{ext:_,ast:q}=this.ctx,$={backendPort:l,frontendPort:qq};this.write("index.html",this.render(`spa/${_}/index.html.hbs`)),this.write(`vite.config.${_}`,this.render(`spa/${_}/vite.config.${_}.hbs`,$)),this.write(`src/main.${_}`,this.render(`spa/${_}/src/main.${_}.hbs`)),this.write("src/App.vue",this.render(`spa/${_}/src/App.vue.hbs`));let f=this.buildPagesMap();if(this.write(`src/router/index.${_}`,this.render(`spa/${_}/src/router/index.${_}.hbs`,{pagesMap:f})),this.write(`src/vasp/plugin.${_}`,this.render(`spa/${_}/src/vasp/plugin.${_}.hbs`)),this.write(`src/vasp/client/index.${_}`,this.render(`spa/${_}/src/vasp/client/index.${_}.hbs`)),q.queries.length>0)this.write(`src/vasp/client/queries.${_}`,this.render(`spa/${_}/src/vasp/client/queries.${_}.hbs`));if(q.actions.length>0)this.write(`src/vasp/client/actions.${_}`,this.render(`spa/${_}/src/vasp/client/actions.${_}.hbs`));if(this.ctx.isTypeScript&&(q.queries.length>0||q.actions.length>0||q.cruds.length>0))this.write("src/vasp/client/types.ts",this.render("spa/ts/src/vasp/client/types.ts.hbs"));for(let K of q.pages){let P=K.component,w=(P.kind==="default"?P.source:P.source).replace("@src/","src/"),O=Zf(this.ctx.outputDir,w);if(!Jf(O)){let v=P.kind==="default"?P.defaultExport:P.namedExport;this.write(w,this.scaffoldVuePage(v))}}}generateSsr(){let{ext:_,ast:q}=this.ctx,f={backendPort:l};if(this.write(`nuxt.config.${_}`,this.render(`ssr/${_}/nuxt.config.${_}.hbs`,f)),this.write("app.vue",this.render(`ssr/${_}/app.vue.hbs`)),this.write(`plugins/vasp.server.${_}`,this.render(`ssr/${_}/plugins/vasp.server.${_}.hbs`)),this.write(`plugins/vasp.client.${_}`,this.render(`ssr/${_}/plugins/vasp.client.${_}.hbs`)),this.write(`composables/useVasp.${_}`,this.render(`ssr/${_}/composables/useVasp.${_}.hbs`)),q.auth)this.write(`composables/useAuth.${_}`,this.render(`ssr/${_}/composables/useAuth.${_}.hbs`)),this.write(`middleware/auth.${_}`,this.render(`ssr/${_}/middleware/auth.${_}.hbs`));let K=this.buildPagesMap();for(let P of q.routes){let j=this.routePathToNuxtFile(P.path),w=K[P.to];if(!w)continue;let O=this.extractComponentName(w);this.write(`pages/${j}`,this.render(`ssr/${_}/_page.vue.hbs`,{componentName:O,componentSource:w}))}if(q.auth)this.write("pages/login.vue",this.render(`ssr/${_}/_page.vue.hbs`,{componentName:"LoginPage",componentSource:"@src/pages/Login.vue"})),this.write("pages/register.vue",this.render(`ssr/${_}/_page.vue.hbs`,{componentName:"RegisterPage",componentSource:"@src/pages/Register.vue"}));for(let P of q.pages){let j=P.component,O=(j.kind==="default"?j.source:j.source).replace("@src/","src/"),v=Zf(this.ctx.outputDir,O);if(!Jf(v)){let h=j.kind==="default"?j.defaultExport:j.namedExport;this.write(O,this.scaffoldVuePage(h))}}}routePathToNuxtFile(_){if(_==="/")return"index.vue";return`${_.replace(/^\//,"").replace(/:([^/]+)/g,"[$1]")}.vue`}buildPagesMap(){let _={};for(let q of this.ctx.ast.pages){let $=q.component.kind==="default"?q.component.source:q.component.source;_[q.name]=$}return _}extractComponentName(_){return(_.split("/").pop()??_).replace(/\.vue$/,"")}scaffoldVuePage(_){return`<template>
30
+ `)}}class Gq extends rq{generatorName;cause;constructor(_,q,$){super(_,"GENERATOR_ERROR");this.generatorName=q;this.cause=$;this.name="GeneratorError"}}var I="0.1.0";var Uq=["usernameAndPassword","google","github"],Fq=["list","create","update","delete"],Qq=["created","updated","deleted"];var S=3001,$q=5173,O$=3000;import{join as $f}from"path";import{mkdirSync as Y$,writeFileSync as qf}from"fs";import{dirname as _f}from"path";function h$(_,q){Y$(_f(_),{recursive:!0}),qf(_,q,"utf8")}function T$(_){Y$(_,{recursive:!0})}class o{ctx;engine;filesWritten;constructor(_,q,$){this.ctx=_;this.engine=q;this.filesWritten=$}write(_,q){let $=$f(this.ctx.outputDir,_);h$($,q),this.filesWritten.push(_),this.ctx.logger.verbose(` write ${_}`)}render(_,q={}){return this.engine.render(_,{...this.baseData(),...q})}baseData(){let{ast:_,isTypeScript:q,isSsr:$,isSsg:f,isSpa:K,ext:P,mode:j}=this.ctx;return{appName:_.app.name,appTitle:_.app.title,isTypeScript:q,isSsr:$,isSsg:f,isSpa:K,ext:P,mode:j,hasAuth:!!_.auth,hasRealtime:_.realtimes.length>0,hasJobs:_.jobs.length>0,routes:_.routes,pages:_.pages,queries:_.queries,actions:_.actions,cruds:_.cruds,realtimes:_.realtimes,jobs:_.jobs,auth:_.auth}}}class q_ extends o{run(){if(!this.ctx.ast.auth)return;this.ctx.logger.info("Generating auth system...");let{ext:_,ast:q}=this.ctx,$=q.auth.methods,f={authMethods:$,backendPort:S};if(this.write(`server/auth/index.${_}`,this.render("shared/auth/server/index.hbs",f)),this.write(`server/auth/middleware.${_}`,this.render("shared/auth/server/middleware.hbs",f)),$.includes("usernameAndPassword"))this.write(`server/auth/providers/usernameAndPassword.${_}`,this.render("shared/auth/server/providers/usernameAndPassword.hbs",f));if($.includes("google"))this.write(`server/auth/providers/google.${_}`,this.render("shared/auth/server/providers/google.hbs",f));if($.includes("github"))this.write(`server/auth/providers/github.${_}`,this.render("shared/auth/server/providers/github.hbs",f));if(this.ctx.isSpa)this.write(`src/vasp/auth.${_}`,this.render(`spa/${_}/src/vasp/auth.${_}.hbs`,f));this.write("src/pages/Login.vue",this.render("shared/auth/client/Login.vue.hbs",f)),this.write("src/pages/Register.vue",this.render("shared/auth/client/Register.vue.hbs",f))}}class __ extends o{run(){this.ctx.logger.info("Generating Elysia backend...");let _={backendPort:S,frontendPort:$q,vaspVersion:I};this.write(`server/index.${this.ctx.ext}`,this.render("shared/server/index.hbs",_)),this.write(`server/db/client.${this.ctx.ext}`,this.render("shared/server/db/client.hbs",_))}}var Z8=Lq(J8(),1);import{readFileSync as R4,readdirSync as g4,statSync as I4}from"fs";import{extname as y4,join as D4,relative as x4}from"path";class I_{cache=new Map;hbs;constructor(){this.hbs=Z8.default.create(),this.registerHelpers()}loadDirectory(_){this.walkHbs(_,(q)=>{let $=x4(_,q),f=R4(q,"utf8");try{this.cache.set($,this.hbs.compile(f))}catch(K){throw new Gq(`Failed to compile template ${$}: ${String(K)}`,"TemplateEngine")}})}render(_,q){let $=this.cache.get(_);if(!$)throw new Gq(`Template not found: '${_}'`,"TemplateEngine");return $(q)}renderString(_,q){return this.hbs.compile(_)(q)}has(_){return this.cache.has(_)}keys(){return[...this.cache.keys()]}registerHelpers(){this.hbs.registerHelper("camelCase",(_)=>R(_)),this.hbs.registerHelper("pascalCase",(_)=>L4(_)),this.hbs.registerHelper("kebabCase",(_)=>s4(_)),this.hbs.registerHelper("lowerCase",(_)=>_.toLowerCase()),this.hbs.registerHelper("upperCase",(_)=>_.toUpperCase()),this.hbs.registerHelper("join",(_,q)=>{if(!Array.isArray(_))return"";return _.join(typeof q==="string"?q:", ")}),this.hbs.registerHelper("importPath",(_,q)=>{if(q==="ts"&&_.endsWith(".js"))return _.slice(0,-3)+".ts";return _}),this.hbs.registerHelper("eq",(_,q)=>_===q),this.hbs.registerHelper("includes",(_,q)=>Array.isArray(_)&&_.includes(q)),this.hbs.registerHelper("importName",(_)=>{return _.kind==="default"?_.defaultExport??"":_.namedExport??""})}walkHbs(_,q){let $;try{$=g4(_)}catch{return}for(let f of $){let K=D4(_,f);if(I4(K).isDirectory())this.walkHbs(K,q);else if(y4(K)===".hbs")q(K)}}}function R(_){return _.replace(/[-_\s]+(.)/g,(q,$)=>$.toUpperCase()).replace(/^./,(q)=>q.toLowerCase())}function L4(_){let q=R(_);return q.charAt(0).toUpperCase()+q.slice(1)}function s4(_){return _.replace(/([A-Z])/g,"-$1").replace(/[\s_]+/g,"-").toLowerCase().replace(/^-/,"")}class y_ extends o{run(){let{ast:_,ext:q}=this.ctx;if(_.cruds.length===0)return;this.ctx.logger.info("Generating CRUD endpoints...");for(let $ of _.cruds)this.write(`server/routes/crud/${R($.entity)}.${q}`,this.render("shared/server/routes/crud/_crud.hbs",{entity:$.entity,operations:$.operations}));if(this.ctx.isSpa)this.write(`src/vasp/client/crud.${q}`,this.render(`spa/${q}/src/vasp/client/crud.${q}.hbs`))}}class D_ extends o{run(){this.ctx.logger.info("Generating Drizzle schema..."),this.write(`drizzle/schema.${this.ctx.ext}`,this.render("shared/drizzle/schema.hbs"))}}import{existsSync as m8}from"fs";import{join as u8}from"path";class x_ extends o{run(){if(this.ctx.logger.info(`Generating frontend (${this.ctx.mode} / ${this.ctx.ext})...`),this.ctx.isSpa)this.generateSpa();else this.generateSsr()}generateSpa(){let{ext:_,ast:q}=this.ctx,$={backendPort:S,frontendPort:$q};this.write("index.html",this.render(`spa/${_}/index.html.hbs`)),this.write(`vite.config.${_}`,this.render(`spa/${_}/vite.config.${_}.hbs`,$)),this.write(`src/main.${_}`,this.render(`spa/${_}/src/main.${_}.hbs`)),this.write("src/App.vue",this.render(`spa/${_}/src/App.vue.hbs`));let f=this.buildPagesMap();if(this.write(`src/router/index.${_}`,this.render(`spa/${_}/src/router/index.${_}.hbs`,{pagesMap:f})),this.write(`src/vasp/plugin.${_}`,this.render(`spa/${_}/src/vasp/plugin.${_}.hbs`)),this.write(`src/vasp/client/index.${_}`,this.render(`spa/${_}/src/vasp/client/index.${_}.hbs`)),q.queries.length>0)this.write(`src/vasp/client/queries.${_}`,this.render(`spa/${_}/src/vasp/client/queries.${_}.hbs`));if(q.actions.length>0)this.write(`src/vasp/client/actions.${_}`,this.render(`spa/${_}/src/vasp/client/actions.${_}.hbs`));if(this.ctx.isTypeScript&&(q.queries.length>0||q.actions.length>0||q.cruds.length>0))this.write("src/vasp/client/types.ts",this.render("spa/ts/src/vasp/client/types.ts.hbs"));for(let K of q.pages){let P=K.component,w=(P.kind==="default"?P.source:P.source).replace("@src/","src/"),O=u8(this.ctx.outputDir,w);if(!m8(O)){let v=P.kind==="default"?P.defaultExport:P.namedExport;this.write(w,this.scaffoldVuePage(v))}}}generateSsr(){let{ext:_,ast:q}=this.ctx,f={backendPort:S};if(this.write(`nuxt.config.${_}`,this.render(`ssr/${_}/nuxt.config.${_}.hbs`,f)),this.write("app.vue",this.render(`ssr/${_}/app.vue.hbs`)),this.write(`plugins/vasp.server.${_}`,this.render(`ssr/${_}/plugins/vasp.server.${_}.hbs`)),this.write(`plugins/vasp.client.${_}`,this.render(`ssr/${_}/plugins/vasp.client.${_}.hbs`)),this.write(`composables/useVasp.${_}`,this.render(`ssr/${_}/composables/useVasp.${_}.hbs`)),q.auth)this.write(`composables/useAuth.${_}`,this.render(`ssr/${_}/composables/useAuth.${_}.hbs`)),this.write(`middleware/auth.${_}`,this.render(`ssr/${_}/middleware/auth.${_}.hbs`));let K=this.buildPagesMap();for(let P of q.routes){let j=this.routePathToNuxtFile(P.path),w=K[P.to];if(!w)continue;let O=this.extractComponentName(w);this.write(`pages/${j}`,this.render(`ssr/${_}/_page.vue.hbs`,{componentName:O,componentSource:w}))}if(q.auth)this.write("pages/login.vue",this.render(`ssr/${_}/_page.vue.hbs`,{componentName:"LoginPage",componentSource:"@src/pages/Login.vue"})),this.write("pages/register.vue",this.render(`ssr/${_}/_page.vue.hbs`,{componentName:"RegisterPage",componentSource:"@src/pages/Register.vue"}));for(let P of q.pages){let j=P.component,O=(j.kind==="default"?j.source:j.source).replace("@src/","src/"),v=u8(this.ctx.outputDir,O);if(!m8(v)){let h=j.kind==="default"?j.defaultExport:j.namedExport;this.write(O,this.scaffoldVuePage(h))}}}routePathToNuxtFile(_){if(_==="/")return"index.vue";return`${_.replace(/^\//,"").replace(/:([^/]+)/g,"[$1]")}.vue`}buildPagesMap(){let _={};for(let q of this.ctx.ast.pages){let $=q.component.kind==="default"?q.component.source:q.component.source;_[q.name]=$}return _}extractComponentName(_){return(_.split("/").pop()??_).replace(/\.vue$/,"")}scaffoldVuePage(_){return`<template>
31
31
  <div>
32
32
  <h1>${_}</h1>
33
33
  <p>Edit this page in src/pages/</p>
34
34
  </div>
35
35
  </template>
36
- `}}class D_ extends o{run(){let{ast:_,ext:q}=this.ctx;if(_.jobs.length===0)return;this.ctx.logger.info("Generating background jobs..."),this.write(`server/jobs/boss.${q}`,this.render("shared/jobs/boss.hbs"));for(let $ of _.jobs){let f=$.perform.fn,K=f.kind==="named"?f.namedExport:f.defaultExport;this.write(`server/jobs/${R($.name)}.${q}`,this.render("shared/jobs/_job.hbs",{name:$.name,namedExport:K,fnSource:f.source})),this.write(`server/routes/jobs/${R($.name)}Schedule.${q}`,this.render("shared/server/routes/jobs/_schedule.hbs",{name:$.name}))}}}class x_ extends o{run(){let{ast:_,ext:q}=this.ctx;if(_.queries.length>0||_.actions.length>0)this.ctx.logger.info("Generating query/action routes...");for(let $ of _.queries){let f=$.fn,K=f.kind==="named"?f.namedExport:f.defaultExport,P=f.source;this.write(`server/routes/queries/${this.camel($.name)}.${q}`,this.render("shared/server/routes/queries/_query.hbs",{name:$.name,namedExport:K,fnSource:P,requiresAuth:$.auth}))}for(let $ of _.actions){let f=$.fn,K=f.kind==="named"?f.namedExport:f.defaultExport,P=f.source;this.write(`server/routes/actions/${this.camel($.name)}.${q}`,this.render("shared/server/routes/actions/_action.hbs",{name:$.name,namedExport:K,fnSource:P,requiresAuth:$.auth}))}}camel(_){return _.replace(/[-_\s]+(.)/g,(q,$)=>$.toUpperCase()).replace(/^./,(q)=>q.toLowerCase())}}class L_ extends o{run(){let{ast:_,ext:q}=this.ctx;if(_.realtimes.length===0)return;this.ctx.logger.info("Generating realtime WebSocket channels...");for(let $ of _.realtimes)this.write(`server/routes/realtime/${R($.name)}.${q}`,this.render("shared/server/routes/realtime/_channel.hbs",{name:$.name,entity:$.entity,events:$.events}));this.write(`server/routes/realtime/index.${q}`,this.render("shared/server/routes/realtime/index.hbs")),this.write(`src/vasp/client/realtime.${q}`,this.render(`spa/${q}/src/vasp/client/realtime.${q}.hbs`))}}import{join as V4}from"path";class s_ extends o{run(){this.ctx.logger.info("Scaffolding project structure...");let _=["src/pages","src/components","src/lib","drizzle","server/routes/queries","server/routes/actions","server/db","tests",...this.ctx.isSpa?["src/vasp/client"]:["composables","plugins","pages","middleware"]];for(let f of _)Y$(V4(this.ctx.outputDir,f));let q=this.ctx.isSpa?qq:v$,$=this.render("shared/package.json.hbs",{vaspVersion:I,backendPort:l,frontendPort:q,authMethods:this.ctx.ast.auth?.methods??[]});if(this.write("package.json",$),this.write("bunfig.toml",this.render("shared/bunfig.toml.hbs")),this.write(".gitignore",this.render("shared/.gitignore.hbs")),this.write(".env.example",this.render("shared/.env.example.hbs",{backendPort:l,frontendPort:q,authMethods:this.ctx.ast.auth?.methods??[]})),this.ctx.isTypeScript)this.write("tsconfig.json",this.render("shared/tsconfig.json.hbs"));this.write("main.vasp",this.generateMainVasp())}generateMainVasp(){let{ast:_}=this.ctx,q=this.ctx.ext,$=[`app ${_.app.name} {`,` title: "${_.app.title}"`,` db: ${_.app.db}`,` ssr: ${typeof _.app.ssr==="string"?`"${_.app.ssr}"`:_.app.ssr}`,` typescript: ${_.app.typescript}`,"}",""];if(_.auth)$.push(`auth ${_.auth.name} {`,` userEntity: ${_.auth.userEntity}`,` methods: [ ${_.auth.methods.join(", ")} ]`,"}","");for(let f of _.routes)$.push(`route ${f.name} {`,` path: "${f.path}"`,` to: ${f.to}`,"}","");for(let f of _.pages){let K=f.component,P=K.kind==="default"?`import ${K.defaultExport} from "${K.source}"`:`import { ${K.namedExport} } from "${K.source}"`;$.push(`page ${f.name} {`,` component: ${P}`,"}","")}for(let f of _.queries){let K=f.fn,P=K.kind==="named"?`import { ${K.namedExport} } from "${K.source}"`:`import ${K.defaultExport} from "${K.source}"`;$.push(`query ${f.name} {`,` fn: ${P}`,` entities: [${f.entities.join(", ")}]`,"}","")}for(let f of _.actions){let K=f.fn,P=K.kind==="named"?`import { ${K.namedExport} } from "${K.source}"`:`import ${K.defaultExport} from "${K.source}"`;$.push(`action ${f.name} {`,` fn: ${P}`,` entities: [${f.entities.join(", ")}]`,"}","")}for(let f of _.cruds)$.push(`crud ${f.name} {`,` entity: ${f.entity}`,` operations: [${f.operations.join(", ")}]`,"}","");return $.join(`
37
- `)}}function oq(_,q){let $=P$(q.logLevel??"info"),f=j$(_,q.outputDir,{templateDir:q.templateDir,logger:$}),K=new R_;K.loadDirectory(f.templateDir);let P=[],j=[];try{return new s_(f,K,P).run(),new I_(f,K,P).run(),new Qq(f,K,P).run(),new Fq(f,K,P).run(),new x_(f,K,P).run(),new g_(f,K,P).run(),new L_(f,K,P).run(),new D_(f,K,P).run(),new y_(f,K,P).run(),$.info(`\u2713 Generated ${P.length} files`),{success:!0,filesWritten:P,errors:[],warnings:j}}catch(w){let O=w instanceof Error?w.message:String(w);return $.error(O),{success:!1,filesWritten:P,errors:[O],warnings:j}}}var B_=new Set(["app","auth","route","page","query","action","crud","realtime","job"]),mf=new Set([...B_,"import","from"]);class gq{source;filename;pos=0;line=1;col=1;tokens=[];constructor(_,q="main.vasp"){this.source=_;this.filename=q}tokenize(){while(this.pos<this.source.length){if(this.skipWhitespaceAndComments(),this.pos>=this.source.length)break;this.scanToken()}return this.tokens.push({type:"EOF",value:"",loc:{line:this.line,col:this.col,offset:this.pos,file:this.filename}}),this.tokens}loc(){return{line:this.line,col:this.col,offset:this.pos,file:this.filename}}peek(_=0){return this.source[this.pos+_]??""}advance(){let _=this.source[this.pos++]??"";if(_===`
36
+ `}}class L_ extends o{run(){let{ast:_,ext:q}=this.ctx;if(_.jobs.length===0)return;this.ctx.logger.info("Generating background jobs..."),this.write(`server/jobs/boss.${q}`,this.render("shared/jobs/boss.hbs"));for(let $ of _.jobs){let f=$.perform.fn,K=f.kind==="named"?f.namedExport:f.defaultExport;this.write(`server/jobs/${R($.name)}.${q}`,this.render("shared/jobs/_job.hbs",{name:$.name,namedExport:K,fnSource:f.source})),this.write(`server/routes/jobs/${R($.name)}Schedule.${q}`,this.render("shared/server/routes/jobs/_schedule.hbs",{name:$.name}))}}}class s_ extends o{run(){let{ast:_,ext:q}=this.ctx;if(_.queries.length>0||_.actions.length>0)this.ctx.logger.info("Generating query/action routes...");for(let $ of _.queries){let f=$.fn,K=f.kind==="named"?f.namedExport:f.defaultExport,P=f.source;this.write(`server/routes/queries/${this.camel($.name)}.${q}`,this.render("shared/server/routes/queries/_query.hbs",{name:$.name,namedExport:K,fnSource:P,requiresAuth:$.auth}))}for(let $ of _.actions){let f=$.fn,K=f.kind==="named"?f.namedExport:f.defaultExport,P=f.source;this.write(`server/routes/actions/${this.camel($.name)}.${q}`,this.render("shared/server/routes/actions/_action.hbs",{name:$.name,namedExport:K,fnSource:P,requiresAuth:$.auth}))}}camel(_){return _.replace(/[-_\s]+(.)/g,(q,$)=>$.toUpperCase()).replace(/^./,(q)=>q.toLowerCase())}}class B_ extends o{run(){let{ast:_,ext:q}=this.ctx;if(_.realtimes.length===0)return;this.ctx.logger.info("Generating realtime WebSocket channels...");for(let $ of _.realtimes)this.write(`server/routes/realtime/${R($.name)}.${q}`,this.render("shared/server/routes/realtime/_channel.hbs",{name:$.name,entity:$.entity,events:$.events}));if(this.write(`server/routes/realtime/index.${q}`,this.render("shared/server/routes/realtime/index.hbs")),this.ctx.isSpa)this.write(`src/vasp/client/realtime.${q}`,this.render(`spa/${q}/src/vasp/client/realtime.${q}.hbs`))}}import{join as B4}from"path";class U_ extends o{run(){this.ctx.logger.info("Scaffolding project structure...");let _=["src/pages","src/components","src/lib","drizzle","server/routes/queries","server/routes/actions","server/db","tests",...this.ctx.isSpa?["src/vasp/client"]:["composables","plugins","pages","middleware"]];for(let f of _)T$(B4(this.ctx.outputDir,f));let q=this.ctx.isSpa?$q:O$,$=this.render("shared/package.json.hbs",{vaspVersion:I,backendPort:S,frontendPort:q,authMethods:this.ctx.ast.auth?.methods??[]});if(this.write("package.json",$),this.write("bunfig.toml",this.render("shared/bunfig.toml.hbs")),this.write(".gitignore",this.render("shared/.gitignore.hbs")),this.write(".env.example",this.render("shared/.env.example.hbs",{backendPort:S,frontendPort:q,authMethods:this.ctx.ast.auth?.methods??[]})),this.ctx.isTypeScript)this.write("tsconfig.json",this.render("shared/tsconfig.json.hbs"));this.write("main.vasp",this.generateMainVasp())}generateMainVasp(){let{ast:_}=this.ctx,q=this.ctx.ext,$=[`app ${_.app.name} {`,` title: "${_.app.title}"`,` db: ${_.app.db}`,` ssr: ${typeof _.app.ssr==="string"?`"${_.app.ssr}"`:_.app.ssr}`,` typescript: ${_.app.typescript}`,"}",""];if(_.auth)$.push(`auth ${_.auth.name} {`,` userEntity: ${_.auth.userEntity}`,` methods: [ ${_.auth.methods.join(", ")} ]`,"}","");for(let f of _.routes)$.push(`route ${f.name} {`,` path: "${f.path}"`,` to: ${f.to}`,"}","");for(let f of _.pages){let K=f.component,P=K.kind==="default"?`import ${K.defaultExport} from "${K.source}"`:`import { ${K.namedExport} } from "${K.source}"`;$.push(`page ${f.name} {`,` component: ${P}`,"}","")}for(let f of _.queries){let K=f.fn,P=K.kind==="named"?`import { ${K.namedExport} } from "${K.source}"`:`import ${K.defaultExport} from "${K.source}"`;$.push(`query ${f.name} {`,` fn: ${P}`,` entities: [${f.entities.join(", ")}]`,"}","")}for(let f of _.actions){let K=f.fn,P=K.kind==="named"?`import { ${K.namedExport} } from "${K.source}"`:`import ${K.defaultExport} from "${K.source}"`;$.push(`action ${f.name} {`,` fn: ${P}`,` entities: [${f.entities.join(", ")}]`,"}","")}for(let f of _.cruds)$.push(`crud ${f.name} {`,` entity: ${f.entity}`,` operations: [${f.operations.join(", ")}]`,"}","");return $.join(`
37
+ `)}}function Q(_,q){let $=v$(q.logLevel??"info"),f=w$(_,q.outputDir,{...q.templateDir!==void 0?{templateDir:q.templateDir}:{},logger:$}),K=new I_;K.loadDirectory(f.templateDir);let P=[],j=[];try{return new U_(f,K,P).run(),new D_(f,K,P).run(),new __(f,K,P).run(),new q_(f,K,P).run(),new s_(f,K,P).run(),new y_(f,K,P).run(),new B_(f,K,P).run(),new L_(f,K,P).run(),new x_(f,K,P).run(),$.info(`\u2713 Generated ${P.length} files`),{success:!0,filesWritten:P,errors:[],warnings:j}}catch(w){let O=w instanceof Error?w.message:String(w);return $.error(O),{success:!1,filesWritten:P,errors:[O],warnings:j}}}var F_=new Set(["app","auth","route","page","query","action","crud","realtime","job"]),o8=new Set([...F_,"import","from"]);class gq{source;filename;pos=0;line=1;col=1;tokens=[];constructor(_,q="main.vasp"){this.source=_;this.filename=q}tokenize(){while(this.pos<this.source.length){if(this.skipWhitespaceAndComments(),this.pos>=this.source.length)break;this.scanToken()}return this.tokens.push({type:"EOF",value:"",loc:{line:this.line,col:this.col,offset:this.pos,file:this.filename}}),this.tokens}loc(){return{line:this.line,col:this.col,offset:this.pos,file:this.filename}}peek(_=0){return this.source[this.pos+_]??""}advance(){let _=this.source[this.pos++]??"";if(_===`
38
38
  `)this.line++,this.col=1;else this.col++;return _}skipWhitespaceAndComments(){while(this.pos<this.source.length){let _=this.peek();if(_===" "||_==="\t"||_==="\r"||_===`
39
39
  `){this.advance();continue}if(_==="/"&&this.peek(1)==="/"){while(this.pos<this.source.length&&this.peek()!==`
40
40
  `)this.advance();continue}if(_==="/"&&this.peek(1)==="*"){let q=this.loc();this.advance(),this.advance();let $=!1;while(this.pos<this.source.length){if(this.peek()==="*"&&this.peek(1)==="/"){this.advance(),this.advance(),$=!0;break}this.advance()}if(!$)throw new b([{code:"E001_UNCLOSED_BLOCK_COMMENT",message:"Unclosed block comment",hint:"Add */ to close the block comment",loc:q}]);continue}break}}scanToken(){let _=this.peek(),$={"{":"{","}":"}","[":"[","]":"]",":":":",",":","}[_];if($!==void 0){let f=this.loc();this.advance(),this.tokens.push({type:$,value:_,loc:f});return}if(_==='"'||_==="'"){this.scanString(_);return}if(_>="0"&&_<="9"){this.scanNumber();return}if(_==="_"||_>="a"&&_<="z"||_>="A"&&_<="Z"){this.scanIdentifierOrKeyword();return}throw new b([{code:"E002_UNEXPECTED_CHAR",message:`Unexpected character: '${_}'`,hint:"Check for typos or unsupported syntax in your .vasp file",loc:this.loc()}])}scanString(_){let q=this.loc();this.advance();let $="";while(this.pos<this.source.length&&this.peek()!==_){if(this.peek()===`
41
41
  `)throw new b([{code:"E003_UNTERMINATED_STRING",message:"Unterminated string literal",hint:"Close the string with a matching quote on the same line",loc:q}]);if(this.peek()==="\\"){this.advance();let f=this.advance();$+=this.unescape(f)}else $+=this.advance()}if(this.pos>=this.source.length)throw new b([{code:"E003_UNTERMINATED_STRING",message:"Unterminated string literal",hint:"Close the string with a matching quote",loc:q}]);this.advance(),this.tokens.push({type:"STRING",value:$,loc:q})}unescape(_){return{n:`
42
- `,t:"\t",r:"\r",'"':'"',"'":"'","\\":"\\"}[_]??_}scanNumber(){let _=this.loc(),q="";while(this.pos<this.source.length&&this.peek()>="0"&&this.peek()<="9")q+=this.advance();if(this.peek()==="."&&this.peek(1)>="0"&&this.peek(1)<="9"){q+=this.advance();while(this.pos<this.source.length&&this.peek()>="0"&&this.peek()<="9")q+=this.advance()}this.tokens.push({type:"NUMBER",value:q,loc:_})}scanIdentifierOrKeyword(){let _=this.loc(),q="";while(this.pos<this.source.length){let $=this.peek();if($>="a"&&$<="z"||$>="A"&&$<="Z"||$>="0"&&$<="9"||$==="_"||$==="-")q+=this.advance();else break}if(mf.has(q)){if(B_.has(q))this.tokens.push({type:q,value:q,loc:_});else if(q==="import")this.tokens.push({type:"import",value:q,loc:_});else if(q==="from")this.tokens.push({type:"from",value:q,loc:_});else this.tokens.push({type:"IDENTIFIER",value:q,loc:_});return}if(q==="true"||q==="false"){this.tokens.push({type:"BOOLEAN",value:q,loc:_});return}this.tokens.push({type:"IDENTIFIER",value:q,loc:_})}}function of(_,q="main.vasp"){let $=new gq(_,q).tokenize();return new nf($,q).parse()}class nf{tokens;filename;pos=0;constructor(_,q){this.tokens=_;this.filename=q}parse(){let _={app:null,routes:[],pages:[],queries:[],actions:[],cruds:[],realtimes:[],jobs:[]};while(!this.isEOF()){let q=this.peek();switch(q.type){case"app":_.app=this.parseApp();break;case"auth":_.auth=this.parseAuth();break;case"route":_.routes.push(this.parseRoute());break;case"page":_.pages.push(this.parsePage());break;case"query":_.queries.push(this.parseQuery());break;case"action":_.actions.push(this.parseAction());break;case"crud":_.cruds.push(this.parseCrud());break;case"realtime":_.realtimes.push(this.parseRealtime());break;case"job":_.jobs.push(this.parseJob());break;default:throw this.error("E010_UNEXPECTED_TOKEN",`Unexpected token '${q.value}' at top level`,"Expected a declaration keyword: app, auth, route, page, query, action, crud, realtime, or job",q.loc)}}return _}parseApp(){let _=this.consume("app").loc,q=this.consumeIdentifier();this.consume("{");let $="",f="Drizzle",K=!1,P=!1;while(!this.check("}")){let j=this.consumeIdentifier();switch(this.consume(":"),j.value){case"title":$=this.consumeString();break;case"db":f=this.consumeIdentifier().value;break;case"ssr":{let w=this.peek();if(w.type==="BOOLEAN")K=this.consume("BOOLEAN").value==="true";else if(w.type==="STRING"){let O=this.consumeString();if(O!=="ssg")throw this.error("E011_INVALID_SSR",`Invalid ssr value "${O}"`,'Use: false, true, or "ssg"',w.loc);K="ssg"}else throw this.error("E011_INVALID_SSR","Invalid ssr value",'Use: false, true, or "ssg"',w.loc);break}case"typescript":P=this.consume("BOOLEAN").value==="true";break;default:throw this.error("E012_UNKNOWN_PROP",`Unknown app property '${j.value}'`,"Valid properties: title, db, ssr, typescript",j.loc)}}return this.consume("}"),{type:"App",name:q.value,loc:_,title:$,db:f,ssr:K,typescript:P}}parseAuth(){let _=this.consume("auth").loc,q=this.consumeIdentifier();this.consume("{");let $="",f=[];while(!this.check("}")){let K=this.consumeIdentifier();switch(this.consume(":"),K.value){case"userEntity":$=this.consumeIdentifier().value;break;case"methods":f=this.parseIdentifierArray();break;default:throw this.error("E013_UNKNOWN_PROP",`Unknown auth property '${K.value}'`,"Valid properties: userEntity, methods",K.loc)}}return this.consume("}"),{type:"Auth",name:q.value,loc:_,userEntity:$,methods:f}}parseRoute(){let _=this.consume("route").loc,q=this.consumeIdentifier();this.consume("{");let $="",f="";while(!this.check("}")){let K=this.consumeIdentifier();switch(this.consume(":"),K.value){case"path":$=this.consumeString();break;case"to":f=this.consumeIdentifier().value;break;default:throw this.error("E014_UNKNOWN_PROP",`Unknown route property '${K.value}'`,"Valid properties: path, to",K.loc)}}return this.consume("}"),{type:"Route",name:q.value,loc:_,path:$,to:f}}parsePage(){let _=this.consume("page").loc,q=this.consumeIdentifier();this.consume("{");let $=null;while(!this.check("}")){let f=this.consumeIdentifier();switch(this.consume(":"),f.value){case"component":$=this.parseImportExpression();break;default:throw this.error("E015_UNKNOWN_PROP",`Unknown page property '${f.value}'`,"Valid properties: component",f.loc)}}if(this.consume("}"),!$)throw this.error("E016_MISSING_COMPONENT",`Page '${q.value}' is missing a component`,'Add: component: import Foo from "@src/pages/Foo.vue"',_);return{type:"Page",name:q.value,loc:_,component:$}}parseQuery(){let _=this.consume("query").loc,q=this.consumeIdentifier();this.consume("{");let $=null,f=[],K=!1;while(!this.check("}")){let P=this.consumeIdentifier();switch(this.consume(":"),P.value){case"fn":$=this.parseImportExpression();break;case"entities":f=this.parseIdentifierArray();break;case"auth":K=this.consume("BOOLEAN").value==="true";break;default:throw this.error("E017_UNKNOWN_PROP",`Unknown query property '${P.value}'`,"Valid properties: fn, entities, auth",P.loc)}}if(this.consume("}"),!$)throw this.error("E018_MISSING_FN",`Query '${q.value}' is missing fn`,'Add: fn: import { myFn } from "@src/queries.js"',_);return{type:"Query",name:q.value,loc:_,fn:$,entities:f,auth:K}}parseAction(){let _=this.consume("action").loc,q=this.consumeIdentifier();this.consume("{");let $=null,f=[],K=!1;while(!this.check("}")){let P=this.consumeIdentifier();switch(this.consume(":"),P.value){case"fn":$=this.parseImportExpression();break;case"entities":f=this.parseIdentifierArray();break;case"auth":K=this.consume("BOOLEAN").value==="true";break;default:throw this.error("E019_UNKNOWN_PROP",`Unknown action property '${P.value}'`,"Valid properties: fn, entities, auth",P.loc)}}if(this.consume("}"),!$)throw this.error("E020_MISSING_FN",`Action '${q.value}' is missing fn`,'Add: fn: import { myFn } from "@src/actions.js"',_);return{type:"Action",name:q.value,loc:_,fn:$,entities:f,auth:K}}parseCrud(){let _=this.consume("crud").loc,q=this.consumeIdentifier();this.consume("{");let $="",f=[];while(!this.check("}")){let K=this.consumeIdentifier();switch(this.consume(":"),K.value){case"entity":$=this.consumeIdentifier().value;break;case"operations":f=this.parseIdentifierArray();break;default:throw this.error("E021_UNKNOWN_PROP",`Unknown crud property '${K.value}'`,"Valid properties: entity, operations",K.loc)}}return this.consume("}"),{type:"Crud",name:q.value,loc:_,entity:$,operations:f}}parseRealtime(){let _=this.consume("realtime").loc,q=this.consumeIdentifier();this.consume("{");let $="",f=[];while(!this.check("}")){let K=this.consumeIdentifier();switch(this.consume(":"),K.value){case"entity":$=this.consumeIdentifier().value;break;case"events":f=this.parseIdentifierArray();break;default:throw this.error("E022_UNKNOWN_PROP",`Unknown realtime property '${K.value}'`,"Valid properties: entity, events",K.loc)}}return this.consume("}"),{type:"Realtime",name:q.value,loc:_,entity:$,events:f}}parseJob(){let _=this.consume("job").loc,q=this.consumeIdentifier();this.consume("{");let $="PgBoss",f=null,K;while(!this.check("}")){let P=this.consumeIdentifier();switch(this.consume(":"),P.value){case"executor":$=this.consumeIdentifier().value;break;case"perform":{this.consume("{");while(!this.check("}")){let j=this.consumeIdentifier();if(this.consume(":"),j.value==="fn")f=this.parseImportExpression();else throw this.error("E023_UNKNOWN_PROP",`Unknown perform property '${j.value}'`,"Valid properties: fn",j.loc)}this.consume("}");break}case"schedule":K=this.consumeString();break;default:throw this.error("E024_UNKNOWN_PROP",`Unknown job property '${P.value}'`,"Valid properties: executor, perform, schedule",P.loc)}}if(this.consume("}"),!f)throw this.error("E025_MISSING_PERFORM",`Job '${q.value}' is missing perform.fn`,'Add: perform: { fn: import { myJob } from "@src/jobs.js" }',_);return{type:"Job",name:q.value,loc:_,executor:$,perform:{fn:f},schedule:K}}parseImportExpression(){let _=this.consume("import").loc;if(this.check("{")){this.consume("{");let f=this.consumeIdentifier().value;this.consume("}"),this.consume("from");let K=this.consumeString();return{kind:"named",namedExport:f,source:K}}let q=this.consumeIdentifier().value;this.consume("from");let $=this.consumeString();return{kind:"default",defaultExport:q,source:$}}parseIdentifierArray(){this.consume("[");let _=[];while(!this.check("]"))if(_.push(this.consumeIdentifier().value),this.check(","))this.consume(",");return this.consume("]"),_}peek(){return this.tokens[this.pos]??{type:"EOF",value:"",loc:{line:0,col:0,offset:0}}}check(_){return this.peek().type===_}isEOF(){return this.check("EOF")}consume(_){let q=this.peek();if(q.type!==_)throw this.error("E030_EXPECTED_TOKEN",`Expected '${_}' but got '${q.value||q.type}'`,`Add the missing '${_}'`,q.loc);return this.pos++,q}consumeIdentifier(){let _=this.peek();if(_.type!=="IDENTIFIER")throw this.error("E031_EXPECTED_IDENTIFIER",`Expected an identifier but got '${_.value||_.type}'`,"Provide a valid name (letters, digits, underscores)",_.loc);return this.pos++,_}consumeString(){let _=this.peek();if(_.type!=="STRING")throw this.error("E032_EXPECTED_STRING",`Expected a string but got '${_.value||_.type}'`,'Wrap the value in double quotes: "value"',_.loc);return this.pos++,_.value}error(_,q,$,f){return new b([{code:_,message:q,hint:$,loc:f}])}}class Iq{diagnostics=[];validate(_){if(this.checkAppExists(_),this.checkRouteTargets(_),this.checkCrudOperations(_),this.checkRealtimeEntities(_),this.checkAuthMethods(_),this.checkQueryActionEntities(_),this.checkJobExecutors(_),this.diagnostics.length>0)throw new b(this.diagnostics)}checkAppExists(_){if(!_.app)this.diagnostics.push({code:"E100_MISSING_APP_BLOCK",message:"No app block found in main.vasp",hint:"Every Vasp project requires exactly one app { } block"})}checkRouteTargets(_){let q=new Set(_.pages.map(($)=>$.name));for(let $ of _.routes)if(!q.has($.to))this.diagnostics.push({code:"E101_UNKNOWN_PAGE_REF",message:`Route '${$.name}' references unknown page '${$.to}'`,hint:`Add a page block named '${$.to}', or fix the 'to' value in route '${$.name}'`,loc:$.loc})}checkCrudOperations(_){for(let q of _.cruds){if(q.operations.length===0)this.diagnostics.push({code:"E102_EMPTY_CRUD_OPERATIONS",message:`crud '${q.name}' has no operations`,hint:"Add at least one operation: operations: [list, create, update, delete]",loc:q.loc});for(let $ of q.operations)if(!Bq.includes($))this.diagnostics.push({code:"E103_UNKNOWN_CRUD_OPERATION",message:`Unknown crud operation '${$}' in '${q.name}'`,hint:`Supported operations: ${Bq.join(", ")}`,loc:q.loc})}}checkRealtimeEntities(_){let q=new Set(_.cruds.map(($)=>$.entity));for(let $ of _.realtimes){if(!q.has($.entity))this.diagnostics.push({code:"E104_REALTIME_ENTITY_NOT_CRUD",message:`realtime '${$.name}' references entity '${$.entity}' which has no crud block`,hint:`Add a crud block for entity '${$.entity}', or remove the realtime block`,loc:$.loc});for(let f of $.events)if(!Uq.includes(f))this.diagnostics.push({code:"E105_UNKNOWN_REALTIME_EVENT",message:`Unknown realtime event '${f}' in '${$.name}'`,hint:`Supported events: ${Uq.join(", ")}`,loc:$.loc})}}checkAuthMethods(_){if(!_.auth)return;if(_.auth.methods.length===0)this.diagnostics.push({code:"E106_EMPTY_AUTH_METHODS",message:`auth '${_.auth.name}' has no methods`,hint:"Add at least one method: methods: [usernameAndPassword]",loc:_.auth.loc});for(let q of _.auth.methods)if(!sq.includes(q))this.diagnostics.push({code:"E107_UNKNOWN_AUTH_METHOD",message:`Unknown auth method '${q}'`,hint:`Supported methods: ${sq.join(", ")}`,loc:_.auth.loc})}checkQueryActionEntities(_){let q=new Set(_.cruds.map(($)=>$.entity));for(let $ of _.queries)for(let f of $.entities)if(!q.has(f))this.diagnostics.push({code:"E108_UNKNOWN_ENTITY_REF",message:`Query '${$.name}' references unknown entity '${f}'`,hint:`Add a crud block for entity '${f}', or remove it from the entities list`,loc:$.loc});for(let $ of _.actions)for(let f of $.entities)if(!q.has(f))this.diagnostics.push({code:"E109_UNKNOWN_ENTITY_REF",message:`Action '${$.name}' references unknown entity '${f}'`,hint:`Add a crud block for entity '${f}', or remove it from the entities list`,loc:$.loc})}checkJobExecutors(_){for(let q of _.jobs)if(q.executor!=="PgBoss")this.diagnostics.push({code:"E110_UNKNOWN_JOB_EXECUTOR",message:`Unknown job executor '${q.executor}' in '${q.name}'`,hint:"Supported executors: PgBoss",loc:q.loc})}}function nq(_,q="main.vasp"){let $=of(_,q);return new Iq().validate($),$}import{join as M4,resolve as N4}from"path";import{existsSync as c4,mkdirSync as E4}from"fs";async function Af(_){let q=_[0];if(!q)H.error("Please provide a project name: vasp new <project-name>"),process.exit(1);let $=R4(_.slice(1)),f=N4(process.cwd(),q);if(c4(f))H.error(`Directory '${q}' already exists`),process.exit(1);H.step(`Creating Vasp app: ${q}`),H.info(`Version: ${I}`),H.info(`Mode: ${$.ssg?"SSG":$.ssr?"SSR":"SPA"} | Language: ${$.typescript?"TypeScript":"JavaScript"}`);let K=g4(q,$),P;try{P=nq(K,"main.vasp")}catch(O){H.error(`Internal error generating initial config: ${String(O)}`),process.exit(1)}let j=M4(import.meta.dirname,"..","..","..","..","templates");E4(f,{recursive:!0});let w=oq(P,{outputDir:f,templateDir:j,logLevel:"info"});if(!w.success){H.error("Generation failed:");for(let O of w.errors)H.error(O);process.exit(1)}if(H.success(`Created ${w.filesWritten.length} files`),!$.noInstall){H.step("Installing dependencies...");let O=Bun.spawn(["bun","install"],{cwd:f,stdout:"inherit",stderr:"inherit"});if(await O.exited,O.exitCode!==0)H.warn("bun install failed \u2014 run it manually inside your project");else H.success("Dependencies installed")}H.step("\uD83D\uDE80 Your Vasp app is ready!"),H.dim(` cd ${q}`),H.dim(" vasp start")}function R4(_){return{typescript:_.includes("--typescript")||_.includes("--ts"),ssr:_.includes("--ssr"),ssg:_.includes("--ssg"),noInstall:_.includes("--no-install"),starter:_.find((q)=>q.startsWith("--starter="))?.split("=")[1]}}function g4(_,q){let $=q.ssg?'"ssg"':q.ssr?"true":"false";return`app ${I4(_)} {
43
- title: "${y4(_)}"
42
+ `,t:"\t",r:"\r",'"':'"',"'":"'","\\":"\\"}[_]??_}scanNumber(){let _=this.loc(),q="";while(this.pos<this.source.length&&this.peek()>="0"&&this.peek()<="9")q+=this.advance();if(this.peek()==="."&&this.peek(1)>="0"&&this.peek(1)<="9"){q+=this.advance();while(this.pos<this.source.length&&this.peek()>="0"&&this.peek()<="9")q+=this.advance()}this.tokens.push({type:"NUMBER",value:q,loc:_})}scanIdentifierOrKeyword(){let _=this.loc(),q="";while(this.pos<this.source.length){let $=this.peek();if($>="a"&&$<="z"||$>="A"&&$<="Z"||$>="0"&&$<="9"||$==="_"||$==="-")q+=this.advance();else break}if(o8.has(q)){if(F_.has(q))this.tokens.push({type:q,value:q,loc:_});else if(q==="import")this.tokens.push({type:"import",value:q,loc:_});else if(q==="from")this.tokens.push({type:"from",value:q,loc:_});else this.tokens.push({type:"IDENTIFIER",value:q,loc:_});return}if(q==="true"||q==="false"){this.tokens.push({type:"BOOLEAN",value:q,loc:_});return}this.tokens.push({type:"IDENTIFIER",value:q,loc:_})}}function A8(_,q="main.vasp"){let $=new gq(_,q).tokenize();return new X8($,q).parse()}class X8{tokens;filename;pos=0;constructor(_,q){this.tokens=_;this.filename=q}parse(){let _={app:null,routes:[],pages:[],queries:[],actions:[],cruds:[],realtimes:[],jobs:[]};while(!this.isEOF()){let q=this.peek();switch(q.type){case"app":_.app=this.parseApp();break;case"auth":_.auth=this.parseAuth();break;case"route":_.routes.push(this.parseRoute());break;case"page":_.pages.push(this.parsePage());break;case"query":_.queries.push(this.parseQuery());break;case"action":_.actions.push(this.parseAction());break;case"crud":_.cruds.push(this.parseCrud());break;case"realtime":_.realtimes.push(this.parseRealtime());break;case"job":_.jobs.push(this.parseJob());break;default:throw this.error("E010_UNEXPECTED_TOKEN",`Unexpected token '${q.value}' at top level`,"Expected a declaration keyword: app, auth, route, page, query, action, crud, realtime, or job",q.loc)}}return _}parseApp(){let _=this.consume("app").loc,q=this.consumeIdentifier();this.consume("{");let $="",f="Drizzle",K=!1,P=!1;while(!this.check("}")){let j=this.consumeIdentifier();switch(this.consume(":"),j.value){case"title":$=this.consumeString();break;case"db":f=this.consumeIdentifier().value;break;case"ssr":{let w=this.peek();if(w.type==="BOOLEAN")K=this.consume("BOOLEAN").value==="true";else if(w.type==="STRING"){let O=this.consumeString();if(O!=="ssg")throw this.error("E011_INVALID_SSR",`Invalid ssr value "${O}"`,'Use: false, true, or "ssg"',w.loc);K="ssg"}else throw this.error("E011_INVALID_SSR","Invalid ssr value",'Use: false, true, or "ssg"',w.loc);break}case"typescript":P=this.consume("BOOLEAN").value==="true";break;default:throw this.error("E012_UNKNOWN_PROP",`Unknown app property '${j.value}'`,"Valid properties: title, db, ssr, typescript",j.loc)}}return this.consume("}"),{type:"App",name:q.value,loc:_,title:$,db:f,ssr:K,typescript:P}}parseAuth(){let _=this.consume("auth").loc,q=this.consumeIdentifier();this.consume("{");let $="",f=[];while(!this.check("}")){let K=this.consumeIdentifier();switch(this.consume(":"),K.value){case"userEntity":$=this.consumeIdentifier().value;break;case"methods":f=this.parseIdentifierArray();break;default:throw this.error("E013_UNKNOWN_PROP",`Unknown auth property '${K.value}'`,"Valid properties: userEntity, methods",K.loc)}}return this.consume("}"),{type:"Auth",name:q.value,loc:_,userEntity:$,methods:f}}parseRoute(){let _=this.consume("route").loc,q=this.consumeIdentifier();this.consume("{");let $="",f="";while(!this.check("}")){let K=this.consumeIdentifier();switch(this.consume(":"),K.value){case"path":$=this.consumeString();break;case"to":f=this.consumeIdentifier().value;break;default:throw this.error("E014_UNKNOWN_PROP",`Unknown route property '${K.value}'`,"Valid properties: path, to",K.loc)}}return this.consume("}"),{type:"Route",name:q.value,loc:_,path:$,to:f}}parsePage(){let _=this.consume("page").loc,q=this.consumeIdentifier();this.consume("{");let $=null;while(!this.check("}")){let f=this.consumeIdentifier();switch(this.consume(":"),f.value){case"component":$=this.parseImportExpression();break;default:throw this.error("E015_UNKNOWN_PROP",`Unknown page property '${f.value}'`,"Valid properties: component",f.loc)}}if(this.consume("}"),!$)throw this.error("E016_MISSING_COMPONENT",`Page '${q.value}' is missing a component`,'Add: component: import Foo from "@src/pages/Foo.vue"',_);return{type:"Page",name:q.value,loc:_,component:$}}parseQuery(){let _=this.consume("query").loc,q=this.consumeIdentifier();this.consume("{");let $=null,f=[],K=!1;while(!this.check("}")){let P=this.consumeIdentifier();switch(this.consume(":"),P.value){case"fn":$=this.parseImportExpression();break;case"entities":f=this.parseIdentifierArray();break;case"auth":K=this.consume("BOOLEAN").value==="true";break;default:throw this.error("E017_UNKNOWN_PROP",`Unknown query property '${P.value}'`,"Valid properties: fn, entities, auth",P.loc)}}if(this.consume("}"),!$)throw this.error("E018_MISSING_FN",`Query '${q.value}' is missing fn`,'Add: fn: import { myFn } from "@src/queries.js"',_);return{type:"Query",name:q.value,loc:_,fn:$,entities:f,auth:K}}parseAction(){let _=this.consume("action").loc,q=this.consumeIdentifier();this.consume("{");let $=null,f=[],K=!1;while(!this.check("}")){let P=this.consumeIdentifier();switch(this.consume(":"),P.value){case"fn":$=this.parseImportExpression();break;case"entities":f=this.parseIdentifierArray();break;case"auth":K=this.consume("BOOLEAN").value==="true";break;default:throw this.error("E019_UNKNOWN_PROP",`Unknown action property '${P.value}'`,"Valid properties: fn, entities, auth",P.loc)}}if(this.consume("}"),!$)throw this.error("E020_MISSING_FN",`Action '${q.value}' is missing fn`,'Add: fn: import { myFn } from "@src/actions.js"',_);return{type:"Action",name:q.value,loc:_,fn:$,entities:f,auth:K}}parseCrud(){let _=this.consume("crud").loc,q=this.consumeIdentifier();this.consume("{");let $="",f=[];while(!this.check("}")){let K=this.consumeIdentifier();switch(this.consume(":"),K.value){case"entity":$=this.consumeIdentifier().value;break;case"operations":f=this.parseIdentifierArray();break;default:throw this.error("E021_UNKNOWN_PROP",`Unknown crud property '${K.value}'`,"Valid properties: entity, operations",K.loc)}}return this.consume("}"),{type:"Crud",name:q.value,loc:_,entity:$,operations:f}}parseRealtime(){let _=this.consume("realtime").loc,q=this.consumeIdentifier();this.consume("{");let $="",f=[];while(!this.check("}")){let K=this.consumeIdentifier();switch(this.consume(":"),K.value){case"entity":$=this.consumeIdentifier().value;break;case"events":f=this.parseIdentifierArray();break;default:throw this.error("E022_UNKNOWN_PROP",`Unknown realtime property '${K.value}'`,"Valid properties: entity, events",K.loc)}}return this.consume("}"),{type:"Realtime",name:q.value,loc:_,entity:$,events:f}}parseJob(){let _=this.consume("job").loc,q=this.consumeIdentifier();this.consume("{");let $="PgBoss",f=null,K;while(!this.check("}")){let P=this.consumeIdentifier();switch(this.consume(":"),P.value){case"executor":$=this.consumeIdentifier().value;break;case"perform":{this.consume("{");while(!this.check("}")){let j=this.consumeIdentifier();if(this.consume(":"),j.value==="fn")f=this.parseImportExpression();else throw this.error("E023_UNKNOWN_PROP",`Unknown perform property '${j.value}'`,"Valid properties: fn",j.loc)}this.consume("}");break}case"schedule":K=this.consumeString();break;default:throw this.error("E024_UNKNOWN_PROP",`Unknown job property '${P.value}'`,"Valid properties: executor, perform, schedule",P.loc)}}if(this.consume("}"),!f)throw this.error("E025_MISSING_PERFORM",`Job '${q.value}' is missing perform.fn`,'Add: perform: { fn: import { myJob } from "@src/jobs.js" }',_);return{type:"Job",name:q.value,loc:_,executor:$,perform:{fn:f},...K!==void 0?{schedule:K}:{}}}parseImportExpression(){let _=this.consume("import").loc;if(this.check("{")){this.consume("{");let f=this.consumeIdentifier().value;this.consume("}"),this.consume("from");let K=this.consumeString();return{kind:"named",namedExport:f,source:K}}let q=this.consumeIdentifier().value;this.consume("from");let $=this.consumeString();return{kind:"default",defaultExport:q,source:$}}parseIdentifierArray(){this.consume("[");let _=[];while(!this.check("]"))if(_.push(this.consumeIdentifier().value),this.check(","))this.consume(",");return this.consume("]"),_}peek(){return this.tokens[this.pos]??{type:"EOF",value:"",loc:{line:0,col:0,offset:0}}}check(_){return this.peek().type===_}isEOF(){return this.check("EOF")}consume(_){let q=this.peek();if(q.type!==_)throw this.error("E030_EXPECTED_TOKEN",`Expected '${_}' but got '${q.value||q.type}'`,`Add the missing '${_}'`,q.loc);return this.pos++,q}consumeIdentifier(){let _=this.peek();if(_.type!=="IDENTIFIER")throw this.error("E031_EXPECTED_IDENTIFIER",`Expected an identifier but got '${_.value||_.type}'`,"Provide a valid name (letters, digits, underscores)",_.loc);return this.pos++,_}consumeString(){let _=this.peek();if(_.type!=="STRING")throw this.error("E032_EXPECTED_STRING",`Expected a string but got '${_.value||_.type}'`,'Wrap the value in double quotes: "value"',_.loc);return this.pos++,_.value}error(_,q,$,f){return new b([{code:_,message:q,hint:$,...f!==void 0?{loc:f}:{}}])}}class Iq{diagnostics=[];validate(_){if(this.checkAppExists(_),this.checkRouteTargets(_),this.checkCrudOperations(_),this.checkRealtimeEntities(_),this.checkAuthMethods(_),this.checkQueryActionEntities(_),this.checkJobExecutors(_),this.diagnostics.length>0)throw new b(this.diagnostics)}checkAppExists(_){if(!_.app)this.diagnostics.push({code:"E100_MISSING_APP_BLOCK",message:"No app block found in main.vasp",hint:"Every Vasp project requires exactly one app { } block"})}checkRouteTargets(_){let q=new Set(_.pages.map(($)=>$.name));for(let $ of _.routes)if(!q.has($.to))this.diagnostics.push({code:"E101_UNKNOWN_PAGE_REF",message:`Route '${$.name}' references unknown page '${$.to}'`,hint:`Add a page block named '${$.to}', or fix the 'to' value in route '${$.name}'`,loc:$.loc})}checkCrudOperations(_){for(let q of _.cruds){if(q.operations.length===0)this.diagnostics.push({code:"E102_EMPTY_CRUD_OPERATIONS",message:`crud '${q.name}' has no operations`,hint:"Add at least one operation: operations: [list, create, update, delete]",loc:q.loc});for(let $ of q.operations)if(!Fq.includes($))this.diagnostics.push({code:"E103_UNKNOWN_CRUD_OPERATION",message:`Unknown crud operation '${$}' in '${q.name}'`,hint:`Supported operations: ${Fq.join(", ")}`,loc:q.loc})}}checkRealtimeEntities(_){let q=new Set(_.cruds.map(($)=>$.entity));for(let $ of _.realtimes){if(!q.has($.entity))this.diagnostics.push({code:"E104_REALTIME_ENTITY_NOT_CRUD",message:`realtime '${$.name}' references entity '${$.entity}' which has no crud block`,hint:`Add a crud block for entity '${$.entity}', or remove the realtime block`,loc:$.loc});for(let f of $.events)if(!Qq.includes(f))this.diagnostics.push({code:"E105_UNKNOWN_REALTIME_EVENT",message:`Unknown realtime event '${f}' in '${$.name}'`,hint:`Supported events: ${Qq.join(", ")}`,loc:$.loc})}}checkAuthMethods(_){if(!_.auth)return;if(_.auth.methods.length===0)this.diagnostics.push({code:"E106_EMPTY_AUTH_METHODS",message:`auth '${_.auth.name}' has no methods`,hint:"Add at least one method: methods: [usernameAndPassword]",loc:_.auth.loc});for(let q of _.auth.methods)if(!Uq.includes(q))this.diagnostics.push({code:"E107_UNKNOWN_AUTH_METHOD",message:`Unknown auth method '${q}'`,hint:`Supported methods: ${Uq.join(", ")}`,loc:_.auth.loc})}checkQueryActionEntities(_){let q=new Set(_.cruds.map(($)=>$.entity));for(let $ of _.queries)for(let f of $.entities)if(!q.has(f))this.diagnostics.push({code:"E108_UNKNOWN_ENTITY_REF",message:`Query '${$.name}' references unknown entity '${f}'`,hint:`Add a crud block for entity '${f}', or remove it from the entities list`,loc:$.loc});for(let $ of _.actions)for(let f of $.entities)if(!q.has(f))this.diagnostics.push({code:"E109_UNKNOWN_ENTITY_REF",message:`Action '${$.name}' references unknown entity '${f}'`,hint:`Add a crud block for entity '${f}', or remove it from the entities list`,loc:$.loc})}checkJobExecutors(_){for(let q of _.jobs)if(q.executor!=="PgBoss")this.diagnostics.push({code:"E110_UNKNOWN_JOB_EXECUTOR",message:`Unknown job executor '${q.executor}' in '${q.name}'`,hint:"Supported executors: PgBoss",loc:q.loc})}}function qq(_,q="main.vasp"){let $=A8(_,q);return new Iq().validate($),$}import{join as Q_,resolve as U4}from"path";import{existsSync as p8,mkdirSync as F4,readFileSync as Q4}from"fs";var q7=Q_(import.meta.dirname,"..","..","starters"),e8=["minimal","todo","todo-auth-ssr"];async function d8(_){let q=_[0];if(!q)k.error("Please provide a project name: vasp new <project-name>"),process.exit(1);let $=_7(_.slice(1)),f=U4(process.cwd(),q);if(p8(f))k.error(`Directory '${q}' already exists`),process.exit(1);k.step(`Creating Vasp app: ${q}`),k.info(`Version: ${I}`);let K;if($.starter){if(!e8.includes($.starter))k.error(`Unknown starter '${$.starter}'. Available: ${e8.join(", ")}`),process.exit(1);let O=Q_(q7,`${$.starter}.vasp`);if(!p8(O))k.error(`Starter file not found: ${O}`),process.exit(1);K=Q4(O,"utf8"),K=K.replace(/^app \w+/m,`app ${t8(q)}`),k.info(`Starter: ${$.starter}`)}else k.info(`Mode: ${$.ssg?"SSG":$.ssr?"SSR":"SPA"} | Language: ${$.typescript?"TypeScript":"JavaScript"}`),K=$7(q,$);let P;try{P=qq(K,"main.vasp")}catch(O){k.error(`Internal error generating initial config: ${String(O)}`),process.exit(1)}let j=Q_(import.meta.dirname,"..","..","..","..","templates");F4(f,{recursive:!0});let w=Q(P,{outputDir:f,templateDir:j,logLevel:"info"});if(!w.success){k.error("Generation failed:");for(let O of w.errors)k.error(O);process.exit(1)}if(k.success(`Created ${w.filesWritten.length} files`),!$.noInstall){k.step("Installing dependencies...");let O=Bun.spawn(["bun","install"],{cwd:f,stdout:"inherit",stderr:"inherit"});if(await O.exited,O.exitCode!==0)k.warn("bun install failed \u2014 run it manually inside your project");else k.success("Dependencies installed")}k.step("\uD83D\uDE80 Your Vasp app is ready!"),k.dim(` cd ${q}`),k.dim(" vasp start")}function _7(_){return{typescript:_.includes("--typescript")||_.includes("--ts"),ssr:_.includes("--ssr"),ssg:_.includes("--ssg"),noInstall:_.includes("--no-install"),starter:_.find((q)=>q.startsWith("--starter="))?.split("=")[1]}}function $7(_,q){let $=q.ssg?'"ssg"':q.ssr?"true":"false";return`app ${t8(_)} {
43
+ title: "${f7(_)}"
44
44
  db: Drizzle
45
45
  ssr: ${$}
46
46
  typescript: ${q.typescript}
@@ -54,14 +54,18 @@ route HomeRoute {
54
54
  page HomePage {
55
55
  component: import Home from "@src/pages/Home.vue"
56
56
  }
57
- `}function I4(_){return _.replace(/[-_\s]+(.)/g,(q,$)=>$.toUpperCase()).replace(/^./,(q)=>q.toUpperCase())}function y4(_){return _.replace(/[-_]+/g," ").replace(/\b\w/g,(q)=>q.toUpperCase())}import{join as Aq}from"path";import{existsSync as Xf,readFileSync as pf,renameSync as D4,writeFileSync as x4}from"fs";import{readdirSync as L4,statSync as s4}from"fs";async function ef(){let _=process.cwd(),q=Aq(_,"main.vasp");if(!Xf(q))H.error("No main.vasp found. Run this command from your Vasp project root."),process.exit(1);let $=pf(q,"utf8");if(nq($,"main.vasp").app.typescript){H.warn("Project is already using TypeScript (typescript: true in main.vasp)");return}H.step("Migrating project to TypeScript...");let K=$.replace(/typescript:\s*false/,"typescript: true");x4(q,K,"utf8"),H.success("Updated main.vasp: typescript: true");let P=U_(Aq(_,"src"));if(U_(Aq(_,"server")),P.length>0)H.success(`Renamed ${P.length} .js files to .ts`);let j=pf(q,"utf8"),w=nq(j,"main.vasp"),O=Aq(import.meta.dirname,"..","..","..","..","templates"),v=oq(w,{outputDir:_,templateDir:O,logLevel:"info"});if(!v.success){H.error("Regeneration failed:");for(let h of v.errors)H.error(h);process.exit(1)}H.step("\u2713 Migration complete!"),H.dim("Run: bun install (to add TypeScript devDependencies)"),H.dim("Run: bun run typecheck (to verify zero type errors)")}function U_(_){let q=[];if(!Xf(_))return q;let $=L4(_);for(let f of $){let K=Aq(_,f);if(s4(K).isDirectory())q.push(...U_(K));else if(f.endsWith(".js")&&!f.endsWith(".config.js")){let j=K.slice(0,-3)+".ts";D4(K,j),q.push(j)}}return q}async function tf(_){let q=_[0];switch(q){case"new":await Af(_.slice(1));break;case"--version":case"-v":console.log(I);break;case"--help":case"-h":case void 0:df();break;case"start":H.warn("'vasp start' is coming in Phase 9 (dev server). For now, run servers manually.");break;case"build":H.warn("'vasp build' is coming in Phase 9.");break;case"migrate-to-ts":await ef();break;default:H.error(`Unknown command: ${q}`),df(),process.exit(1)}}function df(){console.log(`
57
+ `}function t8(_){return _.replace(/[-_\s]+(.)/g,(q,$)=>$.toUpperCase()).replace(/^./,(q)=>q.toUpperCase())}function f7(_){return _.replace(/[-_]+/g," ").replace(/\b\w/g,(q)=>q.toUpperCase())}import{join as Aq}from"path";import{existsSync as i8,readFileSync as G8,renameSync as K7,writeFileSync as P7}from"fs";import{readdirSync as j7,statSync as v7}from"fs";async function a8(){let _=process.cwd(),q=Aq(_,"main.vasp");if(!i8(q))k.error("No main.vasp found. Run this command from your Vasp project root."),process.exit(1);let $=G8(q,"utf8");if(qq($,"main.vasp").app.typescript){k.warn("Project is already using TypeScript (typescript: true in main.vasp)");return}k.step("Migrating project to TypeScript...");let K=$.replace(/typescript:\s*false/,"typescript: true");P7(q,K,"utf8"),k.success("Updated main.vasp: typescript: true");let P=q$(Aq(_,"src"));if(q$(Aq(_,"server")),P.length>0)k.success(`Renamed ${P.length} .js files to .ts`);let j=G8(q,"utf8"),w=qq(j,"main.vasp"),O=Aq(import.meta.dirname,"..","..","..","..","templates"),v=Q(w,{outputDir:_,templateDir:O,logLevel:"info"});if(!v.success){k.error("Regeneration failed:");for(let h of v.errors)k.error(h);process.exit(1)}k.step("\u2713 Migration complete!"),k.dim("Run: bun install (to add TypeScript devDependencies)"),k.dim("Run: bun run typecheck (to verify zero type errors)")}function q$(_){let q=[];if(!i8(_))return q;let $=j7(_);for(let f of $){let K=Aq(_,f);if(v7(K).isDirectory())q.push(...q$(K));else if(f.endsWith(".js")&&!f.endsWith(".config.js")){let j=K.slice(0,-3)+".ts";K7(K,j),q.push(j)}}return q}import{join as b8,resolve as w7}from"path";import{existsSync as O7,readFileSync as Y7,writeFileSync as h7}from"fs";async function S8(){let _=w7(process.cwd()),q=b8(_,"main.vasp");if(!O7(q))k.error(`No main.vasp found in ${_}. Run this command inside a Vasp project.`),process.exit(1);let $=Y7(q,"utf8");if(/ssr:\s*true/.test($)||/ssr:\s*"ssg"/.test($)){k.warn("SSR is already enabled in main.vasp \u2014 nothing to do.");return}if(!/ssr:\s*false/.test($))k.error("Could not find 'ssr: false' in main.vasp. Please update it manually."),process.exit(1);$=$.replace(/ssr:\s*false/,"ssr: true"),h7(q,$,"utf8"),k.step("Patched main.vasp: ssr: false \u2192 ssr: true");let f;try{f=qq($,"main.vasp")}catch(j){k.error(`Failed to parse updated main.vasp: ${String(j)}`),process.exit(1)}let K=b8(import.meta.dirname,"..","..","..","..","templates"),P=Q(f,{outputDir:_,templateDir:K,logLevel:"info"});if(!P.success){k.error("Regeneration failed:");for(let j of P.errors)k.error(j);process.exit(1)}k.success(`SSR enabled \u2014 ${P.filesWritten.length} files regenerated`),k.dim(" Run: bun install (if you have new deps)"),k.dim(" Run: vasp start")}import{join as T7,resolve as r7}from"path";import{existsSync as k7,readFileSync as z7}from"fs";var _$=Lq(Bq(),1);async function V8(){let _=r7(process.cwd()),q=T7(_,"package.json");if(!k7(q))k.error("No package.json found. Run this command inside a Vasp project."),process.exit(1);let $=JSON.parse(z7(q,"utf8")),f=$.scripts?.["dev:server"],K=$.scripts?.["dev:client"];if(!f||!K)k.error("Missing 'dev:server' or 'dev:client' scripts in package.json."),process.exit(1);k.step("Starting Vasp dev servers..."),k.dim(` server: ${f}`),k.dim(` client: ${K}`),console.log();let[P,j]=await Promise.all([C8("server",_$.default.cyan,f,_),C8("client",_$.default.magenta,K,_)]);process.on("SIGINT",()=>{P.kill(),j.kill(),process.exit(0)}),process.on("SIGTERM",()=>{P.kill(),j.kill(),process.exit(0)});let[w,O]=await Promise.all([P.exited,j.exited]);if(w!==0||O!==0)process.exit(1)}async function C8(_,q,$,f){let K=q(`[${_}]`),[P,...j]=$.split(" "),w=Bun.spawn([P,...j],{cwd:f,stdout:"pipe",stderr:"pipe"});return l8(w.stdout,K,process.stdout),l8(w.stderr,K,process.stderr),w}async function l8(_,q,$){if(!_)return;let f=new TextDecoder,K=_.getReader(),P="";while(!0){let{done:j,value:w}=await K.read();if(j){if(P)$.write(`${q} ${P}
58
+ `);break}P+=f.decode(w,{stream:!0});let O=P.split(`
59
+ `);P=O.pop()??"";for(let v of O)$.write(`${q} ${v}
60
+ `)}}import{join as M8,resolve as H7}from"path";import{existsSync as N8,readFileSync as W7}from"fs";async function c8(){let _=H7(process.cwd()),q=M8(_,"package.json");if(!N8(q))k.error("No package.json found. Run this command inside a Vasp project."),process.exit(1);let f=!!JSON.parse(W7(q,"utf8")).dependencies?.nuxt;k.step("Building Vasp app for production..."),k.info("Building backend...");let K=N8(M8(_,"server/index.ts"))?"server/index.ts":"server/index.js";if(await Bun.spawn(["bun","build",K,"--target","bun","--outdir","dist/server"],{cwd:_,stdout:"inherit",stderr:"inherit"}).exited!==0)k.error("Backend build failed."),process.exit(1);k.success("Backend built \u2192 dist/server/"),k.info(`Building frontend (${f?"Nuxt SSR":"Vite SPA"})...`);let w=f?["nuxt","build"]:["vite","build"];if(await Bun.spawn(w,{cwd:_,stdout:"inherit",stderr:"inherit"}).exited!==0)k.error("Frontend build failed."),process.exit(1);if(k.success(`Frontend built \u2192 ${f?".output/":"dist/"}`),k.step("Build complete!"),k.dim(" Run: node dist/server/index.js (backend)"),f)k.dim(" Run: node .output/server/index.mjs (Nuxt SSR)")}async function R8(_){let q=_[0];switch(q){case"new":await d8(_.slice(1));break;case"--version":case"-v":console.log(I);break;case"--help":case"-h":case void 0:E8();break;case"start":await V8();break;case"build":await c8();break;case"migrate-to-ts":await a8();break;case"enable-ssr":await S8();break;default:k.error(`Unknown command: ${q}`),E8(),process.exit(1)}}function E8(){console.log(`
58
61
  vasp \u2014 declarative full-stack framework for Vue
59
62
 
60
63
  Usage:
61
64
  vasp new <project-name> [options] Create a new Vasp project
62
- vasp start Start the dev server
63
- vasp build Build for production
64
- vasp deploy Deploy to production
65
+ vasp enable-ssr Convert existing SPA project to SSR (Nuxt 4)
66
+ vasp migrate-to-ts Convert existing JS project to TypeScript
67
+ vasp start Start the dev server (coming soon)
68
+ vasp build Build for production (coming soon)
65
69
 
66
70
  Options for 'vasp new':
67
71
  --typescript, --ts Enable TypeScript (default: JavaScript)
@@ -73,4 +77,5 @@ page HomePage {
73
77
  vasp new my-app
74
78
  vasp new my-app --typescript
75
79
  vasp new my-app --ssr --typescript
76
- `)}await tf(process.argv.slice(2));
80
+ vasp new my-app --ssg
81
+ `)}await R8(process.argv.slice(2));
package/package.json CHANGED
@@ -1,26 +1,25 @@
1
1
  {
2
2
  "name": "vasp-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "The Vasp CLI — declarative full-stack framework for Vue developers",
5
+ "license": "Apache-2.0",
5
6
  "type": "module",
6
7
  "bin": {
7
8
  "vasp": "dist/vasp"
8
9
  },
9
- "main": "./src/index.ts",
10
- "exports": {
11
- ".": "./src/index.ts"
12
- },
13
10
  "files": [
14
- "dist"
11
+ "dist",
12
+ "starters",
13
+ "README.md"
15
14
  ],
16
15
  "scripts": {
17
16
  "build": "bun build ./bin/vasp.ts --target=bun --outfile=dist/vasp --minify --banner='#!/usr/bin/env bun' && chmod +x dist/vasp",
18
17
  "test": "vitest run"
19
18
  },
20
19
  "dependencies": {
21
- "@vasp/core": "workspace:*",
22
- "@vasp/generator": "workspace:*",
23
- "@vasp/parser": "workspace:*",
20
+ "@vasp-framework/core": "workspace:*",
21
+ "@vasp-framework/generator": "workspace:*",
22
+ "@vasp-framework/parser": "workspace:*",
24
23
  "picocolors": "^1.1.0"
25
24
  },
26
25
  "devDependencies": {
@@ -0,0 +1,15 @@
1
+ app MinimalApp {
2
+ title: "My Vasp App"
3
+ db: Drizzle
4
+ ssr: false
5
+ typescript: false
6
+ }
7
+
8
+ route HomeRoute {
9
+ path: "/"
10
+ to: HomePage
11
+ }
12
+
13
+ page HomePage {
14
+ component: import Home from "@src/pages/Home.vue"
15
+ }
@@ -0,0 +1,52 @@
1
+ app TodoSsrApp {
2
+ title: "Todo App (SSR + Auth)"
3
+ db: Drizzle
4
+ ssr: true
5
+ typescript: true
6
+ }
7
+
8
+ auth UserAuth {
9
+ userEntity: User
10
+ methods: [usernameAndPassword]
11
+ }
12
+
13
+ route HomeRoute {
14
+ path: "/"
15
+ to: TodoPage
16
+ }
17
+
18
+ route DashboardRoute {
19
+ path: "/dashboard"
20
+ to: DashboardPage
21
+ }
22
+
23
+ page TodoPage {
24
+ component: import TodoPage from "@src/pages/TodoPage.vue"
25
+ }
26
+
27
+ page DashboardPage {
28
+ component: import DashboardPage from "@src/pages/DashboardPage.vue"
29
+ }
30
+
31
+ crud Todo {
32
+ entity: Todo
33
+ operations: [list, create, update, delete]
34
+ }
35
+
36
+ query getTodos {
37
+ fn: import { getTodos } from "@src/queries.ts"
38
+ entities: [Todo]
39
+ auth: true
40
+ }
41
+
42
+ action createTodo {
43
+ fn: import { createTodo } from "@src/actions.ts"
44
+ entities: [Todo]
45
+ auth: true
46
+ }
47
+
48
+ action deleteTodo {
49
+ fn: import { deleteTodo } from "@src/actions.ts"
50
+ entities: [Todo]
51
+ auth: true
52
+ }
@@ -0,0 +1,35 @@
1
+ app TodoApp {
2
+ title: "Todo App"
3
+ db: Drizzle
4
+ ssr: false
5
+ typescript: false
6
+ }
7
+
8
+ route HomeRoute {
9
+ path: "/"
10
+ to: TodoPage
11
+ }
12
+
13
+ page TodoPage {
14
+ component: import TodoPage from "@src/pages/TodoPage.vue"
15
+ }
16
+
17
+ crud Todo {
18
+ entity: Todo
19
+ operations: [list, create, update, delete]
20
+ }
21
+
22
+ query getTodos {
23
+ fn: import { getTodos } from "@src/queries.js"
24
+ entities: [Todo]
25
+ }
26
+
27
+ action createTodo {
28
+ fn: import { createTodo } from "@src/actions.js"
29
+ entities: [Todo]
30
+ }
31
+
32
+ action deleteTodo {
33
+ fn: import { deleteTodo } from "@src/actions.js"
34
+ entities: [Todo]
35
+ }