@nsis/dent 0.11.0 → 0.11.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 +4 -4
  2. package/dist/dent.mjs +12 -12
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  > An opinionated code formatter for NSIS scripts
4
4
 
5
- [![License](https://img.shields.io/github/license/idleberg/node-dent?color=blue&style=for-the-badge)](https://github.com/idleberg/node-dent/blob/main/LICENSE)
5
+ ![License](https://img.shields.io/npm/l/%40nsis%2Fdent?style=for-the-badge)
6
6
  [![Version](https://img.shields.io/npm/v/@nsis/dent?style=for-the-badge)](https://www.npmjs.org/package/@nsis/dent)
7
- [![Build](https://img.shields.io/github/actions/workflow/status/idleberg/node-dent/default.yml?style=for-the-badge)](https://github.com/idleberg/node-dent/actions)
7
+ [![Build](https://img.shields.io/github/actions/workflow/status/idleberg/dent/default.yml?style=for-the-badge)](https://github.com/idleberg/dent/actions)
8
8
 
9
9
  > [!NOTE]
10
- > This is the repository for the formatting library. Chances are you are looking for the [CLI tool](https://www.npmjs.com/package/@nsis/dent-cli) instead.
10
+ > This is the repository for the formatting library. Chances are you are looking for the [CLI tool](https://github.com/idleberg/dent/tree/main/packages/dent-cli) instead.
11
11
 
12
12
  ## Installation
13
13
 
@@ -85,4 +85,4 @@ Default: `true`
85
85
 
86
86
  ## License
87
87
 
88
- This work is licensed under [The MIT License](LICENSE)
88
+ This work is licensed under [The MIT License](LICENSE).
package/dist/dent.mjs CHANGED
@@ -1,20 +1,20 @@
1
- import{platform as e}from"node:os";import{detectNewline as t}from"detect-newline";const n=new Set(`!addincludedir.!addplugindir.!appendfile.!appendmemfile.!assert.!cd.!define.!delfile.!echo.!else.!endif.!error.!execute.!finalize.!getdllversion.!gettlbversion.!if.!ifdef.!ifmacrodef.!ifmacrondef.!ifndef.!include.!insertmacro.!macro.!macroend.!macroundef.!makensis.!packhdr.!pragma.!searchparse.!searchreplace.!system.!tempfile.!undef.!uninstfinalize.!verbose.!warning`.split(`.`)),r=new Set(`Abort.AddBrandingImage.AddSize.AllowRootDirInstall.AllowSkipFiles.AutoCloseWindow.BGFont.BGGradient.BrandingText.BringToFront.Call.CallInstDLL.Caption.ChangeUI.CheckBitmap.ClearErrors.CompletedText.ComponentText.CopyFiles.CPU.CRCCheck.CreateDirectory.CreateFont.CreateShortcut.Delete.DeleteINISec.DeleteINIStr.DeleteRegKey.DeleteRegValue.DetailPrint.DetailsButtonText.DirShow.DirText.DirVar.DirVerify.EnableWindow.EnumRegKey.EnumRegValue.Exch.Exec.ExecShell.ExecShellWait.ExecWait.ExpandEnvStrings.File.FileBufSize.FileClose.FileErrorText.FileOpen.FileRead.FileReadByte.FileReadUTF16LE.FileReadWord.FileSeek.FileWrite.FileWriteByte.FileWriteUTF16LE.FileWriteWord.FindClose.FindFirst.FindNext.FindWindow.FlushINI.Function.FunctionEnd.GetCurInstType.GetCurrentAddress.GetDlgItem.GetDLLVersion.GetDLLVersionLocal.GetErrorLevel.GetFileTime.GetFileTimeLocal.GetFullPathName.GetFunctionAddress.GetInstDirError.GetKnownFolderPath.GetLabelAddress.GetRegView.GetShellVarContext.GetTempFileName.GetWinVer.Goto.HideWindow.Icon.IfAbort.IfAltRegView.IfErrors.IfFileExists.IfRebootFlag.IfRtlLanguage.IfShellVarContextAll.IfSilent.InitPluginsDir.InstallButtonText.InstallColors.InstallDir.InstallDirRegKey.InstProgressFlags.InstType.InstTypeGetText.InstTypeSetText.Int64Cmp.Int64CmpU.Int64Fmt.IntCmp.IntCmpU.IntFmt.IntOp.IntPtrCmp.IntPtrCmpU.IntPtrOp.IsWindow.LangString.LangStringUP.LicenseBkColor.LicenseData.LicenseForceSelection.LicenseLangString.LicenseText.LoadAndSetImage.LoadLanguageFile.LockWindow.LogSet.LogText.ManifestAppendCustomString.ManifestDisableWindowFiltering.ManifestDPIAware.ManifestDPIAwareness.ManifestGdiScaling.ManifestLongPathAware.ManifestMaxVersionTested.ManifestSupportedOS.MessageBox.MiscButtonText.Name.Nop.OutFile.Page.PageCallbacks.PageEx.PageExEnd.PEAddResource.PEDllCharacteristics.PERemoveResource.PESubsysVer.Pop.Push.Quit.ReadEnvStr.ReadINIStr.ReadMemory.ReadRegDWORD.ReadRegStr.Reboot.RegDLL.Rename.RequestExecutionLevel.ReserveFile.Return.RMDir.SearchPath.Section.SectionEnd.SectionGetFlags.SectionGetInstTypes.SectionGetSize.SectionGetText.SectionGroup.SectionGroupEnd.SectionIn.SectionInstType.SectionSetFlags.SectionSetInstTypes.SectionSetSize.SectionSetText.SendMessage.SetAutoClose.SetBrandingImage.SetCompress.SetCompressionLevel.SetCompressor.SetCompressorDictSize.SetCtlColors.SetCurInstType.SetDatablockOptimize.SetDateSave.SetDetailsPrint.SetDetailsView.SetErrorLevel.SetErrors.SetFileAttributes.SetFont.SetOutPath.SetOverwrite.SetPluginUnload.SetRebootFlag.SetRegView.SetShellVarContext.SetSilent.ShowInstDetails.ShowUninstDetails.ShowWindow.SilentInstall.SilentUnInstall.Sleep.SpaceTexts.StrCmp.StrCmpS.StrCpy.StrLen.SubCaption.SubSection.SubSectionEnd.Target.Unicode.UninstallButtonText.UninstallCaption.UninstallExeName.UninstallIcon.UninstallSubCaption.UninstallText.UninstPage.UnRegDLL.UnsafeStrCpy.Var.VIAddVersionKey.VIFileVersion.VIProductVersion.WindowIcon.WriteINIStr.WriteRegBin.WriteRegDWORD.WriteRegExpandStr.WriteRegMultiStr.WriteRegNone.WriteRegStr.WriteUninstaller.XPStyle`.split(`.`).map(e=>e.toLowerCase()));var i=class extends SyntaxError{constructor(e,t,n,r){super(e),this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`}format(e){let t=`Error: `+this.message;if(this.location){let n=null,r=e.find(e=>e.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));let i=this.location.start,a=this.location.source&&typeof this.location.source.offset==`function`?this.location.source.offset(i):i,o=this.location.source+`:`+a.line+`:`+a.column;if(n){let e=this.location.end,r=``.padEnd(a.line.toString().length,` `),s=n[i.line-1],c=(i.line===e.line?e.column:s.length+1)-i.column||1;t+=`
1
+ import{platform as e}from"node:os";import{detectNewline as t}from"detect-newline";const n=new Set(`!addincludedir.!addplugindir.!appendfile.!appendmemfile.!assert.!cd.!define.!delfile.!echo.!else.!elseif.!endif.!error.!execute.!finalize.!getdllversion.!gettlbversion.!if.!ifdef.!ifmacrodef.!ifmacrondef.!ifndef.!include.!insertmacro.!macro.!macroend.!macroundef.!makensis.!packhdr.!pragma.!searchparse.!searchreplace.!system.!tempfile.!undef.!uninstfinalize.!verbose.!warning`.split(`.`)),r=new Set(`Abort.AddBrandingImage.AddSize.AllowRootDirInstall.AllowSkipFiles.AutoCloseWindow.BGFont.BGGradient.BrandingText.BringToFront.Call.CallInstDLL.Caption.ChangeUI.CheckBitmap.ClearErrors.CompletedText.ComponentText.CopyFiles.CPU.CRCCheck.CreateDirectory.CreateFont.CreateShortcut.Delete.DeleteINISec.DeleteINIStr.DeleteRegKey.DeleteRegValue.DetailPrint.DetailsButtonText.DirShow.DirText.DirVar.DirVerify.EnableWindow.EnumRegKey.EnumRegValue.Exch.Exec.ExecShell.ExecShellWait.ExecWait.ExpandEnvStrings.File.FileBufSize.FileClose.FileErrorText.FileOpen.FileRead.FileReadByte.FileReadUTF16LE.FileReadWord.FileSeek.FileWrite.FileWriteByte.FileWriteUTF16LE.FileWriteWord.FindClose.FindFirst.FindNext.FindWindow.FlushINI.Function.FunctionEnd.GetCurInstType.GetCurrentAddress.GetDlgItem.GetDLLVersion.GetDLLVersionLocal.GetErrorLevel.GetFileTime.GetFileTimeLocal.GetFullPathName.GetFunctionAddress.GetInstDirError.GetKnownFolderPath.GetLabelAddress.GetRegView.GetShellVarContext.GetTempFileName.GetWinVer.Goto.HideWindow.Icon.IfAbort.IfAltRegView.IfErrors.IfFileExists.IfRebootFlag.IfRtlLanguage.IfShellVarContextAll.IfSilent.InitPluginsDir.InstallButtonText.InstallColors.InstallDir.InstallDirRegKey.InstProgressFlags.InstType.InstTypeGetText.InstTypeSetText.Int64Cmp.Int64CmpU.Int64Fmt.IntCmp.IntCmpU.IntFmt.IntOp.IntPtrCmp.IntPtrCmpU.IntPtrOp.IsWindow.LangString.LangStringUP.LicenseBkColor.LicenseData.LicenseForceSelection.LicenseLangString.LicenseText.LoadAndSetImage.LoadLanguageFile.LockWindow.LogSet.LogText.ManifestAppendCustomString.ManifestDisableWindowFiltering.ManifestDPIAware.ManifestDPIAwareness.ManifestGdiScaling.ManifestLongPathAware.ManifestMaxVersionTested.ManifestSupportedOS.MessageBox.MiscButtonText.Name.Nop.OutFile.Page.PageCallbacks.PageEx.PageExEnd.PEAddResource.PEDllCharacteristics.PERemoveResource.PESubsysVer.Pop.Push.Quit.ReadEnvStr.ReadINIStr.ReadMemory.ReadRegDWORD.ReadRegStr.Reboot.RegDLL.Rename.RequestExecutionLevel.ReserveFile.Return.RMDir.SearchPath.Section.SectionEnd.SectionGetFlags.SectionGetInstTypes.SectionGetSize.SectionGetText.SectionGroup.SectionGroupEnd.SectionIn.SectionInstType.SectionSetFlags.SectionSetInstTypes.SectionSetSize.SectionSetText.SendMessage.SetAutoClose.SetBrandingImage.SetCompress.SetCompressionLevel.SetCompressor.SetCompressorDictSize.SetCtlColors.SetCurInstType.SetDatablockOptimize.SetDateSave.SetDetailsPrint.SetDetailsView.SetErrorLevel.SetErrors.SetFileAttributes.SetFont.SetOutPath.SetOverwrite.SetPluginUnload.SetRebootFlag.SetRegView.SetShellVarContext.SetSilent.ShowInstDetails.ShowUninstDetails.ShowWindow.SilentInstall.SilentUnInstall.Sleep.SpaceTexts.StrCmp.StrCmpS.StrCpy.StrLen.SubCaption.SubSection.SubSectionEnd.Target.Unicode.UninstallButtonText.UninstallCaption.UninstallExeName.UninstallIcon.UninstallSubCaption.UninstallText.UninstPage.UnRegDLL.UnsafeStrCpy.Var.VIAddVersionKey.VIFileVersion.VIProductVersion.WindowIcon.WriteINIStr.WriteRegBin.WriteRegDWORD.WriteRegExpandStr.WriteRegMultiStr.WriteRegNone.WriteRegStr.WriteUninstaller.XPStyle`.split(`.`).map(e=>e.toLowerCase()));var i=class extends SyntaxError{constructor(e,t,n,r){super(e),this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`}format(e){let t=`Error: `+this.message;if(this.location){let n=null,r=e.find(e=>e.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));let i=this.location.start,a=this.location.source&&typeof this.location.source.offset==`function`?this.location.source.offset(i):i,o=this.location.source+`:`+a.line+`:`+a.column;if(n){let e=this.location.end,r=``.padEnd(a.line.toString().length,` `),s=n[i.line-1],c=(i.line===e.line?e.column:s.length+1)-i.column||1;t+=`
2
2
  --> `+o+`
3
3
  `+r+` |
4
4
  `+a.line+` | `+s+`
5
5
  `+r+` | `+``.padEnd(i.column-1,` `)+``.padEnd(c,`^`)}else t+=`
6
- at `+o}return t}static buildMessage(e,t){function n(e){return e.codePointAt(0).toString(16).toUpperCase()}let r=Object.prototype.hasOwnProperty.call(RegExp.prototype,`unicode`)?RegExp(`[\\p{C}\\p{Mn}\\p{Mc}]`,`gu`):null;function i(e){return r?e.replace(r,e=>`\\u{`+n(e)+`}`):e}function a(e){return i(e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,e=>`\\x0`+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>`\\x`+n(e)))}function o(e){return i(e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,e=>`\\x0`+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>`\\x`+n(e)))}let s={literal(e){return`"`+a(e.text)+`"`},class(e){let t=e.parts.map(e=>Array.isArray(e)?o(e[0])+`-`+o(e[1]):o(e));return`[`+(e.inverted?`^`:``)+t.join(``)+`]`+(e.unicode?`u`:``)},any(){return`any character`},end(){return`end of input`},other(e){return e.description}};function c(e){return s[e.type](e)}function l(e){let t=e.map(c);if(t.sort(),t.length>0){let e=1;for(let n=1;n<t.length;n++)t[n-1]!==t[n]&&(t[e]=t[n],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function u(e){return e?`"`+a(e)+`"`:`end of input`}return`Expected `+l(e)+` but `+u(t)+` found.`}};function a(e,t){t=t===void 0?{}:t;let a={},o=t.grammarSource,s={Script:Ie},c=Ie,l=/^[#;]/,u=/^[^\r\n]/,d=/^[\r\n]/,f=/^[a-zA-Z_.]/,p=/^[a-zA-Z0-9_.]/,m=/^[a-zA-Z]/,h=/^[a-zA-Z_]/,g=/^[a-zA-Z0-9_]/,_=/^[a-zA-Z0-9]/,v=/^[^"\r\n]/,y=/^[^'\r\n]/,b=/^[^`\r\n]/,x=/^[^ \t\r\n;#]/,S=/^[ \t]/,C=/^[\n\r]/,w=K([`#`,`;`],!1,!1,!1),T=K([`\r`,`
7
- `],!0,!1,!1),E=G(`/*`,!1),D=G(`*/`,!1),O=je(),k=K([`\r`,`
8
- `],!1,!1,!1),A=K([[`a`,`z`],[`A`,`Z`],`_`,`.`],!1,!1,!1),j=K([[`a`,`z`],[`A`,`Z`],[`0`,`9`],`_`,`.`],!1,!1,!1),M=G(`:`,!1),N=q(`keyword`),ee=G(`!`,!1),P=K([[`a`,`z`],[`A`,`Z`]],!1,!1,!1),F=G("${",!1),te=K([[`a`,`z`],[`A`,`Z`],`_`],!1,!1,!1),ne=G(`}`,!1),I=K([[`a`,`z`],[`A`,`Z`],[`0`,`9`],`_`],!1,!1,!1),re=G(`::`,!1),L=K([[`a`,`z`],[`A`,`Z`],[`0`,`9`]],!1,!1,!1),ie=q(`argument`),R=G(`"`,!1),ae=G(`""`,!1),oe=G(`$\\"`,!1),se=K([`"`,`\r`,`
9
- `],!0,!1,!1),ce=G(`'`,!1),le=K([`'`,`\r`,`
10
- `],!0,!1,!1),ue=G("`",!1),de=K(["`",`\r`,`
11
- `],!0,!1,!1),fe=K([` `,` `,`\r`,`
12
- `,`;`,`#`],!0,!1,!1),pe=K([` `,` `],!1,!1,!1),me=q(`end of line`),he=G(`\r
13
- `,!1),ge=K([`
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=Le();n!==a;)t.push(n),n=Le();return t=_e(t),e=t,e}function Le(){let e;return e=Be(),e===a&&(e=Re(),e===a&&(e=ze(),e===a&&(e=He(),e===a&&(e=Ve(),e===a&&(e=Ue()))))),e}function Re(){let e,t;return e=z,Z(),t=Qe(),t===a?(z=e,e=a):e=ve(),e}function ze(){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 Be(){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 Ve(){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 He(){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=We(),s===a?(z=t,t=a):(c=Ye(),l=X(),l===a&&(l=null),Z(),u=Q(),u===a?(z=t,t=a):t=Se(n,s,c,l))))),t}function Ue(){let e,t,n,r,i;return e=z,Z(),t=We(),t===a?(z=e,e=a):(n=Ye(),r=X(),r===a&&(r=null),Z(),i=Q(),i===a?(z=e,e=a):e=Ce(t,n,r)),e}function We(){let e;return U++,e=Ge(),e===a&&(e=Ke(),e===a&&(e=qe(),e===a&&(e=Je()))),U--,e===a&&U===0&&J(N),e}function Ge(){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(ee)),i!==a){if(o=[],s=e.charAt(z),m.test(s)?z++:(s=a,U===0&&J(P)),s!==a)for(;s!==a;)o.push(s),s=e.charAt(z),m.test(s)?z++:(s=a,U===0&&J(P));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 Ke(){let t,n,r,i,o,s;if(t=z,n=z,e.substr(z,2)==="${"?(r="${",z+=2):(r=a,U===0&&J(F)),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),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));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 qe(){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(P)),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(P)),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 Je(){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(P)),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 Ye(){let e,t,n,r;for(e=z,t=[],n=z,Z(),r=Y(),r===a?(z=n,n=a):n=r;n!==a;)t.push(n),n=z,Z(),r=Y(),r===a?(z=n,n=a):n=r;return t=Oe(t),e=t,e}function Y(){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
6
+ at `+o}return t}static buildMessage(e,t){function n(e){return e.codePointAt(0).toString(16).toUpperCase()}let r=Object.prototype.hasOwnProperty.call(RegExp.prototype,`unicode`)?RegExp(`[\\p{C}\\p{Mn}\\p{Mc}]`,`gu`):null;function i(e){return r?e.replace(r,e=>`\\u{`+n(e)+`}`):e}function a(e){return i(e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,e=>`\\x0`+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>`\\x`+n(e)))}function o(e){return i(e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,e=>`\\x0`+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>`\\x`+n(e)))}let s={literal(e){return`"`+a(e.text)+`"`},class(e){let t=e.parts.map(e=>Array.isArray(e)?o(e[0])+`-`+o(e[1]):o(e));return`[`+(e.inverted?`^`:``)+t.join(``)+`]`+(e.unicode?`u`:``)},any(){return`any character`},end(){return`end of input`},other(e){return e.description}};function c(e){return s[e.type](e)}function l(e){let t=e.map(c);if(t.sort(),t.length>0){let e=1;for(let n=1;n<t.length;n++)t[n-1]!==t[n]&&(t[e]=t[n],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function u(e){return e?`"`+a(e)+`"`:`end of input`}return`Expected `+l(e)+` but `+u(t)+` found.`}};function a(e,t){t=t===void 0?{}:t;let a={},o=t.grammarSource,s={Script:Re},c=Re,l=/^[#;]/,u=/^[^\r\n]/,d=/^[\r\n]/,f=/^[a-zA-Z_.]/,p=/^[a-zA-Z0-9_.]/,m=/^[a-zA-Z]/,h=/^[a-zA-Z_]/,g=/^[a-zA-Z0-9_]/,_=/^[a-zA-Z0-9]/,v=/^[^"\r\n]/,y=/^[^'\r\n]/,b=/^[^`\r\n]/,x=/^[^ \t\r\n;#]/,S=/^[ \t]/,C=/^[\n\r]/,w=K([`#`,`;`],!1,!1,!1),T=K([`\r`,`
7
+ `],!0,!1,!1),E=G(`/*`,!1),D=G(`*/`,!1),O=Ne(),k=K([`\r`,`
8
+ `],!1,!1,!1),A=K([[`a`,`z`],[`A`,`Z`],`_`,`.`],!1,!1,!1),j=K([[`a`,`z`],[`A`,`Z`],[`0`,`9`],`_`,`.`],!1,!1,!1),M=G(`:`,!1),N=q(`keyword`),P=G(`!`,!1),F=K([[`a`,`z`],[`A`,`Z`]],!1,!1,!1),I=G("${",!1),ee=K([[`a`,`z`],[`A`,`Z`],`_`],!1,!1,!1),te=G(`}`,!1),L=K([[`a`,`z`],[`A`,`Z`],[`0`,`9`],`_`],!1,!1,!1),ne=G(`::`,!1),re=K([[`a`,`z`],[`A`,`Z`],[`0`,`9`]],!1,!1,!1),ie=q(`argument`),ae=G(`"`,!1),oe=G(`""`,!1),se=G(`$\\"`,!1),ce=K([`"`,`\r`,`
9
+ `],!0,!1,!1),le=G(`'`,!1),ue=G(`$\\'`,!1),de=K([`'`,`\r`,`
10
+ `],!0,!1,!1),fe=G("`",!1),pe=G("$\\`",!1),me=K(["`",`\r`,`
11
+ `],!0,!1,!1),he=K([` `,` `,`\r`,`
12
+ `,`;`,`#`],!0,!1,!1),R=K([` `,` `],!1,!1,!1),ge=q(`end of line`),_e=G(`\r
13
+ `,!1),ve=K([`
14
+ `,`\r`],!1,!1,!1);function ye(e){return e.flat()}function be(){return{type:`blank`}}function xe(e,t){return{type:`comment`,style:e===`#`?`hash`:`semicolon`,value:t.trimStart()}}function Se(e){return{type:`comment`,style:`block`,value:e}}function Ce(e,t){return{type:`label`,name:e,comment:t??void 0}}function we(e,t,n,r){return[{type:`label`,name:e},{type:`instruction`,keyword:t,args:n,...r?{comment:r}:{}}]}function Te(e,t,n){let r={type:`instruction`,keyword:e,args:t};return n&&(r.comment=n),r}function Ee(e){return n.has(e.toLowerCase())}function De(e){return e}function Oe(e){return r.has(e.toLowerCase())}function ke(e){return e}function Ae(e){return e}function je(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 Me(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 Ne(){return{type:`any`}}function Pe(){return{type:`end`}}function q(e){return{type:`other`,description:e}}function Fe(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 Ie(e,t,n){let r=Fe(e),i=Fe(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 Le(e,t,n){return new i(i.buildMessage(e,t),e,t,n)}function Re(){let e,t,n;for(e=z,t=[],n=ze();n!==a;)t.push(n),n=ze();return t=ye(t),e=t,e}function ze(){let e;return e=He(),e===a&&(e=Be(),e===a&&(e=Ve(),e===a&&(e=We(),e===a&&(e=Ue(),e===a&&(e=Ge()))))),e}function Be(){let e,t;return e=z,Z(),t=et(),t===a?(z=e,e=a):e=be(),e}function Ve(){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=xe(n,r)}else z=t,t=a;return t}function He(){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=Se(r))}else z=t,t=a;return t}function Ue(){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=Ce(n,o)))),t}function We(){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=Ke(),s===a?(z=t,t=a):(c=Ze(),l=X(),l===a&&(l=null),Z(),u=Q(),u===a?(z=t,t=a):t=we(n,s,c,l))))),t}function Ge(){let e,t,n,r,i;return e=z,Z(),t=Ke(),t===a?(z=e,e=a):(n=Ze(),r=X(),r===a&&(r=null),Z(),i=Q(),i===a?(z=e,e=a):e=Te(t,n,r)),e}function Ke(){let e;return U++,e=qe(),e===a&&(e=Je(),e===a&&(e=Ye(),e===a&&(e=Xe()))),U--,e===a&&U===0&&J(N),e}function qe(){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=Ee(n),r=r?void 0:a,r===a?(z=t,t=a):t=De(n)),t}function Je(){let t,n,r,i,o,s;if(t=z,n=z,e.substr(z,2)==="${"?(r="${",z+=2):(r=a,U===0&&J(I)),r!==a)if(i=e.charAt(z),h.test(i)?z++:(i=a,U===0&&J(ee)),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));e.charCodeAt(z)===125?(s=`}`,z++):(s=a,U===0&&J(te)),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 Ye(){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(L));o!==a;)i.push(o),o=e.charAt(z),g.test(o)?z++:(o=a,U===0&&J(L));if(e.substr(z,2)===`::`?(o=`::`,z+=2):(o=a,U===0&&J(ne)),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(L));l!==a;)c.push(l),l=e.charAt(z),g.test(l)?z++:(l=a,U===0&&J(L));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 Xe(){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(re));s!==a;)o.push(s),s=e.charAt(z),_.test(s)?z++:(s=a,U===0&&J(re));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=Oe(n),r=r?void 0:a,r===a?(z=t,t=a):t=ke(n)),t}function Ze(){let e,t,n,r;for(e=z,t=[],n=z,Z(),r=Y(),r===a?(z=n,n=a):n=r;n!==a;)t.push(n),n=z,Z(),r=Y(),r===a?(z=n,n=a):n=r;return t=Ae(t),e=t,e}function Y(){let e;return U++,e=Qe(),e===a&&(e=$e()),U--,e===a&&U===0&&J(ie),e}function Qe(){let t,n,r,i,o;if(t=z,n=z,e.charCodeAt(z)===34?(r=`"`,z++):(r=a,U===0&&J(ae)),r!==a){for(i=[],e.substr(z,2)===`""`?(o=`""`,z+=2):(o=a,U===0&&J(oe)),o===a&&(e.substr(z,3)===`$\\"`?(o=`$\\"`,z+=3):(o=a,U===0&&J(se)),o===a&&(o=e.charAt(z),v.test(o)?z++:(o=a,U===0&&J(ce))));o!==a;)i.push(o),e.substr(z,2)===`""`?(o=`""`,z+=2):(o=a,U===0&&J(oe)),o===a&&(e.substr(z,3)===`$\\"`?(o=`$\\"`,z+=3):(o=a,U===0&&J(se)),o===a&&(o=e.charAt(z),v.test(o)?z++:(o=a,U===0&&J(ce))));e.charCodeAt(z)===34?(o=`"`,z++):(o=a,U===0&&J(ae)),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(le)),r!==a){for(i=[],e.substr(z,3)===`$\\'`?(o=`$\\'`,z+=3):(o=a,U===0&&J(ue)),o===a&&(o=e.charAt(z),y.test(o)?z++:(o=a,U===0&&J(de)));o!==a;)i.push(o),e.substr(z,3)===`$\\'`?(o=`$\\'`,z+=3):(o=a,U===0&&J(ue)),o===a&&(o=e.charAt(z),y.test(o)?z++:(o=a,U===0&&J(de)));e.charCodeAt(z)===39?(o=`'`,z++):(o=a,U===0&&J(le)),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(fe)),r!==a){for(i=[],e.substr(z,3)==="$\\`"?(o="$\\`",z+=3):(o=a,U===0&&J(pe)),o===a&&(o=e.charAt(z),b.test(o)?z++:(o=a,U===0&&J(me)));o!==a;)i.push(o),e.substr(z,3)==="$\\`"?(o="$\\`",z+=3):(o=a,U===0&&J(pe)),o===a&&(o=e.charAt(z),b.test(o)?z++:(o=a,U===0&&J(me)));e.charCodeAt(z)===96?(o="`",z++):(o=a,U===0&&J(fe)),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 $e(){let t,n,r;if(t=z,n=[],r=e.charAt(z),x.test(r)?z++:(r=a,U===0&&J(he)),r!==a)for(;r!==a;)n.push(r),r=e.charAt(z),x.test(r)?z++:(r=a,U===0&&J(he));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=je(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(R));n!==a;)t.push(n),n=e.charAt(z),S.test(n)?z++:(n=a,U===0&&J(R));return U--,t}function et(){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([["${bannertrimpath}","${BannerTrimPath}"],["${dirstate}","${DirState}"],["${drivespace}","${DriveSpace}"],["${getbasename}","${GetBaseName}"],["${getdrives}","${GetDrives}"],["${getexename}","${GetExeName}"],["${getexepath}","${GetExePath}"],["${getfileattributes}","${GetFileAttributes}"],["${getfileext}","${GetFileExt}"],["${getfilename}","${GetFileName}"],["${getfileversion}","${GetFileVersion}"],["${getoptions}","${GetOptions}"],["${getoptionss}","${GetOptionsS}"],["${getparameters}","${GetParameters}"],["${getparent}","${GetParent}"],["${getroot}","${GetRoot}"],["${getsize}","${GetSize}"],["${gettime}","${GetTime}"],["${locate}","${Locate}"],["${refreshshellicons}","${RefreshShellIcons}"],["${andif}","${AndIf}"],["${andifnot}","${AndIfNot}"],["${andunless}","${AndUnless}"],["${break}","${Break}"],["${case}","${Case}"],["${caseelse}","${CaseElse}"],["${continue}","${Continue}"],["${default}","${Default}"],["${do}","${Do}"],["${dountil}","${DoUntil}"],["${dowhile}","${DoWhile}"],["${else}","${Else}"],["${elseif}","${ElseIf}"],["${elseifnot}","${ElseIfNot}"],["${elseunless}","${ElseUnless}"],["${endif}","${EndIf}"],["${endselect}","${EndSelect}"],["${endswitch}","${EndSwitch}"],["${exitdo}","${ExitDo}"],["${exitfor}","${ExitFor}"],["${exitwhile}","${ExitWhile}"],["${for}","${For}"],["${foreach}","${ForEach}"],["${if}","${If}"],["${ifcmd}","${IfCmd}"],["${ifnot}","${IfNot}"],["${ifnotthen}","${IfNotThen}"],["${ifthen}","${IfThen}"],["${loop}","${Loop}"],["${loopuntil}","${LoopUntil}"],["${loopwhile}","${LoopWhile}"],["${orif}","${OrIf}"],["${orifnot}","${OrIfNot}"],["${orunless}","${OrUnless}"],["${select}","${Select}"],["${switch}","${Switch}"],["${unless}","${Unless}"],["${while}","${While}"],["${mementosection}","${MementoSection}"],["${mementosectiondone}","${MementoSectionDone}"],["${mementosectionend}","${MementoSectionEnd}"],["${mementosectionrestore}","${MementoSectionRestore}"],["${mementosectionsave}","${MementoSectionSave}"],["${mementounselectedsection}","${MementoUnselectedSection}"],["${strcase}","${StrCase}"],["${strclb}","${StrClb}"],["${striotonsis}","${StrIOToNSIS}"],["${strloc}","${StrLoc}"],["${strnsistoio}","${StrNSISToIO}"],["${strrep}","${StrRep}"],["${strsort}","${StrSort}"],["${strstr}","${StrStr}"],["${strstradv}","${StrStrAdv}"],["${strtok}","${StrTok}"],["${strtrimnewlines}","${StrTrimNewLines}"],["${configread}","${ConfigRead}"],["${configreads}","${ConfigReadS}"],["${configwrite}","${ConfigWrite}"],["${configwrites}","${ConfigWriteS}"],["${filejoin}","${FileJoin}"],["${filereadfromend}","${FileReadFromEnd}"],["${filerecode}","${FileRecode}"],["${linefind}","${LineFind}"],["${lineread}","${LineRead}"],["${linesum}","${LineSum}"],["${textcompare}","${TextCompare}"],["${textcompares}","${TextCompareS}"],["${trimnewlines}","${TrimNewLines}"],["${atleastservicepack}","${AtLeastServicePack}"],["${atleastwin10}","${AtLeastWin10}"],["${atleastwin11}","${AtLeastWin11}"],["${atleastwin2000}","${AtLeastWin2000}"],["${atleastwin2003}","${AtLeastWin2003}"],["${atleastwin2008}","${AtLeastWin2008}"],["${atleastwin2008r2}","${AtLeastWin2008R2}"],["${atleastwin7}","${AtLeastWin7}"],["${atleastwin8}","${AtLeastWin8}"],["${atleastwin8.1}","${AtLeastWin8.1}"],["${atleastwin95}","${AtLeastWin95}"],["${atleastwin98}","${AtLeastWin98}"],["${atleastwinme}","${AtLeastWinME}"],["${atleastwinnt4}","${AtLeastWinNT4}"],["${atleastwinvista}","${AtLeastWinVista}"],["${atleastwinxp}","${AtLeastWinXP}"],["${atmostservicepack}","${AtMostServicePack}"],["${atmostwin10}","${AtMostWin10}"],["${atmostwin11}","${AtMostWin11}"],["${atmostwin2000}","${AtMostWin2000}"],["${atmostwin2003}","${AtMostWin2003}"],["${atmostwin2008}","${AtMostWin2008}"],["${atmostwin2008r2}","${AtMostWin2008R2}"],["${atmostwin2012}","${AtMostWin2012}"],["${atmostwin2012r2}","${AtMostWin2012R2}"],["${atmostwin7}","${AtMostWin7}"],["${atmostwin8}","${AtMostWin8}"],["${atmostwin8.1}","${AtMostWin8.1}"],["${atmostwin95}","${AtMostWin95}"],["${atmostwin98}","${AtMostWin98}"],["${atmostwinme}","${AtMostWinME}"],["${atmostwinnt4}","${AtMostWinNT4}"],["${atmostwinvista}","${AtMostWinVista}"],["${atmostwinxp}","${AtMostWinXP}"],["${isdomaincontroller}","${IsDomainController}"],["${isnt}","${IsNT}"],["${isserveros}","${IsServerOS}"],["${isservicepack}","${IsServicePack}"],["${iswin10}","${IsWin10}"],["${iswin11}","${IsWin11}"],["${iswin2000}","${IsWin2000}"],["${iswin2003}","${IsWin2003}"],["${iswin2008}","${IsWin2008}"],["${iswin2008r2}","${IsWin2008R2}"],["${iswin2012}","${IsWin2012}"],["${iswin2012r2}","${IsWin2012R2}"],["${iswin7}","${IsWin7}"],["${iswin8}","${IsWin8}"],["${iswin8.1}","${IsWin8.1}"],["${iswin95}","${IsWin95}"],["${iswin98}","${IsWin98}"],["${iswinme}","${IsWinME}"],["${iswinnt4}","${IsWinNT4}"],["${iswinvista}","${IsWinVista}"],["${iswinxp}","${IsWinXP}"],["${strfilter}","${StrFilter}"],["${strfilters}","${StrFilterS}"],["${versioncompare}","${VersionCompare}"],["${versionconvert}","${VersionConvert}"],["${wordadd}","${WordAdd}"],["${wordadds}","${WordAddS}"],["${wordfind}","${WordFind}"],["${wordfind2x}","${WordFind2X}"],["${wordfind2xs}","${WordFind2XS}"],["${wordfind3x}","${WordFind3X}"],["${wordfind3xs}","${WordFind3XS}"],["${wordfinds}","${WordFindS}"],["${wordinsert}","${WordInsert}"],["${wordinserts}","${WordInsertS}"],["${wordreplace}","${WordReplace}"],["${wordreplaces}","${WordReplaceS}"],["${disablex64fsredirection}","${DisableX64FSRedirection}"],["${enablex64fsredirection}","${EnableX64FSRedirection}"],["${iswow64}","${IsWow64}"],["${runningx64}","${RunningX64}"]]),l=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`]]),u=new Map([[`/lang=`,`/LANG=`],[`/timeout=`,`/TIMEOUT=`],[`/charset=`,`/CHARSET=`],[`/imgid=`,`/IMGID=`],[`/customstring=`,`/CUSTOMSTRING=`],[`/uninstcustomstring=`,`/UNINSTCUSTOMSTRING=`],[`/oname=`,`/oname=`]]),d=new Map;function f(e,t){for(let n of e){let e=n.toLowerCase(),r=d.get(e);r||(r=new Map,d.set(e,r));for(let[e,n]of t)r.set(e,n)}}f([`AllowRootDirInstall`,`AllowSkipFiles`,`AutoCloseWindow`,`CRCCheck`,`ManifestDPIAware`,`ManifestDisableWindowFiltering`,`ManifestGdiScaling`,`ManifestLongPathAware`,`SetAutoClose`,`SetDatablockOptimize`,`SetDateSave`,`SetPluginUnload`,`Unicode`,`WindowIcon`],[[`true`,`true`],[`false`,`false`]]),f([`CRCCheck`,`LogSet`,`LockWindow`,`SetCompress`,`SetDateSave`,`SetDatablockOptimize`,`SetOverwrite`,`WindowIcon`,`XPStyle`,`LicenseForceSelection`],[[`on`,`on`],[`off`,`off`]]),f([`FileOpen`],[[`r`,`r`],[`w`,`w`],[`a`,`a`]]),f([`SetCompressor`],[[`zlib`,`zlib`],[`bzip2`,`bzip2`],[`lzma`,`lzma`]]),f([`Target`],[[`x86`,`x86`],[`amd64`,`amd64`]]),f([`SetOverwrite`],[[`try`,`try`],[`ifnewer`,`ifnewer`],[`ifdiff`,`ifdiff`],[`lastused`,`lastused`]]),f([`SetCompress`],[[`auto`,`auto`],[`force`,`force`]]),f([`SilentInstall`],[[`normal`,`normal`],[`silent`,`silent`],[`silentlog`,`silentlog`]]),f([`SilentUnInstall`,`SetSilent`],[[`normal`,`normal`],[`silent`,`silent`]]),f([`ShowInstDetails`,`ShowUninstDetails`],[[`hide`,`hide`],[`show`,`show`],[`nevershow`,`nevershow`]]),f([`SetDetailsView`,`DirShow`],[[`show`,`show`],[`hide`,`hide`]]),f([`SetDetailsPrint`],[[`listonly`,`listonly`],[`textonly`,`textonly`],[`both`,`both`],[`none`,`none`],[`lastused`,`lastused`]]),f([`RequestExecutionLevel`],[[`none`,`none`],[`user`,`user`],[`highest`,`highest`],[`admin`,`admin`]]),f([`AddBrandingImage`],[[`top`,`top`],[`left`,`left`],[`bottom`,`bottom`],[`right`,`right`]]),f([`InstProgressFlags`],[[`smooth`,`smooth`],[`colored`,`colored`]]),f([`LicenseForceSelection`],[[`checkbox`,`checkbox`],[`radiobuttons`,`radiobuttons`]]),f([`SetShellVarContext`],[[`all`,`all`],[`current`,`current`]]),f([`DirVerify`],[[`auto`,`auto`],[`leave`,`leave`]]),f([`ExecShell`,`ExecShellWait`],[[`open`,`open`],[`print`,`print`]]),f([`Page`,`UninstPage`],[[`custom`,`custom`],[`license`,`license`],[`components`,`components`],[`directory`,`directory`],[`instfiles`,`instfiles`],[`uninstconfirm`,`uninstConfirm`]]),f([`SetCtlColors`],[[`transparent`,`transparent`]]),f([`LockWindow`],[[`on`,`on`],[`off`,`off`]]),f([`SetRegView`],[[`default`,`default`]]),f([`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`]]),f([`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`]]),f([`CreateShortcut`,`ShowWindow`],[[`sw_shownormal`,`SW_SHOWNORMAL`],[`sw_showmaximized`,`SW_SHOWMAXIMIZED`],[`sw_showminimized`,`SW_SHOWMINIMIZED`],[`sw_hide`,`SW_HIDE`],[`sw_show`,`SW_SHOW`]]),f([`CreateShortcut`],[[`alt`,`ALT`],[`control`,`CONTROL`],[`ext`,`EXT`],[`shift`,`SHIFT`]]),f([`SetFileAttributes`],[[`archive`,`ARCHIVE`],[`hidden`,`HIDDEN`],[`offline`,`OFFLINE`],[`readonly`,`READONLY`],[`system`,`SYSTEM`],[`temporary`,`TEMPORARY`]]),f([`FileSeek`],[[`set`,`SET`],[`cur`,`CUR`],[`end`,`END`]]),f([`GetWinVer`],[[`major`,`MAJOR`],[`minor`,`MINOR`],[`build`,`BUILD`],[`servicepack`,`SERVICEPACK`]]),f([`ManifestSupportedOS`],[[`winvista`,`WinVista`],[`win7`,`Win7`],[`win8`,`Win8`],[`win8.1`,`Win8.1`],[`win10`,`Win10`]]),f([`ChangeUI`],[[`dlg_id`,`dlg_id`]]);const p=d;function m(e){return new Set(e.map(e=>e.toLowerCase()))}const h={open:m([`!if`,`!ifdef`,`!ifmacrodef`,`!ifmacrondef`,`!ifndef`,`!macro`,"${Do}","${DoUntil}","${DoWhile}","${For}","${ForEach}","${If}","${IfNot}","${MementoSection}","${MementoUnselectedSection}","${Select}","${Switch}","${Unless}",`Function`,`PageEx`,`Section`,`SectionGroup`]),case:m(["${Case}","${Case2}","${Case3}","${Case4}","${Case5}","${CaseElse}","${Default}"]),close:m([`!endif`,`!macroend`,"${EndIf}","${EndSelect}","${EndSwitch}","${EndWhile}","${Loop}","${LoopUntil}","${LoopWhile}","${MementoSectionEnd}","${Next}","${While}",`FunctionEnd`,`PageExEnd`,`SectionEnd`,`SectionGroupEnd`]),mid:m([`!else`,`!elseif`,"${Else}","${ElseIf}","${ElseIfNot}","${ElseUnless}","${AndIf}","${AndIfNot}","${AndUnless}","${OrIf}","${OrIfNot}","${OrUnless}"]),closeAfter:m(["${Break}"])};function g(e,t){let n=0,r=[],i=[],a=ee(e);t.trimEmptyLines&&(a=P(a));for(let e of a)switch(e.type){case`blank`:i.push(``);break;case`comment`:i.push(v(e,n,t));break;case`label`:i.push(y(e,n,t));break;case`instruction`:{let a=e.keyword.toLowerCase();if(h.open.has(a))i.push(k(e,n,t)),r.push(n),n++;else if(h.case.has(a)){let a=(r.length>0?r[r.length-1]:0)+1;i.push(k(e,a,t)),n=a+1}else if(h.close.has(a))n=r.length>0?r.pop():0,i.push(k(e,n,t));else if(h.mid.has(a)){let n=r.length>0?r[r.length-1]:0;i.push(k(e,n,t))}else h.closeAfter.has(a)?(i.push(k(e,n,t)),n=(r.length>0?r[r.length-1]:0)+1):i.push(k(e,n,t));break}}return i.join(t.eol)+t.eol}function _(e,t){return(t.useTabs?` `:` `.repeat(t.indentSize)).repeat(e)}function v(e,t,n){let r=_(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 y(e,t,n){let r=`${_(t,n)}${e.name}:`;return e.comment&&(r+=` ${A(e.comment)}`),r}function b(e,t){if(e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||e.startsWith(`$`))return e;let n=e.toLowerCase(),r=t?.get(n)??l.get(n);if(r!==void 0)return r;let i=e.indexOf(`=`);if(i>0){let t=`${n.slice(0,i+1)}`,r=u.get(t);if(r!==void 0)return`${r}${e.slice(i+1)}`}return e}function x(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||!e.includes(`|`)||e===`|`?[e]:S(e,`|`))}function S(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 C=new Set([`intop`,`intptrop`]);function w(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||T.has(e)?[e]:D(e))}const T=new Set([`>>>`,`||`,`&&`,`<<`,`>>`,`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]),E=new Set([`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]);function D(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+2<e.length){let a=e.slice(i,i+3);if(T.has(a)){n&&=(t.push(n),``),t.push(a),r=!0,i+=3;continue}}if(i+1<e.length){let a=e.slice(i,i+2);if(T.has(a)){n&&=(t.push(n),``),t.push(a),r=!0,i+=2;continue}}let a=e[i];if(E.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 O(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 k(e,t,n){let r=e.keyword.toLowerCase(),i=s.get(r)??c.get(r)??e.keyword,a=p.get(r),o=C.has(r),l=(o?w(e.args):x(e.args)).map(e=>b(e,a)),u=_(t,n);if(n.printWidth>0&&l.length>0)return j(i,l,e.comment?A(e.comment):void 0,u,o,n);let d=o?l.join(` `):O(l),f=`${u}${l.length>0?`${i} ${d}`:i}`;return e.comment&&(f+=` ${A(e.comment)}`),f}function A(e){return`${e.style===`hash`?`#`:`;`} ${e.value}`}function j(e,t,n,r,i,a){let o=(e=>i?e.join(` `):O(e))(t),s=t.length>0?`${r}${e} ${o}`:`${r}${e}`,c=n?`${s} ${n}`:s;if(c.length<=a.printWidth)return c;let l=r+(a.useTabs?` `:` `.repeat(a.indentSize)),u=[],d=`${r}${e}`;for(let e of t){let t=`${d} ${e}`;t.length+2>a.printWidth&&d.length>r.length?(u.push(`${d} \\`),d=`${l}${e}`):d=t}return n&&(d=`${d} ${n}`),u.push(d),u.join(a.eol)}function M(e){if(e.type!==`instruction`)return!1;let t=e.keyword.toLowerCase();return h.open.has(t)||h.case.has(t)}function N(e){return e.type===`instruction`&&h.close.has(e.keyword.toLowerCase())}function ee(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(M(i)&&!M(n)&&n.type!==`comment`)t.push({type:`blank`});else if(i.type===`comment`&&!M(n)&&n.type!==`comment`){let n=r+1;for(;n<e.length&&(e[n].type===`blank`||e[n].type===`comment`);)n++;n<e.length&&M(e[n])&&t.push({type:`blank`})}else N(n)&&!N(i)&&!M(i)&&t.push({type:`blank`});t.push(i),i.type!==`blank`&&(n=i)}return t}function P(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 F(n={}){let r={indentSize:2,printWidth:120,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 g(t,{useTabs:r.useTabs??!0,indentSize:r.indentSize??2,printWidth:r.printWidth??120,trimEmptyLines:r.trimEmptyLines??!0,eol:n})}function a(e){let t=i(e);return t===e?null:t}function s(n){return r.endOfLine?r.endOfLine===`crlf`?`\r
16
+ `,z+=2):(t=a,U===0&&J(_e)),t===a&&(t=e.charAt(z),C.test(t)?z++:(t=a,U===0&&J(ve))),U--,t===a&&U===0&&J(ge),t}function Q(){let e;return e=et(),e===a&&(e=tt()),e}function tt(){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 nt(){throw W!==a&&z<e.length&&J(Pe()),Le(H,V<e.length?Me(V):null,V<e.length?Ie(V,V+1):Ie(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:nt};if($)return W;nt()}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`],[`!elseif`,`!elseif`],[`!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([["${bannertrimpath}","${BannerTrimPath}"],["${dirstate}","${DirState}"],["${drivespace}","${DriveSpace}"],["${getbasename}","${GetBaseName}"],["${getdrives}","${GetDrives}"],["${getexename}","${GetExeName}"],["${getexepath}","${GetExePath}"],["${getfileattributes}","${GetFileAttributes}"],["${getfileext}","${GetFileExt}"],["${getfilename}","${GetFileName}"],["${getfileversion}","${GetFileVersion}"],["${getoptions}","${GetOptions}"],["${getoptionss}","${GetOptionsS}"],["${getparameters}","${GetParameters}"],["${getparent}","${GetParent}"],["${getroot}","${GetRoot}"],["${getsize}","${GetSize}"],["${gettime}","${GetTime}"],["${locate}","${Locate}"],["${refreshshellicons}","${RefreshShellIcons}"],["${andif}","${AndIf}"],["${andifnot}","${AndIfNot}"],["${andunless}","${AndUnless}"],["${break}","${Break}"],["${case}","${Case}"],["${caseelse}","${CaseElse}"],["${continue}","${Continue}"],["${default}","${Default}"],["${do}","${Do}"],["${dountil}","${DoUntil}"],["${dowhile}","${DoWhile}"],["${else}","${Else}"],["${elseif}","${ElseIf}"],["${elseifnot}","${ElseIfNot}"],["${elseunless}","${ElseUnless}"],["${endif}","${EndIf}"],["${endselect}","${EndSelect}"],["${endswitch}","${EndSwitch}"],["${exitdo}","${ExitDo}"],["${exitfor}","${ExitFor}"],["${exitwhile}","${ExitWhile}"],["${for}","${For}"],["${foreach}","${ForEach}"],["${if}","${If}"],["${ifcmd}","${IfCmd}"],["${ifnot}","${IfNot}"],["${ifnotthen}","${IfNotThen}"],["${ifthen}","${IfThen}"],["${loop}","${Loop}"],["${loopuntil}","${LoopUntil}"],["${loopwhile}","${LoopWhile}"],["${orif}","${OrIf}"],["${orifnot}","${OrIfNot}"],["${orunless}","${OrUnless}"],["${select}","${Select}"],["${switch}","${Switch}"],["${unless}","${Unless}"],["${while}","${While}"],["${mementosection}","${MementoSection}"],["${mementosectiondone}","${MementoSectionDone}"],["${mementosectionend}","${MementoSectionEnd}"],["${mementosectionrestore}","${MementoSectionRestore}"],["${mementosectionsave}","${MementoSectionSave}"],["${mementounselectedsection}","${MementoUnselectedSection}"],["${strcase}","${StrCase}"],["${strclb}","${StrClb}"],["${striotonsis}","${StrIOToNSIS}"],["${strloc}","${StrLoc}"],["${strnsistoio}","${StrNSISToIO}"],["${strrep}","${StrRep}"],["${strsort}","${StrSort}"],["${strstr}","${StrStr}"],["${strstradv}","${StrStrAdv}"],["${strtok}","${StrTok}"],["${strtrimnewlines}","${StrTrimNewLines}"],["${configread}","${ConfigRead}"],["${configreads}","${ConfigReadS}"],["${configwrite}","${ConfigWrite}"],["${configwrites}","${ConfigWriteS}"],["${filejoin}","${FileJoin}"],["${filereadfromend}","${FileReadFromEnd}"],["${filerecode}","${FileRecode}"],["${linefind}","${LineFind}"],["${lineread}","${LineRead}"],["${linesum}","${LineSum}"],["${textcompare}","${TextCompare}"],["${textcompares}","${TextCompareS}"],["${trimnewlines}","${TrimNewLines}"],["${atleastservicepack}","${AtLeastServicePack}"],["${atleastwin10}","${AtLeastWin10}"],["${atleastwin11}","${AtLeastWin11}"],["${atleastwin2000}","${AtLeastWin2000}"],["${atleastwin2003}","${AtLeastWin2003}"],["${atleastwin2008}","${AtLeastWin2008}"],["${atleastwin2008r2}","${AtLeastWin2008R2}"],["${atleastwin7}","${AtLeastWin7}"],["${atleastwin8}","${AtLeastWin8}"],["${atleastwin8.1}","${AtLeastWin8.1}"],["${atleastwin95}","${AtLeastWin95}"],["${atleastwin98}","${AtLeastWin98}"],["${atleastwinme}","${AtLeastWinME}"],["${atleastwinnt4}","${AtLeastWinNT4}"],["${atleastwinvista}","${AtLeastWinVista}"],["${atleastwinxp}","${AtLeastWinXP}"],["${atmostservicepack}","${AtMostServicePack}"],["${atmostwin10}","${AtMostWin10}"],["${atmostwin11}","${AtMostWin11}"],["${atmostwin2000}","${AtMostWin2000}"],["${atmostwin2003}","${AtMostWin2003}"],["${atmostwin2008}","${AtMostWin2008}"],["${atmostwin2008r2}","${AtMostWin2008R2}"],["${atmostwin2012}","${AtMostWin2012}"],["${atmostwin2012r2}","${AtMostWin2012R2}"],["${atmostwin7}","${AtMostWin7}"],["${atmostwin8}","${AtMostWin8}"],["${atmostwin8.1}","${AtMostWin8.1}"],["${atmostwin95}","${AtMostWin95}"],["${atmostwin98}","${AtMostWin98}"],["${atmostwinme}","${AtMostWinME}"],["${atmostwinnt4}","${AtMostWinNT4}"],["${atmostwinvista}","${AtMostWinVista}"],["${atmostwinxp}","${AtMostWinXP}"],["${isdomaincontroller}","${IsDomainController}"],["${isnt}","${IsNT}"],["${isserveros}","${IsServerOS}"],["${isservicepack}","${IsServicePack}"],["${iswin10}","${IsWin10}"],["${iswin11}","${IsWin11}"],["${iswin2000}","${IsWin2000}"],["${iswin2003}","${IsWin2003}"],["${iswin2008}","${IsWin2008}"],["${iswin2008r2}","${IsWin2008R2}"],["${iswin2012}","${IsWin2012}"],["${iswin2012r2}","${IsWin2012R2}"],["${iswin7}","${IsWin7}"],["${iswin8}","${IsWin8}"],["${iswin8.1}","${IsWin8.1}"],["${iswin95}","${IsWin95}"],["${iswin98}","${IsWin98}"],["${iswinme}","${IsWinME}"],["${iswinnt4}","${IsWinNT4}"],["${iswinvista}","${IsWinVista}"],["${iswinxp}","${IsWinXP}"],["${strfilter}","${StrFilter}"],["${strfilters}","${StrFilterS}"],["${versioncompare}","${VersionCompare}"],["${versionconvert}","${VersionConvert}"],["${wordadd}","${WordAdd}"],["${wordadds}","${WordAddS}"],["${wordfind}","${WordFind}"],["${wordfind2x}","${WordFind2X}"],["${wordfind2xs}","${WordFind2XS}"],["${wordfind3x}","${WordFind3X}"],["${wordfind3xs}","${WordFind3XS}"],["${wordfinds}","${WordFindS}"],["${wordinsert}","${WordInsert}"],["${wordinserts}","${WordInsertS}"],["${wordreplace}","${WordReplace}"],["${wordreplaces}","${WordReplaceS}"],["${disablex64fsredirection}","${DisableX64FSRedirection}"],["${enablex64fsredirection}","${EnableX64FSRedirection}"],["${iswow64}","${IsWow64}"],["${runningx64}","${RunningX64}"]]),l=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`]]),u=new Map([[`/lang=`,`/LANG=`],[`/timeout=`,`/TIMEOUT=`],[`/charset=`,`/CHARSET=`],[`/imgid=`,`/IMGID=`],[`/customstring=`,`/CUSTOMSTRING=`],[`/uninstcustomstring=`,`/UNINSTCUSTOMSTRING=`],[`/oname=`,`/oname=`]]),d=new Map;function f(e,t){for(let n of e){let e=n.toLowerCase(),r=d.get(e);r||(r=new Map,d.set(e,r));for(let[e,n]of t)r.set(e,n)}}f([`AllowRootDirInstall`,`AllowSkipFiles`,`AutoCloseWindow`,`CRCCheck`,`ManifestDPIAware`,`ManifestDisableWindowFiltering`,`ManifestGdiScaling`,`ManifestLongPathAware`,`SetAutoClose`,`SetDatablockOptimize`,`SetDateSave`,`SetPluginUnload`,`Unicode`,`WindowIcon`],[[`true`,`true`],[`false`,`false`]]),f([`CRCCheck`,`LogSet`,`LockWindow`,`SetCompress`,`SetDateSave`,`SetDatablockOptimize`,`SetOverwrite`,`WindowIcon`,`XPStyle`,`LicenseForceSelection`],[[`on`,`on`],[`off`,`off`]]),f([`FileOpen`],[[`r`,`r`],[`w`,`w`],[`a`,`a`]]),f([`SetCompressor`],[[`zlib`,`zlib`],[`bzip2`,`bzip2`],[`lzma`,`lzma`]]),f([`Target`],[[`x86`,`x86`],[`amd64`,`amd64`]]),f([`SetOverwrite`],[[`try`,`try`],[`ifnewer`,`ifnewer`],[`ifdiff`,`ifdiff`],[`lastused`,`lastused`]]),f([`SetCompress`],[[`auto`,`auto`],[`force`,`force`]]),f([`SilentInstall`],[[`normal`,`normal`],[`silent`,`silent`],[`silentlog`,`silentlog`]]),f([`SilentUnInstall`,`SetSilent`],[[`normal`,`normal`],[`silent`,`silent`]]),f([`ShowInstDetails`,`ShowUninstDetails`],[[`hide`,`hide`],[`show`,`show`],[`nevershow`,`nevershow`]]),f([`SetDetailsView`,`DirShow`],[[`show`,`show`],[`hide`,`hide`]]),f([`SetDetailsPrint`],[[`listonly`,`listonly`],[`textonly`,`textonly`],[`both`,`both`],[`none`,`none`],[`lastused`,`lastused`]]),f([`RequestExecutionLevel`],[[`none`,`none`],[`user`,`user`],[`highest`,`highest`],[`admin`,`admin`]]),f([`AddBrandingImage`],[[`top`,`top`],[`left`,`left`],[`bottom`,`bottom`],[`right`,`right`]]),f([`InstProgressFlags`],[[`smooth`,`smooth`],[`colored`,`colored`]]),f([`LicenseForceSelection`],[[`checkbox`,`checkbox`],[`radiobuttons`,`radiobuttons`]]),f([`SetShellVarContext`],[[`all`,`all`],[`current`,`current`]]),f([`DirVerify`],[[`auto`,`auto`],[`leave`,`leave`]]),f([`ExecShell`,`ExecShellWait`],[[`open`,`open`],[`print`,`print`]]),f([`Page`,`UninstPage`],[[`custom`,`custom`],[`license`,`license`],[`components`,`components`],[`directory`,`directory`],[`instfiles`,`instfiles`],[`uninstconfirm`,`uninstConfirm`]]),f([`SetCtlColors`],[[`transparent`,`transparent`]]),f([`LockWindow`],[[`on`,`on`],[`off`,`off`]]),f([`SetRegView`],[[`default`,`default`]]),f([`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`]]),f([`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`]]),f([`CreateShortcut`,`ShowWindow`],[[`sw_shownormal`,`SW_SHOWNORMAL`],[`sw_showmaximized`,`SW_SHOWMAXIMIZED`],[`sw_showminimized`,`SW_SHOWMINIMIZED`],[`sw_hide`,`SW_HIDE`],[`sw_show`,`SW_SHOW`]]),f([`CreateShortcut`],[[`alt`,`ALT`],[`control`,`CONTROL`],[`ext`,`EXT`],[`shift`,`SHIFT`]]),f([`SetFileAttributes`],[[`archive`,`ARCHIVE`],[`hidden`,`HIDDEN`],[`offline`,`OFFLINE`],[`readonly`,`READONLY`],[`system`,`SYSTEM`],[`temporary`,`TEMPORARY`]]),f([`FileSeek`],[[`set`,`SET`],[`cur`,`CUR`],[`end`,`END`]]),f([`GetWinVer`],[[`major`,`MAJOR`],[`minor`,`MINOR`],[`build`,`BUILD`],[`servicepack`,`SERVICEPACK`]]),f([`ManifestSupportedOS`],[[`winvista`,`WinVista`],[`win7`,`Win7`],[`win8`,`Win8`],[`win8.1`,`Win8.1`],[`win10`,`Win10`]]),f([`ChangeUI`],[[`dlg_id`,`dlg_id`]]);const p=d;function m(e){return new Set(e.map(e=>e.toLowerCase()))}const h={open:m([`!if`,`!ifdef`,`!ifmacrodef`,`!ifmacrondef`,`!ifndef`,`!macro`,"${Do}","${DoUntil}","${DoWhile}","${For}","${ForEach}","${If}","${IfNot}","${MementoSection}","${MementoUnselectedSection}","${Select}","${Switch}","${Unless}",`Function`,`PageEx`,`Section`,`SectionGroup`]),case:m(["${Case}","${Case2}","${Case3}","${Case4}","${Case5}","${CaseElse}","${Default}"]),close:m([`!endif`,`!macroend`,"${EndIf}","${EndSelect}","${EndSwitch}","${EndWhile}","${Loop}","${LoopUntil}","${LoopWhile}","${MementoSectionEnd}","${Next}","${While}",`FunctionEnd`,`PageExEnd`,`SectionEnd`,`SectionGroupEnd`]),mid:m([`!else`,`!elseif`,"${Else}","${ElseIf}","${ElseIfNot}","${ElseUnless}","${AndIf}","${AndIfNot}","${AndUnless}","${OrIf}","${OrIfNot}","${OrUnless}"]),closeAfter:m(["${Break}"])};function g(e,t){let n=0,r=[],i=[],a=P(e);t.trimEmptyLines&&(a=F(a));for(let e of a)switch(e.type){case`blank`:i.push(``);break;case`comment`:i.push(v(e,n,t));break;case`label`:i.push(y(e,n,t));break;case`instruction`:{let a=e.keyword.toLowerCase();if(h.open.has(a))i.push(k(e,n,t)),r.push(n),n++;else if(h.case.has(a)){let a=(r.length>0?r[r.length-1]:0)+1;i.push(k(e,a,t)),n=a+1}else if(h.close.has(a))n=r.length>0?r.pop():0,i.push(k(e,n,t));else if(h.mid.has(a)){let n=r.length>0?r[r.length-1]:0;i.push(k(e,n,t))}else h.closeAfter.has(a)?(i.push(k(e,n,t)),n=(r.length>0?r[r.length-1]:0)+1):i.push(k(e,n,t));break}}return i.join(t.eol)+t.eol}function _(e,t){return(t.useTabs?` `:` `.repeat(t.indentSize)).repeat(e)}function v(e,t,n){let r=_(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 y(e,t,n){let r=`${_(t,n)}${e.name}:`;return e.comment&&(r+=` ${A(e.comment)}`),r}function b(e,t){if(e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||e.startsWith(`$`))return e;let n=e.toLowerCase(),r=t?.get(n)??l.get(n);if(r!==void 0)return r;let i=e.indexOf(`=`);if(i>0){let t=`${n.slice(0,i+1)}`,r=u.get(t);if(r!==void 0)return`${r}${e.slice(i+1)}`}return e}function x(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||!e.includes(`|`)||e===`|`?[e]:S(e,`|`))}function S(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 C=new Set([`intop`,`intptrop`]);function w(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||T.has(e)?[e]:D(e))}const T=new Set([`>>>`,`||`,`&&`,`<<`,`>>`,`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]),E=new Set([`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]);function D(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+2<e.length){let a=e.slice(i,i+3);if(T.has(a)){n&&=(t.push(n),``),t.push(a),r=!0,i+=3;continue}}if(i+1<e.length){let a=e.slice(i,i+2);if(T.has(a)){n&&=(t.push(n),``),t.push(a),r=!0,i+=2;continue}}let a=e[i];if(E.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 O(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 k(e,t,n){let r=e.keyword.toLowerCase(),i=s.get(r)??c.get(r)??e.keyword,a=p.get(r),o=C.has(r),l=(o?w(e.args):x(e.args)).map(e=>b(e,a)),u=_(t,n);if(n.printWidth>0&&l.length>0)return j(i,l,e.comment?A(e.comment):void 0,u,o,n);let d=o?l.join(` `):O(l),f=`${u}${l.length>0?`${i} ${d}`:i}`;return e.comment&&(f+=` ${A(e.comment)}`),f}function A(e){return`${e.style===`hash`?`#`:`;`} ${e.value}`}function j(e,t,n,r,i,a){let o=(e=>i?e.join(` `):O(e))(t),s=t.length>0?`${r}${e} ${o}`:`${r}${e}`,c=n?`${s} ${n}`:s;if(c.length<=a.printWidth)return c;let l=r+(a.useTabs?` `:` `.repeat(a.indentSize)),u=[],d=`${r}${e}`;for(let e of t){let t=`${d} ${e}`;t.length+2>a.printWidth&&d.length>r.length?(u.push(`${d} \\`),d=`${l}${e}`):d=t}return n&&(d=`${d} ${n}`),u.push(d),u.join(a.eol)}function M(e){if(e.type!==`instruction`)return!1;let t=e.keyword.toLowerCase();return h.open.has(t)||h.case.has(t)}function N(e){return e.type===`instruction`&&h.close.has(e.keyword.toLowerCase())}function P(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(M(i)&&!M(n)&&n.type!==`comment`)t.push({type:`blank`});else if(i.type===`comment`&&!M(n)&&n.type!==`comment`){let n=r+1;for(;n<e.length&&(e[n].type===`blank`||e[n].type===`comment`);)n++;n<e.length&&M(e[n])&&t.push({type:`blank`})}else N(n)&&!N(i)&&!M(i)&&t.push({type:`blank`});t.push(i),i.type!==`blank`&&(n=i)}return t}function F(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 I(n={}){let r={indentSize:2,printWidth:120,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 g(t,{useTabs:r.useTabs??!0,indentSize:r.indentSize??2,printWidth:r.printWidth??120,trimEmptyLines:r.trimEmptyLines??!0,eol:n})}function a(e){let t=i(e);return t===e?null:t}function s(n){return r.endOfLine?r.endOfLine===`crlf`?`\r
17
17
  `:`
18
18
  `:t(n)??(e()===`win32`?`\r
19
19
  `:`
20
- `)}return{format:i,check:a}}export{F as createFormatter};
20
+ `)}return{format:i,check:a}}export{I as createFormatter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsis/dent",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "An opinionated code formatter for NSIS scripts",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "git+https://github.com/idleberg/node-dent.git"
21
+ "url": "git+https://github.com/idleberg/dent.git"
22
22
  },
23
- "homepage": "https://github.com/idleberg/node-dent/tree/main/packages/dent#readme",
23
+ "homepage": "https://github.com/idleberg/dent/tree/main/packages/dent#readme",
24
24
  "keywords": [
25
25
  "nsis",
26
26
  "formatter"