@nsis/dent 0.12.2 → 0.12.3

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 (2) hide show
  1. package/dist/dent.mjs +3 -19
  2. package/package.json +5 -10
package/dist/dent.mjs CHANGED
@@ -1,21 +1,5 @@
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
- --> `+o+`
3
- `+r+` |
4
- `+a.line+` | `+s+`
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:Ge},c=Ge,l=/^[ \t]/,u=/^[#;]/,d=/^[^\r\n]/,f=/^[\r\n]/,p=/^[^"]/,ee=/^[a-zA-Z0-9_.\-\/]/,m=/^[a-zA-Z]/,te=/^[^ \t\r\n]/,h=/^[a-zA-Z0-9_]/,g=/^[a-zA-Z_]/,_=/^[a-zA-Z0-9]/,v=/^[^"\r\n]/,y=/^[^'\r\n]/,b=/^[^`\r\n]/,x=/^[^ \t\r\n;#]/,ne=/^[\n\r]/,S=W([` `,` `],!1,!1,!1),C=W([`#`,`;`],!1,!1,!1),w=W([`\r`,`
7
- `],!0,!1,!1),re=U(`/*`,!1),T=U(`*/`,!1),E=Be(),D=W([`\r`,`
8
- `],!1,!1,!1),O=U(`"`,!1),k=U(`:"`,!1),A=W([`"`],!0,!1,!1),j=U(`:`,!1),M=U("${",!1),N=U(`}`,!1),ie=W([[`a`,`z`],[`A`,`Z`],[`0`,`9`],`_`,`.`,`-`,`/`],!1,!1,!1),ae=G(`keyword`),P=U(`!`,!1),F=W([[`a`,`z`],[`A`,`Z`]],!1,!1,!1),oe=W([` `,` `,`\r`,`
9
- `],!0,!1,!1),I=W([[`a`,`z`],[`A`,`Z`],[`0`,`9`],`_`],!1,!1,!1),se=U(`::`,!1),ce=W([[`a`,`z`],[`A`,`Z`],`_`],!1,!1,!1),le=W([[`a`,`z`],[`A`,`Z`],[`0`,`9`]],!1,!1,!1),ue=G(`argument`),de=U(`""`,!1),fe=U(`$\\"`,!1),pe=W([`"`,`\r`,`
10
- `],!0,!1,!1),me=U(`'`,!1),he=U(`$\\'`,!1),ge=W([`'`,`\r`,`
11
- `],!0,!1,!1),_e=U("`",!1),ve=U("$\\`",!1),ye=W(["`",`\r`,`
12
- `],!0,!1,!1),be=W([` `,` `,`\r`,`
13
- `,`;`,`#`],!0,!1,!1),xe=G(`end of line`),Se=U(`\r
14
- `,!1),Ce=W([`
15
- `,`\r`],!1,!1,!1);function we(e){return e.flat()}function Te(){return{type:`blank`}}function Ee(){return{type:`blank`}}function De(e,t){return{type:`comment`,style:e===`#`?`hash`:`semicolon`,value:t.trimStart()}}function Oe(e){return{type:`comment`,style:`block`,value:e}}function ke(e,t){return{type:`label`,name:e,comment:t??void 0}}function Ae(e,t){return{type:`label`,name:e,comment:t??void 0}}function je(e,t,n,r){return[{type:`label`,name:e},{type:`instruction`,keyword:t,args:n,...r?{comment:r}:{}}]}function Me(e,t,n){let r={type:`instruction`,keyword:e,args:t};return n&&(r.comment=n),r}function Ne(e){return n.has(e.toLowerCase())}function Pe(e){return e}function Fe(e){return r.has(e.toLowerCase())}function Ie(e){return e}function Le(e){return e}function Re(e,t){return{style:e===`#`?`hash`:`semicolon`,value:t.trimStart()}}let L=t.peg$currPos|0,R=[{line:1,column:1}],z=L,B=t.peg$maxFailExpected||[],V=t.peg$silentFails|0,H;if(t.startRule){if(!(t.startRule in s))throw Error(`Can't start parsing from rule "`+t.startRule+`".`);c=s[t.startRule]}function ze(t=L){let n=e.codePointAt(t);return n===void 0?``:String.fromCodePoint(n)}function U(e,t){return{type:`literal`,text:e,ignoreCase:t}}function W(e,t,n,r){return{type:`class`,parts:e,inverted:t,ignoreCase:n,unicode:r}}function Be(){return{type:`any`}}function Ve(){return{type:`end`}}function G(e){return{type:`other`,description:e}}function He(t){let n=R[t],r;if(n)return n;if(t>=R.length)r=R.length-1;else for(r=t;!R[--r];);for(n=R[r],n={line:n.line,column:n.column};r<t;)e.charCodeAt(r)===10?(n.line++,n.column=1):n.column++,r++;return R[t]=n,n}function Ue(e,t,n){let r=He(e),i=He(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 K(e){L<z||(L>z&&(z=L,B=[]),B.push(e))}function We(e,t,n){return new i(i.buildMessage(e,t),e,t,n)}function Ge(){let e,t,n;for(e=L,t=[],n=Ke();n!==a;)t.push(n),n=Ke();return t=we(t),e=t,e}function Ke(){let e;return e=Ye(),e===a&&(e=qe(),e===a&&(e=Je(),e===a&&(e=Qe(),e===a&&(e=Xe(),e===a&&(e=Ze(),e===a&&(e=$e())))))),e}function qe(){let t,n,r;if(t=L,n=Z(),r=lt(),r===a?(L=t,t=a):t=Te(),t===a){if(t=L,n=[],r=e.charAt(L),l.test(r)?L++:(r=a,V===0&&K(S)),r!==a)for(;r!==a;)n.push(r),r=e.charAt(L),l.test(r)?L++:(r=a,V===0&&K(S));else n=a;n===a?(L=t,t=a):(r=ut(),r===a?(L=t,t=a):t=Ee())}return t}function Je(){let t,n,r,i,o;if(t=L,Z(),n=e.charAt(L),u.test(n)?L++:(n=a,V===0&&K(C)),n!==a){for(r=L,i=[],o=e.charAt(L),d.test(o)?L++:(o=a,V===0&&K(w));o!==a;)i.push(o),o=e.charAt(L),d.test(o)?L++:(o=a,V===0&&K(w));r=e.substring(r,L),i=Q(),i===a?(L=t,t=a):t=De(n,r)}else L=t,t=a;return t}function Ye(){let t,n,r,i,o,s,c;if(t=L,Z(),e.substr(L,2)===`/*`?(n=`/*`,L+=2):(n=a,V===0&&K(re)),n!==a){for(r=L,i=[],o=L,s=L,V++,e.substr(L,2)===`*/`?(c=`*/`,L+=2):(c=a,V===0&&K(T)),V--,c===a?s=void 0:(L=s,s=a),s===a?(L=o,o=a):(e.length>L?(c=e.charAt(L),L++):(c=a,V===0&&K(E)),c===a&&(c=e.charAt(L),f.test(c)?L++:(c=a,V===0&&K(D))),c===a?(L=o,o=a):(s=[s,c],o=s));o!==a;)i.push(o),o=L,s=L,V++,e.substr(L,2)===`*/`?(c=`*/`,L+=2):(c=a,V===0&&K(T)),V--,c===a?s=void 0:(L=s,s=a),s===a?(L=o,o=a):(e.length>L?(c=e.charAt(L),L++):(c=a,V===0&&K(E)),c===a&&(c=e.charAt(L),f.test(c)?L++:(c=a,V===0&&K(D))),c===a?(L=o,o=a):(s=[s,c],o=s));r=e.substring(r,L),e.substr(L,2)===`*/`?(i=`*/`,L+=2):(i=a,V===0&&K(T)),i===a?(L=t,t=a):(o=Z(),s=Q(),s===a&&(s=null),t=Oe(r))}else L=t,t=a;return t}function Xe(){let t,n,r,i,o,s,c,l;if(t=L,Z(),e.charCodeAt(L)===34?(n=`"`,L++):(n=a,V===0&&K(O)),n!==a){for(r=L,i=[],o=L,s=L,V++,e.substr(L,2)===`:"`?(c=`:"`,L+=2):(c=a,V===0&&K(k)),V--,c===a?s=void 0:(L=s,s=a),s===a?(L=o,o=a):(c=e.charAt(L),p.test(c)?L++:(c=a,V===0&&K(A)),c===a?(L=o,o=a):(s=[s,c],o=s));o!==a;)i.push(o),o=L,s=L,V++,e.substr(L,2)===`:"`?(c=`:"`,L+=2):(c=a,V===0&&K(k)),V--,c===a?s=void 0:(L=s,s=a),s===a?(L=o,o=a):(c=e.charAt(L),p.test(c)?L++:(c=a,V===0&&K(A)),c===a?(L=o,o=a):(s=[s,c],o=s));r=e.substring(r,L),e.substr(L,2)===`:"`?(i=`:"`,L+=2):(i=a,V===0&&K(k)),i===a?(L=t,t=a):(o=L,V++,e.charCodeAt(L)===58?(s=`:`,L++):(s=a,V===0&&K(j)),V--,s===a?o=void 0:(L=o,o=a),o===a?(L=t,t=a):(s=X(),s===a&&(s=null),c=Z(),l=Q(),l===a?(L=t,t=a):t=ke(r,s)))}else L=t,t=a;return t}function Ze(){let t,n,r,i,o,s;if(t=L,Z(),n=L,r=[],i=q(),i!==a)for(;i!==a;)r.push(i),i=q();else r=a;return n=r===a?r:e.substring(n,L),n===a?(L=t,t=a):(e.charCodeAt(L)===58?(r=`:`,L++):(r=a,V===0&&K(j)),r===a?(L=t,t=a):(i=L,V++,e.charCodeAt(L)===58?(o=`:`,L++):(o=a,V===0&&K(j)),V--,o===a?i=void 0:(L=i,i=a),i===a?(L=t,t=a):(o=X(),o===a&&(o=null),Z(),s=Q(),s===a?(L=t,t=a):t=Ae(n,o)))),t}function Qe(){let t,n,r,i,o,s,c,l,u;if(t=L,Z(),n=L,r=[],i=q(),i!==a)for(;i!==a;)r.push(i),i=q();else r=a;return n=r===a?r:e.substring(n,L),n===a?(L=t,t=a):(e.charCodeAt(L)===58?(r=`:`,L++):(r=a,V===0&&K(j)),r===a?(L=t,t=a):(i=L,V++,e.charCodeAt(L)===58?(o=`:`,L++):(o=a,V===0&&K(j)),V--,o===a?i=void 0:(L=i,i=a),i===a?(L=t,t=a):(o=Z(),s=et(),s===a?(L=t,t=a):(c=at(),l=X(),l===a&&(l=null),Z(),u=Q(),u===a?(L=t,t=a):t=je(n,s,c,l))))),t}function q(){let t,n,r,i;if(t=L,e.substr(L,2)==="${"?(n="${",L+=2):(n=a,V===0&&K(M)),n!==a){for(r=[],i=J();i!==a;)r.push(i),i=J();e.charCodeAt(L)===125?(i=`}`,L++):(i=a,V===0&&K(N)),i===a?(L=t,t=a):(n=[n,r,i],t=n)}else L=t,t=a;return t===a&&(t=e.charAt(L),ee.test(t)?L++:(t=a,V===0&&K(ie))),t}function J(){let t,n,r,i;if(t=L,e.substr(L,2)==="${"?(n="${",L+=2):(n=a,V===0&&K(M)),n!==a){for(r=[],i=J();i!==a;)r.push(i),i=J();e.charCodeAt(L)===125?(i=`}`,L++):(i=a,V===0&&K(N)),i===a?(L=t,t=a):(n=[n,r,i],t=n)}else L=t,t=a;return t===a&&(t=L,n=L,V++,e.charCodeAt(L)===125?(r=`}`,L++):(r=a,V===0&&K(N)),V--,r===a?n=void 0:(L=n,n=a),n===a?(L=t,t=a):(e.length>L?(r=e.charAt(L),L++):(r=a,V===0&&K(E)),r===a?(L=t,t=a):(n=[n,r],t=n))),t}function $e(){let e,t,n,r,i;return e=L,Z(),t=et(),t===a?(L=e,e=a):(n=at(),r=X(),r===a&&(r=null),Z(),i=Q(),i===a?(L=e,e=a):e=Me(t,n,r)),e}function et(){let e;return V++,e=tt(),e===a&&(e=nt(),e===a&&(e=rt(),e===a&&(e=it()))),V--,e===a&&V===0&&K(ae),e}function tt(){let t,n,r,i,o,s;if(t=L,n=L,r=L,e.charCodeAt(L)===33?(i=`!`,L++):(i=a,V===0&&K(P)),i!==a){if(o=[],s=e.charAt(L),m.test(s)?L++:(s=a,V===0&&K(F)),s!==a)for(;s!==a;)o.push(s),s=e.charAt(L),m.test(s)?L++:(s=a,V===0&&K(F));else o=a;o===a?(L=r,r=a):(i=[i,o],r=i)}else L=r,r=a;return n=r===a?r:e.substring(n,L),n===a?(L=t,t=a):(r=Ne(n),r=r?void 0:a,r===a?(L=t,t=a):t=Pe(n)),t}function nt(){let t,n,r,i,o;if(t=L,n=L,e.substr(L,2)==="${"?(r="${",L+=2):(r=a,V===0&&K(M)),r!==a){if(i=[],o=Y(),o!==a)for(;o!==a;)i.push(o),o=Y();else i=a;i===a?(L=n,n=a):(e.charCodeAt(L)===125?(o=`}`,L++):(o=a,V===0&&K(N)),o===a?(L=n,n=a):(r=[r,i,o],n=r))}else L=n,n=a;return t=n===a?n:e.substring(t,L),t}function Y(){let t,n,r,i;if(t=L,e.substr(L,2)==="${"?(n="${",L+=2):(n=a,V===0&&K(M)),n!==a){if(r=[],i=Y(),i!==a)for(;i!==a;)r.push(i),i=Y();else r=a;r===a?(L=t,t=a):(e.charCodeAt(L)===125?(i=`}`,L++):(i=a,V===0&&K(N)),i===a?(L=t,t=a):(n=[n,r,i],t=n))}else L=t,t=a;return t===a&&(t=L,n=L,V++,e.substr(L,2)==="${"?(r="${",L+=2):(r=a,V===0&&K(M)),r===a&&(e.charCodeAt(L)===125?(r=`}`,L++):(r=a,V===0&&K(N))),V--,r===a?n=void 0:(L=n,n=a),n===a?(L=t,t=a):(r=e.charAt(L),te.test(r)?L++:(r=a,V===0&&K(oe)),r===a?(L=t,t=a):(n=[n,r],t=n))),t}function rt(){let t,n,r,i,o,s,c,l;if(t=L,n=L,r=e.charAt(L),m.test(r)?L++:(r=a,V===0&&K(F)),r!==a){for(i=[],o=e.charAt(L),h.test(o)?L++:(o=a,V===0&&K(I));o!==a;)i.push(o),o=e.charAt(L),h.test(o)?L++:(o=a,V===0&&K(I));if(e.substr(L,2)===`::`?(o=`::`,L+=2):(o=a,V===0&&K(se)),o!==a)if(s=e.charAt(L),g.test(s)?L++:(s=a,V===0&&K(ce)),s!==a){for(c=[],l=e.charAt(L),h.test(l)?L++:(l=a,V===0&&K(I));l!==a;)c.push(l),l=e.charAt(L),h.test(l)?L++:(l=a,V===0&&K(I));r=[r,i,o,s,c],n=r}else L=n,n=a;else L=n,n=a}else L=n,n=a;return t=n===a?n:e.substring(t,L),t}function it(){let t,n,r,i,o,s;if(t=L,n=L,r=L,i=e.charAt(L),m.test(i)?L++:(i=a,V===0&&K(F)),i!==a){for(o=[],s=e.charAt(L),_.test(s)?L++:(s=a,V===0&&K(le));s!==a;)o.push(s),s=e.charAt(L),_.test(s)?L++:(s=a,V===0&&K(le));i=[i,o],r=i}else L=r,r=a;return n=r===a?r:e.substring(n,L),n===a?(L=t,t=a):(r=Fe(n),r=r?void 0:a,r===a?(L=t,t=a):t=Ie(n)),t}function at(){let e,t,n,r;for(e=L,t=[],n=L,Z(),r=ot(),r===a?(L=n,n=a):n=r;n!==a;)t.push(n),n=L,Z(),r=ot(),r===a?(L=n,n=a):n=r;return t=Le(t),e=t,e}function ot(){let e;return V++,e=st(),e===a&&(e=ct()),V--,e===a&&V===0&&K(ue),e}function st(){let t,n,r,i,o;if(t=L,n=L,e.charCodeAt(L)===34?(r=`"`,L++):(r=a,V===0&&K(O)),r!==a){for(i=[],e.substr(L,2)===`""`?(o=`""`,L+=2):(o=a,V===0&&K(de)),o===a&&(e.substr(L,3)===`$\\"`?(o=`$\\"`,L+=3):(o=a,V===0&&K(fe)),o===a&&(o=e.charAt(L),v.test(o)?L++:(o=a,V===0&&K(pe))));o!==a;)i.push(o),e.substr(L,2)===`""`?(o=`""`,L+=2):(o=a,V===0&&K(de)),o===a&&(e.substr(L,3)===`$\\"`?(o=`$\\"`,L+=3):(o=a,V===0&&K(fe)),o===a&&(o=e.charAt(L),v.test(o)?L++:(o=a,V===0&&K(pe))));e.charCodeAt(L)===34?(o=`"`,L++):(o=a,V===0&&K(O)),o===a?(L=n,n=a):(r=[r,i,o],n=r)}else L=n,n=a;if(t=n===a?n:e.substring(t,L),t===a){if(t=L,n=L,e.charCodeAt(L)===39?(r=`'`,L++):(r=a,V===0&&K(me)),r!==a){for(i=[],e.substr(L,3)===`$\\'`?(o=`$\\'`,L+=3):(o=a,V===0&&K(he)),o===a&&(o=e.charAt(L),y.test(o)?L++:(o=a,V===0&&K(ge)));o!==a;)i.push(o),e.substr(L,3)===`$\\'`?(o=`$\\'`,L+=3):(o=a,V===0&&K(he)),o===a&&(o=e.charAt(L),y.test(o)?L++:(o=a,V===0&&K(ge)));e.charCodeAt(L)===39?(o=`'`,L++):(o=a,V===0&&K(me)),o===a?(L=n,n=a):(r=[r,i,o],n=r)}else L=n,n=a;if(t=n===a?n:e.substring(t,L),t===a){if(t=L,n=L,e.charCodeAt(L)===96?(r="`",L++):(r=a,V===0&&K(_e)),r!==a){for(i=[],e.substr(L,3)==="$\\`"?(o="$\\`",L+=3):(o=a,V===0&&K(ve)),o===a&&(o=e.charAt(L),b.test(o)?L++:(o=a,V===0&&K(ye)));o!==a;)i.push(o),e.substr(L,3)==="$\\`"?(o="$\\`",L+=3):(o=a,V===0&&K(ve)),o===a&&(o=e.charAt(L),b.test(o)?L++:(o=a,V===0&&K(ye)));e.charCodeAt(L)===96?(o="`",L++):(o=a,V===0&&K(_e)),o===a?(L=n,n=a):(r=[r,i,o],n=r)}else L=n,n=a;t=n===a?n:e.substring(t,L)}}return t}function ct(){let t,n,r;if(t=L,n=[],r=e.charAt(L),x.test(r)?L++:(r=a,V===0&&K(be)),r!==a)for(;r!==a;)n.push(r),r=e.charAt(L),x.test(r)?L++:(r=a,V===0&&K(be));else n=a;return t=n===a?n:e.substring(t,L),t}function X(){let t,n,r,i,o;if(t=L,Z(),n=e.charAt(L),u.test(n)?L++:(n=a,V===0&&K(C)),n!==a){for(r=L,i=[],o=e.charAt(L),d.test(o)?L++:(o=a,V===0&&K(w));o!==a;)i.push(o),o=e.charAt(L),d.test(o)?L++:(o=a,V===0&&K(w));r=e.substring(r,L),t=Re(n,r)}else L=t,t=a;return t}function Z(){let t,n;for(V++,t=[],n=e.charAt(L),l.test(n)?L++:(n=a,V===0&&K(S));n!==a;)t.push(n),n=e.charAt(L),l.test(n)?L++:(n=a,V===0&&K(S));return V--,t}function lt(){let t;return V++,e.substr(L,2)===`\r
16
- `?(t=`\r
17
- `,L+=2):(t=a,V===0&&K(Se)),t===a&&(t=e.charAt(L),ne.test(t)?L++:(t=a,V===0&&K(Ce))),V--,t===a&&V===0&&K(xe),t}function Q(){let e;return e=lt(),e===a&&(e=ut()),e}function ut(){let t,n;return t=L,V++,e.length>L?(n=e.charAt(L),L++):(n=a,V===0&&K(E)),V--,n===a?t=void 0:(L=t,t=a),t}H=c();let $=H!==a&&L===e.length;function dt(){throw H!==a&&L<e.length&&K(Ve()),We(B,z<e.length?ze(z):null,z<e.length?Ue(z,z+1):Ue(z,z))}if(t.peg$library)return{peg$result:H,peg$currPos:L,peg$FAILED:a,peg$maxFailExpected:B,peg$maxFailPos:z,peg$success:$,peg$throw:$?void 0:dt};if($)return H;dt()}function o(e){return a(e.replace(/^\uFEFF/,``).replace(/\\[ \t]*\r?\n[ \t]*/g,` `))}function s(e){return new Set(e.map(e=>e.toLowerCase()))}const c={open:s([`!if`,`!ifdef`,`!ifmacrodef`,`!ifmacrondef`,`!ifndef`,`!macro`,"${Do}","${DoUntil}","${DoWhile}","${For}","${ForEach}","${If}","${IfNot}","${MementoSection}","${MementoUnselectedSection}","${Select}","${Switch}","${Unless}",`Function`,`PageEx`,`Section`,`SectionGroup`]),case:s(["${Case}","${Case2}","${Case3}","${Case4}","${Case5}","${CaseElse}","${Default}"]),close:s([`!endif`,`!macroend`,"${EndIf}","${EndSelect}","${EndSwitch}","${EndWhile}","${Loop}","${LoopUntil}","${LoopWhile}","${MementoSectionEnd}","${Next}","${While}",`FunctionEnd`,`PageExEnd`,`SectionEnd`,`SectionGroupEnd`]),mid:s([`!else`,`!elseif`,"${Else}","${ElseIf}","${ElseIfNot}","${ElseUnless}","${AndIf}","${AndIfNot}","${AndUnless}","${OrIf}","${OrIfNot}","${OrUnless}"]),closeAfter:s(["${Break}"])};function l(e){if(e.type!==`instruction`)return!1;let t=e.keyword.toLowerCase();return c.open.has(t)||c.case.has(t)}function u(e){return e.type===`instruction`&&c.close.has(e.keyword.toLowerCase())}function d(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(l(i)&&!l(n)&&n.type!==`comment`)t.push({type:`blank`});else if(i.type===`comment`&&!l(n)&&n.type!==`comment`){let n=r+1;for(;n<e.length&&(e[n].type===`blank`||e[n].type===`comment`);)n++;n<e.length&&l(e[n])&&t.push({type:`blank`})}else u(n)&&!u(i)&&!l(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}const p=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`]]),ee=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}"]]),m=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`]]),te=new Map([[`/lang=`,`/LANG=`],[`/timeout=`,`/TIMEOUT=`],[`/charset=`,`/CHARSET=`],[`/imgid=`,`/IMGID=`],[`/customstring=`,`/CUSTOMSTRING=`],[`/uninstcustomstring=`,`/UNINSTCUSTOMSTRING=`],[`/oname=`,`/oname=`]]),h=new Map;function g(e,t){for(let n of e){let e=n.toLowerCase(),r=h.get(e);r||(r=new Map,h.set(e,r));for(let[e,n]of t)r.set(e,n)}}g([`AllowRootDirInstall`,`AllowSkipFiles`,`AutoCloseWindow`,`CRCCheck`,`ManifestDPIAware`,`ManifestDisableWindowFiltering`,`ManifestGdiScaling`,`ManifestLongPathAware`,`SetAutoClose`,`SetDatablockOptimize`,`SetDateSave`,`SetPluginUnload`,`Unicode`,`WindowIcon`],[[`true`,`true`],[`false`,`false`]]),g([`CRCCheck`,`LogSet`,`LockWindow`,`SetCompress`,`SetDateSave`,`SetDatablockOptimize`,`SetOverwrite`,`WindowIcon`,`XPStyle`,`LicenseForceSelection`],[[`on`,`on`],[`off`,`off`]]),g([`FileOpen`],[[`r`,`r`],[`w`,`w`],[`a`,`a`]]),g([`SetCompressor`],[[`zlib`,`zlib`],[`bzip2`,`bzip2`],[`lzma`,`lzma`]]),g([`Target`],[[`x86`,`x86`],[`amd64`,`amd64`]]),g([`SetOverwrite`],[[`try`,`try`],[`ifnewer`,`ifnewer`],[`ifdiff`,`ifdiff`],[`lastused`,`lastused`]]),g([`SetCompress`],[[`auto`,`auto`],[`force`,`force`]]),g([`SilentInstall`],[[`normal`,`normal`],[`silent`,`silent`],[`silentlog`,`silentlog`]]),g([`SilentUnInstall`,`SetSilent`],[[`normal`,`normal`],[`silent`,`silent`]]),g([`ShowInstDetails`,`ShowUninstDetails`],[[`hide`,`hide`],[`show`,`show`],[`nevershow`,`nevershow`]]),g([`SetDetailsView`,`DirShow`],[[`show`,`show`],[`hide`,`hide`]]),g([`SetDetailsPrint`],[[`listonly`,`listonly`],[`textonly`,`textonly`],[`both`,`both`],[`none`,`none`],[`lastused`,`lastused`]]),g([`RequestExecutionLevel`],[[`none`,`none`],[`user`,`user`],[`highest`,`highest`],[`admin`,`admin`]]),g([`AddBrandingImage`],[[`top`,`top`],[`left`,`left`],[`bottom`,`bottom`],[`right`,`right`]]),g([`InstProgressFlags`],[[`smooth`,`smooth`],[`colored`,`colored`]]),g([`LicenseForceSelection`],[[`checkbox`,`checkbox`],[`radiobuttons`,`radiobuttons`]]),g([`SetShellVarContext`],[[`all`,`all`],[`current`,`current`]]),g([`DirVerify`],[[`auto`,`auto`],[`leave`,`leave`]]),g([`ExecShell`,`ExecShellWait`],[[`open`,`open`],[`print`,`print`]]),g([`Page`,`UninstPage`],[[`custom`,`custom`],[`license`,`license`],[`components`,`components`],[`directory`,`directory`],[`instfiles`,`instfiles`],[`uninstconfirm`,`uninstConfirm`]]),g([`SetCtlColors`],[[`transparent`,`transparent`]]),g([`LockWindow`],[[`on`,`on`],[`off`,`off`]]),g([`SetRegView`],[[`default`,`default`]]),g([`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`]]),g([`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`]]),g([`CreateShortcut`,`ShowWindow`],[[`sw_shownormal`,`SW_SHOWNORMAL`],[`sw_showmaximized`,`SW_SHOWMAXIMIZED`],[`sw_showminimized`,`SW_SHOWMINIMIZED`],[`sw_hide`,`SW_HIDE`],[`sw_show`,`SW_SHOW`]]),g([`CreateShortcut`],[[`alt`,`ALT`],[`control`,`CONTROL`],[`ext`,`EXT`],[`shift`,`SHIFT`]]),g([`SetFileAttributes`],[[`archive`,`ARCHIVE`],[`hidden`,`HIDDEN`],[`offline`,`OFFLINE`],[`readonly`,`READONLY`],[`system`,`SYSTEM`],[`temporary`,`TEMPORARY`]]),g([`FileSeek`],[[`set`,`SET`],[`cur`,`CUR`],[`end`,`END`]]),g([`GetWinVer`],[[`major`,`MAJOR`],[`minor`,`MINOR`],[`build`,`BUILD`],[`servicepack`,`SERVICEPACK`]]),g([`ManifestSupportedOS`],[[`winvista`,`WinVista`],[`win7`,`Win7`],[`win8`,`Win8`],[`win8.1`,`Win8.1`],[`win10`,`Win10`]]),g([`ChangeUI`],[[`dlg_id`,`dlg_id`]]);const _=h,v=new Set([`intop`,`intptrop`]);function y(e,t,n){let r=t.toLowerCase(),i=_.get(r);return(v.has(r)?w(e):C(e)).map(e=>S(e,i,n))}function b(e){return v.has(e.toLowerCase())}function x(e,t){return b(t)?e.join(` `):re(e)}function ne(e,t){let n=T(e);if(!n)return e;let[,r]=n,i=t?`'`:`"`,a=E(r),o=a.includes(`"`),s=a.includes(`'`),c=a.includes("`");if(!o&&!s||!(i===`"`?o:s))return i===`"`?`"${a}"`:`'${a}'`;let l=i===`"`?`'`:`"`;return(l===`"`?o:s)?c?`"${D(a)}"`:`\`${a}\``:l===`"`?`"${a}"`:`'${a}'`}function S(e,t,n){if(e.startsWith(`$`))return e;if(e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`"))return ne(e,n);let r=e.toLowerCase(),i=t?.get(r)??m.get(r);if(i!==void 0)return i;let a=e.indexOf(`=`);if(a>0){let t=`${r.slice(0,a+1)}`,n=te.get(t);if(n!==void 0)return`${n}${e.slice(a+1)}`}return e}function C(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||!e.includes(`|`)||e===`|`?[e]:O(e,`|`))}function w(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||k.has(e)?[e]:j(e))}function re(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 T(e){let t=e[0];if(t===`"`||t===`'`||t==="`")return[t,e.slice(1,-1)]}function E(e){return e.replaceAll(`$\\"`,`"`).replaceAll(`""`,`"`).replaceAll(`$\\'`,`'`).replaceAll("$\\`","`")}function D(e){return e.replaceAll(`"`,`$\\"`)}function O(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 k=new Set([`>>>`,`||`,`&&`,`<<`,`>>`,`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]),A=new Set([`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]);function j(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(k.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(k.has(a)){n&&=(t.push(n),``),t.push(a),r=!0,i+=2;continue}}let a=e[i];if(A.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 M(e,t){let n=0,r=[],i=[],a=d(e);t.trimEmptyLines&&(a=f(a));for(let e of a)switch(e.type){case`blank`:i.push(``);break;case`comment`:i.push(ie(e,n,t));break;case`label`:i.push(ae(e,n,t));break;case`instruction`:{let a=e.keyword.toLowerCase();if(c.open.has(a))i.push(P(e,n,t)),r.push(n),n++;else if(c.case.has(a)){let a=(r.length>0?r[r.length-1]:0)+1;i.push(P(e,a,t)),n=a+1}else if(c.close.has(a))n=r.length>0?r.pop():0,i.push(P(e,n,t));else if(c.mid.has(a)){let n=r.length>0?r[r.length-1]:0;i.push(P(e,n,t))}else c.closeAfter.has(a)?(i.push(P(e,n,t)),n=(r.length>0?r[r.length-1]:0)+1):i.push(P(e,n,t));break}}return i.join(t.eol)+t.eol}function N(e,t){return(t.useTabs?` `:` `.repeat(t.indentSize)).repeat(e)}function ie(e,t,n){let r=N(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 ae(e,t,n){let r=`${N(t,n)}${e.name}:`;return e.comment&&(r+=` ${F(e.comment)}`),r}function P(e,t,n){let r=e.keyword.toLowerCase(),i=p.get(r)??ee.get(r)??e.keyword,a=b(r),o=y(e.args,e.keyword,n.singleQuote),s=N(t,n);if(n.printWidth>0&&o.length>0)return oe(i,o,e.comment?F(e.comment):void 0,s,a,n);let c=x(o,e.keyword),l=`${s}${o.length>0?`${i} ${c}`:i}`;return e.comment&&(l+=` ${F(e.comment)}`),l}function F(e){return`${e.style===`hash`?`#`:`;`} ${e.value}`}function oe(e,t,n,r,i,a){let o=(t=>i?t.join(` `):x(t,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 I(n={}){let r={indentSize:2,printWidth:120,singleQuote:!1,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 M(t,{useTabs:r.useTabs??!0,indentSize:r.indentSize??2,printWidth:r.printWidth??120,singleQuote:r.singleQuote??!1,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
1
+ import{platform as e}from"node:os";import{parse as t}from"@nsis/parser";import{detectNewline as n}from"detect-newline";function r(e){return new Set(e.map(e=>e.toLowerCase()))}const i={open:r([`!if`,`!ifdef`,`!ifmacrodef`,`!ifmacrondef`,`!ifndef`,`!macro`,"${Do}","${DoUntil}","${DoWhile}","${For}","${ForEach}","${If}","${IfNot}","${MementoSection}","${MementoUnselectedSection}","${Select}","${Switch}","${Unless}",`Function`,`PageEx`,`Section`,`SectionGroup`]),case:r(["${Case}","${Case2}","${Case3}","${Case4}","${Case5}","${CaseElse}","${Default}"]),close:r([`!endif`,`!macroend`,"${EndIf}","${EndSelect}","${EndSwitch}","${EndWhile}","${Loop}","${LoopUntil}","${LoopWhile}","${MementoSectionEnd}","${Next}","${While}",`FunctionEnd`,`PageExEnd`,`SectionEnd`,`SectionGroupEnd`]),mid:r([`!else`,`!elseif`,"${Else}","${ElseIf}","${ElseIfNot}","${ElseUnless}","${AndIf}","${AndIfNot}","${AndUnless}","${OrIf}","${OrIfNot}","${OrUnless}"]),closeAfter:r(["${Break}"])};function a(e){if(e.type!==`instruction`)return!1;let t=e.keyword.toLowerCase();return i.open.has(t)||i.case.has(t)}function o(e){return e.type===`instruction`&&i.close.has(e.keyword.toLowerCase())}function s(e){let t=[],n;for(let r=0;r<e.length;r++){let i=e[r],s=t.length>0&&t[t.length-1].type===`blank`;if(n&&!s&&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 o(n)&&!o(i)&&!a(i)&&t.push({type:`blank`});t.push(i),i.type!==`blank`&&(n=i)}return t}function c(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}const l=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`]]),u=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}"]]),d=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`]]),f=new Map([[`/lang=`,`/LANG=`],[`/timeout=`,`/TIMEOUT=`],[`/charset=`,`/CHARSET=`],[`/imgid=`,`/IMGID=`],[`/customstring=`,`/CUSTOMSTRING=`],[`/uninstcustomstring=`,`/UNINSTCUSTOMSTRING=`],[`/oname=`,`/oname=`]]),p=new Map;function m(e,t){for(let n of e){let e=n.toLowerCase(),r=p.get(e);r||(r=new Map,p.set(e,r));for(let[e,n]of t)r.set(e,n)}}m([`AllowRootDirInstall`,`AllowSkipFiles`,`AutoCloseWindow`,`CRCCheck`,`ManifestDPIAware`,`ManifestDisableWindowFiltering`,`ManifestGdiScaling`,`ManifestLongPathAware`,`SetAutoClose`,`SetDatablockOptimize`,`SetDateSave`,`SetPluginUnload`,`Unicode`,`WindowIcon`],[[`true`,`true`],[`false`,`false`]]),m([`CRCCheck`,`LogSet`,`LockWindow`,`SetCompress`,`SetDateSave`,`SetDatablockOptimize`,`SetOverwrite`,`WindowIcon`,`XPStyle`,`LicenseForceSelection`],[[`on`,`on`],[`off`,`off`]]),m([`FileOpen`],[[`r`,`r`],[`w`,`w`],[`a`,`a`]]),m([`SetCompressor`],[[`zlib`,`zlib`],[`bzip2`,`bzip2`],[`lzma`,`lzma`]]),m([`Target`],[[`x86`,`x86`],[`amd64`,`amd64`]]),m([`SetOverwrite`],[[`try`,`try`],[`ifnewer`,`ifnewer`],[`ifdiff`,`ifdiff`],[`lastused`,`lastused`]]),m([`SetCompress`],[[`auto`,`auto`],[`force`,`force`]]),m([`SilentInstall`],[[`normal`,`normal`],[`silent`,`silent`],[`silentlog`,`silentlog`]]),m([`SilentUnInstall`,`SetSilent`],[[`normal`,`normal`],[`silent`,`silent`]]),m([`ShowInstDetails`,`ShowUninstDetails`],[[`hide`,`hide`],[`show`,`show`],[`nevershow`,`nevershow`]]),m([`SetDetailsView`,`DirShow`],[[`show`,`show`],[`hide`,`hide`]]),m([`SetDetailsPrint`],[[`listonly`,`listonly`],[`textonly`,`textonly`],[`both`,`both`],[`none`,`none`],[`lastused`,`lastused`]]),m([`RequestExecutionLevel`],[[`none`,`none`],[`user`,`user`],[`highest`,`highest`],[`admin`,`admin`]]),m([`AddBrandingImage`],[[`top`,`top`],[`left`,`left`],[`bottom`,`bottom`],[`right`,`right`]]),m([`InstProgressFlags`],[[`smooth`,`smooth`],[`colored`,`colored`]]),m([`LicenseForceSelection`],[[`checkbox`,`checkbox`],[`radiobuttons`,`radiobuttons`]]),m([`SetShellVarContext`],[[`all`,`all`],[`current`,`current`]]),m([`DirVerify`],[[`auto`,`auto`],[`leave`,`leave`]]),m([`ExecShell`,`ExecShellWait`],[[`open`,`open`],[`print`,`print`]]),m([`Page`,`UninstPage`],[[`custom`,`custom`],[`license`,`license`],[`components`,`components`],[`directory`,`directory`],[`instfiles`,`instfiles`],[`uninstconfirm`,`uninstConfirm`]]),m([`SetCtlColors`],[[`transparent`,`transparent`]]),m([`LockWindow`],[[`on`,`on`],[`off`,`off`]]),m([`SetRegView`],[[`default`,`default`]]),m([`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`]]),m([`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`]]),m([`CreateShortcut`,`ShowWindow`],[[`sw_shownormal`,`SW_SHOWNORMAL`],[`sw_showmaximized`,`SW_SHOWMAXIMIZED`],[`sw_showminimized`,`SW_SHOWMINIMIZED`],[`sw_hide`,`SW_HIDE`],[`sw_show`,`SW_SHOW`]]),m([`CreateShortcut`],[[`alt`,`ALT`],[`control`,`CONTROL`],[`ext`,`EXT`],[`shift`,`SHIFT`]]),m([`SetFileAttributes`],[[`archive`,`ARCHIVE`],[`hidden`,`HIDDEN`],[`offline`,`OFFLINE`],[`readonly`,`READONLY`],[`system`,`SYSTEM`],[`temporary`,`TEMPORARY`]]),m([`FileSeek`],[[`set`,`SET`],[`cur`,`CUR`],[`end`,`END`]]),m([`GetWinVer`],[[`major`,`MAJOR`],[`minor`,`MINOR`],[`build`,`BUILD`],[`servicepack`,`SERVICEPACK`]]),m([`ManifestSupportedOS`],[[`winvista`,`WinVista`],[`win7`,`Win7`],[`win8`,`Win8`],[`win8.1`,`Win8.1`],[`win10`,`Win10`]]),m([`ChangeUI`],[[`dlg_id`,`dlg_id`]]);const h=p,g=new Set([`intop`,`intptrop`]);function _(e,t,n){let r=t.toLowerCase(),i=h.get(r);return(g.has(r)?C(e):S(e)).map(e=>x(e,i,n))}function v(e){return g.has(e.toLowerCase())}function y(e,t){return v(t)?e.join(` `):w(e)}function b(e,t){let n=T(e);if(!n)return e;let[,r]=n,i=t?`'`:`"`,a=E(r),o=a.includes(`"`),s=a.includes(`'`),c=a.includes("`");if(!o&&!s||!(i===`"`?o:s))return i===`"`?`"${a}"`:`'${a}'`;let l=i===`"`?`'`:`"`;return(l===`"`?o:s)?c?`"${D(a)}"`:`\`${a}\``:l===`"`?`"${a}"`:`'${a}'`}function x(e,t,n){if(e.startsWith(`$`))return e;if(e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`"))return b(e,n);let r=e.toLowerCase(),i=t?.get(r)??d.get(r);if(i!==void 0)return i;let a=e.indexOf(`=`);if(a>0){let t=`${r.slice(0,a+1)}`,n=f.get(t);if(n!==void 0)return`${n}${e.slice(a+1)}`}return e}function S(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||!e.includes(`|`)||e===`|`?[e]:O(e,`|`))}function C(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||k.has(e)?[e]:j(e))}function w(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 T(e){let t=e[0];if(t===`"`||t===`'`||t==="`")return[t,e.slice(1,-1)]}function E(e){return e.replaceAll(`$\\"`,`"`).replaceAll(`""`,`"`).replaceAll(`$\\'`,`'`).replaceAll("$\\`","`")}function D(e){return e.replaceAll(`"`,`$\\"`)}function O(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 k=new Set([`>>>`,`||`,`&&`,`<<`,`>>`,`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]),A=new Set([`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]);function j(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(k.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(k.has(a)){n&&=(t.push(n),``),t.push(a),r=!0,i+=2;continue}}let a=e[i];if(A.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 M(e,t){let n=0,r=[],a=[],o=s(e);t.trimEmptyLines&&(o=c(o));for(let e of o)switch(e.type){case`blank`:a.push(``);break;case`comment`:a.push(P(e,n,t));break;case`label`:a.push(F(e,n,t));break;case`instruction`:{let o=e.keyword.toLowerCase();if(i.open.has(o))a.push(I(e,n,t)),r.push(n),n++;else if(i.case.has(o)){let i=(r.length>0?r[r.length-1]:0)+1;a.push(I(e,i,t)),n=i+1}else if(i.close.has(o))n=r.length>0?r.pop():0,a.push(I(e,n,t));else if(i.mid.has(o)){let n=r.length>0?r[r.length-1]:0;a.push(I(e,n,t))}else i.closeAfter.has(o)?(a.push(I(e,n,t)),n=(r.length>0?r[r.length-1]:0)+1):a.push(I(e,n,t));break}}return a.join(t.eol)+t.eol}function N(e,t){return(t.useTabs?` `:` `.repeat(t.indentSize)).repeat(e)}function P(e,t,n){let r=N(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 F(e,t,n){let r=`${N(t,n)}${e.name}:`;return e.comment&&(r+=` ${L(e.comment)}`),r}function I(e,t,n){let r=e.keyword.toLowerCase(),i=l.get(r)??u.get(r)??e.keyword,a=v(r),o=_(e.args,e.keyword,n.singleQuote),s=N(t,n);if(n.printWidth>0&&o.length>0)return R(i,o,e.comment?L(e.comment):void 0,s,a,n);let c=y(o,e.keyword),d=`${s}${o.length>0?`${i} ${c}`:i}`;return e.comment&&(d+=` ${L(e.comment)}`),d}function L(e){return`${e.style===`hash`?`#`:`;`} ${e.value}`}function R(e,t,n,r,i,a){let o=(t=>i?t.join(` `):y(t,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 z(r={}){let i={indentSize:2,printWidth:120,singleQuote:!1,trimEmptyLines:!0,useTabs:!0,...r};if(i.useTabs===!1&&(!i.indentSize||Number.isNaN(i.indentSize)||i.indentSize<=0))throw Error(`The indentSize option expects a positive integer`);function a(e){let n=t(e),r=s(e);return M(n,{useTabs:i.useTabs??!0,indentSize:i.indentSize??2,printWidth:i.printWidth??120,singleQuote:i.singleQuote??!1,trimEmptyLines:i.trimEmptyLines??!0,eol:r})}function o(e){let t=a(e);return t===e?null:t}function s(t){return i.endOfLine?i.endOfLine===`crlf`?`\r
18
2
  `:`
19
- `:t(n)??(e()===`win32`?`\r
3
+ `:n(t)??(e()===`win32`?`\r
20
4
  `:`
21
- `)}return{format:i,check:a}}export{I as createFormatter};
5
+ `)}return{format:a,check:o}}export{z as createFormatter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsis/dent",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "description": "An opinionated code formatter for NSIS scripts",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -26,25 +26,20 @@
26
26
  "formatter"
27
27
  ],
