@nsis/dent 0.7.1 → 0.7.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.
Files changed (3) hide show
  1. package/README.md +5 -6
  2. package/dist/dent.mjs +1 -1
  3. package/package.json +59 -57
package/README.md CHANGED
@@ -16,7 +16,7 @@
16
16
  ## Usage
17
17
 
18
18
  ```ts
19
- import { createFormatter } from '@nsis/dent';
19
+ import { createFormatter } from "@nsis/dent";
20
20
 
21
21
  const { format } = createFormatter(/* user options */);
22
22
 
@@ -34,7 +34,7 @@ Output of the script above:
34
34
  ```nsis
35
35
  # Look ma, no indentation
36
36
  Name "Demo"
37
-
37
+
38
38
  Section
39
39
  Nop
40
40
  SectionEnd
@@ -60,17 +60,17 @@ Default: `"crlf"` (Windows), `"lf"` (Linux, macOS)
60
60
  #### `options.indentSize`
61
61
 
62
62
  Type: `number`
63
- Default: `2`
63
+ Default: `2`
64
64
 
65
65
  #### `options.trimEmptyLines`
66
66
 
67
67
  Type: `boolean`
68
- Default: `true`
68
+ Default: `true`
69
69
 
70
70
  #### `options.useTabs`
71
71
 
72
72
  Type: `boolean`
73
- Default: `true`
73
+ Default: `true`
74
74
 
