diff --git a/en-us/Resources/Scripts/MadCapAll.js b/en-us/Resources/Scripts/MadCapAll.js index 84ee27afe0a..8fa5aa627a4 100644 --- a/en-us/Resources/Scripts/MadCapAll.js +++ b/en-us/Resources/Scripts/MadCapAll.js @@ -61,25 +61,7 @@ * * v17.1.7881.20138 */ -(function(){MadCap.WebHelp=MadCap.CreateNamespace("WebHelp");MadCap.WebHelp.HelpSystem=function(n,t,i,r,u){function b(n){var r=n.parent,t=n.previous,i=n.next,u;t&&(t.next=i,n.previous=null);i&&(i.previous=t,n.next=null);r&&(u=n.parent.n.indexOf(n),r.n.splice(u,1),n.parent=null)}function k(n){var t=null;if(typeof n.n!="undefined")t=n.n[0];else if(typeof n.next!="undefined")t=n.next;else{for(t=n;typeof t.parent!="undefined";)if(typeof t.parent.next!="undefined"){t=t.parent.next;break}else t=t.parent;typeof t.parent=="undefined"&&(t=null)}return t}function ut(n){var t=null;if(typeof n.previous!="undefined")for(t=n.previous;typeof t.n!="undefined"&&t.n.length>0;)t=t.n[t.n.length-1];else typeof n.parent!="undefined"&&(t=n.parent);return t}function d(n,t){var i="",f=-1,o=t?"%7C":"|",r,e,u;for(n.n&&n.n.length>0?(i=n.toc.entries[n.i].title,t&&(i=encodeURIComponent(i)),f=0):f=n.parent.n.indexOf(n)+1,i.length>0&&(i+=o),i+="_____"+f,r=n.parent;r&&typeof r.i!="undefined";r=r.parent)i==null&&(i=""),i.length>0&&(i=o+i),e=r.toc.entries[r.i],e&&(u=e.title,t&&(u=encodeURIComponent(u)),i=u+i);return i}function ft(n,t,i){t.GetToc(n.type,null,function(r){var f,h,e,c,s,o;if(typeof r=="undefined"){i();return}if(f=t.IsAutoMerged?n.automerge:t.MergeNode,h=r.tree,h.n!==undefined&&f!==undefined){var l=f.r==1||t.IsAutoMerged&&f.a=="replace",a=l||t.IsAutoMerged&&(f.a=="before-head"||f.a=="after-head"),v=l||t.IsAutoMerged&&(f.a=="before-head"||f.a=="after-tail"),u=v?f.parent:f;for(typeof u.n=="undefined"&&(u.n=[]),e=v?u.n.indexOf(f)+(a?0:1):a?0:u.n.length,c=h.n.length,s=0;s0&&(u.n[e].previous=u.n[e-1],u.n[e-1].next=u.n[e]);o=e+c-(l?1:0)-1;o>=0&&o+1s.toLowerCase()?(f.c+=n.numchunks,n.terms.splice(u,0,f),r++):u++}for(;rs.toLowerCase()||o.toLowerCase()==s.toLowerCase()&&r.t.toLowerCase()>u.t.toLowerCase()?(u.c+=n.numchunks,n.terms.splice(e,0,u),f++):e++}for(;f0)for(var i=0;i0&&h[0].getElementsByTagName("Url").length>0)for(l=t.getElementsByTagName("Subsystems")[0].getElementsByTagName("Url"),s=0;s0?"&":"?",e=this.DefaultSkin!==i?f+"skinName="+i.SkinID:"",t=r.ToFolder().CombinePath(n);return t.PlainPath+t.Query+e+t.Fragment};this.GetTocPath=function(n){return n=="toc"?nt:tt};this.GetFullTocPath=function(n,t){var r=this.GetHelpSystem(t),i;return r==null?null:(i={},i.tocPath=this.GetTocPath(n),r.ComputeTocPath(n,i),i.tocPath)};this.GetTopicPath=function(n,t){var f=this.GetPath(),r=this.GetMasterHelpSystem(),u=new MadCap.Utilities.Url(document.location.href).ToPath(),e=u.CombinePath(f+"Data/").CombinePath(n),i=e.ToRelative(u);return t||!MadCap.Utilities.HasRuntimeFileType("TriPane")||r.MoveContentToRoot||(i=i.ToRelative(r.ContentFolder)),i};this.GetTransparentImagePath=function(){return this.GetPath()+"Skins/Default/Stylesheets/Images/transparent.gif"};this.GetPatchedPath=function(n){return this.ReplaceReservedCharacters&&(n=MadCap.Utilities.Url.ReplaceReservedCharacters(n,"_")),this.MakeFileLowerCase&&(n=n.toLowerCase()),this.UseCustomTopicFileExtension&&(n=new MadCap.Utilities.Url(n).ToExtension(this.CustomTopicFileExtension).FullPath),n};this.GetAbsoluteTopicPath=function(n){var t=new MadCap.Utilities.Url(n),i=new MadCap.Utilities.Url(document.location.href).ToPlainPath();return i.CombinePath(this.GetTopicPath("../"+t.FullPath).FullPath)};this.ComputeTocPath=function(n,t){if(l){var i=this.GetTocPath(n);MadCap.String.IsNullOrEmpty(i)||(t.tocPath=t.tocPath?i+"|"+t.tocPath:i);l.ComputeTocPath(n,t)}};this.GetHelpSystem=function(n){for(var t=null,i=0;i0};this.IsRoot=function(){return l==null};this.IsTabletLayout=function(n){return this.isGivenLayout("Tablet",n)};this.getLayout=function(n){return this.isGivenLayout("Mobile",n)?"Mobile":this.isGivenLayout("Tablet",n)?"Tablet":"Web"};this.isGivenLayout=function(n,t){if(this.IsResponsive&&this.Breakpoints){var i=this.Breakpoints.mediums[n],r=this.Breakpoints.prop;return r=="max-width"?(t||(t=window.innerWidth),t<=i):window.matchMedia("("+r+": "+i+"px)").matches}return!1};this.ProcessMicroContentXhtml=function(n,t){var i=MadCap.Utilities.SanitizeHtml("
"+n+"<\/div>"),r=new MadCap.Utilities.Url(t).ToFolder(),u=MadCap.Utilities.HasRuntimeFileType("TriPane"),f=u?"#":"";return MadCap.Utilities.FixLinks(i,r,f,this.ContentFolder)};this.LoadLanguage=function(n,t){var i=this;require([this.LanguageUrl],function(r){i.Language=r;n.call(t,r)})};this.LoadBreakpoints=function(n,t){if(this.IsResponsive&&this.IsRoot()){var i=this;require([this.BreakpointsUrl],function(r){i.Breakpoints=r;n.call(t,r)})}else n.call(t,null)};this.LoadConcepts=function(){var n=$.Deferred();return require([o+"Data/Concepts.js"],function(t){a=t;n.resolve(a)}),n.promise()};this.LoadAllConcepts=function(n){function i(){u++;u==e+1&&n()}var u=0,e=f.length,t,r;for(this.LoadConcepts().then(i),t=0;t0&&(e.n[o].previous=e.n[o-1]);e=k(e)}for(l=[],a=!1,o=0;o1||!t){if(f=t&&!(n.QueryMap.GetItem("TocPath")||n.QueryMap.GetItem("BrowseSequencesPath"))&&!MadCap.String.IsNullOrEmpty(n.Fragment)?new MadCap.Utilities.Url(n.Fragment):n,r=f.QueryMap.GetItem("TocPath"),r!=null?i="Toc":(u=f.QueryMap.GetItem("BrowseSequencesPath"),u!=null&&(i="BrowseSequences")),n.HashMap.GetItem("cshid")==null){var o=n.Query.indexOf("?"),s=n.Query.lastIndexOf("?"),e="";o!=s&&(e=n.Query.substr(o,s));t&&(n=new MadCap.Utilities.Url(n.Fragment.substr(1)));MadCap.String.IsNullOrEmpty(e)||(n.Query=e)}}else n=new MadCap.Utilities.Url(this.DefaultStartTopic).ToRelative(this.GetContentPath());return{TocType:i,TocPath:r,BrowseSequencesPath:u,Href:n}};this.FindTocNode=function(n,t,i,r){e.FindNode("Toc",n,t,i,r)};this.FindBrowseSequenceNode=function(n,t,i){e.FindNode("BrowseSequences",n,t,i)};this.FindNode=function(n,t,i,r,u){e.FindNodeInToc(n,t,i,r,u,!0)};this.FindNodeInToc=function(n,t,i,r,u,o){e.LoadToc([n,u]).then(function(u){ - function toLowercase(path) { - var extension = '.htm'; - if (path.endsWith(extension)) { - path = path.substring(0, path.length - extension.length); - } - return path.toLowerCase(); - } - - var l=new MadCap.Utilities.Url(e.GetMasterHelpSystem().GetContentPath()),s=i,a=0,h,c;for(i.IsAbsolute||(s=MadCap.String.IsNullOrEmpty(l.FullPath)?i:l.CombinePath(i),s=s.ToRelative(e.GetPath()),s=new MadCap.Utilities.Url("/"+s.FullPath)),c=1;c0&&o?MadCap.Utilities.AsyncForeach(f,function(u,f){u.FindNode(n,t,i,function(n){if(typeof n!="undefined"){r(n);return}f()})},function(){r(h)}):r(h)})})};this.NodeDepth=function(n){for(var t=1;n.parent&&n.c!==undefined;)t++,n=n.parent;return t};this.LoadGlossary=function(n,t){if(typeof this.Glossary!="undefined"){n.call(t,this.Glossary);return}var i=this;this.GetGlossary(function(r){var u,f;if(r&&r.terms)for(r.termMap=Object.create(null),u=0;ur?1:0});n.f=i.join("; ")}t.e&&(typeof n.e=="undefined"&&(n.e={}),$.each(t.e,function(t,i){typeof n.e[t]!="undefined"?e.MergeIndexEntries(n.e[t],i):n.e[t]=i}))};this.FindIndexEntry=function(n,t){e.LoadIndex(function(i){i.entries||(i.entries={},$.each(i.terms,function(n,t){i.entries[t.t]=t}));var r=n.split(":"),f=r.length,u=i.entries[r[0]];u?e.LoadRootIndexEntry(u,function(n){for(var i=n,u=1;ur?1:0}),n};this.GetSearchDBs=function(n){var t=[],i=this;require([o+"Data/Search.js"],function(r){function o(i){if(i!=null)for(var r=0;r=0?(r.LoadMerge(n,t),!0):!1}n=="previous"?s(t):n=="next"&&c(t)}function y(n,t){var i=$(n).children(t+":last")[0],r;return i!=null?(r=y(i,t),r!=null)?r:i:null}function l(n){for(var r=null,t=n,u;;){if(t==t.ownerDocument.documentElement){r=i;break}if(u=MadCap.Dom.GetAttributeInt(t,"ownerHelpSystemIndex",-1),u>=0){r=f[u];break}t=t.parentNode}return r}function k(n){var t="",r=-1,u=$(n).children("TocEntry")[0],i;for(u!=null?(t=encodeURIComponent(MadCap.Dom.GetAttribute(n,"Title")),r=0):r=$(n).index()+1,t.length>0&&(t+="|"),t+="_____"+r,i=n.parentNode;i!=null&&i.parentNode.nodeType==1;i=i.parentNode)t==null&&(t=""),t.length>0&&(t="|"+t),t=encodeURIComponent(MadCap.Dom.GetAttribute(i,"Title"))+t;return t}function p(n){var i,t,f,r,e,u;if(n.parentNode==n.ownerDocument.documentElement)return 0;for(i=0,r=MadCap.Dom.GetAttribute(n,"Link"),r!=null&&i++,t=n.previousSibling;t!=null;t=t.previousSibling)t.nodeType==1&&(f=MadCap.Dom.GetAttributeInt(t,"DescendantCount",0),i+=f,r=MadCap.Dom.GetAttribute(t,"Link"),r!=null&&(e=new MadCap.Utilities.Url(r),u=e.Extension.toLowerCase(),(u=="htm"||u=="html")&&i++));return i+p(n.parentNode)}var r=this,i=n,u=t,a=!1,e=null,c=[],o=null,s=null,f=[];(function(){})();this.Init=function(n){function u(n){a=!0;e=n.documentElement;w()}if(a){n!=null&&n();return}n!=null&&c.push(n);var r=null;t==MadCap.WebHelp.TocFile.TocType.Toc?r="Toc.xml":t==MadCap.WebHelp.TocFile.TocType.BrowseSequence&&(r="BrowseSequences.xml");this.LoadToc(i.GetPath()+"Data/"+r,u)};this.LoadToc=function(n,t){function r(n){if(!n||!n.documentElement){t!=null&&t(n);return}t!=null&&t(n)}if(u==MadCap.WebHelp.TocFile.TocType.Toc&&i.IsWebHelpPlus)MadCap.Utilities.Xhr.CallWebService(i.GetPath()+"Service/Service.asmx/GetToc",!0,r,null);else if(u==MadCap.WebHelp.TocFile.TocType.BrowseSequence&&i.IsWebHelpPlus)MadCap.Utilities.Xhr.CallWebService(i.GetPath()+"Service/Service.asmx/GetBrowseSequences",!0,r,null);else{var f=n.indexOf("/")==-1?i.GetPath()+"Data/"+n:n;MadCap.Utilities.Xhr.Load(f,!1,r,null,null)}};this.LoadChunk=function(n,t,r){function u(t){var f,i,o,u,e;if(!t||!t.documentElement){r!=null&&r(n);return}for(n.removeAttribute("Chunk"),f=t.documentElement,i=0,o=f.childNodes.length;i0&&(p=h[h.length-1],MadCap.String.StartsWith(p,"_____")&&(c=parseInt(p.substring(5)),h.splice(h.length-1,1))),r=e,a=0,w=h.length;a=0)y=c==0?r:$(r).children("TocEntry")[c-1];else{var d=l(r),k=t.ToRelative(new MadCap.Utilities.Url(d.GetPath())),y=v(r,k.FullPath.toLowerCase(),!0);y||(y=v(r,k.PlainPath.toLowerCase(),!1))}o=null;s=null;i(y)}}function u(n){var t=MadCap.Dom.GetAttribute(n,"Chunk");return t!=null?(r.LoadChunk(n,t,function(){r.GetTocNode(o,s,i)}),!0):!1}function f(n){var t=$(n).attr("MergeHint")||-1;return t>=0?(r.LoadMerge(n,function(){r.GetTocNode(o,s,i)}),!0):!1}this.Init(h)};this.GetEntrySequenceIndex=function(n,t,i){function r(n){var t=-1;n!=null&&(t=p(n));i(t)}this.GetTocNode(n,t,r)};this.GetIndexTotalForEntry=function(n,t,i){function r(n){var r=-1,t;if(n!=null){for(t=n;t.parentNode!=e;)t=t.parentNode;r=MadCap.Dom.GetAttributeInt(t,"DescendantCount",-1)}i(r)}this.GetTocNode(n,t,r)}};MadCap.WebHelp.TocFile.TocType={Toc:0,BrowseSequence:1};MadCap.WebHelp.IndexEntry=function(n,t){var u=MadCap.Dom.GetChildNodeByTagName(n,"Links",0).childNodes,e=u.length,f=0,i,r;for(this.Term=MadCap.Dom.GetAttribute(n,"Term"),this.IndexLinks=[],this.Level=t,this.GeneratedReferenceType=MadCap.Dom.GetAttribute(n,"GeneratedReferenceType"),i=0;i0;)t=t.n[t.n.length-1];else typeof n.parent!="undefined"&&(t=n.parent);return t}function d(n,t){var i="",f=-1,o=t?"%7C":"|",r,e,u;for(n.n&&n.n.length>0?(i=n.toc.entries[n.i].title,t&&(i=encodeURIComponent(i)),f=0):f=n.parent.n.indexOf(n)+1,i.length>0&&(i+=o),i+="_____"+f,r=n.parent;r&&typeof r.i!="undefined";r=r.parent)i==null&&(i=""),i.length>0&&(i=o+i),e=r.toc.entries[r.i],e&&(u=e.title,t&&(u=encodeURIComponent(u)),i=u+i);return i}function ft(n,t,i){t.GetToc(n.type,null,function(r){var f,h,e,c,s,o;if(typeof r=="undefined"){i();return}if(f=t.IsAutoMerged?n.automerge:t.MergeNode,h=r.tree,h.n!==undefined&&f!==undefined){var l=f.r==1||t.IsAutoMerged&&f.a=="replace",a=l||t.IsAutoMerged&&(f.a=="before-head"||f.a=="after-head"),v=l||t.IsAutoMerged&&(f.a=="before-head"||f.a=="after-tail"),u=v?f.parent:f;for(typeof u.n=="undefined"&&(u.n=[]),e=v?u.n.indexOf(f)+(a?0:1):a?0:u.n.length,c=h.n.length,s=0;s0&&(u.n[e].previous=u.n[e-1],u.n[e-1].next=u.n[e]);o=e+c-(l?1:0)-1;o>=0&&o+1s.toLowerCase()?(f.c+=n.numchunks,n.terms.splice(u,0,f),r++):u++}for(;rs.toLowerCase()||o.toLowerCase()==s.toLowerCase()&&r.t.toLowerCase()>u.t.toLowerCase()?(u.c+=n.numchunks,n.terms.splice(e,0,u),f++):e++}for(;f0)for(var i=0;i0&&h[0].getElementsByTagName("Url").length>0)for(l=t.getElementsByTagName("Subsystems")[0].getElementsByTagName("Url"),s=0;s0?"&":"?",e=this.DefaultSkin!==i?f+"skinName="+i.SkinID:"",t=r.ToFolder().CombinePath(n);return t.PlainPath+t.Query+e+t.Fragment};this.GetTocPath=function(n){return n=="toc"?nt:tt};this.GetFullTocPath=function(n,t){var r=this.GetHelpSystem(t),i;return r==null?null:(i={},i.tocPath=this.GetTocPath(n),r.ComputeTocPath(n,i),i.tocPath)};this.GetTopicPath=function(n,t){var f=this.GetPath(),r=this.GetMasterHelpSystem(),u=new MadCap.Utilities.Url(document.location.href).ToPath(),e=u.CombinePath(f+"Data/").CombinePath(n),i=e.ToRelative(u);return t||!MadCap.Utilities.HasRuntimeFileType("TriPane")||r.MoveContentToRoot||(i=i.ToRelative(r.ContentFolder)),i};this.GetTransparentImagePath=function(){return this.GetPath()+"Skins/Default/Stylesheets/Images/transparent.gif"};this.GetPatchedPath=function(n){return this.ReplaceReservedCharacters&&(n=MadCap.Utilities.Url.ReplaceReservedCharacters(n,"_")),this.MakeFileLowerCase&&(n=n.toLowerCase()),this.UseCustomTopicFileExtension&&(n=new MadCap.Utilities.Url(n).ToExtension(this.CustomTopicFileExtension).FullPath),n};this.GetAbsoluteTopicPath=function(n){var t=new MadCap.Utilities.Url(n),i=new MadCap.Utilities.Url(document.location.href).ToPlainPath();return i.CombinePath(this.GetTopicPath("../"+t.FullPath).FullPath)};this.ComputeTocPath=function(n,t){if(l){var i=this.GetTocPath(n);MadCap.String.IsNullOrEmpty(i)||(t.tocPath=t.tocPath?i+"|"+t.tocPath:i);l.ComputeTocPath(n,t)}};this.GetHelpSystem=function(n){for(var t=null,i=0;i0};this.IsRoot=function(){return l==null};this.IsTabletLayout=function(n){return this.isGivenLayout("Tablet",n)};this.getLayout=function(n){return this.isGivenLayout("Mobile",n)?"Mobile":this.isGivenLayout("Tablet",n)?"Tablet":"Web"};this.isGivenLayout=function(n,t){if(this.IsResponsive&&this.Breakpoints){var i=this.Breakpoints.mediums[n],r=this.Breakpoints.prop;return r=="max-width"?(t||(t=window.innerWidth),t<=i):window.matchMedia("("+r+": "+i+"px)").matches}return!1};this.ProcessMicroContentXhtml=function(n,t){var i=MadCap.Utilities.SanitizeHtml("
"+n+"<\/div>"),r=new MadCap.Utilities.Url(t).ToFolder(),u=MadCap.Utilities.HasRuntimeFileType("TriPane"),f=u?"#":"";return MadCap.Utilities.FixLinks(i,r,f,this.ContentFolder)};this.LoadLanguage=function(n,t){var i=this;require([this.LanguageUrl],function(r){i.Language=r;n.call(t,r)})};this.LoadBreakpoints=function(n,t){if(this.IsResponsive&&this.IsRoot()){var i=this;require([this.BreakpointsUrl],function(r){i.Breakpoints=r;n.call(t,r)})}else n.call(t,null)};this.LoadConcepts=function(){var n=$.Deferred();return require([o+"Data/Concepts.js"],function(t){a=t;n.resolve(a)}),n.promise()};this.LoadAllConcepts=function(n){function i(){u++;u==e+1&&n()}var u=0,e=f.length,t,r;for(this.LoadConcepts().then(i),t=0;t0&&(e.n[o].previous=e.n[o-1]);e=k(e)}for(l=[],a=!1,o=0;o1||!t){if(f=t&&!(n.QueryMap.GetItem("TocPath")||n.QueryMap.GetItem("BrowseSequencesPath"))&&!MadCap.String.IsNullOrEmpty(n.Fragment)?new MadCap.Utilities.Url(n.Fragment):n,r=f.QueryMap.GetItem("TocPath"),r!=null?i="Toc":(u=f.QueryMap.GetItem("BrowseSequencesPath"),u!=null&&(i="BrowseSequences")),n.HashMap.GetItem("cshid")==null){var o=n.Query.indexOf("?"),s=n.Query.lastIndexOf("?"),e="";o!=s&&(e=n.Query.substr(o,s));t&&(n=new MadCap.Utilities.Url(n.Fragment.substr(1)));MadCap.String.IsNullOrEmpty(e)||(n.Query=e)}}else n=new MadCap.Utilities.Url(this.DefaultStartTopic).ToRelative(this.GetContentPath());return{TocType:i,TocPath:r,BrowseSequencesPath:u,Href:n}};this.FindTocNode=function(n,t,i,r){e.FindNode("Toc",n,t,i,r)};this.FindBrowseSequenceNode=function(n,t,i){e.FindNode("BrowseSequences",n,t,i)};this.FindNode=function(n,t,i,r,u){e.FindNodeInToc(n,t,i,r,u,!0)};this.FindNodeInToc=function(n,t,i,r,u,o){e.LoadToc([n,u]).then(function(u){var l=new MadCap.Utilities.Url(e.GetMasterHelpSystem().GetContentPath()),s=i,a=0,h,c;for(i.IsAbsolute||(s=MadCap.String.IsNullOrEmpty(l.FullPath)?i:l.CombinePath(i),s=s.ToRelative(e.GetPath()),s=new MadCap.Utilities.Url("/"+s.FullPath)),c=1;c0&&o?MadCap.Utilities.AsyncForeach(f,function(u,f){u.FindNode(n,t,i,function(n){if(typeof n!="undefined"){r(n);return}f()})},function(){r(h)}):r(h)})})};this.NodeDepth=function(n){for(var t=1;n.parent&&n.c!==undefined;)t++,n=n.parent;return t};this.LoadGlossary=function(n,t){if(typeof this.Glossary!="undefined"){n.call(t,this.Glossary);return}var i=this;this.GetGlossary(function(r){var u,f;if(r&&r.terms)for(r.termMap=Object.create(null),u=0;ur?1:0});n.f=i.join("; ")}t.e&&(typeof n.e=="undefined"&&(n.e={}),$.each(t.e,function(t,i){typeof n.e[t]!="undefined"?e.MergeIndexEntries(n.e[t],i):n.e[t]=i}))};this.FindIndexEntry=function(n,t){e.LoadIndex(function(i){i.entries||(i.entries={},$.each(i.terms,function(n,t){i.entries[t.t]=t}));var r=n.split(":"),f=r.length,u=i.entries[r[0]];u?e.LoadRootIndexEntry(u,function(n){for(var i=n,u=1;ur?1:0}),n};this.GetSearchDBs=function(n){var t=[],i=this;require([o+"Data/Search.js"],function(r){function o(i){if(i!=null)for(var r=0;r=0?(r.LoadMerge(n,t),!0):!1}n=="previous"?s(t):n=="next"&&c(t)}function y(n,t){var i=$(n).children(t+":last")[0],r;return i!=null?(r=y(i,t),r!=null)?r:i:null}function l(n){for(var r=null,t=n,u;;){if(t==t.ownerDocument.documentElement){r=i;break}if(u=MadCap.Dom.GetAttributeInt(t,"ownerHelpSystemIndex",-1),u>=0){r=f[u];break}t=t.parentNode}return r}function k(n){var t="",r=-1,u=$(n).children("TocEntry")[0],i;for(u!=null?(t=encodeURIComponent(MadCap.Dom.GetAttribute(n,"Title")),r=0):r=$(n).index()+1,t.length>0&&(t+="|"),t+="_____"+r,i=n.parentNode;i!=null&&i.parentNode.nodeType==1;i=i.parentNode)t==null&&(t=""),t.length>0&&(t="|"+t),t=encodeURIComponent(MadCap.Dom.GetAttribute(i,"Title"))+t;return t}function p(n){var i,t,f,r,e,u;if(n.parentNode==n.ownerDocument.documentElement)return 0;for(i=0,r=MadCap.Dom.GetAttribute(n,"Link"),r!=null&&i++,t=n.previousSibling;t!=null;t=t.previousSibling)t.nodeType==1&&(f=MadCap.Dom.GetAttributeInt(t,"DescendantCount",0),i+=f,r=MadCap.Dom.GetAttribute(t,"Link"),r!=null&&(e=new MadCap.Utilities.Url(r),u=e.Extension.toLowerCase(),(u=="htm"||u=="html")&&i++));return i+p(n.parentNode)}var r=this,i=n,u=t,a=!1,e=null,c=[],o=null,s=null,f=[];(function(){})();this.Init=function(n){function u(n){a=!0;e=n.documentElement;w()}if(a){n!=null&&n();return}n!=null&&c.push(n);var r=null;t==MadCap.WebHelp.TocFile.TocType.Toc?r="Toc.xml":t==MadCap.WebHelp.TocFile.TocType.BrowseSequence&&(r="BrowseSequences.xml");this.LoadToc(i.GetPath()+"Data/"+r,u)};this.LoadToc=function(n,t){function r(n){if(!n||!n.documentElement){t!=null&&t(n);return}t!=null&&t(n)}if(u==MadCap.WebHelp.TocFile.TocType.Toc&&i.IsWebHelpPlus)MadCap.Utilities.Xhr.CallWebService(i.GetPath()+"Service/Service.asmx/GetToc",!0,r,null);else if(u==MadCap.WebHelp.TocFile.TocType.BrowseSequence&&i.IsWebHelpPlus)MadCap.Utilities.Xhr.CallWebService(i.GetPath()+"Service/Service.asmx/GetBrowseSequences",!0,r,null);else{var f=n.indexOf("/")==-1?i.GetPath()+"Data/"+n:n;MadCap.Utilities.Xhr.Load(f,!1,r,null,null)}};this.LoadChunk=function(n,t,r){function u(t){var f,i,o,u,e;if(!t||!t.documentElement){r!=null&&r(n);return}for(n.removeAttribute("Chunk"),f=t.documentElement,i=0,o=f.childNodes.length;i0&&(p=h[h.length-1],MadCap.String.StartsWith(p,"_____")&&(c=parseInt(p.substring(5)),h.splice(h.length-1,1))),r=e,a=0,w=h.length;a=0)y=c==0?r:$(r).children("TocEntry")[c-1];else{var d=l(r),k=t.ToRelative(new MadCap.Utilities.Url(d.GetPath())),y=v(r,k.FullPath.toLowerCase(),!0);y||(y=v(r,k.PlainPath.toLowerCase(),!1))}o=null;s=null;i(y)}}function u(n){var t=MadCap.Dom.GetAttribute(n,"Chunk");return t!=null?(r.LoadChunk(n,t,function(){r.GetTocNode(o,s,i)}),!0):!1}function f(n){var t=$(n).attr("MergeHint")||-1;return t>=0?(r.LoadMerge(n,function(){r.GetTocNode(o,s,i)}),!0):!1}this.Init(h)};this.GetEntrySequenceIndex=function(n,t,i){function r(n){var t=-1;n!=null&&(t=p(n));i(t)}this.GetTocNode(n,t,r)};this.GetIndexTotalForEntry=function(n,t,i){function r(n){var r=-1,t;if(n!=null){for(t=n;t.parentNode!=e;)t=t.parentNode;r=MadCap.Dom.GetAttributeInt(t,"DescendantCount",-1)}i(r)}this.GetTocNode(n,t,r)}};MadCap.WebHelp.TocFile.TocType={Toc:0,BrowseSequence:1};MadCap.WebHelp.IndexEntry=function(n,t){var u=MadCap.Dom.GetChildNodeByTagName(n,"Links",0).childNodes,e=u.length,f=0,i,r;for(this.Term=MadCap.Dom.GetAttribute(n,"Term"),this.IndexLinks=[],this.Level=t,this.GeneratedReferenceType=MadCap.Dom.GetAttribute(n,"GeneratedReferenceType"),i=0;i-1?!0:!1,c=t.indexOf("Left")>-1?!0:!1,l=t.indexOf("Bottom")>-1?!0:!1,a=t.indexOf("Right")>-1?!0:!1,v=t.indexOf("Width")>-1?!0:!1,y=t.indexOf("Height")>-1?!0:!1;c&&a?u=screen.availWidth-(r+s):!c&&a?r=screen.availWidth-(u+s):v&&(r=screen.availWidth/2-u/2);h&&l?f=screen.availHeight-(i+o):!h&&l?i=screen.availHeight-(f+o):y&&(i=screen.availHeight/2-f/2);window==top&&(window.resizeTo(u,f),window.moveTo(r,i))}},ApplySkin:function(){},SwitchPanePosition:function(){},InitFoundationPreviewMenu:function(){},OnLayout:function(){},OnHelpSystemLoad:function(){}});MadCap.WebHelp&&MadCap.WebHelp.HelpSystem&&MadCap.WebHelp.HelpSystem.LoadHelpSystemDefault().done(function(n){_HelpSystem=n;MadCap.SkinHelper.OnHelpSystemLoad(n)})})();/*! -* Copyright MadCap Software -* http://www.madcapsoftware.com/ -* Unlicensed use is strictly prohibited -* -* v17.1.7881.20138 -*/ + * Copyright MadCap Software + * http://www.madcapsoftware.com/ + * Unlicensed use is strictly prohibited + * + * v17.1.7881.20138 + */ (function(){function r(n,t,i){var r=n>t?"openLeft":"openRight";return i&&(r=n>t?"openRight":"openLeft"),r}var i,t,n;MadCap.WebHelp=MadCap.CreateNamespace("WebHelp");i=typeof CefSharp!="undefined"||window.external&&window.external.attached&&window.external.attached();t=MadCap.Utilities.HasRuntimeFileType("TriPane");MadCap.WebHelp.TocPane=function(n,u,f,e){var o=this;this._Init=!1;this._RuntimeFileType=n;this._RootUl=f;this._$RootUl=$(f);this._CanSync=e;this._HelpSystem=u;this._TocFile=this._RuntimeFileType=="Toc"?this._HelpSystem.GetTocFile():this._HelpSystem.GetBrowseSequenceFile();this._LoadedNodes=[];this._NodesWithChildrenLoaded=[];this._NodeElMap={};this._TocType=null;this._TocPath=null;this._TocHref=null;MadCap.Utilities.MessageBus.AddMessageHandler(this.OnMessage,this);this._Initializing=!1;this._InitOnCompleteFuncs=[];this.TreeNode_Expand=function(n){var a=n.target,s=o._IsOffCanvasMenu||o._IsSideNavMenu?$(o._RootUl):null,v=$(a).closest("li")[0],h,c,p;if(v!=null){var u=$(v),w=u.hasClass(o._TreeNodeLeafClass),e=o._LoadedNodes[u.attr("data-mc-id")],y=o._HelpSystem.GetCurrentSkin();if(!o._IsTopNavMenu||!(o._HelpSystem.NodeDepth(e)>o._MaxDepth)){w||o._IsTopNavMenu||u.toggleClass(o._TreeNodeExpandedClass).toggleClass(o._TreeNodeCollapsedClass);var l=u.find("> div img"),b=l.attr("data-mc-alt2"),k=l.attr("alt");if(b!=""&&(l.attr("alt",b),l.attr("data-mc-alt2",k)),o._IncludeIndicator&&(h=u.find("> div a"),h[0]!=null&&(c=h.attr("href"),MadCap.String.IsNullOrEmpty(c)||o._SelectNode(v),h[0]!=a&&(p=h.attr("target"),MadCap.String.IsNullOrEmpty(c)||(p!=null?window.open(c,p):document.location.href=c)))),(typeof e.n=="undefined"||e.n.length==0)&&(e.childrenLoaded=!0,o._NodesWithChildrenLoaded.push(e)),o._NodesWithChildrenLoaded.indexOf(e)===-1){var g=$("a",u).first(),f=$("