28
28
  "dependencies": {
29
- "detect-newline": "^4.0.1"
29
+ "detect-newline": "^4.0.1",
30
+ "@nsis/parser": "0.1.0"
30
31
  },
31
32
  "devDependencies": {
32
- "peggy": "^5.1.0",
33
33
  "tsm": "^2.3.0",
34
34
  "uvu": "^0.5.6"
35
35
  },
36
36
  "scripts": {
37
- "build": "npm run build:peggy && npm run build:lib",
38
- "build:lib": "tsdown",
39
- "build:peggy": "peggy --format es --dts --output src/grammar.js src/grammar.pegjs",
40
- "dev": "concurrently --prefix-colors blue,green,magenta npm:dev:*",
41
- "dev:lib": "npm run build:lib -- --watch",
42
- "dev:peggy": "npm run build:peggy -- --watch",
37
+ "build": "tsdown",
38
+ "dev": "npm run build -- --watch",
43
39
  "lint": "concurrently --prefix-colors blue,green,magenta npm:lint:*",
44
40
  "lint:biome": "biome check",
45
41
  "lint:biome:ci": "biome ci",
46
42
  "lint:e18e": "e18e-cli analyze --log-level error",
47
- "pretest": "npm run build:peggy",
48
43
  "publish:jsr": "deno publish",
49
44
  "publish:npm": "np",
50
45
  "test": "uvu -r tsm tests"