75
75
  :white_check_mark: [Why defaulting to tabs is good for accessibility](https://github.com/prettier/prettier/issues/7475#issuecomment-668544890)
76
76
 
@@ -81,4 +81,3 @@ Default: `true`
81
81
  ## License
82
82
 
83
83
  This work is licensed under [The MIT License](LICENSE)
84
-
package/dist/dent.mjs CHANGED
@@ -13,7 +13,7 @@ import{platform as e}from"node:os";import{detectNewline as t}from"detect-newline
13
13
  `,!1),ge=K([`
14
14
  `,`\r`],!1,!1,!1);function _e(e){return e.flat()}function ve(){return{type:`blank`}}function ye(e,t){return{type:`comment`,style:e===`#`?`hash`:`semicolon`,value:t.trimStart()}}function be(e){return{type:`comment`,style:`block`,value:e}}function xe(e,t){return{type:`label`,name:e,comment:t??void 0}}function Se(e,t,n,r){return[{type:`label`,name:e},{type:`instruction`,keyword:t,args:n,...r?{comment:r}:{}}]}function Ce(e,t,n){let r={type:`instruction`,keyword:e,args:t};return n&&(r.comment=n),r}function we(e){return n.has(e.toLowerCase())}function Te(e){return e}function Ee(e){return r.has(e.toLowerCase())}function De(e){return e}function Oe(e){return e}function ke(e,t){return{style:e===`#`?`hash`:`semicolon`,value:t.trimStart()}}let z=t.peg$currPos|0,B=[{line:1,column:1}],V=z,H=t.peg$maxFailExpected||[],U=t.peg$silentFails|0,W;if(t.startRule){if(!(t.startRule in s))throw Error(`Can't start parsing from rule "`+t.startRule+`".`);c=s[t.startRule]}function Ae(t=z){let n=e.codePointAt(t);return n===void 0?``:String.fromCodePoint(n)}function G(e,t){return{type:`literal`,text:e,ignoreCase:t}}function K(e,t,n,r){return{type:`class`,parts:e,inverted:t,ignoreCase:n,unicode:r}}function je(){return{type:`any`}}function Me(){return{type:`end`}}function q(e){return{type:`other`,description:e}}function Ne(t){let n=B[t],r;if(n)return n;if(t>=B.length)r=B.length-1;else for(r=t;!B[--r];);for(n=B[r],n={line:n.line,column:n.column};r<t;)e.charCodeAt(r)===10?(n.line++,n.column=1):n.column++,r++;return B[t]=n,n}function Pe(e,t,n){let r=Ne(e),i=Ne(t),a={source:o,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:i.line,column:i.column}};return n&&o&&typeof o.offset==`function`&&(a.start=o.offset(a.start),a.end=o.offset(a.end)),a}function J(e){z<V||(z>V&&(V=z,H=[]),H.push(e))}function Fe(e,t,n){return new i(i.buildMessage(e,t),e,t,n)}function Ie(){let e,t,n;for(e=z,t=[],n=Y();n!==a;)t.push(n),n=Y();return t=_e(t),e=t,e}function Y(){let e;return e=ze(),e===a&&(e=Le(),e===a&&(e=Re(),e===a&&(e=Ve(),e===a&&(e=Be(),e===a&&(e=He()))))),e}function Le(){let e,t;return e=z,Z(),t=Qe(),t===a?(z=e,e=a):e=ve(),e}function Re(){let t,n,r,i,o;if(t=z,Z(),n=e.charAt(z),l.test(n)?z++:(n=a,U===0&&J(w)),n!==a){for(r=z,i=[],o=e.charAt(z),u.test(o)?z++:(o=a,U===0&&J(T));o!==a;)i.push(o),o=e.charAt(z),u.test(o)?z++:(o=a,U===0&&J(T));r=e.substring(r,z),i=Q(),i===a?(z=t,t=a):t=ye(n,r)}else z=t,t=a;return t}function ze(){let t,n,r,i,o,s,c;if(t=z,Z(),e.substr(z,2)===`/*`?(n=`/*`,z+=2):(n=a,U===0&&J(E)),n!==a){for(r=z,i=[],o=z,s=z,U++,e.substr(z,2)===`*/`?(c=`*/`,z+=2):(c=a,U===0&&J(D)),U--,c===a?s=void 0:(z=s,s=a),s===a?(z=o,o=a):(e.length>z?(c=e.charAt(z),z++):(c=a,U===0&&J(O)),c===a&&(c=e.charAt(z),d.test(c)?z++:(c=a,U===0&&J(k))),c===a?(z=o,o=a):(s=[s,c],o=s));o!==a;)i.push(o),o=z,s=z,U++,e.substr(z,2)===`*/`?(c=`*/`,z+=2):(c=a,U===0&&J(D)),U--,c===a?s=void 0:(z=s,s=a),s===a?(z=o,o=a):(e.length>z?(c=e.charAt(z),z++):(c=a,U===0&&J(O)),c===a&&(c=e.charAt(z),d.test(c)?z++:(c=a,U===0&&J(k))),c===a?(z=o,o=a):(s=[s,c],o=s));r=e.substring(r,z),e.substr(z,2)===`*/`?(i=`*/`,z+=2):(i=a,U===0&&J(D)),i===a?(z=t,t=a):(o=Z(),s=Q(),s===a&&(s=null),t=be(r))}else z=t,t=a;return t}function Be(){let t,n,r,i,o,s,c;if(t=z,Z(),n=z,r=z,i=e.charAt(z),f.test(i)?z++:(i=a,U===0&&J(A)),i!==a){for(o=[],s=e.charAt(z),p.test(s)?z++:(s=a,U===0&&J(j));s!==a;)o.push(s),s=e.charAt(z),p.test(s)?z++:(s=a,U===0&&J(j));i=[i,o],r=i}else z=r,r=a;return n=r===a?r:e.substring(n,z),n===a?(z=t,t=a):(e.charCodeAt(z)===58?(r=`:`,z++):(r=a,U===0&&J(M)),r===a?(z=t,t=a):(i=z,U++,e.charCodeAt(z)===58?(o=`:`,z++):(o=a,U===0&&J(M)),U--,o===a?i=void 0:(z=i,i=a),i===a?(z=t,t=a):(o=X(),o===a&&(o=null),s=Z(),c=Q(),c===a?(z=t,t=a):t=xe(n,o)))),t}function Ve(){let t,n,r,i,o,s,c,l,u;if(t=z,Z(),n=z,r=z,i=e.charAt(z),f.test(i)?z++:(i=a,U===0&&J(A)),i!==a){for(o=[],s=e.charAt(z),p.test(s)?z++:(s=a,U===0&&J(j));s!==a;)o.push(s),s=e.charAt(z),p.test(s)?z++:(s=a,U===0&&J(j));i=[i,o],r=i}else z=r,r=a;return n=r===a?r:e.substring(n,z),n===a?(z=t,t=a):(e.charCodeAt(z)===58?(r=`:`,z++):(r=a,U===0&&J(M)),r===a?(z=t,t=a):(i=z,U++,e.charCodeAt(z)===58?(o=`:`,z++):(o=a,U===0&&J(M)),U--,o===a?i=void 0:(z=i,i=a),i===a?(z=t,t=a):(o=Z(),s=Ue(),s===a?(z=t,t=a):(c=Je(),l=X(),l===a&&(l=null),Z(),u=Q(),u===a?(z=t,t=a):t=Se(n,s,c,l))))),t}function He(){let e,t,n,r,i;return e=z,Z(),t=Ue(),t===a?(z=e,e=a):(n=Je(),r=X(),r===a&&(r=null),Z(),i=Q(),i===a?(z=e,e=a):e=Ce(t,n,r)),e}function Ue(){let e;return U++,e=We(),e===a&&(e=Ge(),e===a&&(e=Ke(),e===a&&(e=qe()))),U--,e===a&&U===0&&J(N),e}function We(){let t,n,r,i,o,s;if(t=z,n=z,r=z,e.charCodeAt(z)===33?(i=`!`,z++):(i=a,U===0&&J(P)),i!==a){if(o=[],s=e.charAt(z),m.test(s)?z++:(s=a,U===0&&J(F)),s!==a)for(;s!==a;)o.push(s),s=e.charAt(z),m.test(s)?z++:(s=a,U===0&&J(F));else o=a;o===a?(z=r,r=a):(i=[i,o],r=i)}else z=r,r=a;return n=r===a?r:e.substring(n,z),n===a?(z=t,t=a):(r=we(n),r=r?void 0:a,r===a?(z=t,t=a):t=Te(n)),t}function Ge(){let t,n,r,i,o,s;if(t=z,n=z,e.substr(z,2)==="${"?(r="${",z+=2):(r=a,U===0&&J(ee)),r!==a)if(i=e.charAt(z),h.test(i)?z++:(i=a,U===0&&J(te)),i!==a){for(o=[],s=e.charAt(z),g.test(s)?z++:(s=a,U===0&&J(I));s!==a;)o.push(s),s=e.charAt(z),g.test(s)?z++:(s=a,U===0&&J(I));e.charCodeAt(z)===125?(s=`}`,z++):(s=a,U===0&&J(ne)),s===a?(z=n,n=a):(r=[r,i,o,s],n=r)}else z=n,n=a;else z=n,n=a;return t=n===a?n:e.substring(t,z),t}function Ke(){let t,n,r,i,o,s,c,l;if(t=z,n=z,r=e.charAt(z),m.test(r)?z++:(r=a,U===0&&J(F)),r!==a){for(i=[],o=e.charAt(z),g.test(o)?z++:(o=a,U===0&&J(I));o!==a;)i.push(o),o=e.charAt(z),g.test(o)?z++:(o=a,U===0&&J(I));if(e.substr(z,2)===`::`?(o=`::`,z+=2):(o=a,U===0&&J(re)),o!==a)if(s=e.charAt(z),m.test(s)?z++:(s=a,U===0&&J(F)),s!==a){for(c=[],l=e.charAt(z),g.test(l)?z++:(l=a,U===0&&J(I));l!==a;)c.push(l),l=e.charAt(z),g.test(l)?z++:(l=a,U===0&&J(I));r=[r,i,o,s,c],n=r}else z=n,n=a;else z=n,n=a}else z=n,n=a;return t=n===a?n:e.substring(t,z),t}function qe(){let t,n,r,i,o,s;if(t=z,n=z,r=z,i=e.charAt(z),m.test(i)?z++:(i=a,U===0&&J(F)),i!==a){for(o=[],s=e.charAt(z),_.test(s)?z++:(s=a,U===0&&J(L));s!==a;)o.push(s),s=e.charAt(z),_.test(s)?z++:(s=a,U===0&&J(L));i=[i,o],r=i}else z=r,r=a;return n=r===a?r:e.substring(n,z),n===a?(z=t,t=a):(r=Ee(n),r=r?void 0:a,r===a?(z=t,t=a):t=De(n)),t}function Je(){let e,t,n,r;for(e=z,t=[],n=z,Z(),r=Ye(),r===a?(z=n,n=a):n=r;n!==a;)t.push(n),n=z,Z(),r=Ye(),r===a?(z=n,n=a):n=r;return t=Oe(t),e=t,e}function Ye(){let e;return U++,e=Xe(),e===a&&(e=Ze()),U--,e===a&&U===0&&J(ie),e}function Xe(){let t,n,r,i,o;if(t=z,n=z,e.charCodeAt(z)===34?(r=`"`,z++):(r=a,U===0&&J(R)),r!==a){for(i=[],e.substr(z,2)===`""`?(o=`""`,z+=2):(o=a,U===0&&J(ae)),o===a&&(e.substr(z,3)===`$\\"`?(o=`$\\"`,z+=3):(o=a,U===0&&J(oe)),o===a&&(o=e.charAt(z),v.test(o)?z++:(o=a,U===0&&J(se))));o!==a;)i.push(o),e.substr(z,2)===`""`?(o=`""`,z+=2):(o=a,U===0&&J(ae)),o===a&&(e.substr(z,3)===`$\\"`?(o=`$\\"`,z+=3):(o=a,U===0&&J(oe)),o===a&&(o=e.charAt(z),v.test(o)?z++:(o=a,U===0&&J(se))));e.charCodeAt(z)===34?(o=`"`,z++):(o=a,U===0&&J(R)),o===a?(z=n,n=a):(r=[r,i,o],n=r)}else z=n,n=a;if(t=n===a?n:e.substring(t,z),t===a){if(t=z,n=z,e.charCodeAt(z)===39?(r=`'`,z++):(r=a,U===0&&J(ce)),r!==a){for(i=[],o=e.charAt(z),y.test(o)?z++:(o=a,U===0&&J(le));o!==a;)i.push(o),o=e.charAt(z),y.test(o)?z++:(o=a,U===0&&J(le));e.charCodeAt(z)===39?(o=`'`,z++):(o=a,U===0&&J(ce)),o===a?(z=n,n=a):(r=[r,i,o],n=r)}else z=n,n=a;if(t=n===a?n:e.substring(t,z),t===a){if(t=z,n=z,e.charCodeAt(z)===96?(r="`",z++):(r=a,U===0&&J(ue)),r!==a){for(i=[],o=e.charAt(z),b.test(o)?z++:(o=a,U===0&&J(de));o!==a;)i.push(o),o=e.charAt(z),b.test(o)?z++:(o=a,U===0&&J(de));e.charCodeAt(z)===96?(o="`",z++):(o=a,U===0&&J(ue)),o===a?(z=n,n=a):(r=[r,i,o],n=r)}else z=n,n=a;t=n===a?n:e.substring(t,z)}}return t}function Ze(){let t,n,r;if(t=z,n=[],r=e.charAt(z),x.test(r)?z++:(r=a,U===0&&J(fe)),r!==a)for(;r!==a;)n.push(r),r=e.charAt(z),x.test(r)?z++:(r=a,U===0&&J(fe));else n=a;return t=n===a?n:e.substring(t,z),t}function X(){let t,n,r,i,o;if(t=z,Z(),n=e.charAt(z),l.test(n)?z++:(n=a,U===0&&J(w)),n!==a){for(r=z,i=[],o=e.charAt(z),u.test(o)?z++:(o=a,U===0&&J(T));o!==a;)i.push(o),o=e.charAt(z),u.test(o)?z++:(o=a,U===0&&J(T));r=e.substring(r,z),t=ke(n,r)}else z=t,t=a;return t}function Z(){let t,n;for(U++,t=[],n=e.charAt(z),S.test(n)?z++:(n=a,U===0&&J(pe));n!==a;)t.push(n),n=e.charAt(z),S.test(n)?z++:(n=a,U===0&&J(pe));return U--,t}function Qe(){let t;return U++,e.substr(z,2)===`\r
15
15
  `?(t=`\r
16
- `,z+=2):(t=a,U===0&&J(he)),t===a&&(t=e.charAt(z),C.test(t)?z++:(t=a,U===0&&J(ge))),U--,t===a&&U===0&&J(me),t}function Q(){let e;return e=Qe(),e===a&&(e=$e()),e}function $e(){let t,n;return t=z,U++,e.length>z?(n=e.charAt(z),z++):(n=a,U===0&&J(O)),U--,n===a?t=void 0:(z=t,t=a),t}W=c();let $=W!==a&&z===e.length;function et(){throw W!==a&&z<e.length&&J(Me()),Fe(H,V<e.length?Ae(V):null,V<e.length?Pe(V,V+1):Pe(V,V))}if(t.peg$library)return{peg$result:W,peg$currPos:z,peg$FAILED:a,peg$maxFailExpected:H,peg$maxFailPos:V,peg$success:$,peg$throw:$?void 0:et};if($)return W;et()}function o(e){return a(e.replace(/^\uFEFF/,``).replace(/\\\r?\n[ \t]*/g,` `))}const s=new Map([[`!addincludedir`,`!addincludedir`],[`!addplugindir`,`!addplugindir`],[`!appendfile`,`!appendfile`],[`!appendmemfile`,`!appendmemfile`],[`!assert`,`!assert`],[`!cd`,`!cd`],[`!define`,`!define`],[`!delfile`,`!delfile`],[`!echo`,`!echo`],[`!else`,`!else`],[`!endif`,`!endif`],[`!error`,`!error`],[`!execute`,`!execute`],[`!finalize`,`!finalize`],[`!getdllversion`,`!getdllversion`],[`!gettlbversion`,`!gettlbversion`],[`!if`,`!if`],[`!ifdef`,`!ifdef`],[`!ifmacrodef`,`!ifmacrodef`],[`!ifmacrondef`,`!ifmacrondef`],[`!ifndef`,`!ifndef`],[`!include`,`!include`],[`!insertmacro`,`!insertmacro`],[`!macro`,`!macro`],[`!macroend`,`!macroend`],[`!macroundef`,`!macroundef`],[`!makensis`,`!makensis`],[`!packhdr`,`!packhdr`],[`!pragma`,`!pragma`],[`!searchparse`,`!searchparse`],[`!searchreplace`,`!searchreplace`],[`!system`,`!system`],[`!tempfile`,`!tempfile`],[`!undef`,`!undef`],[`!uninstfinalize`,`!uninstfinalize`],[`!verbose`,`!verbose`],[`!warning`,`!warning`],[`abort`,`Abort`],[`addbrandingimage`,`AddBrandingImage`],[`addsize`,`AddSize`],[`allowrootdirinstall`,`AllowRootDirInstall`],[`allowskipfiles`,`AllowSkipFiles`],[`autoclosewindow`,`AutoCloseWindow`],[`bgfont`,`BGFont`],[`bggradient`,`BGGradient`],[`brandingtext`,`BrandingText`],[`bringtofront`,`BringToFront`],[`call`,`Call`],[`callinstdll`,`CallInstDLL`],[`caption`,`Caption`],[`changeui`,`ChangeUI`],[`checkbitmap`,`CheckBitmap`],[`clearerrors`,`ClearErrors`],[`completedtext`,`CompletedText`],[`componenttext`,`ComponentText`],[`copyfiles`,`CopyFiles`],[`cpu`,`CPU`],[`crccheck`,`CRCCheck`],[`createdirectory`,`CreateDirectory`],[`createfont`,`CreateFont`],[`createshortcut`,`CreateShortcut`],[`delete`,`Delete`],[`deleteinisec`,`DeleteINISec`],[`deleteinistr`,`DeleteINIStr`],[`deleteregkey`,`DeleteRegKey`],[`deleteregvalue`,`DeleteRegValue`],[`detailprint`,`DetailPrint`],[`detailsbuttontext`,`DetailsButtonText`],[`dirshow`,`DirShow`],[`dirtext`,`DirText`],[`dirvar`,`DirVar`],[`dirverify`,`DirVerify`],[`enablewindow`,`EnableWindow`],[`enumregkey`,`EnumRegKey`],[`enumregvalue`,`EnumRegValue`],[`exch`,`Exch`],[`exec`,`Exec`],[`execshell`,`ExecShell`],[`execshellwait`,`ExecShellWait`],[`execwait`,`ExecWait`],[`expandenvstrings`,`ExpandEnvStrings`],[`file`,`File`],[`filebufsize`,`FileBufSize`],[`fileclose`,`FileClose`],[`fileerrortext`,`FileErrorText`],[`fileopen`,`FileOpen`],[`fileread`,`FileRead`],[`filereadbyte`,`FileReadByte`],[`filereadutf16le`,`FileReadUTF16LE`],[`filereadword`,`FileReadWord`],[`fileseek`,`FileSeek`],[`filewrite`,`FileWrite`],[`filewritebyte`,`FileWriteByte`],[`filewriteutf16le`,`FileWriteUTF16LE`],[`filewriteword`,`FileWriteWord`],[`findclose`,`FindClose`],[`findfirst`,`FindFirst`],[`findnext`,`FindNext`],[`findwindow`,`FindWindow`],[`flushini`,`FlushINI`],[`function`,`Function`],[`functionend`,`FunctionEnd`],[`getcurinsttype`,`GetCurInstType`],[`getcurrentaddress`,`GetCurrentAddress`],[`getdlgitem`,`GetDlgItem`],[`getdllversion`,`GetDLLVersion`],[`getdllversionlocal`,`GetDLLVersionLocal`],[`geterrorlevel`,`GetErrorLevel`],[`getfiletime`,`GetFileTime`],[`getfiletimelocal`,`GetFileTimeLocal`],[`getfullpathname`,`GetFullPathName`],[`getfunctionaddress`,`GetFunctionAddress`],[`getinstdirerror`,`GetInstDirError`],[`getknownfolderpath`,`GetKnownFolderPath`],[`getlabeladdress`,`GetLabelAddress`],[`getregview`,`GetRegView`],[`getshellvarcontext`,`GetShellVarContext`],[`gettempfilename`,`GetTempFileName`],[`getwinver`,`GetWinVer`],[`goto`,`Goto`],[`hidewindow`,`HideWindow`],[`icon`,`Icon`],[`ifabort`,`IfAbort`],[`ifaltregview`,`IfAltRegView`],[`iferrors`,`IfErrors`],[`iffileexists`,`IfFileExists`],[`ifrebootflag`,`IfRebootFlag`],[`ifrtllanguage`,`IfRtlLanguage`],[`ifshellvarcontextall`,`IfShellVarContextAll`],[`ifsilent`,`IfSilent`],[`initpluginsdir`,`InitPluginsDir`],[`installbuttontext`,`InstallButtonText`],[`installcolors`,`InstallColors`],[`installdir`,`InstallDir`],[`installdirregkey`,`InstallDirRegKey`],[`instprogressflags`,`InstProgressFlags`],[`insttype`,`InstType`],[`insttypegettext`,`InstTypeGetText`],[`insttypesettext`,`InstTypeSetText`],[`int64cmp`,`Int64Cmp`],[`int64cmpu`,`Int64CmpU`],[`int64fmt`,`Int64Fmt`],[`intcmp`,`IntCmp`],[`intcmpu`,`IntCmpU`],[`intfmt`,`IntFmt`],[`intop`,`IntOp`],[`intptrcmp`,`IntPtrCmp`],[`intptrcmpu`,`IntPtrCmpU`],[`intptrop`,`IntPtrOp`],[`iswindow`,`IsWindow`],[`langstring`,`LangString`],[`langstringup`,`LangStringUP`],[`licensebkcolor`,`LicenseBkColor`],[`licensedata`,`LicenseData`],[`licenseforceselection`,`LicenseForceSelection`],[`licenselangstring`,`LicenseLangString`],[`licensetext`,`LicenseText`],[`loadandsetimage`,`LoadAndSetImage`],[`loadlanguagefile`,`LoadLanguageFile`],[`lockwindow`,`LockWindow`],[`logset`,`LogSet`],[`logtext`,`LogText`],[`manifestappendcustomstring`,`ManifestAppendCustomString`],[`manifestdisablewindowfiltering`,`ManifestDisableWindowFiltering`],[`manifestdpiaware`,`ManifestDPIAware`],[`manifestdpiawareness`,`ManifestDPIAwareness`],[`manifestgdiscaling`,`ManifestGdiScaling`],[`manifestlongpathaware`,`ManifestLongPathAware`],[`manifestmaxversiontested`,`ManifestMaxVersionTested`],[`manifestsupportedos`,`ManifestSupportedOS`],[`messagebox`,`MessageBox`],[`miscbuttontext`,`MiscButtonText`],[`name`,`Name`],[`nop`,`Nop`],[`outfile`,`OutFile`],[`page`,`Page`],[`pagecallbacks`,`PageCallbacks`],[`pageex`,`PageEx`],[`pageexend`,`PageExEnd`],[`peaddresource`,`PEAddResource`],[`pedllcharacteristics`,`PEDllCharacteristics`],[`peremoveresource`,`PERemoveResource`],[`pesubsysver`,`PESubsysVer`],[`pop`,`Pop`],[`push`,`Push`],[`quit`,`Quit`],[`readenvstr`,`ReadEnvStr`],[`readinistr`,`ReadINIStr`],[`readmemory`,`ReadMemory`],[`readregdword`,`ReadRegDWORD`],[`readregstr`,`ReadRegStr`],[`reboot`,`Reboot`],[`regdll`,`RegDLL`],[`rename`,`Rename`],[`requestexecutionlevel`,`RequestExecutionLevel`],[`reservefile`,`ReserveFile`],[`return`,`Return`],[`rmdir`,`RMDir`],[`searchpath`,`SearchPath`],[`section`,`Section`],[`sectionend`,`SectionEnd`],[`sectiongetflags`,`SectionGetFlags`],[`sectiongetinsttypes`,`SectionGetInstTypes`],[`sectiongetsize`,`SectionGetSize`],[`sectiongettext`,`SectionGetText`],[`sectiongroup`,`SectionGroup`],[`sectiongroupend`,`SectionGroupEnd`],[`sectionin`,`SectionIn`],[`sectioninsttype`,`SectionInstType`],[`sectionsetflags`,`SectionSetFlags`],[`sectionsetinsttypes`,`SectionSetInstTypes`],[`sectionsetsize`,`SectionSetSize`],[`sectionsettext`,`SectionSetText`],[`sendmessage`,`SendMessage`],[`setautoclose`,`SetAutoClose`],[`setbrandingimage`,`SetBrandingImage`],[`setcompress`,`SetCompress`],[`setcompressionlevel`,`SetCompressionLevel`],[`setcompressor`,`SetCompressor`],[`setcompressordictsize`,`SetCompressorDictSize`],[`setctlcolors`,`SetCtlColors`],[`setcurinsttype`,`SetCurInstType`],[`setdatablockoptimize`,`SetDatablockOptimize`],[`setdatesave`,`SetDateSave`],[`setdetailsprint`,`SetDetailsPrint`],[`setdetailsview`,`SetDetailsView`],[`seterrorlevel`,`SetErrorLevel`],[`seterrors`,`SetErrors`],[`setfileattributes`,`SetFileAttributes`],[`setfont`,`SetFont`],[`setoutpath`,`SetOutPath`],[`setoverwrite`,`SetOverwrite`],[`setpluginunload`,`SetPluginUnload`],[`setrebootflag`,`SetRebootFlag`],[`setregview`,`SetRegView`],[`setshellvarcontext`,`SetShellVarContext`],[`setsilent`,`SetSilent`],[`showinstdetails`,`ShowInstDetails`],[`showuninstdetails`,`ShowUninstDetails`],[`showwindow`,`ShowWindow`],[`silentinstall`,`SilentInstall`],[`silentuninstall`,`SilentUnInstall`],[`sleep`,`Sleep`],[`spacetexts`,`SpaceTexts`],[`strcmp`,`StrCmp`],[`strcmps`,`StrCmpS`],[`strcpy`,`StrCpy`],[`strlen`,`StrLen`],[`subcaption`,`SubCaption`],[`subsection`,`SubSection`],[`subsectionend`,`SubSectionEnd`],[`target`,`Target`],[`unicode`,`Unicode`],[`uninstallbuttontext`,`UninstallButtonText`],[`uninstallcaption`,`UninstallCaption`],[`uninstallexename`,`UninstallExeName`],[`uninstallicon`,`UninstallIcon`],[`uninstallsubcaption`,`UninstallSubCaption`],[`uninstalltext`,`UninstallText`],[`uninstpage`,`UninstPage`],[`unregdll`,`UnRegDLL`],[`unsafestrcpy`,`UnsafeStrCpy`],[`var`,`Var`],[`viaddversionkey`,`VIAddVersionKey`],[`vifileversion`,`VIFileVersion`],[`viproductversion`,`VIProductVersion`],[`windowicon`,`WindowIcon`],[`writeinistr`,`WriteINIStr`],[`writeregbin`,`WriteRegBin`],[`writeregdword`,`WriteRegDWORD`],[`writeregexpandstr`,`WriteRegExpandStr`],[`writeregmultistr`,`WriteRegMultiStr`],[`writeregnone`,`WriteRegNone`],[`writeregstr`,`WriteRegStr`],[`writeuninstaller`,`WriteUninstaller`],[`xpstyle`,`XPStyle`]]),c=new Map([[`/silent`,`/SILENT`],[`/filesonly`,`/FILESONLY`],[`/rebootok`,`/REBOOTOK`],[`/short`,`/SHORT`],[`/sd`,`/SD`],[`/branding`,`/BRANDING`],[`/final`,`/FINAL`],[`/solid`,`/SOLID`],[`/global`,`/GLOBAL`],[`/bom`,`/BOM`],[`/italic`,`/ITALIC`],[`/underline`,`/UNDERLINE`],[`/strike`,`/STRIKE`],[`/enablecancel`,`/ENABLECANCEL`],[`/overwrite`,`/OVERWRITE`],[`/replace`,`/REPLACE`],[`/noerrors`,`/NOERRORS`],[`/regedit5`,`/REGEDIT5`],[`/exeresource`,`/EXERESOURCE`],[`/stringid`,`/STRINGID`],[`/resizetofit`,`/RESIZETOFIT`],[`/resizetofitwidth`,`/RESIZETOFITWIDTH`],[`/resizetofitheight`,`/RESIZETOFITHEIGHT`],[`/trimleft`,`/TRIMLEFT`],[`/trimright`,`/TRIMRIGHT`],[`/trimcenter`,`/TRIMCENTER`],[`/windows`,`/windows`],[`/nonfatal`,`/NONFATAL`],[`/nocustom`,`/NOCUSTOM`],[`/uninstnocustom`,`/UNINSTNOCUSTOM`],[`/componentsonlyoncustom`,`/COMPONENTSONLYONCUSTOM`],[`/uninstcomponentsonlyoncustom`,`/UNINSTCOMPONENTSONLYONCUSTOM`],[`/fileexists`,`/FILEEXISTS`],[`/rawnl`,`/RAWNL`],[`/productversion`,`/ProductVersion`],[`/noworkingdir`,`/NoWorkingDir`],[`/r`,`/r`],[`/a`,`/a`],[`/e`,`/e`],[`/o`,`/o`],[`/x`,`/x`],[`/ifempty`,`/ifempty`],[`/ifnosubkeys`,`/ifnosubkeys`],[`/ifnovalues`,`/ifnovalues`],[`/nounload`,`/nounload`],[`/plugin`,`/plugin`],[`/ifndef`,`/ifndef`],[`/redef`,`/redef`],[`/date`,`/date`],[`/utcdate`,`/utcdate`],[`/file`,`/file`],[`/intfmt`,`/intfmt`],[`/math`,`/math`],[`/ignorecase`,`/ignorecase`],[`/packed`,`/packed`],[`/target`,`/target`]]),l=new Map([[`/lang=`,`/LANG=`],[`/timeout=`,`/TIMEOUT=`],[`/charset=`,`/CHARSET=`],[`/imgid=`,`/IMGID=`],[`/customstring=`,`/CUSTOMSTRING=`],[`/uninstcustomstring=`,`/UNINSTCUSTOMSTRING=`],[`/oname=`,`/oname=`]]),u=new Map;function d(e,t){for(let n of e){let e=n.toLowerCase(),r=u.get(e);r||(r=new Map,u.set(e,r));for(let[e,n]of t)r.set(e,n)}}d([`AllowRootDirInstall`,`AllowSkipFiles`,`AutoCloseWindow`,`CRCCheck`,`ManifestDPIAware`,`ManifestDisableWindowFiltering`,`ManifestGdiScaling`,`ManifestLongPathAware`,`SetAutoClose`,`SetDatablockOptimize`,`SetDateSave`,`SetPluginUnload`,`Unicode`,`WindowIcon`],[[`true`,`true`],[`false`,`false`]]),d([`CRCCheck`,`LogSet`,`LockWindow`,`SetCompress`,`SetDateSave`,`SetDatablockOptimize`,`SetOverwrite`,`WindowIcon`,`XPStyle`,`LicenseForceSelection`],[[`on`,`on`],[`off`,`off`]]),d([`FileOpen`],[[`r`,`r`],[`w`,`w`],[`a`,`a`]]),d([`SetCompressor`],[[`zlib`,`zlib`],[`bzip2`,`bzip2`],[`lzma`,`lzma`]]),d([`Target`],[[`x86`,`x86`],[`amd64`,`amd64`]]),d([`SetOverwrite`],[[`try`,`try`],[`ifnewer`,`ifnewer`],[`ifdiff`,`ifdiff`],[`lastused`,`lastused`]]),d([`SetCompress`],[[`auto`,`auto`],[`force`,`force`]]),d([`SilentInstall`],[[`normal`,`normal`],[`silent`,`silent`],[`silentlog`,`silentlog`]]),d([`SilentUnInstall`,`SetSilent`],[[`normal`,`normal`],[`silent`,`silent`]]),d([`ShowInstDetails`,`ShowUninstDetails`],[[`hide`,`hide`],[`show`,`show`],[`nevershow`,`nevershow`]]),d([`SetDetailsView`,`DirShow`],[[`show`,`show`],[`hide`,`hide`]]),d([`SetDetailsPrint`],[[`listonly`,`listonly`],[`textonly`,`textonly`],[`both`,`both`],[`none`,`none`],[`lastused`,`lastused`]]),d([`RequestExecutionLevel`],[[`none`,`none`],[`user`,`user`],[`highest`,`highest`],[`admin`,`admin`]]),d([`AddBrandingImage`],[[`top`,`top`],[`left`,`left`],[`bottom`,`bottom`],[`right`,`right`]]),d([`InstProgressFlags`],[[`smooth`,`smooth`],[`colored`,`colored`]]),d([`LicenseForceSelection`],[[`checkbox`,`checkbox`],[`radiobuttons`,`radiobuttons`]]),d([`SetShellVarContext`],[[`all`,`all`],[`current`,`current`]]),d([`DirVerify`],[[`auto`,`auto`],[`leave`,`leave`]]),d([`ExecShell`,`ExecShellWait`],[[`open`,`open`],[`print`,`print`]]),d([`Page`,`UninstPage`],[[`custom`,`custom`],[`license`,`license`],[`components`,`components`],[`directory`,`directory`],[`instfiles`,`instfiles`],[`uninstconfirm`,`uninstConfirm`]]),d([`SetCtlColors`],[[`transparent`,`transparent`]]),d([`LockWindow`],[[`on`,`on`],[`off`,`off`]]),d([`SetRegView`],[[`default`,`default`]]),d([`DeleteRegKey`,`DeleteRegValue`,`EnumRegKey`,`EnumRegValue`,`InstallDirRegKey`,`ReadRegDWORD`,`ReadRegStr`,`WriteRegBin`,`WriteRegDWORD`,`WriteRegExpandStr`,`WriteRegMultiStr`,`WriteRegNone`,`WriteRegStr`],[[`hkcr`,`HKCR`],[`hkcr32`,`HKCR32`],[`hkcr64`,`HKCR64`],[`hklm`,`HKLM`],[`hklm32`,`HKLM32`],[`hklm64`,`HKLM64`],[`hkcu`,`HKCU`],[`hkcu32`,`HKCU32`],[`hkcu64`,`HKCU64`],[`hku`,`HKU`],[`hkcc`,`HKCC`],[`hkdd`,`HKDD`],[`hkpd`,`HKPD`],[`shctx`,`SHCTX`]]),d([`MessageBox`],[[`mb_ok`,`MB_OK`],[`mb_okcancel`,`MB_OKCANCEL`],[`mb_abortretryignore`,`MB_ABORTRETRYIGNORE`],[`mb_retrycancel`,`MB_RETRYCANCEL`],[`mb_yesno`,`MB_YESNO`],[`mb_yesnocancel`,`MB_YESNOCANCEL`],[`mb_iconexclamation`,`MB_ICONEXCLAMATION`],[`mb_iconinformation`,`MB_ICONINFORMATION`],[`mb_iconquestion`,`MB_ICONQUESTION`],[`mb_iconstop`,`MB_ICONSTOP`],[`mb_usericon`,`MB_USERICON`],[`mb_topmost`,`MB_TOPMOST`],[`mb_setforeground`,`MB_SETFOREGROUND`],[`mb_right`,`MB_RIGHT`],[`mb_defbutton1`,`MB_DEFBUTTON1`],[`mb_defbutton2`,`MB_DEFBUTTON2`],[`mb_defbutton3`,`MB_DEFBUTTON3`],[`mb_defbutton4`,`MB_DEFBUTTON4`],[`idok`,`IDOK`],[`idcancel`,`IDCANCEL`],[`idyes`,`IDYES`],[`idno`,`IDNO`],[`idabort`,`IDABORT`],[`idretry`,`IDRETRY`],[`idignore`,`IDIGNORE`]]),d([`CreateShortcut`,`ShowWindow`],[[`sw_shownormal`,`SW_SHOWNORMAL`],[`sw_showmaximized`,`SW_SHOWMAXIMIZED`],[`sw_showminimized`,`SW_SHOWMINIMIZED`],[`sw_hide`,`SW_HIDE`],[`sw_show`,`SW_SHOW`]]),d([`CreateShortcut`],[[`alt`,`ALT`],[`control`,`CONTROL`],[`ext`,`EXT`],[`shift`,`SHIFT`]]),d([`SetFileAttributes`],[[`archive`,`ARCHIVE`],[`hidden`,`HIDDEN`],[`offline`,`OFFLINE`],[`readonly`,`READONLY`],[`system`,`SYSTEM`],[`temporary`,`TEMPORARY`]]),d([`FileSeek`],[[`set`,`SET`],[`cur`,`CUR`],[`end`,`END`]]),d([`GetWinVer`],[[`major`,`MAJOR`],[`minor`,`MINOR`],[`build`,`BUILD`],[`servicepack`,`SERVICEPACK`]]),d([`ManifestSupportedOS`],[[`winvista`,`WinVista`],[`win7`,`Win7`],[`win8`,`Win8`],[`win8.1`,`Win8.1`],[`win10`,`Win10`]]),d([`ChangeUI`],[[`dlg_id`,`dlg_id`]]);const f=u;function p(e){return new Set(e.map(e=>e.toLowerCase()))}const m={open:p("!if.!ifdef.!ifmacrodef.!ifmacrondef.!ifndef.!macro.${Case}.${Case2}.${Case3}.${Case4}.${Case5}.${CaseElse}.${Default}.${Do}.${DoUntil}.${DoWhile}.${For}.${ForEach}.${If}.${IfNot}.${MementoSection}.${MementoUnselectedSection}.${Select}.${Switch}.${Unless}.Function.PageEx.Section.SectionGroup".split(`.`)),close:p([`!endif`,`!macroend`,"${EndIf}","${EndSelect}","${EndSwitch}","${EndWhile}","${Loop}","${LoopUntil}","${LoopWhile}","${MementoSectionEnd}","${Next}","${While}",`FunctionEnd`,`PageExEnd`,`SectionEnd`,`SectionGroupEnd`]),mid:p([`!else`,`!elseif`,"${Else}","${ElseIf}","${ElseIfNot}","${ElseUnless}","${AndIf}","${AndIfNot}","${AndUnless}","${OrIf}","${OrIfNot}","${OrUnless}"]),closeAfter:p(["${Break}"])};function h(e,t){let n=0,r=[],i=[],a=M(e);t.trimEmptyLines&&(a=N(a));for(let e of a)switch(e.type){case`blank`:i.push(``);break;case`comment`:i.push(_(e,n,t));break;case`label`:i.push(v(e,n,t));break;case`instruction`:{let a=e.keyword.toLowerCase();if(m.open.has(a))i.push(O(e,n,t)),r.push(n),n++;else if(m.close.has(a))n=r.length>0?r.pop():0,i.push(O(e,n,t));else if(m.mid.has(a)){let n=r.length>0?r[r.length-1]:0;i.push(O(e,n,t))}else m.closeAfter.has(a)?(i.push(O(e,n,t)),n=r.length>0?r.pop():0):i.push(O(e,n,t));break}}return i.join(t.eol)+t.eol}function g(e,t){return(t.useTabs?` `:` `.repeat(t.indentSize)).repeat(e)}function _(e,t,n){let r=g(t,n);if(e.style===`block`){let t=e.value.split(/\r?\n/);return t.length===1?`${r}/*${e.value}*/`:t.map((e,n)=>{if(n===0)return`${r}/*${e}`;let i=e.trimStart();return n===t.length-1?`${r} ${i}*/`:`${r} ${i}`}).join(n.eol)}return`${r}${e.style===`hash`?`#`:`;`} ${e.value}`}function v(e,t,n){let r=`${g(t,n)}${e.name}:`;return e.comment&&(r+=` ${k(e.comment)}`),r}function y(e,t){if(e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||e.startsWith(`$`))return e;let n=e.toLowerCase(),r=t?.get(n)??c.get(n);if(r!==void 0)return r;let i=e.indexOf(`=`);if(i>0){let t=`${n.slice(0,i+1)}`,r=l.get(t);if(r!==void 0)return`${r}${e.slice(i+1)}`}return e}function b(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||!e.includes(`|`)||e===`|`?[e]:x(e,`|`))}function x(e,t){let n=[],r=``,i=0;for(;i<e.length;){if(e[i]===`$`&&e[i+1]===`{`){let t=e.indexOf(`}`,i+2);if(t!==-1){r+=e.slice(i,t+1),i=t+1;continue}}if(e[i]===t){r&&n.push(r),r=``,n.push(t),i++;continue}r+=e[i],i++}return r&&n.push(r),n}const S=new Set([`intop`,`intptrop`]);function C(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||w.has(e)?[e]:E(e))}const w=new Set([`||`,`&&`,`<<`,`>>`,`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]),T=new Set([`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]);function E(e){let t=[],n=``,r=!0,i=0;for(;i<e.length;){if(e[i]===`$`&&e[i+1]===`{`){let t=e.indexOf(`}`,i+2);if(t!==-1){n+=e.slice(i,t+1),i=t+1,r=!1;continue}}if(i+1<e.length){let a=e.slice(i,i+2);if(w.has(a)){n&&=(t.push(n),``),t.push(a),r=!0,i+=2;continue}}let a=e[i];if(T.has(a)){if(a===`-`&&r){n+=a,i++;continue}n&&=(t.push(n),``),t.push(a),r=!0,i++;continue}n+=a,r=!1,i++}return n&&t.push(n),t.length>0?t:[e]}function D(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];r===`|`?t+=`|`:(n>0&&e[n-1]===`|`||t&&(t+=` `),t+=r)}return t}function O(e,t,n){let r=e.keyword.toLowerCase(),i=s.get(r)??e.keyword,a=f.get(r),o=(S.has(r)?C(e.args):b(e.args)).map(e=>y(e,a)),c=S.has(r)?o.join(` `):D(o),l=o.length>0?`${i} ${c}`:i,u=`${g(t,n)}${l}`;return e.comment&&(u+=` ${k(e.comment)}`),u}function k(e){return`${e.style===`hash`?`#`:`;`} ${e.value}`}function A(e){return e.type===`instruction`&&m.open.has(e.keyword.toLowerCase())}function j(e){return e.type===`instruction`&&m.close.has(e.keyword.toLowerCase())}function M(e){let t=[],n;for(let r=0;r<e.length;r++){let i=e[r],a=t.length>0&&t[t.length-1].type===`blank`;if(n&&!a&&i.type!==`blank`)if(A(i)&&!A(n)&&n.type!==`comment`)t.push({type:`blank`});else if(i.type===`comment`&&!A(n)&&n.type!==`comment`){let n=r+1;for(;n<e.length&&(e[n].type===`blank`||e[n].type===`comment`);)n++;n<e.length&&A(e[n])&&t.push({type:`blank`})}else j(n)&&!j(i)&&!A(i)&&t.push({type:`blank`});t.push(i),i.type!==`blank`&&(n=i)}return t}function N(e){let t=0;for(;t<e.length&&e[t].type===`blank`;)t++;let n=e.length-1;for(;n>=t&&e[n].type===`blank`;)n--;let r=[],i=!1;for(let a=t;a<=n;a++){let t=e[a];t.type===`blank`?i||=(r.push(t),!0):(r.push(t),i=!1)}return r}function P(n={}){let r={indentSize:2,trimEmptyLines:!0,useTabs:!0,...n};if(r.useTabs===!1&&(!r.indentSize||Number.isNaN(r.indentSize)||r.indentSize<=0))throw Error(`The indentSize option expects a positive integer`);function i(e){let t=o(e),n=s(e);return h(t,{useTabs:r.useTabs??!0,indentSize:r.indentSize??2,trimEmptyLines:r.trimEmptyLines??!0,eol:n})}function a(e){let t=i(e);return t===e?null:t}function s(n){return r.endOfLines?r.endOfLines===`crlf`?`\r
16
+ `,z+=2):(t=a,U===0&&J(he)),t===a&&(t=e.charAt(z),C.test(t)?z++:(t=a,U===0&&J(ge))),U--,t===a&&U===0&&J(me),t}function Q(){let e;return e=Qe(),e===a&&(e=$e()),e}function $e(){let t,n;return t=z,U++,e.length>z?(n=e.charAt(z),z++):(n=a,U===0&&J(O)),U--,n===a?t=void 0:(z=t,t=a),t}W=c();let $=W!==a&&z===e.length;function et(){throw W!==a&&z<e.length&&J(Me()),Fe(H,V<e.length?Ae(V):null,V<e.length?Pe(V,V+1):Pe(V,V))}if(t.peg$library)return{peg$result:W,peg$currPos:z,peg$FAILED:a,peg$maxFailExpected:H,peg$maxFailPos:V,peg$success:$,peg$throw:$?void 0:et};if($)return W;et()}function o(e){return a(e.replace(/^\uFEFF/,``).replace(/\\\r?\n[ \t]*/g,` `))}const s=new Map([[`!addincludedir`,`!addincludedir`],[`!addplugindir`,`!addplugindir`],[`!appendfile`,`!appendfile`],[`!appendmemfile`,`!appendmemfile`],[`!assert`,`!assert`],[`!cd`,`!cd`],[`!define`,`!define`],[`!delfile`,`!delfile`],[`!echo`,`!echo`],[`!else`,`!else`],[`!endif`,`!endif`],[`!error`,`!error`],[`!execute`,`!execute`],[`!finalize`,`!finalize`],[`!getdllversion`,`!getdllversion`],[`!gettlbversion`,`!gettlbversion`],[`!if`,`!if`],[`!ifdef`,`!ifdef`],[`!ifmacrodef`,`!ifmacrodef`],[`!ifmacrondef`,`!ifmacrondef`],[`!ifndef`,`!ifndef`],[`!include`,`!include`],[`!insertmacro`,`!insertmacro`],[`!macro`,`!macro`],[`!macroend`,`!macroend`],[`!macroundef`,`!macroundef`],[`!makensis`,`!makensis`],[`!packhdr`,`!packhdr`],[`!pragma`,`!pragma`],[`!searchparse`,`!searchparse`],[`!searchreplace`,`!searchreplace`],[`!system`,`!system`],[`!tempfile`,`!tempfile`],[`!undef`,`!undef`],[`!uninstfinalize`,`!uninstfinalize`],[`!verbose`,`!verbose`],[`!warning`,`!warning`],[`abort`,`Abort`],[`addbrandingimage`,`AddBrandingImage`],[`addsize`,`AddSize`],[`allowrootdirinstall`,`AllowRootDirInstall`],[`allowskipfiles`,`AllowSkipFiles`],[`autoclosewindow`,`AutoCloseWindow`],[`bgfont`,`BGFont`],[`bggradient`,`BGGradient`],[`brandingtext`,`BrandingText`],[`bringtofront`,`BringToFront`],[`call`,`Call`],[`callinstdll`,`CallInstDLL`],[`caption`,`Caption`],[`changeui`,`ChangeUI`],[`checkbitmap`,`CheckBitmap`],[`clearerrors`,`ClearErrors`],[`completedtext`,`CompletedText`],[`componenttext`,`ComponentText`],[`copyfiles`,`CopyFiles`],[`cpu`,`CPU`],[`crccheck`,`CRCCheck`],[`createdirectory`,`CreateDirectory`],[`createfont`,`CreateFont`],[`createshortcut`,`CreateShortcut`],[`delete`,`Delete`],[`deleteinisec`,`DeleteINISec`],[`deleteinistr`,`DeleteINIStr`],[`deleteregkey`,`DeleteRegKey`],[`deleteregvalue`,`DeleteRegValue`],[`detailprint`,`DetailPrint`],[`detailsbuttontext`,`DetailsButtonText`],[`dirshow`,`DirShow`],[`dirtext`,`DirText`],[`dirvar`,`DirVar`],[`dirverify`,`DirVerify`],[`enablewindow`,`EnableWindow`],[`enumregkey`,`EnumRegKey`],[`enumregvalue`,`EnumRegValue`],[`exch`,`Exch`],[`exec`,`Exec`],[`execshell`,`ExecShell`],[`execshellwait`,`ExecShellWait`],[`execwait`,`ExecWait`],[`expandenvstrings`,`ExpandEnvStrings`],[`file`,`File`],[`filebufsize`,`FileBufSize`],[`fileclose`,`FileClose`],[`fileerrortext`,`FileErrorText`],[`fileopen`,`FileOpen`],[`fileread`,`FileRead`],[`filereadbyte`,`FileReadByte`],[`filereadutf16le`,`FileReadUTF16LE`],[`filereadword`,`FileReadWord`],[`fileseek`,`FileSeek`],[`filewrite`,`FileWrite`],[`filewritebyte`,`FileWriteByte`],[`filewriteutf16le`,`FileWriteUTF16LE`],[`filewriteword`,`FileWriteWord`],[`findclose`,`FindClose`],[`findfirst`,`FindFirst`],[`findnext`,`FindNext`],[`findwindow`,`FindWindow`],[`flushini`,`FlushINI`],[`function`,`Function`],[`functionend`,`FunctionEnd`],[`getcurinsttype`,`GetCurInstType`],[`getcurrentaddress`,`GetCurrentAddress`],[`getdlgitem`,`GetDlgItem`],[`getdllversion`,`GetDLLVersion`],[`getdllversionlocal`,`GetDLLVersionLocal`],[`geterrorlevel`,`GetErrorLevel`],[`getfiletime`,`GetFileTime`],[`getfiletimelocal`,`GetFileTimeLocal`],[`getfullpathname`,`GetFullPathName`],[`getfunctionaddress`,`GetFunctionAddress`],[`getinstdirerror`,`GetInstDirError`],[`getknownfolderpath`,`GetKnownFolderPath`],[`getlabeladdress`,`GetLabelAddress`],[`getregview`,`GetRegView`],[`getshellvarcontext`,`GetShellVarContext`],[`gettempfilename`,`GetTempFileName`],[`getwinver`,`GetWinVer`],[`goto`,`Goto`],[`hidewindow`,`HideWindow`],[`icon`,`Icon`],[`ifabort`,`IfAbort`],[`ifaltregview`,`IfAltRegView`],[`iferrors`,`IfErrors`],[`iffileexists`,`IfFileExists`],[`ifrebootflag`,`IfRebootFlag`],[`ifrtllanguage`,`IfRtlLanguage`],[`ifshellvarcontextall`,`IfShellVarContextAll`],[`ifsilent`,`IfSilent`],[`initpluginsdir`,`InitPluginsDir`],[`installbuttontext`,`InstallButtonText`],[`installcolors`,`InstallColors`],[`installdir`,`InstallDir`],[`installdirregkey`,`InstallDirRegKey`],[`instprogressflags`,`InstProgressFlags`],[`insttype`,`InstType`],[`insttypegettext`,`InstTypeGetText`],[`insttypesettext`,`InstTypeSetText`],[`int64cmp`,`Int64Cmp`],[`int64cmpu`,`Int64CmpU`],[`int64fmt`,`Int64Fmt`],[`intcmp`,`IntCmp`],[`intcmpu`,`IntCmpU`],[`intfmt`,`IntFmt`],[`intop`,`IntOp`],[`intptrcmp`,`IntPtrCmp`],[`intptrcmpu`,`IntPtrCmpU`],[`intptrop`,`IntPtrOp`],[`iswindow`,`IsWindow`],[`langstring`,`LangString`],[`langstringup`,`LangStringUP`],[`licensebkcolor`,`LicenseBkColor`],[`licensedata`,`LicenseData`],[`licenseforceselection`,`LicenseForceSelection`],[`licenselangstring`,`LicenseLangString`],[`licensetext`,`LicenseText`],[`loadandsetimage`,`LoadAndSetImage`],[`loadlanguagefile`,`LoadLanguageFile`],[`lockwindow`,`LockWindow`],[`logset`,`LogSet`],[`logtext`,`LogText`],[`manifestappendcustomstring`,`ManifestAppendCustomString`],[`manifestdisablewindowfiltering`,`ManifestDisableWindowFiltering`],[`manifestdpiaware`,`ManifestDPIAware`],[`manifestdpiawareness`,`ManifestDPIAwareness`],[`manifestgdiscaling`,`ManifestGdiScaling`],[`manifestlongpathaware`,`ManifestLongPathAware`],[`manifestmaxversiontested`,`ManifestMaxVersionTested`],[`manifestsupportedos`,`ManifestSupportedOS`],[`messagebox`,`MessageBox`],[`miscbuttontext`,`MiscButtonText`],[`name`,`Name`],[`nop`,`Nop`],[`outfile`,`OutFile`],[`page`,`Page`],[`pagecallbacks`,`PageCallbacks`],[`pageex`,`PageEx`],[`pageexend`,`PageExEnd`],[`peaddresource`,`PEAddResource`],[`pedllcharacteristics`,`PEDllCharacteristics`],[`peremoveresource`,`PERemoveResource`],[`pesubsysver`,`PESubsysVer`],[`pop`,`Pop`],[`push`,`Push`],[`quit`,`Quit`],[`readenvstr`,`ReadEnvStr`],[`readinistr`,`ReadINIStr`],[`readmemory`,`ReadMemory`],[`readregdword`,`ReadRegDWORD`],[`readregstr`,`ReadRegStr`],[`reboot`,`Reboot`],[`regdll`,`RegDLL`],[`rename`,`Rename`],[`requestexecutionlevel`,`RequestExecutionLevel`],[`reservefile`,`ReserveFile`],[`return`,`Return`],[`rmdir`,`RMDir`],[`searchpath`,`SearchPath`],[`section`,`Section`],[`sectionend`,`SectionEnd`],[`sectiongetflags`,`SectionGetFlags`],[`sectiongetinsttypes`,`SectionGetInstTypes`],[`sectiongetsize`,`SectionGetSize`],[`sectiongettext`,`SectionGetText`],[`sectiongroup`,`SectionGroup`],[`sectiongroupend`,`SectionGroupEnd`],[`sectionin`,`SectionIn`],[`sectioninsttype`,`SectionInstType`],[`sectionsetflags`,`SectionSetFlags`],[`sectionsetinsttypes`,`SectionSetInstTypes`],[`sectionsetsize`,`SectionSetSize`],[`sectionsettext`,`SectionSetText`],[`sendmessage`,`SendMessage`],[`setautoclose`,`SetAutoClose`],[`setbrandingimage`,`SetBrandingImage`],[`setcompress`,`SetCompress`],[`setcompressionlevel`,`SetCompressionLevel`],[`setcompressor`,`SetCompressor`],[`setcompressordictsize`,`SetCompressorDictSize`],[`setctlcolors`,`SetCtlColors`],[`setcurinsttype`,`SetCurInstType`],[`setdatablockoptimize`,`SetDatablockOptimize`],[`setdatesave`,`SetDateSave`],[`setdetailsprint`,`SetDetailsPrint`],[`setdetailsview`,`SetDetailsView`],[`seterrorlevel`,`SetErrorLevel`],[`seterrors`,`SetErrors`],[`setfileattributes`,`SetFileAttributes`],[`setfont`,`SetFont`],[`setoutpath`,`SetOutPath`],[`setoverwrite`,`SetOverwrite`],[`setpluginunload`,`SetPluginUnload`],[`setrebootflag`,`SetRebootFlag`],[`setregview`,`SetRegView`],[`setshellvarcontext`,`SetShellVarContext`],[`setsilent`,`SetSilent`],[`showinstdetails`,`ShowInstDetails`],[`showuninstdetails`,`ShowUninstDetails`],[`showwindow`,`ShowWindow`],[`silentinstall`,`SilentInstall`],[`silentuninstall`,`SilentUnInstall`],[`sleep`,`Sleep`],[`spacetexts`,`SpaceTexts`],[`strcmp`,`StrCmp`],[`strcmps`,`StrCmpS`],[`strcpy`,`StrCpy`],[`strlen`,`StrLen`],[`subcaption`,`SubCaption`],[`subsection`,`SubSection`],[`subsectionend`,`SubSectionEnd`],[`target`,`Target`],[`unicode`,`Unicode`],[`uninstallbuttontext`,`UninstallButtonText`],[`uninstallcaption`,`UninstallCaption`],[`uninstallexename`,`UninstallExeName`],[`uninstallicon`,`UninstallIcon`],[`uninstallsubcaption`,`UninstallSubCaption`],[`uninstalltext`,`UninstallText`],[`uninstpage`,`UninstPage`],[`unregdll`,`UnRegDLL`],[`unsafestrcpy`,`UnsafeStrCpy`],[`var`,`Var`],[`viaddversionkey`,`VIAddVersionKey`],[`vifileversion`,`VIFileVersion`],[`viproductversion`,`VIProductVersion`],[`windowicon`,`WindowIcon`],[`writeinistr`,`WriteINIStr`],[`writeregbin`,`WriteRegBin`],[`writeregdword`,`WriteRegDWORD`],[`writeregexpandstr`,`WriteRegExpandStr`],[`writeregmultistr`,`WriteRegMultiStr`],[`writeregnone`,`WriteRegNone`],[`writeregstr`,`WriteRegStr`],[`writeuninstaller`,`WriteUninstaller`],[`xpstyle`,`XPStyle`]]),c=new Map([[`/silent`,`/SILENT`],[`/filesonly`,`/FILESONLY`],[`/rebootok`,`/REBOOTOK`],[`/short`,`/SHORT`],[`/sd`,`/SD`],[`/branding`,`/BRANDING`],[`/final`,`/FINAL`],[`/solid`,`/SOLID`],[`/global`,`/GLOBAL`],[`/bom`,`/BOM`],[`/italic`,`/ITALIC`],[`/underline`,`/UNDERLINE`],[`/strike`,`/STRIKE`],[`/enablecancel`,`/ENABLECANCEL`],[`/overwrite`,`/OVERWRITE`],[`/replace`,`/REPLACE`],[`/noerrors`,`/NOERRORS`],[`/regedit5`,`/REGEDIT5`],[`/exeresource`,`/EXERESOURCE`],[`/stringid`,`/STRINGID`],[`/resizetofit`,`/RESIZETOFIT`],[`/resizetofitwidth`,`/RESIZETOFITWIDTH`],[`/resizetofitheight`,`/RESIZETOFITHEIGHT`],[`/trimleft`,`/TRIMLEFT`],[`/trimright`,`/TRIMRIGHT`],[`/trimcenter`,`/TRIMCENTER`],[`/windows`,`/windows`],[`/nonfatal`,`/NONFATAL`],[`/nocustom`,`/NOCUSTOM`],[`/uninstnocustom`,`/UNINSTNOCUSTOM`],[`/componentsonlyoncustom`,`/COMPONENTSONLYONCUSTOM`],[`/uninstcomponentsonlyoncustom`,`/UNINSTCOMPONENTSONLYONCUSTOM`],[`/fileexists`,`/FILEEXISTS`],[`/rawnl`,`/RAWNL`],[`/productversion`,`/ProductVersion`],[`/noworkingdir`,`/NoWorkingDir`],[`/r`,`/r`],[`/a`,`/a`],[`/e`,`/e`],[`/o`,`/o`],[`/x`,`/x`],[`/ifempty`,`/ifempty`],[`/ifnosubkeys`,`/ifnosubkeys`],[`/ifnovalues`,`/ifnovalues`],[`/nounload`,`/nounload`],[`/plugin`,`/plugin`],[`/ifndef`,`/ifndef`],[`/redef`,`/redef`],[`/date`,`/date`],[`/utcdate`,`/utcdate`],[`/file`,`/file`],[`/intfmt`,`/intfmt`],[`/math`,`/math`],[`/ignorecase`,`/ignorecase`],[`/packed`,`/packed`],[`/target`,`/target`]]),l=new Map([[`/lang=`,`/LANG=`],[`/timeout=`,`/TIMEOUT=`],[`/charset=`,`/CHARSET=`],[`/imgid=`,`/IMGID=`],[`/customstring=`,`/CUSTOMSTRING=`],[`/uninstcustomstring=`,`/UNINSTCUSTOMSTRING=`],[`/oname=`,`/oname=`]]),u=new Map;function d(e,t){for(let n of e){let e=n.toLowerCase(),r=u.get(e);r||(r=new Map,u.set(e,r));for(let[e,n]of t)r.set(e,n)}}d([`AllowRootDirInstall`,`AllowSkipFiles`,`AutoCloseWindow`,`CRCCheck`,`ManifestDPIAware`,`ManifestDisableWindowFiltering`,`ManifestGdiScaling`,`ManifestLongPathAware`,`SetAutoClose`,`SetDatablockOptimize`,`SetDateSave`,`SetPluginUnload`,`Unicode`,`WindowIcon`],[[`true`,`true`],[`false`,`false`]]),d([`CRCCheck`,`LogSet`,`LockWindow`,`SetCompress`,`SetDateSave`,`SetDatablockOptimize`,`SetOverwrite`,`WindowIcon`,`XPStyle`,`LicenseForceSelection`],[[`on`,`on`],[`off`,`off`]]),d([`FileOpen`],[[`r`,`r`],[`w`,`w`],[`a`,`a`]]),d([`SetCompressor`],[[`zlib`,`zlib`],[`bzip2`,`bzip2`],[`lzma`,`lzma`]]),d([`Target`],[[`x86`,`x86`],[`amd64`,`amd64`]]),d([`SetOverwrite`],[[`try`,`try`],[`ifnewer`,`ifnewer`],[`ifdiff`,`ifdiff`],[`lastused`,`lastused`]]),d([`SetCompress`],[[`auto`,`auto`],[`force`,`force`]]),d([`SilentInstall`],[[`normal`,`normal`],[`silent`,`silent`],[`silentlog`,`silentlog`]]),d([`SilentUnInstall`,`SetSilent`],[[`normal`,`normal`],[`silent`,`silent`]]),d([`ShowInstDetails`,`ShowUninstDetails`],[[`hide`,`hide`],[`show`,`show`],[`nevershow`,`nevershow`]]),d([`SetDetailsView`,`DirShow`],[[`show`,`show`],[`hide`,`hide`]]),d([`SetDetailsPrint`],[[`listonly`,`listonly`],[`textonly`,`textonly`],[`both`,`both`],[`none`,`none`],[`lastused`,`lastused`]]),d([`RequestExecutionLevel`],[[`none`,`none`],[`user`,`user`],[`highest`,`highest`],[`admin`,`admin`]]),d([`AddBrandingImage`],[[`top`,`top`],[`left`,`left`],[`bottom`,`bottom`],[`right`,`right`]]),d([`InstProgressFlags`],[[`smooth`,`smooth`],[`colored`,`colored`]]),d([`LicenseForceSelection`],[[`checkbox`,`checkbox`],[`radiobuttons`,`radiobuttons`]]),d([`SetShellVarContext`],[[`all`,`all`],[`current`,`current`]]),d([`DirVerify`],[[`auto`,`auto`],[`leave`,`leave`]]),d([`ExecShell`,`ExecShellWait`],[[`open`,`open`],[`print`,`print`]]),d([`Page`,`UninstPage`],[[`custom`,`custom`],[`license`,`license`],[`components`,`components`],[`directory`,`directory`],[`instfiles`,`instfiles`],[`uninstconfirm`,`uninstConfirm`]]),d([`SetCtlColors`],[[`transparent`,`transparent`]]),d([`LockWindow`],[[`on`,`on`],[`off`,`off`]]),d([`SetRegView`],[[`default`,`default`]]),d([`DeleteRegKey`,`DeleteRegValue`,`EnumRegKey`,`EnumRegValue`,`InstallDirRegKey`,`ReadRegDWORD`,`ReadRegStr`,`WriteRegBin`,`WriteRegDWORD`,`WriteRegExpandStr`,`WriteRegMultiStr`,`WriteRegNone`,`WriteRegStr`],[[`hkcr`,`HKCR`],[`hkcr32`,`HKCR32`],[`hkcr64`,`HKCR64`],[`hklm`,`HKLM`],[`hklm32`,`HKLM32`],[`hklm64`,`HKLM64`],[`hkcu`,`HKCU`],[`hkcu32`,`HKCU32`],[`hkcu64`,`HKCU64`],[`hku`,`HKU`],[`hkcc`,`HKCC`],[`hkdd`,`HKDD`],[`hkpd`,`HKPD`],[`shctx`,`SHCTX`]]),d([`MessageBox`],[[`mb_ok`,`MB_OK`],[`mb_okcancel`,`MB_OKCANCEL`],[`mb_abortretryignore`,`MB_ABORTRETRYIGNORE`],[`mb_retrycancel`,`MB_RETRYCANCEL`],[`mb_yesno`,`MB_YESNO`],[`mb_yesnocancel`,`MB_YESNOCANCEL`],[`mb_iconexclamation`,`MB_ICONEXCLAMATION`],[`mb_iconinformation`,`MB_ICONINFORMATION`],[`mb_iconquestion`,`MB_ICONQUESTION`],[`mb_iconstop`,`MB_ICONSTOP`],[`mb_usericon`,`MB_USERICON`],[`mb_topmost`,`MB_TOPMOST`],[`mb_setforeground`,`MB_SETFOREGROUND`],[`mb_right`,`MB_RIGHT`],[`mb_defbutton1`,`MB_DEFBUTTON1`],[`mb_defbutton2`,`MB_DEFBUTTON2`],[`mb_defbutton3`,`MB_DEFBUTTON3`],[`mb_defbutton4`,`MB_DEFBUTTON4`],[`idok`,`IDOK`],[`idcancel`,`IDCANCEL`],[`idyes`,`IDYES`],[`idno`,`IDNO`],[`idabort`,`IDABORT`],[`idretry`,`IDRETRY`],[`idignore`,`IDIGNORE`]]),d([`CreateShortcut`,`ShowWindow`],[[`sw_shownormal`,`SW_SHOWNORMAL`],[`sw_showmaximized`,`SW_SHOWMAXIMIZED`],[`sw_showminimized`,`SW_SHOWMINIMIZED`],[`sw_hide`,`SW_HIDE`],[`sw_show`,`SW_SHOW`]]),d([`CreateShortcut`],[[`alt`,`ALT`],[`control`,`CONTROL`],[`ext`,`EXT`],[`shift`,`SHIFT`]]),d([`SetFileAttributes`],[[`archive`,`ARCHIVE`],[`hidden`,`HIDDEN`],[`offline`,`OFFLINE`],[`readonly`,`READONLY`],[`system`,`SYSTEM`],[`temporary`,`TEMPORARY`]]),d([`FileSeek`],[[`set`,`SET`],[`cur`,`CUR`],[`end`,`END`]]),d([`GetWinVer`],[[`major`,`MAJOR`],[`minor`,`MINOR`],[`build`,`BUILD`],[`servicepack`,`SERVICEPACK`]]),d([`ManifestSupportedOS`],[[`winvista`,`WinVista`],[`win7`,`Win7`],[`win8`,`Win8`],[`win8.1`,`Win8.1`],[`win10`,`Win10`]]),d([`ChangeUI`],[[`dlg_id`,`dlg_id`]]);const f=u;function p(e){return new Set(e.map(e=>e.toLowerCase()))}const m={open:p([`!if`,`!ifdef`,`!ifmacrodef`,`!ifmacrondef`,`!ifndef`,`!macro`,"${Do}","${DoUntil}","${DoWhile}","${For}","${ForEach}","${If}","${IfNot}","${MementoSection}","${MementoUnselectedSection}","${Select}","${Switch}","${Unless}",`Function`,`PageEx`,`Section`,`SectionGroup`]),case:p(["${Case}","${Case2}","${Case3}","${Case4}","${Case5}","${CaseElse}","${Default}"]),close:p([`!endif`,`!macroend`,"${EndIf}","${EndSelect}","${EndSwitch}","${EndWhile}","${Loop}","${LoopUntil}","${LoopWhile}","${MementoSectionEnd}","${Next}","${While}",`FunctionEnd`,`PageExEnd`,`SectionEnd`,`SectionGroupEnd`]),mid:p([`!else`,`!elseif`,"${Else}","${ElseIf}","${ElseIfNot}","${ElseUnless}","${AndIf}","${AndIfNot}","${AndUnless}","${OrIf}","${OrIfNot}","${OrUnless}"]),closeAfter:p(["${Break}"])};function h(e,t){let n=0,r=[],i=[],a=M(e);t.trimEmptyLines&&(a=N(a));for(let e of a)switch(e.type){case`blank`:i.push(``);break;case`comment`:i.push(_(e,n,t));break;case`label`:i.push(v(e,n,t));break;case`instruction`:{let a=e.keyword.toLowerCase();if(m.open.has(a))i.push(O(e,n,t)),r.push(n),n++;else if(m.case.has(a)){let a=(r.length>0?r[r.length-1]:0)+1;i.push(O(e,a,t)),n=a+1}else if(m.close.has(a))n=r.length>0?r.pop():0,i.push(O(e,n,t));else if(m.mid.has(a)){let n=r.length>0?r[r.length-1]:0;i.push(O(e,n,t))}else m.closeAfter.has(a)?(i.push(O(e,n,t)),n=(r.length>0?r[r.length-1]:0)+1):i.push(O(e,n,t));break}}return i.join(t.eol)+t.eol}function g(e,t){return(t.useTabs?` `:` `.repeat(t.indentSize)).repeat(e)}function _(e,t,n){let r=g(t,n);if(e.style===`block`){let t=e.value.split(/\r?\n/);return t.length===1?`${r}/*${e.value}*/`:t.map((e,n)=>{if(n===0)return`${r}/*${e}`;let i=e.trimStart();return n===t.length-1?`${r} ${i}*/`:`${r} ${i}`}).join(n.eol)}return`${r}${e.style===`hash`?`#`:`;`} ${e.value}`}function v(e,t,n){let r=`${g(t,n)}${e.name}:`;return e.comment&&(r+=` ${k(e.comment)}`),r}function y(e,t){if(e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||e.startsWith(`$`))return e;let n=e.toLowerCase(),r=t?.get(n)??c.get(n);if(r!==void 0)return r;let i=e.indexOf(`=`);if(i>0){let t=`${n.slice(0,i+1)}`,r=l.get(t);if(r!==void 0)return`${r}${e.slice(i+1)}`}return e}function b(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||!e.includes(`|`)||e===`|`?[e]:x(e,`|`))}function x(e,t){let n=[],r=``,i=0;for(;i<e.length;){if(e[i]===`$`&&e[i+1]===`{`){let t=e.indexOf(`}`,i+2);if(t!==-1){r+=e.slice(i,t+1),i=t+1;continue}}if(e[i]===t){r&&n.push(r),r=``,n.push(t),i++;continue}r+=e[i],i++}return r&&n.push(r),n}const S=new Set([`intop`,`intptrop`]);function C(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||w.has(e)?[e]:E(e))}const w=new Set([`||`,`&&`,`<<`,`>>`,`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]),T=new Set([`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]);function E(e){let t=[],n=``,r=!0,i=0;for(;i<e.length;){if(e[i]===`$`&&e[i+1]===`{`){let t=e.indexOf(`}`,i+2);if(t!==-1){n+=e.slice(i,t+1),i=t+1,r=!1;continue}}if(i+1<e.length){let a=e.slice(i,i+2);if(w.has(a)){n&&=(t.push(n),``),t.push(a),r=!0,i+=2;continue}}let a=e[i];if(T.has(a)){if(a===`-`&&r){n+=a,i++;continue}n&&=(t.push(n),``),t.push(a),r=!0,i++;continue}n+=a,r=!1,i++}return n&&t.push(n),t.length>0?t:[e]}function D(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];r===`|`?t+=`|`:(n>0&&e[n-1]===`|`||t&&(t+=` `),t+=r)}return t}function O(e,t,n){let r=e.keyword.toLowerCase(),i=s.get(r)??e.keyword,a=f.get(r),o=(S.has(r)?C(e.args):b(e.args)).map(e=>y(e,a)),c=S.has(r)?o.join(` `):D(o),l=o.length>0?`${i} ${c}`:i,u=`${g(t,n)}${l}`;return e.comment&&(u+=` ${k(e.comment)}`),u}function k(e){return`${e.style===`hash`?`#`:`;`} ${e.value}`}function A(e){if(e.type!==`instruction`)return!1;let t=e.keyword.toLowerCase();return m.open.has(t)||m.case.has(t)}function j(e){return e.type===`instruction`&&m.close.has(e.keyword.toLowerCase())}function M(e){let t=[],n;for(let r=0;r<e.length;r++){let i=e[r],a=t.length>0&&t[t.length-1].type===`blank`;if(n&&!a&&i.type!==`blank`)if(A(i)&&!A(n)&&n.type!==`comment`)t.push({type:`blank`});else if(i.type===`comment`&&!A(n)&&n.type!==`comment`){let n=r+1;for(;n<e.length&&(e[n].type===`blank`||e[n].type===`comment`);)n++;n<e.length&&A(e[n])&&t.push({type:`blank`})}else j(n)&&!j(i)&&!A(i)&&t.push({type:`blank`});t.push(i),i.type!==`blank`&&(n=i)}return t}function N(e){let t=0;for(;t<e.length&&e[t].type===`blank`;)t++;let n=e.length-1;for(;n>=t&&e[n].type===`blank`;)n--;let r=[],i=!1;for(let a=t;a<=n;a++){let t=e[a];t.type===`blank`?i||=(r.push(t),!0):(r.push(t),i=!1)}return r}function P(n={}){let r={indentSize:2,trimEmptyLines:!0,useTabs:!0,...n};if(r.useTabs===!1&&(!r.indentSize||Number.isNaN(r.indentSize)||r.indentSize<=0))throw Error(`The indentSize option expects a positive integer`);function i(e){let t=o(e),n=s(e);return h(t,{useTabs:r.useTabs??!0,indentSize:r.indentSize??2,trimEmptyLines:r.trimEmptyLines??!0,eol:n})}function a(e){let t=i(e);return t===e?null:t}function s(n){return r.endOfLines?r.endOfLines===`crlf`?`\r
17
17
  `:`
18
18
  `:t(n)??(e()===`win32`?`\r
19
19
  `:`
package/package.json CHANGED
@@ -1,58 +1,60 @@
1
1
  {
2
- "name": "@nsis/dent",
3
- "version": "0.7.1",
4
- "description": "An opinionated code formatter for NSIS scripts",
5
- "license": "MIT",
6
- "files": [
7
- "dist/",
8
- "types/",
9
- "LICENSE",
10
- "package.json",
11
- "README.md"
12
- ],
13
- "type": "module",
14
- "typings": "dist/dent.d.mts",
15
- "exports": "./dist/dent.mjs",
16
- "engines": {
17
- "node": ">=20.0.0"
18
- },
19
- "repository": {
20
- "type": "git",
21
- "url": "git+https://github.com/idleberg/node-dent.git"
22
- },
23
- "keywords": [
24
- "nsis",
25
- "formatter"
26
- ],
27
- "dependencies": {
28
- "detect-newline": "^4.0.1"
29
- },
30
- "devDependencies": {
31
- "@commitlint/cli": "^21.0.1",
32
- "@commitlint/config-conventional": "^21.0.1",
33
- "@idleberg/configs": "^0.4.2",
34
- "@types/node": "^24.12.4",
35
- "concurrently": "^9.2.1",
36
- "np": "^11.2.1",
37
- "peggy": "^5.1.0",
38
- "tsdown": "^0.22.0",
39
- "tsm": "^2.3.0",
40
- "typescript": "^6.0.3",
41
- "uvu": "^0.5.6"
42
- },
43
- "scripts": {
44
- "build": "npm run build:peggy && npm run build:lib",
45
- "build:lib": "tsdown",
46
- "build:peggy": "peggy --format es --dts --output src/grammar.js src/grammar.pegjs",
47
- "dev": "concurrently --prefix-colors blue,green,magenta npm:dev:*",
48
- "dev:lib": "npm run build:lib -- --watch",
49
- "dev:peggy": "npm run build:peggy -- --watch",
50
- "lint": "concurrently --prefix-colors blue,green,magenta npm:lint:*",
51
- "lint:biome": "biome check",
52
- "lint:e18e": "e18e-cli analyze",
53
- "pretest": "npm run build:peggy",
54
- "publish:jsr": "deno publish",
55
- "publish:npm": "np",
56
- "test": "uvu -r tsm tests"
57
- }
58
- }
2
+ "name": "@nsis/dent",
3
+ "version": "0.7.2",
4
+ "description": "An opinionated code formatter for NSIS scripts",
5
+ "license": "MIT",
6
+ "scripts": {
7
+ "build": "npm run build:peggy && npm run build:lib",
8
+ "build:lib": "tsdown",
9
+ "build:peggy": "peggy --format es --dts --output src/grammar.js src/grammar.pegjs",
10
+ "dev": "concurrently --prefix-colors blue,green,magenta npm:dev:*",
11
+ "dev:lib": "npm run build:lib -- --watch",
12
+ "dev:peggy": "npm run build:peggy -- --watch",
13
+ "lint": "concurrently --prefix-colors blue,green,magenta npm:lint:*",
14
+ "lint:biome": "biome check",
15
+ "lint:e18e": "e18e-cli analyze",
16
+ "prepack": "npm run build",
17
+ "pretest": "npm run build:peggy",
18
+ "publish:jsr": "deno publish",
19
+ "publish:npm": "np",
20
+ "test": "uvu -r tsm tests"
21
+ },
22
+ "files": [
23
+ "dist/",
24
+ "types/",
25
+ "LICENSE",
26
+ "package.json",
27
+ "README.md"
28
+ ],
29
+ "type": "module",
30
+ "typings": "dist/dent.d.mts",
31
+ "exports": "./dist/dent.mjs",
32
+ "engines": {
33
+ "node": ">=20.0.0"
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/idleberg/node-dent.git"
38
+ },
39
+ "keywords": [
40
+ "nsis",
41
+ "formatter"
42
+ ],
43
+ "dependencies": {
44
+ "detect-newline": "^4.0.1"
45
+ },
46
+ "devDependencies": {
47
+ "@commitlint/cli": "^21.0.1",
48
+ "@commitlint/config-conventional": "^21.0.1",
49
+ "@idleberg/configs": "^0.4.2",
50
+ "@types/node": "^24.12.4",
51
+ "concurrently": "^9.2.1",
52
+ "np": "^11.2.1",
53
+ "peggy": "^5.1.0",
54
+ "tsdown": "^0.22.0",
55
+ "tsm": "^2.3.0",
56
+ "typescript": "^6.0.3",
57
+ "uvu": "^0.5.6"
58
+ },
59
+ "packageManager": "pnpm@11.1.2+sha512.415a1cc25974731e75455c1468371be74c5aa5fb7621b50d4056d222451609f11412f23fd602e6169f1e060466641f798597e1be961a10688836a67b16569499"
60
+ }