const nsILastPass=Components.interfaces.nsILastPass;const nsISupports=Components.interfaces.nsISupports;const CLASS_ID=Components.ID("{89cfce0b-8110-11dd-ad8b-0800200c9a66}");const CLASS_NAME="LastPass Javascript XPCOM Component";const CONTRACT_ID="@lastpass.com/lastpass;1";var LP=null;var LastPassFactory={createInstance:function(D,C){if(D!=null){throw Components.results.NS_ERROR_NO_AGGREGATION
}if(null==LP){LP=new LastPassContainer}return(LP).QueryInterface(C)}};var LastPassModule={registerSelf:function(G,E,F,H){G=G.QueryInterface(Components.interfaces.nsIComponentRegistrar);G.registerFactoryLocation(CLASS_ID,CLASS_NAME,CONTRACT_ID,E,F,H)},unregisterSelf:function(F,E,D){F=F.QueryInterface(Components.interfaces.nsIComponentRegistrar);
F.unregisterFactoryLocation(CLASS_ID,E)},getClassObject:function(F,E,D){if(!D.equals(Components.interfaces.nsIFactory)){throw Components.results.NS_ERROR_NOT_IMPLEMENTED}if(E.equals(CLASS_ID)){return LastPassFactory}throw Components.results.NS_ERROR_NO_INTERFACE},canUnload:function(B){return true}};function NSGetModule(D,C){return LastPassModule
}function LastPassContainer(){var It={state:0,sk:0,js:0,bb:0,az:0,xhr:0,invis:0,retry:0,autofill:0,icons:0,login:0,checkpw:0,tabsel:0,unload:0,regex:0,redo:0,formfill:0,checkpage:0,checkgenpw:0,checkadd:0,autologin:0,autoauto:0,iframe:0,formsubmit:0,notif:0,xulshow:0,save:0,basic_auth:1,genpw:0,cookie:0,yubikey:0,grid:0,multifactor:0,sesame:0,custom_js:0,rsa:0,namedpipes:0,groupstate:0,websiteevent:0,readfile:0,writefile:0,deletefile:0,renamefile:0,fileexists:0,disableoffline:0,error:1,all:0};
var HV=(new Date()).getTime();var EJ=this;this.lpgenpwlist=new Array();if(typeof(Components)!="undefined"){this.lpis_mac="Darwin"==Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULRuntime).OS;this.lpis_win="WINNT"==Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULRuntime).OS;
this.lpmainprefs=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);this.lpprefs=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("extensions.lastpass.")}this.lphelpstats=null;this.lpbuilt="Unknown";
this.lp_basehost="lastpass.com";this.lp_base="https://"+this.lp_basehost+"/";this.lpcurrcontextmenusite=0;this.last_dialog_close=0;this.lpacctsreq=null;this.LANGS=[["Default",""],["Afrikaans","af-ZA"],["Arabic","ar-SA"],["Arabic (Egypt)","ar-EG"],["Bulgarian","bg-BG"],["Catalan","ca-ES"],["Chinese (Simplified)","zh-CN"],["Chinese (Traditional)","zh-TW"],["Croatian","hr-HR"],["Czech","cs-CZ"],["Danish","da-DK"],["Dutch","nl-NL"],["English","en-US"],["Finnish","fi-FI"],["French","fr-FR"],["French (Canada)","fr-CA"],["German","de-DE"],["Greek","el-GR"],["Hebrew","he-IL"],["Hungarian","hu-HU"],["Icelandic","is-IS"],["Indonesian","id-ID"],["Italian","it-IT"],["Japanese","ja-JP"],["Korean","ko-KR"],["Latvian","lv-LV"],["Lithuanian","lt-LT"],["Malay","ms-MY"],["Norwegian","nb-NO"],["Norwegian Nyorsk","nn-NO"],["Persian","fa-IR"],["Polish","pl-PL"],["Portuguese","pt-PT"],["Portuguese (Brazilian)","pt-BR"],["Romanian","ro-RO"],["Russian","ru-RU"],["Serbian","sr-RS"],["Slovak","sk-SK"],["Slovenian","sl-SI"],["Spanish","es-ES"],["Spanish (Mexico)","es-MX"],["Swedish","sv-SE"],["Thai","th-TH"],["Turkish","tr-TR"],["Ukrainian","uk-UA"],["Vietnamese","vi-VN"]];
var DF="1.66.0";var DH=false;var BJ=false;var A2=false;var Hk="";var HR="";var FE="";var Ea=null;var GN=null;var F5=false;var Gh=false;var G9=new Array();var CK=new Array();var EU=0;var Fv=new Array();var FA=new Array();var FK=new Array();var B4=new Array();var Cm=new Array();var Ib=new Array();var El=new Array();
var GP=new Array();var A7=new Array();var Bz=new Array();var H9=new Array();var G7=new Array();var Dk=new Array();var n=null;var AJ=new Array();var IQ=0;var Gi=null;var Ht=null;var F0=null;var Bv=true;var Dy=new Array();var Ez=false;var CO=null;var IC=false;var h=false;var EV="";var Ai="";var Ae="";var Eu="";
var F6=new Array();var Il=new Array();var BP=-1;var H7=-1;var HG="";var Hc=false;var GM="";var HN="";var EA=false;var BA=null;var X=null;var D7=0;var Fp=null;var B8=0;var EB=null;var Fa=0;var FQ=new Array();var Im=new Array();var HD=new Array();var EW=new Array();var AV=new Array();var EN=new Array();
var d=new Array();var GA=new Array();var GU=new Array();var Cu=false;var F=new Array();var IZ=null;var G4=null;var DI=false;var GX=false;var FS=false;var H3=false;var FR=false;var GH=true;var Bs=new Array();var Cw=false;var FL=false;var Fm=false;var Iz=true;var BX=0;var GW="";var Is=false;var o=new Array();
var GQ=new Array();var HF=false;var Gx=null;if(typeof(Ba)=="function"){Gx=Ba()}var GL=null;var A3=false;var Eo=0;var Bq=true;var IH=true;var Cg=false;var Iv;var HE;var Co;var W;var HC;var IX;var E3;var Be;var DB;var Iv;var D8;var A8;var Cs;var Hd;var Ax;var Hw;var De;var Gj;var A;var Dp;var FP;var GO;
var Gl;var EX=false;var He=false;var CT=false;var K=false;var D4=false;var T=false;var C8=true;var BM=false;var Dw=false;var EF=new Array();var Ek=Ab();var v=null;var Hs=null;var Ci=null;var If=null;var AX=false;var BF=null;var ET=null;var DG=0;var D=null;function Cj(){var t;var e}function Iu(){var Jr;
var I1;var Jg;var I6;var t;var I7;var I2;var Jp;var I9;var I8;var I3;var Jq;var I4;var Je;var Ja;var Jn;var e;var I0;var Jd;var Ji;var Jl;var Jk;var I5;var z;var Jm;var Jf;var Jj;var Jo;var Jc;var Jb;var Jh}function GZ(){var I3;var t;var Jb;var z;var I7;var I5;var Jc;var I6;var Jd;var I2;var I4;var I8;
var Ja;var I1;var I0;var e;var I9}function BT(){var e;var t;var I1;var I0;var z}function u(){var I3;var Ji;var I9;var Jg;var I7;var t;var I6;var z;var I1;var e;var Jd;var Jf;var I0;var I4;var Jb;var Jc;var I8;var Jh;var Ja;var I2;var I5;var Je}function Gm(){var z;var I3;var I7;var I5;var I2;var I8;var I9;
var Jb;var Ja;var I0;var t;var I4;var e;var I6;var I1}function CG(){var e}function Iy(){var I0;var z;var t;var e}function Ct(){var I1;var I2;var I0;var z;var e;var t}function DX(){var I1;var t;var e;var I0;var z}function Bw(){var Jz;var I7;var Jq;var I1;var JE;var JB;var Ju;var Jm;var Jd;var JJ;var I5;
var Ji;var Jh;var Jg;var Jj;var JF;var JK;var Js;var Jl;var JA;var I3;var z;var t;var I6;var I0;var Je;var Jt;var Jb;var Jk;var e;var I8;var Jr;var Jc;var Ja;var Jf;var Jn;var JC;var Jp;var Jo;var JH;var Jw;var JG;var Jv;var I2;var Jy;var I9;var Jx;var JI;var I4;var JD}function Do(){var I0;var z;var t;
var e}function Hh(){var e;var t;var z}function FF(){var I0;var t;var I1;var z;var e}function b(){var e;var t}function DT(){var I0;var I1;var e;var z;var t}var Bp=-1;this.HIDE_HOME_HK=0;this.HIDE_SEARCH_HK=0;this.DISABLE_HKS=0;this.lpdopoll=true;this.lpdolostpwotp=true;this.lpdohelptranslate=true;this.NO_LOGIN_NOTIFICATION_UNTIL_LOGIN=0;
this.althelpurl="";this.HIDE_SHARE=false;this.HIDE_REPORT_BROKEN=false;this.islastpass=true;this.wrappedJSObject=this;this.QueryInterface=function(e){if(!e.equals(nsILastPass)&&!e.equals(nsISupports)){throw Components.results.NS_ERROR_NO_INTERFACE}return this};this.en=function(e){return encodeURIComponent(e)
};function B7(t,e){if(typeof(It[t])=="undefined"){return}if(!It[t]&&!It.all){return}}var FU=Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService).createBundle("chrome://lastpass/locale/lang.properties");var Fd=false;try{private_browsing=Components.classes["@mozilla.org/privatebrowsing;1"].getService(Components.interfaces.nsIPrivateBrowsingService)
}catch(In){}Fl();this.lpgs=function(z,e,t,I0){return Gb(z,e,t,I0)};function Gb(I1,t,z,I3){var I0=I1;if(typeof(EF["en-US"])=="undefined"){EF["en-US"]=Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService).createBundle("chrome://lastpass-locales/content/en-US/lang.properties")
}if((typeof(t)=="undefined"||t==null)&&!I3){t=GL}if(typeof(t)=="undefined"||t==null){try{I0=FU.GetStringFromName(I1);if(I0==""){return EF["en-US"].GetStringFromName(I1)}}catch(I2){if(!z){}}}else{try{if(typeof(EF[t])=="undefined"){EF[t]=Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService).createBundle("chrome://lastpass-locales/content/"+t+"/lang.properties")
}I0=EF[t].GetStringFromName(I1)}catch(I2){if(!z){}return LP.lpgs(I1,null,z,true)}if(I0==""){return LP.lpgs(I1,null,z,true)}}return I0}var GY="chrome://lastpass/";if(this.lpmainprefs.prefHasUserValue("general.useragent.extra.zzlastpass")){this.lpmainprefs.clearUserPref("general.useragent.extra.zzlastpass")
}this.getBrowser=function(){if(LP.isFennec){return LP.fennecBrowser.selectedBrowser}var I0=LP.lpGetCurrentWindow();if(null!=I0&&typeof(I0.getBrowser)=="function"){return I0.getBrowser()}I0=LP.mostRecent();if(null!=I0&&typeof(I0.getBrowser)=="function"){return I0.getBrowser()}var z=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var I1=z.getEnumerator("");while(I1.hasMoreElements()){I0=I1.getNext();if(null!=I0&&typeof(I0.getBrowser)=="function"){return I0.getBrowser()}if(I0&&I0.document&&typeof(I0.document.getElementsByTagName)=="function"){var e=I0.document.getElementsByTagName("browser");for(var t=0;t<e.length;t++){if(e[t].contentWindow.location.href!="about:blank"){return e[t]
}}if(e.length>0){return e[e.length-1]}}}};this.lpUnload=function(I4,I6){try{var I8=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);var I1=I8.getEnumerator("");var I3=0;while(I1.hasMoreElements()){var z=I1.getNext();if(typeof(z.getBrowser)=="function"){var I5=z.getBrowser();
if(null!=I5){var I2=I5.browsers;if(I2){I3++;break}}}}if(I3==0){for(var t in o){if(typeof(o[t])!="undefined"&&o[t]!=null){o[t].close();o[t]=null}}o=new Array()}var I7=I4.document.getElementById("appcontent");if(!I7){I7=window.document.getElementById("browser_content")}if(I7){I7.removeEventListener("DOMContentLoaded",LP.lponcontentloaded,false);
I7.removeEventListener("pageshow",LP.lploadpage,false);I7.removeEventListener("submit",LP.lpsubmitafter,false);I7.removeEventListener("lpformsubmit",LP.lpformsubmit,false,true);I7.removeEventListener("change",LP.lpfieldchange,false);if(typeof(I4.getBrowser)=="function"){I4.getBrowser().tabContainer.removeEventListener("TabSelect",LP.lptabselect,false)
}}I4.removeEventListener("load",LP.lpToolbarInit,false);I4.removeEventListener("unload",LP.lpUnload,false);I6.documentElement.removeEventListener("DOMNodeInserted",HJ,false)}catch(I0){}};this.lptabselect=function(z){if(LP.isFennec){LP.lpRebuildToolsMenu_all();return}var I0;try{I0=LP.getBrowser().selectedTab.linkedBrowser
}catch(I2){return}var t=LP.lpgetcurrenturl(I0);LP.mostRecent().setTimeout("LP.lpRebuildToolsMenu_all()",0);var I1=I0.contentDocument;if(typeof(I1.LPlpshowednote)!="undefined"&&1==I1.LPlpshowednote){if(LP.getBrowser().getNotificationBox(I0).allNotifications.length==0){LP.mostRecent().setTimeout(function(){HA(I0,I0.contentDocument)
},0)}else{LP.mostRecent().setTimeout(function(){if(LP.getBrowser().getNotificationBox(I0).allNotifications.length==0){HA(I0,I0.contentDocument)}},500)}}};this.lp_getFFVersion=function(){var z=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("extensions.");
var t=null;if(z.prefHasUserValue("lastAppVersion")){t=z.getCharPref("lastAppVersion")}else{try{var z=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("general.useragent.");if(z){var I0=z.getCharPref("extra.firefox").match(/\/([0-9.]+)$/);
if(I0){t=I0[1]}}}catch(I1){}}return t};this.GotoURL=function(t){if(t!=0){var e=G9[t];if(e==null){return}Au(e.url)}};this.lpOpenEditWindow=function(I5,t,I7,Je,I8,Jf,I3){if(!DH){this.lpOpenLogin();return}if(I5!=0){for(var I9 in o){if(typeof(o[I9])!="undefined"&&o[I9]!=null){if(typeof(o[I9].aid)!="undefined"&&o[I9].aid==I5){o[I9].focus();
return}}}}if(typeof(Je)=="undefined"||Je==null){Je=LP.lpGetCurrentWindow()}if(I5!=0){var Ja=G9[I5];if(Ja==null){Ja=CK[I5]}if((Ja.sn&&FS)||(!Ja.sn&&GX)||Ja.pwprotect){if(!LP.securityPrompt(Je)){return}}}var Jg=false;if(I5!=0||t||I7){Jg=true}else{if(I8){Je.openDialog(GY+"content/siteinfo.xul","_blank","resizable=yes,chrome,titlebar,toolbar,centerscreen",0,0,0,"","",Je.getBrowser(),null,I3)
}else{var Jh=false;var I1="",e="";var Ji=Je.getBrowser().contentDocument;var Jd=false;if(typeof(Ji)!="undefined"){var I0=Ji.getElementsByTagName("form");for(var Jc=0;Jc<I0.length;Jc++){Jh=true;var Jb=I0[Jc].elements;for(var I6=0;I6<Jb.length;I6++){var z=Jb[I6];if("text"==z.type&&z.value.length&&!I1.length){I1=z.value
}else{if("password"==z.type&&z.value.length&&!e.length){e=z.value}else{if(("text"==z.type||"password"==z.type)&&z.value.length){Jd=true}}}}if(I1.length&&e.length&&Jd){break}}}if(I1.length&&!e.length){I1="";Jd=true}var I4=false;if(Jd){if(LP.lpConfirmYesNo(LP.lpgs("We've detected populated fields on this page.  Would you like to save all fields on this page?"))){Je.openDialog(GY+"content/siteinfo.xul","_blank","resizable=yes,chrome,titlebar,toolbar,centerscreen",0,0,0,"","",Je.getBrowser());
I4=true}}if(!I4){if(Jh&&e.length){Je.openDialog(GY+"content/siteinfo.xul","_blank","resizable=yes,chrome,titlebar,toolbar,centerscreen",0,0,0,I1,e)}else{if(LP.lpConfirmYesNo(LP.lpgs("ManuallyAddSite"))){Jg=true}}}}}if(Jg){var I2=Je.openDialog(GY+"content/siteinfo.xul","_blank","resizable=yes,chrome,titlebar,toolbar,centerscreen",I5,t,I7);
I2.aid=I5;o.push(I2)}};this.lpOpenGenPWWindow=function(z){if(typeof(z)=="undefined"){var e=LP.getBrowser();var t=Cx(e,e.contentDocument,true);if(t){z=new Object();z.browser=e;z.extra=t}}LP.lpGetCurrentWindow().openDialog(GY+"content/genpw.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal",z)};
this.mostRecent=function(){var t=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);var e=t.getMostRecentWindow("navigator:browser");if(e){return e}return G4};this.lpSetCurrentWindow=function(e){G4=e};this.lpGetCurrentWindow=function(){if(LP.gecko_version()<"1.9.2"&&G4){return G4
}else{return LP.mostRecent()}};this.lpCopyUsername=function(t){var e=y(G9[t],0);if(!LP.lpCopyStringToClipboard(e)){LP.lpalert_ex(LP.lpgs("ErrorCopyingToClipboard"))}};this.numsites=function(){return EU};this.lpCopyPassword=function(t){if(G9[t].sharedfromaid!=null&&G9[t].sharedfromaid!=""&&G9[t].sharedfromaid!="0"){LP.lpalert_ex(LP.lpgs("This is a shared site. You are not permitted to view the password."));
return}if(H3||G9[t].pwprotect){if(!LP.securityPrompt()){return}}var e=y(G9[t],1);if(!LP.lpCopyStringToClipboard(e)){LP.lpalert_ex(LP.lpgs("ErrorCopyingToClipboard"))}};this.lpCloseMenus=function(e){if(e.getElementById("lpt_lastpass-accts")&&typeof(e.getElementById("lpt_lastpass-accts").hidePopup)=="function"){e.getElementById("lpt_lastpass-accts").hidePopup()
}if(e.getElementById("lpt_lastpass-securenotes")&&typeof(e.getElementById("lpt_lastpass-securenotes").hidePopup)=="function"){e.getElementById("lpt_lastpass-securenotes").hidePopup()}if(e.getElementById("lpt_lp-tools-menu")&&typeof(e.getElementById("lpt_lp-tools-menu").hidePopup)=="function"){e.getElementById("lpt_lp-tools-menu").hidePopup()
}if(e.getElementById("lpt_status-bar-menu")&&typeof(e.getElementById("lpt_status-bar-menu").hidePopup)=="function"){e.getElementById("lpt_status-bar-menu").hidePopup()}if(e.getElementById("lpt_lastpass-compact-menu")&&typeof(e.getElementById("lpt_lastpass-compact-menu").hidePopup)=="function"){e.getElementById("lpt_lastpass-compact-menu").hidePopup()
}};this.log=function(e){};function P(t){if(Bv){var e=Components.classes["@mozilla.org/consoleservice;1"].getService(Components.interfaces.nsIConsoleService);e.logStringMessage(t)}}function w(Ji,I9,z){var Js=I9.getElementById("eventdata1")?I9.getElementById("eventdata1").value:"";var Jr=I9.getElementById("eventdata2")?I9.getElementById("eventdata2").value:"";
var Jp=I9.getElementById("eventdata3")?I9.getElementById("eventdata3").value:"";var Jo=I9.getElementById("eventdata4")?I9.getElementById("eventdata4").value:"";var Jn=I9.getElementById("eventdata5")?I9.getElementById("eventdata5").value:"";switch(Ji){case"login":var Jm=Js.toLowerCase().replace(/\s*/g,"");
var Jy=Jr;var Je=Jp;var Jv=Jo;var Jt=Jv=="webrootaso"?"":Jn;var Jl=Jv=="webrootaso"?Jn:"";if(Jm==""&&Jy==""&&Je==""){if(!DH){LP.lplogincheck("websitelogin")}else{}}else{if(Jm!=""&&Jy!=""){var I0=false;keybin=GS(Jy);keyhexold=A1(Hk?Hk:"");if(DH&&EV==Jm&&keyhexold==Jy){}else{if(DH&&EV==Jm){Ft(keybin);R()
}else{if(DH&&EV!=""){DS();I0=true}else{if(DH&&EV==""){HX("login invalid state A")}else{if(!DH&&EV!=""){}else{I0=true}}}}}if(I0){Ft(keybin);if(Jt!=""){Gx=Jt}if(Je!=""){if(Jv=="webrootaso"){if(Jl!=""){AR("login",{data0:Jm,data1:Jl})}var Jc=0;if(Jc){Ft("");ET=(new Date()).getTime();LP.mostRecent().setTimeout(function(){AR("logincheck")
},2000)}else{Dd("webrootwebsitelogin",null,Jm,Je)}}else{LP.lplogincheck("websitelogin")}}else{LP.lplogincheck("websitelogin")}}}else{HX("login invalid params  username="+Jm+" wxhash="+Je+" keyhex=xxx")}}break;case"logoff":if(DH){DS(false)}break;case"refresh":if(DH){var I8=I9.getElementById("eventdata1");
var I7=I9.getElementById("eventdata2");if(I8&&I8.value=="settings"){var Jb=(I7&&I7.value=="2")?"websiterefreshrsa":"websiterefresh";Dd(Jb)}else{LP.lpGetAccounts()}}break;case"rsaencrypt":Z(Ji,I9);break;case"rsadecrypt":EM(Ji,I9);break;case"keyweb2plug":var Jx=Js;var Jm=Jr.toLowerCase().replace(/\s*/g,"");
var Jw=Jp;if(Jm==""||Jx==""){HX("keyweb2plug invalid params cmd="+Jw+" username="+Jm+" localkey=xxx")}else{if(Jw=="2"){O();Ft(GS(Jx));R()}else{}}break;case"keyplug2web":var I8=I9.getElementById("eventdata1");var I7=I9.getElementById("eventdata2");var I5=I9.getElementById("eventdata3");var I3=I9.getElementById("eventdata4");
var I2=I9.getElementById("eventdata5");if(I8&&I7){if(EV==""){break}var Jf=z.directory;var Jd=z.file;Jf=Jf.replace(new RegExp("^/~[^/]*"),"");if(Jf!=""&&Jf!="/"&&Jf!="/sso/"&&Jf!="/sso/webroot/"&&Jf!="/sso/aso/"&&Jf!="/webroot/"){break}Jd=Jd.replace(new RegExp("#"),"");if(Jd!=""&&Jd!="index.php"&&Jd!="import.php"&&Jd!="export.php"&&Jd!="otp.php"&&Jd!="frameset.php"&&Jd!="frame_login.php"&&Jd!="gettopost.php"&&Jd!="webrootaso.html"&&Jd!="misc_challenge.php"){break
}var Jy="none";if(I8&&I8.value==""){I8.value=F4(EV);if(Hk!=""){Jy=A1(Hk)}}else{if(F4(I8.value)!=F4(EV)){if(DH){DS();break}}else{if(Hk!=""){Jy=A1(Hk)}}}if(I5){I5.value=DF}if(I3){I3.value=LP.GetIdentity()}if(I2){I2.value=Ae}I7.value=Jy}break;case"getuuid":var I8=I9.getElementById("eventdata1");I8.value=LP.getuuid();
break;case"switchidentity":var I8=I9.getElementById("eventdata1");var Jh="";if(I8){Jh=I8.value}var Ja=false;for(var Ju=0;Ju<GA.length;Ju++){if(GA[Ju].iid==Jh){Ja=true}}if(!Ja){Jh=""}if(Jh!=LP.GetIdentity()){LP.lpIdentityHelper(Jh,true)}break;case"clearcache":Fy(".lps");Fy(".xml");Fy(".key");break;case"getimportdata":var Jf=z.directory;
var Jd=z.file;Jf=Jf.replace(new RegExp("^/~[^/]*"),"");if(Jf!=""&&Jf!="/"&&Jf!="/sso/"){break}if(Jd!="import.php"){break}I9.getElementById("source").value=GM;I9.getElementById("t").value=GG(Dl._utf8_encode(HN));I9.getElementById("b64").value="1";I9.getElementById("utf8").value="1";I9.getElementById("encryptandstore").click();
GM=HN="";break;case"recover":var Jf=z.directory;var Jd=z.file;Jf=Jf.replace(new RegExp("^/~[^/]*"),"");if(Jf!=""&&Jf!="/"&&Jf!="/sso/"){break}if(Jd!="recover.php"){break}var I4="";var I8=I9.getElementById("eventdata1").value;var Jk=CB(I8)+"_ff.sotp";var t=CB(I8)+"_ff.otp";if(!AC(Jk)&&!AC(t)){I4="nouser"
}else{if(AC(Jk)){I4=IJ(B(Jk),true);I4=A1(I4)}else{I4=A1(B(t))}}I9.getElementById("eventdata2").value=I4;break;case"gohome":if(CT){return}I9.location.href="chrome://lastpass/content/home.xul";var Jg=I9.getElementById("eventdata1");var e=I9.getElementById("eventdata2");if(Jg&&e){Jg=Jg.value;e=e.value;if(Jg!=""&&e!=""){DS();
Gy(e);LP.lpOpenLogin(null,Jg)}}break;case"setupmultifactor":if(Jr==EV){if(I9.getElementById("eventdata3")){I9.getElementById("eventdata3").value="working"}var Jj="type="+LP.en(Js)+"&username="+LP.en(Jr);LP.lpMakeRequest(LP.lp_base+"setupmultifactor.php",Jj,DP,function(){B3(I9.getElementById("eventdata3"))
},{resultinput:I9.getElementById("eventdata3"),password:""})}else{if(I9.getElementById("eventdata3")){I9.getElementById("eventdata3").value="error"}}break;case"setupsinglefactor":var I6=Jn=="1";if(Jr==EV&&GS(CB(Jr+Jp))==Hk){if(!I6&&I9.getElementById("eventdata4")){I9.getElementById("eventdata4").value="working"
}var Jj="type="+LP.en(Js)+"&username="+LP.en(Jr);LP.lpMakeRequest(LP.lp_base+"setupmultifactor.php",Jj,DP,function(){B3(I6?null:I9.getElementById("eventdata4"))},{resultinput:I6?null:I9.getElementById("eventdata4"),password:Jp})}else{if(!I6&&I9.getElementById("eventdata4")){I9.getElementById("eventdata4").value="error"
}}break;case"checkmultifactorsupport":if(I9.getElementById("eventdata3")){if(Js=="trueapi"){I9.getElementById("eventdata3").value=Fl()&&typeof(BA.trueapi_supported)=="function"&&BA.trueapi_supported()?"done":"error"}else{I9.getElementById("eventdata3").value="error"}}break;case"multifactorauth":if(I9.getElementById("eventdata3")){I9.getElementById("eventdata3").value="working";
var I1="";if(Js=="trueapi"){var Jq=CB(CB(F4(Jr)+Js));if(Jq.length!=64){if(Fl()&&typeof(BA.trueapi_get_hash)=="function"){Jq=BA.trueapi_get_hash(Jr)}}I1=Jq!=""?CB(Jq+Jo):""}if(I1==""){I9.getElementById("eventdata3").value="error"}else{I9.getElementById("eventdata5").value=I1;I9.getElementById("eventdata3").value="done"
}}break}}function DP(I4,e,z){if(4==I4.readyState){var t=z.resultinput;var I6=z.password;if(200==I4.status&&I4.responseXML!=null&&I4.responseXML.documentElement!=null){var I0=I4.responseXML.documentElement;var I5=I0.getElementsByTagName("ok");if(I5.length>0){var I2=I5[0].getAttribute("type");var I1=I5[0].getAttribute("hash");
if(I2=="trueapi"){if(I6!=""){if(Fl()&&typeof(BA.trueapi_store_default_login)=="function"){if(BA.trueapi_store_hash(EV,I1)){var I3=t?BA.trueapi_get_hash(EV):I1;if(I3==I1){if(BA.trueapi_store_default_login(EV,I6,I1)){LP.lpprefsSetCharPref("singlefactortype",I2,false);LP.lpprefsSetBoolPref("openloginstart",true,false);
LP.flush_prefs();if(t){t.value="done"}return}}}}}else{if(Fl()&&typeof(BA.trueapi_store_hash)=="function"){if(BA.trueapi_store_hash(EV,I1)){var I3=t?BA.trueapi_get_hash(EV):I1;if(I3==I1){if(t){t.value="done"}return}}}}}}}B3(t)}}function B3(e){if(e){e.value="error"}}this.lpfieldchange=function(e){var I1=e?e.target:this;
if(I1.form){n=I1.form;var t=I1;if(E0(t)!=""&&(t.type=="text"||t.type=="password")){var I0=false;for(var z=0;z<AJ.length;z++){if(AJ[z].formname==E0(n)&&AJ[z].name==E0(t)){AJ[z].value=t.value;I0=true;break}}if(!I0){var I2=new BT();I2.name=E0(t);I2.type=t.type;I2.value=t.value;I2.formname=E0(n);AJ[AJ.length]=I2
}}}};this.lpgetcurrenturl=function(t){try{if(!t){if(typeof(getBrowser)=="function"){t=getBrowser()}else{t=LP.getBrowser()}}return t.contentWindow.location.href}catch(z){}return null};this.lpgetcurrenttitle=function(t){try{if(!t){t=getBrowser()}return t.contentDocument.title}catch(z){HX("Error getting current title: "+z+" ln: "+z.lineNumber)
}return null};this.lponcontentloaded=function(I6){try{n=null;AJ=new Array();var I4=I6.originalTarget;if(q(I4)){return}I4._LP_STATE="contentloaded";var I0=HQ(I4);if(!I0&&LP.isFennec){LP.lpRebuildToolsMenu_all()}if(!I0){return null}var I5=I0.contentDocument==I4?true:false;var I7=I4.location.href;var I2=ED(I7);
if(I5){var I1=LP.getBrowser().getNotificationBox(I0);if(I1){var z=I1.currentNotification;if(z&&typeof(z.choices)!="undefined"&&z.persistence!=1){z.lpoldnotification=true}}}if(!EN[I0]){Dy[I0]=null;HD[I0]=null;EW[I0]=null;AV[I0]=null}if(LP.lpis_win&&I5){if(LP.getBrowser().selectedTab&&I0==LP.getBrowser().selectedTab.linkedBrowser){LP.lpGetCurrentWindow().setTimeout("LP.lpRebuildToolsMenu_all()",0)
}}if(!EN[I0]){var I8=true;var t=new Array();if(Dn(I0,null,null,I8,t)){Ar(I0.contentDocument,t.aid);F7(I0.contentDocument,LP.lpgs("Waiting for the website to finish loading..."));EN[I0]=true}else{if(typeof(Ht)!="function"||F0==I0){E8(I4,false,true)}}}if(I5){EP();if(I4&&I4.documentElement){I4.documentElement.addEventListener("DOMNodeInserted",HJ,false)
}EN[I0]=false}}catch(I3){HX("Content Loaded: "+I3+" ln: "+I3.lineNumber,I7)}};function q(t){var z=t.getElementsByTagName("meta");for(var e=0;e<z.length;e++){if(z[e].httpEquiv&&z[e].httpEquiv=="refresh"&&z[e].content&&z[e].content.match(/^0;/)){return true}}return false}function HJ(t){var e=t.target;if(typeof(e.wrappedJSObject)!="undefined"){e=e.wrappedJSObject
}if(e.nodeName=="IFRAME"||e.nodeName=="FRAME"){e.addEventListener("load",function(z){FD(LP.getBrowser().contentDocument)},false);e.addEventListener("unload",IK,false)}}function IK(t){var e=t.target;if(typeof(e.wrappedJSObject)!="undefined"){e=e.wrappedJSObject}if(e.nodeName=="IFRAME"||e.nodeName=="FRAME"){e.removeEventListener("load",function(z){FD(LP.getBrowser().contentDocument)
},false);e.removeEventListener("unload",lpNodeRemove,false)}}this.lploadpage=function(e){var I1=e.originalTarget;if(q(I1)){return}I1._LP_STATE="pageshow";FD(I1);if(typeof(I1.lastpass_domcontent_redo)!="undefined"){LP.setTimeout(I1.lastpass_domcontent_redo,250)}var z=HQ(I1);if(z){var I0=z.contentDocument==I1?true:false;
if(!LP.lpis_win&&I0){if(LP.getBrowser().selectedTab&&z==LP.getBrowser().selectedTab.linkedBrowser){LP.lpGetCurrentWindow().setTimeout("LP.lpRebuildToolsMenu_all()",0)}}}if(typeof(I1.LPlpinvisiblepw2)!="undefined"&&I1.LPlpinvisiblepw2){I1.LPlpinvisiblepw2=false;if(typeof(LP.getBrowser().getNotificationBox)=="function"){LP.lpGetCurrentWindow().setTimeout(function(){HA(z,z.contentDocument)
},500)}DY(z,I1)}else{if(typeof(I1.LPlpinvisiblepw)!="undefined"&&I1.LPlpinvisiblepw){I1.LPlpinvisiblepw=false;if(typeof(LP.getBrowser().getNotificationBox)=="function"){LP.lpGetCurrentWindow().setTimeout(function(){if(LP.getBrowser().getNotificationBox(z).allNotifications.length==0){HA(z,z.contentDocument)
}},500)}DY(z,I1)}else{if(z){var t=AN(z.contentWindow.location.href);if(typeof(Fv[t])!="undefined"){DY(z,I1)}}}}I1._LP_STATE="pageshowdone"};function DY(z,I2){if(As(z.contentWindow.location.href)){return}try{var t=z.contentWindow;while(t.top!=null&&t.top!=t){t=t.top}var I0=t.document;if(typeof(I0.LPlpinstalledclick)=="undefined"){I0.addEventListener("mouseup",Dv,false);
I0.LPlpinstalledclick=true}else{if(I2==I0){I0.LPlpnoinstalledclick=true}}}catch(I1){}}function G3(){var e=Gz();if(e!=""&&AC(e)){U(e)}}function Gz(){var t=Ai;if(t==""||t==null){return""}var e=t+"_retry5.lps";e=e.toUpperCase();return e}function Ie(I2,I1){try{var z=I2.getElementsByTagName("HEAD");if(z&&z.length>0){var t=I2.createElement("SCRIPT");
t.appendChild(I2.createTextNode(I1));z[0].appendChild(t)}}catch(I0){HX("Failure with appending JS: "+I0+" ln: "+I0.lineNumber,null)}}function FD(I7){var I9=null;try{var I2=HQ(I7);if(!I2){return null}I9=I7.location.href;if(typeof(I7.forms)!="undefined"&&I7.forms.length>0){var t="try {  for(var lastpass_iter=0; lastpass_iter < document.forms.length; lastpass_iter++){    var lastpass_f = document.forms[lastpass_iter];    if(typeof(lastpass_f.lpsubmitorig)==\"undefined\"){      if (typeof(lastpass_f.submit) == \"function\") {        lastpass_f.lpsubmitorig = lastpass_f.submit;        lastpass_f.submit = function(){          var form = this;          try {            if (document.documentElement && 'createEvent' in document)            {              var forms = document.getElementsByTagName('form');              for (var i=0 ; i<forms.length ; ++i)                if (forms[i]==form)                {                  var element = document.createElement('lpformsubmitdataelement');                  element.setAttribute('formnum',i);                  element.setAttribute('from','submithook');                  document.documentElement.appendChild(element);                  var evt = document.createEvent('Events');                  evt.initEvent('lpformsubmit',true,false);                  element.dispatchEvent(evt);                  break;                }            }          } catch (e) {}          try {            form.lpsubmitorig();          } catch (e) {}        }      }    }  }} catch (e) {}";
Ie(I7,t)}var I8=false;if(typeof(Ht)=="function"&&F0==I2){I8=true;Ht();Ht=null}E8(I7,I8);var I0=IR(I9);var I1=ED(I9,I0);var I6=J(I0.host,I9);if(LP.compare_tlds(I6,"netvibes.com")){DY(I2,I7)}var I4=H0(I2,I9,null,"lploadpagedoc");if(!DH&&!I4&&!As(I9,I0)&&Br(null,I7)){if(!Gh){if(Iv){var I3=LP.getBrowser().selectedTab.linkedBrowser.contentDocument;
I3.LPlpUseLastPassLogin=true;BQ(I3)}else{var z=null;Cz("UseLastPassLogin",I2,0,"login",z)}}}}catch(I5){HX("Failure with loading page: "+I5+" ln: "+I5.lineNumber,I9)}}function BQ(I6,I7,I2,I0){if(typeof(I0)=="undefined"){I0=1}if(I0>10){return null}var I1=LP.getBrowser().selectedTab.linkedBrowser.contentDocument;
if(I6==I1&&typeof(I1.LPlpm_setupFocusHandler)!="undefined"&&I1.LPlpm_setupFocusHandler==true){return}else{if(I6==I1){I1.LPlpm_setupFocusHandler=true}}if(typeof(I6.forms)=="undefined"){return}var e=I6.forms;for(var z=0;e&&z<e.length;z++){var I3=0;var I5=e[z].elements;if(typeof(I5)=="undefined"){continue
}for(var t=0;t<I5.length;t++){if(I7&&I5[t].type!="password"){continue}if(I5[t].type=="text"||I5[t].type=="password"||I5[t].type=="select-one"||I5[t].type=="textarea"||I5[t].type=="radio"){if(I5[t].type=="text"){var I4=new RegExp(LP.lpgs("ff_search_regexp"),"i");if(I5[t].name!=""&&I4.exec(I5[t].name)){continue
}}if(I3>20){break}else{I3++}I5[t].addEventListener("focus",function(I8){LP.FieldFocus(I8)},false)}}}if(typeof(I2)=="undefined"||I2==null){I2=LP.getBrowser().selectedTab.linkedBrowser.contentWindow}if(I2&&I2.frames){for(var z=0;z<I2.frames.length;z++){if(I2.frames[z].document){BQ(I2.frames[z].document,I7,I2.frames[z].window,I0+1)
}}}}this.checkAddTimer=function(t,e){if(typeof(Bz[e])!="undefined"&&Bz[e]!=null){if(Bz[e].show_count==0){H0(t,Bz[e].url,true,"LP.checkAddTimer",e)}else{}}else{}};function H0(Je,I4,I2,Jb,z){var I0=IR(I4);var I7=J(I0.host,I4);var I9=false;if(!DH){var e=Ab();var I3=new Array();for(var Jc in G7){var I5=G7[Jc];
if(I5!=null&&e>(I5.timeSaved+60*5)){G7[Jc]=null}}var I8=new Array();for(var Jc in G7){if(G7[Jc]){I8.push(G7[Jc])}}G7=I8;for(var Jc in Bz){var I5=Bz[Jc];if(I5!=null&&e>I5.timeSaved+(60*5)){Bz[Jc]=null}}var Ja=new Array();for(var Jc in Bz){if(Bz[Jc]){Ja.push(Bz[Jc])}}Bz=Ja}for(var Jc in Bz){if(typeof(z)!="undefined"&&Jc!=z){continue
}var I1=Bz[Jc];if(I1&&I1.ignorefromcheckadd){continue}if(I1){}if(I1&&(LP.compare_tlds(I7,I1.tld)||LP.compare_tlds(I7,I1.actiontld)||LP.compare_tlds(I7,I1.topdoctld)||I1.basic_auth)){var t=null;if(I1.basic_auth){var Jd=I1.postdata;var I6;if(LP.compare_tlds(I7,I1.tld)||LP.compare_tlds(I7,I1.actiontld)){I6=LP.lpgetcurrenturl(Je)
}else{I6=I1.url}Jd+="&url="+LP.en(A1(I6));I1.ai.url=I6;t=function(){BZ(Jd,I1.ai)};Bz[Jc]=null}else{var Jf=Jc;t=function(){DV(Jf,Je,I2)}}if(!DH&&!As(I4,I0)){if(!Gh){Cz("UseLastPassCapture",Je,0,"login",t);I9=true}}else{LP.lpGetCurrentWindow().setTimeout(t,100);return I9}}}return I9}function E8(I5,I6,I4){var I2=HQ(I5);
if(!I2){return null}var I7=null;try{I7=LP.lpgetcurrenturl(I2);var z=IR(I7);var I0=ED(I7,z);if(!I4){var t=Gg(I2,I5,I7,z);if(Dn(I2,null,null,null,null,I5,I2.contentWindow,-1)){return}Az(I5)}if(As(I7,z)){return}var I1=false;if(true){I1=HA(I2,I5,t)}if(I1){I5.LPlpshowednote=1;if(I4){HD[I2]=I7;EN[I2]=true}}if(!I1&&!I6&&(I4||!EW[I2])){if(Cx(I2,I5)){if(I4){EW[I2]=I7;
EN[I2]=true}}else{if((I4||!AV[I2])){if(FT(I2,I5)){if(I4){AV[I2]=I7;EN[I2]=true}}else{}}}}}catch(I3){HX("lpcheckpage: caught: "+I3+" ln: "+I3.lineNumber,I7)}}function HA(J8,Jo,Jq,Jl,Jx){if(!J8){return false}if(!Jo||typeof(Jo)=="undefined"){return false}var Jp=null;var JQ=J8.contentWindow;try{var J6=LP.lpgetcurrenturl(J8);
var JO=IR(J6);var JS=ED(J6,JO);var J9=J(JO.host,J6);if(DU(JS,GP)||DU(J9,GP)){return}Jp=Jo.location.href;var JK=IR(Jp);var JW=typeof(JK.path)=="string"?JK.path.split("/"):new Array();var Jk=ED(Jp,JK);var Jm=J(JK.host,Jp);if(""==Jm){if(Jp.indexOf("file")==0){Jm="file"}else{if(Jp.indexOf("javascript")==0){Jm="JAVASCRIPT"
}else{Jm="UNKNOWN"}}}var I3=Jk;var I4=Jk;var Kb=false;var JZ=false;if(!DU(Jk,B4)){var Jb=0;var Jj="";var Kc=0;var Jn=0;var Jf=typeof(Fv[Jm])!="undefined"?Fv[Jm]:new Array();for(var JB in Jf){if(typeof(G9[JB])=="undefined"||G9[JB].genpw||G9[JB].isbookmark){continue}if(G9[JB].logins){for(var JA=0;JA<G9[JB].logins.length;
JA++){var Ji=IR(G9[JB].logins[JA].url);if(G9[JB].save_all){if(LP.compare_urls(ED(G9[JB].logins[JA].url,Ji),Jk,true)){Kb=false;I3=Jk;JZ=true}break}if(LP.compare_tlds(G9[JB].logins[JA].tld,Jm)){var Js=BD(G9[JB].logins[JA].password);var Jt=BD(G9[JB].logins[JA].openid_url);var JY=JA<G9[JB].logins.length-1?true:false;
var JL=G9[JB].logins[JA].uname;var JI=G9[JB].logins[JA].pname;var I6=Br(JQ,Jo,G9[JB].logins[JA].tld,Js,Jt,JY,JI,JL);var JC=ED(G9[JB].logins[JA].url,Ji);if(I6&&Ev(I6,G9[JB].logins[JA],null,false)){Kb=false;I3=JC;JZ=true;break}Kb=true;if(Jj!=JC){Jb++;I3=Jj=ED(G9[JB].logins[JA].url,Ji)}if(Ji.host==JK.host&&Jn!=JC){Kc++;
I4=Jn=JC}break}}if((Jb>1&&Kc>1)||JZ){break}}}if(Kc==1&&!JZ){I3=I4}else{if(Jb!=1&&!JZ){I3=Jk;Kb=true}}}var JJ=false;var Jy=true;var Jr=new Array();var Jd=AN(I3);for(var I8=0;I8<2;I8++){var Jf=typeof(Fv[Jm])!="undefined"?Fv[Jm]:new Array();for(var JB in Jf){if(typeof(G9[JB])=="undefined"||G9[JB].genpw||G9[JB].isbookmark){continue
}if(G9[JB].logins){var JV=false;var Ke=false;for(var JA=0;JA<G9[JB].logins.length;JA++){var Jc=AN(G9[JB].url);if((I8==0&&LP.compare_urls(ED(G9[JB].logins[JA].url),I3,G9[JB].save_all))||(I8==1&&!G9[JB].save_all&&LP.compare_tlds(Jd,Jc))){if(G9[JB].logins[JA].custom_js!=""){var JX=GI(G9[JB].logins[JA].custom_js,G9[JB].logins[JA].unencryptedUsername,BD(G9[JB].logins[JA].password),"1",false,Jo);
if(JX!=""){}try{if(Jo.body){var Je=Jo.createElement("script");var J1=Jo.createTextNode(JX);Je.appendChild(J1);Jo.body.appendChild(Je)}}catch(JD){HX("Error running custom JS 1: "+JD+" ln: "+JD.lineNumber,I3)}}var Js=BD(G9[JB].logins[JA].password);var Jt=BD(G9[JB].logins[JA].openid_url);var JY=JA<G9[JB].logins.length-1?true:false;
var JL=G9[JB].logins[JA].uname;var JI=G9[JB].logins[JA].pname;var JT=G9[JB].logins[JA].oname;var t=G9[JB].logins[JA].username;var J7=G9[JB].logins[JA].password;var I6=null;if(G9[JB].urid==0){JV=true}var JR=false;var JM=G9[JB].logins[JA];var I7=-1;if(G9[JB].logins[JA].fields.length>0||(typeof(G9[JB].otherlogins)!="undefined"&&typeof(G9[JB].otherlogins[JA])!="undefined"&&G9[JB].otherlogins[JA].fields.length>0)){if(!I6&&JA==0){for(var Ju=G9[JB].otherlogins.length-1;
Ju>=0;Ju--){if(G9[JB].otherlogins[Ju].fields.length>0||G9[JB].otherlogins[Ju].otherfields.length>0){I6=Br(JQ,Jo,G9[JB].logins[JA].tld,Js,Jt,false,G9[JB].otherlogins[Ju].pname,G9[JB].otherlogins[Ju].uname,null,null);if(I6){JM=G9[JB].otherlogins[Ju];I7=Ju;break}}}}if(!I6){I6=Br(JQ,Jo,G9[JB].logins[JA].tld,Js,Jt,JY,JI,JL,null,null)
}if(!I6){I6=Br(JQ,Jo,G9[JB].logins[JA].tld,Js,Jt,JY);if(I6){JV=true;if(JY){I6=null}}}else{JR=true}}else{I6=Br(JQ,Jo,G9[JB].logins[JA].tld,Js,Jt,JY);JV=true}if(I6!=null){if(Kb){if(!Ev(I6,JM,null,false)){JV=true;if(JY){I6=null}}}}if(I6!=null){if(typeof(I6.bHasInvisible)!=undefined&&I6.bHasInvisible==true){Jx=true;
I6.bHasInvisible=false}}var JG=false;if(I6&&JV){fields=Hv(I6);if(fields.password>=2){I6=null}else{if(!JR){JL=fields.uname;JI=fields.pname;JT=fields.oname;if(JM.fields.length==0&&JM.otherfields.length==0){JG=true}}}}var z=I8==0&&G9[JB].save_all&&!Kb?true:false;if(I6&&!z){I6=AB(I6,Jo)}if(I6!=null||z){if(z){JV=false
}else{if(JM.fields.length==0){JV=true}Ke=JV;if(JM.captcha_id!=""&&Ho(I6,JM.captcha_id)){JV=true}}if(!z){for(var Jz=0;Jz<I6.elements.length;Jz++){if((""!=JI&&E0(I6.elements[Jz])==JI&&""!=J7)||(""!=JT&&E0(I6.elements[Jz])==JT)||(""!=JL&&E0(I6.elements[Jz])==JL&&""!=t)||((I6.elements[Jz].type=="text"||I6.elements[Jz].type=="password")&&(CP(E0(I6.elements[Jz]),JM.fields)||(JG&&((t!=""&&I6.elements[Jz].name==JL)||(J7!=""&&I6.elements[Jz].name==JI)||I6.elements[Jz].oname==JT))))){FM(I6.elements[Jz])
}}}var J5=I6&&I6.ownerDocument?I6.ownerDocument:Jo;var Ja=I6&&I6.ownerWindow?I6.ownerWindow:J8.contentWindow;Fj(JM,z,J5,Ja);var JP=false;for(var Jw=0;Jw<Jr.length;Jw++){if(Jr[Jw].id==G9[JB].id){JP=true;break}}if(!JP){if(!JV){Jy=false}var JU=new Gm();JU.realmmatch=false;JU.id=G9[JB].id;JU.onlyfill=JV;
JU.needsnewurid=Ke;JU.otherlogin=I7;JU.url=Jp;var JE=IR(G9[JB].url);JU.urlmatch=ED(G9[JB].url,JE)==Jk?true:false;JU.servermatch=JE.host==JK.host?true:false;JU.serverportmatch=JU.servermatch&&CQ(JE,JK);JU.tldmatch=LP.compare_tlds(G9[JB].tld,Jm)?true:false;var Jh={};JU.formmatch=z?true:Ev(I6,JM,null,false,true,Jh);
JU.needsnewurid|=(Jh.value&&!z);JU.methodok=z?true:(JM.method!="post"||I6.method.toLowerCase()==JM.method?true:false);JU.protocolok=JE.protocol!="https"||JK.protocol=="https"?true:false;JU.fieldmatchcount=z?CI(Jo,JM):0;var J2=typeof(JE.path)=="string"?JE.path.split("/"):new Array();var Jv;for(Jv=0;Jv<JW.length&&Jv<J2.length;
Jv++){if(J2[Jv]!=JW[Jv]){break}}JU.pathlevelmatch=Jv;Jr[Jr.length]=JU}}}}}}}var I1=false;var I5=false;var J3=Ab();Jr.sort(Ac);for(var JB=0;JB<Jr.length;JB++){if(typeof(Im[Jr[JB].id])!="undefined"&&Im[Jr[JB].id]!=null){if(J3-Im[Jr[JB].id]>=300){Im[Jr[JB].id]=null}else{I1=true}}if(!Jr[JB].onlyfill&&G9[Jr[JB].id]&&G9[Jr[JB].id].logins.length>1){I5=true
}if(I1&&I5){break}}var J4=false;if(HE){var I0=Ab();if(I0-BX<HE){J4=true}}var I2=0;J8.lpfieldchanged=false;if(!Jq&&Jl!=true){if(!I2&&Co&&!DI){for(var JB=0;JB<Jr.length;JB++){if(parseInt(G9[Jr[JB].id].never_autofill)!=1){if((!DI&&!G9[Jr[JB].id].pwprotect)||J4){if(Jr[JB].tldmatch&&Jr[JB].formmatch&&Jr[JB].methodok&&Jr[JB].protocolok){var Kd=typeof(Im[Jr[JB].id])!="undefined";
LP.lpLaunchUrl(Jr[JB].id,1,0,J8,true,false,Jr[JB].otherlogin,false,true,Jo);if(Jx&&Kd){Im[Jr[JB].id]=null}I2=Jr[JB].id;Jo.m_filledAid=I2}break}}}}}if(I2!=0&&!J8.lpfieldchanged){I1=false}if(Jr.length>0){var Ka=J8.contentDocument;var JN=false;if(Ka&&typeof(Ka.LPlpaddaccountshown)!="undefined"){JN=true}var I9=false;
if(Jr.length>0){if(typeof(Ka.aid)!="undefined"){for(var JH=0;JH<Jr.length;JH++){var J0=false;for(var JF=0;JF<Ka.aid.length;JF++){if(Ka.aid[JF].id==Jr[JH].id){J0=true;break}}if(!J0){Ka.aid[Ka.aid.length]=Jr[JH];I9=true}}}else{Ka.aid=Jr;Ka.aidindex=-1}if(I2!=0){for(var JB=0;JB<Jr.length;JB++){if(Jr[JB].id==I2){Ka.aidindex=JB;
break}}}}LP.lpRebuildToolsMenu_all();if(!JN&&W){var Jg=Jy?"UseLastPassFill":"UseLastPass";if(I2){Jg="AlreadyFilled"}if(typeof(Jo.LPlpinvisiblepw2)!="undefined"&&Jo.LPlpinvisiblepw2){}else{if(Jx){}else{if(Ka.aid.length>1||I1||I2==0||I5){if(typeof(J8.lastautologintld)!="undefined"&&LP.compare_tlds(J8.lastautologintld,Jm)){if(I1&&!Io(J8,"autologin",true)){if(typeof(J8.brokenCount)=="undefined"){J8.brokenCount=1
}else{J8.brokenCount++}if(Ka.aid.length==1&&J8.brokenCount>1){J8.suppressautloginnotification=true}}}else{J8.lastautologintld=Jm;J8.brokenCount=0;J8.suppressautloginnotification=false}if(!Io(J8,"autologin")&&(typeof(J8.suppressautloginnotification)=="undefined"||J8.suppressautloginnotification==false)){Cz(Jg,J8,Ka.aid,"autologin",Jy,null,I2,I1,false,true)
}else{if(I9){Cz(Jg,J8,Ka.aid,"autologin",Jy,null,I2,I1,true)}}}JJ=true}}}}return JJ}catch(JD){HX("Failure with checking for autologin: "+JD+" ln: "+JD.lineNumber,Jp)}return false}function CI(I7,I6,I4,I1){if(typeof(I1)=="undefined"){I1=1}if(I1>10){return null}if(typeof(I7.getElementsByName)=="undefined"){return null
}var I8=0;for(var t=0;t<I6.otherfields.length;t++){var I2=I6.otherfields[t];var I3=I7.getElementsByName(I2.name);if(I3.length==0){var I5=I7.getElementById(I2.name);if(I5){I3=new Array(I5)}}for(var e=0;e<I3.length;e++){var I5=I3[e];if(E0(I5.form)==I2.formname){I8++}}}if(typeof(I4)=="undefined"||I4==null){var I0=HQ(I7);
I4=I0?I0.contentWindow:null}if(I4&&I4.frames){for(var z=0;z<I4.frames.length;z++){if(I4.frames[z].document){I8+=CI(I4.frames[z].document,I6,I4.frames[z].window,I1+1)}}}return I8}function CQ(I0,z){var t=I0.port!=""?I0.port:AT(I0.protocol);var e=z.port!=""?z.port:AT(z.protocol);return t==e}function AB(t,z,e){if(t){if(!e&&E3){if(t.getAttribute("autocomplete")=="off"){return null
}}if(Be){if((t.method&&t.method.toUpperCase()=="GET")||(typeof(t.action)=="string"&&t.action.indexOf("mailto:")==0)){if(e){if(!LP.lpConfirmYesNo(LP.lpgs("InsecureFormSubmit"))){return null}}else{if(typeof(z.m_warnedUserThisPage)=="undefined"){if(LP.lpConfirmYesNo(LP.lpgs("InsecureForm"))){z.m_warnedUserThisPage=1
}else{z.m_warnedUserThisPage=2;return null}}else{if(z.m_warnedUserThisPage==2){return null}}}}}}return t}function Ac(t,e){if(t.realmmatch!=e.realmmatch){return t.realmmatch?-1:1}else{if(t.urlmatch!=e.urlmatch){return t.urlmatch?-1:1}else{if(t.serverportmatch&&e.serverportmatch&&t.pathlevelmatch!=e.pathlevelmatch){return t.pathlevelmatch>e.pathlevelmatch?-1:1
}else{if(t.serverportmatch!=e.serverportmatch){return t.serverportmatch?-1:1}else{if(t.servermatch!=e.servermatch){return t.servermatch?-1:1}else{if(t.fieldmatchcount!=e.fieldmatchcount){return t.fieldmatchcount>e.fieldmatchcount?-1:1}else{if(G9[t.id].last_touch!=G9[e.id].last_touch){return G9[t.id].last_touch>G9[e.id].last_touch?-1:1
}else{if(G9[t.id].name!=G9[e.id].name){return G9[t.id].name<G9[e.id].name?-1:1}else{return G9[t.id].logins[0].unencryptedUsername<G9[e.id].logins[0].unencryptedUsername?-1:1}}}}}}}}}function AU(t,e){return t.getAttribute("name").toLowerCase()<e.getAttribute("name").toLowerCase()?-1:1}function CP(t,e){for(var z=0;
z<e.length;z++){if(e[z].name==t&&e[z].value!=""){return true}}return false}function Cx(Jn,Jo,Jf,I3,I9){if(typeof(I9)=="undefined"){I9=1}if(I9>10){return null}var Jm=typeof(LP.getBrowser().getBrowserForDocument)=="function"?LP.getBrowser().getBrowserForDocument(Jo):null;if(Jm){Jn=Jm}if(!Jn){return null
}var Jc=null;try{if(!Jf&&(Io(Jn,"autologin")||Io(Jn,"generate"))){return null}Jc=Jo.location.href;var I7=IR(Jc);var Ja=ED(Jc,I7);var Jj=J(I7.host,Jc);if(DH&&(Jf||(DB&&!DU(Ja,Ib)&&!DU(Jj,Ib)))){var I2=Jo.getElementsByTagName("form");for(var Jk=0;Jk<I2.length;Jk++){if((typeof(Jk.offsetLeft)!="undefined"&&Jk.offsetLeft<0)||(typeof(Jk.offsetTop)!="undefined"&&Jk.offsetTop<0)){continue
}var Jd=Hv(I2[Jk]);if((2<=Jd.password&&Jd.password<=4)&&(2<=Jd.passwordvisible&&Jd.passwordvisible<=4)&&Jd.passwordsContiguous==true){if(!Jf){var I4=LP.lpgetcurrenturl(Jn);F6[I4]=I2[Jk];var I8=FT(Jn,Jo,false,true);var I1=false;var I6=A9(I2[Jk]);var I0=new Array();if(I6){I1=true;Il[I4]=I6;var Jh=typeof(I7.path)=="string"?I7.path.split("/"):new Array();
var z=typeof(Fv[Jj])!="undefined"?Fv[Jj]:new Array();for(var Ji in z){if(typeof(G9[Ji])=="undefined"||G9[Ji].genpw||G9[Ji].isbookmark){continue}if(G9[Ji].password!=""){var Jg=new Gm();Jg.realmmatch=false;Jg.id=G9[Ji].id;var Jb=IR(G9[Ji].url);Jg.urlmatch=ED(G9[Ji].url,Jb)==Ja?true:false;Jg.servermatch=Jb.host==I7.host?true:false;
Jg.serverportmatch=Jg.servermatch&&CQ(Jb,I7);var t=typeof(Jb.path)=="string"?Jb.path.split("/"):new Array();var Je;for(Je=0;Je<Jh.length&&Je<t.length;Je++){if(t[Je]!=Jh[Je]){break}}Jg.pathlevelmatch=Je;Jg.url=Jc;Jg.fieldmatchcount=0;I0[I0.length]=Jg}}I0.sort(Ac)}LP.lpshowHelpDlg("genpw");if(Iv){var I5=LP.getBrowser().selectedTab.linkedBrowser.contentDocument;
I5.LPlpgenerateandfill=I8;I5.LPlpgenerateAids=I0;I5.LPlpfillcurrent=I1;I5.LPlpgenerateForm=I2[Jk];BQ(I5,!I8)}else{Cz("GeneratePassword",Jn,I0,"generate",I2[Jk],null,I8,I1)}if(I8){Jn.contentDocument.ffidindex=-1}}return I2[Jk]}}}}catch(Jl){HX("Failure with checking generate password: "+Jl+" ln: "+Jl.lineNumber,Jc)
}if(typeof(I3)=="undefined"||I3==null){I3=Jn.contentWindow}if(I3&&I3.frames){for(var Ji=0;Ji<I3.frames.length;Ji++){if(I3.frames[Ji].document){return Cx(Jn,I3.frames[Ji].document,Jf,I3.frames[Ji].window,I9+1)}}}return null}function A9(z){var I0=new RegExp(LP.lpgs("ff_currpass_regexp"),"i");for(var t=0;
t<z.elements.length;t++){var e=z.elements[t];if(e.type=="password"){if(GT(e)){if(I0.exec(E0(e))){return e}else{var I1=AK(e);if(I1!=""&&I0.exec(I1)){return e}}}}}return null}function EP(){try{var t=Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
if(!Hc){Hc=true;t.addObserver(Fi,"http-on-modify-request",false)}}catch(z){HX("Failure with XHR setup: "+z+" ln: "+z.lineNumber)}}var Fi={observe:function(I0,t,I1){try{I0=I0.QueryInterface(Components.interfaces.nsIHttpChannel);var z=I0.URI.asciiSpec;if((t=="http-on-modify-request")&&(As(z))){I0.setRequestHeader("X-LastPass",DF,false);
if(Gx!=""&&z.match(/^https:\/\//i)){I0.setRequestHeader("X-wxsessid",Gx,false)}}if(typeof(DH)=="undefined"){return}if(!DH){return}if(((t=="http-on-modify-request")||(t=="http-on-examine-response"))&&(I0.loadFlags&Components.interfaces.nsIRequest.LOAD_BACKGROUND)){if(I0.notificationCallbacks){var I4=null;
try{I4=I0.notificationCallbacks.getInterface(Components.interfaces.nsIXMLHttpRequest)}catch(I3){if(I3.name=="NS_NOINTERFACE"){}}if(I4&&I0.loadGroup){var I2=null;try{I2=I0.loadGroup.groupObserver.QueryInterface(Components.interfaces.nsIWebProgress).DOMWindow}catch(I3){if(I3.name=="NS_NOINTERFACE"){}I2=null
}if(I2&&t=="http-on-modify-request"){this.requestStarted(I2,I0,I4,I0.requestMethod,I0.URI.asciiSpec)}return}}}}catch(I3){}},requestStarted:function(I7,I4,Ja,t,z){try{var I1=I7;while(I1.parent&&I1!=I1.parent&&I1.parent instanceof Window){I1=I1.parent}var I6=HQ(I1.document);if(!I6){return}var I0=this.readPostTextFromXHR(Ja,I7);
if(!I0){return}var I2=new Array();var I9=I0.split("&");for(var I5=0;I5<I9.length;++I5){var I3=I9[I5].split("=");if(I3.length==2){if(I3[1].length>2000){continue}I2[decodeURIComponent(I3[0])]=decodeURIComponent(I3[1])}else{I2.push(decodeURIComponent(I3[0]))}}S(I7,I2,z)}catch(I8){}},readPostTextFromXHR:function(I6,I2){try{var I0=I6.channel.QueryInterface(Components.interfaces.nsIUploadChannel).uploadStream;
if(I0){var I7=I0.QueryInterface(Components.interfaces.nsISeekableStream);if(I7){I7.seek(Components.interfaces.nsISeekableStream.NS_SEEK_SET,0)}var z=I2.document.characterSet;var t=Components.classes["@mozilla.org/binaryinputstream;1"].createInstance(Components.interfaces.nsIBinaryInputStream);t.setInputStream(I0);
var I1=[];for(var I3=I0.available();I3;I3=I0.available()){I1.push(t.readBytes(I3))}var I5=I1.join("");try{if(I7){I7.seek(Components.interfaces.nsISeekableStream.NS_SEEK_SET,0)}}catch(I4){}return I5}}catch(I4){return null}return null}};function S(I4,I1,Ja){if(I1==null||typeof(I1)!="object"){return}var I9=I4.document;
var t=I9.getElementsByTagName("form");for(var I5=0;I5<t.length;I5++){var I0=t[I5].elements;if(I0==null||typeof(I0)=="undefined"){continue}for(var I6=0;I6<I0.length;I6++){var z=E0(I0[I6]);var I7=I0[I6].type;var I8=I0[I6].value;if(I7=="password"){var Jb=false;for(var I2 in I1){if(I2==z||I1[I2]==I8){Jb=true
}}if(!Jb){continue}var I6=new CG();I6.target=t[I5];I6.doc=I9;LP.lpsubmit(I6);var I3=HQ(I9);H0(I3,Ja,true,"lpHandleSubmitFormByFieldNames");return}}}}function GI(I0,t,I5,I1,z,I4){if(I1=="3"){if(I0.indexOf("lpcurruser")!=-1){if(!I4.getElementById("lpcurruserelt")){if(I4.body){var e=I4.createElement("input");
e.setAttribute("style","display: none;");e.setAttribute("type","text");e.setAttribute("id","lpcurruserelt");e.setAttribute("value","");I4.body.appendChild(e)}}if(I4.getElementById("lpcurruserelt")){I4.getElementById("lpcurruserelt").value=t}}if(I0.indexOf("lpcurrpass")!=-1){if(!I4.getElementById("lpcurrpasselt")){if(I4.body){var I2=I4.createElement("input");
I2.setAttribute("style","display: none;");I2.setAttribute("type","password");I2.setAttribute("id","lpcurrpasselt");I2.setAttribute("value","");I4.body.appendChild(I2)}}if(I4.getElementById("lpcurrpasselt")){I4.getElementById("lpcurrpasselt").value=I5}}}var I3="if (typeof(lpcurruser) == 'undefined') lpcurruser = ''; if (document.getElementById('lpcurruserelt') && document.getElementById('lpcurruserelt').value != '') { lpcurruser = document.getElementById('lpcurruserelt').value; document.getElementById('lpcurruserelt').value = ''; } if (typeof(lpcurrpass) == 'undefined') lpcurrpass=''; if (document.getElementById('lpcurrpasselt') && document.getElementById('lpcurrpasselt').value != '') { lpcurrpass = document.getElementById('lpcurrpasselt').value; document.getElementById('lpcurrpasselt').value = ''; } var lploc="+Hb(I1)+";"+(z==1?"var lponlyfill=1;":"var lponlyfill=null;")+I0+"lpcurruser = ''; lpcurrpass = '';";
I3=I3.replace(/lpcurrpage\./g,"");I3=I3.replace(/lpframe1\./g,"");I3=I3.replace(/lpframe2\./g,"");I3=I3.replace(/lpframe3\./g,"");return I3}function Ho(z,t){if(z&&z.elements&&z.elements.length){for(var e=0;e<z.elements.length;e++){if(E0(z.elements[e])==t){return true}}}return false}function Fj(I8,I5,Jb,I4,I1){if(typeof(I1)=="undefined"){I1=1
}if(I1>10){return null}if(typeof(Jb.getElementsByName)=="undefined"){return null}if(Jb.location!=null&&LP.compare_tlds(I8.tld,AN(Jb.location.href))){for(var t=0;t<I8.otherfields.length;t++){var I2=I8.otherfields[t];var I3=Jb.getElementsByName(I2.name);if(I3.length==0){var I7=Jb.getElementById(I2.name);
if(I7){I3=new Array(I7)}}var I6=false;if(I3.length==0){I6=true;var I0=I2.name.match(/^(input|select|textarea)(\d+)$/);if(I0){var Jc=I0[1];var Ja=parseInt(I0[2]);var I9=Jb.getElementsByTagName(Jc);if(I9.length>Ja){I3=new Array(I9[Ja])}}}for(var e=0;e<I3.length;e++){var I7=I3[e];if((I6||E0(I7.form)==I2.formname)&&I2.value!=""){FM(I7)
}}}}if(I5){if(typeof(I4)=="undefined"||I4==null){I4=browser.contentWindow}if(I4&&I4.frames){for(var z=0;z<I4.frames.length;z++){if(I4.frames[z].document){Fj(I8,I5,I4.frames[z].document,I4.frames[z].window,I1+1)}}}}}function FM(I5,I3){if(I5.type!="text"&&I5.type!="password"){return}var I2=false;if(typeof(I3)=="undefined"){I2=I3=true
}if(D8){var I1=I5.style.width.replace(/px/,"");if(I1==""){try{var I0=I5.ownerDocument.defaultView.getComputedStyle(I5,"");I1=I0.width.replace(/px/,"")}catch(I4){}}if(I1>0&&I1<30){return}var t=I5.style.backgroundImage;if(t==""){try{var I0=I5.ownerDocument.defaultView.getComputedStyle(I5,"");t=I0.backgroundImage
}catch(I4){}}if(t=="none"){t=""}if(t==""){I5.style.backgroundImage=I3?"url(data:image/gif;base64,R0lGODlhEAAQAPZVADsBAkECBFEGCmQDBGoEB3UIDWcOEn0dHnZGRnhBQntbXIILEoIMEoENFI8QGI0UHJMQGKERGqURGq4QGIsaIZ4fJq8WI68YJrQXJLIZJbgZJ7gZKLwcK74dLa4gKq4iLLUgLaApMLwpNrwsOKUzOcAfL8EhMcUjM8YkNMgoOJw+QKY8QtA5Sdo/T6dARa5FS6tOUr9MUqRRVrRVWY9pa5BmaZBqbMRKVNlRYclud/14iLyIiKuoqNGbneyPmfOAkPeElNGvsNO3t+aorfGjq+y/w8zMzNXU1N3S0t7W1t3a2uLR0e3U1vLd4OLh4ejo6Png4/bx8ff09Pr5+f7+/v///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAFYALAAAAAAQABAAAAfEgFaCVlCFhoWDgzk6QD+Oj0A6OYMyLSwdJR2amywtMoITKZgbFRsYIRqaKROCEpgZO1IkMFM7GJgSghGZKEVVQktVQyclJRG6JR8uM1NVVVEvKx7GyDHO11VUVTHUVgEECUlIR+RHSUoJBAGCAAMHKgpO8koIKgcDAIICCwwGRk89gjzhUYABAwGCGly4IIIIkxE3mvgAkeFCA0EPMBQ7gcNEio7FMDwQVAOCBQ6bNnGwAKHGIBoUHMicKZOCjUQ4cw4KBAA7)":""
}else{I2=false}var z=I5.offsetWidth;if(t==""){I5.style.paddingRight=I3?"18px":"0px";I5.style.backgroundRepeat="no-repeat";I5.style.backgroundAttachment="scroll";I5.style.backgroundPosition="center right"}I5.style.border="1px solid #c01f2f";if(z>0){I5.style.width=z+"px";I5.style.width=(2*z-I5.offsetWidth)+"px"
}if(I2&&z>0&&z<54){I5.addEventListener("focus",function(e){FM(I5,false)},false);I5.addEventListener("blur",function(e){FM(I5,true)},false)}}}function Gg(I0,I6,I7,t){var I4=false;for(var I5 in Dy){if(I5==I0&&Dy[I5]!=null){I4=true}}var z=false;var e=I6.getElementsByTagName("form");for(var I2=0;I2<e.length;
I2++){var I1=Hv(e[I2]);if(I1.password==1){z=true;break}}if(!z){return false}var I3=I0.sessionHistory;if(I3&&I3.count>0&&I3.index>0&&As(I3.getEntryAtIndex(I3.index-1,false).URI.spec,null,I3.getEntryAtIndex(I3.index-1,false).URI.asciiHost)&&I3.getEntryAtIndex(I3.index-1,false).URI.path.indexOf("launch")!=-1&&!As(I7,t)){if(Br(null,I6)!=null){HX("autologin failed web",I7)
}}if(I4){return true}return false}function Dn(Ki,Jw,J9,Jv,Kc,Jk,JU,J3,JS,Kj,JI){if(typeof(J3)=="undefined"){J3=1}if(J3>10){return null}if(J3==1){if(typeof(Ki.lpformtosubmit1)=="undefined"){Ki.lpformtosubmit1=null}if(typeof(Ki.lpformtosubmit2)=="undefined"){Ki.lpformtosubmit2=null}}if(typeof(Jk)=="undefined"||Jk==null){Jk=Ki.contentDocument
}if(typeof(JU)=="undefined"||JU==null){JU=Ki.contentWindow}var Jp=LP.lpgetcurrenturl(Ki);if(typeof(Jk.location)=="undefined"||Jk.location==null){return false}var Jq=Jk.location.href;var Kg=Ab();if(!JS){JS=new Array()}if(!Kj){Kj=new Array()}var J8=false;var JM=false;var t=false;for(var I2=0;I2<2;I2++){if(!JM){for(var JA in A7){var Jl=JA;
var J4=A7[JA];var J7=G9[J4.aid];var J1=J7&&J7.sharedfromaid!=null&&J7.sharedfromaid!=""&&J7.sharedfromaid!="0";var Kr=false;if(I2==0){if(typeof(Ki.loginAid)!="undefined"&&Ki.loginAid==J4.aid){Kr=true;Jw=false}else{continue}}if(!LP.compare_tlds(AN(J4.url),AN(Jq))){continue}if(Kc){Kc.aid=J4.aid}if(Jv!=true&&Kg-J4.create_time>=45){JS[JS.length]=Jl;
Kj[Kj.length]=J4.url;continue}var JZ=ED(Jq);var JX=ED(J4.url);var JW=Jp==Jq?JZ:ED(Jp);var JN=IR(J4.url);var JO=J(JN.host,J4.url);var Kn=false;if(!Kr&&JZ!=JX){var Jd=IR(Jq);var I6=J(Jd.host,Jq);if(LP.compare_tlds(I6,JO)){var I1=Br(null,Jk,JO,J4.p,J4.o,J4.multi,J4.pname,J4.uname,-1);if(I1){if(Ev(I1,J4,null,false)){Kn=true
}}}}if(Kr||Kn||JZ==JX||JW==JX){if(J4.save_all){t=true}if(J4.onlyfill){Jw=true}if(Jv){var J8=!Jw&&!J4.overlay_shown?true:false;J4.overlay_shown=true;return J8}var Jo=true;if(J4.custom_js!=""){var J5=GI(J4.custom_js,J4.u,J4.p,"2",false,Jk);if(J5!=""){if(J5.indexOf("lpdonotsendkeys")!=-1){Jo=false}}try{if(Jk.body){var I8=Jk.createElement("script");
var Ka=Jk.createTextNode(J5);I8.appendChild(Ka);Jk.body.appendChild(I8)}}catch(JF){HX("Error running custom JS 2: "+JF+" ln: "+JF.lineNumber,Jq)}}var I1;if(!J4.save_all){if(J9||Kr){I1=Br(JU,Jk,JO,J4.p,J4.o,J4.multi,null,null,-1);if(!I1&&JI&&!J4.multi){I1=Br(JU,Jk,JO,J4.p,J4.o,true,null,null,-1)}}else{I1=Br(JU,Jk,JO,J4.p,J4.o,J4.multi,J4.pname,J4.uname,-1)
}}if(!I1&&!J4.save_all){break}var Kh=I1&&I1.ownerDocument?I1.ownerDocument:Jk;var JY=I1?I1.elements:new Array();var JH=null;if(I1){if(J9||Kr){J4.uname=J4.pname=J4.oname="";for(var Jz=0;Jz<JY.length;Jz++){if(typeof(JY[Jz].type)=="undefined"){continue}if(JY[Jz].type=="text"&&E0(JY[Jz])!="openid_url"&&(J4.uname==""||J4.pname=="")){J4.uname=E0(JY[Jz])
}else{if(JY[Jz].type=="password"){J4.pname=E0(JY[Jz])}else{if(JY[Jz].type=="text"&&E0(JY[Jz])=="openid_url"){J4.oname=E0(JY[Jz])}}}}}}Jk.lastpass_recheck_fields=Array();if(typeof(Jk._LP_STATE)!="undefined"&&"pageshowdone"==Jk._LP_STATE){Jk.recent_no_dupes=Array()}if(typeof(Jk.recent_no_dupes)=="undefined"){Jk.recent_no_dupes=Array()
}function Jn(Ku,e,Ks){if(Ku.value!=e){if(!Ks){if(typeof(Jk.recent_no_dupes[E0(Ku)])=="undefined"){Jk.recent_no_dupes[E0(Ku)]=1}else{if(Ku.value!=""){return}}}if(E3){if(Ku.getAttribute("autocomplete")=="off"){return}}if(J1&&Ku.type=="password"){if(typeof(Jk.LPlpsharedpasswordfills)=="undefined"){Jk.LPlpsharedpasswordfills=new Array()
}if(typeof(Jk.LPlpsharedpasswordfills)=="object"){Jk.LPlpsharedpasswordfills[Jk.LPlpsharedpasswordfills.length]=Ku}}Ku.value=e;E7(Ku,Jo);var Kt=Object();Kt.f=Ku;Kt.v=e;Jk.lastpass_recheck_fields[Jk.lastpass_recheck_fields.length]=Kt}}for(var Jz=0;Jz<JY.length;Jz++){if(typeof(JY[Jz].type)=="undefined"){continue
}if(JY[Jz].type!="reset"&&JY[Jz].type!="button"&&JY[Jz].type!="image"&&JY[Jz].type!="submit"&&JY[Jz].type!="file"&&JY[Jz].type!="textarea"){if(J4.uname!=""&&E0(JY[Jz])==J4.uname){Jn(JY[Jz],J4.u)}if(J4.pname!=""&&E0(JY[Jz])==J4.pname){Jn(JY[Jz],J4.p)}if(J4.oname!=""&&E0(JY[Jz])==J4.oname){Jn(JY[Jz],J4.o)
}}if(J4.captcha_id!=""&&E0(JY[Jz])==J4.captcha_id){JH=JY[Jz]}else{if(typeof(J4.fields)!="undefined"&&typeof(J4.fields[E0(JY[Jz])])!="undefined"){if(JY[Jz].type=="checkbox"){var Ke=J4.fields[E0(JY[Jz])]?true:false;if(JY[Jz].checked!=Ke){JY[Jz].checked=Ke;E7(JY[Jz].checked)}}else{if(JY[Jz].type=="radio"){if(JY[Jz].value==J4.fields[E0(JY[Jz])]){if(!JY[Jz].checked){JY[Jz].checked=true;
E7(JY[Jz].checked)}}}else{if(JY[Jz].type=="select-one"){for(var Jx=0;Jx<JY[Jz].options.length;Jx++){if(JY[Jz].options[Jx].value==J4.fields[E0(JY[Jz])]){Jn(JY[Jz],J4.fields[E0(JY[Jz])]);break}}}else{if(JY[Jz].type=="select-multiple"){var Kq=J4.fields[E0(JY[Jz])];var Kk;if(Kq!=""){Kk=Kq.split("|")}else{Kk=new Array()
}for(var Jx=0;Jx<Kk.length;Jx++){Kk[Jx]=decodeURIComponent(Kk[Jx])}var Kp=false;for(var Jx=0;Jx<JY[Jz].options.length;Jx++){if(DU(JY[Jz].options[Jx].value,Kk)){if(!JY[Jz].options[Jx].selected){JY[Jz].options[Jx].selected=true;Kp=true}}else{if(JY[Jz].options[Jx].selected){JY[Jz].options[Jx].selected=false;
Kp=true}}}if(Kp){E7(JY[Jz])}}else{if(JY[Jz].type!="hidden"&&JY[Jz].type!="reset"&&JY[Jz].type!="button"&&JY[Jz].type!="image"&&JY[Jz].type!="submit"&&JY[Jz].type!="file"&&JY[Jz].type!="textarea"){Jn(JY[Jz],J4.fields[E0(JY[Jz])])}}}}}}}}var Ko=false;var J6=false;var JJ=false;var JK=false;for(var JR in J4.otherfields){var JE=new Array();
if(JR!=""&&typeof(Kh.getElementsByName)!="undefined"){var Kf=Kh.getElementsByName(JR);for(var Jz=0;Jz<Kf.length;Jz++){if(Kf[Jz].tagName=="FORM"){JE[JE.length]=Kf[Jz]}}if(JE.length==0&&J4.save_all){var JP=Kh.getElementById(JR);if(JP){JE=new Array(JP)}}}else{var Kd=Kh.getElementsByTagName("form");for(var Jz=0;
Jz<Kd.length;Jz++){if(E0(Kd[Jz])==JR){JE[JE.length]=Kd[Jz]}}var Jh=new Array("input","select","textarea");var JB=new Array();var Jj=new Array();for(var JD=0;JD<Jh.length;JD++){var Kf=Jk.getElementsByTagName(Jh[JD]);for(var JC=0;JC<Kf.length;JC++){if(Kf[JC].form==null||E0(Kf[JC])==""||typeof(J4.otherfields[JR][Jh[JD]+JC])!="undefined"){JB[JB.length]=Kf[JC];
Jj[Jj.length]=Jh[JD]+JC}}}if(JB.length>0){var z=new Object();z.elements=JB;z.elementnames=Jj;JE[JE.length]=z}}for(var Jz=0;Jz<JE.length;Jz++){var Km=JE[Jz];if(typeof(Km.elements)!="undefined"&&Km.elements&&typeof(Km.elements.length)!="undefined"){for(var Jx=0;Jx<Km.elements.length;Jx++){var J0=Km.elements[Jx];
var Jy=E0(J0);if(typeof(J4.otherfields[JR][Jy])=="undefined"){var I4=E0(J0,true);if(typeof(J4.otherfields[JR][I4])!="undefined"){Jy=I4}}if((Jy==""||typeof(J4.otherfields[JR][Jy])=="undefined")&&typeof(Km.elementnames)!="undefined"&&Km.elementnames.length>Jx){Jy=Km.elementnames[Jx]}if(J0.type=="text"||J0.type=="password"){Ko=true;
if(J0.type=="password"){JJ=true}}if(typeof(J4.otherfields[JR][Jy])!="undefined"){if(J4.captcha_id!=""&&E0(J0)==J4.captcha_id){JH=J0}else{if(J0.type=="checkbox"){var Ke=J4.otherfields[JR][Jy]?true:false;if(J0.checked!=Ke){J0.checked=Ke;E7(J0)}if(t&&!Ki.lpformtosubmit2){Ki.lpformtosubmit2=J0.form}}else{if(J0.type=="radio"){if(J0.value==J4.otherfields[JR][Jy]){if(!J0.checked){J0.checked=true;
E7(J0)}}if(t&&!Ki.lpformtosubmit2){Ki.lpformtosubmit2=J0.form}}else{if(J0.type=="select-one"){for(var Ju=0;Ju<J0.options.length;Ju++){if(J0.options[Ju].value==J4.otherfields[JR][Jy]){Jn(J0,J4.otherfields[JR][Jy],true);break}}if(t&&!Ki.lpformtosubmit2){Ki.lpformtosubmit2=J0.form}}else{if(J0.type=="select-multiple"){var Kq=J4.otherfields[JR][Jy];
var Kk;if(Kq!=""){Kk=Kq.split("|")}else{Kk=new Array()}for(var Ju=0;Ju<Kk.length;Ju++){Kk[Ju]=decodeURIComponent(Kk[Ju])}var Kp=false;for(var Ju=0;Ju<J0.options.length;Ju++){if(DU(J0.options[Ju].value,Kk)){if(!J0.options[Ju].selected){J0.options[Ju].selected=true;Kp=true}}else{if(J0.options[Ju].selected){J0.options[Ju].selected=false;
Kp=true}}}if(Kp){E7(J0)}if(t&&!Ki.lpformtosubmit2){Ki.lpformtosubmit2=J0.form}}else{if(J0.type=="text"||J0.type=="password"||J0.type=="textarea"){Jn(J0,J4.otherfields[JR][Jy],true);if(J4.otherfields[JR][Jy]!=""&&(J0.type=="text"||J0.type=="password")){J6=true;if(J0.type=="password"){JK=true}}if(t){if(J0.type=="password"){if(!Ki.lpformtosubmit1){Ki.lpformtosubmit1=J0.form
}}else{if(!Ki.lpformtosubmit2){Ki.lpformtosubmit2=J0.form}}}}}}}}}}}}}}if(t&&Ko&&!J6){var J7=G9[J4.aid];if(J7&&J7.logins&&J7.logins.length>0){var JL=J7.logins[0].otherfields;if(JL){var J2=0;var JG=Jk.getElementsByTagName("input");for(var Jt=0;Jt<JG.length;Jt++){if(JG[Jt].type=="text"||JG[Jt].type=="password"){while(J2<JL.length&&JL[J2].type!="text"&&JL[J2].type!="password"){J2++
}if(J2<JL.length){var Jf=JL[J2];if(Jf.value!=""&&Jf.type==JG[Jt].type&&Jf.name.length>=16&&Jf.name.length==E0(JG[Jt]).length){Jn(JG[Jt],BD(Jf.value),true);J6=true;if(JG[Jt].type=="password"){JK=true;if(!Ki.lpformtosubmit1){Ki.lpformtosubmit1=JG[Jt].form}}else{if(!Ki.lpformtosubmit2){Ki.lpformtosubmit2=JG[Jt].form
}}}J2++}}}if(!J6){var JG=Jk.getElementsByTagName("input");for(var Jt=0;Jt<JG.length;Jt++){if(JG[Jt].type=="text"||JG[Jt].type=="password"){var JQ=E0(JG[Jt]);var I3=JQ.match(/^(\D+)\d+$/);if(I3){JQ=I3[1];for(var Js=0;Js<JL.length;Js++){if(JL[Js].value!=""){I3=JL[Js].name.match(/^(\D+)\d+$/);if(I3&&I3[1]==JQ){Jn(JG[Jt],BD(JL[Js].value),true);
J6=true;if(JG[Jt].type=="password"){JK=true;if(!Ki.lpformtosubmit1){Ki.lpformtosubmit1=JG[Jt].form}}else{if(!Ki.lpformtosubmit2){Ki.lpformtosubmit2=JG[Jt].form}}break}}}}}}}}}}if(t&&JJ&&!JK){var Kl=null;var JV=0,Kb=0;var Jg=null,Jm=null;var Kd=Jk.getElementsByTagName("form");for(var Jr=0;Jr<Kd.length;
Jr++){var JB=Kd[Jr].elements;var I9=0,JT=0;var I5=null,I7=null;for(var Ja=0;Ja<JB.length;Ja++){var I0=JB[Ja];if(I0.type=="text"){if(I9==0){I5=I0}I9++}if(I0.type=="password"){if(JT==0){I7=I0}JT++}}if(JT==1){if(!Kl||(I9==1&&JV!=1)){JV=I9;Kb=JT;Kl=Kd[Jr];Jg=I5;Jm=I7}}}if(Kl){if(Jg){Jn(Jg,y(G9[J4.aid],0),true)
}Jn(Jm,y(G9[J4.aid],1),true);Ki.lpformtosubmit1=Kl}}Jk.lastpass_domcontent_redo=function(){if(Jk.lastpass_recheck_fields){for(var e=0;e<Jk.lastpass_recheck_fields.length;e++){if(""==Jk.lastpass_recheck_fields[e]["f"].value){if(Jk.lastpass_recheck_fields[e]["f"].value!=Jk.lastpass_recheck_fields[e]["v"]){var Ks=E0(Jk.lastpass_recheck_fields[e]["f"]);
Jk.lastpass_recheck_fields[e]["f"].value=Jk.lastpass_recheck_fields[e]["v"];E7(Jk.lastpass_recheck_fields[e]["f"])}}}Jk.lastpass_recheck_fields=null}};if(J4.custom_js!=""){var Je=J4.custom_js.indexOf("lpframe1.")!=-1?Ki.contentWindow.frames[0].document:Jk;var J5=GI(J4.custom_js,J4.u,J4.p,"3",Jw,Je);if(J5!=""){}try{if(Je.body){var I8=Je.createElement("script");
var Ka=Je.createTextNode(J5);I8.appendChild(Ka);Je.body.appendChild(I8)}}catch(JF){HX("Error running custom JS 3: "+JF+" ln: "+JF.lineNumber,Jq)}}var Jc=J4.custom_js.indexOf("lpdontsubmit")==-1&&!t;if(Jw&&F2(J4.aid)){Jw=false}if(!Jw){Jk.LPlpskipaddconfirm=true}if(JH!=null){Az(Jk);Cz("EnterCaptcha",Ki,0,"captcha");
FM(JH);JH.focus();Ki.lpformtosubmit1=Ki.lpformtosubmit2=null}else{if(Jc){if(typeof(Ki.loginAid)!="undefined"){Ki.loginAid=""}if(!Jw){J4.overlay_shown=true;Ar(Jk,J4.aid)}var Jb=0;if(!Jb&&!Jw){EY(Kh,I1,J4.submit_id)}}}F7(Jk,LP.lpgs("Submitted the form, waiting for the remote website..."));JS[JS.length]=Jl;
Kj[Kj.length]=J4.url;J8=true;if(!J4.multi&&!Jw){Dy[Ki]=Jq}JM=true;break}}}}if(t||J3!=-1){if(JU&&JU.frames){for(var JA=0;JA<JU.frames.length;JA++){if(JU.frames[JA].document){if(Dn(Ki,Jw,J9,Jv,Kc,JU.frames[JA].document,JU.frames[JA].window,J3+1,JS,Kj,JI)){J8=true}}}}}if(J3<=1){if(t){if(!Jw){var Ji=null;
if(Ki.lpformtosubmit1){Ji=Ki.lpformtosubmit1}else{if(Ki.lpformtosubmit2){Ji=Ki.lpformtosubmit2}}if(Ji){J4.overlay_shown=true;Ar(Jk,J4.aid);var Kh=Ji.ownerDocument;EY(Kh,Ji,J4.submit_id);F7(Jk,LP.lpgs("Submitted the form, waiting for the remote website..."))}}Ki.lpformtosubmit1=null;Ki.lpformtosubmit2=null
}}for(var JA=JS.length-1;J3<2&&JA>=0;JA--){if(A7.length>JS[JA]&&A7[JS[JA]]["url"]==Kj[JA]){A7.splice(JS[JA],1)}}return J8}function EY(I6,z,I7){var I9=0;if(!I9&&I7!=""){var I0=I6.getElementById(I7);if(!I0){var t=I6.getElementsByName(I7);if(t&&t.length>0){I0=t[0]}}if(!I0){var Ja=I6.getElementsByTagName("INPUT");
if(Ja){for(var I2=0;I2<Ja.length;I2++){if(Ja[I2].value==I7){I0=Ja[I2]}}}}if(!I0){var Ja=I6.getElementsByTagName("A");if(Ja){for(var I2=0;I2<Ja.length;I2++){if(Ja[I2].href==I7){I0=Ja[I2]}}}}if(I0){var I5=I0.ownerDocument.createEvent("MouseEvents");I5.initMouseEvent("click",true,true,I0.ownerDocument.defaultView,1,0,0,0,0,false,false,false,false,0,null);
I0.dispatchEvent(I5);I9=1}}if(!I9){I9=x(I6,z,"submit")}if(!I9){I9=x(I6,z,"image")}if(!I9){I9=x(I6,z,"button")}if(!I9){var I1="";try{I1=AN(I6.location.href)}catch(I4){}if(I1!="bankofamerica.com"){p(I6,z,"submit")}var I3=null;var Ja=I6.getElementsByTagName("INPUT");if(Ja){for(var I2=0;I2<Ja.length;I2++){if(Ja[I2].type=="password"){I3=Ja[I2]
}}}if(I3){I3.focus();var I8=I6.createEvent("KeyboardEvent");I8.initKeyEvent("keypress",true,true,null,false,false,false,false,13,0);LP.lpGetCurrentWindow().setTimeout(function(){I3.dispatchEvent(I8)},500)}}}function x(z,I1,e){var I0=z.getElementsByTagName("input");var I2=0;for(var t=0;t<I0.length;t++){if(I0[t].form==I1){if("password"==I0[t].type&&I0[t].value!=""){I2=1
}else{if(e==I0[t].type){if(I2){I0[t].click();return 1}}}}}if(e=="button"){var I0=z.getElementsByTagName("button");for(var t=0;t<I0.length;t++){if(I0[t].form==I1){if("button"==I0[t].type||"submit"==I0[t].type||"image"==I0[t].type){if(I2){I0[t].click();return 1}}}}}return 0}function p(I0,t,z){var e=I0.createEvent("HTMLEvents");
e.initEvent(z,true,true);return !t.dispatchEvent(e)}function Ev(z,Jg,I4,Jc,Ja,I2){var I5="";var Jb=true;var I8=0,e=0;var t=new Array();var I9=new Array();if((typeof(Jg.fields)=="undefined"||Jg.fields.length==0)&&typeof(Jg.login)!="undefined"){Jg=Jg.login}if(typeof(Jg.fields)!="undefined"){if(Jg.fields.length>0){for(var Jd=0;
Jd<Jg.fields.length;Jd++){if(I2){if(Jg.fields[Jd].type=="text"){I8++}if(Jg.fields[Jd].type=="password"){e++}}if(Jg.fields[Jd].type=="text"||Jg.fields[Jd].type=="password"||Jg.fields[Jd].type=="select-one"){t[Jg.fields[Jd].name]=Jg.fields[Jd].value;I9[Jg.fields[Jd].name]=Jg.fields[Jd].type}}}else{for(var Jd in Jg.fields){if(typeof(Jg.fields[Jd])!="undefined"){t[Jd]=Jg.fields[Jd];
I9[Jd]="unknown"}}}}if(Jg.uname){t[Jg.uname]=Jg.uname}if(Jg.pname){t[Jg.pname]=Jg.pname}if(Jg.oname){t[Jg.oname]=Jg.oname}var I1=false;var I7=false;var Jh=false;var I0=false;var I6=0,Jf=0;var I3=z.elements;for(var Jd=0;Jd<I3.length;Jd++){I1=true;if(typeof(I3[Jd].type)=="undefined"){continue}if(I2){if(I3[Jd].type=="text"){I6++
}if(I3[Jd].type=="password"){Jf++}}if(I3[Jd].type=="text"||I3[Jd].type=="password"||I3[Jd].type=="select-one"){if(typeof(t[E0(I3[Jd])])!="undefined"){Jh=true;t[E0(I3[Jd])]=null}else{if(E0(I3[Jd])!=""){var Je=I3[Jd].type=="hidden"||!GT(I3[Jd]);I5+="\nForm field not in RawForm : "+E0(I3[Jd])+(Je?" (IGNORING DIFFERENCE SINCE HIDDEN)":"");
if(Je||I3[Jd].type=="select-one"){continue}I7=true}}}}for(var Jd in t){Jh=true;if(t[Jd]!=null&&Jd!=""){I5+="\nRawForm field not in Form : "+Jd;if(I9[Jd]=="select-one"){continue}I0=true}}if(I2){I2.value=(I6==I8&&Jf==e&&(I7||I0))}if(!I1||!Jh){Jb=false}else{if(Ja){if(I7&&I0){Jb=false}}else{if(I7||I0){Jb=false
}}}return Jb}function IM(I3,I0){var e=new Array();var I2=typeof(Fv[I0])!="undefined"?Fv[I0]:new Array();for(var I1 in I2){if(typeof(G9[I1])=="undefined"||G9[I1].genpw||G9[I1].isbookmark){continue}if(G9[I1].logins){for(var z=0;z<G9[I1].logins.length;z++){if(ED(G9[I1].logins[z].url)==I3){var I4=false;for(var t=0;
t<e.length;t++){if(G9[e[t]].logins[0].username==G9[I1].logins[z].username&&G9[e[t]].logins[0].password==G9[I1].logins[z].password){I4=true;break}}if(!I4){e[e.length]=G9[I1].id}break}}}}var I2=typeof(Fv[I0])!="undefined"?Fv[I0]:new Array();for(var I1 in I2){if(typeof(G9[I1])=="undefined"||G9[I1].genpw||G9[I1].isbookmark){continue
}if(G9[I1].logins){for(var z=0;z<G9[I1].logins.length;z++){if(LP.compare_tlds(G9[I1].logins[z].tld,I0)){var I4=false;for(var t=0;t<e.length;t++){if(G9[e[t]].logins[0].username==G9[I1].logins[z].username&&G9[e[t]].logins[0].password==G9[I1].logins[z].password){I4=true;break}}if(!I4){e[e.length]=G9[I1].id
}break}}}}return e}function Br(Jo,I3,I1,Jp,Jq,Jm,Jg,I7,Jw){if(typeof(Jw)=="undefined"){Jw=1}if(Jw>10){return null}if(typeof(I3)=="undefined"||typeof(I3.location)=="undefined"){return null}var I9=I3.location.href;var z=IR(I9);var I2=J(z.host,I9);var Jc=(I1&&typeof(I1)!="undefined"&&!LP.compare_tlds(I1,I2)?false:true);
var Jj=typeof(Jp)=="undefined"||Jp!="";var Jk=typeof(Jq)!="undefined"&&Jq!="";var t=null;var Jx=0,Jd=0;var Ji=I3.getElementsByTagName("form");var Je=Ji.length;if(Je>100){Je=100}var I4=0;var Jb=200;for(var Jt=0;Jc&&Jt<Je;Jt++){var I5=Ji[Jt].elements;if(typeof(I5)=="undefined"){continue}var I6=0,Jl=0;var Jr=null;
var Ja=I5.length;if(Ja>Jb){Ja=200}for(var Ju=0;Ju<Ja;Ju++){if(typeof(I5[Ju].type)=="undefined"){continue}if(I5[Ju].type=="password"){if(!GT(I5[Ju])){I3.LPlpinvisiblepw=true;var I8=true;if(I8){var Jv=HQ(I3);var Jn=Jv.contentWindow;while(Jn.top!=null&&Jn.top!=Jn){Jn=Jn.top}var Jf=Jn.document;if(typeof(Jf.LPlpinstalledclick)=="undefined"&&typeof(Jf.LPlpnoinstalledclick)!="undefined"){DY(Jv,I3)
}}if(Cg){continue}else{Ji[Jt].bHasInvisible=true}}}if(Jj&&I5[Ju].type=="text"&&typeof(Jg)!="undefined"&&Jg!=null&&Jg!=""&&E0(I5[Ju])==Jg&&I1!="yahoo.com"&&I1!="directcpv.com"&&I1!="zestservers.com"){I5[Ju].select()}if(I5[Ju].type=="text"){I6++}else{if(I5[Ju].type=="password"){Jl++}}if(Jj&&I5[Ju].type=="password"&&(typeof(Jg)=="undefined"||Jg==null||E0(I5[Ju])==Jg)){Jr=Ji[Jt]
}if(Jk&&E0(I5[Ju])=="openid_url"){Jr=Ji[Jt]}}if(Jr!=null){if(t==null||I6+Jl<Jx+Jd||(I6+Jl==Jx+Jd&&Jl<Jd)){t=Jr;Jx=I6;Jd=Jl}}if(I6>0||Jl>0){if(++I4>=10){break}}}if(t!=null){return t}if(Jm){for(var Jt=0;Jc&&Jt<Ji.length;Jt++){var I5=Ji[Jt].elements;for(var Ju=0;Ju<I5.length;Ju++){if(I5[Ju].type=="text"&&(typeof(I7)=="undefined"||I7==null||E0(I5[Ju])==I7)){return Ji[Jt]
}}}}if(Jw==-1){return null}if(typeof(Jo)=="undefined"||Jo==null){var I0=HQ(I3);if(I0){Jo=I0.contentWindow}}if(Jo&&Jo.frames){for(var Js=0;Js<Jo.frames.length;Js++){if(Jo.frames[Js].document){var Jh=Br(Jo.frames[Js].window,Jo.frames[Js].document,I1,Jp,Jq,Jm,Jg,I7,Jw+1);if(Jh){return Jh}}}}return null}this.lpformsubmit=function(I8){var I7=I8.target.ownerDocument?I8.target.ownerDocument:LP.getBrowser().contentDocument;
var I4=I8.target.getAttribute("formnum");var I6=I8.target.getAttribute("from");var z=I7.getElementsByTagName("form");if(z.length>I4){var I1=z[I4];var I0=false;for(var I3=0;I3<I1.elements.length;++I3){var t=GT(I1.elements[I3]);if(I1.elements[I3].type!="hidden"&&t){I0=true;break}}if(!I0){var I2=Br(null,I7);
if(I2){I1=I2}else{}}var I5=new CG();I5.target=I1;I5.doc=I7;LP.lpsubmit(I5)}else{}};function Ch(z,I0,I1){if(typeof(I1)=="undefined"){I1=1}if(I1>10){return I0}var t=z.frames;I0.push(z.document);for(var e=0;e<t.length;e++){Ch(t[e],I0,I1+1)}return I0}function HQ(e){var I6=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var I3=I6.getEnumerator("");while(I3.hasMoreElements()){var I2=I3.getNext();if(typeof(I2.getBrowser)=="function"){var I5=I2.getBrowser();if(null==I5){continue}var z=I5.browsers;if(typeof(z)=="undefined"&&LP.isFennec){z=new Array(I5)}for(var I1=0;typeof(z)!="undefined"&&I1<z.length;I1++){if(typeof(z[I1])!="undefined"){if(e==z[I1].contentDocument){return z[I1]
}}}var I4;for(var I0=0;typeof(z)!="undefined"&&I0<z.length;I0++){if(typeof(z[I0])!="undefined"){I4=Ch(z[I0].contentWindow,new Array());for(var t=0;t<I4.length;t++){if(e==I4[t]){return z[I0]}}}}}}return null}function Dv(e){LP.lpGetCurrentWindow().setTimeout(function(){FO(e)},900)}function FO(t){try{var I8=t?t.target:this;
var I4=HQ(I8.ownerDocument);if(I4==null){return}var Jb=I4.contentWindow;while(Jb.top!=null&&Jb.top!=Jb){Jb=Jb.top}var I5=Jb.document;if(typeof(I5)=="undefined"||typeof(I5.forms)=="undefined"){return}if(typeof(I5.LPlpshowednote)!="undefined"&&I5.LPlpshowednote>1){return}var Ja=I5.forms.length;if(Ja>100){Ja=100
}for(var I3=0;I3<Ja;I3++){var I6=I5.forms[I3];var I1=I6.elements;var I0=true;for(var I7=0;I7<I1.length;I7++){if(typeof(I1[I7].type)=="undefined"){continue}if(I1[I7].type=="password"){if(!GT(I1[I7])){I0=false;break}}}if(I0==true){if(typeof(I5.LPlpclickfilled)=="undefined"){I5.LPlpclickfilled=new Array();
I5.LPlpclickfilled[I5.LPlpclickfilled.length]=I3}else{var I2=false;for(var I9=0;I9<I5.LPlpclickfilled.length;I9++){if(I5.LPlpclickfilled[I9]==I3){I2=true;break}}if(I2){continue}else{I5.LPlpclickfilled[I5.LPlpclickfilled.length]=I3}}var z=HQ(I5);if(typeof(LP.getBrowser().getNotificationBox)=="function"){LP.lpGetCurrentWindow().setTimeout(function(){if(LP.getBrowser().getNotificationBox(I4).allNotifications.length==0){HA(z,z.contentDocument,null,(Cg==false))
}},500);break}}}}catch(I7){HX("Error in click handler: "+I7+" ln: "+I7.lineNumber,null)}}this.lpsubmitbefore=function(e){LP.lpsubmit(e,true)};this.lpsubmitafter=function(e){LP.lpsubmit(e,false)};this.lpsubmit=function(Jy,Jm){var Jj=false;if(typeof(Jm)!="undefined"&&Jm){Jj=true}var t=Jy?Jy.target:this;
if(typeof(t.elements)=="undefined"&&typeof(t.form)!="undefined"){t=t.form}var Ja;if(typeof(Jy.originalTarget)!="undefined"&&typeof(Jy.originalTarget.location)!="undefined"){Ja=Jy.originalTarget.location.href}if(LP.isFennec){Ja=Jy.originalTarget.ownerDocument.location.href}else{if(typeof(Jy.doc)!="undefined"&&typeof(Jy.doc.location)!="undefined"){Ja=Jy.doc.location.href
}else{Ja=t.ownerDocument&&HQ(t.ownerDocument)?LP.lpgetcurrenturl(HQ(t.ownerDocument)):LP.lpgetcurrenturl(LP.getBrowser())}}var I1=null;if(Ja){I1=IR(Ja);if(As(Ja,I1)){if(typeof(t.name)!="undefined"&&t.name=="lpwebsiteeventform"){if(t.elements.length>0){var Jh=t.elements[0].value;w(Jh,t.ownerDocument,I1);
AO(Jy);return}}if(typeof(t.name)!="undefined"&&t.name=="lpmanualform"){if(!DH){HX("lpmanualform submission, but not logged in",null)}var Jd="";var I2=t.ownerDocument&&HQ(t.ownerDocument)?HQ(t.ownerDocument):null;var Jk=false;for(var Jt=0;Jt<t.elements.length;Jt++){if(t.elements[Jt].name=="aid"){Jd=t.elements[Jt].value
}else{if(t.elements[Jt].name=="samewindow"){Jk=t.elements[Jt].value=="1"?true:false}}}if(Jd!=""){if(Jk){LP.lpLaunchUrl(Jd,1,0,I2,null,true)}else{LP.lpLaunchUrl(Jd,1)}}AO(Jy);return}}if(As(Ja,I1)){return}}var I2=t.ownerDocument&&HQ(t.ownerDocument)?HQ(t.ownerDocument):LP.getBrowser();if(typeof(I2.contentDocument.LPlpsaveforminfo)!="undefined"){var Jd=I2.contentDocument.LPlpsaveforminfo;
if(G9[Jd]){var Jf=G9[Jd].logins[0].fields.length==0||G9[Jd].urid==0?3:4;var I0=Br(null,I2.contentDocument);BB(I2,I0,Ja);Fs(Jj,false,Jf,I2,I0,Jd,false,true,true)}}var I3=t.ownerDocument?t.ownerDocument:LP.getBrowser().contentDocument;if(typeof(I3.LPlpskipaddconfirm)!="undefined"){return}var Jf=0;var Jd=0;
var I2=HQ(I3);var I6=t.elements;if(!I6){return}var I7=J(I1.host,Ja);if(LP.compare_tlds("tdcanadatrust.com",I7)){for(var Jw=0;Jw<I6.length;Jw++){if("hidden"==I6[Jw].type&&"ConnectID"==E0(I6[Jw])){I6[Jw].type="text"}if("hidden"==I6[Jw].type&&"Password"==E0(I6[Jw])){I6[Jw].type="password"}}}var z=Hv(t);
if(z.password==1){if(AB(t,I3,true)==null){AO(Jy);return}}if(I2&&typeof(I2.contentDocument.m_filledAid)!="undefined"&&I2.contentDocument.m_filledAid&&z.text==1){var Jv=G9[I2.contentDocument.m_filledAid];if(Jv!=null&&Jv.logins.length>0&&!Jv.save_all){var Jq=0;for(var Jt=0;Jt<Jv.logins.length&&Jq==0;Jt++){var Jo=Jv.logins[Jt];
for(var Jr=0;Jr<Jo.fields.length&&Jq==0;Jr++){if(Jo.fields[Jr].type=="text"){Jq++}}}if(Jq==0){Fs(Jj,false,3,I2,t,I2.contentDocument.m_filledAid,false,true,true);I2.contentDocument.m_filledAid=null}}}if(z.password>3){Fs(Jj,true,5,I2,0,null,null,true,true,true)}if(z.password<=1||(z.password==3&&z.passwordValues==1)||z.uniquepasswords==z.password){savedForm=t;
var Jb=false;var Js=false;for(var Jw=0;Jw<I6.length;Jw++){if(I6[Jw].type=="password"||E0(I6[Jw])=="openid_url"){BB(I2,savedForm,Ja);Fs(Jj,false,Jf,I2,savedForm,Jd);Jb=true;break}else{if(I6[Jw].type=="text"){Js=true}}}if(!Jb&&Js){BB(I2,savedForm,Ja);Fs(Jj,true,Jf,I2,savedForm,Jd)}}else{if(z.password>1){var Jz=new Array();
var Ju=t.elements;for(var Jw=0;Jw<Ju.length;Jw++){if(Ju[Jw].type=="password"){var Jg=Ju[Jw].value;for(var Jt=0;Jt<AJ.length;Jt++){if(AJ[Jt].name==E0(Ju[Jw])){if(AJ[Jt].value!=Jg){if(Jg==""||Jg.match(/^\*+$/)){Jg=AJ[Jt].value}else{if(Jg.length==AJ[Jt].value.length){var I4=true;for(var Jr=0;Jr<Jg.length;
Jr++){if(Jg.charAt(Jr)!=AJ[Jt].value.charAt(Jr)&&Jg.charAt(Jr)!="*"){I4=false;break}}if(I4){Jg=AJ[Jt].value}}}}break}}Jz[Jz.length]=Jg}}var I9=false;var Jn="";if(Jz[Jz.length-1]==Jz[Jz.length-2]&&Jz[Jz.length-1]!=""){I9=true;Jn=Jz[Jz.length-1]}else{if(Jz[0]==Jz[1]&&Jz[0]!=""){I9=true;Jn=Jz[0]}}if(I9){if(DH&&I1){var Jc=GD(I7);
if(z.password==2&&Jc==null){BB(I2,t,Ja);Fs(Jj,false,false,I2,t,0,1)}else{if(Jc!=null){if(Jc!=null){var Jx=new Array();var Jp=0;for(var Ji in Jc){Jx.username=Jc[Ji];Jx.password=Jn;Jx.id=Ji;Jp++}}BB(I2,t,Ja);Fs(Jj,false,false,I2,t,0,1,false,true,false,null,null,1,null,Ja);Jx.key=Ja;Jx.tld=I7;if(Jp==1){Ht=function(){Cz(LP.lpgs("PasswordChange")+" "+Jx.username,I2,Jx.id,"change",Jx)
};F0=I2}else{Jx.matchingaccts=Jc;Ht=function(){Cz(LP.lpgs("PasswordChange2")+" "+I7,I2,Jx.id,"change",Jx)};F0=I2}}}}}else{if(2==Jz.length&&Jz[0]!=""&&Jz[1]!=""){var I8=0;for(var Jw=0;Jw<Ju.length;Jw++){if(Ju[Jw].type=="text"){I8++}}if(!I8){BB(I2,savedForm,Ja);Fs(Jj,false,Jf,I2,savedForm,Jd)}}}}}if(DH&&Gl&&z.text>=5){var Je=LP.getBrowser().selectedTab;
if(Je){var I5=Je.linkedBrowser;if(I5){var Jl=I5.contentDocument;if(Jl&&(typeof(Jl.m_abortedFormFillChecking)!="undefined"||typeof(Jl.FieldFocusDone)!="undefined")){IG(t,I2)}}}}};function BB(z,I1,t){try{if(z==null){return}var I0=I1.ownerDocument;if(!LP.compare_tlds(AN(I0.location.href),AN(t))){z.lpcurrenturl=I0.location.href
}else{z.lpcurrenturl=t}}catch(I2){z.lpcurrenturl=t}}function Ee(t,I0){try{if(!LP.compare_tlds(AN(t),AN(I0))){return t}}catch(z){}return I0}function GD(z,e){var I2=null;var I1=typeof(Fv[z])!="undefined"?Fv[z]:new Array();for(var I0 in I1){if(typeof(G9[I0])=="undefined"||G9[I0].genpw||G9[I0].isbookmark||(e&&G9[I0].id==e)){continue
}if(G9[I0].logins){for(var t=0;t<G9[I0].logins.length;t++){if(LP.compare_tlds(G9[I0].logins[t].tld,z)){if(I2==null){I2=new Array()}I2[I0]=G9[I0].logins[t].unencryptedUsername}}}}return I2}function Hv(I6){var I5=new Array();I5.text=I5.password=I5["select-one"]=I5.textarea=I5.passwordValues=I5.passwordvisible=I5.uniquepasswords=0;
I5.uname=I5.pname=I5.oname="";var I2=I6.elements;var z=false;var I4=false;var I0=new Array();var I1=typeof(I2)!="undefined"?I2.length:0;for(var I7=0;I7<I1;I7++){var I9=I2[I7].type;var I3=E0(I2[I7]);var I8=I2[I7].value;if(I9=="password"||I9=="text"||I9=="select-one"||I9=="textarea"){I5[I9]++}if(I9=="password"){if(GT(I2[I7])){++I5.passwordvisible
}if(I8!=""){I5.passwordValues++}if(z){I4=true}z=true;if(!DU(I8,I0)){I0[I0.length]=I8}}else{if(I9=="hidden"){}else{z=false}}if(I9=="text"&&I3!="openid_url"&&(I5.uname==""||I5.pname=="")){I5.uname=I3}if(I9=="password"){I5.pname=I3}if(I9=="text"&&I3=="openid_url"){I5.oname=I3}}I5.passwordsContiguous=I4;
I5.uniquepasswords=I0.length;return I5}function AO(t){t=t||event;if(t.preventDefault){t.preventDefault()}else{t.returnValue=false}}function D0(){try{var t=LP.lpmainprefs.getIntPref("network.cookie.cookieBehavior");if(t!=0){var I0=Components.classes["@mozilla.org/permissionmanager;1"].getService(Components.interfaces.nsIPermissionManager);
if(I0){var z=Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);var I1=z.newURI(LP.lp_base,null,null);if(I0.testPermission(I1,"cookie")!=I0.ALLOW_ACTION){if(LP.lpConfirmYesNo(LP.lpgs("CookieAdd"))){I0.add(I1,"cookie",I0.ALLOW_ACTION)}else{return false
}}}}}catch(I2){HX("error in checkcookies:"+I2+" ln: "+I2.lineNumber)}return true}this.setTimeout=function(z,t){try{var I2=Components.classes["@mozilla.org/timer;1"].createInstance(Components.interfaces.nsITimer);var I1={that:this,thetimer:I2,notify:function(){z.call(this.that)}};I2.initWithCallback(I1,t,Components.interfaces.nsITimer.TYPE_ONE_SHOT)
}catch(I0){}};this.clearTimeout=function(e){e.cancel()};var Bm=0;this.logoff=function(){Bm++;try{LP.lpGetCurrentWindow().setTimeout(function(){LP.logoffhelper("current"+Bm)},100);LP.mostRecent().setTimeout(function(){LP.logoffhelper("mostrecent"+Bm)},200);var t=function(){LP.logoffhelper("LP.setTimeout"+Bm)
};LP.setTimeout(t,100)}catch(z){}};this.logoffhelper=function(e){if(DH){if(typeof(e)!="undefined"&&"vault"==e){DS(true)}else{DS(false)}}};function DS(I0){AR("logout");AL();CC();s();C0();IC=false;LP.lpCloseNotifications();LP.lplogoff_win();try{var z=Components.classes["@mozilla.org/network/http-auth-manager;1"].getService();
var t=z.QueryInterface(Components.interfaces.nsIHttpAuthManager);t.clearAll()}catch(I1){}LP.lpMakeRequest(LP.lp_base+"logout.php?ff_plugin=1","",I0==null||I0==true?Ip:null);EV="";Ai="";Ae="";BX=0;Eu="";GK();LP.lphelpstats=null;Eo=0;BM=false;Gx="";LP.lpGetCurrentWindow().setTimeout('LP.lp_remove_cookie(".'+LP.lp_basehost+'", "PHPSESSID");',30);
LP.lpDisplayAccounts_all(true)}function Ip(e){if(e&&e.readyState==4){Ir()}}this.lplogoff_win=function(){for(var e in o){o[e].close()}o=new Array();DH=false;h=false;if(!LP.lpprefsHasUserValue("ffhasloggedinsuccessfully",false)){LP.lpprefsSetBoolPref("ffhasloggedinsuccessfully",true,false);LP.flush_prefs()
}Ft("");F=new Array();IZ=null;HZ();G9=new Array();GQ=new Array();CK=new Array();EU=0;Fv=new Array();FA=new Array();B4=new Array();Cm=new Array();Ib=new Array();El=new Array();GP=new Array();d=new Array();GA=new Array();Bs=new Array();if(Ea){LP.mostRecent().clearTimeout(Ea);Ea=null}if(GN){LP.mostRecent().clearTimeout(GN);
GN=null}BJ=false;A2=false;FE="";Gh=false;FK=new Array();A7=new Array();Bz=new Array();H9=new Array();G7=new Array();Dk=new Array();n=null;AJ=new Array();Gi=null;Ht=null;F0=null;Dy=new Array();Ez=false;F6=new Array();Il=new Array();BP=-1;H7=-1;GM="";HN="";FQ=new Array();Im=new Array();HD=new Array();EW=new Array();
AV=new Array();EN=new Array();GU=new Array();Cu=false;G4=null;DI=false;GX=false;FS=false;H3=false;FR=false;GH=true;Cw=false;FL=false;Fm=false;GW="";HF=false;LP.lpgenpwlist=new Array();LP.lpacctsreq=null;FB();Hr();LP.lp_handle_buttons_all("off");LP.lpGetCurrentWindow().setTimeout("LP.lpRebuildToolsMenu_all();",0)
};this.lp_fix_accts_btn_all=function(){var e=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);var z=e.getEnumerator("");while(z.hasMoreElements()){var t=z.getNext();LP.lp_fix_accts_btn(t.document)}};this.lp_fix_accts_btn=function(e){if(e.getElementById("lpt_lastpass-accts-btn")){if(Cs){e.getElementById("lpt_lastpass-accts-btn").setAttribute("type","checkbox");
e.getElementById("lpt_lastpass-accts-btn").setAttribute("autoCheck","false");e.getElementById("lpt_lastpass-accts-btn").setAttribute("onclick","toggleSidebar('lpt_viewSidebar');");if(e.getElementById("lpt_status-bar-accts")){e.getElementById("lpt_status-bar-accts").setAttribute("hidden",true);e.getElementById("lpt_status-bar-accts2").setAttribute("hidden",false)
}if(e.getElementById("lpt_comp-bar-accts")){e.getElementById("lpt_comp-bar-accts").setAttribute("hidden",true);e.getElementById("lpt_comp-bar-accts2").setAttribute("hidden",false)}}else{e.getElementById("lpt_lastpass-accts-btn").setAttribute("type","menu");e.getElementById("lpt_lastpass-accts-btn").setAttribute("onclick","");
if(e.getElementById("lpt_status-bar-accts")){e.getElementById("lpt_status-bar-accts").setAttribute("hidden",false);e.getElementById("lpt_status-bar-accts2").setAttribute("hidden",true)}if(e.getElementById("lpt_comp-bar-accts")){e.getElementById("lpt_comp-bar-accts").setAttribute("hidden",false);e.getElementById("lpt_comp-bar-accts2").setAttribute("hidden",true)
}}HL(e)}};this.SetupUserPreferences=function(){Iv=(!LP.lpprefsHasUserValue("notificationsAfterClick")||LP.lpprefsGetBoolPref("notificationsAfterClick"));HE=LP.lpprefsHasUserValue("RepromptTime")?LP.lpprefsGetIntPref("RepromptTime"):0;Co=(!LP.lpprefsHasUserValue("automaticallyFill")||LP.lpprefsGetBoolPref("automaticallyFill"));
W=(!LP.lpprefsHasUserValue("showNotifications")||LP.lpprefsGetBoolPref("showNotifications"));HC=LP.lpprefsHasUserValue("showLoginNotifications",false)?LP.lpprefsGetBoolPref("showLoginNotifications",false):(LP.lpprefsHasUserValue("showLoginNotifications")?LP.lpprefsGetBoolPref("showLoginNotifications"):true);
IX=(!LP.lpprefsHasUserValue("showFormFillNotifications")||LP.lpprefsGetBoolPref("showFormFillNotifications"));E3=LP.lpprefsHasUserValue("dontfillautocompleteoff")&&LP.lpprefsGetBoolPref("dontfillautocompleteoff");Be=LP.lpprefsHasUserValue("warninsecureforms")&&LP.lpprefsGetBoolPref("warninsecureforms");
DB=LP.lpprefsHasUserValue("offerGeneratePasswd")?LP.lpprefsGetBoolPref("offerGeneratePasswd"):true;Iv=!LP.lpprefsHasUserValue("notificationsAfterClick")||LP.lpprefsGetBoolPref("notificationsAfterClick");D8=!LP.lpprefsHasUserValue("highlightFields")||LP.lpprefsGetBoolPref("highlightFields");A8=(!LP.lpprefsHasUserValue("showSaveSiteNotifications")||LP.lpprefsGetBoolPref("showSaveSiteNotifications"));
Cs=LP.lpprefsHasUserValue("showAcctsInSidebar")&&LP.lpprefsGetBoolPref("showAcctsInSidebar");Hd=(!LP.lpprefsHasUserValue("showAcctsInGroups")||LP.lpprefsGetBoolPref("showAcctsInGroups"));Ax=(!LP.lpprefsHasUserValue("autoauto")||LP.lpprefsGetBoolPref("autoauto"));Hw=LP.lpprefsHasUserValue("autoautoVal")?LP.lpprefsGetIntPref("autoautoVal"):25;
De=LP.lpprefsHasUserValue("idleLogoff")&&LP.lpprefsGetBoolPref("idleLogoff");Gj=De?LP.lpprefsGetIntPref("idleLogoffVal"):0;A=LP.lpprefsHasUserValue("alwayschooseprofilecc")&&LP.lpprefsGetBoolPref("alwayschooseprofilecc");Dp=LP.lpprefsHasUserValue("notificationsBottom")&&LP.lpprefsGetBoolPref("notificationsBottom");
FP=(!LP.lpprefsHasUserValue("useCompact",false)||LP.lpprefsGetBoolPref("useCompact",false));GO=LP.lpprefsHasUserValue("openloginstart")&&LP.lpprefsGetBoolPref("openloginstart");Gl=!LP.lpprefsHasUserValue("capturenewformfill")||LP.lpprefsGetBoolPref("capturenewformfill");Bq=LP.lpprefsHasUserValue("hidecontextmenu")&&LP.lpprefsGetBoolPref("hidecontextmenu");
EX=(LP.lpprefsHasUserValue("hidenotes",false)?LP.lpprefsGetBoolPref("hidenotes",false):EX);He=(LP.lpprefsHasUserValue("hideidentities",false)?LP.lpprefsGetBoolPref("hideidentities",false):He);CT=(LP.lpprefsHasUserValue("hidevault",false)?LP.lpprefsGetBoolPref("hidevault",false):CT)};function R(){var t=A1(Hk);
if(typeof(CO)!="undefined"&&CO!=null&&CO!=""&&typeof(EV)!="undefined"&&EV!=null&&EV!=""&&typeof(Ai)!="undefined"&&Ai!=null&&Ai!=""){var e=Dl.Encrypt({pass:CO,data:t,b64:true,mode:"ecb",bits:256});var z=Dl.Encrypt({pass:Hk,data:"lastpass rocks",b64:true,mode:"ecb",bits:256});var I0=e+"\n"+z;I0=FW(I0,true);
Ce(Ai+"_lpall.slps",I0);U(Ai+"_lp.act.key")}}function EL(I7,I5,I4){var I1=0,t=0,e=0;var I6=0,I2=0,I8=0;var z=I7.split(".");for(var I0=0;I0<z.length;I0++){if(I0==0){I1=parseInt(z[I0])}else{if(I0==1){t=parseInt(z[I0])}else{if(I0==2){e=parseInt(z[I0])}}}}var I3=I5.split(".");for(var I0=0;I0<I3.length;I0++){if(I0==0){I6=parseInt(I3[I0])
}else{if(I0==1){I2=parseInt(I3[I0])}else{if(I0==2){I8=parseInt(I3[I0])}}}}if(I1!=I6){return(I1>I6?1:-1)}if(t!=I2){return(t>I2?1:-1)}if(I4){return 0}if(e!=I8){return(e>I8?1:-1)}return 0}this.OpenCreateAccount=function(){LP.lpGetCurrentWindow().openDialog(GY+"content/welcome.xul","_blank","chrome,titlebar,toolbar,centerscreen,resizable=yes")
};this.lp_handle_buttons_all=function(z){var e=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);var I0=e.getEnumerator("");while(I0.hasMoreElements()){var t=I0.getNext();LP.lp_handle_buttons(z,t.document)}};this.ShowPremiumMenuItem=function(){var t=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var I1=t.getEnumerator("");while(I1.hasMoreElements()){var I0=I1.getNext();try{if(I0.document&&I0.document.getElementById("lpt_lppremium")){I0.document.getElementById("lpt_lppremium").hidden=LP.lpisp()?true:false;LP.sr(I0.document,"lpt_lppremium","label","Go Premium!")}}catch(z){HX("Drew was right, lpt_lppremium is still null.",null)
}if(I0.document.getElementById("lpt_lpncpremium")){I0.document.getElementById("lpt_lpncpremium").hidden=LP.lpisp()?true:false;LP.sr(I0.document,"lpt_lpncpremium","label","Go Premium!")}}};this.lp_handle_buttons=function(z,t){LP.lp_fix_accts_btn(t);if("refresh"==z){z="off";if(DH){z="in"}LP.sr(t,"lpt_status-bar-login","label","Login");
LP.sr(t,"lpt_lpidentitiesmenu3","label","Identities");LP.sr(t,"lpt_status-bar-home","label","My LastPass Vault");LP.sr(t,"lpt_status-bar-home","hidden",CT);LP.sr(t,"lpt_status-bar-recentlyused","label","Recently Used");LP.sr(t,"lpt_status-bar-accts","label","Sites");LP.sr(t,"lpt_statusbaritem","label","Retrieving Sites...");
LP.sr(t,"lpt_status-bar-accts2","label","Sites");LP.sr(t,"lpt_status-bar-securenotes","label","SecureNotes");LP.sr(t,"lpt_status-bar-securenotes","hidden",EX);LP.sr(t,"lpt_statusbaritem2","label","Retrieving Sites...");LP.sr(t,"lpt_status-bar-fav","label","OpenFavorites");LP.sr(t,"lpt_lpfillformsmenu3","label","Fill Forms");
LP.sr(t,"lpt_status-bar-prefs","label","Preferences");LP.sr(t,"lpt_status-bar-help","label","Help...");LP.sr(t,"lpt_status-bar-tools","label","Tools");LP.sr(t,"lpt_status-bar-feedback","label","Feedback");LP.sr(t,"lpt_status-bar-search","label","Site Search");LP.sr(t,"lpt_status-bar-gen","label","Generate Secure Password");
LP.sr(t,"lpt_status-bar-recheck","label","Recheck Page");LP.sr(t,"lpt_status-bar-refresh","label","RefreshAccounts");LP.sr(t,"lpt_status-bar-importfrom","label","Import From");LP.sr(t,"lpt_status-bar-impff","label","Firefox Password Manager");LP.sr(t,"lpt_status-bar-imp1p","label","1Password");LP.sr(t,"lpt_status-bar-impkp","label","KeePass");
LP.sr(t,"lpt_status-bar-impclipperz","label","Clipperz");LP.sr(t,"lpt_status-bar-impewallet","label","eWallet");LP.sr(t,"lpt_status-bar-impfireform","label","FireForm");LP.sr(t,"lpt_status-bar-imppwcoral","label","Password Corral");LP.sr(t,"lpt_status-bar-imppassworddragon","label","Password Dragon");
LP.sr(t,"lpt_status-bar-imphppwsafe","label","HP Password Safe");LP.sr(t,"lpt_status-bar-imppasswordsmax","label","Passwords Max");LP.sr(t,"lpt_status-bar-imppins","label","PINs Password Manager");LP.sr(t,"lpt_status-bar-impsplashid","label","SplashID");LP.sr(t,"lpt_status-bar-implp","label","LastPass");
LP.sr(t,"lpt_status-bar-impmps","label","MyPasswordSafe");LP.sr(t,"lpt_status-bar-imppp","label","PassPack");LP.sr(t,"lpt_status-bar-impps","label","Password Safe");LP.sr(t,"lpt_status-bar-imprf","label","RoboForm");LP.sr(t,"lpt_status-bar-imptp","label","TurboPasswords");LP.sr(t,"lpt_status-bar-imppk","label","Password Keeper");
LP.sr(t,"lpt_status-bar-impcsv","label","Generic CSV File");LP.sr(t,"lpt_status-bar-impmsi","label","MSI PasswordKeeper");LP.sr(t,"lpt_status-bar-imppwagent","label","Password Agent");for(var e=1;t.getElementById("lpt_status-bar-inst"+e);e++){LP.sr(t,"lpt_status-bar-inst"+e,"label","Instructions");LP.sr(t,"lpt_status-bar-import"+e,"label","Import")
}LP.sr(t,"lpt_status-bar-exportto","label","Export To");LP.sr(t,"lpt_status-bar-exportcsv","label","LastPass CSV File");LP.sr(t,"lpt_status-bar-exportff","label","Firefox");LP.sr(t,"lpt_status-bar-exportenc","label","LastPass Encrypted File");LP.sr(t,"lpt_status-bar-print","label","Print");LP.sr(t,"lpt_status-bar-printsites","label","Sites");
LP.sr(t,"lpt_status-bar-printsn","label","SecureNotes");LP.sr(t,"lpt_status-bar-printsn","hidden",EX);LP.sr(t,"lpt_status-bar-seccheck","label","Security Check");LP.sr(t,"lpt_status-bar-othersessions","label","Other Sessions");LP.sr(t,"lpt_status-bar-about","label","About...");LP.sr(t,"lpt_status-bar-tbctrl","label","ShowToolbar");
LP.sr(t,"lpt_lpclearcache3","label","Clear Local Cache")}if("off"==z){if(t.getElementById("lpt_lplogintolastpass")&&!Bq){t.getElementById("lpt_lplogintolastpass").hidden=false}if(t.getElementById("lpt_lastpass-fav")){t.getElementById("lpt_lastpass-fav").disabled=true}if(t.getElementById("lpt_status-bar-fav")){t.getElementById("lpt_status-bar-fav").setAttribute("disabled",true)
}if(t.getElementById("lpt_comp-bar-fav")){t.getElementById("lpt_comp-bar-fav").setAttribute("disabled",true)}if(t.getElementById("lpt_lastpass-login")){t.getElementById("lpt_lastpass-login").label=LP.lpgs("Login")}if(t.getElementById("lpt_status-bar-login")){LP.sr(t,"lpt_status-bar-login","label","Login")
}if(t.getElementById("lpt_status-bar-image")){t.getElementById("lpt_status-bar-image").src="chrome://lastpass/skin/icon_gray.gif"}if(t.getElementById("lpt_lastpass-login2")){t.getElementById("lpt_lastpass-login2").className="login_"+LP.GetToolbarImageLang()}if(t.getElementById("lpt_comp-bar-login")){LP.sr(t,"lpt_comp-bar-login","label","Login")
}if(t.getElementById("lpt_fennec-bar-login")){LP.sr(t,"lpt_fennec-bar-login","label","Login")}LP.changeIcon(t,false);if(t.getElementById("lpt_lastpass-fennec-btn")){t.getElementById("lpt_lastpass-fennec-btn").image="chrome://lastpass/skin/icon_big_gray.gif"}if(t.getElementById("lpt_admin-sep")){t.getElementById("lpt_admin-sep").hidden=true
}if(t.getElementById("lpt_admin-row")){t.getElementById("lpt_admin-row").hidden=true}if(t.getElementById("lpt_lastpass-accts-btn")){t.getElementById("lpt_lastpass-accts-btn").disabled=true}if(t.getElementById("lpt_lastpass-accts-btn4")){t.getElementById("lpt_lastpass-accts-btn4").disabled=true;t.getElementById("lpt_lastpass-accts-btn4").className="sites_disabled_"+LP.GetToolbarImageLang()
}if(t.getElementById("lpt_status-bar-accts")){t.getElementById("lpt_status-bar-accts").setAttribute("disabled",true)}if(t.getElementById("lpt_status-bar-accts2")){t.getElementById("lpt_status-bar-accts2").setAttribute("disabled",true)}if(t.getElementById("lpt_comp-bar-recentlyused")){t.getElementById("lpt_comp-bar-recentlyused").setAttribute("disabled",true)
}if(t.getElementById("lpt_non-comp-bar-recentlyused")){t.getElementById("lpt_non-comp-bar-recentlyused").setAttribute("disabled",true)}if(t.getElementById("lpt_status-bar-recentlyused")){t.getElementById("lpt_status-bar-recentlyused").setAttribute("disabled",true)}if(t.getElementById("lpt_comp-bar-accts")){t.getElementById("lpt_comp-bar-accts").setAttribute("disabled",true)
}if(t.getElementById("lpt_comp-bar-accts2")){t.getElementById("lpt_comp-bar-accts2").setAttribute("disabled",true)}if(t.getElementById("lpt_lastpass-securenotes-btn")){t.getElementById("lpt_lastpass-securenotes-btn").setAttribute("disabled",true)}if(t.getElementById("lpt_comp-bar-securenotes")){t.getElementById("lpt_comp-bar-securenotes").setAttribute("disabled",true)
}if(t.getElementById("lpt_fennec-securenotes")){t.getElementById("lpt_fennec-securenotes").setAttribute("disabled",true)}if(t.getElementById("lpt_status-bar-securenotes")){t.getElementById("lpt_status-bar-securenotes").setAttribute("disabled",true)}if(t.getElementById("lpt_search-btn")){t.getElementById("lpt_search-btn").setAttribute("disabled",true)
}if(t.getElementById("lpt_tools-btn")){t.getElementById("lpt_tools-btn").setAttribute("disabled",true)}if(t.getElementById("lpt_tools-btn4")){t.getElementById("lpt_tools-btn4").disabled=true;t.getElementById("lpt_tools-btn4").className="tools_disabled_"+LP.GetToolbarImageLang()}}if("loggingin"==z){if(t.getElementById("lpt_lplogintolastpass")){t.getElementById("lpt_lplogintolastpass").hidden=true
}if(t.getElementById("lpt_lastpass-login")){LP.sr(t,"lpt_lastpass-login","label","Loggingin")}if(t.getElementById("lpt_status-bar-login")){LP.sr(t,"lpt_status-bar-login","label","Loggingin")}if(t.getElementById("lpt_status-bar-image")){t.getElementById("lpt_status-bar-image").src="chrome://lastpass/skin/icon_gray.gif"
}if(t.getElementById("lpt_comp-bar-login")){LP.sr(t,"lpt_comp-bar-login","label","Loggingin")}if(t.getElementById("lpt_fennec-bar-login")){LP.sr(t,"lpt_fennec-bar-login","label","Loggingin")}LP.changeIcon(t,false);if(t.getElementById("lpt_admin-sep")){t.getElementById("lpt_admin-sep").hidden=true}if(t.getElementById("lpt_admin-row")){t.getElementById("lpt_admin-row").hidden=true
}if(t.getElementById("lpt_lastpass-accts-btn")){t.getElementById("lpt_lastpass-accts-btn").disabled=true}if(t.getElementById("lpt_lastpass-accts-btn4")){t.getElementById("lpt_lastpass-accts-btn4").disabled=true;t.getElementById("lpt_lastpass-accts-btn4").className="sites_disabled_"+LP.GetToolbarImageLang()
}if(t.getElementById("lpt_status-bar-accts")){t.getElementById("lpt_status-bar-accts").setAttribute("disabled",true)}if(t.getElementById("lpt_status-bar-accts2")){t.getElementById("lpt_status-bar-accts2").setAttribute("disabled",true)}if(t.getElementById("lpt_comp-bar-recentlyused")){t.getElementById("lpt_comp-bar-recentlyused").setAttribute("disabled",true)
}if(t.getElementById("lpt_non-comp-bar-recentlyused")){t.getElementById("lpt_non-comp-bar-recentlyused").setAttribute("disabled",true)}if(t.getElementById("lpt_status-bar-recentlyused")){t.getElementById("lpt_status-bar-recentlyused").setAttribute("disabled",true)}if(t.getElementById("lpt_comp-bar-accts")){t.getElementById("lpt_comp-bar-accts").setAttribute("disabled",true)
}if(t.getElementById("lpt_comp-bar-accts2")){t.getElementById("lpt_comp-bar-accts2").setAttribute("disabled",true)}if(t.getElementById("lpt_comp-bar-securenotes")){t.getElementById("lpt_comp-bar-securenotes").setAttribute("disabled",true)}if(t.getElementById("lpt_fennec-securenotes")){t.getElementById("lpt_fennec-securenotes").setAttribute("disabled",true)
}if(t.getElementById("lpt_status-bar-securenotes")){t.getElementById("lpt_status-bar-securenotes").setAttribute("disabled",true)}if(t.getElementById("lpt_lastpass-securenotes-btn")){t.getElementById("lpt_lastpass-securenotes-btn").setAttribute("disabled",true)}if(t.getElementById("lpt_search-btn")){t.getElementById("lpt_search-btn").setAttribute("disabled",true)
}if(t.getElementById("lpt_tools-btn")){t.getElementById("lpt_tools-btn").setAttribute("disabled",true)}if(t.getElementById("lpt_tools-btn4")){t.getElementById("lpt_tools-btn4").disabled=true;t.getElementById("lpt_tools-btn4").className="tools_disabled_"+LP.GetToolbarImageLang()}}if("in"==z){if(t.getElementById("lpt_lplogintolastpass")){t.getElementById("lpt_lplogintolastpass").hidden=true
}if(t.getElementById("lpt_lastpass-login")){t.getElementById("lpt_lastpass-login").label=LP.lpgs("Logoff")+(IH?": "+EV:"")}if(t.getElementById("lpt_status-bar-login")){t.getElementById("lpt_status-bar-login").label=LP.lpgs("Logoff")+(IH?": "+EV:"")}if(t.getElementById("lpt_status-bar-image")){t.getElementById("lpt_status-bar-image").src="chrome://lastpass/skin/icon.gif"
}if(t.getElementById("lpt_lastpass-login2")){t.getElementById("lpt_lastpass-login2").className="logoff_"+LP.GetToolbarImageLang()}if(t.getElementById("lpt_comp-bar-login")){t.getElementById("lpt_comp-bar-login").label=LP.lpgs("Logoff")+(IH?": "+EV:"")}if(t.getElementById("lpt_fennec-bar-login")){t.getElementById("lpt_fennec-bar-login").label=LP.lpgs("Logoff")+(IH?": "+EV:"")
}LP.changeIcon(t,true);if(t.getElementById("lpt_lastpass-fennec-btn")){t.getElementById("lpt_lastpass-fennec-btn").image="chrome://lastpass/skin/icon_big.gif"}if(t.getElementById("lpt_admin-sep")){t.getElementById("lpt_admin-sep").hidden=BJ?false:true}if(t.getElementById("lpt_admin-row")){t.getElementById("lpt_admin-row").hidden=BJ?false:true
}if(t.getElementById("lpt_lastpass-accts-btn")){t.getElementById("lpt_lastpass-accts-btn").disabled=false}if(t.getElementById("lpt_lastpass-accts-btn4")){t.getElementById("lpt_lastpass-accts-btn4").disabled=false;t.getElementById("lpt_lastpass-accts-btn4").className="sites_"+LP.GetToolbarImageLang()}if(t.getElementById("lpt_status-bar-accts")){t.getElementById("lpt_status-bar-accts").setAttribute("disabled",false)
}if(t.getElementById("lpt_status-bar-accts2")){t.getElementById("lpt_status-bar-accts2").setAttribute("disabled",false)}if(t.getElementById("lpt_comp-bar-recentlyused")){t.getElementById("lpt_comp-bar-recentlyused").setAttribute("disabled",false)}if(t.getElementById("lpt_non-comp-bar-recentlyused")){t.getElementById("lpt_non-comp-bar-recentlyused").setAttribute("disabled",false)
}if(t.getElementById("lpt_status-bar-recentlyused")){t.getElementById("lpt_status-bar-recentlyused").setAttribute("disabled",false)}if(t.getElementById("lpt_comp-bar-accts")){t.getElementById("lpt_comp-bar-accts").setAttribute("disabled",false)}if(t.getElementById("lpt_comp-bar-accts2")){t.getElementById("lpt_comp-bar-accts2").setAttribute("disabled",false)
}if(t.getElementById("lpt_comp-bar-securenotes")){t.getElementById("lpt_comp-bar-securenotes").setAttribute("disabled",false)}if(t.getElementById("lpt_fennec-securenotes")){t.getElementById("lpt_fennec-securenotes").setAttribute("disabled",false)}if(t.getElementById("lpt_lastpass-securenotes-btn")){t.getElementById("lpt_lastpass-securenotes-btn").disabled=false
}if(t.getElementById("lpt_status-bar-securenotes")){t.getElementById("lpt_status-bar-securenotes").setAttribute("disabled",false)}if(t.getElementById("lpt_search-btn")){t.getElementById("lpt_search-btn").setAttribute("disabled",false)}if(t.getElementById("lpt_tools-btn")){t.getElementById("lpt_tools-btn").setAttribute("disabled",false)
}if(t.getElementById("lpt_tools-btn4")){t.getElementById("lpt_tools-btn4").disabled=false;t.getElementById("lpt_tools-btn4").className="tools_"+LP.GetToolbarImageLang()}}if(DG!=DH){DG=DH;Ir()}};this.changeIcon=function(z,I0){if(z.getElementById("lpt_lastpass-compact-btn")){z.getElementById("lpt_lastpass-compact-btn").image="";
var t=(LP.lpprefsHasUserValue("Icon",false)?LP.lpprefsGetIntPref("Icon",false):0);var e="";if(t!=0){e="iconset"+t}z.getElementById("lpt_lastpass-compact-btn").className=(I0?"lploggedin":"")+e}};function AH(t,z){if(typeof(z[t])=="undefined"){return null}if(t=="value"){switch(z.type){case"checkbox":case"radio":return z.checked?1:0;
break;case"select-one":case"select":case"dropdown":if(z.selectedIndex<0||z.selectedIndex>=z.options.length||typeof(z.options[z.selectedIndex])=="undefined"){return null}return z.options[z.selectedIndex].value;break;case"image":return z.src;break;default:break}}return z[t]}function Gf(I3){var I1,I0;var I2={};
var t={id:1,name:1,length:1,action:1,method:1};var z={id:1,name:1,type:1,value:1,checked:1,disabled:1};for(I1 in t){I2[I1]=typeof(I3[I1])=="undefined"?null:I3[I1]}I2.elements=[];for(I1=0;I1<I3.elements.length;++I1){var I4={};for(I0 in z){I4[I0]=AH(I0,I3.elements[I1])}I2.elements.push(I4)}return I2}function Hu(I1){var I0="";
var z,t,e;for(z in I1){if(z!="elements"){I0+="\nFORM: "+z+" -> "+I1[z]}else{for(t in I1[z]){for(e in I1[z][t]){I0+="\nELEMENT #"+t+" : "+e+" -> "+I1[z][t][e]}}}}}function f(e,I2,I1){var I0,z,t;for(var I0 in e){if(I0!="elements"){if(typeof(I2[I0])=="undefined"||e[I0]!=I2[I0]){return false}}}for(I0 in e.elements){if(typeof(I2.elements[I0])=="undefined"){return false
}for(z in e.elements[I0]){if(typeof(I2.elements[I0][z])=="undefined"||e.elements[I0][z]!=I2.elements[I0][z]){return false}}}if(I1){return true}return f(I2,e,true)}function Fs(Ju,JX,Jc,J7,Jd,Jt,Jy,Kf,JH,z,Jn,JQ,JV,J5,Kd){var Kc=false;if(JX){z=Kc=true}var JU=null;if(typeof(JV)=="undefined"){JV=1}if(JV>10){return""
}if(typeof(Jn)=="undefined"||Jn==null){Jn=J7?J7.contentDocument:LP.getBrowser().contentDocument}if(typeof(Jn.LPlpforminfosaved)!="undefined"&&!JH){return}Jn.LPlpforminfosaved=true;if(Jc==1||Jc==3||Jc==4){if(typeof(Jn.LPlpforminfouploaded)!="undefined"){return}Jn.LPlpforminfouploaded=true}var Js;if(J7&&typeof(J7.lpcurrenturl)!="undefined"){Js=J7.lpcurrenturl
}else{if(typeof(Jn.location)!="undefined"){Js=Jn.location.href}else{Js=J7?LP.lpgetcurrenturl(J7):LP.lpgetcurrenturl(LP.getBrowser())}}var Jk=AN(Js);var J3=Jn.getElementsByTagName("form");var Je=J3.length;var Jx="";if(z&&JV==1){if(J5){J5.siteinfo_save_all_fields_numfields=0}}var JJ=new Array();var JZ="";
var Jv="";var Jq="";var I7="";var JT=false;var Jr=false;var JK="",JG="";var t="",J6="";var Jb=!DH;var Jf=new Array();var JM="";var JS="";var J1="";var Ka="";var Jj=new Array("");for(var JE=typeof(Jd)!="undefined"&&Jd!=0?0:1;JE<Je+(z?2:1);JE++){if(JE==1&&JT){break}var Jw="";var I4=0;var I5=0;var JN=0;
var I2;var JB;var Jm;var Ji;var Ki;if(JE==Je+1){I2=null;JZ="";JB=new Array();Jm=new Array();var Jl=new Array("input","select","textarea");for(var JD=0;JD<Jl.length;JD++){var J4=Jn.getElementsByTagName(Jl[JD]);for(var JC=0;JC<J4.length;JC++){if(J4[JC].form==null||DU(E0(J4[JC]),Jj)){JB[JB.length]=J4[JC];
Jm[Jm.length]=Jl[JD]+JC}}}Ji=JB.length;Jv="";Ki=""}else{I2=JE>=1?J3[JE-1]:Jd;JZ=JE>=1?E0(J3[JE-1]):E0(Jd);JB=JE>=1?J3[JE-1].elements:Jd.elements;Ji=JB.length;Jv=JE>=1?J3[JE-1].action:Jd.action;Ki=JE>=1?J3[JE-1].method:Jd.method}var Jp=new Array();var I3=new Array();var I8=new Array();var J2=new Array();
for(var JF=0;JF<Ji;JF++){if(typeof(Jp[JB[JF].name])!="undefined"){I8[JB[JF].name]=true}Jp[JB[JF].name]=true;if(typeof(I3[JB[JF].id])!="undefined"){J2[JB[JF].id]=true}I3[JB[JF].id]=true}for(var JF=0;JF<Ji;JF++){var I1=JB[JF];var Kh=I1.value;if(I1.type=="image"){Kh=I1.src}if(z&&Kh==""&&I1.name&&I1.name!=""){var J4=Jn.getElementsByName(I1.name);
var JP=E0(I1);var I0=false;for(var Jz=0;Jz<J4.length;Jz++){if(E0(J4[Jz].form)==JZ&&E0(J4[Jz])==JP&&J4[Jz].type==I1.type&&J4[Jz].value!=""){I0=true;break}}if(I0){continue}}var JP;if(z&&JZ==""){JP=E0(I1,true)}else{JP=E0(I1)}if((JP==""||(typeof(I8[JP])!="undefined"&&typeof(J2[JP])!="undefined"))&&z){if(JE==Je+1){JP=Jm[JF]
}else{Jj[Jj.length]=JP;continue}}if((!z||JZ!="")&&typeof(I8[JP])!="undefined"){JP=E0(I1,true)}if((!z||Kc)&&n==I2){for(var JA=0;JA<AJ.length;JA++){if(AJ[JA].name==E0(I1)){if(AJ[JA].value!=Kh){if(Kh==""||Kh.match(/^\*+$/)){Kh=AJ[JA].value}else{if(Kh.length==AJ[JA].value.length){var JW=true;for(var Jz=0;
Jz<Kh.length;Jz++){if(Kh.charAt(Jz)!=AJ[JA].value.charAt(Jz)&&Kh.charAt(Jz)!="*"){JW=false;break}}if(JW){Kh=AJ[JA].value}}}}break}}}if(I1.type=="password"&&typeof(Jn.LPlpsharedpasswordfills)=="object"){for(var JA=0;JA<Jn.LPlpsharedpasswordfills.length;JA++){if(Jn.LPlpsharedpasswordfills[JA]==I1){Kh="";
break}}}if(LP.compare_tlds(Jk,"live.com")&&I1.type=="hidden"&&E0(I1)=="login"){I1.type="text"}if(I1.type=="checkbox"){if(I1.checked){Kh+="-1"}else{Kh+="-0"}}if(I1.type=="radio"){if(I1.checked){Kh+="-1"}else{Kh+="-0"}}if(I1.type=="select-one"||I1.type=="dropdown"||I1.type=="select-multiple"){if(I1.type=="select-multiple"){Kh="";
var I6="";for(var JA=0;JA<I1.options.length;JA++){if(I1.options[JA].selected){Kh+=I6+LP.en(I1.options[JA].value);I6="|"}}}else{if(I1.selectedIndex<0||I1.selectedIndex>=I1.options.length||typeof(I1.options[I1.selectedIndex])=="undefined"){Kh=""}else{Kh=I1.options[I1.selectedIndex].value}}for(var JA=0;
JA<I1.options.length;JA++){Jw+=(z?JZ:JE)+"\t"+LP.en(JP)+"\t"+LP.en(Fh(I1.options[JA].value))+"\tselect-option\n";Jw+=(z?JZ:JE)+"\t"+LP.en(JP)+"\t"+LP.en(Fh(I1.options[JA].text))+"\tselect-option-text\n"}}if(I1.type=="text"&&E0(I1)!="openid_url"&&!I1.readOnly&&(Kh!=""||Kf)){if(!I5||!I4){JK=E0(I1);t=Kh
}I4=1;Jr=true}if(I1.type=="password"&&(Kh!=""||Kf)){if(Kh!=""){if(I5&&""!=JG&&!I4){JK=JG;t=J6;I4=1;Jr=true}if((JG==""&&J6=="")||GT(I1)){JG=E0(I1);J6=Kh}}I5=1}if(E0(I1)=="openid_url"&&(Kh!=""||Kf)){JN=1}Kh=Fh(Kh);var J8=Kh;if(I1.type=="text"||I1.type=="password"||I1.type=="textarea"||I1.type=="hidden"){if(Jb){var JL=Jf.length;
Jf[JL]=Kh;Kh="__LPENCRYPTEDSTRING"+JL+"__"}else{Kh=Ds(Kh)}}Jw+=(z?JZ:JE)+"\t"+LP.en(JP)+"\t"+LP.en(Kh)+"\t"+LP.en(I1.type)+"\n";if(z){var I9=false;if(I1.type=="text"||I1.type=="password"||I1.type=="textarea"||I1.type=="select-one"||I1.type=="select-multiple"){if(J5){J5.siteinfo_save_all_fields_numfields++
}I9=true}else{if(I1.type=="checkbox"){if(J5){J5.siteinfo_save_all_fields_numfields++}I9=true}else{if(I1.type=="radio"&&I1.checked){if(J5){J5.siteinfo_save_all_fields_numfields++}I9=true}}}if(I9){var Kb=new BT();Kb.name=JP;Kb.type=I1.type;Kb.value=Kh;Kb.formname=JZ;if(I1.type=="checkbox"||I1.type=="radio"){Kb.checked=I1.checked;
if(typeof(Kb.value)=="string"&&Kb.value.length>=2){Kb.value=Kb.value.substring(0,Kb.value.length-2)}else{Kb.value=""}}if(J5){if(J5.siteinfo_save_all_fields_fields==null){J5.siteinfo_save_all_fields_fields=new Array()}J5.siteinfo_save_all_fields_fields[J5.siteinfo_save_all_fields_fields.length]=Kb}}}var Jh=new BT();
Jh.name=E0(I1);Jh.type=I1.type;Jh.value=Jb?J8:Kh;if(I1.type=="checkbox"||I1.type=="radio"){Jh.checked=I1.checked;Jh.value=Jh.value.substring(0,Jh.value.length-2)}if(z){Jh.formname=JZ}if(I1.type!="radio"||I1.checked){JJ[JJ.length]=Jh}if(Jy&&JM==""&&I1.type=="text"&&E0(I1)!=""&&I1.value!=""){var Ja=new RegExp(LP.lpgs("ff_username_regexp"),"i");
if(Ja.exec(E0(I1))){JM=E0(I1);JS=J8}else{var J0=AK(I1);if(J0!=""&&Ja.exec(J0)){JM=E0(I1);JS=J8}}}if(Jy&&J1==""&&I1.type=="text"&&E0(I1)!=""&&I1.value!=""){var Ja=new RegExp(LP.lpgs("ff_email_regexp"),"i");if(Ja.exec(E0(I1))){J1=E0(I1);Ka=J8}else{var J0=AK(I1);if(J0!=""&&Ja.exec(J0)){J1=E0(I1);Ka=J8}}}}if(I5||JN){Jq=JZ;
I7=Jv;var J9=Jn.getElementsByTagName("input");for(var JF=0;JF<J9.length;JF++){var I1=J9[JF];var JP=E0(I1);if(I1.type=="image"){if((JE>=1&&JE<=Je&&I1.form==Jn.forms[JE-1])||(JE<1&&I1.form==Jd)){Jw+=(z?JZ:JE)+"\t"+LP.en(JP)+"\t"+LP.en(Fh(I1.src))+"\t"+LP.en(I1.type)+"\n"}}}}if(I5||JN||(JX&&I4&&(Jc>0||JE<1||JE>Je||J3[JE-1]==Jd))||z){Jx+=Jw;
if(!z){Jx+=JE+"\taction\t"+LP.en(Fh(Jv))+"\taction\n";Jx+=JE+"\tmethod\t"+LP.en(Fh(Ki))+"\tmethod\n"}JT=true}}if(!z){for(var JA=0;JA<AJ.length;JA++){if(AJ[JA].value!=""&&AJ[JA].formname&&AJ[JA].formname!=""&&AJ[JA].formname!=Jq){var I1=AJ[JA];var Kh=Fh(I1.value);if(I1.type=="text"||I1.type=="password"||I1.type=="textarea"||I1.type=="hidden"){if(Jb){var JL=Jf.length;
Jf[JL]=Kh;Kh="__LPENCRYPTEDSTRING"+JL+"__"}else{Kh=Ds(Kh)}}Jx+=I1.formname+"\t"+LP.en(E0(I1))+"\t"+LP.en(Kh)+"\t"+LP.en(I1.type)+"\n"}}}if(z){if(typeof(JQ)=="undefined"||JQ==null){JQ=J7?J7.contentWindow:LP.getBrowser().contentWindow}if(JQ&&JQ.frames){for(var JA=0;JA<JQ.frames.length;JA++){if(JQ.frames[JA].document){Jx+=Fs(Ju,JX,Jc,J7,Jd,Jt,Jy,Kf,JH,z,JQ.frames[JA].document,JQ.frames[JA].window,JV+1,J5,Kd)
}}}if(JV>1){return Jx}}if(Jq==""){Jq=JZ}if(I7==""){I7=Jv}if(Jx!=""||z){var Jo=typeof(Jn.characterSet)!="undefined"?Jn.characterSet:Jn.charset;var Kg=Ee(Js,Jn.location.toString());var JY="data="+D3(Jx)+"&ref="+LP.en(D3(Kg))+"&charset="+Jo;if(JM==""){JM=J1;JS=Ka}if(Jy){JY+="&createacct=1&username_field="+LP.en(JM);
if(JS!=""){t=JS}}JY+=LP.GetIdentityParam();var Jg=IR(Js);if(Jc==1){if(Jb){HX("Was going to potentially upload unencrypted data. upload=1,multi="+JX+",createacct="+Jy+",allowblank="+Kf,null)}else{LP.lpMakeRequest(LP.lp_base+"gm_deliver.php",JY,null)}}else{if(Jc==2){return JY}else{if(Jc==3){if(Jb){HX("Was going to potentially upload unencrypted data. upload=3,multi="+JX+",createacct="+Jy+",allowblank="+Kf,null)
}else{LP.lpMakeRequest(LP.lp_base+"gm_deliver.php",JY+"&updatefields=1&aid="+LP.en(Jt),ES)}}else{if(Jc==4){if(Jb){HX("Was going to potentially upload unencrypted data. upload=4,multi="+JX+",createacct="+Jy+",allowblank="+Kf,null)}else{LP.lpMakeRequest(LP.lp_base+"gm_deliver.php",JY+"&addurid=1&aid="+LP.en(Jt),ES)
}}else{var Kb=new u();Kb.upload=Jc;Kb.postdata=JY;Kb.url=Js;Kb.server=Jg.host;Kb.hastext=Jr;Kb.tld=J(Jg.host,Js);var JI=IR(I7);Kb.actiontld=J(JI.host,I7);var JR=J7?LP.lpgetcurrenturl(J7):LP.lpgetcurrenturl(LP.getBrowser());if(JR){Kb.topdoctld=AN(JR)}Kb.basic_auth=false;Kb.uname=JK;Kb.username=t;Kb.pname=JG;
Kb.encryptedPassword=Jb?J6:Ds(J6);Kb.needsEncryption=Jb;Kb.encryptedStrings=Jf;Kb.show_count=0;Kb.action=I7;Kb.fields=JJ;Kb.timeSaved=Ab();Kb.ignorefromcheckadd=typeof(Kd)!="undefined"&&Kd!=null?true:false;if(JX){var Ke=false;if(Jc!=5&&AJ.length>0){var Ja=new RegExp(LP.lpgs("ff_search_regexp"),"i");for(var JA=0;
JA<AJ.length;JA++){if(AJ[JA].name!=""&&AJ[JA].type=="text"&&!Ja.exec(AJ[JA].name)){Ke=true;break}}}if(Ke||Jc==5){if(G7.length>5){G7.splice(0,G7.length-5)}G7.push(Kb)}}else{var JO=typeof(Kd)!="undefined"&&Kd!=null?Kd:I7;Bz[JO]=Kb;if(!Kb.ignorefromcheckadd&&J7){LP.setTimeout(function(){LP.checkAddTimer(J7,I7)
},10000)}}}}}}if(JU){}}}function Ey(I2,I1,t,z){var I3=Bz[t];var e="";var I0=0;if(I3){if(!I3.hastext){}if(e==""){e=I3.postdata}e+="&name="+LP.en(AS(I2))+"&grouping="+LP.en(AS(I1));if(z){e+=z}LP.lpGetCurrentWindow().setTimeout((function(){BZ(e,I3.ai)}),100)}Bz[t]=null;G7=new Array()}function E6(I1,I2){var e=Bz[I1].url;
var I0;if(I2){var t=AN(e);I0="url="+LP.en(D3(t));Cm[Cm.length]=t}else{var z=ED(e);I0="url="+LP.en(D3(z));Cm[Cm.length]=z}LP.lpGetCurrentWindow().setTimeout((function(){CX(I0)}),100)}function B5(t,I1){var I0;if(I1){var e=AN(t);I0="url="+LP.en(D3(e))+"&type=1";Ib[Ib.length]=e}else{var z=ED(t);I0="url="+LP.en(D3(z))+"&type=1";
Ib[Ib.length]=z}LP.lpGetCurrentWindow().setTimeout((function(){CX(I0)}),100)}function E2(t,I1){var I0;if(I1){var e=AN(t);I0="url="+LP.en(D3(e))+"&type=2";El[El.length]=e}else{var z=ED(t);I0="url="+LP.en(D3(z))+"&type=2";El[El.length]=z}LP.lpGetCurrentWindow().setTimeout((function(){CX(I0)}),100)}function F1(t,I1){var I0;
if(I1){var e=AN(t);I0="url="+LP.en(D3(e))+"&type=3";GP[GP.length]=e}else{var z=ED(t);I0="url="+LP.en(D3(z))+"&type=3";GP[GP.length]=z}LP.lpGetCurrentWindow().setTimeout((function(){CX(I0)}),100)}function BZ(t,e){t+=LP.GetIdentityParam();LP.lpMakeRequest(LP.lp_base+"deliver_and_add.php",t,ES,null,e)}function BY(I0,z,I2,t,I4){if(!A8){return
}var I1=ED(t);if(DU(I1,Cm)||DU(z,Cm)||Bd(I4.url,I4.uname,I4.username,I4.encryptedPassword,z,I4.upload==0)||!Iq(I4.username,I4.encryptedPassword,z)){return}if(I4.upload==0&&I4.encryptedPassword==""&&(I4.username==""||I4.username.match(/^\*+$/))){return}var I3=I0.contentDocument;if(I3){I3.LPlpaddaccountshown=true
}var e=new Array();e.tld=z;e.saveall=1;e.postdata=I2;e.currenturl=t;e.fi=I4;LP.lpshowHelpDlg("addsite");Cz("AddAccountText",I0,0,"addconfirm",e)}this.lpEditAccount=function(Jb,Ja){var e=null;if(Ja.id!=0){var z=Ja.id;e=G9[z];var I0=false;if(e==null){e=CK[z];I0=true}var I1=e.tld;if(typeof(Fv[I1])!="undefined"&&typeof(Fv[I1][z])!="undefined"){delete Fv[I1][z]
}if(typeof(Bs[I1])!="undefined"){var I8=Bs[I1];if(typeof(Bs[I8])!="undefined"){for(var I4=0;I4<Bs[I8][I4];I4++){var I7=Bs[I8][I4];if(typeof(Fv[I7])!="undefined"&&typeof(Fv[I7][z])!="undefined"){delete Fv[I7][z]}}}}e.name=Ja.name;var I9=e.url;e.url=Ja.url;var I1=AN(e.url);e.tld=I1;e.group=Ja.group!=""?Ja.group:LP.get_null_group();
e.extra=Ja.extra;e.fav=Ja.fav;e.username=Ja.username;e.password=Ja.password;e.autologin=Ja.autologin;e.pwprotect=Ja.pwprotect;e.never_autofill=Ja.never_autofill;e.unencryptedUsername=Ja.unencryptedUsername;LP.SetLastTouch(e);e.genpw=false;for(var I6=0;I6<e.logins.length;I6++){if(Ja.url!=I9&&e.logins[I6].url==I9){e.logins[I6].url=Ja.url;
var I3=IR(Ja.url);e.logins[I6].server=I3.host;e.logins[I6].tld=I1;var I2=ED(Ja.url,I3);B4[B4.length]=I2}e.logins[I6].username=Ja.username;e.logins[I6].unencryptedUsername=Ja.unencryptedUsername;e.logins[I6].password=Ja.password;for(var I5=0;I5<e.logins[I6].fields;I5++){if(Ja.oldusername!=""&&e.logins[I6].fields[I5].value==Ja.oldusername){e.logins[I6].fields[I5].value=Ja.username
}if(Ja.oldpassword!=""&&e.logins[I6].fields[I5].value==Ja.oldpassword){e.logins[I6].fields[I5].value=Ja.password}}for(var I5=0;I5<e.logins[I6].otherfields;I5++){if(Ja.oldusername!=""&&e.logins[I6].otherfields[I5].value==Ja.oldusername){e.logins[I6].otherfields[I5].value=Ja.username}if(Ja.oldpassword!=""&&e.logins[I6].otherfields[I5].value==Ja.oldpassword){e.logins[I6].otherfields[I5].value=Ja.password
}}}for(var I6=0;I6<e.otherlogins.length;I6++){if(Ja.url!=I9&&e.otherlogins[I6].url==I9){e.otherlogins[I6].url=Ja.url;var I3=IR(Ja.url);e.otherlogins[I6].server=I3.host;e.otherlogins[I6].tld=I1;var I2=ED(Ja.url,I3);B4[B4.length]=I2}e.otherlogins[I6].username=Ja.username;e.otherlogins[I6].unencryptedUsername=Ja.unencryptedUsername;
e.otherlogins[I6].password=Ja.password;for(var I5=0;I5<e.otherlogins[I6].fields;I5++){if(Ja.oldusername!=""&&e.otherlogins[I6].fields[I5].value==Ja.oldusername){e.otherlogins[I6].fields[I5].value=Ja.username}if(Ja.oldpassword!=""&&e.otherlogins[I6].fields[I5].value==Ja.oldpassword){e.otherlogins[I6].fields[I5].value=Ja.password
}}for(var I5=0;I5<e.otherlogins[I6].otherfields;I5++){if(Ja.oldusername!=""&&e.otherlogins[I6].otherfields[I5].value==Ja.oldusername){e.otherlogins[I6].otherfields[I5].value=Ja.username}if(Ja.oldpassword!=""&&e.otherlogins[I6].otherfields[I5].value==Ja.oldpassword){e.otherlogins[I6].otherfields[I5].value=Ja.password
}}}if(I0){CK[z]=e}else{G9[z]=e}var I1=e.tld;if(typeof(Fv[I1])=="undefined"){Fv[I1]=new Array()}Fv[I1][z]=true;for(var I6=0;I6<Dk.length;I6++){if(Dk[I6].id==z){Dk.splice(I6,1);break}}if(parseInt(e.fav)==1){var t=new Cj();t.id=z;t.command={aid:z,manual:e.manual,is_http:e.is_http};Dk[Dk.length]=t}if(typeof(Bs[I1])!="undefined"){var I8=Bs[I1];
if(typeof(Bs[I8])!="undefined"){for(var I4=0;I4<Bs[I8].length;I4++){var I7=Bs[I8][I4];if(typeof(Fv[I7])=="undefined"){Fv[I7]=new Array()}Fv[I7][z]=true}}}Cw=true;LP.lpGetCurrentWindow().setTimeout("LP.lpRebuildToolsMenu_all();",0);LP.lpDisplayAccounts_all();LP.lpRecheckTabs()}Jb+=LP.GetIdentityParam();
LP.lpMakeRequest(LP.lp_base+"show.php",Jb,ES,null,Ja)};function CX(e){LP.lpMakeRequest(LP.lp_base+"add_never.php",e,null)}function DZ(){LP.lpGetCurrentWindow().setTimeout((function(){collect(0)}),3500)}function DJ(){var t=Ai;if(t==""||t==null){return""}var e=t+"_icons3.lps";if(!BL()){e=t+"_icons3b64.lps"
}e=e.toUpperCase();return e}function Ak(I2){var I1="";var z;if(!I2){var t=DJ();if(t==""){return I1}z=B(t);if(z==false){return I1}}else{z=I2}var I0=new RegExp("iconsversion=([^\n]+)\n");var e=I0.exec(z);if(e&&e.length==2){I1=parseInt(e[1]);if(isNaN(I1)){I1=""}else{I1=I1.toString()}}return I1}function Hn(I1){if(I1.readyState==4&&I1.status==200&&I1.responseText){var I4=I1.responseText;
if(I4=="latest"||I4=="nodata"){return}var z=Ak(I4);if(z!=""){var I3="iconsversion="+z+"\n";var I2=I4.substring(I3.length);var t=GG("LastPassIcons<"+I2+">LastPassIcons");if(t==null){return false}var I0=null;if(!BL()){I0=GG(t)}else{I0=Ds(t)}if(I0==""||I0==null){HX("Failed to encrypt icons data",null);return false
}var e=DJ();if(e!=""){Cw=true;Ce(e,I3+I0);CM(null)}}}}var At=null;function CM(Je,t){var I0="data:image/gif;base64,R0lGODlhEAAQAIcAAAAAAExnf1BpgWR0iHZ6hHeBkX+GkYiOmpeaopucoaSlqqWmqrm9w7q+xL+/wry/xcXGyc3Oz9HS1NPU1tnZ2d/h4+Di5OLj5uPl5+Tk5OXm6O7u7+7v8O/w8e/w8vDw8fHx8vLy8/Pz8/Pz9PT09fX19fX29vb29vf39/f3+Pj4+Pj4+fn5+vr6+/v7/Pz8/P39/f7+/v///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAAALAAAAAAQABAAAAiQAAEIHEiw4MAFCBEmQCjBIIAFMiLK8CBjA4QIBiFu2Fgh4oYJDgpq5Chxw4KCCiqSlKigIAKVGyowYNDgAYGCB2BWsHABgwYDBQvA/CCiBAoVBQoOUNlBhAkVLV4MKCigIgenK1zAiCGgYICKIEhAhRExgFcZHEKcYEG27NkOI1K0aCvDLMEAePPqteuwr8CAADs=";
var I8="data:image/gif;base64,R0lGODlhEAAQAPfBAFdCGCpgtyxity1kuS5kuS5luS9lujBlujBmujFmuzFnuzNpvIdhK4JmLjZvvzhxvzt2wTt2xKZoJjx4wT98xUB8xEKAxUKAxkWCxUWCxkeExkmFxEmIxkqIxkuIxWCFrUuJxUuJxkyJxr56Gk2LyE+Lx0+MyE+MyU+NyKqJQ8mFQWWU27yJTMKMSMeMSMWYSWWo0siZZLOfcNqYSduZS9CdRk+y99iaVFGy99mbUVW0+NOfZuChUdejY32y4tilWGG8+2K8/GK9/GO9+2C+/Ge9/GS+/GW++2i//W7C/duxhb+2ptW2etG3kNa5dprJ4+e+d+fAi8zGsMzGs+TJVcLLtpPU/8nNr5TV/+3KbefLd5XW//nHlPnJke3QeM3S2tDUvrjW9O7TebrW9fDTecjV4u7UffHUe9XWve7Vgc3W4fLWeu/SrPDStMHb+PbTrvXcXvXcX8Lc+MTd+fXfW/bdbPffY8Xf+ffhWsfg+sjg+ffiW8jg+8ng+/jiXcjh+8nh+8rh+sni+8vi+83j+83j/Onf0s7j+8/j/M/k/NDk+9Hk/PHjr9Xl/tPm/Nfm8tTm/NTm/fzgxPnjstPn/dXn/dbn/dbn/tfn/tbo/tfo/tjo/tzq9t7q9t7r9t/r9d/s9+Pt9+bw9+jx+Orx+Ory+uvy+Ozy9+zy+Ovz+uzz+e3z+O30+O30+e70+O/0+f/y4PD0+f32wv32xPH1+f/z5f33x/L2+vL3+/P3/PT3+/T4/PX5/Pf6/fj7/fj7//3+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH5BAEKAP8ALAAAAAAQABAAAAj+AP/9I2GioAkUJ0qAiCCw4YZTrlitmojq1CMfKxr+83ArDyBBfO64CfOryg8lNQSKoFXoEKFBeuSMYQSlTS02Lv6FoIVIUaJCgeZcSTMpyhtJO3TGcgSJ0iJCYMzMqpOlRwyBHV5hslQpEhoxtuLsWcPjg0AOrTZt0iRFiy04eM7QMJRBoAZVmTRNcSLLjh8yM8qUuiAQg6lLS5g0oULHSw41gHBREGhhVKMUsG6MeNHiS58/vSAIrCBKRwMuXVRIgIHDhg1eDgROCJUEAAMWMp5swWLliC4FAh98QlLkiBEjQoYAIRLE1wCBC0iB8tSJE6dUqUrl2gUsQMMDCRAMiD9goEABAgQECAwIADs=";
function I2(){U(DJ());versionff="0";LP.lpMakeRequest(LP.lp_base+"geticon.php","versionff="+LP.en(versionff),Hn);return I0}if(At==null||Je==null){At=new Array();var Ja=DJ();if(Ja==""){return I0}var I3=B(Ja);if(I3==""||I3==null){return I2()}var I6=new RegExp("(iconsversion=[^\n]+\n)");var I7=I6.exec(I3);
if(!I7||I7.length!=2){return I2()}var Jc=I7[1];I3=I3.substring(Jc.length);try{var I1=null;if(!BL()){I1=AI(I3)}else{I1=BD(I3)}}catch(Jd){return I2()}if(I1==""||I1==null){return I2()}if(I1.length%4!=0||I1.length<50){return I2()}var Jf=AI(I1);if(Jf==null){return I2()}var z=Jf.indexOf(">LastPassIcons");if(-1==z){return I2()
}if(Jf.length<=2*14||Jf.indexOf("LastPassIcons<")!=0||z!=(Jf.length-14)){return I2()}Jf=Jf.substring(14,z);while(true){if(Jf.length<10){break}var I6=new RegExp("lp([^:]+):([^:]+):");var I7=I6.exec(Jf);if(!I7||I7.length!=3){break}var I9=I7[1];var I4=I7[2];var I5=parseInt(I4);if(isNaN(I5)){break}var Jb="lp"+I9+":"+I4+":";
At[I9]=Es(Jf,Jb.length,Jb.length+I5);Jf=Jf.substring(Jb.length+I5)}}if(Je!=null){if(typeof(At[Je+".gif"])!="undefined"){I0="data:image/gif;base64,"+At[Je+".gif"]}else{if(typeof(At[Je+".ico"])!="undefined"){I0="data:image/ico;base64,"+At[Je+".ico"]}else{if(t){I0=I8}}}return I0}}function Es(I1,I2,I0){var z="";
var e;var t=I0-I2;for(e=0;e<t;++e){z+=I1[e+I2]}return z}function ES(e,Jg,Jm){if(4==e.readyState){if(200==e.status&&e.responseXML!=null&&e.responseXML.documentElement!=null){var Jf=e.responseXML.documentElement;var Jk=Jf.getElementsByTagName("error");if(Jk.length>0){var I0=Jk[0].getAttribute("msg");if(I0=="blacklisted"){j("ErrorUnsafeSiteMsg")
}}else{var I7=Jf.getElementsByTagName("result");if(I7.length>0){var I0=I7[0].getAttribute("msg");if(I0=="accountupdated"||I0=="accountadded"){var Jd=parseInt(I7[0].getAttribute("localupdate"));var I2=parseInt(I7[0].getAttribute("accts_version"));if(Jd&&I2==BP+1){var I1=I7[0].getAttribute("aid");var z=I7[0].getAttribute("urid");
var Jn=null;if(I0=="accountadded"){var I4=new Iu();I4.pendingshare=false;I4.url=Jm.url;var Jo=AN(I4.url);I4.tld=Jo;I4.name=Jm.name;I4.urid=z;I4.id=I1;I4.manual="0";I4.is_http="0";I4.extra=Jm.extra;I4.fav=Jm.fav;I4.favico="0";I4.autologin=Jm.autologin;I4.basic_auth=Jm.basic_auth;I4.group=Jm.group!=""?Jm.group:LP.get_null_group();
I4.fiid="0";I4.genpw=false;I4.isbookmark=Jm.isbookmark;I4.never_autofill=Jm.never_autofill;LP.SetLastTouch(I4);I4.sn=Jm.url=="http://sn"?true:false;I4.username=Jm.username;I4.password=Jm.password;I4.unencryptedUsername=Jm.unencryptedUsername;I4.save_all=typeof(Jm.save_all)!="undefined"?Jm.save_all:false;
I4.pwprotect=Jm.pwprotect;I4.realm=Jm.realm;I4.sharedfromaid="";I4.logins=new Array();I4.otherlogins=new Array();I4.fields=new Array();var Jb=new GZ();Jb.urid=z;Jb.url=Jm.url;var I8=IR(Jb.url);Jb.server=I8.host;Jb.tld=J(I8.host,Jb.url);var Jc=ED(Jb.url,I8);Jb.submit_id="";Jb.captcha_id="";Jb.custom_js="";
Jb.username=Jm.username;Jb.password=Jm.password;Jb.openid_url="";Jb.method="";Jb.unencryptedUsername=Jm.unencryptedUsername;Jb.uname="";Jb.pname="";Jb.oname="";Jb.fields=new Array();var Je=new RegExp(LP.lpgs("ff_captcha_regexp"),"i");if(typeof(Jm.logins)!="undefined"&&Jm.logins.length>0&&typeof(Jm.logins[0].fields)!="undefined"){var I5=false;
var Jp=false;for(var Ji=0;Ji<Jm.logins[0].fields.length;Ji++){var I9=Jm.logins[0].fields[Ji];if(I9.type=="text"&&I9.name!="openid_url"){if(Jb.username!=""&&I9.value==Jb.username){Jb.uname=I9.name;I5=true}else{if(!I5&&(Jb.pname==""||Jb.uname=="")){Jb.uname=I9.name}}}if(I9.type=="password"){if(Jb.password!=""&&I9.value==Jb.password){Jb.pname=I9.name;
Jp=true}else{if(!Jp){Jb.pname=I9.name}}}if(I9.type=="text"&&I9.name=="openid_url"){Jb.oname=I9.name}if(Jb.captcha_id==""&&I9.type=="text"&&Je.exec(I9.name)){Jb.captcha_id=I9.name}Jb.fields[Jb.fields.length]=I9}}if(I4.save_all&&typeof(Jm.logins)!="undefined"&&Jm.logins.length>0&&typeof(Jm.logins[0].otherfields)!="undefined"){Jb.otherfields=Jm.logins[0].otherfields;
if(Jb.captcha_id==""){for(var Ji=0;Ji<Jb.otherfields.length;Ji++){if(Jb.otherfields[Ji].type=="text"&&Je.exec(Jb.otherfields[Ji].name)){Jb.captcha_id=Jb.otherfields[Ji].name;break}}}}else{Jb.otherfields=new Array()}I4.logins[0]=Jb;if(I4.sn){CK[I1]=I4}else{G9[I1]=I4}Jn=I4;LP.addAidIdentity(I1);EU++;B4[B4.length]=Jc
}else{if(I0=="accountupdated"){}}if(I0=="accountadded"){var Jo=Jn.tld;if(typeof(Fv[Jo])=="undefined"){Fv[Jo]=new Array()}Fv[Jo][I1]=true;for(var Jl=0;Jl<Dk.length;Jl++){if(Dk[Jl].id==I1){Dk.splice(Jl,1);break}}if(parseInt(Jn.fav)==1){var I6=new Cj();I6.id=I1;I6.command={aid:I1,manual:Jn.manual,is_http:Jn.is_http};
Dk[Dk.length]=I6}if(typeof(Bs[Jo])!="undefined"){var Jq=Bs[Jo];if(typeof(Bs[Jq])!="undefined"){for(var Jj=0;Jj<Bs[Jq].length;Jj++){var Jh=Bs[Jq][Jj];if(typeof(Fv[Jh])=="undefined"){Fv[Jh]=new Array()}Fv[Jh][I1]=true}}}}BP=I2;H7=I2;var I3=true;var t=HT();if(t==null){I3=false}if(I0=="accountupdated"&&I3&&!B6(t,I1,false)){I3=false
}if(I3&&!Fr(t,typeof(G9[I1])!="undefined"?G9[I1]:CK[I1],I0=="accountadded"?true:false)){I3=false}if(I3&&!E1(t,I2)){I3=false}if(I3&&!Bx(t,null,"lpAddResponse")){I3=false}if(I3){Q()}else{LP.lpGetAccounts()}}else{LP.lpGetAccounts()}Ir();LP.lpGetCurrentWindow().setTimeout('LP.saveGroupState(null,"lpAddResponse");',500)
}else{if(I0=="not logged in"){DS();j("ErrorSessionMsg",false,true)}}}else{var Ja=Jf.getElementsByTagName("ok");if(Ja.length>0){LP.lpGetAccounts();Ir()}}}}else{var I0="Problem in lpAddResponse. status="+e.status;HX(I0,null);j("ErrorAddAcctMsg")}}else{}}function AW(I6,e,t){if(4==I6.readyState){if(200==I6.status&&I6.responseXML!=null&&I6.responseXML.documentElement!=null){var I1=I6.responseXML.documentElement;
var Ja=I1.getElementsByTagName("result");if(Ja.length>0){var z=Ja[0].getAttribute("msg");if(z=="ffadded"||z=="ffupdated"||z=="ffdeleted"){var I4=parseInt(Ja[0].getAttribute("accts_version"));if(I4==BP+1){var I5=Ja[0].getAttribute("ffid");var I7=Ja[0].getAttribute("cfids");if(z=="ffadded"){if(z=="ffupdated"||z=="ffdeleted"){for(var I2=0;
I2<d.length;I2++){if(d[I2].ffid==I5){d.splice(I2,1);break}}}if(z=="ffadded"||z=="ffupdated"){t.ffid=I5;d[d.length]=t;d.sort(Ca)}LP.addFfidIdentity(I5)}if(z=="ffadded"||z=="ffupdated"){if(I7!=""){var I3=I7.split(",");var I0=0;for(var I2=0;I2<t.customfields.length&&I0<I3.length;I2++){if(t.customfields[I2].cfid==0){t.customfields[I2].cfid=I3[I0++]
}}}}BP=I4;H7=I4;var I8=true;var I9=HT();if(I9==null){I8=false}if(z=="ffupdated"||z=="ffdeleted"){if(I8&&!Bl(I9,I5,z=="ffdeleted")){I8=false}}if(z=="ffadded"||z=="ffupdated"){if(I8&&!FX(I9,t,z=="ffadded")){I8=false}}if(I8&&!E1(I9,I4)){I8=false}if(I8&&!Bx(I9,null,"lpFormFillResponse")){I8=false}if(I8){Q()
}else{LP.lpGetAccounts()}}else{LP.lpGetAccounts()}Ir()}}}else{var z="Problem in lpFormFillResponse. status="+I6.status;HX(z,null);j("ErrorSendingMsg")}}}function C7(){if(CT){return}var I0=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var I3=I0.getEnumerator("");var z=0;while(I3.hasMoreElements()&&!z){var I2=I3.getNext();if(typeof(I2.getBrowser)=="function"){var e=I2.getBrowser();if(null!=e){var I1=e.browsers;for(var t=0;I1&&t<I1.length;t++){if(typeof(I1[t].currentURI.spec)!="undefined"&&I1[t].currentURI.spec.indexOf("chrome://lastpass/content/home.xul")==0){z=1;
break}}}}}if(!z){Au("chrome://lastpass/content/home.xul")}}this.launchHome=function(){if(CT){return}if(!DH){this.lpOpenLogin();return}Au("chrome://lastpass/content/home.xul")};function Ir(){var t=(new Date()).getTime();if(D!=null&&t<(D+2000)){return}if(ET!=null&&t<(ET+10000)){ET=null;return}D=t;var I8=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var I3=I8.getEnumerator("");while(I3.hasMoreElements()){var I1=I3.getNext();if(typeof(I1.getBrowser)=="function"){var I6=I1.getBrowser();if(null!=I6){var I4=I6.browsers;for(var I0=0;I4&&I0<I4.length;I0++){if(typeof(I4[I0])!="undefined"&&As(I4[I0].currentURI.spec,null,I4[I0].currentURI.asciiHost)&&I4[I0].currentURI.spec.indexOf("lpnorefresh=1")==-1){var z=Components.interfaces.nsIWebNavigation.LOAD_FLAGS_BYPASS_HISTORY|Components.interfaces.nsIWebNavigation.LOAD_FLAGS_BYPASS_PROXY|Components.interfaces.nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE;
var I7=I4[I0].webNavigation.sessionHistory.getEntryAtIndex(I4[I0].webNavigation.sessionHistory.index,false);var I5=I7.QueryInterface(Components.interfaces.nsISHEntry).referrerURI;try{I4[I0].webNavigation.loadURI(I4[I0].webNavigation.currentURI.spec,z,I5,null,null)}catch(I2){HX("Error in lprefreshwindows:"+I2+" ln: "+I2.lineNumber,null)
}}}}}}}function DV(Jc,I7,I9){var I4=I7?I7.contentWindow.location:LP.getBrowser().contentWindow.location;if(Bz[Jc]==null){return}var Jd=Bz[Jc].url;var I2=ED(Jd);var I1=AN(Jd);if(Bz[Jc].needsEncryption){Bz[Jc]=Fw(Bz[Jc]);if(Bz[Jc]==null){return}}if(F5||(!Bd(Jd,Bz[Jc].uname,Bz[Jc].username,Bz[Jc].encryptedPassword,I1)&&!DU(I2,Cm)&&!DU(I1,Cm)&&Iq(Bz[Jc].username,Bz[Jc].encryptedPassword,I1))){var I8=false;
var t;if(typeof(LP.getBrowser().getNotificationBox)=="function"){t=LP.getBrowser().getNotificationBox(I7).currentNotification}if(t){if(typeof(t.choices)!="undefined"&&t.choices=="addconfirm"&&typeof(t.extra)!="undefined"&&typeof(t.extra.key)!="undefined"){var Jb=t.extra.key;if(Jb==Jc){I8=true}}}if(!I8){var Ja=I7.contentDocument;
if(!I9&&Ja){var e=Br(null,Ja);if(e&&ED(e.action)==ED(Bz[Jc].action)){var I3=new Array();I3.fields=Bz[Jc].fields;if(Ev(e,I3,null,false)){if(!F5){var I6=LP.getBrowser().getNotificationBox(I7).allNotifications;for(var I5=I6.length-1;I5>=0;I5--){if(typeof(I6[I5].choices)!="undefined"&&I6[I5].choices=="addconfirm"){LP.getBrowser().getNotificationBox(I7).removeNotification(I6[I5])
}}Bz[Jc]=null;return}}}}var I0=Ab();if(Bz[Jc].show_count==0){Bz[Jc].first_show_time=I0}if(++Bz[Jc].show_count>5||I0-Bz[Jc].first_show_time>=30){var I6=LP.getBrowser().getNotificationBox(I7).allNotifications;for(var I5=I6.length-1;I5>=0;I5--){if(typeof(I6[I5].choices)!="undefined"&&I6[I5].choices=="addconfirm"){LP.getBrowser().getNotificationBox(I7).removeNotification(I6[I5])
}}Bz[Jc]=null;return}if(!A8){return}var z=new Array();z.key=Jc;z.tld=I1;LP.lpshowHelpDlg("addsite");Cz("AddAccountText",I7,0,"addconfirm",z);if(Ja){Ja.LPlpaddaccountshown=true}}}else{Bz[Jc]=null}}function Fw(t){if(t.needsEncryption){if(!DH||typeof(Hk)!="string"||0==Hk.length){return null}for(var e=0;
e<t.encryptedStrings.length;e++){t.postdata+="&encryptedstring"+e+"="+LP.en(Ds(t.encryptedStrings[e]))}t.encryptedPassword=Ds(t.encryptedPassword);if(typeof(t.fields)!="undefined"){for(var e=0;e<t.fields.length;e++){if(t.fields[e].type=="text"||t.fields[e].type=="password"||t.fields[e].type=="textarea"||t.fields[e].type=="hidden"){t.fields[e].value=Ds(t.fields[e].value)
}}}t.needsEncryption=false}return t}function Bd(t,I9,I3,e,I0,I6){var I4=typeof(Fv[I0])!="undefined"?Fv[I0]:new Array();for(var I5 in I4){if(typeof(G9[I5])=="undefined"||G9[I5].genpw||G9[I5].isbookmark){continue}if(G9[I5].logins){for(var I2=0;I2<G9[I5].logins.length;I2++){var I8=G9[I5].logins[I2];if((I8.unencryptedUsername==I3||(I9==""&&I3==""))&&I8.password==e){return true
}if(G9[I5].save_all&&ED(G9[I5].url)==ED(t)&&I8.urid==0&&I8.otherfields){var z=I9==""&&I3==""?true:false;var I7=I6&&e==""?true:false;for(var I1=0;I1<I8.otherfields.length;I1++){if(!z&&I8.otherfields[I1].type=="text"&&Ds(I3)==I8.otherfields[I1].value){z=true}else{if(!I7&&I8.otherfields[I1].type=="password"&&e==I8.otherfields[I1].value){I7=true
}}if(z&&I7){return true}}}}}}return false}function Iq(I3,I2,t){var e=Ab();var I0=new Array();for(var z in H9){var I1=H9[z];if(e>(I1.rejectedTime+60*10)){I0[I0.length]=z}}for(var z=I0.length-1;z>=0;z--){H9.splice(I0[z],1)}for(var z in H9){var I1=H9[z];if(I1.username==I3&&I1.encryptedPassword==I2&&LP.compare_tlds(I1.tld,t)){return false
}}return true}function CU(I0,z,e){var t=new Iy();t.username=I0;t.encryptedPassword=z;t.tld=e;t.rejectedTime=Ab();H9[H9.length]=t}this.lpGetPageOpenSetting=function(z){var I2=LP.lpprefsHasUserValue("pageOpenTab");var t=true;if("same"==z){if(LP.lpprefsHasUserValue("pageOpenSameTab")){return LP.lpprefsGetBoolPref("pageOpenSameTab")
}return false}if(I2){t=LP.lpprefsGetBoolPref("pageOpenTab")}else{try{var I0=LP.lpmainprefs.getIntPref("browser.link.open_newwindow");if(I0!=2){t=true}else{t=false}}catch(I1){}}return t};function Au(z,I3,I0){var t=LP.lpGetPageOpenSetting("");var I2=LP.lpGetPageOpenSetting("same");if(I3){I2=false}if(Cu){I2=false
}if(t){if(I2){LP.mostRecent().getBrowser().selectedTab=LP.mostRecent().loadURI(z)}else{if(LP.isFennec){LP.mostRecent().getBrowser().selectedTab=LP.fennecBrowser.addTab(z)}else{LP.mostRecent().getBrowser().selectedTab=LP.mostRecent().getBrowser().addTab(z)}}if(I0){var e=LP.mostRecent().getBrowser().getBrowserForTab(LP.mostRecent().getBrowser().selectedTab);
if(typeof(e)!="undefined"){e.loginAid=I0}}}else{IQ++;var I1=LP.lpGetCurrentWindow().open(z);I1.focus()}}this.lpbaseopen=function(e){Au(LP.lp_base+e,false)};this.lpanyopen=function(e){Au(e)};this.lpbaseopenwin=function(t){var e=LP.mostRecent().open(LP.lp_base+t);e.focus()};this.lpOpenLP=function(){if(CT){return
}var e="chrome://lastpass/content/home.xul";Au(e)};function Ad(z,I4){var I5=Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("ProfD",Components.interfaces.nsIFile);try{if(LP.lpis_win&&!H4()){var I1=Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("LocalAppData",Components.interfaces.nsIFile);
if(I1.isDirectory()&&I1.exists()){var I2=I1.clone();if(I2.path.indexOf("\\Local")==I2.path.length-6){I2=I2.parent;I2.append("LocalLow");if(I2.isDirectory()&&I2.exists()){I1=I2.clone()}else{I2=I1.clone()}}else{I2=I1.clone()}I2.append("LastPass");if(!I2.exists()||!I2.isDirectory()){I2.create(Components.interfaces.nsIFile.DIRECTORY_TYPE,511)
}var t="";if(t!=""){I2.append(t);if(!I2.exists()||!I2.isDirectory()){I2.create(Components.interfaces.nsIFile.DIRECTORY_TYPE,511)}}I1=I2.clone();I2.append(z);if(!I2.exists()&&I4){var I0=I5.clone();I0.append(z);if(I0.exists()){I0.moveTo(I1,z)}}return I1}}}catch(I3){HX("Error in lpGetFileDir:"+I3+" ln: "+I3.lineNumber,null)
}return I5}function Ce(t,I4,I0){if(IC){if(t.indexOf("_lpall.slps")>=0||t.indexOf("_lps.act.sxml")>=0||t.indexOf("_lp.act.xml")>=0||t.indexOf("_ff.sotp")>=0){return}}var I3=(I4.length>20?(I4.substring(0,20)+"..."):I4);try{var z=null;if(I0==null){z=Ad(t,false);z.append(t)}else{z=I0}var I1=Components.classes["@mozilla.org/network/safe-file-output-stream;1"].createInstance(Components.interfaces.nsIFileOutputStream);
I1.init(z,2|8|32,384,0);I1.write(I4,I4.length);if(I1 instanceof Components.interfaces.nsISafeOutputStream){I1.finish()}else{I1.close()}}catch(I2){HX("lpWriteFile : "+t+" "+I2+" ln: "+I2.lineNumber)}}function B(I0){try{var I1=Ad(I0,true);I1.append(I0);if(!I1.exists()){return false}var I3=Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream);
I3.init(I1,-1,-1,false);var z=Components.classes["@mozilla.org/binaryinputstream;1"].createInstance(Components.interfaces.nsIBinaryInputStream);z.setInputStream(I3);var t=z.readBytes(z.available());I3.close();return t}catch(I2){HX("lpReadFile : "+I0+" "+I2+" ln: "+I2.lineNumber);return false}}function U(t){try{var z=Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("ProfD",Components.interfaces.nsIFile);
z.append(t);if(z.exists()){z.remove(false)}var I0=Ad(t,false);I0.append(t);if(I0.exists()){I0.remove(false)}}catch(I1){}}function Fy(I0){var t=Ad("",false);var e=t.directoryEntries;while(e.hasMoreElements()){var z=e.getNext();z.QueryInterface(Components.interfaces.nsIFile);if(z.isFile()&&z.leafName.toLowerCase().indexOf(I0.toLowerCase())==(z.leafName.length-I0.length)){z.remove(false)
}}}function AC(t){try{var z=Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("ProfD",Components.interfaces.nsIFile);var I0=Ad(t,false);z.append(t);I0.append(t);return z.exists()||I0.exists()}catch(I1){}return false}function C3(I1,I2){try{var z=Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("ProfD",Components.interfaces.nsIFile);
if(LP.lpis_win&&!H4()){var I4=Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("LocalAppData",Components.interfaces.nsIFile);if(I4.isDirectory()&&I4.exists()){var I0=I4.clone();if(I0.path.indexOf("\\Local")==I0.path.length-6){I0=I0.parent;
I0.append("LocalLow");if(I0.isDirectory()&&I0.exists()){I4=I0.clone()}else{I0=I4.clone()}}else{I0=I4.clone()}I0.append("LastPass");if(!I0.exists()||!I0.isDirectory()){I0.create(Components.interfaces.nsIFile.DIRECTORY_TYPE,511)}var t="";if(t!=""){I0.append(t);if(!I0.exists()||!I0.isDirectory()){I0.create(Components.interfaces.nsIFile.DIRECTORY_TYPE,511)
}}I4=I0.clone();z=I4.clone()}}z.append(I1);if(!z.exists()){return}else{z.moveTo(null,I2)}}catch(I3){}}this.lpAdminPage=function(){var e=LP.lp_base+"admintools/";Au(e)};this.lpCloseNotifications=function(I4){var I6=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var I2=I6.getEnumerator("");while(I2.hasMoreElements()){var I1=I2.getNext();if(typeof(I1.getBrowser)=="function"){var I5=I1.getBrowser();if(null!=I5&&typeof(I5.getNotificationBox)=="function"){var I3=I5.browsers;for(var I0=0;I3&&I0<I3.length;I0++){var e=I5.getNotificationBox(I3[I0]);if(I4){var z=e.allNotifications;
for(var t=z.length-1;t>=0;t--){if(typeof(z[t].choices)!="undefined"&&z[t].choices==I4){e.removeNotification(z[t])}}}else{e.removeAllNotifications(false)}}}}}};this.lpOpenSearch=function(t,z){if(!DH){this.lpOpenLogin();return}var e=LP.lpGetCurrentWindow().openDialog(GY+"content/search.xul","_blank","resizable=yes,chrome,titlebar,toolbar,centerscreen,close=yes",t);
o.push(e)};this.lpToolbarInit=function(I4){try{var I3=I4.originalTarget;GL=(LP.lpprefsHasUserValue("language",false)?LP.lpprefsGetCharPref("language",false):null);var t=false;if(GL=="cs-CS"){GL="cs-CZ";t=true}else{if(GL=="ms-SG"){GL="ms-MY";t=true}else{if(GL=="no-NO"){GL="nb-NO";t=true}else{if(GL=="zh-HS"){GL="zh-CN";
t=true}else{if(GL=="zh-HT"){GL="zh-TW";t=true}}}}}if(t){LP.lpprefsSetCharPref("language",GL,false);LP.flush_prefs()}if(GL==""){GL=null}HO();LP.lpSetupHotKeys(I3);LP.SetupUserPreferences();DA(I3,FP);AG(I3);LP.lp_handle_buttons("refresh",I3);LP.ShowPremiumMenuItem();var I6=C4(I3);if(!I6){Dr()}if(!Hf&&!I6){if(C8){LP.httptest()
}}var z=LP.lpprefsHasUserValue("version");if(z&&EL(LP.lpprefsGetCharPref("version"),DF,false)<0){var I0=LP.lp_base+"upgrade.php?ver="+LP.en(DF)+"&type=ff&upgrade="+z;LP.lpGetCurrentWindow().setTimeout(function(){Au(I0,true)},3000);LP.lpprefsSetCharPref("version",DF);LP.flush_prefs()}var I1=I3.getElementById("contentAreaContextMenu");
if(I1){I1.addEventListener("popupshowing",LP.hide_context,false)}if(LP.lpprefsHasUserValue("doautocompletesearch")&&LP.lpprefsGetBoolPref("doautocompletesearch")){var I5=I3.defaultView.gURLBar.getAttribute("autocompletesearch");if(I5!="lastpass"&&I5.indexOf(" lastpass")==-1&&I5.indexOf("lastpass ")==-1){I5+=(I5!=""?" ":"")+"lastpass";
I3.defaultView.gURLBar.setAttribute("autocompletesearch",I5)}}}catch(I2){HX("lpToolbarInit: "+I2+" ln: "+I2.lineNumber)}};function CS(e){if(BM){return}BM=true;if(e){LP.lplogincheck("frompipes")}else{LP.httptest()}}function CY(I0){try{LP.sr(I0,"lpt_viewSidebar","label","LastPass Sites");LP.sr(I0,"lpt_viewSidebar","sidebartitle","LastPass Sites");
LP.sr(I0,"lpt_lastpass-compact-btn","label","LastPass");LP.sr(I0,"lpt_lastpass-compact-btn","tooltiptext","LastPass");LP.sr(I0,"lpt_comp-bar-login","label","Login");LP.sr(I0,"lpt_lpidentitiesmenu1","label","Identities");LP.sr(I0,"lpt_lastpasshome","label","My LastPass Vault");LP.sr(I0,"lpt_lastpasshome1","label","My LastPass Vault");
LP.sr(I0,"lpt_lastpasshome","hidden",CT);LP.sr(I0,"lpt_comp-bar-recentlyused","label","Recently Used");LP.sr(I0,"lpt_non-comp-bar-recentlyused","label","Recently Used");LP.sr(I0,"lpt_comp-bar-accts","label","Sites");LP.sr(I0,"lpt_compbaritem","label","Retrieving Sites...");LP.sr(I0,"lpt_compbaritem2","label","Retrieving Sites...");
LP.sr(I0,"lpt_comp-bar-accts2","label","Sites");LP.sr(I0,"lpt_comp-bar-securenotes","label","SecureNotes");LP.sr(I0,"lpt_fennec-securenotes","label","SecureNotes");LP.sr(I0,"lpt_comp-bar-securenotes","hidden",EX);LP.sr(I0,"lpt_comp-bar-fav","label","OpenFavorites");LP.sr(I0,"lpt_lpfillformsmenu1","label","Fill Forms");
LP.sr(I0,"lpt_lppreferences","label","Preferences");LP.sr(I0,"lpt_lphelp","label","Help...");LP.sr(I0,"lpt_comp-bar-tools","label","Tools");LP.sr(I0,"lpt_lpfeedback","label","Feedback");LP.sr(I0,"lpt_lpgenpw","label","Generate Secure Password");LP.sr(I0,"lpt_lpsearch","label","Site Search");LP.sr(I0,"lpt_lprecheck","label","Recheck Page");
LP.sr(I0,"lpt_lprefresh","label","RefreshAccounts");LP.sr(I0,"lpt_lpimportfrom","label","Import From");LP.sr(I0,"lpt_lpimportff","label","Firefox Password Manager");LP.sr(I0,"lpt_lpimportonepass","label","1Password");LP.sr(I0,"lpt_lpimportkeepass","label","KeePass");LP.sr(I0,"lpt_lpimportclipperz","label","Clipperz");
LP.sr(I0,"lpt_lpimportewallet","label","eWallet");LP.sr(I0,"lpt_lpimportfireform","label","FireForm");LP.sr(I0,"lpt_lpimportpwcoral","label","Password Corral");LP.sr(I0,"lpt_lpimportpassworddragon","label","Password Dragon");LP.sr(I0,"lpt_lpimporthppwsafe","label","HP Password Safe");LP.sr(I0,"lpt_lpimportpasswordsmax","label","Passwords Max");
LP.sr(I0,"lpt_lpimportpins","label","PINs Password Manager");LP.sr(I0,"lpt_lpimportsplashid","label","SplashID");LP.sr(I0,"lpt_lpimportlastpass","label","LastPass");LP.sr(I0,"lpt_lpimportmypwsafe","label","MyPasswordSafe");LP.sr(I0,"lpt_lpimportpasspack","label","PassPack");LP.sr(I0,"lpt_lpimportpwsafe","label","Password Safe");
LP.sr(I0,"lpt_lpimportroboform","label","RoboForm");LP.sr(I0,"lpt_lpimportturbopasswords","label","TurboPasswords");LP.sr(I0,"lpt_lpimportpasskeep","label","Password Keeper");LP.sr(I0,"lpt_lpimportcsv","label","Generic CSV File");LP.sr(I0,"lpt_lpimportmsi","label","MSI PasswordKeeper");LP.sr(I0,"lpt_lpimportpwagent","label","Password Agent");
for(var t=1;I0.getElementById("lpt_lpimport"+t);t++){LP.sr(I0,"lpt_lpimport"+t,"label","Import");LP.sr(I0,"lpt_lpinstructions"+t,"label","Instructions")}LP.sr(I0,"lpt_lpexportto","label","Export To");LP.sr(I0,"lpt_lpexportcsv","label","LastPass CSV File");LP.sr(I0,"lpt_lpexportff","label","Firefox");
LP.sr(I0,"lpt_lpexportenc","label","LastPass Encrypted File");LP.sr(I0,"lpt_lpprint","label","Print");LP.sr(I0,"lpt_lpprintaccounts","label","Sites");LP.sr(I0,"lpt_lpprintsn","label","SecureNotes");LP.sr(I0,"lpt_lpprintsn","hidden",EX);LP.sr(I0,"lpt_lpabout","label","About...");LP.sr(I0,"lpt_lpseccheck","label","Security Check");
LP.sr(I0,"lpt_lpothersessions","label","Other Sessions");LP.sr(I0,"lpt_lpclearcache1","label","Clear Local Cache");LP.sr(I0,"lpt_lpclearcache2","label","Clear Local Cache");LP.sr(I0,"lpt_lpsaveall","label","Save All Entered Data");LP.sr(I0,"lpt_lpedit","label","Edit");LP.sr(I0,"lpt_lpdelete","label","Delete");
LP.sr(I0,"lpt_lpgotourl","label","Go to URL");LP.sr(I0,"lpt_lpcopyun","label","Copy Username");LP.sr(I0,"lpt_lpcopypw","label","Copy Password");LP.sr(I0,"lpt_lastpass-toolbar","toolbarname","LastPassToolbar");LP.sr(I0,"lpt_lastpass-login","label","Login");LP.sr(I0,"lpt_lastpass-com","label","My LastPass Vault");
LP.sr(I0,"lpt_lastpass-com","hidden",CT);LP.sr(I0,"lpt_lastpass-com-sep","hidden",CT);LP.sr(I0,"lpt_lastpass-accts-btn","label","Sites");LP.sr(I0,"lpt_lastpassitem","label","Retrieving Sites...");LP.sr(I0,"lpt_lastpass-securenotes-btn","label","SecureNotes");LP.sr(I0,"lpt_lastpass-securenotes-btn","hidden",EX);
LP.sr(I0,"lpt_lastpass-securenotes-sep","hidden",EX);LP.sr(I0,"lpt_lastpassitem2","label","Retrieving Sites...");LP.sr(I0,"lpt_lastpass-fav","label","OpenFavorites");LP.sr(I0,"lpt_lpfillformsmenu2","label","Fill Forms");LP.sr(I0,"lpt_lpfillformsmenu6","label","Fill Forms");LP.sr(I0,"lpt_search-btn","label","Search");
LP.sr(I0,"lpt_tools-btn","label","Tools");LP.sr(I0,"lpt_lpidentitiesmenu2","label","Identities");LP.sr(I0,"lpt_feedback-btn","label","Feedback");LP.sr(I0,"lpt_prefs-btn","label","Preferences");LP.sr(I0,"lpt_lpncgenpw","label","Generate Secure Password");LP.sr(I0,"lpt_lpncrecheck","label","Recheck Page");
LP.sr(I0,"lpt_lpncrefresh","label","RefreshAccounts");LP.sr(I0,"lpt_lpncimportfrom","label","Import From");LP.sr(I0,"lpt_lpncimportff","label","Firefox Password Manager");LP.sr(I0,"lpt_lpncimportonepass","label","1Password");LP.sr(I0,"lpt_lpncimportkeepass","label","KeePass");LP.sr(I0,"lpt_lpncimportclipperz","label","Clipperz");
LP.sr(I0,"lpt_lpncimportewallet","label","eWallet");LP.sr(I0,"lpt_lpncimportfireform","label","FireForm");LP.sr(I0,"lpt_lpncimportpwcoral","label","Password Corral");LP.sr(I0,"lpt_lpncimportpassworddragon","label","Password Dragon");LP.sr(I0,"lpt_lpncimporthppwsafe","label","HP Password Safe");LP.sr(I0,"lpt_lpncimportpasswordsmax","label","Passwords Max");
LP.sr(I0,"lpt_lpncimportpins","label","PINs Password Manager");LP.sr(I0,"lpt_lpncimportsplashid","label","SplashID");LP.sr(I0,"lpt_lpncimportlastpass","label","LastPass");LP.sr(I0,"lpt_lpncimportmypwsafe","label","MyPasswordSafe");LP.sr(I0,"lpt_lpncimportpasspack","label","PassPack");LP.sr(I0,"lpt_lpncimportpwsafe","label","Password Safe");
LP.sr(I0,"lpt_lpncimportroboform","label","RoboForm");LP.sr(I0,"lpt_lpncimportturbopasswords","label","TurboPasswords");LP.sr(I0,"lpt_lpncimportpasskeep","label","Password Keeper");LP.sr(I0,"lpt_lpncimportcsv","label","Generic CSV File");LP.sr(I0,"lpt_lpncimportmsi","label","MSI PasswordKeeper");for(var t=1;
I0.getElementById("lpt_lpncimport"+t);t++){LP.sr(I0,"lpt_lpncimport"+t,"label","Import");LP.sr(I0,"lpt_lpncinstructions"+t,"label","Instructions")}LP.sr(I0,"lpt_lpncimportpwagent","label","Password Agent");LP.sr(I0,"lpt_lpncexportto","label","Export To");LP.sr(I0,"lpt_lpncexportcsv","label","LastPass CSV File");
LP.sr(I0,"lpt_lpncexportff","label","Firefox");LP.sr(I0,"lpt_lpncexportenc","label","LastPass Encrypted File");LP.sr(I0,"lpt_lpncprint","label","Print");LP.sr(I0,"lpt_lpncprintaccounts","label","Sites");LP.sr(I0,"lpt_lpncprintsn","label","SecureNotes");LP.sr(I0,"lpt_lpncprintsn","hidden",EX);LP.sr(I0,"lpt_lpnchelp","label","Help...");
LP.sr(I0,"lpt_lpncabout","label","About...");LP.sr(I0,"lpt_lpncseccheck","label","Security Check");LP.sr(I0,"lpt_lpncothersessions","label","Other Sessions");LP.sr(I0,"lpt_restart-btn","label","Restart Firefox");LP.sr(I0,"lpt_admin-tools-btn","label","Admin Tools");LP.sr(I0,"lpt_upload-btn","label","Upload Forms");
LP.sr(I0,"lpt_uploadall-btn","label","Upload All Forms");LP.sr(I0,"lpt_debug-btn","label","EnableDebug");LP.sr(I0,"lpt_adminpage-btn","label","Admin Page");LP.sr(I0,"lpt_testxpcom-btn","label","Test XPCOM");LP.sr(I0,"lpt_lpcontentareacontextmenu","label","LastPass");LP.sr(I0,"lpt_lpcontextgenpw","label","Generate Secure Password");
LP.sr(I0,"lpt_lpcontextrecheck","label","Recheck Page");LP.sr(I0,"lpt_lpcopyusernamemenu","label","Copy Username");LP.sr(I0,"lpt_lpcopypasswordmenu","label","Copy Password");LP.sr(I0,"lpt_lpautofillmenu","label","AutoFill");LP.sr(I0,"lpt_lpfillformsmenu4","label","LastPass Fill Forms");LP.sr(I0,"lpt_lplogintolastpass","label","Login to LastPass")
}catch(z){HX("set_toolbar_text: "+z+" ln: "+z.lineNumber)}}function HO(){var z=B("prefs_lp.txt");if(z){var I4=z.split("\r\n");for(var I1=0;I1<I4.length;I1++){var e=I4[I1];var t=e.indexOf("=");if(t!=-1){var I0=e.substring(0,t);var I3=e.substring(t+1);if(I3=="true"||I3=="false"){LP.lpmainprefs.setBoolPref(I0,I3=="true"?true:false)
}else{if(I3.match(/^\d+$/)){LP.lpmainprefs.setIntPref(I0,I3)}else{var I2=I3.match(/^\"(.*)\"$/);if(I2){LP.lpmainprefs.setCharPref(I0,I2[1])}else{HX("unknown pref type: "+e)}}}}}LP.flush_prefs();U("prefs_lp.txt")}}function C4(z){var e=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var I0=e.getEnumerator("");while(I0.hasMoreElements()){var t=I0.getNext();if(t==this){continue}if(t.document==z){continue}if(typeof(t.LP)!="undefined"){return true}}return false}function Q(I1){try{U(EV+"_lp.act.xml");U(EV+"_lps.act.xml");if(BL()){U(Ai+"_lp.act.xml")}var I6=HT(Ai,true,false);if(!I6){LP.lpGetAccounts();
return}var t=Components.classes["@mozilla.org/xmlextras/domparser;1"].createInstance(Components.interfaces.nsIDOMParser);var I5=t.parseFromString(I6,"text/xml");if(!I5){LP.lpGetAccounts();return}var I2=I5.documentElement;var I0=I2.getElementsByTagName("accounts");var z=-1;if(I0.length>0){z=parseInt(I0[0].getAttribute("accts_version"))
}if(z==H7||H7==-1){var I4=new Array();I4.responseXML=I5;I4.responseText=I6;I4.readyState=4;I4.status=0;if(typeof(I1)=="undefined"){I1=false}LP.lpPopulateAccounts(I4,true,true,I1)}if(BP!=H7&&H7!=-1){LP.lpGetAccounts()}}catch(I3){HX("lpGetAccountsLocal : "+I3+" ln: "+I3.lineNumber);LP.lpGetAccounts()}}this.adminoverride="";
this.lpGetAccounts=function(t){var e=LP.lp_base+"getaccts.php?u="+Ai;if(LP.adminoverride.length){e=LP.lp_base+"getaccts.php?adminoverride="+LP.adminoverride}if(t){e+="&recache=1"}LP.lpMakeRequest(e,"?a=1",LP.lpPopulateAccounts)};this.lpPopulateAccounts=function(z,I3,t,I1){var I0=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var I2=I0.getEnumerator("");if(I3==null){I3=true}var e=DM(z,I3,t);if(e&&z&&z.readyState==4&&(z.status==200||I3)){if(!I1){LP.lpRecheckTabs(Ez)}Ez=false}LP.ShowPremiumMenuItem()};function C5(){if(d.length==0){if(LP.lpConfirmYesNo(LP.lpgs("EnterFormFillData"))){}}else{FT(LP.getBrowser(),LP.getBrowser().contentDocument,true)
}}this.lpEditFormFillProfiles=function(){var e=LP.lp_base+"accts.php?ffid=0";Au(e,true)};this.IdentityIsOk=function(I2,I1){if(I2==""){return true}for(var I0=0;I0<GA.length;I0++){if(GA[I0].iid==I2){var t=GA[I0].aids;var e=t.split(",");for(var z=0;z<e.length;z++){if(e[z]==I1){return true}}}}return false
};this.IdentityFfidIsOk=function(I2,t){if(I2==""){return true}for(var I1=0;I1<GA.length;I1++){if(GA[I1].iid==I2){var I0=GA[I1].ffids;var e=I0.split(",");for(var z=0;z<e.length;z++){if(e[z]==t){return true}}}}return false};this.lpRecheckTabs=function(I2){if(!DH){this.lpOpenLogin();return}var I4=LP.lpGetCurrentWindow();
if(I4){I4=HQ(I4.contentDocument);if(I4){if(!As(I4.contentWindow.location.href)){if(!HA(I4,I4.contentDocument)){if(I2){if(!Cx(I4,I4.contentDocument)){FT(I4,I4.contentDocument)}}}}}}var z=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);var I3=z.getEnumerator("");
while(I3.hasMoreElements()){var I1=I3.getNext();if(typeof(I1.getBrowser)=="function"){var e=I1.getBrowser();if(null!=e){var I0=e.browsers;for(var t=0;I0&&t<I0.length;t++){if(!As(I0[t].contentWindow.location.href)){if(!HA(I0[t],I0[t].contentDocument)){if(I2){if(!Cx(I0[t],I0[t].contentDocument)){FT(I0[t],I0[t].contentDocument)
}}}}}}}}};function BK(t,e){if(t.getAttribute("id").indexOf("_favorites_menu")==0){return -1}if(e.getAttribute("id").indexOf("_favorites_menu")==0){return 1}t=t.getAttribute("label").toLowerCase();e=e.getAttribute("label").toLowerCase();return t<e?-1:1}this.getWindowFromDocument=function(z){var e=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var I0=e.getEnumerator("");while(I0.hasMoreElements()){var t=I0.getNext();if(t.document==z){return t}}};function HL(I5){var I3=I5.getElementById("sidebar");var I1=false;try{if(I3&&I3.contentWindow&&I3.contentWindow.location.href=="chrome://lastpass/content/sidebar.xul"){I1=true;var t=I3.contentDocument.getElementById("lpt_lastpass-accts-tree");
if(!Cs||!DH){var I0=!Cs;if(I0){LP.getWindowFromDocument(I5).toggleSidebar();I1=false}for(var z=t.childNodes.length-1;z>=0;z--){t.removeChild(t.childNodes.item(z))}var I2=I3.contentDocument.createElement("treeitem");I2.setAttribute("label",LP.lpgs(I0?"FeatureDisabled":"NotLoggedIn"));t.appendChild(I2)
}}}catch(I4){I1=false}}function Ic(e,t){if(!e||typeof(e.getAttribute)=="undefined"){return}DI=(e.getAttribute("login_site_prompt")=="1"?true:false);GX=(e.getAttribute("edit_site_prompt")=="1"?true:false);FS=(e.getAttribute("edit_sn_prompt")=="1"?true:false);H3=(e.getAttribute("view_pw_prompt")=="1"?true:false);
FR=(e.getAttribute("view_ff_prompt")=="1"?true:false);GH=(e.getAttribute("improve")=="1"?true:false);FL=(e.getAttribute("switch_identity_prompt")=="1"?true:false);Fm=(e.getAttribute("multifactor_reprompt")=="1"?true:false)}this.disable_single_factor=function(){var e=(LP.lpprefsHasUserValue("singlefactortype",false)?LP.lpprefsGetCharPref("singlefactortype",false):"");
if(e=="trueapi"){if(Fl()&&typeof(BA.trueapi_delete_default_login)=="function"){BA.trueapi_delete_default_login()}}LP.lpprefsSetCharPref("singlefactortype","",false);LP.flush_prefs()};this.lpDisplayAccounts_all=function(t){var e=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var I0=e.getEnumerator("");while(I0.hasMoreElements()){var z=I0.getNext();LP.lpDisplayAccounts_win(z.document,t)}};this.lpDisplayAccounts_win=function(Jr,I1){if(!DH&&!I1){return}var Jx=new Array();if(Jr){Jx[0]=Jr}else{var t=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var I6=t.getEnumerator("");while(I6.hasMoreElements()){var Jz=I6.getNext();Jx[Jx.length]=Jz.document}}for(var Jq=0;Jq<Jx.length;Jq++){var Jr=Jx[Jq];LP.lp_fix_accts_btn(Jr);var Jp=new Array();var I5;var Jj;if(Cs){var Jj=Jr.getElementById("sidebar");try{if(Jj&&Jj.contentWindow&&Jj.contentWindow.location.href=="chrome://lastpass/content/sidebar.xul"){Jp[Jp.length]=Jj.contentDocument.getElementById("lpt_lastpass-accts-tree");
I5=Jj.contentDocument;Jj=true}}catch(JG){}}else{if(Jr.getElementById("lpt_lastpass-accts")){Jp[Jp.length]=Jr.getElementById("lpt_lastpass-accts")}if(Jr.getElementById("lpt_status-bar-accts-popup")){Jp[Jp.length]=Jr.getElementById("lpt_status-bar-accts-popup")}if(Jr.getElementById("lpt_comp-bar-accts-popup")){Jp[Jp.length]=Jr.getElementById("lpt_comp-bar-accts-popup")
}I5=Jr;Jj=false}if(Jr.getElementById("lpt_lastpass-fav")){Jr.getElementById("lpt_lastpass-fav").disabled=Dk.length==0}if(Jr.getElementById("lpt_status-bar-fav")){Jr.getElementById("lpt_status-bar-fav").setAttribute("disabled",Dk.length==0)}if(Jr.getElementById("lpt_comp-bar-fav")){Jr.getElementById("lpt_comp-bar-fav").setAttribute("disabled",Dk.length==0)
}if(Jp.length>0){for(var JB=0;JB<Jp.length;JB++){for(var JE=Jp[JB].childNodes.length-1;JE>=0;JE--){Jp[JB].removeChild(Jp[JB].childNodes.item(JE))}}var Jf=false;if(Hd){for(var JB=0;JB<Jp.length;JB++){Jf=true;var Jb=new Array();var I4=new Array();var JH=false;var z=false;for(var JD in G9){if(G9[JD].url=="http://group"){continue
}var Jv=G9[JD].genpw;if(!Jv){var Jh=G9[JD].fav;if(parseInt(Jh)==1){JH=true}var Jm=G9[JD].group;Jm=(Jm==""?LP.get_null_group():Jm);if(Jm!=LP.get_null_group()){z=true}var I7=false;for(var JC=0;JC<Jb.length;JC++){if(Jb[JC].getAttribute("id")==Jm+"_menu"+JB){I7=true;break}}if(!I7){var Jk=I5.createElement(Jj?"treeitem":"menu");
Jk.setAttribute("id",Jm+"_menu"+JB);var I3=Jm==""?LP.get_null_group():Jm;Jk.setAttribute("label",(Jj?" ":"")+LP.fix_group_name(I3));if(Jj){Jk.setAttribute("container","true");Jk.setAttribute("open","true");var Jd=I5.createElement("treerow");var Jc=I5.createElement("treecell");Jc.setAttribute("src","chrome://lastpass/skin/folder-open.gif");
Jc.setAttribute("label",LP.fix_group_name(I3));Jc.setAttribute("id",Jm+"_cell"+JB);Jd.appendChild(Jc);Jk.appendChild(Jd)}var Jd=I5.createElement(Jj?"treechildren":"menupopup");Jd.setAttribute("ignorekeys",false);Jd.setAttribute("id","_"+Jm+"_submenu"+JB);Jk.appendChild(Jd);Jb[Jb.length]=Jk;I4[I3]=Jd}}}if(!JH&&!z){Jf=false
}else{if(JH){var Jk=I5.createElement(Jj?"treeitem":"menu");Jk.setAttribute("id","_favorites_menu"+JB);Jk.setAttribute("label",LP.fix_group_name(LP.lpgs("favorites")));if(Jj){Jk.setAttribute("container","true");Jk.setAttribute("open","true");var Jd=I5.createElement("treerow");var Jc=I5.createElement("treecell");
Jc.setAttribute("src","chrome://lastpass/skin/folder-open.gif");Jc.setAttribute("label",LP.fix_group_name(LP.lpgs("favorites")));Jc.setAttribute("id","_favorites_cell"+JB);Jd.appendChild(Jc);Jk.appendChild(Jd)}var Jd=I5.createElement(Jj?"treechildren":"menupopup");Jd.setAttribute("ignorekeys",false);
Jd.setAttribute("id","__favorites_submenu"+JB);Jk.appendChild(Jd);Jb[Jb.length]=Jk}Jb.sort(BK);for(var JD=0;JD<Jb.length;JD++){var Jn=Jb[JD].id;var I3=Jn.replace(/_menu\d+$/,"");var Js=I3.split("\\");if(Js.length==1){Jp[JB].appendChild(Jb[JD])}else{var Jw=null;var Ji="";var I0=null;for(var JC=0;JC<Js.length-1;
JC++){if(Ji!=""){Ji+="\\"}Ji+=Js[JC];I0=I4[Ji];if(!I0){var Jk=I5.createElement(Jj?"treeitem":"menu");Jk.setAttribute("id",Ji+"_menu"+JB);Jk.setAttribute("label",LP.fix_group_name(Js[JC]));if(Jj){Jk.setAttribute("container","true");Jk.setAttribute("open","true");var Jd=I5.createElement("treerow");var Jc=I5.createElement("treecell");
Jc.setAttribute("src","chrome://lastpass/skin/folder-open.gif");Jc.setAttribute("label",LP.fix_group_name(I3));Jc.setAttribute("id",Ji+"_cell"+JB);Jd.appendChild(Jc);Jk.appendChild(Jd)}var Jd=I5.createElement(Jj?"treechildren":"menupopup");Jd.setAttribute("ignorekeys",false);Jd.setAttribute("id","_"+Ji+"_submenu"+JB);
Jk.appendChild(Jd);if(!Jw){Jp[JB].appendChild(Jk)}else{Jw.appendChild(Jk)}I4[Ji]=Jd;I0=Jd}Jw=I0}Jb[JD].setAttribute("label",(Jj?" ":"")+LP.fix_group_name(Js[Js.length-1]));Jw.appendChild(Jb[JD])}}}}}var JF=true;for(var JD in G9){if(G9[JD].url=="http://group"){continue}var Jg=G9[JD].name;var Ju=G9[JD].id;
var I2=G9[JD].url;var Jo=G9[JD].manual;var JA=G9[JD].is_http;var Jh=G9[JD].fav;var Jm=G9[JD].group;Jm=(Jm==""?LP.get_null_group():Jm);var Jl=G9[JD].fiid;var Jv=G9[JD].genpw;var Je=(Jj?"":"")+"LP.lpLaunchUrl('"+Ju+"', '"+Jo+"', '"+JA+"');";var Jt="if (event.button == 1) { "+Je+" LP.lpCloseMenus(document); }";
if(!Jv){JF=false;for(var JB=0;JB<Jp.length;JB++){var Jk=I5.createElement(Jj?"treeitem":"menuitem");if(!Jj){Jk.setAttribute("class","menuitem-iconic")}if(Jj){var Jd=I5.createElement("treerow");var Jc=I5.createElement("treecell");Jc.setAttribute("src",CM(Jl));Jc.setAttribute("label",Jg);Jc.setAttribute("value",Ju);
Jd.appendChild(Jc);Jk.appendChild(Jd)}else{Jk.setAttribute("oncommand",Je+" return true;");Jk.setAttribute("onclick",Jt);Jk.setAttribute("oncontextmenu","LP.lpcurrcontextmenusite = '"+Ju+"'; return true;");Jk.setAttribute("context","lpt_site-context-menu");Jk.setAttribute("label",Jg);var Jd=I5.createElement("image");
Jd.setAttribute("src",CM(Jl));Jd.setAttribute("width","16");Jd.setAttribute("height","16");Jk.appendChild(Jd);var Jc=I5.createElement("label");Jc.setAttribute("value",Jg);Jk.appendChild(Jc)}if(Jf){var Jy=I5.getElementById("_"+Jm+"_submenu"+JB);if(!Jy){}Jy.appendChild(Jk);if(parseInt(Jh)==1){var Ja=I5.createElement(Jj?"treeitem":"menuitem");
if(!Jj){Ja.setAttribute("class","menuitem-iconic")}if(Jj){var I9=I5.createElement("treerow");var I8=I5.createElement("treecell");I8.setAttribute("src",CM(Jl));I8.setAttribute("label",Jg);I8.setAttribute("value",Ju);I9.appendChild(I8);Ja.appendChild(I9)}else{Ja.setAttribute("oncommand",Je+" return true;");
Ja.setAttribute("onclick",Jt);Ja.setAttribute("oncontextmenu","LP.lpcurrcontextmenusite = '"+Ju+"'; return true;");Ja.setAttribute("context","lpt_site-context-menu");Ja.setAttribute("label",Jg);var I9=I5.createElement("image");I9.setAttribute("src",CM(Jl));I9.setAttribute("width","16");I9.setAttribute("height","16");
Ja.appendChild(I9);var I8=I5.createElement("label");I8.setAttribute("value",Jg);Ja.appendChild(I8)}var Jy=I5.getElementById("__favorites_submenu"+JB);if(!Jy){}Jy.appendChild(Ja)}}else{Jp[JB].appendChild(Jk)}}}}if(JF){for(var JB=0;JB<Jp.length;JB++){var Jk=I5.createElement(Jj?"treeitem":"menuitem");Jk.setAttribute("label",LP.lpgs("NoAccountsDefined"));
Jp[JB].appendChild(Jk)}}for(var JB=0;JB<Jp.length;JB++){if(!Jj){var Jk=I5.createElement("menuseparator");Jk.setAttribute("id","menudelim");Jp[JB].appendChild(Jk);var Jd=I5.createElement(Jj?"treeitem":"menuitem");Jd.setAttribute("label",LP.lpgs("AddSite"));Jd.setAttribute("oncommand","LP.lpOpenEditWindow(0)");
Jp[JB].appendChild(Jd)}}}Jp=new Array();if(Jr.getElementById("lpt_lastpass-securenotes")){Jp[Jp.length]=Jr.getElementById("lpt_lastpass-securenotes")}if(Jr.getElementById("lpt_comp-bar-securenotes-popup")){Jp[Jp.length]=Jr.getElementById("lpt_comp-bar-securenotes-popup")}if(Jr.getElementById("lpt_status-bar-securenotes-popup")){Jp[Jp.length]=Jr.getElementById("lpt_status-bar-securenotes-popup")
}if(Jr.getElementById("lpt_fennec-securenotes-popup")){Jp[Jp.length]=Jr.getElementById("lpt_fennec-securenotes-popup")}if(Jp.length==0){continue}for(var JB=0;JB<Jp.length;JB++){for(var JE=Jp[JB].childNodes.length-1;JE>=0;JE--){Jp[JB].removeChild(Jp[JB].childNodes.item(JE))}}var Jf=false;if(Hd){for(var JB=0;
JB<Jp.length;JB++){Jf=true;var Jb=new Array();var I4=new Array();var z=false;for(var JD in CK){var Jm=CK[JD].group;Jm=(Jm==""?LP.lpgs("SecureNotes"):Jm);if(Jm!=LP.lpgs("SecureNotes")){z=true}var I7=false;for(var JC=0;JC<Jb.length;JC++){if(Jb[JC].getAttribute("id")==Jm+"_menu_sn_"+JB){I7=true;break}}if(Jm==LP.lpgs("SecureNotes")){}else{if(!I7){var Jk=Jr.createElement("menu");
Jk.setAttribute("id",Jm+"_menu_sn_"+JB);var I3=Jm==""?LP.lpgs("SecureNotes"):Jm;Jk.setAttribute("label",LP.fix_group_name(I3));var Jd=Jr.createElement("menupopup");Jd.setAttribute("ignorekeys",false);Jd.setAttribute("id","_"+Jm+"_submenu_sn_"+JB);Jk.appendChild(Jd);Jb[Jb.length]=Jk;I4[I3]=Jd}}}if(!z){Jf=false
}else{Jb.sort(BK);for(var JD=0;JD<Jb.length;JD++){var Jn=Jb[JD].id;var I3=Jn.replace(/_menu_sn_\d+$/,"");var Js=I3.split("\\");if(Js.length==1){Jp[JB].appendChild(Jb[JD])}else{var Jw=null;var Ji="";var I0=null;for(var JC=0;JC<Js.length-1;JC++){if(Ji!=""){Ji+="\\"}Ji+=Js[JC];I0=I4[Ji];if(!I0){var Jk=Jr.createElement("menu");
Jk.setAttribute("id",Ji+"_menu_sn_"+JB);Jk.setAttribute("label",LP.fix_group_name(Js[JC]));var Jd=Jr.createElement("menupopup");Jd.setAttribute("ignorekeys",false);Jd.setAttribute("id","_"+Ji+"_submenu_sn_"+JB);Jk.appendChild(Jd);if(!Jw){Jp[JB].appendChild(Jk)}else{Jw.appendChild(Jk)}I4[Ji]=Jd;I0=Jd}Jw=I0
}Jb[JD].setAttribute("label",LP.fix_group_name(Js[Js.length-1]));Jw.appendChild(Jb[JD])}}}}}var JF=true;for(var JD in CK){var Jg=CK[JD].name;var Ju=CK[JD].id;var Jm=CK[JD].group;Jm=(Jm==""?LP.lpgs("SecureNotes"):Jm);var Jl=CK[JD].fiid;var Je="LP.lpOpenEditWindow('"+Ju+"');";var Jt="if (event.button == 1) { "+Je+" LP.lpCloseMenus(document); }";
JF=false;for(var JB=0;JB<Jp.length;JB++){var Jk=Jr.createElement("menuitem");Jk.setAttribute("class","menuitem-iconic");Jk.setAttribute("oncommand",Je+" return true;");Jk.setAttribute("onclick",Jt);Jk.setAttribute("oncontextmenu","LP.lpcurrcontextmenusite = '"+Ju+"'; return true;");Jk.setAttribute("context","lpt_site-context-menu");
Jk.setAttribute("label",Jg);var Jd=Jr.createElement("image");Jd.setAttribute("src",CM(Jl),true);Jd.setAttribute("width","16");Jd.setAttribute("height","16");Jk.appendChild(Jd);var Jc=Jr.createElement("label");Jc.setAttribute("value",Jg);Jk.appendChild(Jc);if(Jf){if(Jm==LP.lpgs("SecureNotes")){Jp[JB].appendChild(Jk)
}else{var Jy=Jr.getElementById("_"+Jm+"_submenu_sn_"+JB);Jy.appendChild(Jk)}}else{Jp[JB].appendChild(Jk)}}}if(JF){for(var JB=0;JB<Jp.length;JB++){var Jk=Jr.createElement("menuitem");Jk.setAttribute("label",LP.lpgs("NoSecureNotesDefined"));Jp[JB].appendChild(Jk)}}if(!EX){for(var JB=0;JB<Jp.length;JB++){var Jk=Jr.createElement("menuseparator");
Jk.setAttribute("id","menudelim");Jp[JB].appendChild(Jk);var Jd=Jr.createElement("menuitem");Jd.setAttribute("label",LP.lpgs("AddSecureNote"));Jd.setAttribute("oncommand","LP.lpOpenEditWindow(0, false, true)");Jp[JB].appendChild(Jd)}}}};function Ca(t,e){return t.profilename.toLowerCase()<e.profilename.toLowerCase()?-1:1
}function G1(t,e){return t.iname.toLowerCase()<e.iname.toLowerCase()?-1:1}function HB(t,e){return parseInt(t.ordernum)<parseInt(e.ordernum)?-1:1}this.lpLaunchUrl=function(z,I0,I6,I2,I1,e,I3,I5,I4,I7,t){if(typeof(I1)=="undefined"||I1==null){if(G9[z]){I1=false}}Im[z]=Ab();if(false){}else{if(!G9[z]){return
}if(!I1&&!I5&&(DI||G9[z].pwprotect)){if(!LP.securityPrompt()){return}}if(G9[z]&&G9[z].logins.length>0){Ef(G9[z],I2,I1,e,I3,I4,I7,t)}else{LP.lpMakeRequest(LP.lp_base+"launchman.php","id="+LP.en(z)+"&method=ff",Gr)}}};function Ef(Jj,Jm,I5,Jr,I0,Jg,Jp,e){var I9;var Jd=new Array();if(typeof(I0)!="undefined"&&I0!=null&&I0>=0&&I0<Jj.otherlogins.length){I9=new Array(Jj.otherlogins[I0])
}else{I9=Jj.logins;if(I9.length==1){for(var Ji=Jj.otherlogins.length-1;Ji>=0;Ji--){if((Jj.otherlogins[Ji].fields.length>0||Jj.otherlogins[Ji].otherfields.length>0)&&Jj.otherlogins[Ji].url==I9[0].url){I9=new Array(Jj.otherlogins[Ji]);break}}}}var Jn=new Array();var I2=I9[0].fields;for(var Ji=0;typeof(I2)!="undefined"&&Ji<I2.length;
Ji++){var Jq=I2[Ji].name;Jn[Jq]="1";Jd[Jd.length]=I2[Ji]}if(typeof(Jj.otherlogins)!="undefined"){for(var Ji=Jj.otherlogins.length-1;Ji>=0;Ji--){for(var Jh=0;Jh<Jj.otherlogins[Ji].fields.length;Jh++){var Jq=Jj.otherlogins[Ji].fields[Jh].name;if(typeof(Jn[Jq])=="undefined"){Jd[Jd.length]=Jj.otherlogins[Ji].fields[Jh];
Jn[Jq]="1"}}}}for(var Jh=0;typeof(I9[0].fields)!="undefined"&&Jh<Jj.logins[0].fields.length;Jh++){var Jq=Jj.logins[0].fields[Jh].name;if(typeof(Jn[Jq])=="undefined"){Jd[Jd.length]=Jj.logins[0].fields[Jh];Jn[Jq]="1"}}if(I9.length==0){return}var z=I9[0].url;var Jk=false;var Ja=false;if(!Jj.isbookmark){for(var Jh=0;
Jh<I9.length;Jh++){var I1=I9[Jh].url;if(Jp&&Jh==0){I1=Jp.location.href}else{if(Jm&&!Jr&&Jh==0){I1=LP.lpgetcurrenturl(Jm)}}var I6=typeof(I9[Jh].submit_id)!="undefined"?I9[Jh].submit_id:"";var Jo=typeof(I9[Jh].captcha_id)!="undefined"?I9[Jh].captcha_id:"";var I3=typeof(I9[Jh].custom_js)!="undefined"?I9[Jh].custom_js:"";
if(I3!=""){}var I8=I9[Jh].unencryptedUsername;var Jb=BD(I9[Jh].password);var Jc=BD(I9[Jh].openid_url);for(var I4=0;I4<A7.length;I4++){if(I1==A7[I4]["url"]){break}}A7[I4]=new Array();A7[I4]["aid"]=Jj.id;A7[I4]["multi"]=Jh<I9.length-1?true:false;A7[I4]["secondary"]=Jh>0?true:false;A7[I4]["url"]=I1;A7[I4]["submit_id"]=I6;
A7[I4]["captcha_id"]=Jo;A7[I4]["custom_js"]=I3;A7[I4]["u"]=I8;A7[I4]["p"]=Jb;A7[I4]["o"]=Jc;A7[I4]["uname"]=I9[Jh].uname;A7[I4]["pname"]=I9[Jh].pname;A7[I4]["oname"]=I9[Jh].oname;A7[I4]["login"]=I9[Jh];A7[I4]["create_time"]=Ab();A7[I4]["onlyfill"]=I5?true:false;A7[I4]["save_all"]=Jj.save_all?true:false;
A7[I4]["overlay_shown"]=false;A7[I4]["fields"]=new Array();var I2=Jd;for(var Ji=0;Ji<I2.length;Ji++){var t=I2[Ji].type;var Jq=I2[Ji].name;var Jf=I2[Ji].value;if(t=="text"||t=="password"){Jf=BD(Jf)}else{if(t=="checkbox"){Jf=I2[Ji].checked}}A7[I4]["fields"][Jq]=Jf;if(Jj.basic_auth&&Jh==0){Jk=true}}A7[I4]["otherfields"]=new Array();
var Je=I9[Jh].otherfields;for(var Ji=0;typeof(Je)!="undefined"&&Ji<Je.length;Ji++){var t=Je[Ji].type;var Jq=Je[Ji].name;var Jf=Je[Ji].value;var I7=Je[Ji].formname;if(t=="text"||t=="password"||t=="textarea"){Jf=BD(Jf)}else{if(t=="checkbox"){Jf=Je[Ji].checked}}if(typeof(A7[I4]["otherfields"][I7])=="undefined"){A7[I4]["otherfields"][I7]=new Array()
}A7[I4]["otherfields"][I7][Jq]=Jf}}if(Jm&&!Jr){var Jl=Jm;if(Jp){Jl=HQ(Jp)}if(Dn(Jl,I5,null,null,null,Jp,Jl.contentWindow)){Ja=true}else{if(I5&&Dn(Jl,I5,true,null,null,Jp,Jl.contentWindow,1,null,null,e)){Ja=true}}}}if(!Ja){if(Jm&&Jr){Jm.contentWindow.location.href=z;Jm.loginAid=Jj.id}else{if(I5&&!Jj.save_all){}else{Au(z,null,Jj.id)
}}}if(Jg&&Jm&&!Jm.lpfieldchanged){Jk=true}if(!Jk&&A2){B2(Jj.id)}}function F2(z){if(typeof(G9[z])=="undefined"){return}if(Ax&&parseInt(G9[z].autologin)==1){var e=Ab();var t=(e-G9[z].last_touch);if(t>Hw){LP.SetLastTouch(G9[z]);return true}else{}}return false}function B2(z){if((!Fd||!Fd.privateBrowsingEnabled)){if(G9[z]){if((Ab()-G9[z].last_touch)<5){return
}if(A2){LP.lpMakeRequest(LP.lp_base+"loglogin.php","id="+LP.en(z)+"&method=ff",null)}LP.SetLastTouch(G9[z]);var t=true;var e=HT();if(e==null){t=false}if(t&&!B6(e,G9[z].id,false)){t=false}if(t&&!Fr(e,G9[z],false)){t=false}if(t&&!Bx(e,null,"lploglogin")){t=false}}}}function Dj(e){if(A2){LP.lpMakeRequest(LP.lp_base+"logformfill.php","ffid="+LP.en(e),null)
}}function Gr(e){if(!e){return}if(e.readyState==4&&e.status==200){if(e.responseXML){var Jb=e.responseXML.documentElement;if(!Jb){return}var Ja=Jb.getElementsByTagName("login");if(Ja.length==0){return}var z=Ja[0].getAttribute("url");for(var Jf=0;Jf<Ja.length;Jf++){var I3=Ja[Jf].getAttribute("aid");var I0=Ja[Jf].getAttribute("url");
var I8=Ja[Jf].getAttribute("submit_id");var Jh=Ja[Jf].getAttribute("captcha_id");var I4=Ja[Jf].getAttribute("custom_js");var I9=Ja[Jf].getAttribute("u");var Jc=Ja[Jf].getAttribute("p");var Jd=Ja[Jf].getAttribute("o");for(var I5=0;I5<A7.length;I5++){if(I0==A7[I5]["url"]){break}}A7[I5]=new Array();A7[I5]["aid"]=I3;
A7[I5]["multi"]=Jf<Ja.length-1?true:false;A7[I5]["secondary"]=Jf>0?true:false;A7[I5]["url"]=I0;A7[I5]["submit_id"]=I8;A7[I5]["captcha_id"]=Jh;A7[I5]["custom_js"]=I4;A7[I5]["u"]=I9;A7[I5]["p"]=Jc;A7[I5]["o"]=Jd;A7[I5]["uname"]="";A7[I5]["pname"]="";A7[I5]["oname"]="";A7[I5]["login"]=Ja[Jf];A7[I5]["create_time"]=Ab();
A7[I5]["onlyfill"]=false;A7[I5]["fields"]=new Array();var I2=Ja[Jf].getElementsByTagName("field");var I7=false;for(var Jg=0;Jg<I2.length;Jg++){var t=I2[Jg].getAttribute("type");var Ji=I2[Jg].getAttribute("name");var Je=I2[Jg].getAttribute("value");if(t=="text"&&Ji!="openid_url"){if(A7[I5]["u"]!=""&&Je==A7[I5]["u"]){A7[I5]["uname"]=Ji;
I7=true}else{if(!I7&&(A7[I5]["pname"]==""||A7[I5]["uname"]=="")){A7[I5]["uname"]=Ji}}}if(t=="password"){A7[I5]["pname"]=Ji}if(t=="text"&&Ji=="openid_url"){A7[I5]["oname"]=Ji}if(t=="radio"||t=="checkbox"){var I6=I2[Jg].getAttribute("checked");if(!I6||parseInt(I6)!=1){continue}}A7[I5]["fields"][Ji]=Je}}Au(z)
}else{var I1="Invalid response from server="+e.status+" text= "+e.responseText;HX(I1,null);j("ErrorServerMsg")}}}this.lpDoSearch=function(e){if(typeof(e)=="undefined"){e=LP.lpGetCurrentWindow().document.getElementById("lpt_find-acct").value}LP.lpOpenSearch(e)};function Hj(){LP.lpGetCurrentWindow().document.getElementById("lpt_find-acct").value=""
}this.lpRestartBrowser=function(){a=Components.interfaces.nsIAppStartup,Components.classes["@mozilla.org/toolkit/app-startup;1"].getService(a).quit(a.eRestart|a.eAttemptQuit)};this.lpSearchKey=function(I7,I9){try{if(DH){var I2=0;var I1;var I5=I7.target.ownerDocument?I7.target.ownerDocument:LP.getBrowser().contentDocument;
var t=I5.getElementById("lpsearchpanel");var I6=I5.getElementById("lpt_find-acct");if(!I9&&I7.keyCode==I7.DOM_VK_ESCAPE){I6.value=""}if(!I9&&I7.keyCode==I7.DOM_VK_TAB){return}if(!t){t=I5.createElement("panel");t.id="lpsearchpanel";t.setAttribute("noautofocus",true);t.setAttribute("norestorefocus",true);
t.setAttribute("style","background-color:white");I5.getElementById("mainPopupSet").appendChild(t)}if(!I6.value.length){t.hidePopup();return}else{I1=Cv(I6.value,false);I2=I1.length}if(13==I7.keyCode){if(!I2||typeof(t.lpIndex)=="undefined"){LP.lpDoSearch()}else{var I4=I1[t.lpIndex];if(LP.is_secure_note(I4.id)){LP.lpOpenEditWindow(I4.id)
}else{LP.lpLaunchUrl(I4.id,I4.manual,I4.is_http)}}I6.value="";t.hidePopup();return}if(true){if(I2&&!I9&&(I7.keyCode==I7.DOM_VK_DOWN||I7.keyCode==I7.DOM_VK_RIGHT||I7.keyCode==I7.DOM_VK_UP)){G2(I7);return}else{if(I2&&!I9&&I7.keyCode==I7.DOM_VK_RETURN){if(typeof(t.lpIndex)!="undefined"){if(LP.is_secure_note(I1[t.lpIndex].id)){LP.lpOpenEditWindow(I1[t.lpIndex].id)
}else{LP.lpLaunchUrl(I1[t.lpIndex].id,I1[t.lpIndex].manual,I1[t.lpIndex].is_http)}t.hidePopup()}return}}if(I2>15){I2=15}B1(t);if(I2){t.lpIndex=0;for(var I0=0;I0<I2;I0++){var I4=I1[I0];var I8=I5.createElement("menuitem");var z="";if(LP.is_secure_note(I4.id)){z="LP.lpOpenEditWindow('"+I4.id+"');"}else{z="LP.lpLaunchUrl('"+I4.id+"', '"+I4.manual+"', '"+I4.is_http+"');document.getElementById('lpt_find-acct').value='';"
}I8.setAttribute("class","menuitem-iconic");I8.setAttribute("src",CM(I4.fiid));I8.setAttribute("label",Ex(I4));I8.setAttribute("oncommand",z);I8.addEventListener("mouseover",EE,false);t.appendChild(I8);if(0==I0){I8.setAttribute("style","-moz-appearance: none !important; background-color: #FAFAD2 !important;")
}else{I8.setAttribute("style","-moz-appearance: none !important; background-color: white !important;")}}t.openPopup(I6,"after_start",0,0,false,false)}else{t.hidePopup()}}}}catch(I3){}};function EE(z){try{var I2=z.target.parentNode;var t=I2.childNodes.length;for(var I0=0;I0<t;I0++){I2.childNodes[I0].setAttribute("style","-moz-appearance:none !important;background-color: white !important;")
}z.target.setAttribute("style","-moz-appearance:none !important;background-color: #FAFAD2 !important;")}catch(I1){}}function G2(I0){try{var I4=I0.target.ownerDocument?I0.target.ownerDocument:LP.getBrowser().contentDocument;var I1=I4.getElementById("lpt_find-acct");var z=I4.getElementById("lpsearchpanel");
if(typeof(z.lpIndex)=="undefined"){z.lpIndex=0}if(I0.keyCode==I0.DOM_VK_DOWN){z.lpIndex++}else{if(I0.keyCode==I0.DOM_VK_UP){z.lpIndex--}}var t=z.childNodes.length;if(-1==z.lpIndex){z.lpIndex=t-1}else{if(z.lpIndex>=t){z.lpIndex=0}}for(var I2=0;I2<t;I2++){if(I2==z.lpIndex){z.childNodes[I2].setAttribute("style","-moz-appearance: none !important; background-color: #FAFAD2 !important;")
}else{z.childNodes[I2].setAttribute("style","-moz-appearance: none !important; background-color: white !important;")}}}catch(I3){}}function Cz(I2,Jp,I3,Jf,I0,Jo,Jh,Jg,I8,Jn){if(Jf!="change"){I2=LP.lpgs(I2)}var Jl=true;if(Jf!="error"&&!W){Jl=false}if(typeof(LP.getBrowser().getNotificationBox)!="function"){return
}var I6=Jp?LP.getBrowser().getNotificationBox(Jp):LP.getBrowser().getNotificationBox();var Jr=LP.mostRecent().document;if(!Jf){Jf="autologin"}var Jm=new Array();var z=new Array();if(Jf=="login"){if(!Jl){return}if(!W){return}if(!HC){return}if(LP.NO_LOGIN_NOTIFICATION_UNTIL_LOGIN&&!LP.lpprefsHasUserValue("ffhasloggedinsuccessfully",false)){return
}Jm.push({label:LP.lpgs("LastPassMasterLogin"),accessKey:null,popup:null,callback:Fz});z[z.length]=LP.lpgs("TTLogin");Jm.push({label:LP.lpgs("NeverAskAgain"),accessKey:null,popup:null,callback:r});z[z.length]=LP.lpgs("TTNeverAskAgain")}else{if(Jf=="change"){Jm.push({label:LP.lpgs("Confirm"),accessKey:null,popup:null,callback:E9});
z[z.length]=LP.lpgs("TTChange");if(typeof(Bz[I0.key])!="undefined"&&Bz[I0.key]!=null){Jm.push({label:LP.lpgs("Save New Site"),accessKey:null,popup:null,callback:Fq});z[z.length]=LP.lpgs("TTAdd")}}else{if(Jf=="captcha"||Jf=="offline"){if(!Jl&&Jf=="captcha"){return}}else{if(Jf=="addconfirm"){Jm.push({label:LP.lpgs("SaveSite"),accessKey:null,popup:null,callback:Fq});
z[z.length]=LP.lpgs("TTAdd");var Js=Ay(0,Jr,I0);Jm.push({label:LP.lpgs("Never For This ..."),accessKey:null,popup:Js,callback:null});z[z.length]=LP.lpgs("TTNever");Jm.push({label:LP.lpgs("NotThisLogin"),accessKey:null,popup:null,callback:Gw});z[z.length]=LP.lpgs("TTNotThisLogin")}else{if(Jf=="addformfill"){Jm.push({label:LP.lpgs("AddProfile"),accessKey:null,popup:null,callback:D9});
z[z.length]=LP.lpgs("TTAddFormFill");Jm.push({label:LP.lpgs("NeverAskAgain"),accessKey:null,popup:null,callback:Ao});z[z.length]=""}else{if(Jf=="generate"){if(!Jl||!DH){return}if(Jh){Jp.contentDocument.ffidindex=-1;var I7,t,I1;I7=LP.lpgs("FillForm")+" ("+d.length+")";if(A&&C9()){t=null;I1=LP.choose_profile_and_credit_card
}else{t=IW(null,Jr);I1=null}Jm.push({label:I7,accessKey:null,popup:t,callback:I1});z[z.length]=LP.lpgs("TTFillForm")}if(Jg&&I3.length>0){var I7,t,I1;I7=LP.lpgs("Fill Current");if(I3.length>1){I7+=" ("+I3.length+")";var Je={},Ja={};var Jb=Cn(I3,false,Je,Ja,Jr,true);t=Jb[0];I1=null}else{t=null;I1=G8}Jm.push({label:I7,accessKey:null,popup:t,callback:I1});
z[z.length]=LP.lpgs("TTFillCurrent")}Jm.push({label:LP.lpgs("Generate"),accessKey:null,popup:null,callback:DN});z[z.length]=LP.lpgs("TTGenerate");var Js=Ay(1,Jr,I0);Jm.push({label:LP.lpgs("Never For This ..."),accessKey:null,popup:Js,callback:null});z[z.length]=LP.lpgs("TTNeverForThisSite")}else{if(Jf=="error"){if(I0.feedback){Jm.push({label:LP.lpgs("Feedback"),accessKey:null,popup:null,callback:Gc});
z[z.length]=LP.lpgs("TTFeedback")}else{if(I0.login){Jm.push({label:LP.lpgs("TryAgain"),accessKey:null,popup:null,callback:Fz});z[z.length]=LP.lpgs("TTTryAgain")}}if(I0.createaccount&&!K){Jm.push({label:LP.lpgs("Create Account"),accessKey:null,popup:null,callback:LP.OpenCreateAccount});z[z.length]=LP.lpgs("TTCreateAccount")
}if(I0.multifactor_disable_url){Jm.push({label:LP.lpgs("Disable Multifactor Authentication"),accessKey:null,popup:null,callback:function(){LP.lpbaseopen(I0.multifactor_disable_url)}});z[z.length]=LP.lpgs("TTDisableMultifactorAuthentication")}}else{if(Jf=="formfill"){if(!Jl||!DH){return}Jp.contentDocument.ffidindex=-1;
var I7,t,I1;I7=LP.lpgs("FillForm")+" ("+d.length+")";if(A&&C9()){t=null;I1=LP.choose_profile_and_credit_card}else{t=IW(null,Jr);I1=null}Jm.push({label:I7,accessKey:null,popup:t,callback:I1});z[z.length]=LP.lpgs("TTFillForm");var Js=Ay(2,Jr,I0);Jm.push({label:LP.lpgs("Never For This ..."),accessKey:null,popup:Js,callback:null});
z[z.length]=LP.lpgs("TTNeverForThisSite2")}else{var Jq=1;if(typeof(I3)!="object"||I3.length==1||I3.length>Jq){var Je={},Ja={};var Jb=Cn(I3,!I0,Je,Ja,Jr);if(!I0){var Jd=null;if(Jb!=null&&Jb[1]==null){for(var Jk=0;Jk<I3.length;Jk++){if(!I3[Jk].onlyfill){var Jc=Jk;Jd=function(Ju,Jt){Ij(I3[Jc],Ju)}}}}else{if(I3.length<=Jq){Jd=function(Ju,Jt){Ij(I3,Ju)
}}}var I5=(Ja.value>1?" ("+Ja.value+")":"");Jm.push({label:LP.lpgs("AutoLogin")+I5,accessKey:null,popup:(Jb!=null?Jb[1]:null),callback:Jd});z[z.length]=LP.lpgs("TTAutoLogin")}if(!Jh||I3.length>1){var I5=(Je.value>1?" ("+Je.value+")":"");Jm.push({label:LP.lpgs("AutoFill")+I5,accessKey:null,popup:(Jb!=null?Jb[0]:null),callback:(I3.length>Jq?null:function(Ju,Jt){Ij(I3,Ju,true)
})});z[z.length]=LP.lpgs("TTAutoFill")}var Js=Ay(3,Jr,I0,Jh);Jm.push({label:LP.lpgs("Never ..."),accessKey:null,popup:Js,callback:null});z[z.length]=LP.lpgs("TTNever2");if(Jg){Jm.push({label:LP.lpgs("Fix Broken"),accessKey:null,popup:Jb[2],callback:null});z[z.length]=LP.lpgs("TTReportBroken")}}}}}}}}}}var I9=I6.getNotificationWithValue("lp_notificationAction"+Jf);
if(I9&&!I8&&!Jn){return}if(Jf!="captcha"&&!I8){while(I6.currentNotification){I6.removeCurrentNotification()}}if(!Jo||Jo==0){Jo=I6.PRIORITY_WARNING_MEDIUM}else{Jo=I6.PRIORITY_CRITICAL_LOW}if(!I8){if(Dp){LP.patchNotificationBox(I6,"bottom")}var e=I6.appendNotification(I2,"lp_notificationAction"+Jf,"chrome://lastpass/skin/icon.gif",Jo,Jm)
}else{var e=I6.currentNotification;if(e&&(typeof(e.lock)=="undefined"||e.lock==false)){e.lock=true;var Jj=e.getElementsByTagName("button");for(var Ji=Jj.length-1;Ji>=0;Ji--){e.removeChild(Jj[Ji])}for(var Jk=0;Jk<Jm.length;Jk++){var I4=Jr.createElement("button");I4.setAttribute("label",Jm[Jk]["label"]);
I4.setAttribute("popup",Jm[Jk]["popup"]);I4.tooltipText=z[Jk];if(Jm[Jk]["callback"]!=null){if(Jm[Jk]["label"].indexOf(Gb("AutoLogin"))==0){I4.setAttribute("oncommand","LP.lp_noteAcceptPre(null);")}else{if(Jm[Jk]["label"].indexOf(Gb("AutoFill"))==0){I4.setAttribute("oncommand","LP.lp_noteAcceptPre(true);")
}else{if(Jm[Jk]["label"].indexOf(Gb("NeverAutoFill"))==0){I4.setAttribute("oncommand","LP.lp_noteAcceptNeverPre();")}}}}e.appendChild(I4)}e.lock=false}}if(Jf=="addconfirm"||Jf=="change"||Jf=="addformfill"){e.persistence=1}if(Jf=="addconfirm"||Jf==="addformfill"){if(!LP.lpis_mac){e.style.backgroundColor="#87d087"
}else{}}e.aid=I3;e.browser=Jp;e.extra=I0;e.extra2=Jh;e.extra3=Jg;e.nb=I6;e.choices=Jf;if(!I8){var Jj=e.getElementsByTagName("button");if(Jj.length==z.length){for(var Jk=0;Jk<Jj.length;Jk++){Jj.item(Jk).tooltipText=z[Jk]}}else{HX("#Tooltips!=#Buttons: "+Jf+" "+Jj.length+" vs "+z.length)}}e.addEventListener("command",CN,true)
}this.patchNotificationBox=function(t,I2){if(t._lastpassPatched){return}t._lastpassPatched=true;t.__defineGetter__("_closedNotification",function(){var I3=this.__ns__closedNotification;return(I3&&I3.parentNode?I3:null)});t.__defineSetter__("_closedNotification",function(I3){this.__ns__closedNotification=I3
});if(I2!="bottom"){return}t._dom_={};const I1=this.notificationBoxPatch;for(m in I1){t._dom_[m]=t[m];t[m]=I1[m]}var I0=t.getElementsByTagName("stack");var e=null;for(var z=I0.length;z-->0;){if(I0[z].getAttribute("class")=="lastpass-bottom-notify"){e=I0[z];break}}if(!e){e=t.ownerDocument.createElement("stack");
e.setAttribute("class","lastpass-bottom-notify");t.appendChild(e)}t._lastpassBottomStack_=e};this.notificationBoxPatch={insertBefore:function(I0,I1){if(I0.localName=="notification"&&I0.getAttribute("value").indexOf("lp_notificationAction")==0&&Dp){const I6=this._lastpassBottomStack_;I6.insertBefore(I0,null);
var I2=I0.ownerDocument.getAnonymousElementByAttribute(I0,"class","notification-inner outset");if(I2){var e=I2.ownerDocument.defaultView.getComputedStyle(I2,null);var I5=["color","style","width"];var I4,I9,z;for(var t=I5.length;t-->0;){I4=I5[t];I9=I4[0].toUpperCase()+I4.substring(1);z=e.getPropertyValue("border-bottom-"+I4);
I2.style["borderBottom"+I9]=e.getPropertyValue("border-top-"+I4);I2.style["borderTop"+I9]=z}}return I0}if(I1&&I1.parentNode!=this){var I7=I1.priority;I1=null;var I8=this.allNotifications;for(var I3=I8.length;I3-->0;){if((I1=I8[I3]).priority<I7&&I1.parentNode==this){break}}if(I3<0){I1=null}}return this._dom_.insertBefore.apply(this,[I0,I1])
},removeChild:function(e){return(e.parentNode==this)?this._dom_.removeChild.apply(this,arguments):e.parentNode.removeChild(e)}};function Ay(I3,I4,I0,z){var t=null;var I7=I4.getElementById("mainPopupSet");t=I4.createElement("popup");var e=H("popup");t.setAttribute("id",e);I7.appendChild(t);var I5="";if(typeof(I0)=="object"&&typeof(I0.key)=="string"){I5=I0.key
}var I1="";if(typeof(I0)=="object"&&typeof(I0.tld)=="string"){I1=I0.tld}var I6="";if(typeof(I0)=="object"&&typeof(I0.currenturl)!="undefined"){I6=I0.currenturl}if(z){var I8=I4.createElement("menuitem");I8.setAttribute("label",LP.lpgs("NeverAutoFill"));I8.setAttribute("oncommand","LP.never_helper(null, null, null, null, null, '"+z+"');");
t.appendChild(I8)}var I8=I4.createElement("menuitem");I8.setAttribute("label",LP.lpgs("NeverForThisSite"));I8.setAttribute("oncommand","LP.never_helper("+I3+", false, '"+Hb(I5)+"', '"+Hb(I1)+"', '"+Hb(I6)+"');");t.appendChild(I8);var I2=I4.createElement("menuitem");I2.setAttribute("label",LP.lpgs("Never For This Domain"));
I2.setAttribute("oncommand","LP.never_helper("+I3+", true, '"+Hb(I5)+"', '"+Hb(I1)+"', '"+Hb(I6)+"');");t.appendChild(I2);return e}this.never_helper=function(I3,I1,I4,I0,I5,e){var I2=LP.getBrowser();if(I2){var t=new Object();if(e){t.extra2=e;HI(t,null)}else{var z=new Array();if(typeof(I4)!="undefined"){z.key=I4
}if(typeof(I0)!="undefined"){z.tld=I0}if(typeof(I5)!="undefined"&&I5!=""){z.currenturl=I5}t.extra=z;t.browser=I2;switch(I3){case 0:CF(t,null,I1);break;case 1:C6(t,null,I1);break;case 2:Dz(t,null,I1);break;case 3:GF(t,null,I1);break}}}if(LP.getBrowser().getNotificationBox().currentNotification){LP.getBrowser().getNotificationBox().removeCurrentNotification()
}};function DD(z,t){var e=FR;if(e){if(!LP.securityPrompt()){return}}FT(z.browser,z.browser.contentDocument,true)}function Cn(I3,I2,I9,I7,Jf,e){var I8=new Array();var Jd=null,Jc=null,Jb=null;var I5=Jf.getElementById("mainPopupSet");Jd=Jf.createElement("popup");I8[0]=H("popup");Jd.setAttribute("id",I8[0]);
I5.appendChild(Jd);if(I2){Jc=Jf.createElement("popup");I8[1]=H("popup");Jc.setAttribute("id",I8[1]);I5.appendChild(Jc)}if(!e){Jb=Jf.createElement("popup");I8[2]=H("popup");Jb.setAttribute("id",I8[2]);I5.appendChild(Jb)}var t=0;for(var Ja=0;Ja<I3.length;Ja++){var I6=G9[I3[Ja].id];if(typeof(I6)=="undefined"){continue
}var I0="";var I1="";if(I6.logins&&I6.logins.length>0){I0=I6.name;I1=I6.logins[0].unencryptedUsername}var I4=Ex(I6);if(I2&&!I3[Ja].onlyfill){var Je=Jf.createElement("menuitem");Je.setAttribute("label",I4);Je.setAttribute("oncommand","LP.lp_noteAcceptHelper('"+I3[Ja].id+"',"+null+",false);");Jc.appendChild(Je);
t++}var Je=Jf.createElement("menuitem");Je.setAttribute("label",I4);if(e){Je.setAttribute("oncommand","LP.fill_current('"+I3[Ja].id+"');")}else{Je.setAttribute("oncommand","LP.lp_noteAcceptHelper('"+I3[Ja].id+"',"+null+",true);")}if(!e){if(Ja==0){Je.setAttribute("key","lpt_key_lpPrevAutoFill")}if(Ja==I3.length-1){Je.setAttribute("key","lpt_key_lpNextAutoFill")
}}Jd.appendChild(Je);if(!e){var z=Jf.createElement("menuitem");z.setAttribute("label",LP.lpgs("Edit")+" "+I4);z.setAttribute("oncommand","LP.lpOpenEditWindow('"+I3[Ja].id+"'); if (LP.getBrowser().getNotificationBox().currentNotification)LP.getBrowser().getNotificationBox().removeCurrentNotification();");
Jb.appendChild(z)}}if(I3.length<=1){I8[0]=null}if(t<=1){I8[1]=null}if(I8[0]&&Jd.hasChildNodes()){I9.value=Jd.childNodes.length}else{I9.value=0}if(I8[1]&&Jc.hasChildNodes()){I7.value=Jc.childNodes.length}else{I7.value=0}if(!LP.HIDE_REPORT_BROKEN&&!e){var Je=Jf.createElement("menuseparator");Jb.appendChild(Je);
var z=Jf.createElement("menuitem");z.setAttribute("label",LP.lpgs("Report Broken"));z.setAttribute("oncommand","LP.lp_openFeedbackBroken(); if (LP.getBrowser().getNotificationBox().currentNotification)LP.getBrowser().getNotificationBox().removeCurrentNotification();");Jb.appendChild(z)}return I8}function IW(I2,I4){var I5=I4.getElementById("mainPopupSet");
var t=I4.createElement("popup");var e=H("popup");t.setAttribute("id",e);I5.appendChild(t);var I3=false;var z=false;for(var I1=0;I1<d.length;I1++){var I0=d[I1];if(I0.profiletype==0){I3=true}if(I0.ccnum!=""){z=true}var I6=I4.createElement("menuitem");I6.setAttribute("label",I0.profilename);if(I2){I6.setAttribute("oncommand","LP.lp_generatePasswordAndFillFormsHelper("+I0.ffid+");")
}else{I6.setAttribute("oncommand","LP.lp_fillFormsHelper("+I0.ffid+");")}if(I1==0){I6.setAttribute("key","lpt_key_lpPrevAutoFill")}if(I1==d.length-1){I6.setAttribute("key","lpt_key_lpNextAutoFill")}t.appendChild(I6)}var I6=I4.createElement("menuseparator");t.appendChild(I6);I6=I4.createElement("menuitem");
I6.setAttribute("label",LP.lpgs("AddProfile"));I6.setAttribute("oncommand","LP.lpEditFormFillProfile(0);");t.appendChild(I6);I6=I4.createElement("menuitem");I6.setAttribute("label",LP.lpgs("Add Credit Card"));I6.setAttribute("oncommand","LP.lpEditFormFillProfile(0, false, 1);");t.appendChild(I6);I6=I4.createElement("menuitem");
I6.setAttribute("label",LP.lpgs("Clear Forms"));I6.setAttribute("oncommand","LP.lpClearFormsHelper();");t.appendChild(I6);if(I3&&z){I6=I4.createElement("menuitem");I6.setAttribute("label",LP.lpgs("Choose Profile and Credit Card"));I6.setAttribute("oncommand","LP.choose_profile_and_credit_card();");t.appendChild(I6)
}return e}this.lp_fillFormsHelper=function(e,I4,I1){var I2=LP.getBrowser();if(LP.isFennec){}else{if(typeof(I2.selectedTab)!="undefined"){I2=I2.selectedTab.linkedBrowser}}if(typeof(I2.contentDocument.ffidindex)=="number"){for(var I3=0;I3<d.length;I3++){if(d[I3].ffid==e){I2.contentDocument.ffidindex=I3;
break}}}var I0=null;var z=null;for(var I3=0;I3<d.length;I3++){if(d[I3].ffid==e){I0=d[I3]}if(I1&&d[I3].ffid==I1){z=d[I3]}}var t=FR||(I0!=null&&I0.pwprotect)||(z!=null&&z.pwprotect);if(t&&!I4){if(!LP.securityPrompt()){return}}FT(LP.getBrowser(),LP.getBrowser().contentDocument,true,false,e,1,null,I1)};this.lpClearFormsHelper=function(){Dx(LP.getBrowser(),LP.getBrowser().contentDocument)
};this.lpIdentityHelper=function(I1,e){if(I1=="add"){Au(LP.lp_base+"?ac=1&addidentity=1")}else{if(I1==LP.GetIdentity()){return}var z=null;for(var I0=0;I0<GA.length;I0++){if(GA[I0].iid==I1){z=GA[I0]}}var t=FL||(z!=null&&z.pwprotect);if(t&&e!=true){if(!LP.securityPrompt()){return}}AR("switchidentity",{data0:I1});
LP.lpprefsSetCharPref("identity",I1);LP.flush_prefs();Q();if(!e){Ir()}}};function H(e){var t=e+En(1,10000);while(LP.mostRecent().document.getElementById(t)!=null){t=e+En(1,10000)}return t}function r(t,e){LP.lpprefsSetBoolPref("showLoginNotifications",false,false);LP.flush_prefs()}function Gc(t,e){LP.lpOpenPrefs("Feedback")
}this.lp_openFeedbackBroken=function(t,e){LP.lpOpenPrefs("Feedback",3)};function E9(t,e){if(typeof(t.extra.matchingaccts)!="undefined"){LP.lpGetCurrentWindow().openDialog(GY+"content/changepw.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal",t.extra.matchingaccts,t.extra.password,"0",t.extra.tld)
}else{Cy(t.extra.username,t.extra.password,t.extra.id)}}this.lpCreatePass=function(z,Je,Jh,I5,t,Jb,Jf,I0){if(typeof(z)=="undefined"){z=8+En(0,1)}if(typeof(Je)=="undefined"){Je=true}if(typeof(Jh)=="undefined"){Jh=true}if(typeof(I5)=="undefined"){I5=true}if(typeof(t)=="undefined"){t=false}if(typeof(Jb)=="undefined"){Jb=0
}if(typeof(Jf)=="undefined"){Jf=false}if(typeof(I0)=="undefined"){I0=true}var I8=0;var I2=0;var Jc=0;if(I0){I8=I2=Jc=1}var I1=new Array();if(Jh&&I8>0){for(var Jd=0;Jd<I8;Jd++){I1[I1.length]="L"}}if(Je&&I2>0){for(var Jd=0;Jd<I2;Jd++){I1[I1.length]="U"}}if(I5&&Jb>0){for(var Jd=0;Jd<Jb;Jd++){I1[I1.length]="D"
}}if(t&&Jc>0){for(var Jd=0;Jd<Jc;Jd++){I1[I1.length]="S"}}while(I1.length<z){I1[I1.length]="A"}I1.sort(function(){return En(0,1)*2-1});var I7="";var I6="abcdefghjkmnpqrstuvwxyz";if(!Jf){I6+="ilo"}if(Jh){I7+=I6}var Ja="ABCDEFGHJKMNPQRSTUVWXYZ";if(!Jf){Ja+="ILO"}if(Je){I7+=Ja}var Jg="23456789";if(!Jf){Jg+="10"
}if(I5){I7+=Jg}var I9="!@#$%^&*";if(t){I7+=I9}var e="";for(var I3=0;I3<z;I3++){var I4;switch(I1[I3]){case"L":I4=I6;break;case"U":I4=Ja;break;case"D":I4=Jg;break;case"S":I4=I9;break;case"A":I4=I7;break}var Jd=En(0,I4.length-1);e+=I4.charAt(Jd)}return e};this.lpCopyPassToClipboard=function(){var e=lpCreatePass();
if(!LP.lpCopyStringToClipboard(e)){LP.lpalert_ex(LP.lpgs("ErrorCopyingToClipboard"))}};this.lpCopyStringToClipboard=function(e){var t=Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);t.copyString(e);if(LP.lpprefsHasUserValue("clearClipboard")&&LP.lpprefsGetBoolPref("clearClipboard")){LP.lpGetCurrentWindow().setTimeout(function(){var I1=Components.classes["@mozilla.org/widget/clipboard;1"].getService(Components.interfaces.nsIClipboard);
if(!I1){return}var z=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!z){return}z.addDataFlavor("text/unicode");I1.getData(z,I1.kGlobalClipboard);var I2=new Object();var I0=new Object();z.getTransferData("text/unicode",I2,I0);if(I2){I2=I2.value.QueryInterface(Components.interfaces.nsISupportsString)
}if(I2){pastetext=I2.data.substring(0,I0.value/2)}if(I2==e){t.copyString("")}},LP.get_clearClipboardSecsVal()*1000)}return true};this.get_clearClipboardSecsVal=function(){var e=30;if(LP.lpprefsHasUserValue("clearClipboardSecsVal")){e=LP.lpprefsGetIntPref("clearClipboardSecsVal")}else{if(LP.lpprefsHasUserValue("clearClipboardVal")){var t=LP.lpprefsGetIntPref("clearClipboardVal");
if(t==1){e=30}else{e=t*60}}}return e};function G8(t,e){LP.fill_current(t.aid[0].id);return true}this.fill_current=function(I0){if(G9[I0]){var z=LP.getBrowser().selectedTab.linkedBrowser;if(z){var t=LP.lpgetcurrenturl(z);var e=Il[t];if(e){e.value=BD(G9[I0].password)}}}};function BC(z,t){var e=FR;if(e){if(!LP.securityPrompt()){return
}}FT(z.browser,z.browser.contentDocument,true);LP.lpOpenGenPWWindow(z)}this.lp_generatePasswordAndFillFormsHelper=function(e){var z=null;for(var I0=0;I0<d.length;I0++){if(d[I0].ffid==e){z=d[I0]}}var t=FR||(z!=null&&z.pwprotect);if(t){if(!LP.securityPrompt()){return}}FT(LP.getBrowser(),LP.getBrowser().contentDocument,true,false,e);
LP.lpOpenGenPWWindow()};function DN(t,e){LP.lpGetCurrentWindow().setTimeout(function(){LP.lpOpenGenPWWindow(t)},0);return t.extra2||(t.extra3&&t.aid.length>0)}this.lp_generatePasswordComplete=function(I1,z){var t=LP.lpgetcurrenturl(I1?I1.browser:LP.getBrowser());var e=LP.lpgs("Generated Password for")+" "+AN(t);
var I0="url="+LP.en(D3(t))+"&password="+LP.en(Ds(z))+"&name="+LP.en(AS(e));I0+=LP.GetIdentityParam();if(!I1){I0+="&nofill=1"}LP.lpMakeRequest(LP.lp_base+"save_gen_pw.php",I0,Bh);if(!LP.lpprefsHasUserValue("SaveGenAlert")){LP.alert(LP.lpgs("SaveGenAlert"));LP.lpprefsSetBoolPref("SaveGenAlert",true,true)
}};function Fq(I1,I0){var e=I1.extra;if(typeof(e.saveall)!="undefined"&&e.saveall){LP.lpOpenEditWindow(0,false,false,null,true,e.postdata,e.fi);return}var z=e.key;var t=e.tld;win=LP.lpGetCurrentWindow().openDialog(GY+"content/addconfirm.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal",t,"",z,Bz[z].username,Bz[z].encryptedPassword,IB(Bz[z].url));
FT(I1.browser,I1.browser.contentDocument,false)}function CF(e,I3,I1){var t=e.extra;if(typeof(t.saveall)!="undefined"&&t.saveall){return}var I4=t.key;var z=t.tld;if(I4==""){var I5=(typeof(t.currenturl)!="undefined"?t.currenturl:LP.lpgetcurrenturl(e.browser));var I2;if(I1){var z=AN(I5);I2="url="+LP.en(D3(z));
Cm[Cm.length]=z}else{var I0=ED(I5);I2="url="+LP.en(D3(I0));Cm[Cm.length]=I0}LP.lpGetCurrentWindow().setTimeout((function(){CX(I2)}),100)}else{E6(I4,I1);CL(I4,z)}FT(e.browser,e.browser.contentDocument,false)}function Gw(I1,I0){var e=I1.extra;if(typeof(e.saveall)!="undefined"&&e.saveall){return}var z=e.key;
var t=e.tld;CL(z,t);FT(I1.browser,I1.browser.contentDocument,false)}function D9(I1,I0){var z=I1.extra;var e=D1(z);var t=LP.lpGetCurrentWindow().openDialog(GY+"content/formfill.xul","_blank","resizable=yes,chrome,titlebar,toolbar,centerscreen,modal",-1,1,0,e)}function Ao(t,e){Gl=false;LP.lpprefsSetBoolPref("capturenewformfill",false,true);
LP.flush_prefs()}function CL(t,e){if(Bz[t]==null){return}CU(Bz[t].username,Bz[t].encryptedPassword,e);Bz[t]=null;G7=new Array()}function Bh(t){if(!t){return}if(!DH){return}if(t.readyState==4){if(t.status==200&&t.responseXML!=null&&t.responseXML.documentElement!=null){var Jh=t.responseXML.documentElement;
var Ja=Jh.getElementsByTagName("error");if(Ja.length>0){var Jr=Ja[0].getAttribute("notloggedin");if(parseInt(Jr)==1){DS();return}}var Jd=Jh.getElementsByTagName("ok");if(Jd.length>0){var I3=Ck(Jd[0].getAttribute("url"));var z=Jd[0].getAttribute("password");var e=BD(z);if(!F6[I3]){var Jp=LP.getBrowser().selectedTab.linkedBrowser;
var Js=Jp.contentDocument;F6[I3]=Cx(Jp,Js,true)}if(F6[I3]){form=F6[I3];var Jc=null;if(Il[I3]){Jc=Il[I3]}var Jo=false;var I7=null,I5=null;for(var Jj=1;Jj<=2;Jj++){Jo=false;I7=I5=null;var I2=-1;if(Jj==1){if(Jc){for(var Jl=0;Jl<form.elements.length;Jl++){if(form.elements[Jl]==Jc){I2=Jl+1;break}}}}else{I2=0
}if(I2==-1){continue}for(var Jl=I2;Jl<form.elements.length;Jl++){var I1=form.elements[Jl];if(I1.type=="password"){if(!Jo&&I7&&I5){}else{I5=I7;I7=I1;if(Jo&&I7&&I5){break}}Jo=true}else{Jo=false}}if(I7&&I5){break}}if(I7&&I5){if((I5.value!=""||I5==Jc)&&I7.value==""&&Jl<form.elements.length-1){for(var Jk=Jl+1;
Jk<form.elements.length;Jk++){var I1=form.elements[Jk];if(I1.type=="password"&&I1.value==""){I5=I7;I7=I1;break}else{if(I1.type!="hidden"){break}}}}I7.value=I5.value=e;E7(I7);E7(I5);var Jg=new Object();Jg.target=I7;LP.lpfieldchange(Jg);Jg.target=I5;LP.lpfieldchange(Jg)}else{HX("Couldn't find password fields after generating. form:"+form,null)
}}else{if(Jd[0].getAttribute("nofill")=="0"){HX("Could not find lpgenpassforms when generating pw",null)}}var I8=parseInt(Jd[0].getAttribute("accts_version"));if(I8==BP+1){var I6=Jd[0].getAttribute("aid");var Jm=new Iu();Jm.pendingshare=false;Jm.url=I3;var Jn=AN(Jm.url);Jm.tld=Jn;Jm.name=LP.lpgs("Generated Password for")+" "+Jm.tld;
Jm.urid="0";Jm.id=I6;Jm.manual="0";Jm.is_http="0";Jm.extra="";Jm.fav="0";Jm.favico="0";Jm.autologin="0";Jm.basic_auth=false;Jm.group=LP.get_null_group();Jm.fiid="0";Jm.genpw=true;Jm.isbookmark=false;Jm.never_autofill="0";LP.SetLastTouch(Jm);Jm.sn=false;Jm.username="";Jm.password=z;Jm.unencryptedUsername="";
Jm.save_all=false;Jm.realm="";Jm.sharedfromaid="";Jm.logins=new Array();Jm.otherlogins=new Array();Jm.fields=new Array();var Je=new GZ();Je.urid="0";Je.url=I3;var Jb=IR(Je.url);Je.server=Jb.host;Je.tld=J(Jb.host,Je.url);var Jf=ED(Je.url,Jb);Je.submit_id="";Je.captcha_id="";Je.custom_js="";Je.username="";
Je.password=z;Je.openid_url="";Je.method="";Je.unencryptedUsername="";Je.uname="";Je.pname="";Je.oname="";Je.fields=new Array();Je.otherfields=new Array();Jm.logins[0]=Je;G9[I6]=Jm;EU++;if(typeof(Fv[Jn])=="undefined"){Fv[Jn]=new Array()}Fv[Jn][I6]=true;LP.addAidIdentity(I6);FA[I6]=true;if(typeof(Bs[Jn])!="undefined"){var Jq=Bs[Jn];
if(typeof(Bs[Jq])!="undefined"){for(var Jj=0;Jj<Bs[Jq].length;Jj++){var Ji=Bs[Jq][Jj];if(typeof(Fv[Ji])=="undefined"){Fv[Ji]=new Array()}Fv[Ji][I6]=true}}}BP=I8;H7=I8;var I9=true;var I0=HT();if(I0==null){I9=false}if(I9&&!Fr(I0,Jm,true)){I9=false}if(I9&&!E1(I0,I8)){I9=false}if(I9&&!Bx(I0,null,"lpPopulateGeneratedPassword")){I9=false
}if(I9){Q()}else{LP.lpGetAccounts()}}else{LP.lpGetAccounts()}Ir()}}else{var I4="Problem with save gen pw response. status="+t.status+" text= "+t.responseText;HX(I4,null);j("ErrorSaveGenPwMsg")}}}function C6(z,e,t){B5(LP.lpgetcurrenturl(z.browser),t)}function Dz(z,e,t){E2(LP.lpgetcurrenturl(z.browser),t)
}function GF(z,e,t){F1(LP.lpgetcurrenturl(z.browser),t)}this.lp_noteAcceptPre=function(t){var e=LP.getBrowser().getNotificationBox().currentNotification;if(e){Ij(e.aid,e,t);LP.getBrowser().getNotificationBox().removeNotification(e)}};function Ij(t,z,e){if(typeof(t)=="object"&&t.length>=1){t=t[0]}if(typeof(e)=="undefined"||e==null){e=z.extra
}LP.lp_noteAcceptHelper(t.id,z.browser,e)}this.lp_noteAcceptHelper=function(I1,I4,I3,z){try{if(!I4){if(LP.isFennec){I4=LP.fennecBrowser.selectedBrowser}else{I4=LP.getBrowser().selectedTab.linkedBrowser}}var I0=I4.contentDocument;var Jb=null;var t=null;var I9=false;var I5=-1;if(I0.aid!=null&&typeof(I0.aid)=="object"){for(var I2=0;
I2<I0.aid.length;I2++){if(I0.aid[I2].id==I1){I9=I0.aid[I2].needsnewurid;I5=I0.aid[I2].otherlogin;t=I0.aid[I2].url;if(typeof(I0.aidindex)=="number"){I0.aidindex=I2}break}}}var I6=I4.contentWindow;if(t&&I6.location.href!=t){if(I6&&I6.frames){for(var I2=0;I2<I6.frames.length;I2++){if(I6.frames[I2].document){if(t==I6.frames[I2].document.location.href){Jb=I6.frames[I2].document;
break}}}}}else{if(t&&I6.location.href==t){Jb=I6.document}}I4.contentDocument.LPlpsaveforminfo=null;I4.contentDocument.m_filledAid=null;if(!I3){}else{var I8=false;if(DI||G9[I1].pwprotect){if(HE){var Ja=Ab();if(Ja-BX<HE){I8=true}}}if((!DI&&!G9[I1].pwprotect)||I8||LP.securityPrompt()){LP.lpLaunchUrl(I1,1,0,I4,I3,false,I5,null,null,Jb,z);
if(G9[I1]&&!G9[I1].save_all){if(G9[I1].logins[0].fields.length==0||G9[I1].urid==0||I9){I4.contentDocument.LPlpsaveforminfo=I1}}}}if(!I3){LP.lpGetCurrentWindow().setTimeout(function(){LP.lpLaunchUrl(I1,1,0,I4,I3,false,I5,null,null,Jb)},0)}}catch(I7){HX("Notification Error for aid: "+I1+" "+I7+" ln: "+I7.lineNumber)
}};function Ap(z,t){Ij(z.aid[0],z,true);if(!G9[aid.id].autologin){var e="aid="+LP.en(z.aid[0].id);LP.lpMakeRequest(LP.lp_base+"set_autologin.php",e,null);G9[z.aid[0].id].autologin="1"}}this.lp_noteAcceptNeverPre=function(){var e=LP.getBrowser().getNotificationBox().currentNotification;if(e){HI(e,"");
LP.getBrowser().getNotificationBox().removeNotification(e)}};function HI(z,t){var e="aid="+LP.en(z.extra2);LP.lpMakeRequest(LP.lp_base+"set_never_autofill.php",e,null);G9[z.extra2].never_autofill="1";G9[z.extra2].autologin="0"}function Bk(e){if(e.aid==0){Gh=true}}function CN(t){var e=LP.getBrowser();
e.contentDocument.LPlpshowednote=2}this.lpUploadForms=function(e){Fs(false,e,1,null,0,0,false,false,true)};this.securityPrompt=function(t){if(Fm){var I1=C2("password_offline");if(I1&&I1!=""){var z=C2("type");if(z=="trueapi"){if(Fl()&&typeof(BA.trueapi_get_hash)=="function"){var e=BA.trueapi_get_hash(EV);
if(e==I1){return true}}}}}if(HE){var I0=Ab();if(I0-BX<HE){return true}}if(typeof(t)=="undefined"){t=LP.lpGetCurrentWindow()}var I2={logincase:0,authorized:0};t.openDialog(GY+"content/login.xul","_blank","resizable,chrome,titlebar,toolbar,centerscreen,modal",I2);LP.last_dialog_close=new Date().getTime();
if(0==I2.authorized){return false}return true};this.lpOpenFavorites=function(){var e=false;for(var z=0;z<Dk.length;z++){e|=G9[Dk[z].id].pwprotect}if(DI||e){if(!LP.securityPrompt()){return}}Cu=true;for(var z=0;z<Dk.length;z++){var t=Dk[z].command;LP.lpLaunchUrl(t.aid,t.manual,t.is_http,null,null,null,null,true)
}Cu=false};this.OpenGroup=function(I8,I4,I7){var I5=new Array();var z=false;var I0=I8.treeBoxObject;var e=I0.view.getLevel(I7);var I6=I7+1;while(true){if(I6>=I0.view.rowCount){break}var I3=I0.view.getLevel(I6);if(I3<=e){break}if(I0.view.isContainer(I6)){I6++;continue}var I2=I8.view.getItemAtIndex(I6);
var t=I2.getAttribute("id");if(G9[t]&&!G9[t].genpw){I5[I5.length]=G9[t];z|=G9[t].pwprotect}I6++}if(I5.length>5){if(!LP.lpConfirmYesNo(LP.lpgs("Are you sure you would like to launch all sites?"))){return}}if(DI||z){if(!LP.securityPrompt()){return}}Cu=true;for(var I1=0;I1<I5.length;I1++){LP.lpLaunchUrl(I5[I1].id,I5[I1].manual,I5[I1].is_http,null,null,null,null,true)
}Cu=false};var DO=0;function HX(I1,t){if(GH==false){return}DO++;if(DO>100){return}var e=I1.match(/^(.*)location:\s+/);if(e){I1=e[1]}var I0="msg=ff("+LP.lp_getFFVersion()+") lp("+DF+") errors("+DO+"): "+LP.en(I1);var z=Ab();I0+="&secsrunning="+LP.en(z-Ek);if(I1.match(/NS_ERROR_NOT_INITIALIZED/)){return
}if(I1.indexOf("this.docShell is null")!=-1||I1.indexOf("this._closedNotification.parentNode is null")!=-1||I1.indexOf("browsers[i] is undefined")!=-1){return}LP.lpMakeRequest(LP.lp_base+"error.php",I0,null)}this.lpToggleDebug=function(){F5=!F5;var e=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var z=e.getEnumerator("");while(z.hasMoreElements()){var t=z.getNext();AG(t.document)}};function AG(e){if(e.getElementById("debug-btn")){e.getElementById("debug-btn").label=LP.lpgs(F5?"DisableDebug":"EnableDebug");e.getElementById("debug-btn").setAttribute("checked",F5?"true":"false")}}this.lpOpenPrefs=function(t,e){LP.lpGetCurrentWindow().openDialog(GY+"content/prefs.xul","_blank","chrome,modal,resizable,centerscreen",t,e)
};this.lpfeedback=function(e,I2,I0,z){var t=LP.lpgetcurrenturl(LP.getBrowser());var I1="fb=1&subj="+LP.en(e)+"&desc=ff("+LP.lp_getFFVersion()+") lp("+DF+") "+LP.en(I2)+"&site="+LP.en(I0)+"&email="+LP.en(z)+"&url="+LP.en(t)+"&compact="+LP.en(FP?"1":"0")+"&curforms="+LP.en(Fs(false,true,2,null,0,0,false,false,true));
LP.lpMakeRequest(LP.lp_base+"error.php",I1,null)};function j(I2,I0,t,z,I1){var e=new Array();if(I0){e.feedback=1}else{if(t){e.login=1}}if(z){e.createaccount=1}if(I1){e.multifactor_disable_url=I1}Cz(I2,null,0,"error",e,1)}function Cy(I0,t,z,e){LP.lpGetCurrentWindow().setTimeout((function(){var I1="xml=1";
if(e){I1+=e}else{I1+="&username="+LP.en(Ds(I0))+"&password="+LP.en(Ds(t))+"&id="+LP.en(z)}LP.lpMakeRequest(LP.lp_base+"change_pw.php",I1,Cr)}),100)}function Cr(e){EZ(e)}function EZ(I8){if(!I8){return}if(I8.readyState==4){if(I8.status==200&&I8.responseXML!=null&&I8.responseXML.documentElement!=null){var I1=I8.responseXML.documentElement;
var I9=I1.getElementsByTagName("ok");if(I9.length>0){var Ja=parseInt(I9[0].getAttribute("localupdate"));var I5=parseInt(I9[0].getAttribute("accts_version"));if(Ja&&I5==BP+1){var z=I9[0].getAttribute("newpassword");var t=new Array();var I6="";while(I9[0].hasAttribute("oldpassword"+I6)){var e=parseInt(I9[0].getAttribute("id"+I6));
var I4=I9[0].getAttribute("oldpassword"+I6);var I7=G9[e];if(I7.password==I4){I7.password=z}if(I7.logins){for(var I3=0;I3<I7.logins.length;I3++){if(I7.logins[I3].password==I4){I7.logins[I3].password=z}for(var I2=0;I2<I7.logins[I3].fields.length;I2++){if(I7.logins[I3].fields[I2].type=="password"&&I7.logins[I3].fields[I2].value==I4){I7.logins[I3].fields[I2].value=z
}}for(var I2=0;I2<I7.logins[I3].otherfields.length;I2++){if(I7.logins[I3].otherfields[I2].type=="password"&&I7.logins[I3].otherfields[I2].value==I4){I7.logins[I3].otherfields[I2].value=z}}}for(var I3=0;I3<I7.otherlogins.length;I3++){if(I7.otherlogins[I3].password==I4){I7.otherlogins[I3].password=z}for(var I2=0;
I2<I7.otherlogins[I3].fields.length;I2++){if(I7.otherlogins[I3].fields[I2].type=="password"&&I7.otherlogins[I3].fields[I2].value==I4){I7.otherlogins[I3].fields[I2].value=z}}for(var I2=0;I2<I7.otherlogins[I3].otherfields.length;I2++){if(I7.otherlogins[I3].otherfields[I2].type=="password"&&I7.otherlogins[I3].otherfields[I2].value==I4){I7.otherlogins[I3].otherfields[I2].value=z
}}}}t[t.length]=I7;if(I6==""){I6=1}else{I6++}}BP=I5;H7=I5;var Jb=true;var Jc=HT();if(Jc==null){Jb=false}if(Jb){for(var I3=0;I3<t.length;I3++){if(!B6(Jc,t[I3].id,false)){Jb=false;break}if(!Fr(Jc,t[I3],false)){Jb=false;break}}}if(Jb&&!E1(Jc,I5)){Jb=false}if(Jb&&!Bx(Jc,null,"lpChangePwResponse_win")){Jb=false
}if(Jb){Q()}else{LP.lpGetAccounts()}}else{LP.lpGetAccounts()}}else{j("ErrorServerMsg")}}else{var I0="Problem with change pw response. status="+I8.status+" text= "+I8.responseText;HX(I0,null);j("ErrorChangePwMsg")}}}function Ar(Jm,I2){var Jj=HQ(Jm);var I1=null;if(Jj){I1=Jj.contentWindow}var I3=new Array();
var z=1000;var t=Jm.getElementsByTagName("object");for(var Jc=0;Jc<t.length;Jc++){if(t[Jc].style.visibility==""||t[Jc].style.visibility=="visible"){var Jb=t[Jc].id;if(Jb==""){Jb="lpobj"+z++;t[Jc].id=Jb}t[Jc].style.visibility="hidden";I3[I3.length]=Jb}}var Jd=Jm.getElementsByTagName("embed");for(var Jh=0;
Jh<Jd.length;Jh++){if(Jd[Jh].style.visibility==""||Jd[Jh].style.visibility=="visible"){var Jb=Jd[Jh].id;if(Jb==""){Jb="lpobj"+z++;Jd[Jh].id=Jb}Jd[Jh].style.visibility="hidden";I3[I3.length]=Jb}}var Ja=Jm.getElementsByTagName("applet");for(var Jh=0;Jh<Ja.length;Jh++){if(Ja[Jh].style.visibility==""||Ja[Jh].style.visibility=="visible"){var Jb=Ja[Jh].id;
if(Jb==""){Jb="lpobj"+z++;Ja[Jh].id=Jb}Ja[Jh].style.visibility="hidden";I3[I3.length]=Jb}}var Ji=Jm.createElement("script");var Jl='function lphideoverlay(user){try{document.getElementById("lpoverlay1").style.display="none";document.getElementById("lpmsgbox1").style.display="none";';for(var Je=0;Je<I3.length;
Je++){Jl+='document.getElementById("'+Hb(I3[Je])+'").style.visibility="visible";'}Jl+="if(user){var i=document.createElement('image'); i.src='"+LP.lp_base+"error.php?msg=userCloseOverlay%20aid%20"+(I2?I2:"")+"'; i.style.display='none'; document.appendChild(i);}}catch(e){} }";var I6=Jm.createTextNode(Jl);
Ji.appendChild(I6);if(Jm.body){Jm.body.appendChild(Ji)}Jm.LPlphideIds=I3;if(Jm.getElementById("lpoverlay1")&&Jm.getElementById("lpmsgbox1")){Jm.getElementById("lpoverlay1").style.display="";Jm.getElementById("lpmsgbox1").style.display="";return}var Jg=Jm.createElement("div");Jg.id="lpoverlay1";var I5=0;
if((typeof(Jm.documentElement)!="undefined")&&(typeof(Jm.documentElement.scrollLeft)!="undefined")&&(Jm.documentElement.scrollLeft>0)){I5=Jm.documentElement.scrollLeft}else{if((typeof(Jm.body)!="undefined")&&(Jm.body)&&(typeof(Jm.body.scrollLeft)!="undefined")&&(Jm.body.scrollLeft>0)){I5=Jm.body.scrollLeft
}}var Jf=0;if((typeof(Jm.documentElement)!="undefined")&&(typeof(Jm.documentElement.scrollTop)!="undefined")&&(Jm.documentElement.scrollTop>0)){Jf=Jm.documentElement.scrollTop}else{if((typeof(Jm.body)!="undefined")&&(Jm.body)&&(typeof(Jm.body.scrollTop)!="undefined")&&(Jm.body.scrollTop>0)){Jf=Jm.body.scrollTop
}}Jg.style.cssText="position: absolute; left: "+I5+"px; top: "+Jf+"px; width: 100%; height: 100%; background-color: #666666; opacity: .7; filter: alpha(opacity=70); z-index: 9980;";if(Jm.body){Jm.body.appendChild(Jg)}var I4=-1;var I0=200;if((I1)&&(typeof(I1.innerWidth)!="undefined")&&(I1.innerWidth>0)){I4=I1.innerWidth
}if(I4<=0){if((typeof(Jm.documentElement)!="undefined")&&(typeof(Jm.documentElement.clientWidth)!="undefined")&&(Jm.documentElement.clientWidth>0)){I4=Jm.documentElement.clientWidth}if((typeof(Jm.body)!="undefined")&&(Jm.body)&&(typeof(Jm.body.clientWidth)!="undefined")&&(Jm.body.clientWidth>0)&&(I4<=0||Jm.body.clientWidth<I4)){I4=Jm.body.clientWidth
}}if(I4>300){I0=I4/2-150}I0+=I5;var Jk=-1;var I9=200;if((I1)&&(typeof(I1.innerHeight)!="undefined")&&(I1.innerHeight>0)){Jk=I1.innerHeight}if(Jk<=0){if((typeof(Jm.documentElement)!="undefined")&&(typeof(Jm.documentElement.clientHeight)!="undefined")&&(Jm.documentElement.clientHeight>0)){Jk=Jm.documentElement.clientHeight
}if((typeof(Jm.body)!="undefined")&&(Jm.body)&&(typeof(Jm.body.clientHeight)!="undefined")&&(Jm.body.clientHeight>0)&&(Jk<=0||Jm.body.clientHeight<Jk)){Jk=Jm.body.clientHeight}}if(Jk>0){I9=Jk/2-20}I9+=Jf;var I8=Jm.createElement("div");I8.id="lpmsgbox1";I8.style.cssText="background-color: white; color: black; border:1px solid #c01f2f; position:absolute; text-align:center; display:block; width:300px; height:auto; z-index: 9990; left: "+I0+"px; top: "+I9+"px; font-family:arial; font-size:13px;";
var I7="<div style='float:right'><a style='WIDTH:16px;HEIGHT:16px;COLOR:black;BACKGROUND-COLOR:white' href='#' onclick='lphideoverlay(1); return false;'>";I7+='<img alt="x" src="data:image/gif;base64,R0lGODlhEAAQAIABAAAAAP///yH5BAEKAAEALAAAAAAQABAAAAIjjI+pq+DpAIwnSmRlbpmufjEbE4AiGFZWuWIe+7gpTNb2TRYAOw=="/ border=0>';
I7+="</a></div><br/>";I7+='<img src="data:image/gif;base64,R0lGODlhEAAQAPZVADsBAkECBFEGCmQDBGoEB3UIDWcOEn0dHnZGRnhBQntbXIILEoIMEoENFI8QGI0UHJMQGKERGqURGq4QGIsaIZ4fJq8WI68YJrQXJLIZJbgZJ7gZKLwcK74dLa4gKq4iLLUgLaApMLwpNrwsOKUzOcAfL8EhMcUjM8YkNMgoOJw+QKY8QtA5Sdo/T6dARa5FS6tOUr9MUqRRVrRVWY9pa5BmaZBqbMRKVNlRYclud/14iLyIiKuoqNGbneyPmfOAkPeElNGvsNO3t+aorfGjq+y/w8zMzNXU1N3S0t7W1t3a2uLR0e3U1vLd4OLh4ejo6Png4/bx8ff09Pr5+f7+/v///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAFYALAAAAAAQABAAAAfEgFaCVlCFhoWDgzk6QD+Oj0A6OYMyLSwdJR2amywtMoITKZgbFRsYIRqaKROCEpgZO1IkMFM7GJgSghGZKEVVQktVQyclJRG6JR8uM1NVVVEvKx7GyDHO11VUVTHUVgEECUlIR+RHSUoJBAGCAAMHKgpO8koIKgcDAIICCwwGRk89gjzhUYABAwGCGly4IIIIkxE3mvgAkeFCA0EPMBQ7gcNEio7FMDwQVAOCBQ6bNnGwAKHGIBoUHMicKZOCjUQ4cw4KBAA7"/>';
I7+=" "+LP.lpgs("LoginOverlayText")+"<br/><span id='lpoverlaystatus' style='color:#c1243f;font-size:11px;'></span><br/><br/>";try{I8.innerHTML=I7}catch(Jh){Az(Jm);return}if(Jm.body){Jm.body.appendChild(I8)}}function Az(I1){var t=HQ(I1);if(!t){return}var e=I1.getElementById("lpoverlay1");if(e){e.style.display="none"
}var I0=I1.getElementById("lpmsgbox1");if(I0){I0.style.display="none"}if(typeof(I1.LPlphideIds)!="undefined"){for(var z=0;z<I1.LPlphideIds.length;z++){var I2=I1.getElementById(I1.LPlphideIds[z]);if(I2){I2.style.visibility="visible"}}}}function F7(t,e){if(t.getElementById("lpoverlaystatus")){t.getElementById("lpoverlaystatus").innerHTML=e
}}this.lpToggleToolbar=function(){var z=LP.lpGetCurrentWindow();var I0=z.document;var t=I0.getElementById("lpt_lastpass-toolbar");if(t){var e=(z.fullScreen?"moz-collapsed":"collapsed");if(t.hasAttribute(e)&&t.getAttribute(e)=="true"){t.removeAttribute("moz-collapsed");t.removeAttribute("collapsed")}else{t.setAttribute(e,true)
}}};this.lpSetHideShowText=function(){var z=LP.lpGetCurrentWindow();var I1=z.document;var t=I1.getElementById("lpt_lastpass-toolbar");var I0=I1.getElementById("lpt_status-bar-tbctrl");if(t&&I0){var e=(z.fullScreen?"moz-collapsed":"collapsed");I0.label=t.hasAttribute(e)&&t.getAttribute(e)=="true"?LP.lpgs("ShowToolbar"):LP.lpgs("HideToolbar")
}};this.gecko_version=function(){return Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULAppInfo).platformVersion};this.lpOpenAbout=function(){var e=LP.lpgs("LastPassFFToolbar");e+="\n\n";e+=LP.lpgs("Version")+" "+DF;e+="\n";e+=LP.lpgs("Built")+" "+LP.lpbuilt;e+="\n";
e+=LP.lpgs("FastEncryption")+": "+LP.lpgs(BL());e+="\n\n"+LP.lpgs("CopyLicense");e=e.replace(" 2008 "," 2008-"+(new Date()).getFullYear()+" ");LP.lpalert_ex(e)};this.lpOtherSessions=function(){LP.lpbaseopen("sess.php")};this.lpSecCheck=function(){LP.lpbaseopen("?securitychallenge=1")};this.lpRebuildToolsMenu_all=function(){var e=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var z=e.getEnumerator("");while(z.hasMoreElements()){var t=z.getNext();LP.lpRebuildToolsMenu(t.document,t)}};this.lpRebuildToolsMenu=function(I0,Jl){if(typeof(Jl.getBrowser)!="function"){return}var Jy=Jl.getBrowser();if(null==Jy&&!LP.isFennec){return}if(!LP.isFennec&&(typeof(Jy.selectedTab)=="undefined"||Jy.selectedTab==null)){return
}var z=LP.isFennec?LP.fennecBrowser.selectedBrowser.contentDocument.location.href:LP.lpgetcurrenturl(Jy.selectedTab.linkedBrowser);var Ja=AN(z);if(LP.compare_tlds(Ja,"blank")){Ja=""}var Jz=I0.getElementById("lpt_lpcopyusernamepopup");if(Jz){for(var Jw=Jz.childNodes.length-1;Jw>=0;Jw--){Jz.removeChild(Jz.childNodes.item(Jw))
}}var Ji=I0.getElementById("lpt_lpcopypasswordpopup");if(Ji){for(var Jw=Ji.childNodes.length-1;Jw>=0;Jw--){Ji.removeChild(Ji.childNodes.item(Jw))}}var Jc=I0.getElementById("lpt_lpautofillpopup");if(Jc){for(var Jw=Jc.childNodes.length-1;Jw>=0;Jw--){Jc.removeChild(Jc.childNodes.item(Jw))}}var Jh=Ab();var I9=new Array();
var e=false;if(I0.getElementById("lpt_lastpass-compact-menu")){I9[I9.length]=I0.getElementById("lpt_lastpass-compact-menu");e=true}if(I0.getElementById("lpt_lastpass-fennec-menu")){I9[I9.length]=I0.getElementById("lpt_lastpass-fennec-menu")}if(I0.getElementById("lpt_lp-tools-menu")){I9[I9.length]=I0.getElementById("lpt_lp-tools-menu")
}var Js=arguments.callee.caller.toString().substring(0,arguments.callee.caller.toString().indexOf("{"));if(I0.getElementById("lpt_status-bar-menu")){I9[I9.length]=I0.getElementById("lpt_status-bar-menu")}if(I0.getElementById("lpt_comp-bar-tools-menu")){I9[I9.length]=I0.getElementById("lpt_comp-bar-tools-menu")
}var Jk;for(var Jv=0;Jv<I9.length;Jv++){Jk=I9[Jv];for(var Jw=0;Jw<Jk.childNodes.length;Jw++){var Jo=Jk.childNodes.item(Jw).getAttribute("id");if(Jo=="menudelim"||Jo=="menudelim2"){break}}var Jq=Jw;for(var Jw=Jk.childNodes.length-1;Jw>=Jq;Jw--){Jk.removeChild(Jk.childNodes.item(Jw))}if(DH&&(!e||Jv!=0)){var Je=I0.createElement("menuseparator");
Je.setAttribute("id","menudelim2");Jk.appendChild(Je);var I8=I0.createElement("menuitem");I8.setAttribute("label",LP.lpgs("AddSite"));I8.setAttribute("oncommand","LP.lpOpenEditWindow(0)");if(Jk.id=="lpt_comp-bar-tools-menu"){I8.setAttribute("src","chrome://lastpass/skin/new_small.gif");I8.setAttribute("class","menuitem-iconic")
}Jk.appendChild(I8);if(!EX){var I5=I0.createElement("menuitem");I5.setAttribute("label",LP.lpgs("AddSecureNote"));I5.setAttribute("oncommand","LP.lpOpenEditWindow(0, false, true)");if(Jk.id=="lpt_comp-bar-tools-menu"){I5.setAttribute("src","chrome://lastpass/skin/note_add.png");I5.setAttribute("class","menuitem-iconic")
}Jk.appendChild(I5)}if(Jk.id!="lpt_comp-bar-tools-menu"){var I4=I0.createElement("menuitem");I4.setAttribute("label",LP.lpgs("Save All Entered Data"));I4.setAttribute("oncommand","LP.lpOpenEditWindow(0, false, false, null, true)");I4.setAttribute("key","lpt_key_lpSaveAll");Jk.appendChild(I4)}}if(Jk.id=="lpt_comp-bar-tools-menu"){break
}var I7=true,Jm=false;var Jg=typeof(Fv[Ja])!="undefined"?Fv[Ja]:new Array();for(var Jw in FA){if(Jh-G9[Jw].last_touch<=600||LP.compare_tlds(G9[Jw].tld,Ja)){if(I7){var Je=I0.createElement("menuseparator");Je.setAttribute("id","menudelim");Jk.appendChild(Je);I7=false}Jm=true;var Je=I0.createElement("menuitem");
Je.setAttribute("src",CM(G9[Jw].fiid));Je.setAttribute("class","menuitem-iconic");Je.setAttribute("label",LP.lpgs("Copy")+" "+G9[Jw].name);Je.setAttribute("oncommand","LP.lpCopyPassword('"+Jw+"');");Je.setAttribute("oncontextmenu","LP.lpcurrcontextmenusite = '"+Jw+"'; return true;");Je.setAttribute("context","lpt_site-context-menu");
Jk.appendChild(Je);if(Jv==0&&!G9[Jw].isbookmark){var Ji=I0.getElementById("lpt_lpcopypasswordpopup");if(Ji){var Je=I0.createElement("menuitem");Je.setAttribute("class","menuitem-iconic");Je.setAttribute("src",CM(G9[Jw].fiid));Je.setAttribute("label",G9[Jw].name);Je.setAttribute("oncommand","LP.lpCopyPassword('"+Jw+"');");
Ji.appendChild(Je)}}}}I7=true;var Jb=false;var Jj=new Array();var Ju=null;if(!LP.isFennec){var t=LP.getBrowser().selectedTab.linkedBrowser;Ju=t.contentDocument}else{Ju=I0}if(Ju.aid&&typeof(Ju.aid)=="object"){Jj=Ju.aid;Jb=true}else{var Jg=typeof(Fv[Ja])!="undefined"?Fv[Ja]:new Array();for(var Jw in Jg){if(typeof(G9[Jw])!="undefined"&&!G9[Jw].genpw){Jj[Jj.length]=G9[Jw]
}}}for(var Jf=0;Jf<Jj.length;Jf++){var Jw=Jj[Jf].id;if(typeof(G9[Jw])=="undefined"){continue}if(I7&&!Jm){var Je=I0.createElement("menuseparator");Je.setAttribute("id","menudelim");Jk.appendChild(Je)}if(Jm){var I1=I0.createElement("menuseparator");I1.setAttribute("id","menudelimcopy");Jk.appendChild(I1);
Jm=false}var Jn="";if(G9[Jw].logins&&G9[Jw].logins.length>0){Jn=G9[Jw].logins[0].unencryptedUsername}var Jt=Ex(G9[Jw]);if(LP.isFennec){var I5=I0.createElement("menuitem");I5.setAttribute("label",Jt);I5.setAttribute("oncommand","LP.lpAutoFill('"+Jw+"');");Jk.appendChild(I5);I7=false;continue}var Je=I0.createElement("menu");
Je.setAttribute("image",CM(G9[Jw].fiid));Je.setAttribute("label",Jt);Je.setAttribute("class","menu-iconic");if(I7&&Jb){Je.setAttribute("style","font-weight: bold;")}I7=false;var I8=I0.createElement("menupopup");I8.setAttribute("ignorekeys",false);if(typeof(nofilloption)=="undefined"||nofilloption!=1){var I5=I0.createElement("menuitem");
I5.setAttribute("label",LP.lpgs("AutoFill"));I5.setAttribute("oncommand","LP.lpAutoFill('"+Jw+"');");I8.appendChild(I5);var I4=I0.createElement("menuitem");I4.setAttribute("label",LP.lpgs("Copy Username"));I4.setAttribute("oncommand","LP.lpCopyUsername('"+Jw+"');");I8.appendChild(I4);var I3=I0.createElement("menuitem");
I3.setAttribute("label",LP.lpgs("Copy Password"));I3.setAttribute("oncommand","LP.lpCopyPassword('"+Jw+"');");I8.appendChild(I3);var I6=I0.createElement("menuitem");I6.setAttribute("label",LP.lpgs("Edit"));I6.setAttribute("oncommand","LP.lpOpenEditWindow('"+Jw+"');");I8.appendChild(I6);var Jr=I0.createElement("menuitem");
Jr.setAttribute("label",LP.lpgs("Go to URL"));Jr.setAttribute("oncommand","LP.GotoURL('"+Jw+"');");I8.appendChild(Jr);var I2=I0.createElement("menuitem");I2.setAttribute("label",LP.lpgs("Delete"));I2.setAttribute("oncommand","LP.lpConfirmDeleteSite('"+Jw+"');");I8.appendChild(I2)}Je.appendChild(I8);Je.setAttribute("oncontextmenu","LP.lpcurrcontextmenusite = '"+Jw+"'; return true;");
Je.setAttribute("context","lpt_site-context-menu");Jk.appendChild(Je);var Jx=Ex(G9[Jw]);if(Jv==0&&!G9[Jw].isbookmark){if(!G9[Jw].genpw){var Jz=I0.getElementById("lpt_lpcopyusernamepopup");if(Jz){var Je=I0.createElement("menuitem");Je.setAttribute("class","menuitem-iconic");Je.setAttribute("src",CM(G9[Jw].fiid));
Je.setAttribute("label",Jx);Je.setAttribute("oncommand","LP.lpCopyUsername('"+Jw+"');");Jz.appendChild(Je)}}var Ji=I0.getElementById("lpt_lpcopypasswordpopup");if(Ji){var Je=I0.createElement("menuitem");Je.setAttribute("class","menuitem-iconic");Je.setAttribute("src",CM(G9[Jw].fiid));Je.setAttribute("label",Jx);
Je.setAttribute("oncommand","LP.lpCopyPassword('"+Jw+"');");Ji.appendChild(Je)}if(!G9[Jw].genpw){var Jc=I0.getElementById("lpt_lpautofillpopup");if(Jc){var Je=I0.createElement("menuitem");Je.setAttribute("class","menuitem-iconic");Je.setAttribute("src",CM(G9[Jw].fiid));Je.setAttribute("label",Jx);Je.setAttribute("oncommand","LP.lpAutoFill('"+Jw+"');");
Jc.appendChild(Je)}}}}}var Jz=I0.getElementById("lpt_lpcopyusernamepopup");if(Jz&&Jz.childNodes.length==0){var Je=I0.createElement("menuitem");Je.setAttribute("label",LP.lpgs("NoMatchingSites"));Je.setAttribute("disabled","true");Jz.appendChild(Je)}var Ji=I0.getElementById("lpt_lpcopypasswordpopup");
if(Ji&&Ji.childNodes.length==0){var Je=I0.createElement("menuitem");Je.setAttribute("label",LP.lpgs("NoMatchingSites"));Je.setAttribute("disabled","true");Ji.appendChild(Je)}var Jc=I0.getElementById("lpt_lpautofillpopup");if(Jc&&Jc.childNodes.length==0){var Je=I0.createElement("menuitem");Je.setAttribute("label",LP.lpgs("NoMatchingSites"));
Je.setAttribute("disabled","true");Jc.appendChild(Je)}var Jp=new Array();Jp[0]=I0.getElementById("lpt_lpupdate1");Jp[1]=I0.getElementById("lpt_lpupdate2");Jp[2]=I0.getElementById("lpt_lpupdate3");for(var Jf=0;Jf<Jp.length;Jf++){var Jd=Jp[Jf];if(Jd){if(Is){Jd.setAttribute("label",LP.lpgs("LastPass update available"));
Jd.setAttribute("class","menuitem-iconic");Jd.setAttribute("src","chrome://lastpass/skin/exclamation.png")}else{Jd.setAttribute("label",LP.lpgs("Check For Updates"))}}}};function Fl(){if(!EA){EA=true;try{var e=Components.classes["@lastpass.com/XPCOM/LastPass;1"];if(e){BA=e.createInstance().QueryInterface(Components.interfaces.iLastPass)
}}catch(t){}}return(BA!=null)}function BL(){return Fl()}function BD(t,e){if(IZ!=Hk){IZ=Hk;F=new Array()}if(typeof(F)=="undefined"){F=new Array()}if((e==null||e==Hk)&&F[t]!=null){return F[t]}else{var z=L(t,e);F[t]=z;return z}}function L(z,t,e){if(typeof(t)=="undefined"||t==null){if(typeof(Hk)!="string"||0==Hk.length||null==z||0==z.length){return""
}t=Hk}if(BL()){return BA.decrypt(A1(t),z)}else{return Dl.Decrypt({pass:t,data:z,b64:true,mode:"ecb",bits:256},e)}}function AI(t){try{return Et(t)}catch(z){HX("ERROR: lpatob: on string:"+t+" err:"+z+" ln: "+z.lineNumber,null)}return null}function GG(t){try{return Ah(t)}catch(z){HX("ERROR: lpbtoa : "+z+" ln: "+z.lineNumber,null)
}return null}function Ds(t,e){if(typeof(e)=="undefined"){if(typeof(Hk)!="string"||0==Hk.length||null==t||0==t.length){if(null!=t&&0!=t.length&&DH){HX("We're trying to encrypt a string, while logged in, but somehow we don't have the key, typeof:"+typeof(Hk),null);DS(false);return""}if(null==t||0==t.length){return t
}else{var z="Was going to return unenc string back. length: "+t.length+" typeof key: "+typeof(Hk)+" loggedin: "+DH+" called by: "+arguments.callee.caller.toString().substring(0,arguments.callee.caller.toString().indexOf("{"));HX(z,null);return""}}e=Hk}if(BL()){return BA.encrypt(A1(e),t)}else{return Dl.Encrypt({pass:e,data:t,b64:true,mode:"ecb",bits:256})
}}function D2(t,e){return BD(t,e)}function AS(t,e){return Ds(t,e)}function Ck(e){return GS(e)}function D3(e){return A1(e)}function Hb(e){e=e.replace(/\\/g,"\\\\");e=e.replace(/'/g,"\\'");e=e.replace(/"/g,'\\"');return e}this.lpes=function(e){return Hb(e)};this.lp_sort_case_insensitive=function(t,e){t=t.toLowerCase();
e=e.toLowerCase();return t<e?-1:1};this.lp_sort_case_insensitive_url=function(t,e){if(!e.url||!t.url){return -1}t=t.url.toLowerCase();e=e.url.toLowerCase();var I0=IR(t);var z=J(I0.host,t);var I1=IR(e);var I2=J(I1.host,e);if(z!=I2){return z<I2?-1:1}else{if(I0.host!=I1.host){return I0.host<I1.host?-1:1
}}return t<e?-1:1};this.lp_sort_case_insensitive_name=function(t,e){t=t.name.toLowerCase();e=e.name.toLowerCase();return t<e?-1:1};this.lp_sort_case_insensitive_group=function(t,e){t=t.group.toLowerCase();e=e.group.toLowerCase();return t<e?-1:1};this.lp_sort_case_insensitive_username=function(t,e){t=(t.logins.length>0?t.logins[0].unencryptedUsername.toLowerCase():"");
e=(e.logins.length>0?e.logins[0].unencryptedUsername.toLowerCase():"");return t<e?-1:1};this.lp_sort_case_insensitive_lasttouch=function(t,e){t=t.last_touch;e=e.last_touch;return t<e?-1:1};this.lp_sort_case_insensitive_note=function(t,e){t=(t.extra&&t.extra.length>0==true?1:0);e=(e.extra&&e.extra.length>0==true?1:0);
return t<e?-1:1};this.lp_sort_case_insensitive_pwprotect=function(t,e){t=(t.pwprotect==true?1:0);e=(e.pwprotect==true?1:0);return t<e?-1:1};this.lp_sort_case_insensitive_autofill=function(t,e){t=(parseInt(t.autologin)==1?1:0);e=(parseInt(e.autologin)==1?1:0);return t<e?-1:1};this.lpOpenImport=function(e){var I4=Components.interfaces.nsIFilePicker;
var I2=Components.classes["@mozilla.org/filepicker;1"].createInstance(I4);I2.init(LP.lpGetCurrentWindow(),LP.lpgs("Select a file to import"),I4.modeOpen);if(e=="Roboform"||"hppwsafe"==e){I2.appendFilters(I4.filterHTML)}else{if("passpack"==e||"lastpass"==e||"TurboPasswords"==e||"passkeep"==e||"csv"==e||"splashid"==e||"passwordsmax"==e){I2.appendFilter(LP.lpgs("CSVFiles"),"*.csv")
}else{if("1password"==e){I2.appendFilters(I4.filterAll)}else{if("msi"==e||"ewallet"==e||"pins"==e||"pwcoral"==e||"passworddragon"==e){I2.appendFilters(I4.filterText)}else{if("clipperz"==e){I2.appendFilter(LP.lpgs("JSON Files"),"*.json;*.txt")}else{I2.appendFilters(I4.filterXML)}}}}}var I0=I2.show();if(I0==I4.returnOK){GM=e;
var I5=Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream);I5.init(I2.file,-1,-1,false);var z=e=="Roboform"?"UTF-16":(e=="pwagent"?"windows-1252":"UTF-8");var I6=Components.interfaces.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER;
var I1=Components.classes["@mozilla.org/intl/converter-input-stream;1"].createInstance(Components.interfaces.nsIConverterInputStream);I1.init(I5,z,1024,I6);HN="";var I3={};while(I1.readString(4096,I3)!=0){HN+=I3.value}I1.close();I5.close();var t=LP.lp_base+"import.php?fromplugin=1";t+=LP.GetIdentityParam();
if(D4){t=LP.lp_base+"gettopost.php?posturl="+LP.en(t)}Au(t)}};this.lpOpenImportInstructions=function(e){LP.lpalert_ex(LP.lpgs(e+"Instructions"))};this.lp_test_xpcom=function(){try{var t=Components.classes["@lastpass.com/XPCOM/LastPass;1"];t=t.createInstance();t=t.QueryInterface(Components.interfaces.iLastPass);
LP.lpalert_ex(t.encrypt(A1(Hk),"hi")+" "+Ds("hi"));var z=t.encrypt(A1(Hk),"hi");LP.lpalert_ex(t.decrypt(A1(Hk),z))}catch(I0){LP.lpalert_ex(I0.toString())}};this.lpSetupIdleTimer=function(){try{var I2=Components.classes["@mozilla.org/widget/idleservice;1"];if(!I2){return}var I0=I2.getService(Components.interfaces.nsIIdleService);
if(!I0){return}var t=Components.classes["@mozilla.org/timer;1"];if(!t){return}if(X!=null){I0.removeIdleObserver(X,D7);X=null}if(De){D7=Gj*60;X={observe:function(I3,e,I4){if(DH){DS()}}};if(!BI(D7)){return}I0.addIdleObserver(X,D7);B8=Ab();Fp=t.createInstance(Components.interfaces.nsITimer);var I1={notify:LP.checkSleep};
Fp.initWithCallback(I1,10000,Components.interfaces.nsITimer.TYPE_REPEATING_SLACK)}}catch(z){}};this.checkSleep=function(){var e=Ab();if(Gj!=0&&Gj*60<e-B8){if(DH){DS()}}B8=e};this.setupPollTimer=function(){try{var I2=Components.classes["@mozilla.org/widget/idleservice;1"];if(!I2){return}var I0=I2.getService(Components.interfaces.nsIIdleService);
if(!I0){return}var t=Components.classes["@mozilla.org/timer;1"];if(!t){return}if(EB!=null){EB.cancel();EB=null}EB=t.createInstance(Components.interfaces.nsITimer);var I1={notify:LP.pollServer};EB.initWithCallback(I1,60000,Components.interfaces.nsITimer.TYPE_REPEATING_SLACK)}catch(z){}};this.pollServer=function(){if(DH&&Gp("active")==null){var t=Ab();
LP.lpprefsSetIntPref("lastpollcheck",t);if(LP.lpprefsHasUserValue("logOffWhenCloseBrowser")&&LP.lpprefsGetBoolPref("logOffWhenCloseBrowser")&&LP.lpprefsHasUserValue("logOffWhenCloseBrowserVal")&&LP.lpprefsGetIntPref("logOffWhenCloseBrowserVal")){LP.flush_prefs()}var I2=0;if(!LP.lpprefsHasUserValue("pollServer")||LP.lpprefsGetBoolPref("pollServer")){var I6=LP.lpprefsHasUserValue("pollServerVal")?LP.lpprefsGetIntPref("pollServerVal"):15;
I2=I6*60000}if(I2==0){return}var z=Components.classes["@mozilla.org/widget/idleservice;1"];if(!z){HX("idleservice component does not exist!",null);return}var I1=z.getService(Components.interfaces.nsIIdleService);if(!I1){HX("idleservice does not exist!",null);return}var I0=I1.idleTime;var I3=(t-Fa)*1000;
var I4=false;if(I0<I2){if(I3>=I2){I4=true}}else{var I7=HF?I2*12:I2*60;if(I3>=I7){I4=true}}if(I4){var e=LP.lp_base+"poll_server.php";var I5="";if((!D4||EV==""||Ae=="")&&Eu!=""&&Gx!=""){e=e.replace(/^https:\/\//,"http://");I5="sidhash="+LP.en(CB(Gx))}LP.lpMakeRequest(e,I5,HS);Fa=Ab()}}};function HS(z){if(4==z.readyState){if(z.status==200&&z.responseXML!=null&&z.responseXML.documentElement!=null){var I1=z.responseXML.documentElement;
var e=I1.getElementsByTagName("ok");if(e.length>0){HF=(e[0].getAttribute("logoff_other_ses")=="1"?true:false);var t=e[0].getAttribute("accts_version");if(t>BP){LP.lpGetAccounts()}}}else{var I0="Problem in poll_server_response. status="+z.status;HX(I0,null)}}}function BI(e){var t="0123456789";for(i=0;
i<e.length;i++){if(t.indexOf(e.charAt(i))==-1){return false}}return true}function Ex(e){if(!e){return""}var t=e.name;var z=y(e,0);if(z!=""){t+=" ("+z+")"}return t}function y(t,I1){if(!t||!t.logins||t.logins.length==0){return""}if(t.save_all){for(var I0=0;I0<t.logins.length;I0++){var e=t.logins[I0];for(var z=0;
z<e.otherfields.length;z++){var I2=e.otherfields[z];if(I1==0&&I2.type=="text"&&I2.value!=""){return BD(I2.value)}else{if(I1==1&&I2.type=="password"&&I2.value!=""){return BD(I2.value)}}}}}else{if(I1==0){return t.logins[0].unencryptedUsername}else{if(I1==1){return BD(t.logins[0].password)}}}return""}function DK(I4,Jd){var I8=0;
var I2=Components.classes["@mozilla.org/passwordmanager;1"];var z;var I6;if(!I2){z=Components.classes["@mozilla.org/login-manager;1"].getService(Components.interfaces.nsILoginManager);I6=new Components.Constructor("@mozilla.org/login-manager/loginInfo;1",Components.interfaces.nsILoginInfo,"init")}else{I2=I2.getService(Components.interfaces.nsIPasswordManager)
}for(var I3 in G9){if(G9[I3].url=="http://group"){continue}var Jc=G9[I3];if(Jc.sharedfromaid!=null&&Jc.sharedfromaid!=""&&Jc.sharedfromaid!="0"){continue}var Jb=null;if(Jc.logins.length>0){Jb=Jc.logins[0]}if(!Jc.url.length){continue}if(!Jd){if(!I4||!Jc.url.match(/^chrome:/)){continue}}var I1=y(Jc,0);
var Je=y(Jc,1);var I7=null;var t=Jc.url;var I0=Jb.url;if(Jc.url.match(/^chrome:/)){Jb.uname="";Jb.pname=""}var Ja=Jc.url.match(/^(.*) \(([^\)]+)\)/);if(Ja){I7=Ja[2];t=Ja[1];I0=null}if(""==Je){continue}var I5=t.match(/^(https?:\/\/[^\/]+)\//);if(I5){t=I5[1]}if(I0){var I5=I0.match(/^(https?:\/\/[^\/]+)\//);
if(I5){I0=I5[1]}}try{if(I2){I2.addUser(t,I1,Je)}else{z.addLogin(new I6(t,I0,I7,I1,Je,Jb.uname,Jb.pname))}I8++}catch(I9){}}LP.lpalert_ex(LP.lpgs("LastPass accounts exported to Firefox")+": "+I8)}this.lpOpenExport=function(I4){if(!LP.securityPrompt()){return}if("firefox"==I4){if(LP.lpConfirmYesNo(LP.lpgs("ExportChrome"))){if(LP.lpConfirmYesNo(LP.lpgs("ExportAll"))){DK(true,true)
}else{DK(true,false)}}return}if(I4!="csv"&&I4!="xml"){LP.lpalert_ex("Format not supported");return}var I1=(I4=="xml");var I7=Components.interfaces.nsIFilePicker;var I6=Components.classes["@mozilla.org/filepicker;1"].createInstance(I7);I6.init(LP.lpGetCurrentWindow(),LP.lpgs("Select a file to export to"),I7.modeSave);
if(!I1){I6.appendFilter(LP.lpgs("CSVFiles"),"*.csv");I6.defaultExtension="csv"}else{I6.appendFilters(I7.filterXML);I6.defaultExtension="xml"}var Jb=I6.show();if(Jb==I7.returnOK||Jb==I7.returnReplace){if(!I1){var e=Components.classes["@mozilla.org/network/file-output-stream;1"].createInstance(Components.interfaces.nsIFileOutputStream);
var I2="UTF-8";var I9=Components.interfaces.nsIConverterOutputStream.DEFAULT_REPLACEMENT_CHARACTER;e.init(I6.file,-1,-1,false);var I3=Components.classes["@mozilla.org/intl/converter-output-stream;1"].createInstance(Components.interfaces.nsIConverterOutputStream);I3.init(e,I2,0,I9);I3.writeString("url,username,password,extra,name,grouping,fav\n");
var z=new Array();for(var Jd in G9){if(G9[Jd].url=="http://group"){continue}z[Jd]=G9[Jd]}for(var Jd in CK){z[Jd]=CK[Jd]}var Je=LP.get_null_group();for(var Jd in z){var I5=G9[Jd];if(!I5){I5=CK[Jd]}if(I5.sharedfromaid!=null&&I5.sharedfromaid!=""&&I5.sharedfromaid!="0"){continue}var I8=null;if(I5.logins.length>0){I8=I5.logins[0]
}var I0=new Array();I0[0]=I5.url;I0[1]=y(I5,0);I0[2]=y(I5,1);I0[3]=BD(I5.extra);I0[4]=I5.name;I0[5]=I5.group!=Je?I5.group:"";I0[6]=I5.fav;var Ja="";var Jg="";for(var Jc=0;Jc<I0.length;Jc++){var Jf=I0[Jc];if(Jf.match(/,|\r|\n|"/)){Jf='"'+Jf.replace(/"/g,'""')+'"'}Ja+=Jg+Jf;Jg=","}Ja+="\n";I3.writeString(Ja)
}I3.close();e.close()}else{var t=HT();if(t){Bx(t,I6.file,"lpOpenExport")}}}};function Eb(){return LP.lpImportFirefoxPasswords(true)}var Cp;var IE;var BR;this.lpShowFirefoxPasswords=function(I0,e,t,I1){if(!DH){LP.lpalert_ex(LP.lpgs("MustBeLoggedIn"));return false}else{if(!t&&!LP.lpImportFirefoxPasswords(true)){LP.lpalert_ex(LP.lpgs("FFImportNone"));
return false}else{if(typeof(e)=="undefined"){e=LP.lpGetCurrentWindow()}Cp=t;IE=false;BR=false;var z=e.openDialog(GY+"content/selectpasswords.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal",t,I1);return true}}};this.lpImportFirefoxPasswords=function(t){var I0=new Array();var I6;var I2=Components.classes["@mozilla.org/passwordmanager;1"];
if(I2){pm=I2.getService(Components.interfaces.nsIPasswordManager);var I5=pm.enumerator;while(I5.hasMoreElements()){try{if(Components.interfaces.nsIPasswordInternal){I6=I5.getNext().QueryInterface(Components.interfaces.nsIPasswordInternal)}else{I6=I5.getNext().QueryInterface(Components.interfaces.nsIPassword)
}var I4=new Ct();I4.url=I6.host;I4.username=I6.user;I4.password=I6.password;I4.usernamefield=I6.userFieldName;I4.passwordfield=I6.passwordFieldName;I4.login=I6;if(I4.url==""||I4.username==""||I4.password==""){continue}if(I4.url.match(/^chrome:/)){continue}if(t){return true}I0[I0.length]=I4}catch(I5){}}}else{var z=Components.classes["@mozilla.org/login-manager;1"].getService(Components.interfaces.nsILoginManager);
var I1=z.getAllLogins({});for(var I3=0;I3<I1.length;I3++){I6=I1[I3];var I4=new Ct();I4.url=I6.hostname;if(I6.httpRealm!=null){I4.url+=" ("+I6.httpRealm+")"}I4.username=I6.username;I4.password=I6.password;I4.usernamefield=I6.usernameField;I4.passwordfield=I6.passwordField;I4.login=I6;if(I4.url==""||I4.username==""||I4.password==""){continue
}if(I4.url.match(/^chrome:/)){continue}if(t){return true}I0[I0.length]=I4}}if(t){return false}else{return I0}};this.lpSendFirefoxPasswordsToServer=function(I2){var I4=new Array();var I0="cmd=uploadaccounts&username="+LP.en(EV);for(var z=0;z<I2.length;z++){var I3=I2[z];I0+="&url"+z+"="+LP.en(D3(I3.url));
I0+="&username"+z+"="+LP.en(Ds(I3.username));I0+="&password"+z+"="+LP.en(Ds(I3.password));I0+="&type"+z+"=ff";I0+="&usernamefield"+z+"="+LP.en(I3.usernamefield);I0+="&passwordfield"+z+"="+LP.en("*"+I3.passwordfield);var I1=AN(I3.url);for(var t=1;t<=1000;t++){var e=I1;if(t>1){e+=" ("+t+")"}if(!DU(e,I4)){I4[I4.length]=e;
break}}I0+="&name"+z+"="+LP.en(AS(e))}I0+=LP.GetIdentityParam();FQ=I2;LP.lpMakeRequest(LP.lp_base+"lastpass/api.php",I0,HW);IE=true};function HW(e){if(!e){return}if(e.readyState==4){if(e.status==200){if(e.responseText.indexOf("OK")>0){LP.lpGetAccounts();Ir();BR=true;if(!Cp){if(LP.lpConfirmYesNo(LP.lpgs("FFImportSuccessful"))){HY(FQ)
}}}else{LP.lpalert_ex(LP.lpgs("FFImportFailed"))}}if(Cp){LP.welcome_accept_click(AP,An)}}}function HY(z){var I0=Components.classes["@mozilla.org/passwordmanager;1"];if(I0){pm=I0.getService(Components.interfaces.nsIPasswordManager);for(var t=0;t<z.length;t++){pm.removeUser(z[t].login.host,z[t].login.user)
}}else{var e=Components.classes["@mozilla.org/login-manager;1"].getService(Components.interfaces.nsILoginManager);for(var t=0;t<z.length;t++){e.removeLogin(z[t].login)}}}this.lp_fix_context_menu=function(I2,I1){var I3=I2.getElementById(I1);var I0=G9[LP.lpcurrcontextmenusite];var z=false;if(I0==null){I0=CK[LP.lpcurrcontextmenusite];
z=true}var e=I0.genpw;var t=I0.isbookmark;I3.childNodes.item(0).style.display="";I3.childNodes.item(1).style.display="";I3.childNodes.item(2).style.display=e||t||z?"none":"";I3.childNodes.item(3).style.display=t||z?"none":""};this.lpConfirmDeleteSite=function(I1,t){var I0=G9[I1];var e=GX;if(I0==null){I0=CK[I1];
e=FS||CK[I1].pwprotect}else{e=GX||G9[I1].pwprotect}if(e){if(!LP.securityPrompt()){return}}if(LP.lpConfirmYesNo(LP.lpgs("Are you sure you would like to delete this "+(I0.isbookmark?"bookmark":(I0.genpw?"generated password":(I0.sn?"secure note":"site")))+"?")+" ("+I0.name+")",t)){F3(I1);Cw=true;LP.lpGetCurrentWindow().setTimeout("LP.lpRebuildToolsMenu_all();",0);
LP.lpDisplayAccounts_all();LP.lpRecheckTabs();var z="ajax=1&extjs=1&delete=1&aid="+LP.en(I1);z+=LP.GetIdentityParam();LP.lpMakeRequest(LP.lp_base+"show.php",z,Ei);return true}return false};function F3(I4){var I2=G9[I4];var I1=false;if(I2==null){I2=CK[I4];I1=true}var z=I2.tld;if(typeof(Fv[z])!="undefined"&&typeof(Fv[z][I4])!="undefined"){delete Fv[z][I4]
}if(I2.genpw){delete FA[I4]}if(typeof(Bs[z])!="undefined"){var e=Bs[z];if(typeof(Bs[e])!="undefined"){for(var t=0;t<Bs[e][t];t++){var I3=Bs[e][t];if(typeof(Fv[I3])!="undefined"&&typeof(Fv[I3][I4])!="undefined"){delete Fv[I3][I4]}}}}if(I1){delete CK[I4]}else{delete G9[I4]}EU--;LP.deleteAidIdentity(I4);
for(var I0=0;I0<Dk.length;I0++){if(Dk[I0].id==I4){Dk.splice(I0,1);break}}}function Ei(I1){if(4==I1.readyState){if(I1.status==200&&I1.responseXML!=null&&I1.responseXML.documentElement!=null){var z=I1.responseXML.documentElement;var I5=z.getElementsByTagName("result");if(I5.length>0&&I5[0].getAttribute("action")=="delete"){var I2=parseInt(I5[0].getAttribute("localupdate"));
var I0=parseInt(I5[0].getAttribute("accts_version"));if(I2&&I0==BP+1){var t=I5[0].getAttribute("aid");BP=I0;H7=I0;var I3=true;var I4=HT();if(I4==null){I3=false}if(I3&&!B6(I4,t,true)){I3=false}if(I3&&!E1(I4,I0)){I3=false}if(I3&&!Bx(I4,null,"lpDeleteResponse")){I3=false}if(I3){Q()}else{LP.lpGetAccounts()
}}else{LP.lpGetAccounts()}Ir()}else{var e="Problem in lpDeleteResponse. status="+I1.status;HX(e,null);j("ErrorDeleteAcctMsg")}}else{var e="Problem in lpDeleteResponse. status="+I1.status;HX(e,null);j("ErrorDeleteAcctMsg")}}}function DA(I7,I4){try{var z=3;var I1=true;Iz=I4;var t=I7.getElementById("nav-bar");
if(t){var I0=I7.getElementById("lpt_lastpass-compact-btn");if(I0&&I0.parentNode==t&&!I4){I0.style.display="none"}else{if(I0&&I0.parentNode==t&&I4){I0.style.display=""}else{if((!I0||I0.parentNode.id=="BrowserToolbarPalette")&&I4){if(typeof(t.insertItem)!="undefined"){t.insertItem("lpt_lastpass-compact-btn",null,null,false);
var I5=t.currentSet;if(typeof(I5)=="string"&&I5!=""&&I5!="lpt_lastpass-compact-btn"&&I5.indexOf("lpt_lastpass-compact-btn")!=-1){t.setAttribute("currentset",I5);I7.persist("nav-bar","currentset")}else{I1=false}}}}}}CY(I7);var I2=I7.getElementById("lpt_lastpass-toolbar");if(I2){I2.hidden=I4}var I6=I7.getElementById("lpt_lp-statusbarpanel");
if(I6){I6.hidden=T||I4}if(DH){LP.lp_handle_buttons("in",I7);LP.lpDisplayAccounts_win(I7)}FC(I7);Bi(I7);if(!LP.lpprefsHasUserValue("toolbarinitdone",false)||LP.lpprefsGetBoolPref("toolbarinitdone",false)!=I1||!LP.lpprefsHasUserValue("toolbarinitversion",false)||LP.lpprefsGetIntPref("toolbarinitversion",false)!=z){LP.lpprefsSetBoolPref("toolbarinitdone",I1,false);
if(I1){LP.lpprefsSetIntPref("toolbarinitversion",z,false)}LP.flush_prefs()}}catch(I3){HX("lpChangeToolbarMode_win: "+I3+" ln: "+I3.lineNumber)}}this.retranslate_toolbars=function(){GL=(LP.lpprefsHasUserValue("language",false)?LP.lpprefsGetCharPref("language",false):null);if(GL==""){GL=null}LP.lpUpdateAllToolbars(FP)
};this.lpUpdateAllToolbars=function(I0){var e=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);var z=e.getEnumerator("");while(z.hasMoreElements()){var t=z.getNext();if(typeof(DA)=="function"){DA(t.document,I0)}}LP.ShowPremiumMenuItem()
};function GK(){var e=FP;if(e!=Iz){LP.lpUpdateAllToolbars(e)}}this.lpshowHelpDlg=function(t,e){if(!LP.lphelpstats){return}if(LP.lphelpstats.currentlyopen){LP.lphelpstats.wino.close()}if(t!="all"&&t!="formfill"&&t!="loginprob"){return}LP.lphelpstats.currentlyopen=true;if(typeof(e)=="undefined"){e=LP.lpGetCurrentWindow()
}LP.lphelpstats.wino=e.openDialog(GY+"content/help.xul","_blank","chrome,titlebar,toolbar,centerscreen,width=800,height=600,resizable=yes",t)};this.lpOpenPrint=function(e){LP.lpGetCurrentWindow().openDialog(GY+"content/print.xul","_blank","chrome,titlebar,toolbar,centerscreen,width=800,height=600,resizable=yes",e)
};this.lp_remove_cookie=function(I0,t){var I1=Components.classes["@mozilla.org/cookiemanager;1"].getService(Components.interfaces.nsICookieManager);var e=I1.enumerator;while(e.hasMoreElements()){var z=e.getNext();if(z instanceof Components.interfaces.nsICookie&&I0==z.host&&t==z.name){I1.remove(z.host,z.name,z.path,false)
}}};function Ba(){var I0=Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);var t;if(LP){t=I0.newURI(LP.lp_base,null,null)}else{t=I0.newURI("https://lastpass.com",null,null)}var e=Components.classes["@mozilla.org/cookieService;1"].getService(Components.interfaces.nsICookieService);
var I2=e.getCookieString(t,null);if(I2){var z=I2.match(/PHPSESSID=([^;]+)/);if(z){var I1=decodeURIComponent(z[1]);return I1}}else{}return""}function FW(z,e){if(e&&!LP.lpis_win){return z}if(z.length==0){return z}if(Fl()&&typeof(BA.protect_data)=="function"){var t=BA.protect_data(z);if(t!=null&&(t!=""||z=="")){return t
}}return z}function IJ(t,e){if(e&&!LP.lpis_win){return t}if(t.match(/=[^=]/)){return t}if(t.length==0){return t}if(Fl()&&typeof(BA.unprotect_data)=="function"){var z=BA.unprotect_data(t);if(z!=null&&(z!=""||t=="")){return z}}return t}this.lpConfirmYesNo=function(t,e){return HP(t,e)};function HP(I0,z){var e=Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);
if(!z){z=LP.lpGetCurrentWindow()}var t={value:false};return e.confirmEx(z,LP.lpgs("LastPass FF Toolbar"),I0,e.STD_YES_NO_BUTTONS,null,null,null,null,t)==0}this.lpalert_ex=function(z,t){var e=Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);
if(!t){t=LP.lpGetCurrentWindow()}e.alert(t,"LastPass",z)};this.alert=function(t,e){LP.lpalert_ex(t,e)};function V(t,e){LP.lpalert_ex(t,e)}function Cb(e){return("0"+e.toString(16)).slice(-2)}function Ge(z){if(""==z||null==z){return""}var I0=Components.classes["@mozilla.org/intl/scriptableunicodeconverter"].createInstance(Components.interfaces.nsIScriptableUnicodeConverter);
I0.charset="UTF-8";var t=Components.classes["@mozilla.org/security/hash;1"].createInstance(Components.interfaces.nsICryptoHash);var e={};var I1=I0.convertToByteArray(z,e);t.init(t.MD5);t.update(I1,I1.length);return t.finish(true)}this.lp_sha256=function(e){return CB(e)};function CB(I0){if(""==I0||null==I0){return""
}var I1=Components.classes["@mozilla.org/intl/scriptableunicodeconverter"].createInstance(Components.interfaces.nsIScriptableUnicodeConverter);I1.charset="UTF-8";var z=Components.classes["@mozilla.org/security/hash;1"].createInstance(Components.interfaces.nsICryptoHash);var e={};var I2=I1.convertToByteArray(I0,e);
z.init(z.SHA256);z.update(I2,I2.length);var I3=z.finish(false);var t="";for(i in I3){t+=Cb(I3.charCodeAt(i))}return t}function A1(e){if(""==e||null==e){return""}return Dl.bin2hex(e)}function GS(e){if(""==e||null==e){return""}return Dl.hex2bin(e)}this.lp_compact_button_hit=function(e){if(e.getElementById("lpt_lastpass-compact-btn")&&e.getElementById("lpt_lastpass-compact-btn").className=="lastpass-compact-default"){LP.retranslate_toolbars();
LP.lp_handle_buttons("refresh",e)}if(!DH){LP.lpOpenLogin();return false}else{if(e.getElementById("lpt_lastpass-compact-btn")&&e.getElementById("lpt_lastpass-compact-btn").className==""){LP.lp_handle_buttons_all("in")}return true}};this.status_button_hit=function(e){if(!DH){LP.lpOpenLogin();return false
}else{LP.lpSetHideShowText();return true}};function As(t,z,e){if(t.indexOf("https://my.")==0&&t.indexOf("."+LP.lp_basehost+"/")>0){return true}if(t.indexOf("https://"+LP.lp_basehost+"/")==0||t.indexOf(LP.lp_base)==0){return true}else{return false}}function Io(t,I0,e){if(typeof(LP.getBrowser().getNotificationBox)!="function"){return false
}var z=LP.getBrowser().getNotificationBox(t).currentNotification;return z&&typeof(z.choices)!="undefined"&&z.choices==I0&&(e||typeof(z.lpoldnotification)=="undefined")?true:false}function FB(){var e=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var z=e.getEnumerator("");while(z.hasMoreElements()){var t=z.getNext();FC(t.document)}}this.lp_fix_formfills_menus_helper=function(t,e){FC(t,e)};function FC(Ja,I0){for(var I3=1;I3<=6;I3++){var t="lpt_lpfillformsmenu"+I3;var z=Ja.getElementById(t);if(z){if(!DH){z.disabled=true;z.setAttribute("disabled","true")
}else{z.disabled=false;z.setAttribute("disabled","false")}t="lpt_lpfillformspopup"+I3;var e=Ja.getElementById(t);if(e){for(var I2=e.childNodes.length-1;I2>=0;I2--){e.removeChild(e.childNodes.item(I2))}var I9=false;var I1=false;for(var I2=0;I2<d.length;I2++){if(d[I2].profiletype==0){I9=true}if(d[I2].ccnum!=""){I1=true
}var Jb=Ja.createElement("menu");Jb.setAttribute("label",d[I2].profilename);Jb.setAttribute("class","");var I8=Ja.createElement("menupopup");I8.setAttribute("ignorekeys",false);if(typeof(I0)=="undefined"||I0!=1){var I7=Ja.createElement("menuitem");I7.setAttribute("label",LP.lpgs("FillForm"));I7.setAttribute("oncommand","LP.lp_fillFormsHelper("+d[I2].ffid+");");
I8.appendChild(I7)}var I6=Ja.createElement("menuitem");I6.setAttribute("label",LP.lpgs("Edit"));I6.setAttribute("oncommand","LP.lpEditFormFillProfile("+d[I2].ffid+");");I8.appendChild(I6);var I5=Ja.createElement("menuitem");I5.setAttribute("label",LP.lpgs("Copy"));I5.setAttribute("oncommand","LP.lpCopyFormFillProfile("+d[I2].ffid+");");
I8.appendChild(I5);var I4=Ja.createElement("menuitem");I4.setAttribute("label",LP.lpgs("Delete"));I4.setAttribute("oncommand","LP.lpDeleteFormFillProfile("+d[I2].ffid+");");I8.appendChild(I4);Jb.appendChild(I8);e.appendChild(Jb)}if(d.length>0){var Jb=Ja.createElement("menuseparator");e.appendChild(Jb)
}var I8=Ja.createElement("menuitem");I8.setAttribute("label",LP.lpgs("AddProfile"));I8.setAttribute("oncommand","LP.lpEditFormFillProfile(0);");I8.setAttribute("class","");e.appendChild(I8);var I6=Ja.createElement("menuitem");I6.setAttribute("label",LP.lpgs("Add Credit Card"));I6.setAttribute("oncommand","LP.lpEditFormFillProfile(0, false, 1);");
I6.setAttribute("class","");e.appendChild(I6);if(typeof(I0)=="undefined"||I0!=1){var I7=Ja.createElement("menuitem");I7.setAttribute("label",LP.lpgs("Clear Forms"));I7.setAttribute("oncommand","LP.lpClearFormsHelper();");e.appendChild(I7);if(I9&&I1){var I5=Ja.createElement("menuitem");I5.setAttribute("label",LP.lpgs("Choose Profile and Credit Card"));
I5.setAttribute("oncommand","LP.choose_profile_and_credit_card();");e.appendChild(I5)}}}}}}function Hr(){var e=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);var z=e.getEnumerator("");while(z.hasMoreElements()){var t=z.getNext();Bi(t.document)
}}function Bi(I5){for(var I2=1;I2<=4;I2++){var t="lpt_lpidentitiesmenu"+I2;var z=I5.getElementById(t);if(z){if(He){LP.sr(I5,t,"hidden",He);continue}if(!DH){z.disabled=true;z.setAttribute("disabled","true");z.setAttribute("label",LP.lpgs("Identities"))}else{z.disabled=false;z.setAttribute("disabled","false");
z.setAttribute("label",LP.lpgs("Identities")+" ("+LP.GetIdentity(true)+")")}t="lpt_lpidentitiespopup"+I2;var e=I5.getElementById(t);if(e){for(var I1=e.childNodes.length-1;I1>=0;I1--){e.removeChild(e.childNodes.item(I1))}var I4="";var I0=false;if(LP.lpprefsHasUserValue("identity")){I4=LP.lpprefsGetCharPref("identity")
}for(var I1=0;I1<GA.length;I1++){if(I4==GA[I1].iid){I0=true}}var I7=I5.createElement("menuitem");I7.setAttribute("label",LP.lpgs("All"));I7.setAttribute("oncommand",'LP.lpIdentityHelper("");');if(!I0){I7.setAttribute("checked","true");I7.setAttribute("type","checkbox");I7.setAttribute("autocheck","false")
}e.appendChild(I7);for(var I1=0;I1<GA.length;I1++){var I6=I5.createElement("menuitem");I6.setAttribute("label",GA[I1].iname);I6.setAttribute("oncommand","LP.lpIdentityHelper("+GA[I1].iid+");");if(I4==GA[I1].iid){I6.setAttribute("checked","true");I6.setAttribute("type","checkbox");I6.setAttribute("autocheck","false")
}e.appendChild(I6)}var I6=I5.createElement("menuseparator");e.appendChild(I6);var I3=I5.createElement("menuitem");I3.setAttribute("label",LP.lpgs("AddIdentity"));I3.setAttribute("oncommand",'LP.lpIdentityHelper("add");');e.appendChild(I3)}}}}this.lpDeleteFormFillProfile=function(e,t){if(LP.lpConfirmYesNo(LP.lpgs("Are you sure you would like to delete this form fill profile?"),t)){for(var I0=0;
I0<d.length;I0++){if(d[I0].ffid==e){d.splice(I0,1);break}}LP.deleteFfidIdentity(e);Cw=true;FB();LP.lpRecheckTabs();var z="deleteext=1&ffid="+LP.en(e);z+=LP.GetIdentityParam();LP.lpMakeRequest(LP.lp_base+"formfill.php",z,AW);return true}return false};this.lpEditFormFillProfile=function(I4,e,I0,I2,I6,I3){var t=null;
for(var I1=0;I1<d.length;I1++){if(d[I1].ffid==I4){t=d[I1]}}var z=FR||(t!=null&&t.pwprotect);if(z){if(!LP.securityPrompt()){return}}if(typeof(I3)=="undefined"){I3=LP.lpGetCurrentWindow()}var I5=I3.openDialog(GY+"content/formfill.xul","_blank","resizable=yes,chrome,titlebar,toolbar,centerscreen"+(I2?",modal":""),I4,e,I0);
if(!I2){o.push(I5)}};this.lpCopyFormFillProfile=function(e){LP.lpEditFormFillProfile(e,true)};this.lpNextAutoFill=function(I0){if(!DH){this.lpOpenLogin();return}var t=LP.getBrowser().selectedTab.linkedBrowser;var z=t.contentDocument;if(z.aid!=null&&typeof(z.aid)=="object"&&typeof(z.aidindex)=="number"){(I0?z.aidindex++:z.aidindex--);
if(z.aidindex<0){z.aidindex=z.aid.length-1}if(z.aidindex>=z.aid.length){z.aidindex=0}LP.lp_noteAcceptHelper(z.aid[z.aidindex].id,null,true)}else{if(typeof(z.ffidindex)=="number"){(I0?z.ffidindex++:z.ffidindex--);if(z.ffidindex<0){z.ffidindex=d.length-1}if(z.ffidindex>=d.length){z.ffidindex=0}var e=FR||(d[z.ffidindex].pwprotect);
if(e&&!t.contentDocument.prompted){if(!LP.securityPrompt()){return}t.contentDocument.prompted=true}LP.lp_fillFormsHelper(d[z.ffidindex].ffid,true)}}};function AA(e,I0,z){var t=z.getElementById(I0);if(t){e.removeChild(t)}}function G5(t,I4,I1,e,I2,I3){if(!e){return}var I0=I3.createElement("key");I0.setAttribute("command",I1);
I0.setAttribute("id",I4);I0.setAttribute("modifiers",I2);if(e>=48&&e<=122){I0.setAttribute("key",String.fromCharCode(e))}else{if(typeof(LP.mostRecent().KeyEvent)!="undefined"){for(var z in LP.mostRecent().KeyEvent){if(LP.mostRecent().KeyEvent[z]==e){I0.setAttribute("keycode",z.replace("DOM_",""))}}}else{}}t.appendChild(I0)
}this.lpSetupHotKeys_all=function(){var e=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);var z=e.getEnumerator("");while(z.hasMoreElements()){var t=z.getNext();if(t.contentDocument){LP.lpSetupHotKeys(t.contentDocument)}}};this.lpSetupHotKeys=function(I0){if(LP.DISABLE_HKS){return
}A0();var t=I0.getElementById("mainKeyset");if(!t){return}AA(t,"lpt_key_lpGeneratePW",I0);AA(t,"lpt_key_lprecheck",I0);AA(t,"lpt_key_lpSearch",I0);AA(t,"lpt_key_lpNextAutoFill",I0);AA(t,"lpt_key_lpPrevAutoFill",I0);AA(t,"lpt_key_lpSubmit",I0);AA(t,"lpt_key_lpHome",I0);AA(t,"lpt_key_lpSaveAll",I0);AA(t,"lpt_key_lpLogoff",I0);
if(LP.lpprefsHasUserValue("generateHkKeyCode",false)){G5(t,"lpt_key_lpGeneratePW","lpt_cmd_lpGeneratePW",LP.lpprefsGetIntPref("generateHkKeyCode",false),LP.lpprefsGetCharPref("generateHkMods",false),I0)}if(LP.lpprefsHasUserValue("recheckHkKeyCode",false)){G5(t,"lpt_key_lprecheck","lpt_cmd_lpRecheckTabs",LP.lpprefsGetIntPref("recheckHkKeyCode",false),LP.lpprefsGetCharPref("recheckHkMods",false),I0)
}if(LP.lpprefsHasUserValue("searchHkKeyCode",false)){var z=LP.lpprefsGetCharPref("searchHkMods",false);var e=LP.lpprefsGetIntPref("searchHkKeyCode",false);G5(t,"lpt_key_lpSearch","lpt_cmd_lpSearch",e,z,I0)}if(LP.lpprefsHasUserValue("nextHkKeyCode",false)){G5(t,"lpt_key_lpNextAutoFill","lpt_cmd_lpNextAutoFill",LP.lpprefsGetIntPref("nextHkKeyCode",false),LP.lpprefsGetCharPref("nextHkMods",false),I0)
}if(LP.lpprefsHasUserValue("prevHkKeyCode",false)){G5(t,"lpt_key_lpPrevAutoFill","lpt_cmd_lpPrevAutoFill",LP.lpprefsGetIntPref("prevHkKeyCode",false),LP.lpprefsGetCharPref("prevHkMods",false),I0)}if(LP.lpprefsHasUserValue("submitHkKeyCode")){G5(t,"lpt_key_lpSubmit","lpt_cmd_lpSubmit",LP.lpprefsGetIntPref("submitHkKeyCode",false),LP.lpprefsGetCharPref("submitHkMods",false),I0)
}if(LP.lpprefsHasUserValue("homeHkKeyCode")){G5(t,"lpt_key_lpHome","lpt_cmd_lpHome",LP.lpprefsGetIntPref("homeHkKeyCode",false),LP.lpprefsGetCharPref("homeHkMods",false),I0)}if(LP.lpprefsHasUserValue("saveallHkKeyCode")){G5(t,"lpt_key_lpSaveAll","lpt_cmd_lpSaveAll",LP.lpprefsGetIntPref("saveallHkKeyCode",false),LP.lpprefsGetCharPref("saveallHkMods",false),I0)
}if(LP.lpprefsHasUserValue("logoffHkKeyCode")){G5(t,"lpt_key_lpLogoff","lpt_cmd_lpLogoff",LP.lpprefsGetIntPref("logoffHkKeyCode",false),LP.lpprefsGetCharPref("logoffHkMods",false),I0)}};function A0(){var e=false;if(!LP.lpis_mac){if(!LP.lpprefsHasUserValue("generateHkKeyCode",false)){LP.lpprefsSetIntPref("generateHkKeyCode",71,false);
LP.lpprefsSetCharPref("generateHkMods","alt",false);LP.lpprefsSetIntPref("recheckHkKeyCode",73,false);LP.lpprefsSetCharPref("recheckHkMods","alt",false);if(LP.HIDE_SEARCH_HK){LP.lpprefsSetIntPref("searchHkKeyCode",0,false);LP.lpprefsSetCharPref("searchHkMods","",false)}else{LP.lpprefsSetIntPref("searchHkKeyCode",87,false);
LP.lpprefsSetCharPref("searchHkMods","alt",false)}LP.lpprefsSetIntPref("nextHkKeyCode",33,false);LP.lpprefsSetCharPref("nextHkMods","alt",false);LP.lpprefsSetIntPref("prevHkKeyCode",34,false);LP.lpprefsSetCharPref("prevHkMods","alt",false);if(LP.IsVaultHidden()||LP.HIDE_HOME_HK){LP.lpprefsSetIntPref("homeHkKeyCode",0,false);
LP.lpprefsSetCharPref("homeHkMods","",false)}else{LP.lpprefsSetIntPref("homeHkKeyCode",104,false);LP.lpprefsSetCharPref("homeHkMods","control alt",false)}e=true}}else{if(!LP.lpprefsHasUserValue("generateHkKeyCode",false)){LP.lpprefsSetIntPref("generateHkKeyCode",0,false);LP.lpprefsSetCharPref("generateHkMods","",false);
LP.lpprefsSetIntPref("recheckHkKeyCode",0,false);LP.lpprefsSetCharPref("recheckHkMods","",false);LP.lpprefsSetIntPref("searchHkKeyCode",0,false);LP.lpprefsSetCharPref("searchHkMods","",false);LP.lpprefsSetIntPref("nextHkKeyCode",33,false);LP.lpprefsSetCharPref("nextHkMods","meta",false);LP.lpprefsSetIntPref("prevHkKeyCode",34,false);
LP.lpprefsSetCharPref("prevHkMods","meta",false);LP.lpprefsSetIntPref("homeHkKeyCode",0,false);LP.lpprefsSetCharPref("homeHkMods","",false);e=true}}if(!LP.lpprefsHasUserValue("submitHkKeyCode",false)){LP.lpprefsSetIntPref("submitHkKeyCode",0,false);LP.lpprefsSetCharPref("submitHkMods","",false);e=true
}if(!LP.lpprefsHasUserValue("saveallHkKeyCode",false)){LP.lpprefsSetIntPref("saveallHkKeyCode",0,false);LP.lpprefsSetCharPref("saveallHkMods","",false);LP.lpprefsSetIntPref("logoffHkKeyCode",0,false);LP.lpprefsSetCharPref("logoffHkMods","",false);e=true}if(e){LP.flush_prefs()}}this.isadmin=function(){return BJ
};this.getUsername=function(){return EV};this.updateVaultSelectedIdentity=function(I1,t){var I0=LP.getIdentities();var I2=LP.GetIdentity(false);var z=0;for(var e=0;e<I0.length;++e){if(I2==I0[e]["value"]){z=parseInt(e);break}}if(I1.getElementById("identitylist").selectedIndex!=z){I1.getElementById("identitylist").selectedIndex=z;
if(t){Q()}}};this.getIdentities=function(){var t=[];t[t.length]={label:"All",value:""};for(var e=0;e<GA.length;++e){t[t.length]={label:GA[e].iname,value:GA[e].iid}}return t};this.getLoggedIn=function(){return DH};this.submitFieldsPane=function(I9,z){var I2=G9[z].urid;var t=new Array(G9[z].logins,G9[z].otherlogins);
for(var I6=0;I6<t.length;I6++){for(var I3=0;I3<t[I6].length;I3++){var e=false;var I8="";var Ja=t[I6][I3];I2=Ja.urid;var Jd=new Array(Ja.fields,Ja.otherfields);for(var I1=0;I1<Jd.length;I1++){for(var I0=0;I0<Jd[I1].length;I0++){var Jc=Jd[I1][I0];var Jb;if(I1==0){Jb=Jc.type+"_"+Jc.name+"_"+I2}else{Jb=Jc.formname+"_"+Jc.type+"_"+Jc.name+"_"+I2
}var I4=(I1==0?"_":"_"+Jc.formname+"_");if(Jc.type=="text"||Jc.type=="password"||Jc.type=="textarea"){var I7=I9.getElementById(Jb);if(!I7){continue}var I5=Ds(I7.value);I8+=(I4+Jc.name)+"="+LP.en(I5)+"&";if(I5!=Jc.value){e=true}}else{if(Jc.type=="checkbox"){var I7=I9.getElementById(Jb);if(!I7){continue
}if(I7.checked){I8+=(I4+Jc.name)+"="+LP.en(Jc.value)+"&"}if(I7.checked!=Jc.checked){e=true}}else{if(Jc.type=="select-one"){var I7=I9.getElementById(Jb);if(!I7){continue}if(I7.value!=Jc.value){I8+=(I4+Jc.name)+"="+LP.en(I7.value)+"&";e=true}}}}}if(e){LP.lpMakeRequest(LP.lp_base+"fields.php?aid="+LP.en(z)+"&update=1&urid="+LP.en(I2),I8,IO);
e=false}}}}};function IO(e){if(e.readyState==4){if(e.status==200&&e.responseXML!=null&&e.responseXML.documentElement!=null){LP.lpGetAccounts();Ir()}}}this.search_home_accept_click=function(z,t){var e=z.getElementById("tree").treeBoxObject.view;e.selection.select(1)};this.search_home_keydown=function(I4,I2,t,z){function I0(){I4.getElementById("tree").focus()
}var I3=t.keyCode;if(typeof(I4.getElementById("searchresults"))=="undefined"||typeof(I4.getElementById("searchresults").firstChild)=="undefined"){return}var e=I4.getElementById("searchresults");if(38==I3){I0();var I1=35;var I5=I4.createEvent("KeyEvents");I5.initKeyEvent("keypress",true,true,null,false,false,false,false,I1,0);
e.dispatchEvent(I5)}else{if(40==I3){I0()}else{if(34==I3||33==I3){I0();var I5=I4.createEvent("KeyEvents");I5.initKeyEvent("keypress",true,true,null,false,false,false,false,I3,0);e.dispatchEvent(I5);return false}else{if(13==I3&&z){LP.search_home_treeselect(I4,I2,t,1)}}}}};this.search_home_treeselect=function(I4,I2,t,I5){var I3=t.keyCode;
if(13==I3){if(new Date().getTime()-LP.last_dialog_close<250){return}var I9=I4.getElementById("tree");try{var I8=I9.currentIndex;if(-1!=I8){var I0=I9.view.getItemAtIndex(I8);if(typeof(I5)=="undefined"||!I5){if(I9.view.isContainer(I8)){LP.saveGroupState(I4,"search_home_treeselect")}}var z=I0.getAttribute("id");
if(!z){return}if(LP.is_secure_note(z)){LP.lpOpenEditWindow(z,0,0,I2)}else{LP.lpLaunchUrl(z,1,0)}if(typeof(I5)!="undefined"&&1==I5){I4.getElementById("LPSearch").cancelDialog()}}}catch(I1){}}else{if(46==I3&&(!t.ctrlKey||!t.altKey||t.shiftKey||t.metaKey)){var I9=I4.getElementById("tree");var I8=I9.currentIndex;
if(-1!=I8){var I0=I9.view.getItemAtIndex(I8);var I7=I0.getAttribute("isgroup");var I6=null;if(I4.selected_ids.length==0&&I7){var I6=I0.getAttribute("orig_group");if(I6==LP.lpgs("favorites")||I6==LP.lpgs("recently used")){return}}}LP.ConfirmMultipleDelete(I4,I2,I6)}}};this.ConfirmMultipleDelete=function(I4,I2,I5){var I1="";
var I0="";if(I4.selected_ids.length>1){I0="Are you sure you would like to delete the selected sites?"}else{I0="Are you sure you would like to delete this site?";I1=" (";var z=I4.selected_ids;for(var I3=0;I3<z.length;I3++){var t=z[I3];var e=G9[t];I1+=e.name+(I3<z.length-1?" ":"")}I1+=") "}if(I5){I0="Are you sure you would like to delete this group?";
I1=" ("+I5+") "}if(LP.lpConfirmYesNo(LP.lpgs(I0)+I1,I2)){LP.deleteSelectedSites(I4,I2,I5)}};this.search_home_keyup=function(I0,e,t){var z=t.keyCode;var I1=I0.getElementById("lpsearchstr").value;if(13==z&&I1!=""){LP.search_home_accept_click(I0,e)}else{LP.search_tree_accept_click(I0,e);if(I1==""){LP.restoreGroupState(I0,"search_home_keyup")
}}};var E5="";function GE(I3,t){var e=I3.getElementById("tree").treeBoxObject.getFirstVisibleRow();var I5=new Array();if(t!=E5){E5=t;e=0}else{var I0=I3.getElementById("tree").treeBoxObject.view;if(I0){for(var I2=0;I2<I0.rowCount;I2++){if(I0.isContainer(I2)&&!I0.isContainerOpen(I2)){var z=I3.getElementById("tree").columns.getColumnAt(0);
var I4=GR(I0.getCellText(I2,z));I5[I4]=1}}}}var I1=I3.getElementById("searchresults");while(I1.firstChild){I1.removeChild(I1.firstChild)}return[e,I5]}function Cv(I0,z){var t=new Array();for(var e in G9){var I2=G9[e];if(!z&&I2.url=="http://group"){continue}if(!I2.isbookmark){var I1=(I2.logins.length>0?I2.logins[0].unencryptedUsername:"");
if(I2.url.toLowerCase().indexOf(I0)!=-1||I2.name.toLowerCase().indexOf(I0)!=-1||I2.group.toLowerCase().indexOf(I0)!=-1||I1.toLowerCase().indexOf(I0)!=-1){t[t.length]=I2}}}for(var e in CK){var I2=CK[e];if(I2.name.toLowerCase().indexOf(I0)!=-1||I2.group.toLowerCase().indexOf(I0)!=-1){t[t.length]=I2}}for(var e in GQ){var I2=GQ[e];
if(I2.name.toLowerCase().indexOf(I0)!=-1||I2.group.toLowerCase().indexOf(I0)!=-1){t[t.length]=I2}}return t}this.autocomplete_search=function(z){var t=new Array();for(var e in G9){var I1=G9[e];if(I1.url=="http://group"){continue}var I0=(I1.logins.length>0?I1.logins[0].unencryptedUsername:"");if(I1.url.toLowerCase().indexOf(z)!=-1||I1.name.toLowerCase().indexOf(z)!=-1||I1.group.toLowerCase().indexOf(z)!=-1||I0.toLowerCase().indexOf(z)!=-1){t[t.length]={value:I1.url,comment:I1.name,image:CM(I1.fiid),style:"lastpass"}
}}return t};function Dq(I0,I2){var z=Cv(I2,true);var e=I0.getElementById("tree");var t=e.getAttribute("sortDirection");var I1=e.getAttribute("sortResource");if("tusername"==I1){z.sort(LP.lp_sort_case_insensitive_username)}else{if("tlasttouch"==I1){z.sort(LP.lp_sort_case_insensitive_lasttouch)}else{if("tnote"==I1){z.sort(LP.lp_sort_case_insensitive_note)
}else{if("tpwprotect"==I1){z.sort(LP.lp_sort_case_insensitive_pwprotect)}else{if("tautofill"==I1){z.sort(LP.lp_sort_case_insensitive_autofill)}else{if("turl"==I1){z.sort(LP.lp_sort_case_insensitive_url)}else{z.sort(LP.lp_sort_case_insensitive_name)}}}}}}if("descending"==t){z.reverse()}return z}function A5(I6,I9,Ja,I3,I7){if(typeof(I7)=="undefined"||""==I7){I7=I9
}var I2=I9.match(/^(.*)\\(.*)$/);if(I2){var Jc=I2[1];var I4;if(""==Jc){Jc=LP.get_null_group()}var Jb="_"+Jc;if(typeof(I3.c[Jb])=="undefined"){I4=A5(I6,Jc,Ja,I3);I3.c[Jb]=I4[0];I3.i[Jb]=I4[1]}I4=A5(I6,I2[2],Ja,I3,I9);var z=null;for(var I1=0;I1<I3.c[Jb].childNodes.length;I1++){var t=I3.c[Jb].childNodes[I1];
if(t.getAttribute("container")!="true"){z=t;break}else{if(I2[2].toLowerCase()<t.getAttribute("group").toLowerCase()){z=t;break}}}if(z){I3.c[Jb].insertBefore(I4[1],z)}else{I3.c[Jb].appendChild(I4[1])}return I4}var e=I6.createElement("treeitem");e.setAttribute("container","true");e.setAttribute("group",I9);
e.setAttribute("orig_group",I7);e.setAttribute("isgroup",true);var I5=I6.createElement("treerow");I5.setAttribute("allowevents","true");I5.setAttribute("crop","end");var I8=I6.createElement("treecell");I8.setAttribute("label",LP.fix_group_name(I9));I8.setAttribute("properties","group");I5.appendChild(I8);
e.appendChild(I5);var I0=I6.createElement("treechildren");e.appendChild(I0);if(typeof(Ja[I9])!="undefined"&&Ja[I9]){e.setAttribute("open","false");I8.setAttribute("src","chrome://lastpass/skin/folder-closed.gif")}else{e.setAttribute("open","true");I8.setAttribute("src","chrome://lastpass/skin/folder-open.gif")
}return[I0,e]}var EO;this.search_tree_accept_click=function(Jq,Jo){var Jr=Jq.getElementById("lpsearchstr").value.toLowerCase();Jr=Jr.replace(/^\s+$/g,"");var Je=GE(Jq,Jr);var I2=Je[0];var Jc=Je[1];var Jd=Jq.getElementById("tree");var Jf=Jd.getAttribute("sortDirection");var Jg=Dq(Jq,Jr);var I0=new Array();
for(var Jk=0;Jk<Jg.length;Jk++){I0[Jk]=Jg[Jk]}I0.sort(LP.lp_sort_case_insensitive_lasttouch);var Ji=new Array();if(Jr==""){for(var Jk=0;Ji.length<10&&Jk<I0.length;Jk++){if(I0[I0.length-Jk-1].url=="http://group"){continue}Ji[Ji.length]=I0[I0.length-Jk-1]}}EO=Object();EO.c=Object();EO.i=Object();var I4=Array();
var t=false;var Jn=false;for(var Jk=0;Jk<Jg.length;Jk++){for(var Jj=1;Jj<=3;Jj++){if(Jj==2&&parseInt(Jg[Jk].fav)!=1){continue}else{if(Jj==3&&Jk>=Ji.length){continue}}var I1=Jj==3?Ji[Jk]:Jg[Jk];var Jb=Jj==1?I1.group:(Jj==2?LP.lpgs("favorites"):LP.lpgs("recently used"));var Ja,I7;var I6="_"+Jb;if(typeof(EO.i[I6])=="undefined"){var Jp=A5(Jq,Jb,Jc,EO);
Ja=Jp[0];I7=Jp[1];EO.c[I6]=Ja;EO.i[I6]=I7;if(Jj==1){I4[I4.length]=Jb}else{if(Jj==2){t=true}else{Jn=true}}}else{Ja=EO.c[I6];I7=EO.i[I6]}if(I1.url=="http://group"){continue}var Jm=Jq.createElement("treeitem");Jm.setAttribute("id",I1.id);Jm.setAttribute("group",Jb);var I3=Jq.createElement("treerow");I3.setAttribute("allowevents","true");
I3.setAttribute("crop","end");var z=Jq.createElement("treecell");z.setAttribute("label",I1.name);z.setAttribute("src",CM(I1.fiid,I1.sn));z.setAttribute("crop","end");I3.appendChild(z);z=Jq.createElement("treecell");z.setAttribute("label",(I1.logins.length>0?I1.logins[0].unencryptedUsername:""));I3.appendChild(z);
z=Jq.createElement("treecell");z.setAttribute("label",I1.url);I3.appendChild(z);z=Jq.createElement("treecell");z.setAttribute("label",Ej(I1.last_touch));I3.appendChild(z);var z=Jq.createElement("treecell");if(I1.extra&&I1.extra.length>0){z.setAttribute("src","chrome://lastpass/skin/page_edit.png")}I3.appendChild(z);
var z=Jq.createElement("treecell");if(I1.pwprotect){z.setAttribute("src","chrome://lastpass/skin/lock.png")}I3.appendChild(z);var z=Jq.createElement("treecell");if(Ax&&parseInt(I1.autologin)==1){z.setAttribute("src","chrome://lastpass/skin/accounts.png")}I3.appendChild(z);z=Jq.createElement("treecell");
z.setAttribute("label",I1.pendingshare?LP.lpgs("Accept"):LP.lpgs("Edit"));z.setAttribute("properties","underline");I3.appendChild(z);z=Jq.createElement("treecell");z.setAttribute("label",I1.pendingshare?LP.lpgs("Reject"):(I1.genpw||(I1.sharedfromaid!=null&&I1.sharedfromaid!=""&&I1.sharedfromaid!="0")?"":LP.lpgs("Share")));
z.setAttribute("properties","underline");I3.appendChild(z);z=Jq.createElement("treecell");z.setAttribute("label",I1.pendingshare?"":LP.lpgs("Delete"));z.setAttribute("properties","underline");I3.appendChild(z);Jm.appendChild(I3);Ja.appendChild(Jm)}}I4.sort(LP.lp_sort_case_insensitive);if(Jn){I4.unshift(LP.lpgs("recently used"))
}if(t){I4.unshift(LP.lpgs("favorites"))}if("descending"==Jf){I4.reverse()}var I5=Object();for(var Jk=0;Jk<I4.length;Jk++){var Jh=I4[Jk];var I9=Jh.match(/^([^\\]*)\\(.*)$/);if(I9){Jh=I9[1]}var I8="_"+Jh;try{if(typeof(I5[I8])=="undefined"){Jq.getElementById("searchresults").appendChild(EO.i[I8]);I5[I8]=1
}}catch(Jl){HX("Error with gn: "+I8+": "+Jl,null)}}Jd.treeBoxObject.scrollToRow(I2);return false};this.search_accept_click=function(I9,I5){if(!DH){return true}var I1=I9.getElementById("searchresults");while(I1.firstChild){I1.removeChild(I1.firstChild)}var t=I9.getElementById("lpsearchstr").value.toLowerCase();
t=t.replace(/^\s+$/g,"");var I3=new Array();for(var I4 in G9){var I6=G9[I4];if(!I6.isbookmark){var I2=(I6.logins.length>0?I6.logins[0].unencryptedUsername:"");if(I6.url.toLowerCase().indexOf(t)!=-1||I6.name.toLowerCase().indexOf(t)!=-1||I6.group.toLowerCase().indexOf(t)!=-1||I2.toLowerCase().indexOf(t)!=-1){I3[I3.length]=I6
}}}for(var I4 in CK){var I6=CK[I4];if(I6.name.toLowerCase().indexOf(t)!=-1||I6.group.toLowerCase().indexOf(t)!=-1){I3[I3.length]=I6}}var Jb=I9.getElementById("tree");var I0=Jb.getAttribute("sortDirection");var I8=Jb.getAttribute("sortResource");if("tgroup"==I8){I3.sort(LP.lp_sort_case_insensitive_group)
}else{if("tusername"==I8){I3.sort(LP.lp_sort_case_insensitive_username)}else{if("tlasttouch"==I8){I3.sort(LP.lp_sort_case_insensitive_lasttouch)}else{I3.sort(LP.lp_sort_case_insensitive_name)}}}if("descending"==I0){I3.reverse()}for(var I4=0;I4<I3.length;I4++){if(I3[I4].url=="http://group"){continue}var e=I9.createElement("treeitem");
e.setAttribute("container","true");e.setAttribute("id",I3[I4].id);var I7=I9.createElement("treerow");I7.setAttribute("allowevents","true");I7.setAttribute("crop","end");var Ja=I9.createElement("treecell");Ja.setAttribute("label",I3[I4].name);Ja.setAttribute("src",CM(I3[I4].fiid,I3[I4].sn));Ja.setAttribute("crop","end");
I7.appendChild(Ja);Ja=I9.createElement("treecell");Ja.setAttribute("label",LP.fix_group_name(I3[I4].group));I7.appendChild(Ja);Ja=I9.createElement("treecell");Ja.setAttribute("label",(I3[I4].logins.length>0?I3[I4].logins[0].unencryptedUsername:""));I7.appendChild(Ja);Ja=I9.createElement("treecell");Ja.setAttribute("label",LP.lpgs("Edit"));
Ja.setAttribute("properties","underline");I7.appendChild(Ja);Ja=I9.createElement("treecell");Ja.setAttribute("label",I3[I4].id);I7.appendChild(Ja);e.appendChild(I7);I1.appendChild(e)}var z=I9.getElementById("tree").treeBoxObject.view;z.selection.select(0);I9.getElementById("lpsearchstr").focus();return false
};this.get_local_accts_version=function(){return BP};this.IsHomePage=function(){return LP.lpmainprefs.getCharPref("browser.startup.homepage")=="chrome://lastpass/content/home.xul"};this.SetHomePage=function(){LP.lpmainprefs.setCharPref("browser.startup.homepage","chrome://lastpass/content/home.xul");
LP.flush_prefs()};function Ej(z){if(0==z){return LP.lpgs("Never")}var e=Ab()-z;var t=function(I1){return I1==1?"":"s"};if(e<0){return LP.lpgs("just now")}if(e<60){var I0=e;return I0+" "+(I0==1?LP.lpgs("second"):LP.lpgs("seconds"))+" "+LP.lpgs("ago")}if(e<60*60){var I0=Math.floor(e/60);return I0+" "+(I0==1?LP.lpgs("minute"):LP.lpgs("minutes"))+" "+LP.lpgs("ago")
}if(e<60*60*24){var I0=Math.floor(e/60/60);return I0+" "+(I0==1?LP.lpgs("hour"):LP.lpgs("hours"))+" "+LP.lpgs("ago")}if(e<60*60*24*7){var I0=Math.floor(e/60/60/24);return I0+" "+(I0==1?LP.lpgs("day"):LP.lpgs("days"))+" "+LP.lpgs("ago")}if(e<60*60*24*31){var I0=Math.floor(e/60/60/24/7);return I0+" "+(I0==1?LP.lpgs("week"):LP.lpgs("weeks"))+" "+LP.lpgs("ago")
}if(e<60*60*24*365){var I0=Math.floor(e/60/60/24/31);return I0+" "+(I0==1?LP.lpgs("month"):LP.lpgs("months"))+" "+LP.lpgs("ago")}var I0=Math.floor(e/60/60/24/365);return I0+" "+(I0==1?LP.lpgs("year"):LP.lpgs("years"))+" "+LP.lpgs("ago")}this.compare_tlds=function(t,e){if(typeof(t)!="string"){return false
}if(typeof(e)!="string"){return false}t=t.toLowerCase();e=e.toLowerCase();if(t==e){return true}else{if(typeof(Bs[t])!="undefined"&&typeof(Bs[e])!="undefined"&&Bs[t]==Bs[e]){return true}else{return false}}};this.GetIdentityParam=function(){var e="&iid=";e+=LP.en(LP.GetIdentity());return e};this.GetIdentity=function(e){var z="";
if(LP.lpprefsHasUserValue("identity")){z=LP.lpprefsGetCharPref("identity")}if(z==""&&e){z=LP.lpgs("All")}else{if(e){for(var t=0;t<GA.length;t++){if(GA[t].iid==z){z=GA[t].iname}}}}return z};this.addAidIdentity=function(z){if(LP.lpprefsHasUserValue("identity")){var I0=LP.lpprefsGetCharPref("identity");
for(var t=0;t<GA.length;t++){if(GA[t].iid==I0){var e=GA[t].aids;if(e==""){GA[t].aids=z}else{GA[t].aids+=","+z}return}}}};this.deleteAidIdentity=function(I1){for(var I0=0;I0<GA.length;I0++){var e=GA[I0].aids.split(",");var t="";for(var z=0;z<e.length;z++){if(e[z]!=I1){if(t==""){t=e[z]}else{t+=","+e[z]
}}}GA[I0].aids=t}};this.addFfidIdentity=function(e){if(LP.lpprefsHasUserValue("identity")){var I0=LP.lpprefsGetCharPref("identity");for(var z=0;z<GA.length;z++){if(GA[z].iid==I0){var t=GA[z].ffids;if(t==""){GA[z].ffids=e}else{GA[z].ffids+=","+e}return}}}};this.deleteFfidIdentity=function(t){for(var I0=0;
I0<GA.length;I0++){var e=GA[I0].ffids.split(",");var I1="";for(var z=0;z<e.length;z++){if(e[z]!=t){if(I1==""){I1=e[z]}else{I1+=","+e[z]}}}GA[I0].ffids=I1}};this.is_secure_note=function(e){return typeof(CK[e])!="undefined"?true:false};this.is_pending_share=function(e){return typeof(GQ[e])!="undefined"?true:false
};this.lpAutoFill=function(e){LP.lp_noteAcceptHelper(e,null,true,true)};this.flush_prefs=function(){try{Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).savePrefFile(null)}catch(t){}LP.SetupUserPreferences()};this.IsIconsUpdated=function(){if(Cw){Cw=false;
return true}return false};this.lpprefsSetIntPref=function(t,z,e){if((e==null||e!=false)&&EV!=""){t=Ai+"."+t}LP.lpprefs.setIntPref(t,z)};this.lpprefsSetCharPref=function(t,z,e){if((e==null||e!=false)&&EV!=""){t=Ai+"."+t}LP.lpprefs.setCharPref(t,z)};this.lpprefsSetBoolPref=function(t,z,e){if((e==null||e!=false)&&EV!=""){t=Ai+"."+t
}LP.lpprefs.setBoolPref(t,z)};this.lpprefsGetIntPref=function(t,e){var z=t;if((e==null||e!=false)&&EV!=""){t=Ai+"."+t}if(LP.lpprefs.prefHasUserValue(t)){return LP.lpprefs.getIntPref(t)}else{return LP.lpprefs.getIntPref(z)}};this.lpprefsGetCharPref=function(t,e){var z=t;if((e==null||e!=false)&&EV!=""){t=Ai+"."+t
}if(LP.lpprefs.prefHasUserValue(t)){return LP.lpprefs.getCharPref(t)}else{return LP.lpprefs.getCharPref(z)}};this.lpprefsGetBoolPref=function(z,t,I1){try{if(!I1){I1=LP.lpprefs}var I0=z;if((t==null||t!=false)&&EV!=""){z=Ai+"."+z}if(I1.prefHasUserValue(z)){return I1.getBoolPref(z)}else{return I1.getBoolPref(I0)
}}catch(I2){HX("Error in lpprefsGetBoolPref, name="+z+": "+I2,null);return false}};this.lpprefsHasUserValue=function(z,t){var I0=z;if((t==null||t!=false)&&EV!=""){z=Ai+"."+z}var e=LP.lpprefs.prefHasUserValue(z);if(e||I0==z){return e}else{return LP.lpprefs.prefHasUserValue(I0)}};function HT(I2,I1,I3){var I2=typeof(I2)=="undefined"?Ai:I2;
var I1=typeof(I1)=="undefined"?true:I1;var I3=typeof(I3)=="undefined"?true:I3;try{var t=I2+(BL()?"_lps.act.sxml":"_lp.act.xml");var I6=B(t);if(!I6){I6=B(I2+"_lps.act.xml");if(I6){var I5=FW(I6,true);Ce(I2+"_lps.act.sxml",I5);U(I2+"_lps.act.xml")}}else{I6=IJ(I6,true)}if(!I6){return null}if(!I1){return I6
}if(BL()){I6=L(I6)}if(I6&&I6!=""){var I4=null;if(IL("password_offline")&&IL("password_offline")!=""&&I6.substring(0,30).indexOf("type=sesameoffline\ndata=")==0){I6=I6.substring(24);I4=IL("password_offline")}else{if(C2("password_offline")&&C2("password_offline")!=""&&I6.substring(0,30).indexOf("type=trueapioffline\ndata=")==0){I6=I6.substring(25);
I4=C2("password_offline")}else{if(EG("password_offline")&&EG("password_offline")!=""&&I6.substring(0,30).indexOf("type=yubikeyoffline\ndata=")==0){I6=I6.substring(25);I4=EG("password_offline")}else{if(EG("password_server")&&EG("password_server")!=""&&EG("password_keysline")&&EG("password_keysline")!=""&&I6.substring(0,50).indexOf("type=yubikeyofflinemulti\nkeys=")==0){var z=I6.indexOf("\n",30);
if(z>0){var I9=I6.substring(30,z);I6=I6.substring(z+6);I4=EG("password_server")}}}}}if(I4){I6=L(I6,GS(I4))}if(I6&&I6.substring(0,5)!="<?xml"){I6='<?xml version="1.0" encoding="UTF-8"?>'+I6}}if(!I3){return I6}if(I6.substring(0,5)!="<?xml"){return null}var I0=Components.classes["@mozilla.org/xmlextras/domparser;1"].createInstance(Components.interfaces.nsIDOMParser);
var I8=I0.parseFromString(I6,"text/xml");return I8?I8:null}catch(I7){return null}}function Bx(t,z,I2){try{var I0=Components.classes["@mozilla.org/xmlextras/xmlserializer;1"].getService(Components.interfaces.nsIDOMSerializer).serializeToString(t.documentElement);if(!I0||I0==""){return false}return k(I0,z,I2)
}catch(I1){return false}}function k(I1,I5,I4){if(!I1||I1==""){return false}try{var z='<?xml version="1.0" encoding="UTF-8"?>';var I6=z.length;var t=null;var I2="";if(IL("password_offline")&&IL("password_offline")!=""){t=IL("password_offline");if(I1.substring(0,I6).indexOf(z)==0){I1=I1.substring(I6)}I2="type=sesameoffline\ndata="
}else{if(C2("password_offline")&&C2("password_offline")!=""){t=C2("password_offline");if(I1.substring(0,I6).indexOf(z)==0){I1=I1.substring(I6)}I2="type=trueapioffline\ndata="}else{if(EG("password_offline")&&EG("password_offline")!=""){if(!EG("password_keysline")||EG("password_keysline")==""||!EG("password_server")||EG("password_server")==""){t=EG("password_offline");
I2="type=yubikeyoffline\ndata="}else{t=EG("password_server");var I7=EG("password_keysline");I2="type=yubikeyofflinemulti\nkeys="+I7+"\ndata="}if(I1.substring(0,I6).indexOf(z)==0){I1=I1.substring(I6)}}}}if(t){I1=Ds(I1,GS(t));if(!I1||I1==""){return false}I1=I2+I1}var I0=null;if(BL()){I0=Ds(I1);if(!I0||I0==""){return false
}I0=FW(I0,true);Ce(Ai+"_lps.act.sxml",I0,I5)}else{I0=I1;Ce(Ai+"_lp.act.xml",I0,I5)}return true}catch(I3){return false}}function E1(t,I0){try{var z=t.getElementsByTagName("accounts");if(z.length>0){z[0].setAttribute("accts_version",I0);return true}return false}catch(I1){return false}}function B6(t,I3,I1){try{var I2=t.getElementsByTagName("account");
for(var z=0;z<I2.length;z++){if(I2[z].getAttribute("id")==I3){var I0=I2[z].parentNode;if(I0){I0.removeChild(I2[z]);return I1?Hg(t,I3):true}break}}return false}catch(I4){return false}}function Fr(I9,I4,z){try{var t=I9.getElementsByTagName("accounts");if(t.length>0){var I2=I9.createElement("account");I2.setAttribute("name",Ds(I4.name));
I2.setAttribute("urid",I4.urid);I2.setAttribute("id",I4.id);I2.setAttribute("url",A1(I4.url));I2.setAttribute("m",I4.manual);I2.setAttribute("http",I4.is_http);I2.setAttribute("fav",I4.fav);I2.setAttribute("favico","0");I2.setAttribute("autologin",I4.autologin);I2.setAttribute("basic_auth",I4.basic_auth?"1":"0");
I2.setAttribute("group",Ds(I4.group));I2.setAttribute("fiid",I4.fiid);I2.setAttribute("genpw",I4.genpw?"1":"0");I2.setAttribute("extra",I4.extra);I2.setAttribute("isbookmark",I4.isbookmark?"1":"0");I2.setAttribute("never_autofill",I4.never_autofill);I2.setAttribute("last_touch",I4.last_touch);I2.setAttribute("sn",I4.sn?"1":"0");
I2.setAttribute("realm",Ds(I4.realm));I2.setAttribute("sharedfromaid",I4.sharedfromaid);I2.setAttribute("pwprotect",I4.pwprotect?"1":"0");for(var I1=0;I1<I4.logins.length;I1++){var I7=I4.logins[I1];var I5=I9.createElement("login");I5.setAttribute("urid",I7.urid);I5.setAttribute("url",A1(I7.url));I5.setAttribute("submit_id",I7.submit_id);
I5.setAttribute("captcha_id",I7.captcha_id);I5.setAttribute("custom_js",I7.custom_js);if(I7.custom_js!=""){}I5.setAttribute("u",I7.username);I5.setAttribute("p",I7.password);I5.setAttribute("o",I7.openid_url);I5.setAttribute("method",I7.method);for(var I0=0;I0<I7.fields.length;I0++){var I8=I7.fields[I0];
var I6=I9.createElement("field");I6.setAttribute("name",I8.name);I6.setAttribute("type",I8.type);I6.setAttribute("value",I8.value);if(I8.type=="radio"||I8.type=="checkbox"){I6.setAttribute("checked",I8.checked?"1":"0")}I5.appendChild(I6)}for(var I0=0;I0<I7.otherfields.length;I0++){var I8=I7.otherfields[I0];
var I6=I9.createElement("otherfield");I6.setAttribute("name",I8.name);I6.setAttribute("type",I8.type);I6.setAttribute("formname",I8.formname);I6.setAttribute("value",I8.value);if(I8.type=="radio"||I8.type=="checkbox"){I6.setAttribute("checked",I8.checked?"1":"0")}I5.appendChild(I6)}I2.appendChild(I5)
}for(var I1=0;I1<I4.otherlogins.length;I1++){var I7=I4.otherlogins[I1];var I5=I9.createElement("otherlogin");I5.setAttribute("urid",I7.urid);I5.setAttribute("url",A1(I7.url));I5.setAttribute("submit_id",I7.submit_id);I5.setAttribute("captcha_id",I7.captcha_id);I5.setAttribute("custom_js",I7.custom_js);
if(I7.custom_js!=""){}I5.setAttribute("u",I7.username);I5.setAttribute("p",I7.password);I5.setAttribute("o",I7.openid_url);I5.setAttribute("method",I7.method);for(var I0=0;I0<I7.fields.length;I0++){var I8=I7.fields[I0];var I6=I9.createElement("field");I6.setAttribute("name",I8.name);I6.setAttribute("type",I8.type);
I6.setAttribute("value",I8.value);if(I8.type=="radio"||I8.type=="checkbox"){I6.setAttribute("checked",I8.checked?"1":"0")}I5.appendChild(I6)}for(var I0=0;I0<I7.otherfields.length;I0++){var I8=I7.otherfields[I0];var I6=I9.createElement("otherfield");I6.setAttribute("name",I8.name);I6.setAttribute("type",I8.type);
I6.setAttribute("formname",I8.formname);I6.setAttribute("value",I8.value);if(I8.type=="radio"||I8.type=="checkbox"){I6.setAttribute("checked",I8.checked?"1":"0")}I5.appendChild(I6)}I2.appendChild(I5)}t[0].appendChild(I2);return z?G0(I9,I4.id):true}return false}catch(I3){return false}}function Hg(I6,t){try{var I3=I6.getElementsByTagName("identity");
for(var I0=0;I0<I3.length;I0++){var I4=I3[I0].getAttribute("aids");var I1=I4.split(",");var I5="";for(var z=0;z<I1.length;z++){if(I1[z]!=t){if(I5==""){I5=I1[z]}else{I5+=","+I1[z]}}}I3[I0].setAttribute("aids",I5)}return true}catch(I2){return false}}function G0(z,I2){try{if(!LP.lpprefsHasUserValue("identity")){return true
}var I4=LP.lpprefsGetCharPref("identity");if(I4==""){return true}var I0=z.getElementsByTagName("identity");for(var I1=0;I1<I0.length;I1++){if(I0[I1].getAttribute("iid")==I4){var t=I0[I1].getAttribute("aids");if(t==""){t=I2}else{t+=","+I2}I0[I1].setAttribute("aids",t);return true}}return false}catch(I3){return false
}}function AE(I6,I5){try{var I4=I6.getElementsByTagName("identity");for(var I0=0;I0<I4.length;I0++){var I2=I4[I0].getAttribute("ffids");if(I2==null){I2=""}var I1=I2.split(",");var t="";for(var z=0;z<I1.length;z++){if(I1[z]!=I5){if(t==""){t=I1[z]}else{t+=","+I1[z]}}}I4[I0].setAttribute("ffids",t)}return true
}catch(I3){return false}}function DE(z,t){try{if(!LP.lpprefsHasUserValue("identity")){return true}var I4=LP.lpprefsGetCharPref("identity");if(I4==""){return true}var I0=z.getElementsByTagName("identity");for(var I2=0;I2<I0.length;I2++){if(I0[I2].getAttribute("iid")==I4){var I1=I0[I2].getAttribute("ffids");
if(I1==null){I1=""}if(I1==""){I1=t}else{I1+=","+t}I0[I2].setAttribute("ffids",I1);return true}}return false}catch(I3){return false}}function Bl(z,t,I3){try{var I0=z.getElementsByTagName("formfill");for(var I1=0;I1<I0.length;I1++){if(I0[I1].getAttribute("ffid")==t){var I2=I0[I1].parentNode;if(I2){I2.removeChild(I0[I1]);
return I3?AE(z,t):true;return true}break}}return false}catch(I4){return false}}function FX(t,I2,I4){try{var I1=t.getElementsByTagName("formfills");if(I1.length>0){var I0=t.createElement("formfill");I0.setAttribute("ffid",I2.ffid);I0.setAttribute("profiletype",I2.profiletype);I0.setAttribute("profilename",Ds(I2.profilename));
I0.setAttribute("profilelanguage",I2.profilelanguage);I0.setAttribute("firstname",I2.firstname);I0.setAttribute("middlename",I2.middlename);I0.setAttribute("lastname",I2.lastname);I0.setAttribute("email",I2.email);I0.setAttribute("company",I2.company);I0.setAttribute("ssn",I2.ssn);I0.setAttribute("birthday",I2.birthday);
I0.setAttribute("address1",I2.address1);I0.setAttribute("address2",I2.address2);I0.setAttribute("address3",I2.address3);I0.setAttribute("city",I2.city);I0.setAttribute("county",I2.county);I0.setAttribute("state",I2.state);I0.setAttribute("state_name",I2.state_name);I0.setAttribute("zip",I2.zip);I0.setAttribute("country",I2.country);
I0.setAttribute("country_cc3l",I2.country_cc3l);I0.setAttribute("country_name",I2.country_name);I0.setAttribute("phone3lcc",I2.countryphone);I0.setAttribute("evephone3lcc",I2.countryevephone);I0.setAttribute("fax3lcc",I2.countryfaxphone);I0.setAttribute("mobilephone3lcc",I2.countrymobphone);I0.setAttribute("phone",I2.phone);
I0.setAttribute("fax",I2.fax);I0.setAttribute("mobilephone",I2.mobilephone);I0.setAttribute("evephone",I2.evephone);I0.setAttribute("phoneext",I2.phoneext);I0.setAttribute("eveext",I2.evephoneext);I0.setAttribute("mobileext",I2.mobilephoneext);I0.setAttribute("faxext",I2.faxphoneext);I0.setAttribute("ccname",I2.ccname);
I0.setAttribute("ccnum",I2.ccnum);I0.setAttribute("ccstart",I2.ccstart);I0.setAttribute("ccexp",I2.ccexp);I0.setAttribute("cccsc",I2.cccsc);I0.setAttribute("ccissuenum",I2.ccissuenum);I0.setAttribute("username",I2.username);I0.setAttribute("gender",I2.gender);I0.setAttribute("title",I2.title);I0.setAttribute("pwprotect",I2.pwprotect?"1":"0");
I0.setAttribute("timezone",I2.timezone);I0.setAttribute("bankname",I2.bankname);I0.setAttribute("bankacctnum",I2.bankacctnum);I0.setAttribute("bankroutingnum",I2.bankroutingnum);for(var I3=0;I3<I2.customfields.length;I3++){var z=t.createElement("customfield");z.setAttribute("cfid",I2.customfields[I3].cfid);
z.setAttribute("text",I2.customfields[I3].text);z.setAttribute("value",I2.customfields[I3].value);z.setAttribute("alttext",I2.customfields[I3].alttext);I0.appendChild(z)}I0.setAttribute("notes",I2.notes);I1[0].appendChild(I0);return I4?DE(t,I2.ffid):true}return false}catch(I5){return false}}function H4(){try{var I0=Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("CurProcD",Components.interfaces.nsIFile);
var t=I0.path.toLowerCase();if(t.indexOf("\\app\\firefox")!=-1&&t.indexOf("\\app\\firefox")==t.length-12){var z=t.substring(0,t.length-11)+"firefoxportable.exe";var I1=Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);I1.initWithPath(z);if(I1.exists()){return true
}}return false}catch(I2){return false}}function FN(z,t){try{keyName="DOM_VK_"+z.toUpperCase();return CR(t,0,LP.mostRecent().KeyEvent[keyName],false)}catch(I0){}}function CR(I0,t,e,I1){if(I0===undefined){return}var z=I0.ownerDocument.createEvent("KeyEvents");z.initKeyEvent("keydown",true,true,null,false,false,I1,false,e,0);
var I2=I0.dispatchEvent(z);if(I2){z=I0.ownerDocument.createEvent("KeyEvents");if(t){z.initKeyEvent("keypress",true,true,null,false,false,I1,false,0,t)}else{z.initKeyEvent("keypress",true,true,null,false,false,I1,false,e,0)}I2=I0.dispatchEvent(z)}else{}var z=I0.ownerDocument.createEvent("KeyEvents");z.initKeyEvent("keyup",true,true,null,false,false,I1,false,e,0);
I0.dispatchEvent(z);return I2}var Cq=null;var Ii=null;var Gu=null;function Am(){this.onUpdateStarted=function(){},this.onUpdateEnded=function(){},this.onAddonUpdateEnded=function(z,I1){if(I1==1&&Cq&&Ii){if(Is||LP.lpConfirmYesNo(LP.lpgs("An Update is Available. Would you like to install?"))){var t=new Array();
t[0]=Ii;try{Cq.addDownloads(t,1,true)}catch(I0){Cq.addDownloads(t,1,null)}LP.mostRecent().setTimeout("LP.alert(LP.lpgs('MustRestartUpdate'))",10000)}}else{if(I1==8){LP.alert(LP.lpgs("No Updates are Available"))}}},this.onAddonUpdateStarted=function(e){}}this.lpUpdate=function(){try{Cq=Components.classes["@mozilla.org/extensions/manager;1"].getService(Components.interfaces.nsIExtensionManager);
if(Cq==null){return}Ii=Cq.getItemForID("support@lastpass.com");if(Ii==null){return}var t=new Array();t[0]=Ii;Gu=new Am;Cq.update(t,1,0,Gu)}catch(z){HX("Error in lpupdate: "+z,null)}};this.sr=function(z,I1,t,I0,e){if(z.getElementById(I1)){if(t=="hidden"||t=="className"){z.getElementById(I1).setAttribute(t,I0)
}else{z.getElementById(I1).setAttribute(t,I0!=""?LP.lpgs(I0,e):"")}}};this.sidebar_load=function(t,e){t.title=LP.lpgs("LastPass Sites");LP.sr(t,"editmenuitem","label","Edit");LP.sr(t,"gotomenuitem","label","Go to URL");LP.sr(t,"deletemenuitem","label","Delete");LP.sr(t,"copyusermenuitem","label","Copy Username");
LP.sr(t,"copypassmenuitem","label","Copy Password");LP.sr(t,"retrieving","label","Retrieving Sites...")};function Fh(e){if(typeof(e)=="string"&&e.length>45000){e=e.substring(0,45000)}return e}function F4(e){return e.toLowerCase().replace(/\s*/g,"")}this.changeGroupAndFavorites=function(Jd,I9,Jc,I7){var I6="",I0="",Ja="";
var I4="";var e=new Array();for(var I3=0;I3<Jd.length;I3++){var z=Jd[I3];var t=G9[z];if(t==null){t=CK[z]}if(t){e[e.length]=z;t.group=I7;I6+=I4+z;I4=","}}I4="";for(var I3=0;I3<I9.length;I3++){var z=I9[I3];var t=G9[z];if(t==null){t=CK[z]}if(t){e[e.length]=z;t.fav="1";I0+=I4+z;I4=",";Dk[Dk.length]=z}}I4="";
for(var I3=0;I3<Jc.length;I3++){var z=Jc[I3];var t=G9[z];if(t==null){t=CK[z]}if(t){e[e.length]=z;t.fav="0";Ja+=I4+z;I4=",";for(var I1=0;I1<Dk.length;I1++){if(Dk[I1].id==z){Dk.splice(I1,1);break}}}}BP++;H7++;var I8=true;var Jb=HT();if(Jb==null){I8=false}for(var I3=0;I3<e.length;I3++){var I5=G9[e[I3]];
if(I5==null){I5=CK[e[I3]]}if(I5){if(I8&&!B6(Jb,e[I3],false)){I8=false}if(I8&&!Fr(Jb,I5,true)){I8=false}}}if(I8&&!E1(Jb,BP)){I8=false}if(I8&&!Bx(Jb,null,"changeGroupAndFavorites")){I8=false}LP.lpDisplayAccounts_all();var I2="aids="+LP.en(I6)+"&newfavaids="+LP.en(I0)+"&oldfavaids="+LP.en(Ja)+"&newgrp="+LP.en(Ds(I7))+"&xml=1";
LP.lpMakeRequest(LP.lp_base+"groups.php",I2,FH)};function FH(e){if(e&&e.readyState==4){if(e.status==200&&e.responseXML!=null&&e.responseXML.documentElement!=null){}}}this.openChangeGroupDlg=function(e){LP.lpGetCurrentWindow().openDialog(GY+"content/changegrp.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal",e)
};this.openMoveGroupDlg=function(t,e){LP.lpGetCurrentWindow().openDialog(GY+"content/changegrp.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal",t,e)};this.OpenSubGroupDlg=function(t,e){LP.lpGetCurrentWindow().openDialog(GY+"content/creategrp.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal",t,e)
};this.FieldFocus=function(I2){var z=LP.getBrowser().selectedTab.linkedBrowser;if(z){var I3=z.contentDocument;if(!I3||(typeof(I3.FieldFocusDone)!="undefined"&&I3.FieldFocusDone==true)){return}if(typeof(I3.LPlpUseLastPassLogin)!="undefined"&&I3.LPlpUseLastPassLogin==true){if(DH){I3.LPlpUseLastPassLogin=false;
LP.FieldFocus(I2);return}Cz("UseLastPassLogin",z,0,"login",null);I3.LPlpUseLastPassLogin=false;I3.LPlpm_setupFocusHandler=false;I3.FieldFocusDone=false;return}else{if(typeof(I3.LPlpgenerateandfill)=="undefined"&&typeof(I3.LPlpfillforms)!="undefined"){Cz("FillableFormDetected",z,0,"formfill")}else{if(typeof(I3.LPlpgenerateandfill)!="undefined"){var I1=I3.LPlpgenerateandfill;
var t=I3.LPlpgenerateAids;var e=I3.LPlpfillcurrent;var I0=I3.LPlpgenerateForm;Cz("GeneratePassword",z,t,"generate",I0,null,I1,e)}else{return}}}I3.FieldFocusDone=true}};this.moveSelectedToGroup=function(I3,I2,z){var e=new Array();for(var I0=0;I0<I2.selected_groups.length;I0++){if(I3!=I2.selected_groups[I0]&&I3!=LP.lpgs("favorites")){e[e.length]=I2.selected_ids[I0]
}}var I1=new Array();var t=new Array();if(I3==LP.lpgs("favorites")){for(var I0=0;I0<I2.selected_groups.length;I0++){if(I2.selected_groups[I0]!=LP.lpgs("favorites")){I1[I1.length]=I2.selected_ids[I0]}}}else{for(var I0=0;I0<I2.selected_groups.length;I0++){if(I2.selected_groups[I0]==LP.lpgs("favorites")){t[t.length]=I2.selected_ids[I0]
}}}if(e.length>0||I1.length>0||t.length>0){LP.changeGroupAndFavorites(e,I1,t,I3);LP.search_tree_accept_click(I2,z)}};this.deleteSelectedSites=function(I6,I3,I7){var I0=false;var z;if(I7){z=new Array();for(var I1 in G9){if(G9[I1].group==I7||G9[I1].group.indexOf(I7+"\\")==0){z[z.length]=I1}}for(var I1 in CK){if(CK[I1].group==I7||CK[I1].group.indexOf(I7+"\\")==0){z[z.length]=I1
}}}else{z=I6.selected_ids}for(var I1=0;I1<z.length;I1++){var e=z[I1];var t=G9[e];var I0=GX;if(t==null){t=CK[e];I0|=FS||CK[e].pwprotect}else{I0|=GX||G9[e].pwprotect}}if(I0){if(!LP.securityPrompt()){return}}var I4="";var I2="";for(var I1=0;I1<z.length;I1++){var e=z[I1];F3(e);I4+=I2+e;I2=","}Cw=true;LP.lpGetCurrentWindow().setTimeout("LP.lpRebuildToolsMenu_all();",0);
LP.lpDisplayAccounts_all();LP.lpRecheckTabs();var I5="ajax=1&extjs=1&delete=1&aid="+LP.en(I4);I5+=LP.GetIdentityParam();LP.lpMakeRequest(LP.lp_base+"show.php",I5,Ei)};this.isconnected=function(){return A3};this.lpClearCache=function(I0,e,t){var I0=(typeof(I0)!="undefined"&&I0)?true:false;var e=(typeof(e)=="undefined"||e)?true:false;
var t=(typeof(t)=="undefined"||t)?true:false;U(Ai+"_lp.act.lps");U(Ai+"_lpall.lps");U(Ai+"_lpall.slps");U(Ai+"_lps.act.xml");U(Ai+"_lps.act.sxml");if(t){if(AC(Ai+"_ff.otp")||AC(Ai+"_ff.sotp")){if(I0||LP.lpConfirmYesNo(LP.lpgs("A One Time Password has been found. This can be used for Account Recovery if you forget your master LastPass password. If you are having trouble logging in, it is recommended that you do not delete it. Would you like to delete this file?"))){LP.DeleteOTP()
}}}if(e){U(Ai.toUpperCase()+"_ICONS3.LPS");U("lpiconsversion2_"+Ai+".txt");I();var z=Gz();if(z!=""&&AC(z)){if(I0||LP.lpConfirmYesNo(LP.lpgs("A retry file has been found. This likely means that not all of your site changes have been saved. Would you like to delete this file and potentially lose some changes?"))){U(z)
}}}};function Ft(e){if(""==e){Hk="";HR=""}else{Hk=e;HR=CB(e)}}var AZ=false;this.check_key_for_changes=function(e){if(e){if(AZ){return}AZ=true}if(""==Hk){}else{if(CB(Hk)!=HR){DS();HX("INVESTIGATE! KEY_HASH IS WRONG! COSMIC RAYS?")}}this.setTimeout(LP.check_key_for_changes,60000)};this.lpisp=function(){return ER()<=Eo
};this.choose_profile_and_credit_card=function(){LP.lpGetCurrentWindow().openDialog(GY+"content/chooseprofilecc.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal")};function C9(){var I0=false;var z=false;for(var t=0;t<d.length;t++){var e=d[t];if(e.profiletype==0){I0=true}if(e.ccnum!=""){z=true
}if(I0&&z){return true}}return false}function B1(e){if(typeof(e)=="undefined"||typeof(e.childNodes)=="undefined"){return}while(e.hasChildNodes()){e.removeChild(e.firstChild)}}function IG(e,Ji){var I8={},t={},Jb={},I5={};var Jj={},Jc={},z={},I4={};I8.value=0;t.value=false;Jb.value=0;I5.value=0;Jj.value=false;
Jc.value=false;z.value=false;I4.value=false;var Jh=new Array();var Jg=new Array();var I6=true,Je=false;var Jk=null,Jd=null,Ja=null;var I0=Eg["en-US"];var I9=CW["en-US"];var I3=Y;Ag(e.elements,Ji,I8,Jh,Jg,t,I6,Jk,Jd,Ja,I5,I0,I3,I9,Jb,Je,Jj,Jc,z,I4,Ji.contentWindow);var I2=new Array();var I1=0;for(var Jf=0;
Jf<Jg.length;Jf++){var I7=Jg[Jf];if(I7.elt.value!=""){I2[I7.regexpname]=I7.elt.value;I1++}}if(I1>=5){if(d.length==0||Du(I2)){Cz("Would you like to save this form data into a LastPass Form Fill Profile?",Ji,0,"addformfill",I2)}}}function D1(t){var e=new Bw();for(var z in t){var I0=t[z];if(z=="firstname"){e.firstname=Ds(I0)
}else{if(z=="lastname"){e.lastname=Ds(I0)}else{if(z=="city"){e.city=Ds(I0)}else{if(z=="county"){e.county=Ds(I0)}else{if(z=="state"){e.state_name=Ds(I0)}else{if(z=="address"||z=="address1"){e.address1=Ds(I0)}else{if(z=="address2"){e.address2=Ds(I0)}else{if(z=="address3"){e.address3=Ds(I0)}else{if(z=="country"){e.country_name=Ds(I0)
}else{if(z=="email"){e.email=Ds(I0)}else{if(z=="company"){e.company=Ds(I0)}else{if(z=="middlename"||z=="middleinitial"){e.middlename=Ds(I0)}else{if(z=="bankacctnum"){e.bankacctnum=Ds(I0)}else{if(z=="bankroutingnum"){e.bankroutingnum=Ds(I0)}else{if(z=="bankname"){e.bankname=Ds(I0)}else{if(z=="username"){e.username=Ds(I0)
}else{if(z=="phoneext"){e.phoneext=Ds(I0)}else{if(z=="faxext"){e.faxphoneext=Ds(I0)}else{if(z=="mobileext"){e.mobilephoneext=Ds(I0)}else{if(z=="eveext"){e.evephoneext=Ds(I0)}else{if(z=="ccname"){e.ccname=Ds(I0)}else{if(z=="cccsc"){e.cccsc=Ds(I0)}else{if(z=="ccissuenum"){e.ccissuenum=Ds(I0)}else{if(z=="timezone"){e.timezone=Ds(I0)
}else{if(z=="title"){e.title=Ds(I0)}else{if(z=="gender"){e.gender=Ds(I0)}}}}}}}}}}}}}}}}}}}}}}}}}}}if(typeof(t.ssn)!="undefined"){e.ssn=t.ssn}else{if(typeof(t.ssn1)!="undefined"){e.ssn=t.ssn1;if(typeof(t.ssn2)!="undefined"){e.ssn+=t.ssn2;if(typeof(t.ssn3)!="undefined"){e.ssn+=t.ssn3}}}}e.ssn=Ds(e.ssn);
if(typeof(t.zip)!="undefined"){e.zip=t.zip}else{if(typeof(t.zip1)!="undefined"){e.zip=t.zip1;if(typeof(t.zip2)!="undefined"){e.zip+=t.zip2}}}e.zip=Ds(e.zip);if(typeof(t.phone)!="undefined"){e.phone=t.phone}else{if(typeof(t.phone1)!="undefined"){e.phone=t.phone1;if(typeof(t.phone2)!="undefined"){e.phone+=t.phone2;
if(typeof(t.phone3)!="undefined"){e.phone+=t.phone3}}}else{e.phone=""}}e.phone=e.phone.replace(/\D+/g,"");if(e.phone.match(/^(?:[2-9]\d{2}){2}\d{4}$/)){e.phone="1"+e.phone}e.phone=Ds(e.phone);if(typeof(t.mobilephone)!="undefined"){e.mobilephone=t.mobilephone}else{if(typeof(t.mobilephone1)!="undefined"){e.mobilephone=t.mobilephone1;
if(typeof(t.mobilephone2)!="undefined"){e.mobilephone+=t.mobilephone2;if(typeof(t.mobilephone3)!="undefined"){e.mobilephone+=t.mobilephone3}}}else{e.mobilephone=""}}e.mobilephone=e.mobilephone.replace(/\D+/g,"");if(e.mobilephone.match(/^(?:[2-9]\d{2}){2}\d{4}$/)){e.mobilephone="1"+e.mobilephone}e.mobilephone=Ds(e.mobilephone);
if(typeof(t.evephone)!="undefined"){e.evephone=t.evephone}else{if(typeof(t.evephone1)!="undefined"){e.evephone=t.evephone1;if(typeof(t.evephone2)!="undefined"){e.evephone+=t.evephone2;if(typeof(t.evephone3)!="undefined"){e.evephone+=t.evephone3}}}else{e.evephone=""}}e.evephone=e.evephone.replace(/\D+/g,"");
if(e.evephone.match(/^(?:[2-9]\d{2}){2}\d{4}$/)){e.evephone="1"+e.evephone}e.evephone=Ds(e.evephone);if(typeof(t.fax)!="undefined"){e.fax=t.fax}else{if(typeof(t.fax1)!="undefined"){e.fax=t.fax1;if(typeof(t.fax2)!="undefined"){e.fax+=t.fax2;if(typeof(t.fax3)!="undefined"){e.fax+=t.fax3}}}else{e.fax=""
}}e.fax=e.fax.replace(/\D+/g,"");if(e.fax.match(/^(?:[2-9]\d{2}){2}\d{4}$/)){e.fax="1"+e.fax}e.fax=Ds(e.fax);if(typeof(t.ccnum)!="undefined"){e.ccnum=t.ccnum}else{if(typeof(t.ccnum1)!="undefined"){e.ccnum=t.ccnum1;if(typeof(t.ccnum2)!="undefined"){e.ccnum+=t.ccnum2;if(typeof(t.ccnum3)!="undefined"){e.ccnum+=t.ccnum3;
if(typeof(fdata.ccnum4)!="undefined"){e.ccnum+=t.ccnum4}}}}}e.ccnum=Ds(e.ccnum);e.customfields=new Array();return e}function AQ(e){return typeof(e)!="undefined"}function Du(I0){var e=D1(I0);for(var I1=0;I1<d.length;I1++){var t=0;var z=d[I1];if(AQ(e.firstname)&&e.firstname.length!=0&&e.firstname!=z.firstname){t++
}if(AQ(e.middlename)&&e.middlename.length!=0&&e.middlename!=z.middlename){t++}if(AQ(e.lastname)&&e.lastname.length!=0&&e.lastname!=z.lastname){t++}if(AQ(e.email)&&e.email.length!=0&&e.email!=z.email){t++}if(AQ(e.company)&&e.company.length!=0&&e.company!=z.company){t++}if(AQ(e.ssn)&&e.ssn.length!=0&&e.ssn!=z.ssn){t++
}if(AQ(e.birthday)&&e.birthday.length!=0&&e.birthday!=z.birthday){t++}if(AQ(e.address1)&&e.address1.length!=0&&e.address1!=z.address1){t++}if(AQ(e.address2)&&e.address2.length!=0&&e.address2!=z.address2){t++}if(AQ(e.address3)&&e.address3.length!=0&&e.address3!=z.address3){t++}if(AQ(e.city)&&e.city.length!=0&&e.city!=z.city){t++
}if(AQ(e.county)&&e.county.length!=0&&e.county!=z.county){t++}if(AQ(e.state_name)&&e.state_name.length!=0&&e.state_name!=z.state_name){t++}if(AQ(e.zip)&&e.zip.length!=0&&e.zip!=z.zip){t++}if(AQ(e.country_name)&&e.country_name.length!=0&&e.country_name!=z.country_name){t++}if(AQ(e.phone)&&e.phone.length!=0&&e.phone!=z.phone){t++
}if(AQ(e.phoneext)&&e.phoneext.length!=0&&e.phoneext!=z.phoneext){t++}if(AQ(e.faxext)&&e.faxext.length!=0&&e.faxext!=z.faxext){t++}if(AQ(e.mobileext)&&e.mobileext.length!=0&&e.mobileext!=z.mobileext){t++}if(AQ(e.eveext)&&e.eveext.length!=0&&e.eveext!=z.eveext){t++}if(AQ(e.fax)&&e.fax.length!=0&&e.fax!=z.fax){t++
}if(AQ(e.mobilephone)&&e.mobilephone.length!=0&&e.mobilephone!=z.mobilephone){t++}if(AQ(e.evephone)&&e.evephone.length!=0&&e.evephone!=z.evephone){t++}if(AQ(e.ccname)&&e.ccname.length!=0&&e.ccname!=z.ccname){t++}if(AQ(e.ccnum)&&e.ccnum.length!=0&&e.ccnum!=z.ccnum){t++}if(AQ(e.ccstart)&&e.ccstart.length!=0&&e.ccstart!=z.ccstart){t++
}if(AQ(e.ccexp)&&e.ccexp.length!=0&&e.ccexp!=z.ccexp){t++}if(AQ(e.cccsc)&&e.cccsc.length!=0&&e.cccsc!=z.cccsc){t++}if(AQ(e.ccissuenum)&&e.ccissuenum.length!=0&&e.ccissuenum!=z.ccissuenum){t++}if(AQ(e.username)&&e.username.length!=0&&e.username!=z.username){t++}if(AQ(e.gender)&&e.gender.length!=0&&e.gender!=z.gender){t++
}if(AQ(e.title)&&e.title.length!=0&&e.title!=z.title){t++}if(AQ(e.timezone)&&e.timezone.length!=0&&e.timezone!=z.timezone){t++}if(AQ(e.bankname)&&e.bankname.length!=0&&e.bankname!=z.bankname){t++}if(AQ(e.bankacctnum)&&e.bankacctnum.length!=0&&e.bankacctnum!=z.bankacctnum){t++}if(AQ(e.bankroutingnum)&&e.bankroutingnum.length!=0&&e.bankroutingnum!=z.bankroutingnum){t++
}if(t<4){return false}}return true}function Fx(){var e=Gz();if(e==""){return new Array()}var t=B(e);return t}function FG(t){var e=Gz();if(e==""){return false}Ce(e,t);return true}function H5(I3,I2,I1,I5){var t=I1.keyCode?I1.keyCode:I1.which;var I0=I1.shiftKey?I1.shiftKey:(t==16?true:false);var I4=((t>=65&&t<=90&&!I0)||(t>=97&&t<=122&&I0))?true:false;
var z=I3.getElementById(I5).style.display;I3.getElementById(I5).style.display=I4?"":"none";if(z!=I3.getElementById(I5).style.display){I2.innerHeight+=I4?+30:-30}}var Fg=null;this.saveGroupState=function(I2,I1){if(I2!=null){LP.lphomedoc=I2}else{I2=LP.lphomedoc}if(I2==null){return}if(!I2.getElementById("lpsearchstr")||I2.getElementById("lpsearchstr").value!=""){return
}var I6=I2.getElementById("tree");var t=I6.treeBoxObject;var I0=t.view;var I3="";var I5=new Array();for(var z=0;z<I0.rowCount;++z){if(I0.isContainer(z)&&I0.isContainerOpen(z)){var e=I0.getLevel(z);var I4=I0.getCellText(z,I6.columns.getColumnAt(0));I5[e]=(e==0?"":(I5[e-1]+"_LPSEP_"))+encodeURIComponent(I4);
I3+=(I3==""?"":"&")+I5[e]}}LP.lpprefsSetCharPref("opengroups",I3,true);LP.flush_prefs()};this.restoreGroupState=function(I8,I7){if(I8!=null){LP.lphomedoc=I8}else{I8=LP.lphomedoc}if(I8==null){return}if(!LP.lpprefsHasUserValue("opengroups",true)){return}var I9=LP.lpprefsGetCharPref("opengroups",true);var z=I9.split("&");
var I0=new Array();for(var I4=0;I4<z.length;++I4){var Ja=z[I4];var I3=Ja.split("_LPSEP_");var I2="";for(var I1=0;I1<I3.length;++I1){if(I2!=""){I2+="_LPSEP_"}I2+=decodeURIComponent(I3[I1]);I0[I2]=1}}var Jc=I8.getElementById("tree");var I6=Jc.treeBoxObject.view;var Jb=new Array();if(I6){for(I4=0;I4<I6.rowCount;
++I4){if(I6.isContainer(I4)){var t=I6.getLevel(I4);var I5=I6.isContainerOpen(I4);var e=I6.getCellText(I4,Jc.columns.getColumnAt(0));Jb[t]=(t==0?"":(Jb[t-1]+"_LPSEP_"))+e;var Ja=Jb[t];if(I5&&typeof(I0[Ja])=="undefined"){I6.toggleOpenState(I4);I6.getItemAtIndex(I4).firstChild.firstChild.setAttribute("src","chrome://lastpass/skin/folder-closed.gif")
}else{if(!I5&&typeof(I0[Ja])!="undefined"){I6.toggleOpenState(I4);I6.getItemAtIndex(I4).firstChild.firstChild.setAttribute("src","chrome://lastpass/skin/folder-open.gif")}}}}}};this.update_recently_used=function(e,I5){if(e){for(var I0=e.childNodes.length-1;I0>=0;I0--){e.removeChild(e.childNodes.item(I0))
}var t=new Array();for(var I0 in G9){if(G9[I0].url=="http://group"){continue}t[t.length]=G9[I0]}for(var I0 in CK){t[t.length]=CK[I0]}t.sort(LP.lp_sort_case_insensitive_lasttouch);if(t.length==0){var I7=I5.createElement("menuitem");I7.setAttribute("label",LP.lpgs("None Available"));e.appendChild(I7)}else{var I1=new Array();
for(var I0=0;I0<10&&I0<t.length;I0++){I1[I0]=t[t.length-I0-1]}for(var I0=0;I0<I1.length;I0++){var I4=I1[I0];var z="LP.lpLaunchUrl('"+I4.id+"', '"+I4.manual+"', '"+I4.is_http+"');";var I6="if (event.button == 1) { "+z+" LP.lpCloseMenus(document); }";var I7=I5.createElement("menuitem");I7.setAttribute("oncommand",z+" return true;");
I7.setAttribute("onclick",I6);I7.setAttribute("oncontextmenu","LP.lpcurrcontextmenusite = '"+I4.id+"'; return true;");I7.setAttribute("context","lpt_site-context-menu");I7.setAttribute("label",I4.name);var I3=I5.createElement("image");I3.setAttribute("src",CM(I4.fiid));I3.setAttribute("width","16");I3.setAttribute("height","16");
I7.appendChild(I3);var I2=I5.createElement("label");I2.setAttribute("value",I4.name);I7.appendChild(I2);e.appendChild(I7)}}}};this.compare_urls=function(t,e,z){if(typeof(t)!="string"){return false}if(typeof(e)!="string"){return false}if(z&&t.indexOf("*")!=-1){return new RegExp("^"+FI(t).replace(/\\\*/g,".*")+"$").exec(e)
}else{return t==e}};this.hide_context=function(t){try{var I0=t.target.ownerDocument?t.target.ownerDocument:LP.getBrowser().contentDocument;if(I0.getElementById("lpt_lpcontentareacontextmenu")){if(Bq){I0.getElementById("lpt_lpcontentareacontextmenu").setAttribute("hidden",true);I0.getElementById("lpt_lpcontentareacontextmenu").setAttribute("display","none");
if(I0.getElementById("lpt_lpcontentareacontextmenuseparator")){I0.getElementById("lpt_lpcontentareacontextmenuseparator").setAttribute("hidden",true)}I0.getElementById("lpt_lpfillformsmenu4").setAttribute("hidden",true)}else{I0.getElementById("lpt_lpcontentareacontextmenu").setAttribute("hidden",false);
I0.getElementById("lpt_lpcontentareacontextmenu").setAttribute("display","");if(I0.getElementById("lpt_lpcontentareacontextmenuseparator")){I0.getElementById("lpt_lpcontentareacontextmenuseparator").setAttribute("hidden",false)}I0.getElementById("lpt_lpfillformsmenu4").setAttribute("hidden",false)}}}catch(z){HX("Error in hide_context: "+z+" ln: "+z.lineNumber,null)
}};this.lpSubmitForm=function(){if(!DH){this.lpOpenLogin();return}var e=LP.getBrowser().selectedTab.linkedBrowser;var t=e.contentDocument;if(t.aid!=null&&typeof(t.aid)=="object"&&typeof(t.aidindex)=="number"){LP.lp_noteAcceptHelper(t.aid[t.aidindex].id,null,false)}};this.MakeOTP=function(){if(EV==null||EV.length==0){return
}if(Hk==null||Hk.length==0){return}var I0=F4(EV);Em();var I4=new Array();var I6=16;for(var I1=0;I1<I6;I1++){I4[I1]=0}AY(I4);var I3="";for(var I1=0;I1<I6;I1++){I3+=String.fromCharCode(I4[I1])}var I2=Ds(A1(I3),Hk);var t=GS(CB(I0+I3));var e=Ds(A1(Hk),t);var z=CB(CB(I0+I3)+I3);var I5="newkey=1&xml=1&hash="+LP.en(z);
I5+="&encrypted_otp="+LP.en(I2);I5+="&rand_encrypted_key="+LP.en(e);I5+="&recovery=1";LP.lpMakeRequest(LP.lp_base+"otp.php",I5,CA,function(){},I3)};this.DeleteOTP=function(){U(Ai+"_ff.otp");U(Ai+"_ff.sotp")};this.GetOTPHash=function(){var t=B(Ai+"_ff.sotp");if(t==false){t=B(Ai+"_ff.otp");if(t!=false){var e=FW(t,true);
Ce(Ai+"_ff.sotp",e);U(Ai+"_ff.otp")}}else{t=IJ(t,true)}if(t==false){return""}var z=CB(CB(F4(EV)+t)+t);return z};function CA(z,e,t){if(z.readyState==4&&z.status==200&&z.responseXML&&z.responseXML.documentElement){var I0=FW(t,true);Ce(Ai+"_ff.sotp",I0)}}this.IsVaultHidden=function(){return CT};this.setupUrlPrefix=function(){if(!LP.lpis_win){return
}try{var z="";if("@mozilla.org/windows-registry-key;1" in Components.classes){var I1=Components.classes["@mozilla.org/windows-registry-key;1"].createInstance(Components.interfaces.nsIWindowsRegKey);try{I1.open(I1.ROOT_KEY_CURRENT_USER,"SOFTWARE\\LastPass",I1.ACCESS_READ);z=I1.readStringValue("URLPrefix2");
I1.close()}catch(I3){}if(z==""){I1.open(I1.ROOT_KEY_LOCAL_MACHINE,"SOFTWARE\\LastPass",I1.ACCESS_READ);z=I1.readStringValue("URLPrefix2");I1.close()}}else{if("@mozilla.org/winhooks;1" in Components.classes){var t=Components.classes["@mozilla.org/winhooks;1"].getService(Components.interfaces.nsIWindowsRegistry);
try{z=t.getRegistryEntry(t.HKCU,"SOFTWARE\\LastPass","URLPrefix2")}catch(I3){}if(z==""){z=t.getRegistryEntry(t.HKLM,"SOFTWARE\\LastPass","URLPrefix2")}}}var I0=z.match(/\/\/([^\/]+)\//);if(I0){LP.lp_base=z}else{}}catch(I2){}};this.GetToolbarImageLang=function(){var t="en_US";if(GL!=null){t=GL.replace("/-/","_")
}var e=Array("en_US");for(var z in e){if(t==z){return t}return"en_US"}};this.SetLastTouch=function(e){e.last_touch=Ab()};this.CacheAccountSummary=function(){if(!DH){return}var I5=0;var I6=0;var z=new Array();for(var I1 in G9){if(G9[I1].url=="http://group"){continue}if(G9[I1].genpw){I6++}else{I5++}z[z.length]=G9[I1]
}z.sort(LP.lp_sort_case_insensitive_lasttouch);var I3=d.length;var I0=I5+"\n";I0+=I6+"\n";I0+=I3+"\n";var I2=0;var t=new Array();for(var I1=0;I1<z.length&&I2<10;I1++){var e=IB(z[z.length-I1-1].url);if(typeof(t[e])=="undefined"){I2++;t[e]=e;I0+=IB(e)+"\n"}}var I4=GS(CB(EV));I0=Ds(I0,I4);Ce(Ai+".cac",I0)
};this.getuuid=function(){try{var z=B("lp.suid");if(z==false){z=B("lp.uid");if(z==false){z=LP.lpCreatePass(32,1,1,1,1,1,1,1)}var e=FW(z,true);Ce("lp.suid",e);U("lp.uid")}else{z=IJ(z,true)}return z}catch(t){HX("Failure generating uuid");return""}};function Dt(){var I0=arguments.callee;while(I0){V(I0);
I0=I0.arguments.callee.caller}return;re=/function\W+([\w-]+)/i;re2=/this.([\w-]+)\s*=\s*function/i;var z="";while(I0){var t=(re.exec(I0))[1];var e=(re2.exec(I0));if(!e){e=""}else{e=e[1]}z+=(t)[1]+" or "+e+"(";for(i=0;i<I0.arguments.length-1;i++){z+="'"+I0.arguments[i]+"', "}if(arguments.length>0){z+="'"+I0.arguments[i]+"'"
}z+=")\n\n";I0=I0.arguments.callee.caller}V(z)}this.get_null_group=function(){return"_"+LP.lpgs("NullGroup")};this.fix_group_name=function(e){if(e==LP.get_null_group()){e=e.substring(1)}return e};function DM(Jr,Jz,I4){if(!Jr){return false}if(!DH){return false}if(Jr.readyState==4){if(Jr.status==200||(Jr.status==0&&Jz)){LP.lpacctsreq=Jr;
G9=new Array();GQ=new Array();EU=0;CK=new Array();Fv=new Array();FA=new Array();B4=new Array();Cm=new Array();Ib=new Array();El=new Array();GP=new Array();A7=new Array();Dk=new Array();FK=new Array();d=new Array();GA=new Array();Bs=new Array();if(Jr.responseXML==null||Jr.responseXML.documentElement==null){LP.lpClearCache(true);
return false}var JM=new RegExp(LP.lpgs("ff_captcha_regexp"),"i");var JC=Jr.responseXML.documentElement;var JI=JC.getElementsByTagName("error");if(JI.length>0){var I5=JI[0].hasAttribute("notloggedin");var JT=JI[0].hasAttribute("nosession");if(I5||JT){DS();return false}}var Ja=JC.getElementsByTagName("accounts");
if(!LP.adminoverride.length){if(Ja.length>0&&Ja[0].hasAttribute("encrypted_username")){var JW=Ja[0].getAttribute("encrypted_username");if(JW!=""&&Ds(EV)!=JW){HX("Encrypted username check failed: "+Ds(EV)+" vs "+JW+" for "+EV+" local "+I4,null);LP.lpClearCache(true);DS();LP.alert(LP.lpgs("An error has been encountered while loading your sites. Please relogin."));
return false}}}if(Ja.length>0){var JL=AC(Ai+"_lps.act.sxml")||AC(Ai+"_lps.act.xml");if(LP.lpdolostpwotp&&!JL&&!LP.lpprefsHasUserValue("StoreLostPWOTP")){LP.lpprefsSetBoolPref("StoreLostPWOTP",true)}}if(!I4&&Ja.length>0){k(Jr.responseText,null,"parse_getaccts.js")}if(Ja.length>0){var Jf=Ja[0].getAttribute("pd");
Eo=Jf!=null?Jf:0;BP=parseInt(Ja[0].getAttribute("accts_version"));if(!I4){H7=parseInt(Ja[0].getAttribute("accts_version"))}}var JR="";var J6=false;if(LP.lpprefsHasUserValue("identity")){JR=LP.lpprefsGetCharPref("identity")}var J2=JC.getElementsByTagName("identity");for(var Ju=0;Ju<J2.length;Ju++){var JV=new DT();
JV.iid=J2[Ju].getAttribute("iid");JV.iname=BD(J2[Ju].getAttribute("iname"));JV.aids=J2[Ju].getAttribute("aids");JV.ffids=J2[Ju].getAttribute("ffids");if(JV.ffids==null){JV.ffids=""}JV.pwprotect=(1==parseInt(J2[Ju].getAttribute("pwprotect")));GA[GA.length]=JV;if(JR==JV.iid){J6=true}}GA.sort(G1);Hr();if(!J6&&JR!=""){JR="";
LP.lpIdentityHelper("",true);LP.lpClearCache(true);DS();LP.lpalert_ex(LP.lpgs("Your selected Identity no longer exists. Defaulting to 'All' and logging off."));return false}var Ja=JC.getElementsByTagName("account");var I7=new Array();if(Ja){for(var Ju=0;Ju<Ja.length;Ju++){if(!Ja[Ju].hasAttribute("decryption_done")){Ja[Ju].setAttribute("name",D2(Ja[Ju].getAttribute("name")));
Ja[Ju].setAttribute("group",D2(Ja[Ju].getAttribute("group")));Ja[Ju].setAttribute("decryption_done",true)}I7[I7.length]=Ja[Ju]}}Ja=I7;Ja.sort(AU);for(var Ju=0;Ja!=null&&Ju<Ja.length;Ju++){var Jq=Ja[Ju].getAttribute("id");if(!LP.IdentityIsOk(JR,Jq)){continue}var JF=Ja[Ju].getAttribute("name");var J0=Ja[Ju].getAttribute("urid");
var Jc=Ck(Ja[Ju].getAttribute("url"));var JG=Ja[Ju].getAttribute("m");var e=Ja[Ju].getAttribute("http");var Js=Ja[Ju].getAttribute("fav");var JO=Ja[Ju].getAttribute("favico");var Jv=Ja[Ju].getAttribute("extra");var Jl=Ja[Ju].getAttribute("autologin");var Jb=(1==parseInt(Ja[Ju].getAttribute("basic_auth")));
var JN=(1==parseInt(Ja[Ju].getAttribute("sn")));var Jx=Ja[Ju].getAttribute("group");Jx=(Jx==""&&!JN?LP.get_null_group():(Jx==""&&JN?LP.lpgs("SecureNotes"):Jx));var JQ=Ja[Ju].getAttribute("fiid");var J8=(1==parseInt(Ja[Ju].getAttribute("genpw")));var I9=(1==parseInt(Ja[Ju].getAttribute("isbookmark")));
var z=Ja[Ju].getAttribute("never_autofill");var I2=Ja[Ju].getAttribute("last_touch");var t=BD(Ja[Ju].getAttribute("realm"));var J7=Ja[Ju].getAttribute("sharedfromaid");var I0=(1==parseInt(Ja[Ju].getAttribute("pwprotect")));var Jy={aid:Jq,manual:JG,is_http:e};if(parseInt(Js)==1){var Ji=new Cj();Ji.id=Jq;
Ji.command=Jy;Dk[Dk.length]=Ji}var JJ=new Iu();JJ.pendingshare=false;JJ.name=JF;JJ.urid=J0;JJ.id=Jq;JJ.url=Jc;JJ.manual=JG;JJ.is_http=e;JJ.extra=Jv;JJ.fav=Js;JJ.favico=JO;JJ.autologin=Jl;JJ.basic_auth=Jb;JJ.group=Jx;JJ.fiid=JQ;JJ.genpw=J8;JJ.isbookmark=I9;JJ.never_autofill=z;JJ.last_touch=I2;JJ.sn=JN;
JJ.sharedfromaid=J7;JJ.save_all=false;JJ.pwprotect=I0;JJ.realm=t;JJ.logins=new Array();JJ.otherlogins=new Array();JJ.fields=new Array();var JB=Ja[Ju].getElementsByTagName("fld");for(var Jt=0;Jt<JB.length;Jt++){var JX=new BT();JX.name=JB[Jt].getAttribute("name");JX.type=JB[Jt].getAttribute("type");JX.value=JB[Jt].getAttribute("value");
JX.aftersubmit=(1==parseInt(Ja[Jt].getAttribute("aftersubmit")));if(JX.type=="radio"||JX.type=="checkbox"){JX.checked=parseInt(JB[Jp].getAttribute("checked"))==1?true:false;if(JX.type=="radio"&&!JX.checked){continue}}JJ.fields[JJ.fields.length]=JX}for(var Jn=1;Jn<=2;Jn++){var JU=Ja[Ju].getElementsByTagName(Jn==1?"login":"otherlogin");
for(var Jt=0;Jt<JU.length;Jt++){var J1=new GZ();J1.urid=JU[Jt].getAttribute("urid");J1.url=Ck(JU[Jt].getAttribute("url"));var JA=IR(J1.url);J1.server=JA.host;J1.tld=J(JA.host,J1.url);var Je=ED(J1.url,JA);if(!J8){B4[B4.length]=Je}J1.submit_id=JU[Jt].getAttribute("submit_id");J1.captcha_id=JU[Jt].getAttribute("captcha_id");
J1.custom_js=JU[Jt].getAttribute("custom_js");if(J1.custom_js!=""){}J1.username=JU[Jt].getAttribute("u");J1.password=JU[Jt].getAttribute("p");J1.openid_url=JU[Jt].getAttribute("o");J1.method=JU[Jt].getAttribute("method");J1.unencryptedUsername=BD(J1.username);if(Jt==0){JJ.username=J1.username;JJ.password=J1.password;
JJ.unencryptedUsername=J1.unencryptedUsername}J1.uname="";J1.pname="";J1.oname="";J1.fields=new Array();var JB=JU[Jt].getElementsByTagName("field");var I3=false;var I6=false;var Jo=true;for(var Jp=0;Jp<JB.length;Jp++){var JX=new BT();JX.name=JB[Jp].getAttribute("name");JX.type=JB[Jp].getAttribute("type");
JX.value=JB[Jp].getAttribute("value");JX.ordernum=JB[Jp].getAttribute("o");if(!JX.ordernum){Jo=false}if(JX.type=="text"&&JX.name!="openid_url"){if(J1.username!=""&&JX.value==J1.username){J1.uname=JX.name;I3=true}else{if(!I3&&(J1.pname==""||J1.uname=="")){J1.uname=JX.name}}}if(JX.type=="password"){if(J1.password!=""&&JX.value==J1.password){J1.pname=JX.name;
I6=true}else{if(!I6){J1.pname=JX.name}}}if(JX.type=="text"&&JX.name=="openid_url"){J1.oname=JX.name}if(JX.type=="radio"||JX.type=="checkbox"){JX.checked=parseInt(JB[Jp].getAttribute("checked"))==1?true:false;if(JX.type=="radio"&&!JX.checked){continue}}if(J1.captcha_id==""&&JX.type=="text"&&JM.exec(JX.name)){J1.captcha_id=JX.name
}J1.fields[J1.fields.length]=JX}if(Jo){J1.fields.sort(HB)}J1.otherfields=new Array();var I8=JU[Jt].getElementsByTagName("otherfield");Jo=true;for(var Jp=0;Jp<I8.length;Jp++){var JX=new BT();JX.name=I8[Jp].getAttribute("name");JX.type=I8[Jp].getAttribute("type");JX.value=I8[Jp].getAttribute("value");JX.formname=I8[Jp].getAttribute("formname");
JX.ordernum=I8[Jp].getAttribute("o");if(!JX.ordernum){Jo=false}if(JX.type=="radio"||JX.type=="checkbox"){JX.checked=parseInt(I8[Jp].getAttribute("checked"))==1?true:false;if(JX.type=="radio"&&!JX.checked){continue}}if(J1.urid=="0"){JJ.save_all=true}if(J1.captcha_id==""&&JX.type=="text"&&JM.exec(JX.name)){J1.captcha_id=JX.name
}J1.otherfields[J1.otherfields.length]=JX}if(Jo){J1.otherfields.sort(HB)}if(Jn==1){JJ.logins[JJ.logins.length]=J1}else{JJ.otherlogins[JJ.otherlogins.length]=J1}}}var Jg=AN(JJ.url);JJ.tld=Jg;if(Jb){FK[Jq]=JJ;FK[Jq].last_time=0;FK[Jq].realm=t}if(JJ.sn){CK[Jq]=JJ}else{G9[Jq]=JJ}EU++;if(typeof(Fv[Jg])=="undefined"){Fv[Jg]=new Array()
}Fv[Jg][Jq]=true;if(JJ.genpw){FA[Jq]=true}}if(Gi&&typeof(Gi)=="function"){Gi();Gi=null}var Jm=JC.getElementsByTagName("neveraccount");for(var Ju=0;Jm!=null&&Ju<Jm.length;Ju++){var Jc=Jm[Ju].getAttribute("url");if(Jc.indexOf(".")==-1){Jc=GS(Jc)}Cm[Cm.length]=Jc}var JH=JC.getElementsByTagName("nevergenerate");
for(var Ju=0;JH!=null&&Ju<JH.length;Ju++){var Jc=JH[Ju].getAttribute("url");if(Jc.indexOf(".")==-1){Jc=GS(Jc)}Ib[Ib.length]=Jc}var J3=JC.getElementsByTagName("neverformfill");for(var Ju=0;J3!=null&&Ju<J3.length;Ju++){var Jc=J3[Ju].getAttribute("url");if(Jc.indexOf(".")==-1){Jc=GS(Jc)}El[El.length]=Jc
}var JD=JC.getElementsByTagName("neverautologin");for(var Ju=0;JD!=null&&Ju<JD.length;Ju++){var Jc=JD[Ju].getAttribute("url");if(Jc.indexOf(".")==-1){Jc=GS(Jc)}GP[GP.length]=Jc}var Jh=JC.getElementsByTagName("formfill");for(var Ju=0;Jh!=null&&Ju<Jh.length;Ju++){var JY=Jh[Ju].getAttribute("ffid");if(!LP.IdentityFfidIsOk(JR,JY)){continue
}var JZ=new Bw();JZ.ffid=JY;JZ.profiletype=Jh[Ju].getAttribute("profiletype");JZ.profilename=BD(Jh[Ju].getAttribute("profilename"));JZ.profilelanguage=Jh[Ju].getAttribute("profilelanguage");JZ.firstname=Jh[Ju].getAttribute("firstname");JZ.middlename=Jh[Ju].getAttribute("middlename");JZ.lastname=Jh[Ju].getAttribute("lastname");
JZ.email=Jh[Ju].getAttribute("email");JZ.company=Jh[Ju].getAttribute("company");JZ.ssn=Jh[Ju].getAttribute("ssn");JZ.birthday=Jh[Ju].getAttribute("birthday");JZ.address1=Jh[Ju].getAttribute("address1");JZ.address2=Jh[Ju].getAttribute("address2");JZ.address3=Jh[Ju].getAttribute("address3");JZ.title=Jh[Ju].getAttribute("title");
JZ.city=Jh[Ju].getAttribute("city");JZ.county=Jh[Ju].getAttribute("county");JZ.state=Jh[Ju].getAttribute("state");JZ.state_name=Jh[Ju].getAttribute("state_name");JZ.zip=Jh[Ju].getAttribute("zip");JZ.country=Jh[Ju].getAttribute("country");JZ.country_cc3l=Jh[Ju].getAttribute("country_cc3l");JZ.country_name=Jh[Ju].getAttribute("country_name");
JZ.countryphone=Jh[Ju].getAttribute("phone3lcc");JZ.countryevephone=Jh[Ju].getAttribute("evephone3lcc");JZ.countryfaxphone=Jh[Ju].getAttribute("fax3lcc");JZ.countrymobphone=Jh[Ju].getAttribute("mobilephone3lcc");JZ.phone=Jh[Ju].getAttribute("phone");JZ.fax=Jh[Ju].getAttribute("fax");JZ.mobilephone=Jh[Ju].getAttribute("mobilephone");
JZ.evephone=Jh[Ju].getAttribute("evephone");JZ.phoneext=Jh[Ju].getAttribute("phoneext");JZ.evephoneext=Jh[Ju].getAttribute("eveext");JZ.mobilephoneext=Jh[Ju].getAttribute("mobileext");JZ.faxphoneext=Jh[Ju].getAttribute("faxext");JZ.ccname=Jh[Ju].getAttribute("ccname");JZ.ccnum=Jh[Ju].getAttribute("ccnum");
JZ.ccstart=Jh[Ju].getAttribute("ccstart");JZ.ccexp=Jh[Ju].getAttribute("ccexp");JZ.cccsc=Jh[Ju].getAttribute("cccsc");JZ.ccissuenum=Jh[Ju].getAttribute("ccissuenum");JZ.username=Jh[Ju].getAttribute("username");JZ.gender=Jh[Ju].getAttribute("gender");JZ.pwprotect=(1==parseInt(Jh[Ju].getAttribute("pwprotect")));
JZ.timezone=Jh[Ju].getAttribute("timezone");JZ.bankname=Jh[Ju].getAttribute("bankname");JZ.bankacctnum=Jh[Ju].getAttribute("bankacctnum");JZ.bankroutingnum=Jh[Ju].getAttribute("bankroutingnum");JZ.customfields=new Array();var J5=Jh[Ju].getElementsByTagName("customfield");for(var Jt=0;Jt<J5.length;Jt++){var Jw=new Do();
Jw.cfid=J5[Jt].getAttribute("cfid");Jw.text=J5[Jt].getAttribute("text");Jw.value=J5[Jt].getAttribute("value");Jw.alttext=J5[Jt].getAttribute("alttext");JZ.customfields[JZ.customfields.length]=Jw}JZ.notes=Jh[Ju].getAttribute("notes");d[d.length]=JZ}d.sort(Ca);FB();var JE=JC.getElementsByTagName("equivdomain");
for(var Ju=0;JE!=null&&Ju<JE.length;Ju++){var J4=JE[Ju].getAttribute("edid");var JS=GS(JE[Ju].getAttribute("domain"));if(typeof(Bs[J4])=="undefined"){Bs[J4]=new Array()}Bs[J4][Bs[J4].length]=JS;Bs[JS]=J4}for(var Ju in G9){var Jg=G9[Ju].tld;if(typeof(Bs[Jg])!="undefined"){var J4=Bs[Jg];if(typeof(Bs[J4])!="undefined"){for(var Jt=0;
Jt<Bs[J4].length;Jt++){var JP=Bs[J4][Jt];if(typeof(Fv[JP])=="undefined"){Fv[JP]=new Array()}Fv[JP][Ju]=true}}}}var Jd=JC.getElementsByTagName("pendingshare");for(var Ju=0;Jd!=null&&Ju<Jd.length;Ju++){var Jk=Jd[Ju].getAttribute("aid");var JQ=Jd[Ju].getAttribute("fiid");var JK=GS(Jd[Ju].getAttribute("sharerusername"));
var I1=new Iu();I1.pendingshare=true;I1.name=LP.lpgs("Share offer from")+" "+JK;I1.id=Jk;I1.group=LP.lpgs("(New Pending Share Offers)");I1.fiid=JQ;I1.fav="0";I1.logins=new Array();I1.last_touch=0;I1.genpw=false;GQ[Jk]=I1}Ic(JC.getElementsByTagName("secprompts")[0],"xml");LP.lpGetCurrentWindow().setTimeout("LP.lpRebuildToolsMenu_all();",0);
LP.lpDisplayAccounts_win();Cw=true}else{var Jj="Problem in populateResponse. status="+Jr.status+" ignorestatus: "+Jz;HX(Jj,null);j("ErrorGetAcctsMsg")}}return true}this.addconfirm_window_load=function(I6,I5){I6.title=LP.lpgs("Add LastPass Site");I6.documentElement.getButton("accept").setAttribute("label",LP.lpgs("SaveSite"));
I6.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("NoThanks"));LP.sr(I6,"newacct","label","Add New Site");LP.sr(I6,"namelabel","value","Name");LP.sr(I6,"grouplabel","value","Group");LP.sr(I6,"fav","label","Make This a Favorite");LP.sr(I6,"pwprotect","label","Require Password Reprompt");
LP.sr(I6,"autologin","label","AutoLogin");LP.sr(I6,"replacct","label","Replace Existing Site");var I4=I5.arguments;if(I4.length>0){I6.getElementById("lpname").value=I4[0];I6.addconfirm_tld=I4[0]}if(I4.length>1){I6.getElementById("lpgrouping").value=I4[1]}if(I4.length>2){I6.addconfirm_key=I4[2]}if(I4.length>3){I6.addconfirm_username=I4[3]
}if(I4.length>4){I6.addconfirm_encryptedpassword=I4[4]}if(I4.length>5){I6.getElementById("lpname").value=I4[5]}var I7=I6.getElementById("lpgroupingpopup");var I3=I6.getElementById("lpexistingpopup");for(var I2=I7.childNodes.length-1;I2>=0;I2--){I7.removeChild(I7.childNodes.item(I2))}I6.addconfirm_replaceAccts=new Array();
var e=new Array();for(var I2 in G9){if(G9[I2].logins&&LP.compare_tlds(G9[I2].logins[0].tld,I6.addconfirm_tld)&&!G9[I2].isbookmark&&!G9[I2].basic_auth&&!G9[I2].genpw){I6.addconfirm_replaceAccts[I6.addconfirm_replaceAccts.length]=G9[I2]}if(G9[I2].group!=""&&G9[I2].group!=LP.get_null_group()&&!DU(G9[I2].group,e)){e[e.length]=G9[I2].group
}}for(var I2 in CK){if(CK[I2].group!=""&&CK[I2].group!=LP.get_null_group()&&!DU(CK[I2].group,e)){e[e.length]=CK[I2].group}}e.sort(LP.lp_sort_case_insensitive);for(var I2=0;I2<e.length;I2++){var I8=I6.createElement("menuitem");I8.setAttribute("label",e[I2]);I7.appendChild(I8)}var I1=false;I6.addconfirm_replaceAccts.sort(LP.lp_sort_case_insensitive_name);
for(var I2 in I6.addconfirm_replaceAccts){I1=true;var I8=I6.createElement("menuitem");I8.setAttribute("label",I6.addconfirm_replaceAccts[I2].name);I3.appendChild(I8)}if(!I1){var I0=I6.getElementById("newacct");var z=I6.getElementById("replacct");var t=I6.getElementById("lpexisting");if(I0){I0.style.display="none"
}if(z){z.hidden=true}if(t){t.hidden=true}}else{I6.getElementById("newacct").select}I6.documentElement.getButton("accept").focus()};this.addconfirm_switchdisable=function(I5,I3){var I6=I5.getElementById("replacct");var t=(I6&&I6.selected?true:false);var I0=I5.getElementById("lpname");if(I0){I0.disabled=t
}var e=I5.getElementById("lpgrouping");if(e){e.disabled=t}var z=I5.getElementById("fav");if(z){z.disabled=t}var I1=I5.getElementById("pwprotect");if(I1){I1.disabled=t}var I2=I5.getElementById("autologin");if(I2){I2.disabled=t}var I4=I5.getElementById("lpexisting");if(I4){I4.disabled=!t}};this.addconfirm_accept_click=function(Jd,I9){var Je=Jd.getElementById("lpname").value;
var I3=Jd.getElementById("lpgrouping").value;var I1=0;var e="";var Jc=false;var Ja=false;var I0=false;var Jb="";var z=Jd.getElementById("replacct");var I6=false;if(z&&z.selected&&Jd.addconfirm_replaceAccts.length>0){I6=true;var t=Jd.getElementById("lpexisting");if(t){if(t.selectedIndex==-1){LP.lpalert_ex(LP.lpgs("PleaseMakeSelection"),I9);
return false}else{var I2=0;for(var I7 in Jd.addconfirm_replaceAccts){if(I2==t.selectedIndex){I1=Jd.addconfirm_replaceAccts[I7].id;Jb="&aid="+LP.en(I1);if(Jd.addconfirm_replaceAccts[I7].logins.length>0){Jb+="&openid_url="+LP.en(Jd.addconfirm_replaceAccts[I7].logins[0].openid_url)}e=Jd.addconfirm_replaceAccts[I7].extra;
Jb+="&extra="+LP.en(e);if(parseInt(Jd.addconfirm_replaceAccts[I7].fav)==1){Jc=true;Jb+="&fav=on"}if(Jd.addconfirm_replaceAccts[I7].pwprotect){Ja=true;Jb+="&pwprotect=on"}if(parseInt(Jd.addconfirm_replaceAccts[I7].autologin)==1){I0=true;Jb+="&autologin=on"}Je=Jd.addconfirm_replaceAccts[I7].name;I3=Jd.addconfirm_replaceAccts[I7].group;
break}I2++}}}}else{if(Je==""){LP.lpalert_ex(LP.lpgs("You must enter a name."),I9);return false}Jc=Jd.getElementById("fav").checked;if(Jc){Jb="&fav=on"}Ja=Jd.getElementById("pwprotect").checked;if(Ja){Jb+="&pwprotect=on"}I0=Jd.getElementById("autologin").checked;if(I0){Jb+="&autologin=on"}}var I5=Bz[Jd.addconfirm_key];
if(I5){var I8=new Iu();I8.pendingshare=false;I8.id=I1;I8.name=Je;I8.url=I5.url;I8.group=I3;I8.username=Ds(I5.username);I8.password=I5.encryptedPassword;I8.unencryptedUsername=I5.username;I8.oldusername="";I8.oldpassword="";I8.extra=e;I8.fav=Jc?"1":"0";I8.never_autofill="0";I8.autologin=I0?"1":"0";I8.pwprotect=Ja;
I8.isbookmark=false;I8.basic_auth=false;I8.realm="";I8.save_all=false;if(I5.postdata.indexOf("createacct=1")!=-1){var I4=IR(I5.url);if(I4&&I4.protocol&&I4.host){I5.url=I4.protocol+"://"+I4.host}}else{I8.logins=new Array();I8.logins[0]=new GZ();I8.logins[0].fields=I5.fields}I5.ai=I8;if(!I6){Jb+="&localupdate=1&extjs=1"
}}Ey(Je,I3,Jd.addconfirm_key,Jb);return true};this.addconfirm_cancel_click=function(t,e){CL(t.addconfirm_key,t.addconfirm_tld);return true};this.addconfirm_never_click=function(t,e){E6(t.addconfirm_key);CL(t.addconfirm_key,t.addconfirm_tld);t.getElementById("LPAddConfirm").cancelDialog();return true};
this.changepw_window_load=function(I5,I3){I5.title=LP.lpgs("Change Password Detected");I5.documentElement.getButton("accept").setAttribute("label",LP.lpgs("Change"));I5.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("Close"));LP.sr(I5,"desc","value","LastPass detected a password change for");
LP.sr(I5,"selectall","value","Select All");LP.sr(I5,"unselectall","value","Unselect All");var I2=I3.arguments;var t=I5.getElementById("linked");var I1=I5.getElementById("desc");var z=I2.length>3?I2[3]:"";var e=0;if(I2.length>0){I5.changepw_idToUsername=I2[0];for(var I0 in I5.changepw_idToUsername){var I7=I5.createElement("checkbox");
var I4=Ex(G9[I0]);I7.setAttribute("label",I4);t.appendChild(I7);if(z==""){z=AN(G9[I0].url)}e++}I1.setAttribute("value",I1.getAttribute("value")+" "+z)}if(I2.length>1){I5.changepw_pw=I2[1]}if(e>=5){I5.getElementById("chpwgroupcontrols").setAttribute("hidden",false)}else{t.setAttribute("height",e*25)}var I6=I5.getElementById("instr");
if(I2.length>2&&I2[2]=="1"){I6.setAttribute("value",LP.lpgs("ChangePwInstr2"))}else{I6.setAttribute("value",LP.lpgs("ChangePwInstr1"))}};this.changepw_accept_click=function(I6,I3){var I5="";var I2="";var z="";var t=I6.getElementById("linked");var e=0;var I4=0;for(var I1 in I6.changepw_idToUsername){var I0=t.childNodes[e];
if(I0.checked){if(I4!=0){I2="&username"+I4+"=";z="&id"+I4+"="}else{I2="&username=";z="&id=";I5="&password="+LP.en(Ds(I6.changepw_pw))}I2+=LP.en(Ds(I6.changepw_idToUsername[I1]));z+=LP.en(I1);I5+=I2+z;I4++}e++}if(I5!=""){Cy(null,null,null,I5)}I6.changepw_idToUsername=null;I6.changepw_pw=null;return true
};this.changepw_cancel_click=function(t,e){t.changepw_idToUsername=null;t.changepw_pw=null;return true};this.changepw_select_all=function(z){var I0=z.getElementById("linked");for(var t=0;I0&&t<I0.childNodes.length;t++){var e=I0.childNodes[t];e.checked=true}};this.changepw_unselect_all=function(z){var I0=z.getElementById("linked");
for(var t=0;I0&&t<I0.childNodes.length;t++){var e=I0.childNodes[t];e.checked=false}};this.createFieldsPane=function(I9,t,I7,I5){B1(t);var I3=new Array();var e=new Array(I7.logins,I7.otherlogins);for(var I8=0;I8<e.length;I8++){for(var I4=0;I4<e[I8].length;I4++){var Ja=e[I8][I4];urid=Ja.urid;if(I8==0&&I4==0&&I7.aid!=0&&!I5){var I1=I9.createElement("hbox");
var I6=I9.createElement("label");I6.setAttribute("value",LP.lpgs("Add Field"));I6.setAttribute("class","text-link");I6.setAttribute("id",Jb+"_show");I6.setAttribute("onclick","showAddFieldDlg();");I1.appendChild(I6);t.appendChild(I1)}var Jd=new Array(Ja.fields,Ja.otherfields);for(var I2=0;I2<Jd.length;
I2++){for(var I0=0;I0<Jd[I2].length;I0++){var Jc=Jd[I2][I0];var z=Jc.name+"_"+Jc.type+"_"+Jc.value;if(DU(z,I3)){continue}I3[I3.length]=z;var Jb;if(I2==0){Jb=Jc.type+"_"+Jc.name+"_"+urid}else{Jb=Jc.formname+"_"+Jc.type+"_"+Jc.name+"_"+urid}LP.DrawField(I9,t,Jb,Jc,I7,urid,I5,false)}}}}};this.DrawField=function(I6,e,I7,I8,I5,z,I0,I4){var t=null;
if(I8.type=="text"||I8.type=="password"||I8.type=="textarea"){t=I6.createElement("hbox");var I9=I6.createElement("label");I9.setAttribute("value",I8.name);t.appendChild(I9);var I3=I6.createElement("textbox");I3.setAttribute("type",I8.type);I3.setAttribute("value",BD(I8.value));I3.setAttribute("id",I7);
I3.setAttribute("size","20");if(I8.type=="textarea"){I3.setAttribute("rows","6");I3.setAttribute("multiline","true")}if(I0){I3.setAttribute("readonly","true")}t.appendChild(I3);if(I8.type=="password"){var I2=I6.createElement("label");I2.setAttribute("value",LP.lpgs("ShowPw"));I2.setAttribute("class","text-link");
I2.setAttribute("id",I7+"_show");if(I5.sharedfromaid!=null&&I5.sharedfromaid!=0){I2.setAttribute("onclick","alert_shared();")}else{I2.setAttribute("onclick","toggle_password('"+I7+"');")}t.appendChild(I2)}}else{if(I8.type=="select-one"||I8.type=="select-multiple"){t=I6.createElement("hbox");var I9=I6.createElement("label");
I9.setAttribute("value",I8.name);t.appendChild(I9);var I3=I6.createElement("menulist");I3.setAttribute("id",I7);if(I0){I3.setAttribute("readonly","true")}if(I4){I3.setAttribute("editable","true")}else{I3.setAttribute("value",I8.value);I3.value=I8.value}var I2=I6.createElement("menupopup");var I1=I6.createElement("menuitem");
I1.setAttribute("label",I8.value);I2.appendChild(I1);I3.appendChild(I2);t.appendChild(I3)}else{if(I8.type=="checkbox"){t=I6.createElement("hbox");var I9=I6.createElement("checkbox");I9.setAttribute("label",I8.name);I9.setAttribute("id",I7);if(I8.checked){I9.setAttribute("checked","true")}if(I0){I9.setAttribute("disabled","true")
}t.appendChild(I9)}else{if(I8.type=="radio"){t=I6.createElement("hbox");var I9=I6.createElement("radiogroup");var I3=I6.createElement("radio");I3.setAttribute("label",I8.name);I3.setAttribute("id",I7);if(I8.checked){I3.setAttribute("selected","true")}if(I0){I3.setAttribute("disabled","true")}I9.appendChild(I3);
t.appendChild(I9)}}}}if(t!=null){if(!I0){var I2=I6.createElement("label");I2.setAttribute("value","[ - ]");I2.setAttribute("class","text-link");I2.setAttribute("id",I7+"_delete");I2.setAttribute("onclick","delete_field('"+I5.id+"','"+z+"','"+I8.name+"','"+I8.value+"');");t.appendChild(I2)}e.appendChild(t)
}};this.changegrp_window_load=function(I3,t){I3.title=LP.lpgs("Change Group Name");I3.documentElement.getButton("accept").setAttribute("label",LP.lpgs("Change"));I3.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("Close"));LP.sr(I3,"changegrptext","value","Select or enter a new group name");
var z=t.arguments;if(z&&z.length==1){I3.origgrp=z[0]}else{if(z&&z.length==2){I3.openerdoc=z[0];I3.openerwin=z[1]}}var I1=I3.getElementById("lpgroupingpopup");var e=new Array();for(var I0 in G9){if(G9[I0].group!=""&&G9[I0].group!=LP.get_null_group()&&!DU(G9[I0].group,e)){e[e.length]=G9[I0].group}}for(var I0 in CK){if(CK[I0].group!=""&&CK[I0].group!=LP.get_null_group()&&!DU(CK[I0].group,e)){e[e.length]=CK[I0].group
}}e.sort(LP.lp_sort_case_insensitive);for(var I0=0;I0<e.length;I0++){var I2=I3.createElement("menuitem");I2.setAttribute("label",e[I0]);I1.appendChild(I2)}};this.changegrp_accept_click=function(t,e){var z=t.getElementById("lpgrouping").value;if(typeof(t.origgrp)!="undefined"){IN(t,z)}else{LP.moveSelectedToGroup(z,t.openerdoc,t.openerwin)
}LP.saveGroupState(null,"changegrp_accept_click");return true};function IN(I0,I1){var t=I0.origgrp;if(t.indexOf("\\")!=-1&&I1.indexOf("\\")==-1){I1=t.substring(0,t.lastIndexOf("\\"))+"\\"+I1}if(I1==""){I1=LP.get_null_group()}for(var e in G9){if(G9[e].group==t){G9[e].group=I1}}for(var e in CK){if(CK[e].group==t){CK[e].group=I1
}}if(I1==LP.get_null_group()){I1=""}if(t==LP.get_null_group()){t=""}BP++;LP.lpDisplayAccounts_all();var z="origgrp="+LP.en(Ds(t))+"&newgrp="+LP.en(Ds(I1))+"&xml=1";LP.lpMakeRequest(LP.lp_base+"groups.php",z,FH)}this.changegrp_cancel_click=function(t,e){return true};this.addfield_window_load=function(I4,e){I4.title=LP.lpgs("Add Field");
I4.documentElement.getButton("accept").setAttribute("label",LP.lpgs("OK"));I4.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("Cancel"));LP.sr(I4,"namelabel","value","Name");LP.sr(I4,"typelabel","value","Field Type");LP.sr(I4,"formnamelabel","value","Form Name");var t=e.arguments;if(t){if(t.length>0){I4.id=t[0]
}if(t.length>1){I4.fieldsdoc=t[1]}}var I2=I4.getElementById("typepopup");var I3=I4.createElement("menuitem");I3.setAttribute("label",LP.lpgs("Text"));I2.appendChild(I3);I3=I4.createElement("menuitem");I3.setAttribute("label",LP.lpgs("Password"));I2.appendChild(I3);I3=I4.createElement("menuitem");I3.setAttribute("label",LP.lpgs("Select"));
I2.appendChild(I3);I3=I4.createElement("menuitem");I3.setAttribute("label",LP.lpgs("Checkbox"));I2.appendChild(I3);var I0=I4.getElementById("type");I0.selectedIndex=0;if(G9[I4.id]&&G9[I4.id].save_all){I4.getElementById("formnamerow").hidden=false;var I1="";if(G9[I4.id].logins.length>0){for(var z=0;z<G9[I4.id].logins[0].otherfields.length;
z++){if(z==0){I1=G9[I4.id].logins[0].otherfields[z].formname}else{if(G9[I4.id].logins[0].otherfields[z].formname!=I1){I1="";break}}}}I4.getElementById("formname").value=I1}};this.addfield_accept_click=function(I8,I7){var z=I8.getElementById("name").value;var I4=I8.getElementById("type").selectedIndex;
var I5=I8.getElementById("formname").value;if(z==""){LP.alert(LP.lpgs("You must enter a name."),I7);return false}var I0=G9[I8.id];var I9=null;var I2=null;var I3=null;if(I0&&I0.logins.length>0){I9=I0.logins[0];I3=I0.save_all?I9.otherfields:I9.fields;I2=I9.urid;for(var I1=0;I1<I3.length;I1++){var t=I3[I1];
if(t&&t.name==z&&(!I0.save_all||t.formname==I5)){LP.alert(LP.lpgs("You must enter a unique name."),I7);return false}}}var I6="text";if(I4==1){I6="password"}else{if(I4==2){I6="select-one"}else{if(I4==3){I6="checkbox"}}}var t=null;if(I9){t=new BT();t.name=z;t.type=I6;t.value="";if(I0&&I0.save_all){t.formname=I5
}I3[I3.length]=t}if(t&&typeof(I8.fieldsdoc)!="undefined"){var Ja=t.type+"_"+t.name+"_"+I2;if(I0&&I0.save_all){Ja=t.formname+"_"+Ja}LP.DrawField(I8.fieldsdoc,I8.fieldsdoc.getElementById("fields"),Ja,t,I0,I2,false,true)}var e=LP.lp_base+"fields.php?add=1&aid="+LP.en(I0.id)+"&urid="+LP.en(I2)+"&name="+LP.en(z)+"&type="+LP.en(I6);
if(I0&&I0.save_all){e+="&formname="+LP.en(I5)}LP.lpMakeRequest(e,"",IO);return true};this.addfield_cancel_click=function(t,e){return true};var Fu="";var Cl="";var Bu="";function IV(){Fu="";Cl="";Bu=""}function Iw(e){Bu=e[0].getAttribute("privatekeyenchash")}function Ep(e,z){if(!BL()){return}if(Hk==null||Hk==""){HX("lprsa_login : lp_local_key is invalid");
return}if(z[0].getAttribute("donotregeneratekeys")=="1"){return}var I1=0;if(e){IV();I1=2}if(Bu==""){z[0].setAttribute("donotregeneratekeys","1");var t=Hk;var I0=A1(t);I0=I0.toUpperCase();var I3={};var I2={};if(BA.xGenerateKeys(I0,I3,I2)!=true||I3.value==null||I3.value==""||I2.value==null||I2.value==""){HX("lprsa_login : failed to generating new rsa key pair",null);
return}HH(I3.value,I2.value,I1);return}if(Aw("readfromfile")==""||Cl==""||CB(Cl)!=Bu){HH("","");return}}function HZ(){IV()}function HH(I0,z,I1){if(!BL()){return}var t=(typeof(I1)=="undefined"||I1==0)?0:I1;var e="privatekeyenc="+LP.en(I0)+"&publickey="+LP.en(z)+"&forcewriteprivate="+LP.en(t);if(I0==""&&z==""){}else{}LP.lpMakeRequest(LP.lp_base+"uploadrsakeys.php",e,IF)
}function IF(t){if(!BL()){return}if(t.readyState==4){if(t.status!=200){HX("lprsa_uploadrsakeysresponse : failed status="+t.status);return}if(t.responseXML!=null&&t.responseXML.documentElement!=null){var I1=t.responseXML.documentElement;var e=I1.getElementsByTagName("ok");var I0="";if(e.length>0){I0=e[0].getAttribute("privatekeyenchex");
if(I0!=null&&I0!=""){CH(I0);return}}}var z=t.responseText;if(z==null){z="null"}HX("lprsa_uploadrsakeysresponse : failed to process uploadrsakeys.php response. server returned responseText="+z,null)}}function CH(z){if(!BL()){return false}if(EV==null||EV==""){HX("lprsa_writersaprivatekeyenchextofile : lpusername is invalid");
return false}var t=BA.xCryptoHash(A1(EV))+"_ff_lppri.lps";if(t==""||t==null){HX("lprsa_writersaprivatekeyenchextofile : could not form filenamehex : lpusername="+EV);return false}Ce(t,z);var e=B(t);if(z!=e){HX("lprsa_writersaprivatekeyenchextofile : failed to write to a file. filenamehex="+t+" rsaprivatekeyenchex.length="+z.length+" readbackhex.length="+e.length,null);
return false}if(Aw("writetofile",true)==""){HX("lprsa_writersaprivatekeyenchextofile : failed to read back rsa file",null);return false}return true}function Aw(I3,Jb){if(!BL()){return""}if(Hk==null||Hk==""){HX("lprsa_readrsaprivatekeyhexfromfile : lp_local_key is invalid");return}if(EV==null||EV==""){HX("lprsa_readrsaprivatekeyhexfromfile : lpusername is invalid");
return}var I7=typeof(Jb)=="undefined"?0:1;if(!I7&&Fu!=""){return Fu}IV();var I8=BA.xCryptoHash(A1(EV))+"_ff_lppri.lps";if(I8==""||I8==null){HX("lprsa_readrsaprivatekeyhexfromfile : could not form filenamehex : reason="+I3+" lpusername="+EV);return""}var I6=false;try{var I0=Ad(I8,true);I0.append(I8);if(I0.exists()){I6=true
}}catch(I5){}if(!I6){return""}var Ja=B(I8);if(!Ja||Ja==null||Ja==""){HX("lprsa_readrsaprivatekeyhexfromfile : could not read file : reason="+I3+" filenamehex="+I8);return""}var z=Hk;var I2=A1(z);I2=I2.toUpperCase();var t=BA.xCryptoDecrypt(I2,Ja);if(t==""||t==null){HX("lprsa_readrsaprivatekeyhexfromfile : failed to decrypt data reason="+I3+" datahex.length="+Ja.length+" userkeyhex.length="+I2.length);
U(I8);return""}var I9=GS(t);var I4=19;var I1=I9.indexOf(">LastPassPrivateKey");if(I9.length<=2*I4||I9.indexOf("LastPassPrivateKey<")!=0||I1!=(I9.length-I4)){HX("lprsa_readrsaprivatekeyhexfromfile : failed to decrypt rsa key file - did we change our password on another PC? reason="+I3+" userkeybin.length="+z.length+" userkeyhex.length="+I2.length+" datahex.length="+Ja.length+" decryptedhex.length="+t.length+" decryptedbin.length="+I9.length);
U(I8);return""}Cl=Ja;Fu=I9.substring(I4,I1);Bu=CB(Cl);return Fu}function I(){if(Ai==null||Ai==""){HX("lprsa_clearcache : lpusername_hash is invalid");return}U(Ai+"_lppri.lps");U(Ai+"_ff_lppri.lps")}function O(){I();IV()}function Z(I1,I2){var I0=I2.getElementById("eventdata1").value;var z=I2.getElementById("eventdata2").value;
var I1=I2.getElementById("eventtype");var I4=I2.getElementById("eventdata4");var I3=I2.getElementById("eventdata5");if(!I0||!z||!I1||!I4||!I3){I1.value="rsaerror";return}if(!BL()){I1.value="rsaerror";return}var e=BA.xCryptoRSAEncrypt(I0,z);if(""==e||null==e){I1.value="rsaerror";return}var I5=Aw("rsaencrypt");
var t=BA.xCryptoRSASign(I5,e);if(t==""||t==null){I1.value="rsaerror";return}I4.value=e;I3.value=t;I1.value="ok"}function EM(I0,I3){var I2=I3.getElementById("eventdata1").value;var I4=I3.getElementById("eventdata2").value;var t=I3.getElementById("eventdata3").value;var I0=I3.getElementById("eventtype");
var e=I3.getElementById("eventdata4");if(!I2||!t||!I0||!e){I0.value="rsaerror";return}if(!BL()){I0.value="rsaerror";return}var I1=Aw("rsadecrypt");var z=BA.xCryptoRSADecrypt(I1,t);if(z==""||z==null){I0.value="rsaerror";return}e.value=z;I0.value="ok"}var Hf=false;function Dr(){var t=false;if(t){return
}if(!LP.lpis_win){Hf=false;return}if(!BA){return}var z={observe:function(I5,I9,Jj){if(I9!="lpxpcom"){return}var Jc="";var I3=Jj.match(/^<([^ \/]+)/);if(I3){Jc=I3[1]}switch(Jc){case"pipeinitdone":var Je=BA.NamedPipeNumClients();if(Je>1){BA.SendNamedPipeMessageToAll("<internal_logincheck/>");LP.mostRecent().setTimeout(function(){CS()
},500)}else{CS()}break;case"logout":DS(true);break;case"login":var Ji=Jj.match(/data0=\"([^\"]*)\"/);var Jh=Jj.match(/data1=\"([^\"]*)\"/);if(Ji&&Jh){var I4=Ji[1];var I1=Jh[1];if(I4!=""&&I1!=""){Hi(I4,I1,"namedpipes")}}break;case"refresh":Ir();break;case"switchidentity":var Jh=Jj.match(/data0=\"([^\"]*)\"/);
if(Jh){var I8=Jh[1];LP.lpprefsSetCharPref("identity",I8);LP.flush_prefs();Q();Ir()}break;case"launch":var Jh=Jj.match(/id=\"([^\"]*)\"/);var Jf=Jj.match(/existing=\"([^\"]*)\"/);if(Jh){var I7=Jh[1];BA.SendNamedPipeMessageToAll('<launchok data0="'+I7+'" />');if(Jf){var Jg=LP.getBrowser();if(Jg.webProgress.isLoadingDocument){return
}LP.lp_noteAcceptHelper(I7,Jg,false)}else{LP.lpLaunchUrl(I7,1)}}break;case"internal_logincheck":if(DH){var I0=new Array();I0.data0=Gx;I0.data1=EV;I0.data2=LP.GetIdentity();AR("internal_logincheck_ack",I0)}break;case"internal_logincheck_ack":var Ja=Jj.match(/data0=\"([^\"]*)\"/);var I4=Jj.match(/data1=\"([^\"]*)\"/);
var Jk=Jj.match(/data2=\"([^\"]*)\"/);if(!DH&&Ja&&I4){var I6=CZ();for(var Jd=0;Jd<I6.length;Jd++){if(I6[Jd]==I4[1]){I6.splice(Jd,1);break}}I6.unshift(I4[1]);By(I6);var Jb=Ai;var I2=EV;EV=I4[1];Ai=CB(I4[1]);LP.lpprefsSetCharPref("identity",Jk?Jk[1]:"");EV=I2;Ai=Jb;LP.flush_prefs();Gx=Ja[1];CS(true)}else{if(DH&&Ja&&I4){if(Gx!=Ja[1]||EV!=I4[1]){DS()
}}}break;default:B7("namedpipes","received unknwon message. data="+Jj);break}}};var e=Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);e.addObserver(z,"lpxpcom",false);BA.StartNamedPipeServer();Hf=true;LP.mostRecent().setTimeout(function(){AR("logincheck")
},1000)}function AR(t,e){if(!BA||!Hf){return}var z=Ew(t,e);BA.SendNamedPipeMessageToAll(z)}function Ew(z,e){var I0="<"+z;var t;if(typeof(e)!="undefined"){for(t in e){I0+=" "+t+'="'+DR(e[t])+'"'}}I0+="/>";return I0}var GB={};function DQ(t){Id("active","1");var e={otp:"",username:t};LP.lpGetCurrentWindow().openDialog(GY+"content/yubikey.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal",e);
if(typeof(e.label)!="undefined"){GJ("label",e.label)}Id("active",null);return e.otp}function GJ(t,e){GB[t]=e}function EG(e){if(typeof(GB[e])=="undefined"){return null}return GB[e]}function AL(){GB={}}var Hl={};var Bb=null;function Gy(e){Bb=e}function Ga(z){Id("active","1");if(z&&Bb){var e=Bb;Bb=null;
return e}var t={otp:"",username:z};LP.lpGetCurrentWindow().openDialog(GY+"content/sesame.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal",t);if(typeof(t.label)!="undefined"){Bf("label",t.label)}Id("active",null);return t.otp}function Bf(t,e){Hl[t]=e}function IL(e){if(typeof(Hl[e])=="undefined"){return null
}return Hl[e]}function CC(){Hl={}}var H8={};var EH=null;function Eq(e){EH=e}function Hp(z,e){Id("active","1");if(z&&EH){return EH}var t={username:z,challenge:e};LP.lpGetCurrentWindow().openDialog(GY+"content/grid.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal",t);if(typeof(t.label)!="undefined"){Id("label",t.label)
}Id("active",null);return t.values}function Id(t,e){H8[t]=e}function Gp(e){if(typeof(H8[e])=="undefined"){return null}return H8[e]}function s(){H8={}}var FY={};var EI=null;function Fk(t,e){FY[t]=e}function C2(e){if(typeof(FY[e])=="undefined"){return null}return FY[e]}function C0(){FY={}}this.creategrp_window_load=function(z,e){z.title=LP.lpgs("Group Name");
z.documentElement.getButton("accept").setAttribute("label",LP.lpgs("OK"));z.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("Cancel"));LP.sr(z,"grplabel","value","Group Name");var t=e.arguments;if(t&&t.length==2){z.parentgroup=t[0];z.tdoc=t[1]}};this.creategrp_accept_click=function(I4,I0){var I3=I4.getElementById("lpgrp").value;
I3=I4.parentgroup+"\\"+I3;for(var t in G9){if(G9[t].group==I3){LP.alert(LP.lpgs("That group already exists."),I0);return false}}for(var t in CK){if(CK[t].group==I3){LP.alert(LP.lpgs("That group already exists."),I0);return false}}var e=new Array();var z=A5(I4.tdoc,I3,e,EO);var I5="_"+I3;EO.c[I5]=z[0];
EO.i[I5]=z[1];LP.saveGroupState(null,"lpAddResponse");var I1=new Iu();I1.pendingshare=false;I1.id=0;I1.name="";I1.url="http://group";I1.group=I3;I1.username="";I1.password="";I1.unencryptedUsername="";I1.oldusername="";I1.oldpassword="";I1.extra="";I1.fav="0";I1.never_autofill="0";I1.autologin="0";I1.pwprotect=false;
I1.isbookmark=false;I1.basic_auth=false;I1.realm="";var I2="ajax=1&extjs=1&name=&url="+LP.en(D3(I1.url))+"&grouping="+LP.en(AS(I1.group))+"&username=&password=&extra=&aid=0&openid_url=&isbookmark=0";LP.lpEditAccount(I2,I1);return true};this.creategrp_cancel_click=function(t,e){return true};function AF(){}this.siteinfo_window_load=function(I8,I6){I8.title=LP.lpgs("Edit Site Information");
I8.documentElement.getButton("accept").setAttribute("label",LP.lpgs("OK"));I8.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("Cancel"));I8.documentElement.getButton("extra1").setAttribute("label",LP.lpgs("Share"));I8.documentElement.getButton("extra2").setAttribute("label",LP.lpgs("Delete"));
LP.sr(I8,"urllabel","value","URL");LP.sr(I8,"namelabel","value","Name");LP.sr(I8,"grouplabel","value","Group");LP.sr(I8,"usernamelabel","value","Username");LP.sr(I8,"passwordlabel","value","Password");LP.sr(I8,"capslocklabel","value","Caps Lock is ON");LP.sr(I8,"lpshowhide","value","ShowPw");LP.sr(I8,"fieldslabel","value","Fields");
LP.sr(I8,"noteslabel","value","Notes");LP.sr(I8,"lpfav","label","Favorite");LP.sr(I8,"lpneverautofill","label","NeverAutoFill");LP.sr(I8,"lpeditfields","value","Edit Form Fields");LP.sr(I8,"lppwprotect","label","Require Password Reprompt");LP.sr(I8,"lpautologin","label","AutoLogin");var I0=I8.getElementById("capslocklabel");
I0.style.display="none";I0.style.textAlign="center";I0.style.padding="3px";I0.style.color="#ff0000";I0.style.background="#ffff00";I8.siteinfo_isbookmark=false;I8.siteinfo_sharedfromaid="";var z=false;var Ja="",I2="";I8.siteinfo_save_all_fields_browser=null;I8.siteinfo_save_all_fields_postdata="";I8.siteinfo_save_all_fields_numfields=0;
I8.siteinfo_save_all_fields_fields=new Array();I8.siteinfo_isotherfields=false;I8.siteinfo_fi=null;I6.addEventListener("resize",AF,false);var I4=I6.arguments;if(I4.length>0){I8.siteinfo_id=I4[0]}if(I4.length>1){I8.siteinfo_isbookmark=I4[1]}if(I4.length>2){z=I4[2]}if(I4.length>3){Ja=I4[3]}if(I4.length>4){I2=I4[4]
}if(I4.length>5){I8.siteinfo_save_all_fields_browser=I4[5]}if(I4.length>6){I8.siteinfo_postdata=I4[6]}if(I4.length>7){I8.siteinfo_fi=I4[7]}if(I8.siteinfo_fi){I8.siteinfo_save_all_fields_postdata="&save_all=1&localupdate=1&"+I8.siteinfo_fi.postdata;I8.siteinfo_save_all_fields_numfields=I8.siteinfo_fi.fields.length;
I8.siteinfo_save_all_fields_fields=I8.siteinfo_fi.fields;I8.getElementById("lpnumfields").setAttribute("value",LP.lpgs("Number of fields saved")+": "+I8.siteinfo_save_all_fields_numfields);I8.getElementById("lpnumfields").setAttribute("hidden",false)}else{if(I8.siteinfo_postdata){I8.siteinfo_save_all_fields_postdata="&save_all=1&localupdate=1&"+I8.siteinfo_postdata;
I8.getElementById("lpnumfields").setAttribute("value",LP.lpgs("Number of fields saved")+": "+I8.siteinfo_save_all_fields_numfields);I8.getElementById("lpnumfields").setAttribute("hidden",false)}else{if(I8.siteinfo_save_all_fields_browser){I8.siteinfo_save_all_fields_postdata="&save_all=1&localupdate=1&"+Fs(false,true,2,I8.siteinfo_save_all_fields_browser,0,null,null,true,true,true,I8.siteinfo_save_all_fields_browser.contentDocument,I8.siteinfo_save_all_fields_browser.contentWindow,1,I8);
I8.getElementById("lpnumfields").setAttribute("value",LP.lpgs("Number of fields saved")+": "+I8.siteinfo_save_all_fields_numfields);I8.getElementById("lpnumfields").setAttribute("hidden",false)}}}var I9=I8.getElementById("lpgroupingpopup");for(var I3=I9.childNodes.length-1;I3>=0;I3--){I9.removeChild(I9.childNodes.item(I3))
}var I1=new Array();for(var I3 in G9){if(G9[I3].group!=""&&G9[I3].group!=LP.get_null_group()&&!DU(G9[I3].group,I1)){I1[I1.length]=G9[I3].group}}for(var I3 in CK){if(CK[I3].group!=""&&CK[I3].group!=LP.get_null_group()&&!DU(CK[I3].group,I1)){I1[I1.length]=CK[I3].group}}I1.sort(LP.lp_sort_case_insensitive);
for(var I3=0;I3<I1.length;I3++){var Jd=I8.createElement("menuitem");Jd.setAttribute("label",I1[I3]);I9.appendChild(Jd)}if(LP.HIDE_SHARE){I8.documentElement.getButton("extra1").setAttribute("hidden",true)}var t=null;if(I8.siteinfo_id==0){if(!z){var e=I8.siteinfo_fi?I8.siteinfo_fi.url:LP.lpgetcurrenturl();
I8.getElementById("lpurl").value=e;if(I8.siteinfo_isbookmark){var I7=LP.lpgetcurrenttitle();I8.getElementById("lpname").value=I7}else{I8.getElementById("lpname").value=IB(e);I8.getElementById("lpusername").value=Ja;I8.getElementById("lppassword").value=I2}}else{var e="http://sn";I8.getElementById("lpurl").value=e;
LP.sr(I8,"lpgroup","value","SecureNotes")}I8.documentElement.getButton("extra2").setAttribute("hidden",true);I8.documentElement.getButton("extra1").setAttribute("hidden",true);I8.getElementById("lpeditfields").setAttribute("hidden",true);if(I8.siteinfo_save_all_fields_browser){I8.getElementById("usernamepassword").style.display="none";
I8.getElementById("fieldscontainer").setAttribute("hidden","false");var I5=new Iu();I5.pendingshare=false;I5.logins=new Array();I5.logins[0]=new GZ();I5.logins[0].fields=new Array();I5.logins[0].otherfields=I8.siteinfo_save_all_fields_fields;I5.otherlogins=new Array();LP.createFieldsPane(I8,I8.getElementById("fields"),I5,true)
}}else{t=G9[I8.siteinfo_id];if(t==null){t=CK[I8.siteinfo_id]}I8.getElementById("lpurl").value=t.url;I8.getElementById("lpname").value=t.name;I8.getElementById("lpgroup").value=t.group!=LP.get_null_group()?t.group:"";I8.getElementById("lpnotes").value=BD(t.extra);if(t.logins.length>0){I8.getElementById("lpusername").value=t.logins[0].unencryptedUsername;
I8.getElementById("lppassword").value=BD(t.logins[0].password);I8.siteinfo_un=t.logins[0].username;I8.siteinfo_pw=t.logins[0].password;I8.siteinfo_tld=t.logins[0].tld}else{I8.siteinfo_un="";I8.siteinfo_pw="";I8.siteinfo_tld=""}I8.getElementById("lpfav").checked=parseInt(t.fav)==1?true:false;I8.getElementById("lpneverautofill").checked=parseInt(t.never_autofill)==1?true:false;
I8.getElementById("lpautologin").checked=parseInt(t.autologin)==1?true:false;I8.getElementById("lppwprotect").checked=t.pwprotect;I8.siteinfo_isbookmark=t.isbookmark;I8.siteinfo_sharedfromaid=t.sharedfromaid;if(t.genpw){I8.getElementById("LPEditSite4").getButton("extra1").disabled=true}else{if(t.sharedfromaid!=null&&t.sharedfromaid!=""&&t.sharedfromaid!="0"){I8.getElementById("LPEditSite4").getButton("extra1").disabled=true
}}if(t.logins.length>0&&t.logins[0].fields.length==0&&t.logins[0].otherfields.length!=0){I8.siteinfo_isotherfields=true;I8.getElementById("usernamepassword").style.display="none";I8.getElementById("fieldscontainer").setAttribute("hidden","false");LP.createFieldsPane(I8,I8.getElementById("fields"),t)}if(I8.siteinfo_isotherfields){I8.getElementById("lpeditfields").setAttribute("hidden",true)
}}if(I8.siteinfo_isbookmark){I8.getElementById("usernamepassword").style.visibility="hidden";I8.title=LP.lpgs("Edit Bookmark Information")}else{if((t!=null&&t.sn==true)||z){I8.getElementById("lpeditfields").setAttribute("hidden",true);I8.getElementById("usernamepassword").style.display="none";I8.getElementById("urlgrp").style.display="none";
I8.title=LP.lpgs("Edit Secure Note");I8.getElementById("lpfav").style.display="none";I8.getElementById("lpneverautofill").style.display="none";I8.getElementById("lpautologin").style.display="none";I8.getElementById("lpnotes").setAttribute("rows","10")}}I8.origvalues=new Array();var Jc=new Array("lpurl","lpname","lpgroup","lpusername","lppassword","lpnotes");
var Jb=new Array("lpfav","lpneverautofill","lppwprotect","lpautologin");for(var I3=0;I3<Jc.length;I3++){if(I8.getElementById(Jc[I3])){I8.origvalues[Jc[I3]]=I8.getElementById(Jc[I3]).value}}for(var I3=0;I3<Jb.length;I3++){if(I8.getElementById(Jb[I3])){I8.origvalues[Jb[I3]]=I8.getElementById(Jb[I3]).checked
}}LP.siteinfo_update_passwordmeter(I8,I6)};this.siteinfo_update_passwordmeter=function(z,e){var t=z.getElementById("lppassword").value;z.getElementById("passwordmeter").value=LP.calcStrength("",t)};this.lpsiteinfo_checkcapslock=function(I0,z,t){H5(I0,z,t,"capslocklabel")};this.siteinfo_accept_click=function(I2,t){if(!DH){return true
}if(I2.getElementById("lpname").value==""){LP.lpalert_ex(LP.lpgs("You must enter a name."),t);return false}var I0=null;if(I2.siteinfo_id!=0){I0=G9[I2.siteinfo_id];if(I0==null){I0=CK[I2.siteinfo_id]}if(I0.urid!=0&&I0.url!=I2.getElementById("lpurl").value){if(!LP.lpConfirmYesNo(LP.lpgs("ConfirmURLChange"),t)){return false
}}}if(I2.getElementById("lpnotes").value.length>45000){if(!LP.lpConfirmYesNo(LP.lpgs("NotesTooLarge"),t)){return false}else{I2.getElementById("lpnotes").value=I2.getElementById("lpnotes").value.substring(0,45000)}}var I1=Ds(I2.getElementById("lppassword").value);var e=new Iu();e.pendingshare=false;e.id=I2.siteinfo_id;
e.name=I2.getElementById("lpname").value;e.url=I2.getElementById("lpurl").value;e.group=I2.getElementById("lpgroup").value;e.username=Ds(I2.getElementById("lpusername").value);e.password=I1;e.unencryptedUsername=I2.getElementById("lpusername").value;e.oldusername=I2.siteinfo_un;e.oldpassword=I2.siteinfo_pw;
e.extra=Ds(I2.getElementById("lpnotes").value);e.fav=I2.getElementById("lpfav").checked?"1":"0";e.never_autofill=I2.getElementById("lpneverautofill").checked?"1":"0";e.autologin=I2.getElementById("lpautologin").checked?"1":"0";e.pwprotect=I2.getElementById("lppwprotect").checked;e.isbookmark=I2.siteinfo_isbookmark?true:false;
e.basic_auth=false;e.realm="";var z="ajax=1&extjs=1&name="+LP.en(AS(e.name))+"&url="+LP.en(D3(e.url))+"&grouping="+LP.en(AS(e.group))+"&username="+LP.en(e.username)+"&password="+LP.en(e.password)+"&extra="+LP.en(e.extra);if(I2.siteinfo_id==0){z+="&aid=0&openid_url=";if(I2.getElementById("lpfav").checked){z+="&fav=on"
}}else{z+="&aid="+LP.en(I0.id);if(I0.logins.length>0){z+="&openid_url="+LP.en(I0.logins[0].openid_url)}else{z+="&openid_url="}z+="&basic_auth="+LP.en(I0.basic_auth?"1":"0");if(I2.getElementById("lpfav").checked){z+="&fav=on"}if(I2.getElementById("lpneverautofill").checked){z+="&never_autofill=on"}if(I2.getElementById("lpautologin").checked){z+="&autologin=on"
}}z+="&isbookmark="+LP.en(I2.siteinfo_isbookmark?"1":"0");if(I2.getElementById("lppwprotect").checked){z+="&pwprotect=on"}if(I2.siteinfo_save_all_fields_browser){z+=I2.siteinfo_save_all_fields_postdata;e.save_all=true;e.logins=new Array();e.logins[0]=new GZ();e.logins[0].otherfields=I2.siteinfo_save_all_fields_fields
}LP.lpEditAccount(z,e);if(I2.siteinfo_isotherfields){LP.submitFieldsPane(I2,I2.siteinfo_id)}if(I2.siteinfo_id!=0&&I1!=I2.siteinfo_pw){var I3=GD(I2.siteinfo_tld,I2.siteinfo_id);if(I3!=null){t.openDialog(GY+"content/changepw.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal",I3,I2.getElementById("lppassword").value,"1",I2.siteinfo_tld)
}}LP.last_dialog_close=new Date().getTime();return true};this.siteinfo_delete_click=function(z,e){if(!DH){return true}var t=G9[z.siteinfo_id];if(t==null){t=CK[z.siteinfo_id]}if(LP.lpConfirmDeleteSite(t.id,e)){LP.last_dialog_close=new Date().getTime();e.close()}LP.saveGroupState(null,"siteinfo_delete_click")
};this.siteinfo_share_click=function(t,e){if(!DH){return true}if(t.siteinfo_id){LP.lpOpenShareWindow(t.siteinfo_id);LP.last_dialog_close=new Date().getTime();e.close()}};this.lpOpenShareWindow=function(e){LP.lpbaseopen("?ac=1&share="+LP.en(e))};this.lpOpenAcceptShareWindow=function(e){LP.lpbaseopen("?ac=1&acceptshare="+LP.en(e))
};this.lpOpenRejectShareWindow=function(e){LP.lpbaseopen("?ac=1&rejectshare="+LP.en(e))};this.siteinfo_edit_fields=function(z,e){if(z.siteinfo_id){var I0=false;for(var t in z.origvalues){if(z.getElementById(t)){if(typeof(z.origvalues[t])=="string"&&z.getElementById(t).value!=z.origvalues[t]){I0=true;
break}else{if(typeof(z.origvalues[t])=="boolean"&&z.getElementById(t).checked!=z.origvalues[t]){I0=true;break}}}}if(I0&&!LP.lpConfirmYesNo("Are you sure you want to edit this site's fields?  Doing so will cause you to lose any changes you have made to this site!",e)){return}e.openDialog(GY+"content/editfields.xul","_blank","resizable=yes,chrome,titlebar,toolbar,centerscreen,modal",z.siteinfo_id,e)
}};this.siteinfo_cancel_click=function(t,e){if(!DH){return true}LP.last_dialog_close=new Date().getTime();return true};this.siteinfo_toggle_password=function(t,e){if(t.siteinfo_sharedfromaid!=null&&t.siteinfo_sharedfromaid!=""&&t.siteinfo_sharedfromaid!="0"&&t.siteinfo_sharedfromaid!="null"){LP.alert(LP.lpgs("This is a shared site. You are not permitted to view the password."),e);
return}if(t.getElementById("lppassword").type=="password"){if(H3){if(!LP.securityPrompt(e)){return}}t.getElementById("lppassword").type="text";LP.sr(t,"lpshowhide","value","HidePw")}else{t.getElementById("lppassword").type="password";LP.sr(t,"lpshowhide","value","ShowPw")}};this.help_window_load=function(I1,e){I1.title=LP.lpgs("LastPass Help");
LP.sr(I1,"NoMore","label","Do not show this help item again");LP.sr(I1,"helpcancel","label","Close");var z=e.arguments;if(z.length>0){I1.help_topic=z[0];var I0=I1.getElementById("help-iframe");var I2=typeof(GL)!="undefined"&&GL!=null&&GL!=""?GL:LP.lpmainprefs.getCharPref("general.useragent.locale");if(I2){I2=I2.replace("-","_")
}if(I0){if(LP.althelpurl!=""){I0.setAttribute("src",LP.althelpurl)}else{var t=LP.lp_base+"help.php?topic="+LP.en(z[0])+(I2?"&lang="+LP.en(I2):"");I0.setAttribute("src",t)}}I1.getElementById("NoMore").setAttribute("hidden",true)}};this.help_window_unload=function(z,t){LP.lphelpstats.currentlyopen=false;
LP.lphelpstats.wino=null;var e=z.getElementById("NoMore");if(e){if(e.checked){LP.lpMakeRequest(LP.lp_base+"help.php","topic="+LP.en(z.help_topic)+"&comp=1",null)}}};this.help_cancel_click=function(z,e){var t=z.getElementById("LPHelp");if(t){t.cancelDialog()}};this.print_window_load=function(I2,e){I2.title=LP.lpgs("LastPass Print");
LP.sr(I2,"printbutton","label","Print");LP.sr(I2,"cancelbutton","label","Close");var z=e.arguments;if(z.length>0){var I0=z[0];var I1=I2.getElementById("print-iframe");if(I1){var t=LP.lp_base+"export.php?plug=1&print=1"+(I0==true?"&notes=1":"")+LP.GetIdentityParam();if(D4){t=LP.lp_base+"gettopost.php?posturl="+LP.en(t)
}I1.webNavigation.loadURI(t,null,null,null,null);I2.print_webnavigation=I1.webNavigation;I2.print_timer=e.setInterval(function(){LP.print_write_key(I2,e)},200)}}};this.print_write_key=function(z,t){var z=z.print_webnavigation.document;if(z.body==null){return}var e=z.createElement("script");e.appendChild(z.createTextNode("var exportkey='"+A1(Hk)+"';var exportusername='"+LP.lpes(EV)+"';var exporthash='"+LP.lpes(Ae)+"';"));
z.body.appendChild(e)};this.print_window_unload=function(t,e){if(t.print_timer!=null){e.clearInterval(t.print_timer)}};this.print_print_click=function(z,e){var t=z.getElementById("print-iframe");if(t){t.contentWindow.print()}};this.print_cancel_click=function(z,t){var e=z.getElementById("LPPrint");if(e){e.cancelDialog()
}};var AP;var An;var AD="";var Gd=false;this.welcome_window_load=function(I3,I2){AP=I3;An=I2;I3.welcomestate=0;LP.welcome_translate(I3,I2);var e=I3.getElementById("languagesel");var I5=LP.lpprefsHasUserValue("language",false)?LP.lpprefsGetCharPref("language",false):"";var t=0;for(var z in LP.LANGS){var I1=I3.createElement("listitem");
I1.setAttribute("label",LP.LANGS[z][0]);I1.setAttribute("value",LP.LANGS[z][1]);e.appendChild(I1);if(LP.LANGS[z][1]==I5){e.ensureIndexIsVisible(t);e.selectedItem=I1}t++}var I0=I3.getElementById("timezonepopup");Da();for(var z=0;z<Ci.length;z++){var I4=I3.createElement("menuitem");I4.setAttribute("label",Ci[z].name);
I4.setAttribute("value",Ci[z].value);I0.appendChild(I4)}I3.getElementById("timezone").value=Hm(false);if(DH){DS(false)}LP.mostRecent().setTimeout(function(){I2.focus()},5000)};this.welcome_change_language_if=function(I0,t){var z=LP.lpprefsHasUserValue("language",false)?LP.lpprefsGetCharPref("language",false):"";
var I3="";var I1="";var e=I0.getElementById("languagesel");if(e){var I2=e.selectedItem;if(I2){I3=I2.value;I1=I2.label}}if(I3!=z){if(!LP.lpConfirmYesNo(LP.lpgs("Are you sure you want to change your language to")+" "+I1+"?",t)){return false}LP.lpprefsSetCharPref("language",I3,false);LP.flush_prefs();LP.retranslate_toolbars();
LP.welcome_translate(I0,t)}return true};this.welcome_translate=function(z,e){z.title=LP.lpgs("Welcome to LastPass!");z.getElementById("welcometext1").appendChild(z.createTextNode(LP.lpgs("WelcomeMsg1")));z.getElementById("welcometext2").appendChild(z.createTextNode(LP.lpgs("WelcomeMsg2")));if(false&&LP.lpis_win){LP.sr(z,"welcometextwindows","value","WelcomeMsgWindows");
LP.sr(z,"exelink","value","LastPass.exe")}else{z.getElementById("welcometextwindows").setAttribute("display","none");z.getElementById("exelink").setAttribute("display","none")}LP.sr(z,"languagelabel","value","Please select your language");z.documentElement.getButton("accept").setAttribute("label",LP.lpgs("CreateAccount"));
z.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("NoThanks"));LP.sr(z,"title","value","Welcome to LastPass!");LP.sr(z,"emaillabel","value","Email");LP.sr(z,"passwordlabel","value","MasterPassword");LP.sr(z,"passwordreminderlabel","value","Password Reminder");LP.sr(z,"timezonelabel","value","Time Zone");
LP.sr(z,"terms","label","I have read and agree with the");LP.sr(z,"termslink","value","terms of service");LP.sr(z,"and","value","and");LP.sr(z,"privacylink","value","privacy statement");LP.sr(z,"data","label","I understand that my encrypted data will be sent to LastPass");LP.sr(z,"history","label","Keep a history of my logins and form fills");
LP.sr(z,"improve","label","Send anonymous error reporting data to help improve LastPass");LP.sr(z,"disablemgr","label","Disable Insecure Firefox Password Manager");for(var t=1;t<=10;t++){LP.sr(z,"reenter"+t,"value","Reenter"+t)}LP.sr(z,"passwordconfirmlabel","value","ReenterPassword");for(var t=2;t<=8;
t++){LP.sr(z,"importdataask"+t,t>=6?"label":"value","importdataask"+t)}for(var t=2;t<=8;t++){LP.sr(z,"removedataask"+t,t>=7?"label":"value","removedataask"+t)}for(var t=2;t<=7;t++){LP.sr(z,"formfillask"+t,t>=6?"label":"value","formfillask"+t)}z.getElementById("thanks2").appendChild(z.createTextNode(LP.lpgs("thanks2")));
for(var t=3;t<=4;t++){LP.sr(z,"thanks"+t,"value","thanks"+t)}};this.welcome_accept_click=function(I3,t){var I1=LP.lpgs("CreateAccount");var I2=LP.lpgs("Cancel");var I0=true;if(I3.welcomestate==0){if(!LP.welcome_change_language_if(I3,t)){t.focus();return false}I1=LP.lpgs("CreateAccount");I2=LP.lpgs("Cancel");
I3.getElementById("welcome").setAttribute("hidden","true");I3.getElementById("create").setAttribute("hidden","false");LP.sr(I3,"title","value","CreateAccount");I3.getElementById("email").focus()}else{if(I3.welcomestate==1){if(!EQ(I3,t)){t.focus();return false}I3.getElementById("create").setAttribute("hidden","true");
I3.getElementById("reenter").setAttribute("hidden","false");LP.sr(I3,"title","value","ReenterPassword");I3.getElementById("passwordconfirm").value="";I3.getElementById("passwordconfirm").focus()}else{if(I3.welcomestate==2){var e=I3.getElementById("passwordconfirm").value;var z=I3.getElementById("password").value;
if(e!=z){LP.alert(LP.lpgs("The LastPass master password you reentered does not match"),t);I3.welcomestate=0;I3.getElementById("reenter").setAttribute("hidden","true");LP.welcome_accept_click(I3,t);t.focus();return false}else{I3.getElementById("progresslabel").value=LP.lpgs("Creating Account...");Fc(I3,t)
}I3.getElementById("reenter").setAttribute("hidden","true");I3.getElementById("createprogress").setAttribute("hidden","false");LP.sr(I3,"title","value","Creating Account...");I3.documentElement.getButton("accept").setAttribute("disabled",true);I3.documentElement.getButton("cancel").setAttribute("disabled",true);
I0=false;I1=LP.lpgs("Continue")}else{if(I3.welcomestate==3){I3.getElementById("createprogress").setAttribute("hidden","true");I3.getElementById("importdataask").setAttribute("hidden","false");LP.sr(I3,"title","value","importdataask1");I1=LP.lpgs("Continue")}else{if(I3.welcomestate==4){IE=false;if(I3.getElementById("importdataask6").selected){LP.lpShowFirefoxPasswords(I3,t,true,true)
}else{if(I3.getElementById("importdataask7").selected){LP.lpShowFirefoxPasswords(I3,t,true,false)}}LP.lpprefsSetBoolPref("ffimportdone",true,false);LP.flush_prefs();if(IE){I3.getElementById("importdataask").setAttribute("hidden","true");I3.getElementById("importdataprogress").setAttribute("hidden","false");
LP.sr(I3,"title","value","Importing Your Data...");I3.getElementById("importdatalabel").value=LP.lpgs("Importing Your Data...");I3.documentElement.getButton("accept").setAttribute("disabled",true);I3.documentElement.getButton("cancel").setAttribute("disabled",true);I0=false;I1=LP.lpgs("Continue")}else{I3.getElementById("importdataask").setAttribute("hidden","true");
I3.getElementById("formfillask").setAttribute("hidden","false");LP.sr(I3,"title","value","formfillask1");I1=LP.lpgs("Continue");I3.welcomestate+=2}}else{if(I3.welcomestate==5){if(BR){I3.getElementById("importdataprogress").setAttribute("hidden","true");I3.getElementById("removedataask").setAttribute("hidden","false");
LP.sr(I3,"title","value","removedataask1");I1=LP.lpgs("Continue")}else{I3.getElementById("importdataprogress").setAttribute("hidden","true");I3.getElementById("formfillask").setAttribute("hidden","false");LP.sr(I3,"title","value","formfillask1");I1=LP.lpgs("Continue");I3.welcomestate++}}else{if(I3.welcomestate==6){if(I3.getElementById("removedataask7").selected){HY(FQ)
}else{if(!LP.lpConfirmYesNo(LP.lpgs("DoNotDeletePasswordsConfirm"),t)){return false}}I3.getElementById("removedataask").setAttribute("hidden","true");I3.getElementById("formfillask").setAttribute("hidden","false");LP.sr(I3,"title","value","formfillask1");I1=LP.lpgs("Continue")}else{if(I3.welcomestate==7){if(I3.getElementById("formfillask6").selected){LP.lpEditFormFillProfile(0,false,0,true,I3,t)
}I3.getElementById("formfillask").setAttribute("hidden","true");I3.getElementById("thanks").setAttribute("hidden","false");LP.sr(I3,"title","value","Congratulations");I1=LP.lpgs("Continue")}else{C7();t.close();return true}}}}}}}}if(I0){I3.documentElement.getButton("accept").setAttribute("disabled",false);
I3.documentElement.getButton("cancel").setAttribute("disabled",false)}I3.documentElement.getButton("accept").setAttribute("label",I1);I3.documentElement.getButton("cancel").setAttribute("label",I2);I3.welcomestate++;return false};this.checkEmail=function(t){var e=t.getElementById("email");if(e.value.length>0){AD="";
LP.lpMakeRequest(LP.lp_base+"create_account.php?check=avail&username="+LP.en(e.value),"",CE)}};function CE(e){if(e.readyState==4&&e.status==200&&e.responseText){var t=e.responseText;if(t.indexOf("ok")>=0){AD="ok"}else{if(t.indexOf("emailinvalid")>=0){AD=LP.lpgs("Invalid email address, try again")}else{AD=LP.lpgs("Email already in use, have you forgotten your password?")
}}}}function Fc(I4,I2){var I1=I4.getElementById("email").value.toLowerCase().replace(/\s*/g,"");var I5=I4.getElementById("password").value;var t=CB(CB(I1+I5)+I5);var z=I4.getElementById("improve").checked;var I6=I4.getElementById("history").checked;var I0=I4.getElementById("timezone").value;var e=I4.getElementById("passwordreminder").value;
var I3="username="+LP.en(I1)+"&email="+LP.en(I1)+"&hash="+LP.en(t)+"&password_hint="+LP.en(e)+(z?"&improve=1":"")+(I6?"&loglogins=1":"")+"&timezone2="+LP.en(I0)+"&xml=1&language2="+LP.en(LP.lpprefsHasUserValue("language",false)?LP.lpprefsGetCharPref("language",false):"en-US");LP.lpMakeRequest(LP.lp_base+"create_account.php",I3,BV,EK)
}function BV(t){if(t.readyState==4&&t.status==200&&t.responseText){var z=t.responseText;var e="";if(z.indexOf("ok")>=0){AP.getElementById("progresslabel").value=LP.lpgs("Loggingin");Gd=true;LP.lplogin(AP.getElementById("email").value,AP.getElementById("password").value,"createaccount");AP.getElementById("password").value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
return}else{if(z.indexOf("usernametaken")>=0){e=LP.lpgs("Email already in use, have you forgotten your password?")}else{if(z.indexOf("usernameinvalid")>=0||z.indexOf("emailfailed")>=0){e=LP.lpgs("Invalid email address, try again")}else{e=LP.lpgs("ErrorServerMsg");HX("Got unknown response from create account: "+z)
}}}if(e!=""){Av(e)}}}function Av(e){LP.alert(e,An);AP.welcomestate=0;AP.getElementById("createprogress").setAttribute("hidden","true");LP.welcome_accept_click(AP,An);An.focus()}function Go(){if(AP){var I0=AP.getElementById("email").value;var z=CZ();var t=Gn();for(var e=0;e<z.length;e++){if(z[e]==I0){z.splice(e,1);
break}}if(typeof(t[I0])!="undefined"){t[I0]=null}z.unshift(I0);By(z);E4(t);if(AP.getElementById("disablemgr").checked){LP.lpmainprefs.setBoolPref("signon.rememberSignons",false)}LP.flush_prefs();LP.welcome_accept_click(AP,An)}}function EK(I1,z,t,I0){Av(LP.lpgs("ErrorServerMsg"))}function EQ(I1,e){var I0=I1.getElementById("password").value;
var z=I1.getElementById("email").value;var t=I1.getElementById("passwordreminder").value;if(AD!=""&&AD!="ok"){LP.alert(AD,e);return false}else{if(AD==""&&z.length<5){LP.alert(LP.lpgs("Invalid email address, try again"),e);return false}}if(!I1.getElementById("terms").checked){LP.alert(LP.lpgs("You must agree to the terms to continue"),e);
return false}if(!I1.getElementById("data").checked){LP.alert(LP.lpgs("AgreeUploadData"),e);return false}if(I0.length<6){LP.alert(LP.lpgs("ShortPassword"),e);return false}if(I0==z){LP.alert(LP.lpgs("PasswordEmailSame"),e);return false}if(I0==t){LP.alert(LP.lpgs("Password reminder cannot match password"),e);
return false}if(t.length==0){LP.alert(LP.lpgs("Please enter a Password Reminder"),e);return false}if(I0=="password"||I0=="123"||I0=="1234"||I0=="12345"||I0=="123456"||I0=="123123"||I0=="letmein"||I0=="pass"||I0=="lastpass"||I0=="lastpass.com"||I0=="abc123"){LP.alert(LP.lpgs("ObviousPassword"),e);return false
}return true}this.welcome_cancel_click=function(t,e){if(t.welcomestate==0){LP.welcome_change_language_if(t,e)}else{if(t.welcomestate==1||t.welcomestate==2){if(LP.lpConfirmYesNo(LP.lpgs("ReallyQuit"),e)){LP.alert(LP.lpgs("VisitWebsiteToCreate"),e)}else{return false}}}e.close();return true};this.welcome_update_password_meter=function(I0){var z=I0.getElementById("password");
var t=I0.getElementById("email")?I0.getElementById("email").value:"";var e=I0.getElementById("passwordstrength");if(z&&e){e.value=LP.calcStrength(t,z.value).toString()}};this.calcStrength=function(e,t){var z=0;if(t==e){return 0}if(e!=""&&e.indexOf(t)!=-1){z-=15}if(e!=""&&t.indexOf(e)!=-1){z-=e.length
}z+=t.length;if(t.length>0&&t.length<=4){z+=t.length}else{if(t.length>=5&&t.length<=7){z+=6}else{if(t.length>=8&&t.length<=15){z+=12}else{if(t.length>=16){z+=18}}}}if(t.match(/[a-z]/)){z+=1}if(t.match(/[A-Z]/)){z+=5}if(t.match(/\d/)){z+=5}if(t.match(/.*\d.*\d.*\d/)){z+=5}if(t.match(/[!,@,#,$,%,^,&,*,?,_,~]/)){z+=5
}if(t.match(/.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~]/)){z+=5}if(t.match(/(?=.*[a-z])(?=.*[A-Z])/)){z+=2}if(t.match(/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])/)){z+=2}if(t.match(/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!,@,#,$,%,^,&,*,?,_,~])/)){z+=2}z*=2;if(z<0){z=0}else{if(z>100){z=100}}return z};var Bj=0;
this.lplogin_window_load=function(I4,I3){var I0=1;var I8="";if(typeof(I3.arguments)!="undefined"&&I3.arguments.length>0){if(I3.arguments[0].sesameusername){I8=I3.arguments[0].sesameusername}if(typeof(I3.arguments[0].logincase)!="undefined"){I0=I3.arguments[0].logincase}}I4.title=LP.lpgs("LastPassMasterLogin");
I4.documentElement.getButton("accept").setAttribute("label",LP.lpgs("Login"));if(I4.documentElement.getButton("cancel")){I4.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("Cancel"))}if(I4.getElementById("repromptdesc")){I4.getElementById("repromptdesc").appendChild(I4.createTextNode(LP.lpgs("PasswordReprompt")))
}LP.sr(I4,"usernamelabel","value","Email");LP.sr(I4,"passwordlabel","value","MasterPassword");LP.sr(I4,"capslocklabel","value","Caps Lock is ON");LP.sr(I4,"lprememberusername","label","RememberUsername");LP.sr(I4,"lprememberpassword","label","RememberPassword");LP.sr(I4,"lpshowhomepageafterlogin","label","ShowHomepageAfterLogin");
LP.sr(I4,"disableffpw","label","Disable Insecure Firefox Password Manager");LP.sr(I4,"forgetlink","value","ForgotHelp");LP.sr(I4,"screenkeyboard","value","ScreenKeyboard");LP.sr(I4,"createlink","value","CreateAccount");LP.sr(I4,"lpreprompttimecheck","label","RepromptTime");if(I4.getElementById("capslocklabel")){var z=I4.getElementById("capslocklabel");
z.style.display="none";z.style.textAlign="center";z.style.padding="3px";z.style.color="#ff0000";z.style.background="#ffff00"}if(I0==1){var t=CZ(I8);if(t.length>0){var I5=decodeURIComponent(t[0]);t.sort(LP.lp_sort_case_insensitive);if(I4.getElementById("lpusernamepopup")){var I6=I4.getElementById("lpusernamepopup");
for(var I1=0;I1<t.length;I1++){var I7=I4.createElement("menuitem");I7.setAttribute("label",decodeURIComponent(t[I1]));I7.setAttribute("oncommand","LP.populate_password(document);");I6.appendChild(I7)}}I4.getElementById("lpusername").value=I8!=""?I8:I5;LP.populate_password(I4)}else{I4.getElementById("lpusername").focus()
}I4.getElementById("lprememberusername").checked=(!LP.lpprefsHasUserValue("rememberUsername",false)||LP.lpprefsGetBoolPref("rememberUsername",false));if(I4.getElementById("lprememberpassword")){I4.getElementById("lprememberpassword").checked=(LP.lpprefsHasUserValue("rememberPassword",false)&&LP.lpprefsGetBoolPref("rememberPassword",false))
}if(I4.getElementById("lpshowhomepageafterlogin")){I4.getElementById("lpshowhomepageafterlogin").checked=(!LP.lpprefsHasUserValue("showHomepageAfterLogin",false)||LP.lpprefsGetBoolPref("showHomepageAfterLogin",false))}if(!LP.lpprefsGetBoolPref("signon.rememberSignons",false,LP.lpmainprefs)){if(I4.getElementById("disableffpw")){I4.getElementById("disableffpw").style.display="none"
}}else{if(!LP.lpprefsHasUserValue("disableffpwasked")){if(I4.getElementById("disableffpw")){I4.getElementById("disableffpw").checked=true}}}if(I4.getElementById("pwreprompt")){I4.getElementById("pwreprompt").style.display="none"}LP.sr(I4,"lpshowhomepageafterlogin","hidden",Bj?true:false);LP.lplogin_fix_fields(I4)
}else{I4.getElementById("lpusername").value=EV;I4.getElementById("lpusername").disabled=true;if(I4.getElementById("lpdelete")){I4.getElementById("lpdelete").style.display="none"}I4.getElementById("lppassword").focus();I4.getElementById("lprememberusername").style.display="none";if(I4.getElementById("lprememberpassword")){I4.getElementById("lprememberpassword").style.display="none"
}I4.getElementById("lpshowhomepageafterlogin").style.display="none";I4.getElementById("disableffpw").checked=false;I4.getElementById("disableffpw").style.display="none";I4.getElementById("forgetlink").style.display="none";I4.getElementById("createlink").style.display="none";I4.getElementById("screenkeyboard").style.display="none";
I4.getElementById("lpreprompttimerow").setAttribute("hidden",false);var e=I4.getElementById("lpreprompttimepopup");var I7=I4.createElement("menuitem");I7.setAttribute("label","");I7.setAttribute("value","0");e.appendChild(I7);var I7=I4.createElement("menuitem");I7.setAttribute("label","30 "+LP.lpgs("seconds"));
I7.setAttribute("value","30");e.appendChild(I7);var I7=I4.createElement("menuitem");I7.setAttribute("label","60 "+LP.lpgs("seconds"));I7.setAttribute("value","60");e.appendChild(I7);var I7=I4.createElement("menuitem");I7.setAttribute("label","5 "+LP.lpgs("minutes"));I7.setAttribute("value","300");e.appendChild(I7);
var I7=I4.createElement("menuitem");I7.setAttribute("label","15 "+LP.lpgs("minutes"));I7.setAttribute("value","900");e.appendChild(I7);var I7=I4.createElement("menuitem");I7.setAttribute("label","30 "+LP.lpgs("minutes"));I7.setAttribute("value","1800");e.appendChild(I7);var I7=I4.createElement("menuitem");
I7.setAttribute("label","1 "+LP.lpgs("hour"));I7.setAttribute("value","3600");e.appendChild(I7);var I7=I4.createElement("menuitem");I7.setAttribute("label","3 "+LP.lpgs("hours"));I7.setAttribute("value","10800");e.appendChild(I7);var I7=I4.createElement("menuitem");I7.setAttribute("label","6 "+LP.lpgs("hours"));
I7.setAttribute("value","21600");e.appendChild(I7);var I7=I4.createElement("menuitem");I7.setAttribute("label","12 "+LP.lpgs("hours"));I7.setAttribute("value","43200");e.appendChild(I7);var I7=I4.createElement("menuitem");I7.setAttribute("label","24 "+LP.lpgs("hours"));I7.setAttribute("value","86400");
e.appendChild(I7);var I2=0;if(LP.lpprefsHasUserValue("RepromptTime")){I2=LP.lpprefsGetIntPref("RepromptTime")}I4.getElementById("lpreprompttime").value=I2;I4.getElementById("lpreprompttimecheck").checked=(I2==0?false:true)}};this.setpromptcheck=function(t){var e=t.getElementById("lpreprompttime").value;
t.getElementById("lpreprompttimecheck").checked=(e==0?false:true)};this.lplogin_checkcapslock=function(I0,z,t){if(I0.getElementById("capslocklabel")){H5(I0,z,t,"capslocklabel")}};this.lplogin_accept_click=function(I7,I6){var t=I7.getElementById("lpusername").value;var I5=I7.getElementById("lppassword").value;
var I0=1;if(typeof(I6.arguments)!="undefined"&&I6.arguments.length>0&&typeof(I6.arguments[0].logincase)!="undefined"){I0=I6.arguments[0].logincase}if(I0!=1){if(Hk!=""&&Hk==GS(CB(t+I5))){I6.arguments[0].authorized=1}else{LP.alert(LP.lpgs("Invalid Password."),I6)}if(I6.arguments[0].authorized==1){var I4=30;
if(I7.getElementById("lpreprompttimecheck").checked){var z=I7.getElementById("lpreprompttime").value;I4=parseInt(z)}else{I4=0}}LP.lpprefsSetIntPref("RepromptTime",I4);LP.flush_prefs();BX=Ab();return true}var I8=I7.getElementById("lprememberusername")&&I7.getElementById("lprememberusername").checked;var I3=I8&&I7.getElementById("lprememberpassword")&&I7.getElementById("lprememberpassword").checked;
var e=CZ();var I1=Gn();for(var I2=0;I2<e.length;I2++){if(e[I2]==t){e.splice(I2,1);break}}if(typeof(I1[t])!="undefined"){I1[t]=null}if(I8){e.unshift(t)}if(I3){I1[t]=I5}By(e);E4(I1);LP.flush_prefs();LP.lpprefsSetBoolPref("rememberUsername",I8,false);LP.lpprefsSetBoolPref("rememberPassword",I3,false);LP.lpprefsSetBoolPref("showHomepageAfterLogin",I7.getElementById("lpshowhomepageafterlogin")&&I7.getElementById("lpshowhomepageafterlogin").checked,false);
LP.lpprefsSetBoolPref("disableffpwasked",true,false);if(I7.getElementById("disableffpw")&&I7.getElementById("disableffpw").checked){LP.lpmainprefs.setBoolPref("signon.rememberSignons",false)}LP.flush_prefs();LP.lplogin(I7.getElementById("lpusername").value,I7.getElementById("lppassword").value,"pluginlogin");
I7.getElementById("lppassword").value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";return true};this.lplogin_cancel_click=function(){return true};function C(e,I0){BN();return;var I2=Components.classes["@mozilla.org/passwordmanager;1"];
if(I2){var z=I2.getService(Components.interfaces.nsIPasswordManager);if(z){BN();z.addUser("lastpass.com",e,I0)}}else{var t=Components.classes["@mozilla.org/login-manager;1"].getService(Components.interfaces.nsILoginManager);var I3=new Components.Constructor("@mozilla.org/login-manager/loginInfo;1",Components.interfaces.nsILoginInfo,"init");
var I1=new I3("https://lastpass.com","https://lastpass.com",null,e,I0,"","");BN();t.addLogin(I1)}}function BN(){var I3=Components.classes["@mozilla.org/passwordmanager;1"];if(I3){var I1=I3.getService(Components.interfaces.nsIPasswordManager);if(I1){var I5="lastpass.com";var I4=I1.enumerator;while(I4.hasMoreElements()){try{var I2=I4.getNext().QueryInterface(Components.interfaces.nsIPassword);
if(I2.host==I5){I1.removeUser("lastpass.com",I2.user)}}catch(I4){}}}}else{var z=Components.classes["@mozilla.org/login-manager;1"].getService(Components.interfaces.nsILoginManager);var t=z.findLogins({},"https://lastpass.com","https://lastpass.com",null);for(var I0=0;I0<t.length;I0++){z.removeLogin(t[I0])
}}}function By(I0){var z="";var e="";for(var t=0;t<I0.length;t++){z+=e+encodeURIComponent(I0[t]);e="|"}LP.lpprefsSetCharPref("loginusers",z,false)}function E4(I1){var z="";var t="";for(var e in I1){if(I1[e]!=null){var I3=I1[e];var I0=GS(CB(e));I3=Ds(I3,I0);z+=t+encodeURIComponent(e)+"="+encodeURIComponent(I3);
t="|"}}var I2=FW(z);LP.lpprefsSetCharPref("loginpws",I2,false)}this.lplogin_fix_fields=function(e){if(e.getElementById("lprememberpassword")){e.getElementById("lprememberpassword").disabled=!e.getElementById("lprememberusername").checked}};this.lplogin_confirm_remember_password=function(t,e){if(t.getElementById("lprememberpassword")&&t.getElementById("lprememberpassword").checked){if(!LP.lpConfirmYesNo(LP.lpgs("Are you sure you want to have LastPass remember your password?  This will significantly decrease the security of your LastPass account!"),e)){t.getElementById("lprememberpassword").checked=false
}}};this.populate_password=function(z){var e=z.getElementById("lpusername").value;var t=Gn();if(typeof(t[e])!="undefined"){z.getElementById("lppassword").value=t[e];if(z.getElementById("lprememberpassword")){z.getElementById("lprememberpassword").checked=true}z.getElementById("LPLogin").getButton("accept").focus()
}else{z.getElementById("lppassword").value="";if(z.getElementById("lprememberpassword")){z.getElementById("lprememberpassword").checked=false}z.getElementById("lppassword").focus()}};this.lplogin_delete_user=function(I2){var I4=I2.getElementById("lpusername").value;var I3=CZ();var t=Gn();for(var e=0;
e<I3.length;e++){if(I3[e]==I4){I3.splice(e,1);break}}if(typeof(t[I4])!="undefined"){t[I4]=null}By(I3);E4(t);LP.flush_prefs();var z=I2.getElementById("lpusernamepopup");for(var e=z.childNodes.length-1;e>=0;e--){z.removeChild(z.childNodes.item(e))}if(I3.length>0){var I1=decodeURIComponent(I3[0]);I3.sort(LP.lp_sort_case_insensitive);
for(var e=0;e<I3.length;e++){var I0=I2.createElement("menuitem");I0.setAttribute("label",decodeURIComponent(I3[e]));I0.setAttribute("oncommand","LP.populate_password(document);");z.appendChild(I0)}I2.getElementById("lpusername").value=I1;LP.populate_password(I2)}else{I2.getElementById("lpusername").value="";
I2.getElementById("lppassword").value="";I2.getElementById("lpusername").focus()}};function Da(){if(typeof(Ci)=="undefined"||Ci==null){Ci=new Array();var e;e=new b();e.name="(-12:00) International Date Line West";e.value="-12:00,0";Ci[Ci.length]=e;e=new b();e.name="(-11:00) Midway Island, Samoa";e.value="-11:00,0";
Ci[Ci.length]=e;e=new b();e.name="(-10:00) Hawaii";e.value="-10:00,0";Ci[Ci.length]=e;e=new b();e.name="(-09:00) Alaska";e.value="-09:00,1";Ci[Ci.length]=e;e=new b();e.name="(-08:00) Pacific Time (US & Canada)";e.value="-08:00,1";Ci[Ci.length]=e;e=new b();e.name="(-07:00) Arizona";e.value="-07:00,0";
Ci[Ci.length]=e;e=new b();e.name="(-07:00) Mountain Time (US & Canada)";e.value="-07:00,1";Ci[Ci.length]=e;e=new b();e.name="(-06:00) Central America, Saskatchewan";e.value="-06:00,0";Ci[Ci.length]=e;e=new b();e.name="(-06:00) Central Time (US & Canada), Guadalajara, Mexico City";e.value="-06:00,1";Ci[Ci.length]=e;
e=new b();e.name="(-05:00) Indiana, Bogota, Lima, Quito, Rio Branco";e.value="-05:00,0";Ci[Ci.length]=e;e=new b();e.name="(-05:00) Eastern Time (US & Canada)";e.value="-05:00,1";Ci[Ci.length]=e;e=new b();e.name="(-04:00) Atlantic Time (Canada), Manaus, Santiago";e.value="-04:00,1";Ci[Ci.length]=e;e=new b();
e.name="(-04:00) Caracas, La Paz";e.value="-04:00,0";Ci[Ci.length]=e;e=new b();e.name="(-03:30) Newfoundland";e.value="-03:30,1";Ci[Ci.length]=e;e=new b();e.name="(-03:00) Greenland, Brasilia, Montevideo";e.value="-03:00,1";Ci[Ci.length]=e;e=new b();e.name="(-03:00) Buenos Aires, Georgetown";e.value="-03:00,0";
Ci[Ci.length]=e;e=new b();e.name="(-02:00) Mid-Atlantic";e.value="-02:00,1";Ci[Ci.length]=e;e=new b();e.name="(-01:00) Azores";e.value="-01:00,1";Ci[Ci.length]=e;e=new b();e.name="(-01:00) Cape Verde Is.";e.value="-01:00,0";Ci[Ci.length]=e;e=new b();e.name="(00:00) Casablanca, Monrovia, Reykjavik";e.value="00:00,0";
Ci[Ci.length]=e;e=new b();e.name="(00:00) GMT: Dublin, Edinburgh, Lisbon, London";e.value="00:00,1";Ci[Ci.length]=e;e=new b();e.name="(+01:00) Amsterdam, Berlin, Rome, Vienna, Prague, Brussels";e.value="+01:00,1";Ci[Ci.length]=e;e=new b();e.name="(+01:00) West Central Africa";e.value="+01:00,0";Ci[Ci.length]=e;
e=new b();e.name="(+02:00) Amman, Athens, Istanbul, Beirut, Cairo, Jerusalem";e.value="+02:00,1";Ci[Ci.length]=e;e=new b();e.name="(+02:00) Harare, Pretoria";e.value="+02:00,0";Ci[Ci.length]=e;e=new b();e.name="(+03:00) Baghdad, Moscow, St. Petersburg, Volgograd";e.value="+03:00,1";Ci[Ci.length]=e;e=new b();
e.name="(+03:00) Kuwait, Riyadh, Nairobi, Tbilisi";e.value="+03:00,0";Ci[Ci.length]=e;e=new b();e.name="(+03:30) Tehran";e.value="+03:30,0";Ci[Ci.length]=e;e=new b();e.name="(+04:00) Abu Dhadi, Muscat";e.value="+04:00,0";Ci[Ci.length]=e;e=new b();e.name="(+04:00) Baku, Yerevan";e.value="+04:00,1";Ci[Ci.length]=e;
e=new b();e.name="(+04:30) Kabul";e.value="+04:30,0";Ci[Ci.length]=e;e=new b();e.name="(+05:00) Ekaterinburg";e.value="+05:00,1";Ci[Ci.length]=e;e=new b();e.name="(+05:00) Islamabad, Karachi, Tashkent";e.value="+05:00,0";Ci[Ci.length]=e;e=new b();e.name="(+05:30) Chennai, Kolkata, Mumbai, New Delhi, Sri Jayawardenepura";
e.value="+05:30,0";Ci[Ci.length]=e;e=new b();e.name="(+05:45) Kathmandu";e.value="+05:45,0";Ci[Ci.length]=e;e=new b();e.name="(+06:00) Astana, Dhaka";e.value="+06:00,0";Ci[Ci.length]=e;e=new b();e.name="(+06:00) Almaty, Nonosibirsk";e.value="+06:00,1";Ci[Ci.length]=e;e=new b();e.name="(+06:30) Yangon (Rangoon)";
e.value="+06:30,0";Ci[Ci.length]=e;e=new b();e.name="(+07:00) Krasnoyarsk";e.value="+07:00,1";Ci[Ci.length]=e;e=new b();e.name="(+07:00) Bangkok, Hanoi, Jakarta";e.value="+07:00,0";Ci[Ci.length]=e;e=new b();e.name="(+08:00) Beijing, Hong Kong, Singapore, Taipei";e.value="+08:00,0";Ci[Ci.length]=e;e=new b();
e.name="(+08:00) Irkutsk, Ulaan Bataar, Perth";e.value="+08:00,1";Ci[Ci.length]=e;e=new b();e.name="(+09:00) Yakutsk";e.value="+09:00,1";Ci[Ci.length]=e;e=new b();e.name="(+09:00) Seoul, Osaka, Sapporo, Tokyo";e.value="+09:00,0";Ci[Ci.length]=e;e=new b();e.name="(+09:30) Darwin";e.value="+09:30,0";Ci[Ci.length]=e;
e=new b();e.name="(+09:30) Adelaide";e.value="+09:30,1";Ci[Ci.length]=e;e=new b();e.name="(+10:00) Brisbane, Guam, Port Moresby";e.value="+10:00,0";Ci[Ci.length]=e;e=new b();e.name="(+10:00) Canberra, Melbourne, Sydney, Hobart, Vladivostok";e.value="+10:00,1";Ci[Ci.length]=e;e=new b();e.name="(+11:00) Magadan, Solomon Is., New Caledonia";
e.value="+11:00,0";Ci[Ci.length]=e;e=new b();e.name="(+12:00) Auckland, Wellington";e.value="+12:00,1";Ci[Ci.length]=e;e=new b();e.name="(+12:00) Fiji, Kamchatka, Marshall Is.";e.value="+12:00,0";Ci[Ci.length]=e;e=new b();e.name="(+13:00) Nuku'alofa";e.value="+13:00,0";Ci[Ci.length]=e}}function Ig(){if(typeof(v)=="undefined"||v==null){v=new Array();
var e;e=new Hh();e.name="Alabama";e.code="AL";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Alaska";e.code="AK";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Arizona";e.code="AZ";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Arkansas";e.code="AR";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="California";
e.code="CA";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Colorado";e.code="CO";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Connecticut";e.code="CT";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Delaware";e.code="DE";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="District of Columbia";e.code="DC";e.ordernum=0;
v[v.length]=e;e=new Hh();e.name="Florida";e.code="FL";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Georgia";e.code="GA";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Hawaii";e.code="HI";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Idaho";e.code="ID";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Illinois";
e.code="IL";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Indiana";e.code="IN";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Iowa";e.code="IA";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Kansas";e.code="KS";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Kentucky";e.code="KY";e.ordernum=0;v[v.length]=e;
e=new Hh();e.name="Louisiana";e.code="LA";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Maine";e.code="ME";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Maryland";e.code="MD";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Massachusetts";e.code="MA";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Michigan";
e.code="MI";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Minnesota";e.code="MN";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Mississippi";e.code="MS";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Missouri";e.code="MO";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Montana";e.code="MT";e.ordernum=0;v[v.length]=e;
e=new Hh();e.name="Nebraska";e.code="NE";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Nevada";e.code="NV";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="New Hampshire";e.code="NH";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="New Jersey";e.code="NJ";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="New Mexico";
e.code="NM";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="New York";e.code="NY";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="North Carolina";e.code="NC";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="North Dakota";e.code="ND";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Ohio";e.code="OH";e.ordernum=0;
v[v.length]=e;e=new Hh();e.name="Oklahoma";e.code="OK";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Oregon";e.code="OR";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Pennsylvania";e.code="PA";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Rhode Island";e.code="RI";e.ordernum=0;v[v.length]=e;e=new Hh();
e.name="South Carolina";e.code="SC";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="South Dakota";e.code="SD";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Tennessee";e.code="TN";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Texas";e.code="TX";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Utah";e.code="UT";
e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Vermont";e.code="VT";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Virginia";e.code="VA";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Washington";e.code="WA";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="West Virginia";e.code="WV";e.ordernum=0;v[v.length]=e;
e=new Hh();e.name="Wisconsin";e.code="WI";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Wyoming";e.code="WY";e.ordernum=0;v[v.length]=e;e=new Hh();e.name="Armed Forces Americas";e.code="AA";e.ordernum=1;v[v.length]=e;e=new Hh();e.name="Armed Forces EMEAC";e.code="AE";e.ordernum=1;v[v.length]=e;e=new Hh();
e.name="Armed Forces Pacific";e.code="AP";e.ordernum=1;v[v.length]=e;e=new Hh();e.name="American Samoa";e.code="AS";e.ordernum=2;v[v.length]=e;e=new Hh();e.name="Federated States of Micronesia";e.code="FM";e.ordernum=2;v[v.length]=e;e=new Hh();e.name="Guam";e.code="GU";e.ordernum=2;v[v.length]=e;e=new Hh();
e.name="Marshall Islands";e.code="MH";e.ordernum=2;v[v.length]=e;e=new Hh();e.name="Northern Mariana Islands";e.code="MP";e.ordernum=2;v[v.length]=e;e=new Hh();e.name="Palau";e.code="PW";e.ordernum=2;v[v.length]=e;e=new Hh();e.name="Puerto Rico";e.code="PR";e.ordernum=2;v[v.length]=e;e=new Hh();e.name="Virgin Islands";
e.code="VI";e.ordernum=2;v[v.length]=e;e=new Hh();e.name="Alberta";e.code="AB";e.ordernum=3;v[v.length]=e;e=new Hh();e.name="British Columbia";e.code="BC";e.ordernum=3;v[v.length]=e;e=new Hh();e.name="Manitoba";e.code="MB";e.ordernum=3;v[v.length]=e;e=new Hh();e.name="New Brunswick";e.code="NB";e.ordernum=3;
v[v.length]=e;e=new Hh();e.name="Newfoundland and Labrador";e.code="NL";e.ordernum=3;v[v.length]=e;e=new Hh();e.name="Northwest Territories";e.code="NT";e.ordernum=3;v[v.length]=e;e=new Hh();e.name="Nova Scotia";e.code="NS";e.ordernum=3;v[v.length]=e;e=new Hh();e.name="Nunavut";e.code="NU";e.ordernum=3;
v[v.length]=e;e=new Hh();e.name="Ontario";e.code="ON";e.ordernum=3;v[v.length]=e;e=new Hh();e.name="Prince Edward Island";e.code="PE";e.ordernum=3;v[v.length]=e;e=new Hh();e.name="Quebec";e.code="QC";e.ordernum=3;v[v.length]=e;e=new Hh();e.name="Saskatchewan";e.code="SK";e.ordernum=3;v[v.length]=e;e=new Hh();
e.name="Yukon";e.code="YT";e.ordernum=3;v[v.length]=e}}function g(){if(typeof(Hs)=="undefined"||Hs==null){Hs=new Array();var e;e=new FF();e.name="Afghanistan";e.cc2l="AF";e.cc3l="AFG";e.num="4";e.phone="93";Hs[Hs.length]=e;e=new FF();e.name="Aland Islands";e.cc2l="AX";e.cc3l="ALA";e.num="248";e.phone="358";
Hs[Hs.length]=e;e=new FF();e.name="Albania";e.cc2l="AL";e.cc3l="ALB";e.num="8";e.phone="355";Hs[Hs.length]=e;e=new FF();e.name="Algeria";e.cc2l="DZ";e.cc3l="DZA";e.num="12";e.phone="213";Hs[Hs.length]=e;e=new FF();e.name="American Samoa";e.cc2l="AS";e.cc3l="ASM";e.num="16";e.phone="1";Hs[Hs.length]=e;
e=new FF();e.name="Andorra";e.cc2l="AD";e.cc3l="AND";e.num="20";e.phone="376";Hs[Hs.length]=e;e=new FF();e.name="Angola";e.cc2l="AO";e.cc3l="AGO";e.num="24";e.phone="244";Hs[Hs.length]=e;e=new FF();e.name="Anguilla";e.cc2l="AI";e.cc3l="AIA";e.num="660";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Antarctica";
e.cc2l="AQ";e.cc3l="ATA";e.num="10";e.phone="672";Hs[Hs.length]=e;e=new FF();e.name="Antigua and Barbuda";e.cc2l="AG";e.cc3l="ATG";e.num="28";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Argentina";e.cc2l="AR";e.cc3l="ARG";e.num="32";e.phone="54";Hs[Hs.length]=e;e=new FF();e.name="Armenia";e.cc2l="AM";
e.cc3l="ARM";e.num="51";e.phone="374";Hs[Hs.length]=e;e=new FF();e.name="Aruba";e.cc2l="AW";e.cc3l="ABW";e.num="533";e.phone="297";Hs[Hs.length]=e;e=new FF();e.name="Australia";e.cc2l="AU";e.cc3l="AUS";e.num="36";e.phone="61";Hs[Hs.length]=e;e=new FF();e.name="Austria";e.cc2l="AT";e.cc3l="AUT";e.num="40";
e.phone="43";Hs[Hs.length]=e;e=new FF();e.name="Azerbaijan";e.cc2l="AZ";e.cc3l="AZE";e.num="31";e.phone="994";Hs[Hs.length]=e;e=new FF();e.name="Bahamas";e.cc2l="BS";e.cc3l="BHS";e.num="44";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Bahrain";e.cc2l="BH";e.cc3l="BHR";e.num="48";e.phone="973";Hs[Hs.length]=e;
e=new FF();e.name="Bangladesh";e.cc2l="BD";e.cc3l="BGD";e.num="50";e.phone="880";Hs[Hs.length]=e;e=new FF();e.name="Barbados";e.cc2l="BB";e.cc3l="BRB";e.num="52";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Belarus";e.cc2l="BY";e.cc3l="BLR";e.num="112";e.phone="375";Hs[Hs.length]=e;e=new FF();e.name="Belgium";
e.cc2l="BE";e.cc3l="BEL";e.num="56";e.phone="32";Hs[Hs.length]=e;e=new FF();e.name="Belize";e.cc2l="BZ";e.cc3l="BLZ";e.num="84";e.phone="501";Hs[Hs.length]=e;e=new FF();e.name="Benin";e.cc2l="BJ";e.cc3l="BEN";e.num="204";e.phone="229";Hs[Hs.length]=e;e=new FF();e.name="Bermuda";e.cc2l="BM";e.cc3l="BMU";
e.num="60";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Bhutan";e.cc2l="BT";e.cc3l="BTN";e.num="64";e.phone="975";Hs[Hs.length]=e;e=new FF();e.name="Bolivia";e.cc2l="BO";e.cc3l="BOL";e.num="68";e.phone="591";Hs[Hs.length]=e;e=new FF();e.name="Bosnia and Herzegovina";e.cc2l="BA";e.cc3l="BIH";e.num="70";
e.phone="387";Hs[Hs.length]=e;e=new FF();e.name="Botswana";e.cc2l="BW";e.cc3l="BWA";e.num="72";e.phone="267";Hs[Hs.length]=e;e=new FF();e.name="Bouvet Island";e.cc2l="BV";e.cc3l="BVT";e.num="74";e.phone="47";Hs[Hs.length]=e;e=new FF();e.name="Brazil";e.cc2l="BR";e.cc3l="BRA";e.num="76";e.phone="55";Hs[Hs.length]=e;
e=new FF();e.name="British Indian Ocean Territory";e.cc2l="IO";e.cc3l="IOT";e.num="86";e.phone="246";Hs[Hs.length]=e;e=new FF();e.name="Brunei Darussalam";e.cc2l="BN";e.cc3l="BRN";e.num="96";e.phone="673";Hs[Hs.length]=e;e=new FF();e.name="Bulgaria";e.cc2l="BG";e.cc3l="BGR";e.num="100";e.phone="359";
Hs[Hs.length]=e;e=new FF();e.name="Burkina Faso";e.cc2l="BF";e.cc3l="BFA";e.num="854";e.phone="226";Hs[Hs.length]=e;e=new FF();e.name="Burundi";e.cc2l="BI";e.cc3l="BDI";e.num="108";e.phone="257";Hs[Hs.length]=e;e=new FF();e.name="Cambodia";e.cc2l="KH";e.cc3l="KHM";e.num="116";e.phone="855";Hs[Hs.length]=e;
e=new FF();e.name="Cameroon";e.cc2l="CM";e.cc3l="CMR";e.num="120";e.phone="237";Hs[Hs.length]=e;e=new FF();e.name="Canada";e.cc2l="CA";e.cc3l="CAN";e.num="124";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Cape Verde";e.cc2l="CV";e.cc3l="CPV";e.num="132";e.phone="238";Hs[Hs.length]=e;e=new FF();e.name="Cayman Islands";
e.cc2l="KY";e.cc3l="CYM";e.num="136";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Central African Republic";e.cc2l="CF";e.cc3l="CAF";e.num="140";e.phone="236";Hs[Hs.length]=e;e=new FF();e.name="Chad";e.cc2l="TD";e.cc3l="TCD";e.num="148";e.phone="235";Hs[Hs.length]=e;e=new FF();e.name="Chile";e.cc2l="CL";
e.cc3l="CHL";e.num="152";e.phone="56";Hs[Hs.length]=e;e=new FF();e.name="China";e.cc2l="CN";e.cc3l="CHN";e.num="156";e.phone="86";Hs[Hs.length]=e;e=new FF();e.name="Christmas Island";e.cc2l="CX";e.cc3l="CXR";e.num="162";e.phone="61";Hs[Hs.length]=e;e=new FF();e.name="Cocos (Keeling) Islands";e.cc2l="CC";
e.cc3l="CCK";e.num="166";e.phone="61";Hs[Hs.length]=e;e=new FF();e.name="Colombia";e.cc2l="CO";e.cc3l="COL";e.num="170";e.phone="57";Hs[Hs.length]=e;e=new FF();e.name="Comoros";e.cc2l="KM";e.cc3l="COM";e.num="174";e.phone="269";Hs[Hs.length]=e;e=new FF();e.name="Congo";e.cc2l="CG";e.cc3l="COG";e.num="178";
e.phone="242";Hs[Hs.length]=e;e=new FF();e.name="Congo, the Democratic Republic of The";e.cc2l="CD";e.cc3l="COD";e.num="180";e.phone="243";Hs[Hs.length]=e;e=new FF();e.name="Cook Islands";e.cc2l="CK";e.cc3l="COK";e.num="184";e.phone="682";Hs[Hs.length]=e;e=new FF();e.name="Costa Rica";e.cc2l="CR";e.cc3l="CRI";
e.num="188";e.phone="506";Hs[Hs.length]=e;e=new FF();e.name="Cote D'ivoire";e.cc2l="CI";e.cc3l="CIV";e.num="384";e.phone="225";Hs[Hs.length]=e;e=new FF();e.name="Croatia";e.cc2l="HR";e.cc3l="HRV";e.num="191";e.phone="385";Hs[Hs.length]=e;e=new FF();e.name="Cuba";e.cc2l="CU";e.cc3l="CUB";e.num="192";e.phone="53";
Hs[Hs.length]=e;e=new FF();e.name="Cyprus";e.cc2l="CY";e.cc3l="CYP";e.num="196";e.phone="357";Hs[Hs.length]=e;e=new FF();e.name="Czech Republic";e.cc2l="CZ";e.cc3l="CZE";e.num="203";e.phone="420";Hs[Hs.length]=e;e=new FF();e.name="Denmark";e.cc2l="DK";e.cc3l="DNK";e.num="208";e.phone="45";Hs[Hs.length]=e;
e=new FF();e.name="Djibouti";e.cc2l="DJ";e.cc3l="DJI";e.num="262";e.phone="253";Hs[Hs.length]=e;e=new FF();e.name="Dominica";e.cc2l="DM";e.cc3l="DMA";e.num="212";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Dominican Republic";e.cc2l="DO";e.cc3l="DOM";e.num="214";e.phone="1";Hs[Hs.length]=e;e=new FF();
e.name="Ecuador";e.cc2l="EC";e.cc3l="ECU";e.num="218";e.phone="593";Hs[Hs.length]=e;e=new FF();e.name="Egypt";e.cc2l="EG";e.cc3l="EGY";e.num="818";e.phone="20";Hs[Hs.length]=e;e=new FF();e.name="El Salvador";e.cc2l="SV";e.cc3l="SLV";e.num="222";e.phone="503";Hs[Hs.length]=e;e=new FF();e.name="Equatorial Guinea";
e.cc2l="GQ";e.cc3l="GNQ";e.num="226";e.phone="240";Hs[Hs.length]=e;e=new FF();e.name="Eritrea";e.cc2l="ER";e.cc3l="ERI";e.num="232";e.phone="291";Hs[Hs.length]=e;e=new FF();e.name="Estonia";e.cc2l="EE";e.cc3l="EST";e.num="233";e.phone="372";Hs[Hs.length]=e;e=new FF();e.name="Ethiopia";e.cc2l="ET";e.cc3l="ETH";
e.num="231";e.phone="251";Hs[Hs.length]=e;e=new FF();e.name="Falkland Islands (Malvinas)";e.cc2l="FK";e.cc3l="FLK";e.num="238";e.phone="500";Hs[Hs.length]=e;e=new FF();e.name="Faroe Islands";e.cc2l="FO";e.cc3l="FRO";e.num="234";e.phone="298";Hs[Hs.length]=e;e=new FF();e.name="Fiji";e.cc2l="FJ";e.cc3l="FJI";
e.num="242";e.phone="679";Hs[Hs.length]=e;e=new FF();e.name="Finland";e.cc2l="FI";e.cc3l="FIN";e.num="246";e.phone="358";Hs[Hs.length]=e;e=new FF();e.name="France";e.cc2l="FR";e.cc3l="FRA";e.num="250";e.phone="33";Hs[Hs.length]=e;e=new FF();e.name="French Guiana";e.cc2l="GF";e.cc3l="GUF";e.num="254";
e.phone="594";Hs[Hs.length]=e;e=new FF();e.name="French Polynesia";e.cc2l="PF";e.cc3l="PYF";e.num="258";e.phone="689";Hs[Hs.length]=e;e=new FF();e.name="French Southern Territories";e.cc2l="TF";e.cc3l="ATF";e.num="260";e.phone="596";Hs[Hs.length]=e;e=new FF();e.name="Gabon";e.cc2l="GA";e.cc3l="GAB";e.num="266";
e.phone="241";Hs[Hs.length]=e;e=new FF();e.name="Gambia";e.cc2l="GM";e.cc3l="GMB";e.num="270";e.phone="220";Hs[Hs.length]=e;e=new FF();e.name="Georgia";e.cc2l="GE";e.cc3l="GEO";e.num="268";e.phone="995";Hs[Hs.length]=e;e=new FF();e.name="Germany";e.cc2l="DE";e.cc3l="DEU";e.num="276";e.phone="49";Hs[Hs.length]=e;
e=new FF();e.name="Ghana";e.cc2l="GH";e.cc3l="GHA";e.num="288";e.phone="233";Hs[Hs.length]=e;e=new FF();e.name="Gibraltar";e.cc2l="GI";e.cc3l="GIB";e.num="292";e.phone="350";Hs[Hs.length]=e;e=new FF();e.name="Greece";e.cc2l="GR";e.cc3l="GRC";e.num="300";e.phone="30";Hs[Hs.length]=e;e=new FF();e.name="Greenland";
e.cc2l="GL";e.cc3l="GRL";e.num="304";e.phone="299";Hs[Hs.length]=e;e=new FF();e.name="Grenada";e.cc2l="GD";e.cc3l="GRD";e.num="308";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Guadeloupe";e.cc2l="GP";e.cc3l="GLP";e.num="312";e.phone="590";Hs[Hs.length]=e;e=new FF();e.name="Guam";e.cc2l="GU";e.cc3l="GUM";
e.num="316";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Guatemala";e.cc2l="GT";e.cc3l="GTM";e.num="320";e.phone="502";Hs[Hs.length]=e;e=new FF();e.name="Guernsey";e.cc2l="GG";e.cc3l="GGY";e.num="831";e.phone="44";Hs[Hs.length]=e;e=new FF();e.name="Guinea";e.cc2l="GN";e.cc3l="GIN";e.num="324";e.phone="224";
Hs[Hs.length]=e;e=new FF();e.name="Guinea-Bissau";e.cc2l="GW";e.cc3l="GNB";e.num="624";e.phone="245";Hs[Hs.length]=e;e=new FF();e.name="Guyana";e.cc2l="GY";e.cc3l="GUY";e.num="328";e.phone="592";Hs[Hs.length]=e;e=new FF();e.name="Haiti";e.cc2l="HT";e.cc3l="HTI";e.num="332";e.phone="509";Hs[Hs.length]=e;
e=new FF();e.name="Heard Island and Mcdonald Islands";e.cc2l="HM";e.cc3l="HMD";e.num="334";e.phone="672";Hs[Hs.length]=e;e=new FF();e.name="Holy See (Vatican City State)";e.cc2l="VA";e.cc3l="VAT";e.num="336";e.phone="379";Hs[Hs.length]=e;e=new FF();e.name="Honduras";e.cc2l="HN";e.cc3l="HND";e.num="340";
e.phone="504";Hs[Hs.length]=e;e=new FF();e.name="Hong Kong";e.cc2l="HK";e.cc3l="HKG";e.num="344";e.phone="852";Hs[Hs.length]=e;e=new FF();e.name="Hungary";e.cc2l="HU";e.cc3l="HUN";e.num="348";e.phone="36";Hs[Hs.length]=e;e=new FF();e.name="Iceland";e.cc2l="IS";e.cc3l="ISL";e.num="352";e.phone="354";Hs[Hs.length]=e;
e=new FF();e.name="India";e.cc2l="IN";e.cc3l="IND";e.num="356";e.phone="91";Hs[Hs.length]=e;e=new FF();e.name="Indonesia";e.cc2l="ID";e.cc3l="IDN";e.num="360";e.phone="62";Hs[Hs.length]=e;e=new FF();e.name="Iran (Islamic Republic Of)";e.cc2l="IR";e.cc3l="IRN";e.num="364";e.phone="98";Hs[Hs.length]=e;
e=new FF();e.name="Iraq";e.cc2l="IQ";e.cc3l="IRQ";e.num="368";e.phone="964";Hs[Hs.length]=e;e=new FF();e.name="Ireland";e.cc2l="IE";e.cc3l="IRL";e.num="372";e.phone="353";Hs[Hs.length]=e;e=new FF();e.name="Isle of Man";e.cc2l="IM";e.cc3l="IMM";e.num="833";e.phone="44";Hs[Hs.length]=e;e=new FF();e.name="Israel";
e.cc2l="IL";e.cc3l="ISR";e.num="376";e.phone="972";Hs[Hs.length]=e;e=new FF();e.name="Italy";e.cc2l="IT";e.cc3l="ITA";e.num="380";e.phone="39";Hs[Hs.length]=e;e=new FF();e.name="Jamaica";e.cc2l="JM";e.cc3l="JAM";e.num="388";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Japan";e.cc2l="JP";e.cc3l="JPN";
e.num="392";e.phone="81";Hs[Hs.length]=e;e=new FF();e.name="Jersey";e.cc2l="JE";e.cc3l="JEY";e.num="832";e.phone="44";Hs[Hs.length]=e;e=new FF();e.name="Jordan";e.cc2l="JO";e.cc3l="JOR";e.num="400";e.phone="962";Hs[Hs.length]=e;e=new FF();e.name="Kazakhstan";e.cc2l="KZ";e.cc3l="KAZ";e.num="398";e.phone="7";
Hs[Hs.length]=e;e=new FF();e.name="Kenya";e.cc2l="KE";e.cc3l="KEN";e.num="404";e.phone="254";Hs[Hs.length]=e;e=new FF();e.name="Kiribati";e.cc2l="KI";e.cc3l="KIR";e.num="296";e.phone="686";Hs[Hs.length]=e;e=new FF();e.name="Korea, Democratic People's Republic Of";e.cc2l="KP";e.cc3l="PRK";e.num="408";
e.phone="850";Hs[Hs.length]=e;e=new FF();e.name="Korea, Republic Of";e.cc2l="KR";e.cc3l="KOR";e.num="410";e.phone="82";Hs[Hs.length]=e;e=new FF();e.name="Kuwait";e.cc2l="KW";e.cc3l="KWT";e.num="414";e.phone="965";Hs[Hs.length]=e;e=new FF();e.name="Kyrgyzstan";e.cc2l="KG";e.cc3l="KGZ";e.num="417";e.phone="996";
Hs[Hs.length]=e;e=new FF();e.name="Lao People's Democratic Republic";e.cc2l="LA";e.cc3l="LAO";e.num="418";e.phone="856";Hs[Hs.length]=e;e=new FF();e.name="Latvia";e.cc2l="LV";e.cc3l="LVA";e.num="428";e.phone="371";Hs[Hs.length]=e;e=new FF();e.name="Lebanon";e.cc2l="LB";e.cc3l="LBN";e.num="422";e.phone="961";
Hs[Hs.length]=e;e=new FF();e.name="Lesotho";e.cc2l="LS";e.cc3l="LSO";e.num="426";e.phone="266";Hs[Hs.length]=e;e=new FF();e.name="Liberia";e.cc2l="LR";e.cc3l="LBR";e.num="430";e.phone="231";Hs[Hs.length]=e;e=new FF();e.name="Libyan Arab Jamahiriya";e.cc2l="LY";e.cc3l="LBY";e.num="434";e.phone="218";Hs[Hs.length]=e;
e=new FF();e.name="Liechtenstein";e.cc2l="LI";e.cc3l="LIE";e.num="438";e.phone="423";Hs[Hs.length]=e;e=new FF();e.name="Lithuania";e.cc2l="LT";e.cc3l="LTU";e.num="440";e.phone="370";Hs[Hs.length]=e;e=new FF();e.name="Luxembourg";e.cc2l="LU";e.cc3l="LUX";e.num="442";e.phone="352";Hs[Hs.length]=e;e=new FF();
e.name="Macao";e.cc2l="MO";e.cc3l="MAC";e.num="446";e.phone="853";Hs[Hs.length]=e;e=new FF();e.name="Macedonia, the Former Yugoslav Republic Of";e.cc2l="MK";e.cc3l="MKD";e.num="807";e.phone="389";Hs[Hs.length]=e;e=new FF();e.name="Madagascar";e.cc2l="MG";e.cc3l="MDG";e.num="450";e.phone="261";Hs[Hs.length]=e;
e=new FF();e.name="Malawi";e.cc2l="MW";e.cc3l="MWI";e.num="454";e.phone="265";Hs[Hs.length]=e;e=new FF();e.name="Malaysia";e.cc2l="MY";e.cc3l="MYS";e.num="458";e.phone="60";Hs[Hs.length]=e;e=new FF();e.name="Maldives";e.cc2l="MV";e.cc3l="MDV";e.num="462";e.phone="960";Hs[Hs.length]=e;e=new FF();e.name="Mali";
e.cc2l="ML";e.cc3l="MLI";e.num="466";e.phone="223";Hs[Hs.length]=e;e=new FF();e.name="Malta";e.cc2l="MT";e.cc3l="MLT";e.num="470";e.phone="356";Hs[Hs.length]=e;e=new FF();e.name="Marshall Islands";e.cc2l="MH";e.cc3l="MHL";e.num="584";e.phone="692";Hs[Hs.length]=e;e=new FF();e.name="Martinique";e.cc2l="MQ";
e.cc3l="MTQ";e.num="474";e.phone="596";Hs[Hs.length]=e;e=new FF();e.name="Mauritania";e.cc2l="MR";e.cc3l="MRT";e.num="478";e.phone="222";Hs[Hs.length]=e;e=new FF();e.name="Mauritius";e.cc2l="MU";e.cc3l="MUS";e.num="480";e.phone="230";Hs[Hs.length]=e;e=new FF();e.name="Mayotte";e.cc2l="YT";e.cc3l="MYT";
e.num="175";e.phone="262";Hs[Hs.length]=e;e=new FF();e.name="Mexico";e.cc2l="MX";e.cc3l="MEX";e.num="484";e.phone="52";Hs[Hs.length]=e;e=new FF();e.name="Micronesia, Federated States Of";e.cc2l="FM";e.cc3l="FSM";e.num="583";e.phone="691";Hs[Hs.length]=e;e=new FF();e.name="Moldova, Republic Of";e.cc2l="MD";
e.cc3l="MDA";e.num="498";e.phone="373";Hs[Hs.length]=e;e=new FF();e.name="Monaco";e.cc2l="MC";e.cc3l="MCO";e.num="492";e.phone="377";Hs[Hs.length]=e;e=new FF();e.name="Mongolia";e.cc2l="MN";e.cc3l="MNG";e.num="496";e.phone="976";Hs[Hs.length]=e;e=new FF();e.name="Montenegro";e.cc2l="ME";e.cc3l="MNE";
e.num="499";e.phone="382";Hs[Hs.length]=e;e=new FF();e.name="Montserrat";e.cc2l="MS";e.cc3l="MSR";e.num="500";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Morocco";e.cc2l="MA";e.cc3l="MAR";e.num="504";e.phone="212";Hs[Hs.length]=e;e=new FF();e.name="Mozambique";e.cc2l="MZ";e.cc3l="MOZ";e.num="508";
e.phone="258";Hs[Hs.length]=e;e=new FF();e.name="Myanmar";e.cc2l="MM";e.cc3l="MMR";e.num="104";e.phone="95";Hs[Hs.length]=e;e=new FF();e.name="Namibia";e.cc2l="NA";e.cc3l="NAM";e.num="516";e.phone="264";Hs[Hs.length]=e;e=new FF();e.name="Nauru";e.cc2l="NR";e.cc3l="NRU";e.num="520";e.phone="674";Hs[Hs.length]=e;
e=new FF();e.name="Nepal";e.cc2l="NP";e.cc3l="NPL";e.num="524";e.phone="977";Hs[Hs.length]=e;e=new FF();e.name="Netherlands";e.cc2l="NL";e.cc3l="NLD";e.num="528";e.phone="31";Hs[Hs.length]=e;e=new FF();e.name="Netherlands Antilles";e.cc2l="AN";e.cc3l="ANT";e.num="530";e.phone="599";Hs[Hs.length]=e;e=new FF();
e.name="New Caledonia";e.cc2l="NC";e.cc3l="NCL";e.num="540";e.phone="687";Hs[Hs.length]=e;e=new FF();e.name="New Zealand";e.cc2l="NZ";e.cc3l="NZL";e.num="554";e.phone="64";Hs[Hs.length]=e;e=new FF();e.name="Nicaragua";e.cc2l="NI";e.cc3l="NIC";e.num="558";e.phone="505";Hs[Hs.length]=e;e=new FF();e.name="Niger";
e.cc2l="NE";e.cc3l="NER";e.num="562";e.phone="227";Hs[Hs.length]=e;e=new FF();e.name="Nigeria";e.cc2l="NG";e.cc3l="NGA";e.num="566";e.phone="234";Hs[Hs.length]=e;e=new FF();e.name="Niue";e.cc2l="NU";e.cc3l="NIU";e.num="570";e.phone="683";Hs[Hs.length]=e;e=new FF();e.name="Norfolk Island";e.cc2l="NF";
e.cc3l="NFK";e.num="574";e.phone="672";Hs[Hs.length]=e;e=new FF();e.name="Northern Mariana Islands";e.cc2l="MP";e.cc3l="MNP";e.num="580";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Norway";e.cc2l="NO";e.cc3l="NOR";e.num="578";e.phone="47";Hs[Hs.length]=e;e=new FF();e.name="Oman";e.cc2l="OM";e.cc3l="OMN";
e.num="512";e.phone="968";Hs[Hs.length]=e;e=new FF();e.name="Pakistan";e.cc2l="PK";e.cc3l="PAK";e.num="586";e.phone="92";Hs[Hs.length]=e;e=new FF();e.name="Palau";e.cc2l="PW";e.cc3l="PLW";e.num="585";e.phone="680";Hs[Hs.length]=e;e=new FF();e.name="Palestinian Territories";e.cc2l="PS";e.cc3l="PSE";e.num="275";
e.phone="970";Hs[Hs.length]=e;e=new FF();e.name="Panama";e.cc2l="PA";e.cc3l="PAN";e.num="591";e.phone="507";Hs[Hs.length]=e;e=new FF();e.name="Papua New Guinea";e.cc2l="PG";e.cc3l="PNG";e.num="598";e.phone="675";Hs[Hs.length]=e;e=new FF();e.name="Paraguay";e.cc2l="PY";e.cc3l="PRY";e.num="600";e.phone="595";
Hs[Hs.length]=e;e=new FF();e.name="Peru";e.cc2l="PE";e.cc3l="PER";e.num="604";e.phone="51";Hs[Hs.length]=e;e=new FF();e.name="Philippines";e.cc2l="PH";e.cc3l="PHL";e.num="608";e.phone="63";Hs[Hs.length]=e;e=new FF();e.name="Pitcairn";e.cc2l="PN";e.cc3l="PCN";e.num="612";e.phone="872";Hs[Hs.length]=e;
e=new FF();e.name="Poland";e.cc2l="PL";e.cc3l="POL";e.num="616";e.phone="48";Hs[Hs.length]=e;e=new FF();e.name="Portugal";e.cc2l="PT";e.cc3l="PRT";e.num="620";e.phone="351";Hs[Hs.length]=e;e=new FF();e.name="Puerto Rico";e.cc2l="PR";e.cc3l="PRI";e.num="630";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Qatar";
e.cc2l="QA";e.cc3l="QAT";e.num="634";e.phone="974";Hs[Hs.length]=e;e=new FF();e.name="Reunion";e.cc2l="RE";e.cc3l="REU";e.num="638";e.phone="262";Hs[Hs.length]=e;e=new FF();e.name="Romania";e.cc2l="RO";e.cc3l="ROU";e.num="642";e.phone="40";Hs[Hs.length]=e;e=new FF();e.name="Russian Federation";e.cc2l="RU";
e.cc3l="RUS";e.num="643";e.phone="7";Hs[Hs.length]=e;e=new FF();e.name="Rwanda";e.cc2l="RW";e.cc3l="RWA";e.num="646";e.phone="250";Hs[Hs.length]=e;e=new FF();e.name="Saint Barthelemy";e.cc2l="BL";e.cc3l="BLM";e.num="652";e.phone="590";Hs[Hs.length]=e;e=new FF();e.name="Saint Helena";e.cc2l="SH";e.cc3l="SHN";
e.num="654";e.phone="290";Hs[Hs.length]=e;e=new FF();e.name="Saint Kitts and Nevis";e.cc2l="KN";e.cc3l="KNA";e.num="659";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Saint Lucia";e.cc2l="LC";e.cc3l="LCA";e.num="662";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Saint Martin (French Part)";e.cc2l="MF";
e.cc3l="MAF";e.num="663";e.phone="590";Hs[Hs.length]=e;e=new FF();e.name="Saint Pierre and Miquelon";e.cc2l="PM";e.cc3l="SPM";e.num="666";e.phone="508";Hs[Hs.length]=e;e=new FF();e.name="Saint Vincent and the Grenadines";e.cc2l="VC";e.cc3l="VCT";e.num="670";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Samoa";
e.cc2l="WS";e.cc3l="WSM";e.num="882";e.phone="685";Hs[Hs.length]=e;e=new FF();e.name="San Marino";e.cc2l="SM";e.cc3l="SMR";e.num="674";e.phone="378";Hs[Hs.length]=e;e=new FF();e.name="Sao Tome and Principe";e.cc2l="ST";e.cc3l="STP";e.num="678";e.phone="239";Hs[Hs.length]=e;e=new FF();e.name="Saudi Arabia";
e.cc2l="SA";e.cc3l="SAU";e.num="682";e.phone="966";Hs[Hs.length]=e;e=new FF();e.name="Senegal";e.cc2l="SN";e.cc3l="SEN";e.num="686";e.phone="221";Hs[Hs.length]=e;e=new FF();e.name="Serbia";e.cc2l="RS";e.cc3l="SRB";e.num="688";e.phone="381";Hs[Hs.length]=e;e=new FF();e.name="Seychelles";e.cc2l="SC";e.cc3l="SYC";
e.num="690";e.phone="248";Hs[Hs.length]=e;e=new FF();e.name="Sierra Leone";e.cc2l="SL";e.cc3l="SLE";e.num="694";e.phone="232";Hs[Hs.length]=e;e=new FF();e.name="Singapore";e.cc2l="SG";e.cc3l="SGP";e.num="702";e.phone="65";Hs[Hs.length]=e;e=new FF();e.name="Slovakia";e.cc2l="SK";e.cc3l="SVK";e.num="703";
e.phone="421";Hs[Hs.length]=e;e=new FF();e.name="Slovenia";e.cc2l="SI";e.cc3l="SVN";e.num="705";e.phone="386";Hs[Hs.length]=e;e=new FF();e.name="Solomon Islands";e.cc2l="SB";e.cc3l="SLB";e.num="90";e.phone="677";Hs[Hs.length]=e;e=new FF();e.name="Somalia";e.cc2l="SO";e.cc3l="SOM";e.num="706";e.phone="252";
Hs[Hs.length]=e;e=new FF();e.name="South Africa";e.cc2l="ZA";e.cc3l="ZAF";e.num="710";e.phone="27";Hs[Hs.length]=e;e=new FF();e.name="South Georgia and the South Sandwich Islands";e.cc2l="GS";e.cc3l="SGS";e.num="239";e.phone="995";Hs[Hs.length]=e;e=new FF();e.name="Spain";e.cc2l="ES";e.cc3l="ESP";e.num="724";
e.phone="34";Hs[Hs.length]=e;e=new FF();e.name="Sri Lanka";e.cc2l="LK";e.cc3l="LKA";e.num="144";e.phone="94";Hs[Hs.length]=e;e=new FF();e.name="Sudan";e.cc2l="SD";e.cc3l="SDN";e.num="736";e.phone="249";Hs[Hs.length]=e;e=new FF();e.name="Suriname";e.cc2l="SR";e.cc3l="SUR";e.num="740";e.phone="597";Hs[Hs.length]=e;
e=new FF();e.name="Svalbard and Jan Mayen";e.cc2l="SJ";e.cc3l="SJM";e.num="744";e.phone="47";Hs[Hs.length]=e;e=new FF();e.name="Swaziland";e.cc2l="SZ";e.cc3l="SWZ";e.num="748";e.phone="268";Hs[Hs.length]=e;e=new FF();e.name="Sweden";e.cc2l="SE";e.cc3l="SWE";e.num="752";e.phone="46";Hs[Hs.length]=e;e=new FF();
e.name="Switzerland";e.cc2l="CH";e.cc3l="CHE";e.num="756";e.phone="41";Hs[Hs.length]=e;e=new FF();e.name="Syrian Arab Republic";e.cc2l="SY";e.cc3l="SYR";e.num="760";e.phone="963";Hs[Hs.length]=e;e=new FF();e.name="Taiwan";e.cc2l="TW";e.cc3l="TWN";e.num="158";e.phone="886";Hs[Hs.length]=e;e=new FF();e.name="Tajikistan";
e.cc2l="TJ";e.cc3l="TJK";e.num="762";e.phone="992";Hs[Hs.length]=e;e=new FF();e.name="Tanzania, United Republic Of";e.cc2l="TZ";e.cc3l="TZA";e.num="834";e.phone="255";Hs[Hs.length]=e;e=new FF();e.name="Thailand";e.cc2l="TH";e.cc3l="THA";e.num="764";e.phone="66";Hs[Hs.length]=e;e=new FF();e.name="Timor-Leste";
e.cc2l="TL";e.cc3l="TLS";e.num="626";e.phone="670";Hs[Hs.length]=e;e=new FF();e.name="Togo";e.cc2l="TG";e.cc3l="TGO";e.num="768";e.phone="228";Hs[Hs.length]=e;e=new FF();e.name="Tokelau";e.cc2l="TK";e.cc3l="TKL";e.num="772";e.phone="690";Hs[Hs.length]=e;e=new FF();e.name="Tonga";e.cc2l="TO";e.cc3l="TON";
e.num="776";e.phone="676";Hs[Hs.length]=e;e=new FF();e.name="Trinidad and Tobago";e.cc2l="TT";e.cc3l="TTO";e.num="780";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Tunisia";e.cc2l="TN";e.cc3l="TUN";e.num="788";e.phone="216";Hs[Hs.length]=e;e=new FF();e.name="Turkey";e.cc2l="TR";e.cc3l="TUR";e.num="792";
e.phone="90";Hs[Hs.length]=e;e=new FF();e.name="Turkmenistan";e.cc2l="TM";e.cc3l="TKM";e.num="795";e.phone="993";Hs[Hs.length]=e;e=new FF();e.name="Turks and Caicos Islands";e.cc2l="TC";e.cc3l="TCA";e.num="796";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Tuvalu";e.cc2l="TV";e.cc3l="TUV";e.num="798";
e.phone="688";Hs[Hs.length]=e;e=new FF();e.name="Uganda";e.cc2l="UG";e.cc3l="UGA";e.num="800";e.phone="256";Hs[Hs.length]=e;e=new FF();e.name="Ukraine";e.cc2l="UA";e.cc3l="UKR";e.num="804";e.phone="380";Hs[Hs.length]=e;e=new FF();e.name="United Arab Emirates";e.cc2l="AE";e.cc3l="ARE";e.num="784";e.phone="971";
Hs[Hs.length]=e;e=new FF();e.name="United Kingdom";e.cc2l="GB";e.cc3l="GBR";e.num="826";e.phone="44";Hs[Hs.length]=e;e=new FF();e.name="United States";e.cc2l="US";e.cc3l="USA";e.num="840";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="United States Minor Outlying Islands";e.cc2l="UM";e.cc3l="UMI";e.num="581";
e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Uruguay";e.cc2l="UY";e.cc3l="URY";e.num="858";e.phone="598";Hs[Hs.length]=e;e=new FF();e.name="Uzbekistan";e.cc2l="UZ";e.cc3l="UZB";e.num="860";e.phone="998";Hs[Hs.length]=e;e=new FF();e.name="Vanuatu";e.cc2l="VU";e.cc3l="VUT";e.num="548";e.phone="678";Hs[Hs.length]=e;
e=new FF();e.name="Venezuela";e.cc2l="VE";e.cc3l="VEN";e.num="862";e.phone="58";Hs[Hs.length]=e;e=new FF();e.name="Viet Nam";e.cc2l="VN";e.cc3l="VNM";e.num="704";e.phone="84";Hs[Hs.length]=e;e=new FF();e.name="Virgin Islands (British)";e.cc2l="VG";e.cc3l="VGB";e.num="92";e.phone="1";Hs[Hs.length]=e;e=new FF();
e.name="Virgin Islands (U.S.)";e.cc2l="VI";e.cc3l="VIR";e.num="850";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Wallis and Futuna";e.cc2l="WF";e.cc3l="WLF";e.num="876";e.phone="681";Hs[Hs.length]=e;e=new FF();e.name="Western Sahara";e.cc2l="EH";e.cc3l="ESH";e.num="732";e.phone="212";Hs[Hs.length]=e;
e=new FF();e.name="Yemen";e.cc2l="YE";e.cc3l="YEM";e.num="887";e.phone="967";Hs[Hs.length]=e;e=new FF();e.name="Yugoslavia";e.cc2l="YU";e.cc3l="YUG";e.num="891";e.phone="381";Hs[Hs.length]=e;e=new FF();e.name="Zambia";e.cc2l="ZM";e.cc3l="ZMB";e.num="894";e.phone="260";Hs[Hs.length]=e;e=new FF();e.name="Zimbabwe";
e.cc2l="ZW";e.cc3l="ZWE";e.num="716";e.phone="263";Hs[Hs.length]=e}}this.formfill_window_load=function(Jp,Jm){var t=Jm.arguments;if(t.length>0){Jp.formfill_id=t[0]}var Jh=t.length>1?t[1]:false;var I7=t.length>2&&typeof(t[2])!="undefined"?t[2]:0;var Jk=t.length>3&&typeof(t[3])!="undefined"?t[3]:null;var Jl=typeof(GL)!="undefined"&&GL!=null&&GL!=""?GL:LP.lpmainprefs.getCharPref("general.useragent.locale");
if(typeof(GW)!="undefined"&&GW!=null&&GW!=""){Jp.defaultcountry=GW}else{if(Jl.length==5){Jp.defaultcountry=Jl.substring(3).toUpperCase()}else{Jp.defaultcountry=""}}var I0=Jp.getElementById("lpprofilelanguagepopup");function I3(Jq,Js){var Jr=Jp.createElement("menuitem");Jr.setAttribute("label",Jq);Jr.setAttribute("value",Js);
I0.appendChild(Jr)}I3("English","en-US");I3("Dutch","nl-NL");var Jg=Jp.getElementById("lpbirthmonthpopup");for(var Jj=1;Jj<=12;Jj++){var Jn=Jp.createElement("menuitem");Jn.setAttribute("value",(Jj<10?"0":"")+Jj);Jg.appendChild(Jn)}var Ja=Jp.getElementById("lpbirthdaypopup");for(var Jj=1;Jj<=31;Jj++){var Jn=Jp.createElement("menuitem");
Jn.setAttribute("label",Jj);Jn.setAttribute("value",(Jj<10?"0":"")+Jj);Ja.appendChild(Jn)}var I6=Jp.getElementById("lpstatepopup");var Je=0;Ig();for(var Jj=0;Jj<v.length;Jj++){if(v[Jj].ordernum!=Je){var Jn=Jp.createElement("menuitem");Jn.setAttribute("label","-----");Jn.setAttribute("value","");I6.appendChild(Jn);
Je=v[Jj].ordernum}var Jn=Jp.createElement("menuitem");Jn.setAttribute("label",v[Jj].name);Jn.setAttribute("value",v[Jj].code);I6.appendChild(Jn)}g();for(var Jj=0;Jj<Hs.length;Jj++){var Jn=Jp.createElement("menuitem");Jn.setAttribute("label",Hs[Jj].name);Jn.setAttribute("value",Hs[Jj].cc2l);Jp.getElementById("lpcountrypopup").appendChild(Jn);
var Jn=Jp.createElement("menuitem");Jn.setAttribute("label",Hs[Jj].name);Jn.setAttribute("value",Hs[Jj].cc3l);Jp.getElementById("lpcountryphonepopup").appendChild(Jn);var Jn=Jp.createElement("menuitem");Jn.setAttribute("label",Hs[Jj].name);Jn.setAttribute("value",Hs[Jj].cc3l);Jp.getElementById("lpcountryevephonepopup").appendChild(Jn);
var Jn=Jp.createElement("menuitem");Jn.setAttribute("label",Hs[Jj].name);Jn.setAttribute("value",Hs[Jj].cc3l);Jp.getElementById("lpcountryfaxphonepopup").appendChild(Jn);var Jn=Jp.createElement("menuitem");Jn.setAttribute("label",Hs[Jj].name);Jn.setAttribute("value",Hs[Jj].cc3l);Jp.getElementById("lpcountrymobphonepopup").appendChild(Jn)
}var I5=Jp.getElementById("lpccstartmonthpopup");for(var Jj=1;Jj<=12;Jj++){var Jn=Jp.createElement("menuitem");Jn.setAttribute("value",(Jj<10?"0":"")+Jj);I5.appendChild(Jn)}var Jo=Jp.getElementById("lpccexpmonthpopup");for(var Jj=1;Jj<=12;Jj++){var Jn=Jp.createElement("menuitem");Jn.setAttribute("value",(Jj<10?"0":"")+Jj);
Jo.appendChild(Jn)}var Jf=Jp.getElementById("lptimezonepopup");Da();for(var Jj=0;Jj<Ci.length;Jj++){var Jn=Jp.createElement("menuitem");Jn.setAttribute("label",Ci[Jj].name);Jn.setAttribute("value",Ci[Jj].value);Jf.appendChild(Jn)}Jp.formfill_numcustomfields=0;Jp.formfill_cfids=new Array(0);var Jd=Jp.getElementById("customfieldrows");
if(Jp.formfill_id==0){if(d.length==0){LP.sr(Jp,"lpprofilename","value","Default")}var I9=Jp.getElementById("lpprofilelanguagepopup");var Jb=false;for(var Jj=0;Jj<I9.childNodes.length;Jj++){if(I9.childNodes.item(Jj).value==Jl){Jp.getElementById("lpprofilelanguage").value=Jl;Jb=true;break}}if(!Jb){Jp.getElementById("lpprofilelanguage").value="en-US"
}Jp.getElementById("lpcountry").value=Jp.defaultcountry;Jp.getElementById("lptimezone").value=Hm(false);c(Jp,"phone");c(Jp,"evephone");c(Jp,"fax");c(Jp,"mobilephone")}else{var Jc=null;if(Jk){Jc=Jk}else{for(var Jj=0;Jj<d.length;Jj++){if(d[Jj].ffid==Jp.formfill_id){Jc=d[Jj]}}}if(Jc){I7=Jc.profiletype;if(!Jh){Jp.getElementById("lpprofilename").value=Jc.profilename
}Jp.getElementById("lpprofilelanguage").value=BD(Jc.profilelanguage);Jp.getElementById("lpfirstname").value=BD(Jc.firstname);Jp.getElementById("lpmiddlename").value=BD(Jc.middlename);Jp.getElementById("lplastname").value=BD(Jc.lastname);Jp.getElementById("lpusername").value=BD(Jc.username);Jp.getElementById("lpemail").value=BD(Jc.email);
Jp.getElementById("lpcompany").value=BD(Jc.company);Jp.getElementById("lpssn").value=BD(Jc.ssn);Jp.getElementById("lppwprotect").checked=Jc.pwprotect;var Ja=BD(Jc.birthday);if(Ja!=""){Jp.getElementById("lpbirthyear").value=Ja.substring(0,4);Jp.getElementById("lpbirthmonth").value=Ja.substring(5,7);Jp.getElementById("lpbirthday").value=Ja.substring(8,10);
LP.formfill_fix_birthday(Jp,Jm)}Jp.getElementById("lpgender").value=BD(Jc.gender);Jp.getElementById("lptitle").value=BD(Jc.title);Jp.getElementById("lpaddress1").value=BD(Jc.address1);Jp.getElementById("lpaddress2").value=BD(Jc.address2);Jp.getElementById("lpaddress3").value=BD(Jc.address3);Jp.getElementById("lpcity").value=BD(Jc.city);
Jp.getElementById("lpcounty").value=BD(Jc.county);Jp.getElementById("lpstate").value=BD(Jc.state_name);Jp.getElementById("lpzip").value=BD(Jc.zip);Jp.getElementById("lpcountry").value=BD(Jc.country);Jp.getElementById("lpcountryphone").value=BD(Jc.countryphone);Jp.getElementById("lpcountryevephone").value=BD(Jc.countryevephone);
Jp.getElementById("lpcountryfaxphone").value=BD(Jc.countryfaxphone);Jp.getElementById("lpcountrymobphone").value=BD(Jc.countrymobphone);Jp.getElementById("lpphone").value=BD(Jc.phone);Jp.getElementById("lpevephone").value=BD(Jc.evephone);Jp.getElementById("lpfax").value=BD(Jc.fax);Jp.getElementById("lpmobilephone").value=BD(Jc.mobilephone);
Jp.getElementById("lpphoneext").value=BD(Jc.phoneext);Jp.getElementById("lpevephoneext").value=BD(Jc.evephoneext);Jp.getElementById("lpfaxphoneext").value=BD(Jc.faxphoneext);Jp.getElementById("lpmobphoneext").value=BD(Jc.mobilephoneext);c(Jp,"phone");c(Jp,"evephone");c(Jp,"fax");c(Jp,"mobilephone");Jp.getElementById("lpccname").value=BD(Jc.ccname);
Jp.getElementById("lpccnum").value=BD(Jc.ccnum);var I8=BD(Jc.ccstart);if(I8!=""){Jp.getElementById("lpccstartyear").value=I8.substring(0,4);Jp.getElementById("lpccstartmonth").value=I8.substring(5,7)}var I2=BD(Jc.ccexp);if(I2!=""){Jp.getElementById("lpccexpyear").value=I2.substring(0,4);Jp.getElementById("lpccexpmonth").value=I2.substring(5,7)
}Jp.getElementById("lpcccsc").value=BD(Jc.cccsc);Jp.getElementById("lpccissuenum").value=BD(Jc.ccissuenum);Jp.getElementById("lptimezone").value=BD(Jc.timezone);Jp.getElementById("lpbankname").value=BD(Jc.bankname);Jp.getElementById("lpbankacctnum").value=BD(Jc.bankacctnum);Jp.getElementById("lpbankroutingnum").value=BD(Jc.bankroutingnum);
for(var Ji=0;Ji<Jc.customfields.length;Ji++){Jp.formfill_numcustomfields++;Jp.formfill_cfids[Jp.formfill_numcustomfields]=Jh?0:Jc.customfields[Ji].cfid;var Jn=Jp.createElement("row");var e=Jp.createElement("vbox");e.setAttribute("pack","center");var I4=Jp.createElement("textbox");I4.setAttribute("id","customfield"+Jp.formfill_numcustomfields+"text");
I4.setAttribute("value",BD(Jc.customfields[Ji].text));I4.setAttribute("width","200");e.appendChild(I4);Jn.appendChild(e);var I1=Jp.createElement("textbox");I1.setAttribute("id","customfield"+Jp.formfill_numcustomfields+"value");I1.setAttribute("value",BD(Jc.customfields[Ji].value));I1.setAttribute("multiline","true");
I1.setAttribute("width","200");Jn.appendChild(I1);var z=Jp.createElement("textbox");z.setAttribute("id","customfield"+Jp.formfill_numcustomfields+"alttext");z.setAttribute("value",BD(Jc.customfields[Ji].alttext));z.setAttribute("multiline","true");z.setAttribute("width","200");Jn.appendChild(z);Jd.appendChild(Jn)
}Jp.getElementById("lpnotes").value=BD(Jc.notes)}}for(var Ji=Jp.formfill_numcustomfields+1;Ji<=Jp.formfill_numcustomfields+3;Ji++){Jp.formfill_cfids[Ji]=0;var Jn=Jp.createElement("row");var e=Jp.createElement("vbox");e.setAttribute("pack","center");var I4=Jp.createElement("textbox");I4.setAttribute("id","customfield"+Ji+"text");
I4.setAttribute("rows","1");I4.setAttribute("width","200");e.appendChild(I4);Jn.appendChild(e);var I1=Jp.createElement("textbox");I1.setAttribute("id","customfield"+Ji+"value");I1.setAttribute("multiline","true");I1.setAttribute("width","200");Jn.appendChild(I1);var z=Jp.createElement("textbox");z.setAttribute("id","customfield"+Ji+"alttext");
z.setAttribute("multiline","true");z.setAttribute("width","200");Jn.appendChild(z);Jd.appendChild(Jn)}Jp.formfill_numcustomfields+=3;if(Jh){Jp.formfill_id=0}if(Jp.formfill_id==0){Jp.documentElement.getButton("extra2").setAttribute("hidden",true)}Jp.formfill_profiletype=parseInt(I7);switch(Jp.formfill_profiletype){case 1:Jp.getElementById("personalinfo").style.display="none";
Jp.getElementById("contactinfo").style.display="none";Jp.getElementById("bankaccountinfo").style.display="none";Jp.getElementById("customfields").style.display="none";Jp.getElementById("fftabs").selectedIndex=2;break}LP.formfill_retranslate(Jp,Jm)};this.formfill_retranslate=function(I2,z){var e=I2.getElementById("lpprofilelanguage").value;
I2.title=LP.lpgs("Edit Form Fill Profile",e);I2.documentElement.getButton("accept").setAttribute("label",LP.lpgs("OK",e));I2.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("Cancel",e));I2.documentElement.getButton("extra2").setAttribute("label",LP.lpgs("Delete",e));I2.documentElement.getButton("help").setAttribute("label",LP.lpgs("Help",e));
LP.sr(I2,"profilenamelabel","value","Profile Name",e);LP.sr(I2,"profilelanglabel","value","Profile Language",e);LP.sr(I2,"personalinfo","label","Personal Information",e);LP.sr(I2,"contactinfo","label","Contact Information",e);LP.sr(I2,"creditcardinfo","label","Credit Card Information",e);LP.sr(I2,"bankaccountinfo","label","Bank Account Information",e);
LP.sr(I2,"customfields","label","Custom Fields",e);LP.sr(I2,"notes","label","Notes",e);LP.sr(I2,"titlelabel","value","Title",e);LP.sr(I2,"mr","label","Mr",e);LP.sr(I2,"ms","label","Ms",e);LP.sr(I2,"mrs","label","Mrs",e);LP.sr(I2,"dr","label","Dr",e);LP.sr(I2,"firstlabel","value","First Name",e);LP.sr(I2,"middlelabel","value","Middle Name",e);
LP.sr(I2,"lastlabel","value","Last Name",e);LP.sr(I2,"ssnlabel","value","Social Security Number",e);LP.sr(I2,"birthdaylabel","value","Birthday",e);LP.sr(I2,"genderlabel","value","Gender",e);LP.sr(I2,"male","label","Male",e);LP.sr(I2,"female","label","Female",e);LP.sr(I2,"addr1label","value","Address 1",e);
LP.sr(I2,"addr2label","value","Address 2",e);LP.sr(I2,"addr3label","value","Address 3",e);LP.sr(I2,"citylabel","value","City / Town",e);LP.sr(I2,"countylabel","value","County",e);LP.sr(I2,"statelabel","value","State / Province",e);LP.sr(I2,"ziplabel","value","ZIP / Postal Code",e);LP.sr(I2,"countrylabel","value","Country",e);
LP.sr(I2,"groupcaptionphone","label","Phone Number",e);LP.sr(I2,"groupcaptioneve","label","Evening Number",e);LP.sr(I2,"groupcaptionfax","label","Fax Number",e);LP.sr(I2,"groupcaptionmob","label","Mobile Number",e);LP.sr(I2,"extlabel","value","ext.",e);LP.sr(I2,"eveextlabel","value","ext.",e);LP.sr(I2,"faxextlabel","value","ext.",e);
LP.sr(I2,"mobextlabel","value","ext.",e);LP.sr(I2,"companylabel","value","Company",e);LP.sr(I2,"emaillabel","value","Email Address",e);LP.sr(I2,"usernamelabel","value","Username",e);LP.sr(I2,"tzlabel","value","Time Zone",e);LP.sr(I2,"ccnamelabel","value","Name on Card",e);LP.sr(I2,"cclabel","value","Credit Card Number",e);
LP.sr(I2,"ccstartlabel","value","Start Date",e);LP.sr(I2,"ccexplabel","value","Expiration Date",e);LP.sr(I2,"csclabel","value","Security Code",e);LP.sr(I2,"cscnote","value","Last 3 digits on back of card, or for American Express, last 4 digits in small print on front",e);LP.sr(I2,"issuenumlabel","value","Issue Number",e);
LP.sr(I2,"issuenumnote","value","Only applicable to certain European brands of debit cards, such as Maestro",e);LP.sr(I2,"banklabel","value","Bank Name",e);LP.sr(I2,"acctnumlabel","value","Account Number",e);LP.sr(I2,"acctnumnote","value","Number that can be found to the right of your routing number on your checks",e);
LP.sr(I2,"routingnumlabel","value","Routing Number",e);LP.sr(I2,"routingnumnote","value","9 digit number that can be found in the bottom left corner of your checks",e);LP.sr(I2,"textlabel","value","Text",e);LP.sr(I2,"valuelabel","value","Value",e);LP.sr(I2,"alttextlabel","value","Alternate Text",e);LP.sr(I2,"noteslabel","value","Notes",e);
LP.sr(I2,"lppwprotect","label","Require Password Reprompt",e);for(var I1=1;I1<=9;I1++){LP.sr(I2,"pleaseselect"+I1,"label","Please Select",e)}var I3=new Array("lpbirthmonthpopup","lpccstartmonthpopup","lpccexpmonthpopup");for(var I1=0;I1<I3.length;I1++){var t=I2.getElementById(I3[I1]);for(var I0=1;I0<t.childNodes.length;
I0++){t.childNodes.item(I0).setAttribute("label",LP.lpgs("month"+I0,e))}}};function FV(e){for(var t=0;t<Hs.length;t++){if(Hs[t].cc2l==e){return Hs[t].cc3l}}return Hs[0].cc3l}function c(I5,I8){var t;var z;var I4;var I7;var I6;var I3;if(I8=="phone"){t="lpphone";z="lpcountryphone";I4="lpphone_npa";I7="lpphone_nxx";
I6="lpphone_xxxx";I3="lpphone_intl"}else{if(I8=="evephone"){t="lpevephone";z="lpcountryevephone";I4="lpevephone_npa";I7="lpevephone_nxx";I6="lpevephone_xxxx";I3="lpevephone_intl"}else{if(I8=="fax"){t="lpfax";z="lpcountryfaxphone";I4="lpfax_npa";I7="lpfax_nxx";I6="lpfax_xxxx";I3="lpfax_intl"}else{if(I8=="mobilephone"){t="lpmobilephone";
z="lpcountrymobphone";I4="lpmobilephone_npa";I7="lpmobilephone_nxx";I6="lpmobilephone_xxxx";I3="lpmobilephone_intl"}else{return}}}}I5.getElementById(t).style.display="none";var I2=I5.getElementById(t).value;var I0=I5.getElementById(z).value;var e="";if(I2==""){I5.getElementById(z).value=FV(I5.defaultcountry);
LP.formfill_fix(I5,I8);return}for(var I1=0;I1<Hs.length;++I1){if(Hs[I1].cc3l==I0){e=Hs[I1].phone;break}}if(e==""||I2.indexOf(e)!=0){if(e=="1"||I2.indexOf("1")==0){I5.getElementById(I4).value=I2.substring(1,4);I5.getElementById(I7).value=I2.substring(4,7);I5.getElementById(I6).value=I2.substring(7,11);
I5.getElementById(z).value="USA";LP.formfill_fix(I5,I8);return}for(var I1=0;I1<Hs.length;++I1){if(I2.indexOf(Hs[I1].phone)==0){I2=I2.substring(Hs[I1].phone.length);I5.getElementById(I3).value=I2;I5.getElementById(z).value=Hs[I1].cc3l;LP.formfill_fix(I5,I8);return}}I5.getElementById(z).value="";LP.formfill_fix(I5,I8)
}else{if(e=="1"){I5.getElementById(I4).value=I2.substring(1,4);I5.getElementById(I7).value=I2.substring(4,7);I5.getElementById(I6).value=I2.substring(7,11);I5.getElementById(z).value=I0;LP.formfill_fix(I5,I8);return}else{I2=I2.substring(e.length);I5.getElementById(I3).value=I2;I5.getElementById(z).value=I0;
LP.formfill_fix(I5,I8);return}}return}function ID(e){e=parseInt(e);if(e%4==0){if(e%100!=0){return true}else{if(e%400==0){return true}else{return false}}}else{return false}}function B0(t,e){var z;if(e=="phone"){z="lpcountryphone"}else{if(e=="evephone"){z="lpcountryevephone"}else{if(e=="fax"){z="lpcountryfaxphone"
}else{if(e=="mobilephone"){z="lpcountrymobphone"}else{return""}}}}return t.getElementById(z).value}function D5(I3,I6){var z=B0(I3,I6);if(z==""){return""}var I2;var I5;var I4;var I1;if(I6=="phone"){I2="lpphone_npa";I5="lpphone_nxx";I4="lpphone_xxxx";I1="lpphone_intl"}else{if(I6=="evephone"){I2="lpevephone_npa";
I5="lpevephone_nxx";I4="lpevephone_xxxx";I1="lpevephone_intl"}else{if(I6=="fax"){I2="lpfax_npa";I5="lpfax_nxx";I4="lpfax_xxxx";I1="lpfax_intl"}else{if(I6=="mobilephone"){I2="lpmobilephone_npa";I5="lpmobilephone_nxx";I4="lpmobilephone_xxxx";I1="lpmobilephone_intl"}else{return}}}}for(var I0=0;I0<Hs.length;
++I0){if(Hs[I0].cc3l==z){var e=Hs[I0].phone;if(e=="1"){if(I3.getElementById(I2).value==""&&I3.getElementById(I5).value==""&&I3.getElementById(I4).value==""){return""}else{var t=e+I3.getElementById(I2).value+I3.getElementById(I5).value+I3.getElementById(I4).value;if(t.length!=11){t="invalid"}return t}}else{if(I3.getElementById(I1).value==""){return""
}else{return e+I3.getElementById(I1).value}}}}return""}this.formfill_fix_birthday=function(I4,I3){var I2=I4.getElementById("lpbirthmonth");var I1=I4.getElementById("lpbirthyear");var t;if(I2.value=="02"){if(I1.value==""){t=29}else{t=ID(I1.value)?29:28}}else{if(I2.value=="04"||I2.value=="06"||I2.value=="09"||I2.value=="11"){t=30
}else{t=31}}var z=t+1;var I5=I4.getElementById("lpbirthday");if(I5.selectedIndex>=z){I5.selectedIndex=z-1}var e=I4.getElementById("lpbirthdaypopup");for(var I0=e.childNodes.length-1;I0>=z;I0--){e.removeChild(e.childNodes.item(I0))}for(var I0=e.childNodes.length;I0<z;I0++){var I6=I4.createElement("menuitem");
I6.setAttribute("label",I0);I6.setAttribute("value",(I0<10?"0":"")+I0);e.appendChild(I6)}};function BG(e){if(!e.match(/^\d+$/)){return false}else{if(e.match(/^1/)&&!e.match(/^1(?:[2-9]\d{2}){2}\d{4}$/)){return false}else{return true}}}this.formfill_accept_click=function(Je,Jb){var I9=Je.getElementById("lpprofilelanguage").value;
var I2="";if(Je.getElementById("lpprofilename").value==""){I2+=LP.lpgs("You must enter a profile name.",I9)+"\n"}if((Je.getElementById("lpbirthyear").value!=""||Je.getElementById("lpbirthmonth").value!=""||Je.getElementById("lpbirthday").value!="")&&(!Je.getElementById("lpbirthyear").value.match(/^\d{4}$/)||Je.getElementById("lpbirthmonth").value==""||Je.getElementById("lpbirthday").value=="")){I2+=LP.lpgs("You must enter a valid birthday, with a 4 digit year.",I9)+"\n"
}var I8=null;for(var Ja=0;Ja<Hs.length;Ja++){if(Hs[Ja].cc2l==Je.getElementById("lpcountry").value){I8=Hs[Ja];break}}var z=D5(Je,"phone");var I3=D5(Je,"evephone");var t=D5(Je,"fax");var I6=D5(Je,"mobilephone");var I0=(z!=""?B0(Je,"phone"):"");var Jc=(I3!=""?B0(Je,"evephone"):"");var e=(t!=""?B0(Je,"fax"):"");
var I7=(I6!=""?B0(Je,"mobilephone"):"");if(z!=""&&!BG(z)){I2+=LP.lpgs("You must enter a valid phone number.",I9)+"\n"}if(I3!=""&&!BG(I3)){I2+=LP.lpgs("You must enter a valid evening phone number.",I9)+"\n"}if(t!=""&&!BG(t)){I2+=LP.lpgs("You must enter a valid fax phone number.",I9)+"\n"}if(I6!=""&&!BG(I6)){I2+=LP.lpgs("You must enter a valid mobile phone number.",I9)+"\n"
}if(z!=""&&!Je.getElementById("lpphoneext").value.match(/^\d*$/)){I2+=LP.lpgs("You must enter a valid phone extension, consisting only of digits.",I9)+"\n"}if(I3!=""&&!Je.getElementById("lpevephoneext").value.match(/^\d*$/)){I2+=LP.lpgs("You must enter a valid evening phone extension, consisting only of digits.",I9)+"\n"
}if(t!=""&&!Je.getElementById("lpfaxphoneext").value.match(/^\d*$/)){I2+=LP.lpgs("You must enter a valid fax phone extension, consisting only of digits., locale")+"\n"}if(I6!=""&&!Je.getElementById("lpmobphoneext").value.match(/^\d*$/)){I2+=LP.lpgs("You must enter a valid mobile phone extension, consisting only of digits.",I9)+"\n"
}if(Je.getElementById("lpccnum").value!=""&&!Je.getElementById("lpccnum").value.match(/^\d{12,19}$/)){I2+=LP.lpgs("You must enter your credit card number as a sequence of 12 to 19 digits, without dashes.",I9)+"\n"}if((Je.getElementById("lpccstartyear").value!=""||Je.getElementById("lpccstartmonth").value!="")&&(!Je.getElementById("lpccstartyear").value.match(/^\d{4}$/)||Je.getElementById("lpccstartmonth").value=="")){I2+=LP.lpgs("You must enter a valid credit card start date, with a 4 digit year.",I9)+"\n"
}if((Je.getElementById("lpccexpyear").value!=""||Je.getElementById("lpccexpmonth").value!="")&&(!Je.getElementById("lpccexpyear").value.match(/^\d{4}$/)||Je.getElementById("lpccexpmonth").value=="")){I2+=LP.lpgs("You must enter a valid credit card expiration date, with a 4 digit year.",I9)+"\n"}if(Je.getElementById("lpcccsc").value!=""&&!Je.getElementById("lpcccsc").value.match(/^\d{3,4}$/)){I2+=LP.lpgs("You must enter your credit card security code as a sequence of 3 to 4 digits.",I9)+"\n"
}if(Je.getElementById("lpccissuenum").value!=""&&!Je.getElementById("lpccissuenum").value.match(/^\d{1,3}$/)){I2+=LP.lpgs("You must enter your credit card issue number as a sequence of 1 to 3 digits.",I9)+"\n"}if(Je.getElementById("lpemail").value!=""&&!Je.getElementById("lpemail").value.match(/^.+@.+\.[a-z]{2,6}$/)){I2+=LP.lpgs("You must enter a valid email address.",I9)+"\n"
}if(Je.getElementById("lpbankacctnum").value!=""&&!Je.getElementById("lpbankacctnum").value.match(/^[0-9A-Za-z]+$/)){I2+=LP.lpgs("You must enter a valid bank account number, consisting only of letters and digits.",I9)+"\n"}if(Je.getElementById("lpbankroutingnum").value!=""&&!Je.getElementById("lpbankroutingnum").value.match(/^\d+$/)){I2+=LP.lpgs("You must enter a valid bank routing number, consisting only of digits.",I9)+"\n"
}for(var Ja=1;Ja<=Je.formfill_numcustomfields;Ja++){if(Je.getElementById("customfield"+Ja+"text").value!=""||Je.getElementById("customfield"+Ja+"value").value!=""||Je.getElementById("customfield"+Ja+"alttext").value!=""){if(Je.getElementById("customfield"+Ja+"text").value==""||Je.getElementById("customfield"+Ja+"value").value==""){I2+=LP.lpgs("All custom fields must have both text and a value.",I9)+"\n"
}}}if(I2!=""){LP.alert(I2,Jb);return false}var I5=new Bw();I5.ffid=Je.formfill_id;var Jd="ffid="+LP.en(I5.ffid);I5.profiletype=Je.formfill_profiletype;Jd+="&profiletype="+LP.en(I5.profiletype);I5.profilename=Je.getElementById("lpprofilename").value;Jd+="&profilename="+LP.en(Ds(I5.profilename));I5.profilelanguage=Ds(Je.getElementById("lpprofilelanguage").value);
Jd+="&profilelanguage="+LP.en(I5.profilelanguage);I5.firstname=Ds(Je.getElementById("lpfirstname").value);Jd+="&firstname="+LP.en(I5.firstname);I5.middlename=Ds(Je.getElementById("lpmiddlename").value);Jd+="&middlename="+LP.en(I5.middlename);I5.lastname=Ds(Je.getElementById("lplastname").value);Jd+="&lastname="+LP.en(I5.lastname);
I5.email=Ds(Je.getElementById("lpemail").value);Jd+="&email="+LP.en(I5.email);I5.company=Ds(Je.getElementById("lpcompany").value);Jd+="&company="+LP.en(I5.company);I5.ssn=Ds(Je.getElementById("lpssn").value);Jd+="&ssn="+LP.en(I5.ssn);if(Je.getElementById("lpbirthyear").value!=""&&Je.getElementById("lpbirthmonth").value!=""&&Je.getElementById("lpbirthday").value!=""){I5.birthday=Ds(Je.getElementById("lpbirthyear").value+"-"+Je.getElementById("lpbirthmonth").value+"-"+Je.getElementById("lpbirthday").value)
}else{I5.birthday=""}Jd+="&birthday="+LP.en(I5.birthday);I5.gender=Ds(Je.getElementById("lpgender").value);Jd+="&gender="+LP.en(I5.gender);I5.title=Ds(Je.getElementById("lptitle").value);Jd+="&title="+LP.en(I5.title);I5.address1=Ds(Je.getElementById("lpaddress1").value);Jd+="&address1="+LP.en(I5.address1);
I5.address2=Ds(Je.getElementById("lpaddress2").value);Jd+="&address2="+LP.en(I5.address2);I5.address3=Ds(Je.getElementById("lpaddress3").value);Jd+="&address3="+LP.en(I5.address3);I5.city=Ds(Je.getElementById("lpcity").value);Jd+="&city="+LP.en(I5.city);I5.county=Ds(Je.getElementById("lpcounty").value);
Jd+="&county="+LP.en(I5.county);I5.state_name=Ds(Je.getElementById("lpstate").label);Jd+="&state_name="+LP.en(I5.state_name);var I1=Je.getElementById("lpstate").value;for(var Ja=0;Ja<v.length;Ja++){if(v[Ja].name==I1){I1=v[Ja].code;break}}I5.state=Ds(I1);Jd+="&state="+LP.en(I5.state);I5.zip=Ds(Je.getElementById("lpzip").value);
Jd+="&zip="+LP.en(I5.zip);if(I8==null){I5.country=I5.country_cc3l=I5.country_name=""}else{I5.country=Ds(I8.cc2l);I5.country_cc3l=Ds(I8.cc3l);I5.country_name=Ds(I8.name)}Jd+="&country="+LP.en(I5.country);Jd+="&country_cc3l="+LP.en(I5.country_cc3l);Jd+="&country_name="+LP.en(I5.country_name);I5.countryphone=Ds(I0);
Jd+="&phone3lcc="+LP.en(Ds(I0));I5.countryevephone=Ds(Jc);Jd+="&evephone3lcc="+LP.en(Ds(Jc));I5.countryfaxphone=Ds(e);Jd+="&fax3lcc="+LP.en(Ds(e));I5.countrymobphone=Ds(I7);Jd+="&mobilephone3lcc="+LP.en(Ds(I7));I5.phone=Ds(z);I5.evephone=Ds(I3);I5.fax=Ds(t);I5.mobilephone=Ds(I6);Jd+="&phone="+LP.en(I5.phone);
Jd+="&evephone="+LP.en(I5.evephone);Jd+="&fax="+LP.en(I5.fax);Jd+="&mobilephone="+LP.en(I5.mobilephone);I5.phoneext=I0!=""?Ds(Je.getElementById("lpphoneext").value):"";I5.evephoneext=Jc!=""?Ds(Je.getElementById("lpevephoneext").value):"";I5.faxphoneext=e!=""?Ds(Je.getElementById("lpfaxphoneext").value):"";
I5.mobilephoneext=I7!=""?Ds(Je.getElementById("lpmobphoneext").value):"";Jd+="&phoneext="+LP.en(I5.phoneext);Jd+="&eveext="+LP.en(I5.evephoneext);Jd+="&faxext="+LP.en(I5.faxphoneext);Jd+="&mobileext="+LP.en(I5.mobilephoneext);I5.ccname=Ds(Je.getElementById("lpccname").value);Jd+="&ccname="+LP.en(I5.ccname);
I5.ccnum=Ds(Je.getElementById("lpccnum").value);Jd+="&ccnum="+LP.en(I5.ccnum);if(Je.getElementById("lpccstartyear").value!=""&&Je.getElementById("lpccstartmonth").value!=""){I5.ccstart=Ds(Je.getElementById("lpccstartyear").value+"-"+Je.getElementById("lpccstartmonth").value+"-01")}else{I5.ccstart=""}Jd+="&ccstart="+LP.en(I5.ccstart);
if(Je.getElementById("lpccexpyear").value!=""&&Je.getElementById("lpccexpmonth").value!=""){I5.ccexp=Ds(Je.getElementById("lpccexpyear").value+"-"+Je.getElementById("lpccexpmonth").value+"-01")}else{I5.ccexp=""}Jd+="&ccexp="+LP.en(I5.ccexp);I5.cccsc=Ds(Je.getElementById("lpcccsc").value);Jd+="&cccsc="+LP.en(I5.cccsc);
I5.ccissuenum=Ds(Je.getElementById("lpccissuenum").value);Jd+="&ccissuenum="+LP.en(I5.ccissuenum);I5.username=Ds(Je.getElementById("lpusername").value);Jd+="&username="+LP.en(I5.username);I5.pwprotect=Je.getElementById("lppwprotect").checked;if(I5.pwprotect){Jd+="&pwprotect=on"}I5.timezone=Ds(Je.getElementById("lptimezone").value);
Jd+="&timezone="+LP.en(I5.timezone);I5.bankname=Ds(Je.getElementById("lpbankname").value);Jd+="&bankname="+LP.en(I5.bankname);I5.bankacctnum=Ds(Je.getElementById("lpbankacctnum").value);Jd+="&bankacctnum="+LP.en(I5.bankacctnum);I5.bankroutingnum=Ds(Je.getElementById("lpbankroutingnum").value);Jd+="&bankroutingnum="+LP.en(I5.bankroutingnum);
I5.customfields=new Array();for(var Ja=1;Ja<=Je.formfill_numcustomfields;Ja++){var I4=new Do();I4.cfid=Je.formfill_cfids[Ja];Jd+="&customfield"+Ja+"cfid="+LP.en(I4.cfid);I4.text=Ds(Je.getElementById("customfield"+Ja+"text").value);Jd+="&customfield"+Ja+"text="+LP.en(I4.text);I4.value=Ds(Je.getElementById("customfield"+Ja+"value").value);
Jd+="&customfield"+Ja+"value="+LP.en(I4.value);I4.alttext=Ds(Je.getElementById("customfield"+Ja+"alttext").value);Jd+="&customfield"+Ja+"alttext="+LP.en(I4.alttext);if(I4.text!=""||I4.value!=""||I4.alttext!=""){I5.customfields[I5.customfields.length]=I4}}I5.notes=Ds(Je.getElementById("lpnotes").value);
Jd+="&notes="+LP.en(I5.notes);Jd+=LP.GetIdentityParam();if(Je.formfill_id!=0){for(var Ja=0;Ja<d.length;Ja++){if(d[Ja].ffid==Je.formfill_id){d.splice(Ja,1);break}}d[d.length]=I5;d.sort(Ca);Cw=true;FB();LP.lpRecheckTabs()}LP.lpMakeRequest(LP.lp_base+"formfill.php",Jd,AW,null,I5);LP.last_dialog_close=new Date().getTime();
return true};this.formfill_delete_click=function(t,e){if(LP.lpDeleteFormFillProfile(t.formfill_id,e)){LP.last_dialog_close=new Date().getTime();e.close()}};this.formfill_cancel_click=function(t,e){LP.last_dialog_close=new Date().getTime();return true};this.formfill_npa_input=function(t,e){e="lp"+e;if(t.getElementById(e+"_npa").value.length==3){t.getElementById(e+"_nxx").focus()
}};this.formfill_nxx_input=function(t,e){e="lp"+e;if(t.getElementById(e+"_nxx").value.length==3){t.getElementById(e+"_xxxx").focus()}else{if(t.getElementById(e+"_nxx").value.length==0){t.getElementById(e+"_npa").focus();t.getElementById(e+"_npa").select()}}};this.formfill_xxxx_input=function(t,e){e="lp"+e;
if(t.getElementById(e+"_xxxx").value.length==0){t.getElementById(e+"_nxx").focus();t.getElementById(e+"_nxx").select()}};this.formfill_fix=function(I8,Jb){var t;var I0;var I1;var I7;var Ja;var I9;var I3;var I6;if(Jb=="phone"){t="lpphone";I0="lpphoneext";I1="lpcountryphone";I7="lpphone_npa";Ja="lpphone_nxx";
I9="lpphone_xxxx";I3="lpphone_cc";I6="lpphone_intl"}else{if(Jb=="evephone"){t="lpevephone";I1="lpcountryevephone";I0="lpevephoneext";I7="lpevephone_npa";Ja="lpevephone_nxx";I9="lpevephone_xxxx";I3="lpevephone_cc";I6="lpevephone_intl"}else{if(Jb=="fax"){t="lpfax";I1="lpcountryfaxphone";I0="lpfaxphoneext";
I7="lpfax_npa";Ja="lpfax_nxx";I9="lpfax_xxxx";I3="lpfax_cc";I6="lpfax_intl"}else{if(Jb=="mobilephone"){t="lpmobilephone";I1="lpcountrymobphone";I0="lpmobphoneext";I7="lpmobilephone_npa";Ja="lpmobilephone_nxx";I9="lpmobilephone_xxxx";I3="lpmobilephone_cc";I6="lpmobilephone_intl"}else{return}}}}var z=t+"_dom";
var I4=t+"_int";var I2=B0(I8,Jb);if(I2==""){I8.getElementById(z).style.display="";I8.getElementById(I4).style.display="none";I8.getElementById(I7).disabled=true;I8.getElementById(Ja).disabled=true;I8.getElementById(I9).disabled=true;I8.getElementById(I0).disabled=true;return}for(var I5=0;I5<Hs.length;
++I5){if(Hs[I5].cc3l==I2){var e=Hs[I5].phone;if(e=="1"){I8.getElementById(z).style.display="";I8.getElementById(I4).style.display="none";I8.getElementById(I7).disabled=false;I8.getElementById(Ja).disabled=false;I8.getElementById(I9).disabled=false;I8.getElementById(I0).disabled=false}else{I8.getElementById(z).style.display="none";
I8.getElementById(I4).style.display="";I8.getElementById(I3).value=e;I8.getElementById(I0).disabled=false}return}}};this.editfields_window_load=function(I2,I0){I2.title=LP.lpgs("Edit Site Fields");I2.documentElement.getButton("accept").setAttribute("label",LP.lpgs("Update"));I2.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("Cancel"));
var I1=I0.arguments;var t=I2.getElementById("fields");var z=0;if(I1.length>0){I2.editfields_id=I1[0];var e=G9[I2.editfields_id];if(e==null){HX("lpaccts missing in editfields:"+I2.editfields_id,null);return}LP.createFieldsPane(I2,t,e)}if(I1.length>1){I2.editfields_opener=I1[1]}};this.editfields_toggle_password=function(I0,t,I1){var z=I0.getElementById(I1);
var e=I0.getElementById(I1+"_show");if(z&&e){if(z.type=="password"){if(H3){if(!LP.securityPrompt(t)){return}}z.type="text";e.value=LP.lpgs("HidePw")}else{z.type="password";e.value=LP.lpgs("ShowPw")}}};this.editfields_alert_shared=function(t,e){LP.alert(LP.lpgs("This is a shared site. You are not permitted to view the password."),e)
};function FZ(z,t,I0){var I1=new Array();for(var e=0;e<z.length;e++){var I2=z[e];if(I2.name!=t||!Bo(I2.value,I0)){I1[I1.length]=I2}else{}}return I1}function Bo(t,e){if(t==e){return true}else{if(t==null&&e==""){return true}else{if(t==""&&e==null){return true}else{return false}}}}this.deleteFieldLocal=function(t,I1,I0,I2){for(var z=0;
z<t.logins.length;z++){var e=t.logins[z];e.fields=FZ(e.fields,I0,I2);e.otherfields=FZ(e.otherfields,I0,I2)}for(var z=0;z<t.otherlogins.length;z++){var e=t.otherlogins[z];e.fields=FZ(e.fields,I0,I2);e.otherfields=FZ(e.otherfields,I0,I2)}};this.editfields_delete_field=function(I4,t,I3,I1,z,I2){if(!LP.lpConfirmYesNo(LP.lpgs("Are you sure you would like to delete this field?"),t)){return
}if(I3!=0){var I0=G9[I3];if(I0==null){return}if(GX||I0.pwprotect){if(!LP.securityPrompt(t)){return}}}var e=G9[I3];if(e==null){HX("lpaccts missing in editfields_delete_field:"+I3,null);return}LP.deleteFieldLocal(e,I1,z,I2);LP.lpMakeRequest(LP.lp_base+"fields.php?delete=1&aid="+LP.en(I3)+"&urid="+LP.en(I1)+"&name="+LP.en(z)+"&value="+LP.en(I2),"",IO);
LP.createFieldsPane(I4,I4.getElementById("fields"),e);if(I4.editfields_opener){if(!I4.getElementById("fields").hasChildNodes()){t.close()}}};this.editfields_accept_click=function(I1,z){var t=I1.getElementById("fields");var e=G9[I1.editfields_id];if(e==null){HX("lpaccts missing in editfields accept:"+I1.editfields_id,null);
return}LP.submitFieldsPane(I1,I1.editfields_id);z.close();if(I1.editfields_opener){var I0=I1.editfields_opener;I1.editfields_opener.setTimeout(function(){I0.close()},200)}I1.editfields_id=null;I1.editfields_opener=null;return true};this.editfields_cancel_click=function(t,e){e.close();t.editfields_id=null;
t.editfields_opener=null;return true};this.showAddFieldDlg=function(t,e){var z=null;if(typeof(t.editfields_id)!="undefined"){z=t.editfields_id}else{if(typeof(t.siteinfo_id)!="undefined"){z=t.siteinfo_id}}if(z!=null){e.openDialog(GY+"content/addfield.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal",z,t)
}};this.lphandlebasic=function(Js,Jq){if(DH&&Js.getElementById("loginTextbox")&&Js.getElementById("password1Textbox")){var Jf="";if(!Js.getElementById("loginContainer").hidden){Jf=Gt(Js);if(Jf==""){return}var Jb=IR(Jf);var Jm=typeof(Jb.path)=="string"?Jb.path.split("/"):new Array();var Je=ED(Jf,Jb);var Jc=Aq(B9(Js));
var I6=FK;var Jd=0;var I4=new Array();for(var Ji in I6){var Jl=AN(Jf);if(LP.compare_tlds(AN(Jf),AN(I6[Ji].url))){Jd++;var Jk=new Gm();Jk.id=Ji;if(Jc==I6[Ji].realm){Jk.realmmatch=true}else{Jk.realmmatch=false}var Jg=IR(I6[Ji].url);Jk.urlmatch=ED(I6[Ji].url,Jg)==Je?true:false;Jk.servermatch=Jg.host==Jb.host?true:false;
Jk.serverportmatch=Jk.servermatch&&CQ(Jg,Jb);var t=typeof(Jg.path)=="string"?Jg.path.split("/"):new Array();var Jj;for(Jj=0;Jj<Jm.length&&Jj<t.length;Jj++){if(t[Jj]!=Jm[Jj]){break}}Jk.pathlevelmatch=Jj;Jk.fieldmatchcount=0;I4[I4.length]=Jk}}I4.sort(Ac);for(var Jn=0;Jn<I4.length;Jn++){var Ji=I4[Jn].id
}var I9;do{I9=En(1,100000)}while(typeof(GU[I9])!="undefined");if(Jd>1){GU[I9]=Js;var I0=Js.createElement("button");I0.setAttribute("label"," "+LP.lpgs("AutoFill")+" ("+Jd+")");I0.setAttribute("image","chrome://lastpass/skin/icon.gif");I0.setAttribute("type","menu");I0.setAttribute("flex","1");var Jr=Js.createElement("hbox");
Jr.setAttribute("flex","1");var Jh=Js.createElement("spacer");Jh.setAttribute("orient","horizontal");Jh.setAttribute("flex","3");Jr.appendChild(Jh);Jr.appendChild(I0);var I2=Js.createElement("spacer");I2.setAttribute("flex","20");Jr.appendChild(I2);Js.getElementById("commonDialog").appendChild(Jr);var I1=Js.createElement("menupopup");
I1.setAttribute("id","LPOtherMenu");I0.appendChild(I1)}var Ja=0;if(Jd){for(var Jn=0;Jn<I4.length;Jn++){var Ji=I4[Jn].id;Ja++;if(Jd>1){var Jo=I6[Ji].username+"|"+I6[Ji].password;var Jp=Js.createElement("menuitem");var I8=Ex(I6[Ji]);Jp.setAttribute("label",I8);Jp.setAttribute("oncommand",'LP.handlebasic_id("'+Ji+'","'+I9+'");');
var z=Js.getElementById("LPOtherMenu");z.appendChild(Jp)}if(Jn==0){Js.getElementById("loginTextbox").value=I6[Ji].logins[0].unencryptedUsername;Js.getElementById("password1Textbox").value=BD(I6[Ji].logins[0].password)}if(Ja>1){continue}var I3=Ab();var I7=false;if(typeof(Im[Ji])!="undefined"&&Im[Ji]!=null){if(I3-Im[I4[Jn].id]<45){Im[Ji]=null;
I7=true}}if(I7||F2(I6[Ji].id)){I6[Ji].last_time=I3;B2(I6[Ji].id);Jq.commonDialogOnAccept();Jq.close();return}else{if(I6[Ji].last_time+3000<I3){B2(I6[Ji].id);I6[Ji].last_time=I3}else{}}}}if(Jf!=""){Jq.addEventListener("unload",function(){A6(Js)},false);var e=Js.getElementById("checkboxContainer");if(null!=e){e.removeAttribute("collapsed");
e.removeAttribute("hidden")}var I5=Js.getElementById("checkbox");if(typeof(I5)!="undefined"){I5.label=LP.lpgs("RememberWithLastPass");I5.setAttribute("align","start");I5.setAttribute("src","chrome://lastpass/skin/icon.gif");I5.setAttribute("minwidth","300");if(LP.lpprefsHasUserValue("savePasswordChecked")){I5.checked=LP.lpprefsGetBoolPref("savePasswordChecked")
}else{I5.checked=1}}}}}};this.handlebasic_id=function(I0,e){var z=FK;var t=GU[e];t.getElementById("loginTextbox").value=z[I0].logins[0].unencryptedUsername;t.getElementById("password1Textbox").value=BD(z[I0].logins[0].password)};function Fn(I0,I1,t){if(I1<0||t<0){return""}var z,e=String(I0).length;if(I1+t>e){z=e
}else{z=I1+t}return String(I0).substring(I1,z)}function B9(t){var e;e=t.getElementById("info.box");if(null==e){e=t.getElementById("infoContainer");return e.getElementsByTagName("description")[1+LP.lpis_mac].firstChild.nodeValue}return e.getElementsByTagName("description")[0].firstChild.nodeValue}function Aq(t){var e=t.match(/"(.*)"/);
if(e){return GR(BE(e[1]))}return""}function BE(e){return e.replace(/\s*\[[0-9:]+\]\s*/g,"")}function Gt(z){var I0=B9(z);I0=I0.replace(/\u201E|\u201C|\u201A|\u2018|\u203A|\u2039|\u2019|\u00AB|\u00BB/g,"");var e="";var t=I0.match(/\s+((https?|ftps?):\/\/\S+)\.?/i);if(t){e=t[1]}else{t=I0.match(/^((https?|ftps?):\/\/\S+)\.?\s+/i);
if(t){e=t[1]}}return e.replace(/\.\s*$/,"")}function A6(Jd){var t="";for(I9 in GU){if(Jd==GU[I9]){t=I9}}if(""!=t){delete GU[t]}var z=Jd.getElementById("checkbox");if(typeof(z)!="undefined"&&z.checked&&DH){LP.lpprefsSetBoolPref("savePasswordChecked",true);LP.flush_prefs();var I0=Jd.getElementById("loginTextbox").value;
var e=Jd.getElementById("password1Textbox").value;if(""!=I0||""!=e){var Ja=B9(Jd);var I8=Gt(Jd);var I7=ED(I8);var I3=IR(I8);var I5=Aq(Ja);var I2=FK;for(var I9 in I2){if(LP.compare_tlds(AN(I8),AN(I2[I9].url))){var I6=BD(I2[I9].logins[0].password);if(I0==I2[I9].logins[0].unencryptedUsername&&e==I6&&I5==I2[I9].realm){var I1=IR(I2[I9].url);
if(I3.host==I1.host){return}}}}var Je=IB(I8);if(I5.length>0){Je=I5+" "+Je}var Jb=new Iu();Jb.pendingshare=false;Jb.id=0;Jb.name=Je;Jb.group="";Jb.username=Ds(I0);Jb.password=Ds(e);Jb.unencryptedUsername=I0;Jb.oldusername="";Jb.oldpassword="";Jb.extra="";Jb.fav="0";Jb.never_autofill="0";Jb.autologin="0";
Jb.pwprotect=false;Jb.isbookmark=false;Jb.basic_auth=true;Jb.realm=I5;Jb.save_all=false;var Jc="basic_auth=1&localupdate=1&extjs=1&username="+LP.en(Jb.username)+"&password="+LP.en(Jb.password)+"&name="+LP.en(AS(Jb.name))+"&realm="+LP.en(Ds(Jb.realm))+"&dnc="+new Date().getTime();var I4=new u();I4.postdata=Jc;
I4.url=I4.uri=I8;I4.server=I3.host;I4.tld=J(I3.host,I8);I4.actiontld=J(I3.host,I8);I4.hastext=true;I4.basic_auth=true;I4.ai=Jb;Bz[I8]=I4}else{}}else{if(typeof(z)!="undefined"&&!z.checked&&DH){LP.lpprefsSetBoolPref("savePasswordChecked",false);LP.flush_prefs()}}}var Gv=new Array();var C1=0;function IR(I4){if(typeof(I4)!="string"){return""
}if(Gv[I4]!=null){return Gv[I4]}var I5=null;var I2=null;var I6=I4;if(I4.indexOf("#")!=-1){I2=I4.substring(I4.indexOf("#")+1);I4=I4.substring(0,I4.indexOf("#"))}if(I4.indexOf("?")!=-1){I5=I4.substring(I4.indexOf("?")+1);I4=I4.substring(0,I4.indexOf("?"))}var I3=I4.match(/^(.*:\/\/[^\/]+\/.*)@/);if(I3){I4=I4.substring(0,I3[1].length)+I4.substring(I3[1].length).replace(/@/g,"%40")
}if(I4.length>2047){return""}var t=IR.options;var I0=t.parser[t.strictMode?"strict":"loose"].exec(I4),z={},I1=14;while(I1--){z[t.key[I1]]=I0[I1]||""}z[t.q.name]={};z[t.key[12]].replace(t.q.parser,function(I8,I7,I9){if(I7){z[t.q.name][I7]=I9}});if(I5!=null){z.query=I5;if(I2!=null){z.anchor=I2}}if(C1>500){for(var e in Gv){delete Gv[e];
break}C1=0}Gv[I6]=z;C1++;return z}IR.options={strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};
var DC=new Array();var Ih=0;function ED(z,I1){if("about:blank"==z){return""}if(DC[z]!=null){return DC[z]}if(I1==null){I1=IR(z)}var t="";if(I1.port!=""){if(I1.port!=AT(I1.protocol)){t=":"+I1.port}}var I0;if(I1.host){I0=I1.host.toLowerCase()+t+I1.path}else{if(!z){return""}I0=z}if(I0.indexOf(";")!=-1){I0=I0.substring(0,I0.indexOf(";"))
}if(Ih>500){for(var e in DC){delete DC[e];break}Ih=0}DC[z]=I0;Ih++;return I0}function J(I0,e){if(typeof(If)=="undefined"||If==null){EC()}if(typeof(I0)!="string"){return""}if(I0==""&&typeof(e)=="string"&&e.indexOf("file://")==0){return"file:"}I0=I0.toLowerCase();I0=I0.replace(/\.$/,"");var I1=I0.split(".");
var t;if(I0.match(/^\d+\.\d+\.\d+\.\d+$/)){t=4}else{t=2;if(I1.length>=2){var z=I1[I1.length-1];if(typeof(If[z])!="undefined"){var I2=I1[I1.length-2];if(DU(I2,If[z])){t=3}}}}while(I1.length>t){I1.shift()}return I1.join(".")}function AN(e){var t=IR(e);return J(t.host,e)}function IB(e){var t=IR(e);var z=typeof(t.host)=="string"?t.host:"";
return z.replace(/^www\./,"")}function GR(e){return e.replace(/^\s+|\s+$/g,"")}function FI(e){return(e+"").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!<>\|\:])/g,"\\$1")}function E0(t,e){if(e&&typeof(t.id)!="undefined"&&t.id!=""){return t.id}if(typeof(t)!="undefined"&&t!=null){if(typeof(t.name)!="undefined"&&t.name!=""){return t.name
}else{if(typeof(t.id)!="undefined"){return t.id}}}return""}function GT(I0,z){for(;I0&&I0.tagName!="BODY";I0=I0.parentNode){if(typeof(I0.style)!="undefined"&&(I0.style.visibility=="hidden"||I0.style.display=="none")){return false}try{var t=I0.ownerDocument.defaultView.getComputedStyle(I0,"");if(t.visibility=="hidden"||t.display=="none"){return false
}}catch(I0){}if(z){return true}}return true}function DU(I0,z){var t=z.length;for(var e=0;e<=t;e++){if(typeof(z[e])!="undefined"&&z[e]==I0){Bp=e;return true}}return false}function BO(t){if(!t.length){return t}t=t.replace(/\s+/g," ");t=t.replace(/^\s+|\s+$/g,"");t=t.replace(/[\|]+$/g,"");var e=t.match(/\|([^\|]+)$/);
if(e){t=e[1];t=t.replace(/^\s+|\s+$/g,"")}return t}function DR(t){var e;if(typeof(t)=="number"){t=""+t}e=t.replace(/&/g,"&amp;");e=e.replace(/</g,"&lt;");e=e.replace(/>/g,"&gt;");e=e.replace(/"/g,"&quot;");return e}function l(t){var e;if(typeof(t)=="number"){t=""+t}e=t.replace(/&amp;/g,"&");e=e.replace(/&lt;/g,"<");
e=e.replace(/&gt;/g,">");e=e.replace(/&quot;/g,'"');return e}var Hy=new Array();var Ed=0;function AM(I1,z){var I0=I1.toString()+"_"+z;if(I0.length>80){if(typeof(Ge)=="function"){I0=Ge(I0)}else{if(typeof(SHA256)=="function"){I0=SHA256(I0)}}}if(Hy[I0]!=null){return(Hy[I0]=="1")}var e=I1.exec(z);if(Ed>2500){for(var t in Hy){delete Hy[t];
break}Ed=0}Hy[I0]=(e?"1":"0");Ed++;return e}function E7(I1,z){try{if(I1){if(I1.ownerDocument&&typeof(I1.ownerDocument.createEvent)=="function"){var t=I1.ownerDocument.createEvent("Events");t.initEvent("change",true,true);I1.dispatchEvent(t)}else{if(typeof(I1.fireEvent)!="undefined"){I1.fireEvent("onchange")
}}if(typeof(z)=="undefined"||z==null||z){if(typeof(FN)=="function"){FN("SHIFT",I1)}}if(typeof(HQ)=="function"){var I0=HQ(I1.ownerDocument);if(I0){I0.lpfieldchanged=true}}}}catch(I2){}}function AT(e){switch(e){case"http":return 80;break;case"https":return 443;break;case"ftp":return 21;break;default:return 0;
break}}function Dm(t){var e=t.length?--t.length:-1;for(var z in t){e++}return e}function G(){return(new Date()).getTime()}function Ab(){var z=new Date();var e=z.getTime();var t=parseInt(e/1000);return t}function ER(){return Ab()}function EC(){if(typeof(If)=="undefined"||If==null){If=new Array();If.hu=new Array("2000","agrar","bolt","casino","city","co","com","erotica","erotika","film","forum","games","hotel","info","ingatlan","jogasz","konyvelo","lakas","media","news","nui","org","priv","reklam","sex","shop","sport","suli","szex","tm","tozsde","utazas","video");
If.nl=new Array("752");If.ca=new Array("ab","bc","gc","mb","nb","nf","nl","ns","nt","nu","on","pe","qc","sk","yk");If.pa=new Array("abo","ac","com","edu","gob","ing","med","net","nom","org","sld");If.se=new Array("ab","ac","bd","brand","com","c","d","e","fh","fhsk","fhv","f","g","h","i","komforb","kommunalforbund","komvux","k","lanarb","lanbib","mil","m","naturbruksgymn","net","n","org","o","parti","pp","press","s","sshn","tm","t","u","w","x","y","z");
If.ac=new Array("ac","co","com","edu","gov","gv","mil","net","or","org");If.ae=new Array("ac","com","gov","mil","name","net","org","pro","sch");If.at=new Array("ac","co","gv","or","priv");If.be=new Array("ac","ap","co","com","fgov","to","xa");If.cn=new Array("ac","ah","bj","com","cq","edu","fj","gd","gov","gs","gx","gz","ha","hb","he","hi","hk","hl","hn","jl","js","jx","ln","mo","net","nm","nx","org","qh","sc","sd","sh","sn","sx","tj","tw","xj","xz","yn","zj");
If.cr=new Array("ac","co","ed","fi","go","or","sa");If.cy=new Array("ac","biz","com","ekloges","gov","info","ltd","name","net","org","parliament","press","pro","tm");If.fj=new Array("ac","biz","com","gov","id","info","mil","name","net","org","pro","school");If.fk=new Array("ac","co","gov","net","nom","org");
If.gg=new Array("ac","alderney","co","gov","guernsey","ind","ltd","net","org","sark","sch");If.gn=new Array("ac","com","gov","net","org");If.id=new Array("ac","co","go","mil","net","or","sch","web");If.il=new Array("ac","co","gov","idf","k12","muni","net","org");If.im=new Array("ac","co","gov","net","nic","org");
If["in"]=new Array("ac","co","edu","ernet","firm","gen","gov","ind","mil","net","nic","org","res");If.ir=new Array("ac","co","gov","net","org","sch");If.is=new Array("ac","org");If.je=new Array("ac","co","gov","ind","jersey","ltd","net","org","sch");If.jp=new Array("ac","ad","aichi","akita","aomori","chiba","co","ed","ehime","fukui","fukuoka","fukushima","gifu","go","gov","gr","gunma","hiroshima","hokkaido","hyogo","ibaraki","ishikawa","iwate","kagawa","kagoshima","kanagawa","kawasaki","kitakyushu","kobe","kochi","kumamoto","kyoto","lg","mie","miyagi","miyazaki","nagano","nagasaki","nagoya","nara","ne","net","niigata","oita","okayama","okinawa","org","or","osaka","saga","saitama","sapporo","sendai","shiga","shimane","shizuoka","tochigi","tokushima","tokyo","tottori","toyama","wakayama","yamagata","yamaguchi","yamanashi","yokohama");
If.kr=new Array("ac","co","go","ne","nm","or","re");If.mw=new Array("ac","com","co","coop","edu","gov","int","museum","net","org");If.nz=new Array("ac","co","cri","geek","gen","govt","iwi","maori","mil","net","org","school");If.ru=new Array("ac","com","int","msk","net","org","pp");If.rw=new Array("ac","com","co","edu","gouv","gov","int","mil","net");
If.au=new Array("act","asn","com","conf","csiro","edu","gov","id","info","net","nsw","nt","org","oz","qld","sa","tas","telememo","vic","wa");If.th=new Array("ac","co","go","in","mi","net","or");If.tj=new Array("ac","biz","com","co","edu","go","gov","int","mil","name","net","org","web");If.tz=new Array("ac","co","go","ne","or");
If.ug=new Array("ac","co","go","ne","or","sc");If.uk=new Array("ac","bl","british-library","com","co","gov","icnet","jet","ltd","me","mil","mod","national-library-scotland","nel","net","nhs","nic","nls","org","parliament","plc","police","sch");If.vn=new Array("ac","biz","com","edu","gov","health","info","int","name","net","org","pro");
If.yu=new Array("ac","co","edu","org");If.za=new Array("ac","alt","city","com","co","edu","gov","law","mil","net","ngo","nom","org","school","tm","web");If.zm=new Array("ac","co","gov","org","sch");If.zw=new Array("ac","co","gov","org");If.br=new Array("adm","adv","agr","am","arq","art","ato","bio","bmd","cim","cng","cnt","com","coop","dpn","ecn","edu","eng","esp","etc","eti","far","fm","fnd","fot","fst","g12","ggf","gov","imb","ind","inf","jor","lel","mat","med","mil","mus","net","nom","not","ntr","odo","org","ppg","pro","psc","psi","qsl","rec","slg","srv","tmp","trd","tur","tv","vet","zlg");
If.ht=new Array("adult","art","asso","com","coop","edu","firm","gouv","info","med","net","org","perso","pol","pro","rel","shop");If.mv=new Array("aero","biz","com","coop","edu","gov","info","int","mil","museum","name","net","org","pro");If.pl=new Array("agro","aid","art","atm","auto","bialystok","biz","com","edu","gdansk","gda","gmina","gov","gsm","info","krakow","lodz","lublin","mail","media","miasta","mil","net","ngo","nom","olsztyn","org","pc","poznan","priv","realestate","rel","shop","sklep","slupsk","sos","szczecin","targi","tm","torun","tourism","travel","turystyka","warszawa","waw","wroclaw","wroc");
If.us=new Array("ak","al","ar","az","ca","com","co","ct","dc","de","dni","fed","fl","ga","hi","ia","id","il","in","isa","kids","ks","ky","la","ma","md","me","mi","mn","mo","ms","mt","nc","nd","ne","nh","nj","nm","nsn","nv","ny","oh","ok","or","pa","ri","sc","sd","tn","tx","ut","va","vt","wa","wi","wv","wy");
If.fi=new Array("aland");If.mil=new Array("army","navy");If["do"]=new Array("art","com","edu","gob","gov","mil","net","org","sld","web");If.dz=new Array("art","asso","com","edu","gov","net","org","pol");If.co=new Array("arts","com","edu","firm","gov","info","int","mil","net","nom","org","rec","store","uk","web");
If.ro=new Array("arts","com","firm","info","nom","nt","org","rec","store","tm","www");If.ve=new Array("arts","bib","com","co","edu","firm","gov","info","int","mil","net","nom","org","rec","store","tec","web");If.lv=new Array("asn","com","conf","edu","eu","gov","id","mil","net","org");If.lk=new Array("assn","com","edu","gov","grp","hotel","int","ltd","net","ngo","org","sch","soc","web");
If.fr=new Array("asso","com","gouv","nom","prd","presse","tm");If.gp=new Array("asso","com","edu","net","org");If.mc=new Array("asso","tm");If.tr=new Array("av","bbs","bel","biz","com","dr","edu","gen","gov","info","k12","mil","name","net","org","pol","tel","web");If.az=new Array("biz","com","edu","gov","info","int","mil","name","net","org","pp");
If.et=new Array("biz","com","edu","gov","info","name","net","org");If.nr=new Array("biz","com","co","edu","gov","info","net","org");If.om=new Array("biz","com","co","edu","gov","med","mil","museum","net","org","pro","sch");If.pk=new Array("biz","com","edu","fam","gob","gok","gon","gop","gos","gov","net","org","web");
If.pr=new Array("biz","com","edu","gov","info","isla","name","net","org","pro");If.tt=new Array("biz","com","co","edu","gov","info","name","net","org","pro","us");If.ua=new Array("cherkassy","chernigov","chernovtsy","ck","cn","com","crimea","cv","dnepropetrovsk","dn","donetsk","dp","edu","gov","if","ivano-frankivsk","kharkov","kherson","khmelnitskiy","kh","kiev","kirovograd","km","kr","ks","kv","lg","lugansk","lutsk","lviv","mk","net","nikolaev","odessa","od","org","pl","poltava","rovno","rv","sebastopol","sumy","ternopil","te","uzhgorod","vinnica","vn","zaporizhzhe","zhitomir","zp","zt");
If.tw=new Array("club","com","ebiz","edu","game","gove","gov","idv","mil","net","org");If.ag=new Array("co","com","net","nom","org");If.ao=new Array("co","ed","gv","it","og","pb");If.bw=new Array("co","org");If.ck=new Array("co");If.ls=new Array("co","org");If.ma=new Array("co","gov","net","org");If.af=new Array("com","edu","gov","net");
If.ai=new Array("com","net","off","org");If.al=new Array("com","edu","gov","inima","net","org","soros","tirana","uniti","upt");If.an=new Array("com","edu","net","org");If.ar=new Array("com","gov","int","mil","net","org");If.aw=new Array("com");If.bb=new Array("com","edu","gov","net","org");If.bd=new Array("com","edu","gov","mil","net","org");
If.bm=new Array("com","edu","gov","net","org");If.bn=new Array("com","edu","net","org");If.bo=new Array("com","edu","gob","gov","int","mil","net","org","tv");If.bs=new Array("com","net","org");If.bt=new Array("com","edu","gov","net","org");If.cd=new Array("com","net","org");If.ch=new Array("com","gov","net","org");
If.cu=new Array("com","edu","gov","inf","net","org");If.dm=new Array("com","edu","gov","net","org");If.ec=new Array("com","edu","fin","gov","info","k12","med","mil","net","org","pro");If.ee=new Array("com","fie","org","pri");If.eg=new Array("com","edu","eun","gov","mil","net","org","sci");If.es=new Array("com","edu","gob","nom","org");
If.eu=new Array("com");If.gb=new Array("com","net");If.ge=new Array("com","edu","gov","mil","net","org","pvt");If.gh=new Array("com","edu","gov","mil","org");If.gi=new Array("com","edu","gov","ltd","mod","org");If.gr=new Array("com","edu","gov","net","org");If.gu=new Array("com","edu","gov","mil","net","org");
If.hk=new Array("com","edu","gov","idv","net","org");If.hn=new Array("com","edu","gob","mil","net","org");If.hr=new Array("com","from","iz","name");If.jm=new Array("com","edu","gov","net","org");If.jo=new Array("com","edu","gov","mil","net","org");If.kh=new Array("com","edu","gov","mil","net","org","per");
If.kw=new Array("com","edu","gov","mil","net","org");If.ky=new Array("com","edu","gov","net","org");If.kz=new Array("com","edu","gov","mil","net","org");If.la=new Array("com","net","org");If.lb=new Array("com","edu","gov","mil","net","org");If.lc=new Array("com","edu","gov","net","org");If.li=new Array("com","gov","net","org");
If.lr=new Array("com","edu","gov","net","org");If.ly=new Array("com","edu","gov","id","med","net","org","plc","sch");If.mg=new Array("com","edu","gov","mil","nom","org","prd","tm");If.mk=new Array("com","org");If.mm=new Array("com","edu","gov","net","org");If.mo=new Array("com","edu","gov","net","org");
If.mt=new Array("com","edu","gov","net","org");If.mu=new Array("com","co");If.mx=new Array("com","edu","gob","gov","net","org");If.my=new Array("com","edu","gov","mil","name","net","org");If.na=new Array("com","net","org");If.nc=new Array("com","net","org");If.ng=new Array("com","edu","gov","net","org");
If.ni=new Array("com","edu","gob","net","nom","org");If.no=new Array("com","fhs","folkebibl","fylkesbibl","herad","idrett","kommune","mil","museum","priv","stat","vgs");If.np=new Array("com","edu","gov","mil","net","org","ort");If.pe=new Array("com","edu","gob","mil","net","nom","org");If.pf=new Array("com","edu","org");
If.pg=new Array("com","net");If.ph=new Array("com","gov","mil","net","ngo","org");If.ps=new Array("com","edu","gov","net","org","plo","sec");If.pt=new Array("com","edu","gov","int","net","nome","org","publ");If.py=new Array("com","edu","gov","net","org");If.qc=new Array("com");If.sa=new Array("com","edu","gov","med","net","org","pub","sch");
If.sb=new Array("com","edu","gov","net");If.sc=new Array("com","edu","gov","net","org");If.sd=new Array("com","edu","gov","info","med","net","org","tv");If.sg=new Array("com","edu","gov","idn","net","org","per");If.sh=new Array("com","edu","gov","mil","net","org");If.sv=new Array("com","co","edu","gob","org","red");
If.sy=new Array("com","gov","net","org");If.tn=new Array("com","edunet","ens","fin","gov","ind","info","intl","nat","net","org","rnrt","rns","rnu","tourism");If.uy=new Array("com","edu","gub","mil","net","org");If.vi=new Array("com","co","edu","gov","net","org");If.ye=new Array("com","net");If.pro=new Array("cpa","law","med");
If.arpa=new Array("e164","in-addr","ip6","iris","uri","urn");If["int"]=new Array("eu");If.bf=new Array("gov");If.by=new Array("gov","mil");If.cx=new Array("gov");If.ie=new Array("gov");If.it=new Array("gov","pisa");If.lt=new Array("gov","mil");If.lu=new Array("gov","mil","net","org");If.to=new Array("gov");
If.tp=new Array("gov");If.tv=new Array("gov");If.mobi=new Array("music","weather");If.mh=new Array("net");If.ad=new Array("nom");If.sr=new Array("rs");If.va=new Array("vatican")}}var Y=new Array("combineddummy","phoneext","gender","ssn1","ssn2","ssn3","ssn","birthyear","birthmonth","birthday","birthdate","city","county","state","zip1","zip2","zip","country","email","housenumbername","housenumber","housename","address1","ccphone","address2","address3","mobilephone1","mobilephone2","mobilephone3","mobilephone","evephone1","evephone2","evephone3","evephone","phone1","phone2","phone3","phone","fax1","fax2","fax3","fax","title","ccname","ccnum1","ccnum2","ccnum3","ccnum4","cccsc","ccnum","ccstartmonth","ccstartyear","ccstart","ccexpmonth","ccexpyear","ccexp","cctype","ccissuenum","firstname","middlename","middleinitial","lastname","address","company","username","bankname","addrbookname","name","age","timezone","bankacctnum","bankroutingnum");
var Dg=new Array("securityanswer","promocode","maiden","comments","invoice","addrbookname","emailalert","combineddummy");var F8=new Array();F8.ssn1=F8.ssn2=F8.ssn3="ssn";F8.birthyear=F8.birthmonth=F8.birthday="birthdate";F8.address1=F8.address2=F8.address3="address";F8.phone1=F8.phone2=F8.phone3=F8.phone23="phone";
F8.evephone1=F8.evephone2=F8.evephone3=F8.evephone23="evephone";F8.mobilephone1=F8.mobilephone2=F8.mobilephone3=F8.mobilephone23="mobilephone";F8.fax1=F8.fax2=F8.fax3=F8.fax23="fax";F8.ccnum1=F8.ccnum2=F8.ccnum3=F8.ccnum4="ccnum";F8.ccexpmonth=F8.ccexpyear="ccexp";F8.ccstartmonth=F8.ccstartyear="ccstart";
F8.firstname=F8.middlename=F8.middleinitial=F8.lastname="name";F8.zip1=F8.zip2="zip";var Eg=new Array();var CW=new Array();function Cf(){var t;var e;var z}function FT(J2,Jh,J8,Jz,J6,JU,JP,JQ){if(typeof(JU)=="undefined"||JU==null){JU=1}if(JU>10){return false}if(!J2&&!JP){return false}var Jm=null;if(typeof(LP)=="object"&&!LP.isFennec&&LP.getBrowser().selectedTab==null){return false
}var Kb=null;if(typeof(LP)=="object"){if(LP.isFennec){Kb=J2}else{Kb=LP.getBrowser().selectedTab.linkedBrowser}}try{if(typeof(JP)=="undefined"||JP==null){JP=J2.contentWindow}Jm=J2?LP.lpgetcurrenturl(J2):JP.location.href;if(d.length==0){if(Kb){var Jk=Kb.contentDocument;if(Jk){Jk.m_abortedFormFillChecking=true
}}return false}if(!J8&&!IX){if(Kb){var Jk=Kb.contentDocument;if(Jk){Jk.m_abortedFormFillChecking=true}}return false}if(!J8&&!Jz&&(Io(J2,"autologin")||Io(J2,"generate")||Io(J2,"formfill"))){if(Kb){var Jk=Kb.contentDocument;if(Jk){Jk.m_abortedFormFillChecking=true}}return false}var J7=null;if(J6){for(var JB=0;
JB<d.length;JB++){if(d[JB].ffid==J6){J7=d[JB];break}}}else{J7=d[0]}var J1;var Jn;if(Jm.indexOf("https://")==0){J1=Jn=true}else{J1=Jn=false}if(!J8){var JG=IR(Jm);var I9=ED(Jm,JG);var Jc=J(JG.host,Jm);if(DU(I9,El)||DU(Jc,El)){return false}}CV("en-US");var Js=null;var Jq=Eg["en-US"];var JR=CW["en-US"];var Jg=Y;
if(J6){for(var JB=0;JB<d.length;JB++){if(d[JB].ffid==J6){var J7=d[JB];var JY=BD(J7.profilelanguage);if(JY.length==5){Js=JY}CV(Js);Jq=Eg[Js];JR=CW[Js];if(typeof(J7.customfields)!="undefined"&&J7.customfields.length>0){Jq=new Array();JR=new Array();Jg=new Array();for(var Jy=0;Jy<Eg[Js].length;Jy++){Jq[Jy]=Eg[Js][Jy];
JR[Jy]=CW[Js][Jy];Jg[Jy]=Y[Jy]}for(var Jy=0;Jy<J7.customfields.length;Jy++){var JW=BD(J7.customfields[Jy].text);var JD=BD(J7.customfields[Jy].alttext);var JJ=JD.split(/\r\n|\r|\n/g);JJ.unshift(JW);var Jt="";var I4="";for(var Jx=0;Jx<JJ.length;Jx++){var JW=GR(JJ[Jx]);if(JW!=""){Jt+=I4+FI(JW);I4="|"}}if(Jt!=""){Jq[Jq.length]=new RegExp(Jt,"i");
JR[JR.length]=new RegExp(Jt,"i");Jg[Jg.length]="customfield"+Jy}}}break}}}var Ka=null;var J3=null;var Jj=null;try{if(J8){if(JP.getSelection){Ka=JP.getSelection();if(Ka.toString()==""){Ka=J3=Jj=null}else{if(Ka.getRangeAt){J3=Ka.getRangeAt(0)}if(Jh.createRange){Jj=Jh.createRange()}}}else{if(Jh.selection){Ka=Jh.selection.createRange();
Jj=Jh.body.createTextRange();if(Ka.text==""){Ka=J3=Jj=null}}}}}catch(JE){Ka=J3=Jj=null}var I5={};I5.value=0;var JX=Jh.getElementsByTagName("form");var J4={};J4.value=0;var Jl={},Je={},z={},JH={};Jl.value=false;Je.value=false;z.value=false;JH.value=false;for(var JB=0;JB<JX.length+1;JB++){var I3=JB<JX.length?JX[JB]:null;
var J0;if(I3!=null){J0=I3.elements}else{J0=new Array();var Jb=new Array("input","select","textarea");for(var Jy=0;Jy<Jb.length;Jy++){var I7=Jh.getElementsByTagName(Jb[Jy]);for(var Jx=0;Jx<I7.length;Jx++){if(typeof(I7[Jx].form)=="unknown"||I7[Jx].form==null){J0[J0.length]=I7[Jx]}}}}if(typeof(J0)=="undefined"){continue
}var I0=J0.length;var JF={};JF.value=0;var I6=new Array();for(var Jx=0;Jx<Jq.length;Jx++){I6[Jg[Jx]]=0}var JL=new Array();var JT={};JT.value=false;var J9=Ag(J0,J2,JF,I6,JL,JT,J8,Ka,J3,Jj,J4,Jq,Jg,JR,I5,Jz,Jl,Je,z,JH,JP);if(J9==0){return false}else{if(J9==1){return true}}if(J8){var JA="birthday";var JZ="birthmonth";
if(J7&&BD(J7.country)=="US"){JA="birthmonth";JZ="birthday"}var Jf=new Array();Jf[Jf.length]=new Array("name","name","name","firstname","middlename","lastname");Jf[Jf.length]=new Array("firstname","firstname","lastname","firstname","middlename","lastname");Jf[Jf.length]=new Array("firstname","lastname","lastname","firstname","middlename","lastname");
Jf[Jf.length]=new Array("name","name","firstname","lastname");Jf[Jf.length]=new Array("name","lastname","firstname","lastname");Jf[Jf.length]=new Array("lastname","lastname","lastname","firstname","middlename","lastname");Jf[Jf.length]=new Array("lastname","lastname","firstname","lastname");Jf[Jf.length]=new Array("firstname","firstname","firstname","lastname");
Jf[Jf.length]=new Array("firstname","lastname","firstname","firstname","middlename","lastname");Jf[Jf.length]=new Array("address","address","address","address1","address2","address3");Jf[Jf.length]=new Array("address2","address2","address","address1","address2","address3");Jf[Jf.length]=new Array("address1","address3","address2","address1","address2","address3");
Jf[Jf.length]=new Array("address","address","address1","address2");Jf[Jf.length]=new Array("address","address2","address1","address2");Jf[Jf.length]=new Array("address1","address1","address1","address2");Jf[Jf.length]=new Array("address","address1","address1","address2");Jf[Jf.length]=new Array("address2","address2","address1","address2");
Jf[Jf.length]=new Array("address1","address3","address1","address2");Jf[Jf.length]=new Array("address","address3","address1","address2");Jf[Jf.length]=new Array("ssn","ssn","ssn","ssn1","ssn2","ssn3");Jf[Jf.length]=new Array("zip","zip","zip1","zip2");Jf[Jf.length]=new Array("birthmonth","birthdate","birthyear",JA,JZ,"birthyear");
Jf[Jf.length]=new Array("birthday","birthday","birthday",JA,JZ,"birthyear");Jf[Jf.length]=new Array("birthdate","birthdate","birthdate",JA,JZ,"birthyear");Jf[Jf.length]=new Array("birthdate","birthdate","birthyear",JA,JZ,"birthyear");Jf[Jf.length]=new Array("birthday","birthday",JA,JZ);Jf[Jf.length]=new Array("birthdate","birthdate",JA,JZ);
for(var I1=1;I1<=4;I1++){var JN="evephone";if(2==I1){JN="phone"}if(3==I1){JN="fax"}if(4==I1){JN="mobilephone"}Jf[Jf.length]=new Array(JN,JN,JN,JN+"1",JN+"2",JN+"3");Jf[Jf.length]=new Array(JN+"1",JN+"2",JN,JN+"1",JN+"2",JN+"3");Jf[Jf.length]=new Array(JN+"1",JN+"1",JN+"2",JN+"1",JN+"2",JN+"3");Jf[Jf.length]=new Array(JN+"1",JN+"1",JN+"1",JN+"1",JN+"2",JN+"3");
Jf[Jf.length]=new Array(JN+"1",JN,JN,JN+"1",JN+"2",JN+"3");Jf[Jf.length]=new Array(JN,JN,JN+"2",JN+"1",JN+"2",JN+"3");Jf[Jf.length]=new Array(JN,JN+"2",JN,JN+"1",JN+"2",JN+"3");Jf[Jf.length]=new Array(JN,JN+"3",JN,JN+"1",JN+"2",JN+"3");Jf[Jf.length]=new Array(JN,JN,JN+"1",JN+"23")}Jf[Jf.length]=new Array("ccnum","ccnum","ccnum","ccnum","ccnum1","ccnum2","ccnum3","ccnum4");
Jf[Jf.length]=new Array("ccnum","ccnum","ccnum","ccnum1","amexccnum2","amexccnum3");Jf[Jf.length]=new Array("ccexp","ccexp","ccexpmonth","ccexpyear");Jf[Jf.length]=new Array("ccexp","ccexpyear","ccexpmonth","ccexpyear");Jf[Jf.length]=new Array("ccexpyear","ccexpyear","ccexpmonth","ccexpyear");Jf[Jf.length]=new Array("ccstart","ccstart","ccstartmonth","ccstartyear");
Jf[Jf.length]=new Array("ccstart","ccstartyear","ccstartmonth","ccstartyear");Jf[Jf.length]=new Array("cctype","cctype","cctype","firstname","middlename","lastname");if(Je.value||Jl.value||JH.value||z.value){var I8=true;for(var Jy=0;Jy<JL.length;Jy++){if(JL[Jy].namematch=="country"&&JL[Jy].textmatch=="country"){I8=false
}if(JL[Jy].namematch=="state"&&JL[Jy].textmatch=="state"){I8=false}}if(I8){var Ji=new Array(),Jd=new Array();for(var Jy=0;Jy<JL.length;Jy++){var JI=JL[Jy].namematch;var JK=JL[Jy].textmatch;if(""!=JI){Jd[JI]=1}if(""!=JK){Ji[JK]=1}}var Jp=Dm(Jd);var Ju=Dm(Ji);if(Jp>Ju){for(var Jy=0;Jy<JL.length;Jy++){if(JL[Jy].namematch){JL[Jy].regexpname=JL[Jy].namematch
}}}else{}}}for(var Jy=0;Jy<JL.length;Jy++){var JC=JL[Jy];var JS=JC.elt;if(!GT(JS)){continue}var J5=JC.regexpname;var Jr=false;for(var Jx=0;Jx<Jf.length;Jx++){var I2=Jf[Jx];if(I2.length%2!=0){continue}if(J5!=I2[0]){continue}var Ja=I2.length/2;if(Jy>=JL.length-(Ja-1)){continue}if(I2[0]=="cctype"&&I2[3]=="firstname"&&(JS.type=="select-one"||JS.type=="radio")){continue
}for(var Jw=0;Jw<Ja;Jw++){if(!Ec(JL[Jy+Jw].elt,I2[Ja+Jw])){break}if(Jw>=1){if(JL[Jy+Jw].regexpname!=I2[Jw]||!JL[Jy+Jw].last_field_filled){break}}}if(Jw<Ja){continue}J5=I2[Ja];for(var Jw=1;Jw<Ja;Jw++){JL[Jy+Jw].regexpname=I2[Ja+Jw]}Jr=true;break}if(!Jr&&J5=="cctype"&&JS.type!="select-one"&&JS.type!="radio"){var JM=false;
for(var Jv=0;Jv<JL.length;Jv++){if(JL[Jv].regexpname.indexOf("ccnum")==0){JM=true;break}}if(!JM){J5="ccnum"}}else{if(!Jr&&J5.indexOf("ccnum")==0&&JS.type=="select-one"){J5="cctype"}else{if(J5=="address3"&&J7.address3==""&&J7.city!=""){var Jo=false;for(var Jv=0;Jv<JL.length;Jv++){if(JL[Jv].regexpname=="city"){Jo=true;
break}}if(!Jo){J5="city"}}else{if(J5=="address"&&JS.type=="textarea"){var JO=false;for(var Jv=0;Jv<JL.length;Jv++){if(JL[Jv].regexpname=="city"||JL[Jv].regexpname=="county"||JL[Jv].regexpname=="state"){JO=true;break}}if(!JO){J5="fulladdress"}}}}}if(J5.indexOf("cc")==0){if(J1&&!Jn){continue}else{if(!J1||!Jn){var t=J5;
if(typeof(F8[J5])!="undefined"){t=F8[J5]}else{if(J5=="cctype"){t="ccnum"}}if(J7&&typeof(J7[t])!="undefined"&&J7[t]!=""){if(!J1){Jn=HP(Gb("InsecureSite"))?true:false;J1=true}if(!Jn){continue}}}}}var Kc=JS.value;Fo(JS,J5,J6,JQ);if(JS.value!=Kc){if(typeof(I6[J5])=="undefined"){I6[J5]=0}I6[J5]++}}}}if(JP&&JP.frames&&(!J8||Ka==null)){for(var JB=0;
JB<JP.frames.length;JB++){try{if(JP.frames[JB].document){var JV=FT(J2,JP.frames[JB].document,J8,Jz,J6,JU+1,JP.frames[JB].window,JQ);if(JV&&!J8){return JV}}}catch(JE){}}}if(J8&&typeof(A2)!="undefined"&&A2&&JU==1){Dj(J6)}}catch(JE){HX("Failure with checking formfill: "+JE+" ln: "+JE.lineNumber,Jm)}if(!J8){return false
}}function Ag(JP,I2,Je,I9,JB,Jm,Jq,Jg,I5,I6,Jz,Jc,Jx,I1,Ja,Jw,Jv,I8,JX,Jb,JA){var JW="";var JK=JP.length;var JJ=0;for(var JM=0;JM<JK;JM++){var Jt=false;var JF=JP[JM];if(JF.type=="text"||JF.type=="password"||JF.type=="select-one"||JF.type=="textarea"||JF.type=="radio"){if(++JJ>100){break}var Jp=E0(JF);
var JN=false;if(Jp!=""){try{if(Jq&&Jg!=null){if(JA.navigator.userAgent.indexOf("Opera")!=-1){I6.setStart(JF,0);I6.setEnd(JF,0);var Jn=I5.compareBoundaryPoints(Range.START_TO_START,I6);var Jj=I5.compareBoundaryPoints(Range.END_TO_END,I6);if(Jn>0||Jj<0){continue}}else{if(typeof(Jg.containsNode)=="function"){if(!Jg.containsNode(JF,true)){continue
}}else{if(I6!=null&&typeof(I6.moveToElementText)!="undefined"){var I7=JF;if(I7.type=="select-one"){var JE=I7.previousSibling;var I3=false;while(JE){if(JE.nodeType==1&&JE.tagName!="SELECT"){I7=JE;I3=true;break}JE=JE.previousSibling}if(!I3){I7=I7.parentNode}}I6.moveToElementText(I7);var Jn=Jg.compareEndPoints("StartToStart",I6);
var Jj=Jg.compareEndPoints("EndToEnd",I6);if(Jn>0||Jj<0){continue}}}}}}catch(JS){}var I4=0;var Ji=0;if(typeof(JF.size)!="undefined"){I4=parseInt(JF.size)}if(typeof(JF.maxLength)!="undefined"){Ji=parseInt(JF.maxLength)}if(I4<=0&&Ji<=0&&JF.style){var z=JF.style.width;if(z.match(/^\d+px$/)){z=parseInt(z.substring(0,z.length-2));
if(z%10==0){I4=z/10}}}var I3=false;var Jo=new Array();var JI=new Array();var Jy=false;var JH=true;var I0=Jp;var Jf="";if(Jq||++Jz.value<=5){Jf=AK(JF);if(JW!=""&&E0(JF)==JW){V(Jf)}}if(!Jq&&Jz.value>20){return false}var JQ=2;var Jk=1;if(!Jq){JQ=Jk=Jf!=""?2:1}for(var JL=0;JL<Jc.length&&JH&&!I3;JL++){var Jh=Jx[JL];
if(JF.type=="radio"&&Jh!="gender"&&Jh!="cctype"&&Jh.indexOf("customfield")!=0){continue}if(JF.type=="select-one"&&Jh!="state"&&Jh!="country"&&Jh!="cctype"&&Jh!="timezone"&&Jh!="city"&&Jh.indexOf("birth")!=0&&Jh!="title"&&Jh.indexOf("ccexp")!=0&&Jh.indexOf("ccstart")!=0&&Jh!="gender"&&Jh!="age"&&Jh.indexOf("customfield")!=0){continue
}if(JF.type=="password"&&Jh.indexOf("ccnum")!=0&&Jh!="cccsc"&&Jh!="ccissuenum"&&Jh!="cctype"&&Jh!="bankacctnum"&&Jh.indexOf("customfield")!=0){continue}if((JF.type=="text"||JF.type=="textarea")&&(Jh=="cctype"||Jh=="timezone"||Jh=="gender")){continue}if(!Ec(JF,Jh,true,I4,Ji)){continue}if(Jh.indexOf("address")==0&&Ji>0&&Ji<15){continue
}var Ju=false;var t=false;for(var JG=JQ;JG>=Jk;JG--){if(JG==1&&!Ju&&JI.length>0&&JF.type!="select-one"){break}var JU;if(JG==1){JU=I0}else{if(JG==2){JU=Jf;if(JU==""){continue}}}var Jd=1==JG?Jc[JL]:I1[JL];if((typeof(I9[Jh])=="undefined"||I9[Jh]<2)&&AM(Jd,JU)){if(JG==2&&(Jh=="evephone"||Jh=="mobilephone")){Jy=true
}if(JG==2&&Jh=="phone"&&Jy){break}if(!Jq&&!JN){if(!GT(JF)){JH=false;Jt=Jm.value;break}JN=true}if(!DU(Jh,Dg)){Ja.value++;Je.value++}if(Jq){if(JG==1){Jo[Jo.length]=Jh;t=true}else{JI[JI.length]=Jh;Ju=true}}else{if(typeof(I9[Jh])=="undefined"){I9[Jh]=0}I9[Jh]++;if(Ja.value>=3){if(!Jw&&!Io(I2,"addconfirm")){if(Iv){var Js=LP.getBrowser().selectedTab.linkedBrowser.contentDocument;
Js.LPlpfillforms=true;BQ(Js)}else{Cz("FillableFormDetected",I2,0,"formfill")}}I2.contentDocument.ffidindex=-1;return true}I3=true;break}}}if(Ju&&t){break}}if(Jq&&JH){var Jl=new Array();for(var JR=0;JR<JI.length;JR++){if(DU(JI[JR],Jo)){Jl[Jl.length]=JI[JR]}else{if(typeof(F8[JI[JR]])!="undefined"&&DU(F8[JI[JR]],Jo)){Jl[Jl.length]=JI[JR]
}}}var Jr=null;if(JW!=""&&E0(JF)==JW){V(Jl+"|"+JI+"|"+Jo)}if(Jl.length>0){Jr=Jl[0]}else{if(JI.length>0){Jr=JI[0]}else{if(Jo.length>0){if(Jo[0].indexOf("ccnum")==0&&JF.type=="select-one"){for(var JD=1;JD<Jo.length;JD++){if(Jo[JD].indexOf("ccexp")==0){Jo.shift();break}}}Jr=Jo[0]}}}if(Jr!=null){if(Jr=="name"&&DU("name",Jl)&&DU("company",JI)){Jr="company"
}if(Jr=="ccexp"&&JF.type=="select-one"&&DU("ccexp",JI)&&DU("cctype",Jo)){if(JF.options.length!=12&&JF.options.length!=13){for(var JO=0;JO<JF.options.length;JO++){if(JF.options[JO].value.match(/^(?:\d{1,2}|\d{4}|\d{2}\/?(?:\d{2}|\d{4}))$/)||JF.options[JO].text.match(/^(?:\d{1,2}|\d{4}|\d{2}\/?(?:\d{2}|\d{4}))$/)){break
}}if(JO==JF.options.length){Jr="cctype"}}}var JC=new Cf();JC.elt=JF;JC.regexpname=Jr;if(JW!=""&&E0(JF)==JW){V(Jr)}JC.last_field_filled=Jm.value;var JT="";var JV="";if(JI.length>0){JV=JI[0]}if(Jo.length>0){if("state"==Jo[0]&&JV!="state"&&"select-one"==JF.type){I8.value=true}if("country"==Jo[0]&&JV!="country"&&"select-one"==JF.type){Jv.value=true
}if("ccexpmonth"==Jo[0]&&(JV!="ccexpmonth"&&JV!="ccexp")&&"select-one"==JF.type){JX.value=true}if("ccexpyear"==Jo[0]&&(JV!="ccexpyear"&&JV!="ccexp")&&"select-one"==JF.type){Jb.value=true}JT=Jo[0]}JC.namematch=JT;JC.textmatch=JV;JB[JB.length]=JC;Jt=true}}}Jm.value=Jt}}return 2}function Dx(I2,I5,I1,I3){if(typeof(I1)=="undefined"||I1==null){I1=1
}if(I1>10){return false}if((!I2&&!I3)||!I5){return false}var e=new Array("input","select");for(var I0=0;I0<e.length;I0++){var I4=I5.getElementsByTagName(e[I0]);for(var z=0;z<I4.length;z++){var t=I4[z];if(!t.readOnly&&!t.disabled){if(t.type=="text"||t.type=="password"){if(t.value!=""){t.value="";E7(t)
}}else{if(t.type=="select-one"){if(t.selectedIndex!=0){t.selectedIndex=0;E7(t)}}else{if(t.type=="radio"||t.type=="checkbox"){if(t.checked){t.checked=false;E7(t)}}}}}}}if(typeof(I3)=="undefined"||I3==null){I3=I2.contentWindow}if(I3&&I3.frames){for(var I0=0;I0<I3.frames.length;I0++){if(I3.frames[I0].document){Dx(I2,I3.frames[I0].document,I1+1,I3.frames[I0].window)
}}}}function CV(e){if(typeof(Eg[e])=="undefined"){Eg[e]=new Array();CW[e]=new Array()}if(Eg[e].length>0){return}for(var t=0;t<Y.length;t++){Eg[e][t]=new RegExp(Gb("ff_"+Y[t]+"_regexp",e),"i");var I0="ff_text_"+Y[t]+"_regexp";var z=Gb(I0,e,true);if(z.length&&z!=I0){CW[e][t]=new RegExp(z,"i")}else{CW[e][t]=Eg[e][t]
}}}function AK(I3){var Jc="";try{if(I3.id!=""&&typeof(I3.ownerDocument)!="undefined"&&I3.ownerDocument!=null){var Jh=I3.ownerDocument.getElementsByTagName("label");for(var Jd=0;Jd<Jh.length;Jd++){if(Jh[Jd].htmlFor==I3.id){var Jj=BO(IA(Jh[Jd],I3,false,true));if(Jj.length>=2){return Jj}break}}}var I4=I3.parentNode;
if(I4&&(I4.tagName=="DIV"||I4.tagName=="SPAN")){I4=I4.parentNode}if(I4&&"TD"==I4.tagName){var Je=BO(IA(I4,I3,false,true));if(Je.length>=2){return Je}var z=I4.parentNode;var Jb=BO(IA(z,I3,false,true));if(Jb.length>=2){return Jb}var t=-1,Jl=-1;var Jg=I4.offsetParent;if(Jg){for(var I8=0;I8<Jg.rows.length;
I8++){if(z==Jg.rows[I8]){t=I8;break}}}for(var Ji=0;Ji<z.cells.length;Ji++){if(typeof(z.cells[Ji])!="undefined"&&I4==z.cells[Ji]){Jl=Ji;break}}var I7=0;if(t>0&&Jl!=-1){var I1=0;var Ja=0;for(var Jd=0;Jd<=Jl;Jd++){var I5=Jg.rows[t].cells[Jd];var I0=1;if(I5&&typeof(I5.colSpan)=="number"){I0=I5.colSpan}if(Jd<Jl){I1+=I0
}else{Ja=I1+I0-1}}var I9=0;for(var Jd=0;Jd<=Ja;Jd++){var I5=Jg.rows[t-1].cells[Jd];var I0=1;if(I5&&typeof(I5.colSpan)=="number"){I0=I5.colSpan}var Jk=1;if(I5&&typeof(I5.rowSpan)=="number"){Jk=I5.rowSpan}if(Jk>1){I1+=Jk-1;Ja+=Jk-1}var I2=I9;var I6=I9+I0-1;if((I1>=I2&&I1<=I6)||(Ja>=I2&&Ja<=I6)){if(I5){var Jj=BO(IA(I5,I3,false,true));
if(Jj.length>=2){Jc=Jj;I7=1;break}}}I9+=I0}}if(!I7&&t!=-1&&Jl!=-1){var I5=Jg.rows[t].cells[0];if(I5){var Jj=BO(IA(I5,I3,false,true));if(Jj.length>=2){Jc=Jj}}}}}catch(Jf){}if(Jc==""){Jc=M(I3)}return Jc}function IP(I6,I0){var I5="";var I3=I6.innerHTML;var I7=new RegExp("<(input|select|textarea)[^>]+name=[\"']?"+FI(DR(E0(I0)))+"[\"']?[^>]*>","i");
var I2=I7.exec(I3);if(!I2){I7=new RegExp("<(input|select|textarea)[^>]+id=[\"']?"+FI(DR(E0(I0)))+"[\"']?[^>]*>","i");I2=I7.exec(I3);if(!I2){return""}}var I4=I3.indexOf(I2[0]);var z=0;var I1=I4>1001?I4-1001:0;for(var t=I4-1;t>=I1;t--){var e=I3.charAt(t);if(e==">"){if(z<=0){I5=I5.replace(/&nbsp;/," ");
I5=BO(I5);if(I5.length>2){return I5}I5=""}z++}else{if(e=="<"){if(z>0){z--}}else{if(z<=0){I5=e+I5}}}}I5=I5.replace(/&nbsp;/," ");I5=BO(I5);if(I5.length>2){return I5}else{I5=""}return I5}function M(t){if(E0(t)==""){return""}var I0="";var I1=t;var I2="";for(var z=0;z<10;z++){if(!I1.parentNode){break}I1=I1.parentNode;
I2=BO(IA(I1,t));if(I2.length>200){var e=IP(I1,t);return e}if(I2.length>=2){break}}return I2}function Ec(z,I4,t,I1,I3){if(I4=="ssn1"||I4=="ssn2"||I4=="ssn3"||I4=="ccnum1"||I4=="ccnum2"||I4=="ccnum3"||I4=="ccnum4"||I4=="phone1"||I4=="phone2"||I4=="phone3"||I4=="phone23"||I4=="evephone1"||I4=="evephone2"||I4=="evephone3"||I4=="evephone23"||I4=="mobilephone1"||I4=="mobilephone2"||I4=="mobilephone3"||I4=="mobilephone23"||I4=="fax1"||I4=="fax2"||I4=="fax3"||I4=="fax23"||I4=="zip1"||I4=="zip2"||I4=="amexccnum2"||I4=="amexccnum3"){if(typeof(I1)=="undefined"||typeof(I3)=="undefined"){I1=0;
I3=0;if(typeof(z.size)!="undefined"){I1=parseInt(z.size)}if(typeof(z.maxLength)!="undefined"){I3=parseInt(z.maxLength)}if(I1<=0&&I3<=0&&z.style){var I2=z.style.width;if(I2.match(/^\d+px$/)){I2=parseInt(I2.substring(0,I2.length-2));if(I2%10==0){I1=I2/10}}}}var e;var I0;if(I4=="ssn2"){e=I0=2}else{if(I4=="ssn1"||I4=="phone1"||I4=="phone2"||I4=="fax1"||I4=="fax2"||I4=="evephone1"||I4=="evephone2"||I4=="mobilephone1"||I4=="mobilephone2"){e=I0=3
}else{if(I4=="zip1"){e=5;I0=2}else{if(I4=="phone23"||I4=="fax23"||I4=="evephone23"||I4=="mobilephone23"){e=8;I0=7}else{if(I4=="ccnum4"||I4=="zip2"){e=4;I0=3}else{if(I4=="amexccnum2"){e=I0=6}else{if(I4=="amexccnum3"){e=I0=5}else{if(I4=="phone3"||I4=="fax3"||I4=="mobilephone3"||I4=="evephone3"){e=5;I0=4
}else{e=I0=4}}}}}}}}if((I1<=0||I1>e)&&(I3<=0||I3>e)){return false}if(t&&I3>0&&I3<I0){return false}}return true}function Fo(JP,JY,JJ,JI){try{if(JI&&(JY.indexOf("cc")==0)){JJ=JI}var JE=null;if(JJ){for(var JQ=0;JQ<d.length;JQ++){if(d[JQ].ffid==JJ){JE=d[JQ];break}}}else{JE=d[0]}if(!JE){return}if(JP.readOnly||JP.disabled){return
}var I8=0;var Jg=0;if(typeof(JP.size)!="undefined"){I8=parseInt(JP.size)}if(typeof(JP.maxLength)!="undefined"){Jg=parseInt(JP.maxLength)}if(!Ec(JP,JY)){JY=JY.replace(/\d+$/,"")}var Jk=JP.value;if(JY.indexOf("customfield")==0){var I7=parseInt(JY.substring(11));if(JE.customfields.length>I7){Df(JP,BD(JE.customfields[I7].value))
}}if(JY=="birthmonth"&&JP.type=="select-one"&&JP.options.length>=28){if(JP.options[0].value.match(/^\d{4}$/)){JY="birthyear"}else{JY="birthday"}}else{if(JY=="birthday"&&JP.type=="select-one"&&JP.options.length<28){JY="birthmonth"}else{if(JY=="birthyear"&&JP.type=="select-one"&&JP.options.length>0&&JP.options[0].value.match(/^\d$/)){JY="birthday"
}}}if(JY=="ccexpmonth"&&JP.type=="select-one"&&JP.options.length>0&&(JP.options[JP.options.length-1].value.match(/^\d{4}$/)||JP.options[JP.options.length-1].text.match(/^\d{4}$/))){JY="ccexpyear"}if(JY=="cctype"&&JP.type=="select-one"&&JP.options.length>=100){for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value=="US"||JP.options[JQ].value=="USA"){JY="country";
break}}}switch(JY){case"firstname":Df(JP,BD(JE.firstname));break;case"lastname":Df(JP,BD(JE.lastname));break;case"email":Df(JP,BD(JE.email));break;case"company":Df(JP,BD(JE.company));break;case"address1":Df(JP,BD(JE.address1));break;case"address2":Df(JP,BD(JE.address2),false,false,JE.address1!=""?true:false);
break;case"address3":Df(JP,BD(JE.address3),false,false,JE.address1!=""?true:false);break;case"username":Df(JP,BD(JE.username),true);break;case"phoneext":Df(JP,BD(JE.phoneext),false,false,JE.phone!="");break;case"bankname":Df(JP,BD(JE.bankname));break;case"bankacctnum":Df(JP,BD(JE.bankacctnum));break;
case"bankroutingnum":Df(JP,BD(JE.bankroutingnum));break;case"county":Df(JP,BD(JE.county));break;case"ccname":Df(JP,BD(JE.ccname));break;case"ccissuenum":Df(JP,BD(JE.ccissuenum),true);break;case"securityanswer":Df(JP,"");break;case"promocode":Df(JP,"");break;case"maiden":Df(JP,"");break;case"ccphone":Df(JP,"");
break;case"comments":Df(JP,"");break;case"invoice":Df(JP,"");break;case"addrbookname":Df(JP,"");break;case"emailalert":Df(JP,"");break;case"combineddummy":Df(JP,"");break;case"timezone":var Jy=BD(JE.timezone);if(JP.type=="select-one"){if(Jy==""){break}var I2=Jy.match(/^([-+]?\d{2}):(\d{2}),(\d)$/);if(I2){var Js=parseInt(I2[1]);
var JW=parseInt(I2[2]);var JF=parseInt(I2[3]);var Jr=Js+JW/60;var Jo="GMT\\s*"+(Js<0?"-":"\\+")+"\\s*"+(Math.abs(Js)<10?"0?":"")+Math.abs(Js);if(JW!=0){Jo+=":"+JW}var Jq=new RegExp(Jo);for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value==Jy||JP.options[JQ].text==Jy||JP.options[JQ].value==Jr||JP.options[JQ].text==Jr||Jq.exec(JP.options[JQ].value)||Jq.exec(JP.options[JQ].text)){JP.selectedIndex=JQ;
break}}}}else{Df(JP,Jy)}break;case"ccnum":var I3=false;if(4==Jg||3==Jg){I3=true}if(!I3){var Jt=BD(JE.ccnum);Df(JP,Jt);break}case"cccsc":Df(JP,BD(JE.cccsc),true);break;case"zip":var Jy=BD(JE.zip);if(Jy.match(/^\d{5}-?(?:\d{4})?$/)){if(Jg>0&&Jg<Jy.length){if(Jg==9&&Jy.length==10){Jy=Jy.substring(0,5)+Jy.substring(6,10)
}else{if(Jg==4){Jy=Jy.length>=9?Jy.substring(Jy.length-4):""}else{Jy=Jy.substring(0,5)}}}}else{if(Jg>0&&Jg<Jy.length){Jy=Jy.replace(/[^A-Za-z0-9]/g,"")}}Df(JP,Jy);break;case"city":var Jy=BD(JE.city);if(JP.type=="select-one"){if(Jy==""){break}Jy=Jy.toLowerCase();for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value.toLowerCase()==Jy||JP.options[JQ].text.toLowerCase()==Jy){JP.selectedIndex=JQ;
break}}}else{Df(JP,Jy)}break;case"ssn":var JX=BD(JE.ssn);if(4==Jg){var JU=JX.replace(/\D/g,"");if(JU.length==9){JX=JU.substring(5,9)}else{break}}else{if(Jg>0&&Jg<11){JX=JX.replace(/-/g,"")}}Df(JP,JX);break;case"name":var Jy=BD(JE.firstname)+(JE.firstname!=""&&JE.lastname!=""?" ":"")+BD(JE.lastname);Df(JP,Jy);
break;case"ssn1":var JX=BD(JE.ssn);var JU=JX.replace(/\D/g,"");if(JU.length==9){var Jy=JU.substring(0,3);Df(JP,Jy)}break;case"ssn2":var JX=BD(JE.ssn);var JU=JX.replace(/\D/g,"");if(JU.length==9){var Jy=JU.substring(3,5);Df(JP,Jy)}break;case"ssn3":var JX=BD(JE.ssn);var JU=JX.replace(/\D/g,"");if(JU.length==9){var Jy=JU.substring(5,9);
Df(JP,Jy)}break;case"birthmonth":if(JE.birthday==""){break}var Jy=BD(JE.birthday).substring(5,7);if(JP.type=="select-one"){var Jr=Jy;if(Jr.charAt(0)=="0"){Jr=Jr.substring(1)}var Jo=Gb("month"+Jr).toLowerCase();var Jl=Gb("mon"+Jr).toLowerCase();for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value.toLowerCase().indexOf(Jo)!=-1||JP.options[JQ].value.toLowerCase().indexOf(Jl)!=-1||JP.options[JQ].text.toLowerCase().indexOf(Jo)!=-1||JP.options[JQ].text.toLowerCase().indexOf(Jl)!=-1){JP.selectedIndex=JQ;
break}}if(JQ==JP.options.length){for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value==Jy||JP.options[JQ].value==Jr||JP.options[JQ].text==Jy||JP.options[JQ].text==Jr){JP.selectedIndex=JQ;break}}}}else{Df(JP,Jy)}break;case"birthday":if(JE.birthday==""){break}var Jy=BD(JE.birthday).substring(8,10);
if(JP.type=="select-one"){var Jr=Jy;if(Jr.charAt(0)=="0"){Jr=Jr.substring(1)}for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value==Jy||JP.options[JQ].value==Jr||JP.options[JQ].text==Jy||JP.options[JQ].text==Jr){JP.selectedIndex=JQ;break}}}else{Df(JP,Jy)}break;case"birthyear":if(JE.birthday==""){break
}var Ja=BD(JE.birthday);var Jy=Ja.substring(0,4);var Jr=Ja.substring(2,4);if(JP.type=="select-one"){for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value==Jy||JP.options[JQ].value==Jr||JP.options[JQ].text==Jy||JP.options[JQ].text==Jr){JP.selectedIndex=JQ;break}}}else{if(2==Jg){Jy=Jr}Df(JP,Jy)
}break;case"birthdate":var Ja=BD(JE.birthday);var Jb="birthday";var I4="birthmonth";if(JE&&BD(JE.country)=="US"){Jb="birthmonth";I4="birthday"}if(Ja.length>=4){if(4==Jg){Ja=Ja.substring(0,4)}else{if(2==Jg){Ja=Ja.substring(2,4)}else{if(BD(JE.country)=="US"){Ja=Ja.substring(5,7)+"/"+Ja.substring(8,10)+"/"+Ja.substring(0,4)
}else{Ja=Ja.substring(8,10)+"/"+Ja.substring(5,7)+"/"+Ja.substring(0,4)}}}Df(JP,Ja)}break;case"address":case"fulladdress":var JZ=JP.type=="textarea"?"\n":" ";var I1=new Array(JE.address1,JE.address2,JE.address3);if(JY=="fulladdress"){I1[I1.length]=JE.city;I1[I1.length]=JE.county;I1[I1.length]=JE.state
}var Jy="";for(var JQ=0;JQ<I1.length;JQ++){if(I1[JQ]!=""){Jy+=(Jy!=""?JZ:"")+BD(I1[JQ])}}Df(JP,Jy);break;case"title":var Jy=BD(JE.title);if(JP.type=="select-one"){if(Jy==""){break}var JD="",JS="";for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value.toLowerCase()==Jy||JP.options[JQ].value.toLowerCase().indexOf(Jy)!=-1||JP.options[JQ].text.toLowerCase()==Jy||JP.options[JQ].text.toLowerCase().indexOf(Jy)!=-1){if(""==JD&&""==JS){}else{if((JP.options[JQ].value.length<=JD.length)&&(JP.options[JQ].text.length<=JS.length)){if((JP.options[JQ].value.length<JD.length)||(JP.options[JQ].text.length<JS.length)){}else{continue
}}else{continue}}JD=JP.options[JQ].value;JS=JP.options[JQ].text;JP.selectedIndex=JQ}}}else{Jy=Jy.substring(0,1).toUpperCase()+Jy.substring(1);Df(JP,Jy)}break;case"state":var Jy=BD(JE.state);if(JP.type=="select-one"){var Jy=Jy.toLowerCase();var Jr=BD(JE.state_name).toLowerCase();if(Jy==""&&Jr==""){break
}for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value.toLowerCase()==Jy||JP.options[JQ].value.toLowerCase()==Jr||JP.options[JQ].text.toLowerCase()==Jy||JP.options[JQ].text.toLowerCase()==Jr){JP.selectedIndex=JQ;break}}if(JQ==JP.options.length){for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value.toLowerCase().indexOf(Jr)!=-1||JP.options[JQ].text.toLowerCase().indexOf(Jr)!=-1){JP.selectedIndex=JQ;
break}}if(JQ==JP.options.length){for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value.toLowerCase().indexOf(Jy)!=-1||JP.options[JQ].text.toLowerCase().indexOf(Jy)!=-1){JP.selectedIndex=JQ;break}}if(JQ==JP.options.length&&Jy.length==2){var Jo=Jy.charAt(0)+"."+Jy.charAt(1)+".";for(var JQ=0;JQ<JP.options.length;
JQ++){if(JP.options[JQ].value.toLowerCase().indexOf(Jo)!=-1||JP.options[JQ].text.toLowerCase().indexOf(Jo)!=-1){JP.selectedIndex=JQ;break}}}}}}else{Df(JP,Jy)}break;case"country":var Jy=BD(JE.country_name);if(JP.type=="select-one"){var Jy=Jy.toLowerCase();var Jr=BD(JE.country).toLowerCase();var Jo=BD(JE.country_cc3l).toLowerCase();
if(Jy==""&&Jr==""&&Jo==""){break}for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value.toLowerCase()==Jy||JP.options[JQ].value.toLowerCase()==Jr||JP.options[JQ].value.toLowerCase()==Jo||JP.options[JQ].text.toLowerCase()==Jy||JP.options[JQ].text.toLowerCase()==Jr||JP.options[JQ].text.toLowerCase()==Jo){JP.selectedIndex=JQ;
break}}}else{if(Jg==3){Df(JP,BD(JE.country_cc3l))}else{if(Jg==2){Df(JP,BD(JE.country))}else{Df(JP,Jy)}}}break;case"cctype":var Jy=HM(BD(JE.ccnum));if(Jy!="UNK"){if(JP.type=="select-one"){var Jp=-1;for(var JQ=0;JQ<JP.options.length;JQ++){var JK=JP.options[JQ].value.toUpperCase();var I6=JP.options[JQ].text.toUpperCase();
if(JK==Jy||I6==Jy){JP.selectedIndex=JQ;break}if(Gs(Jy,JK)||Gs(Jy,I6)){Jp=JQ}}if(JQ==JP.options.length&&Jp!=-1){JP.selectedIndex=Jp}}else{if(JP.type=="radio"){var JK=JP.value.toUpperCase();var I6=JP.id.toUpperCase();var I9=false;if(Gs(Jy,JK)||Gs(Jy,I6)){I9=true}if(!I9){var Jd=JP.parentNode;if(Jd&&Jd.childNodes){for(var JQ=0;
JQ<Jd.childNodes.length;JQ++){if(Jd.childNodes[JQ]==JP){break}}if(JQ<Jd.childNodes.length-1){var t=Jd.childNodes[JQ+1];if(t.nodeType==3&&Gs(Jy,t.nodeValue)){I9=true}else{if((t.nodeType==3&&JQ<Jd.childNodes.length-2)||t.nodeType==1){var Jc=t.nodeType==1?Jd.childNodes[JQ+1]:Jd.childNodes[JQ+2];if(Jc.nodeType==1&&Jc.tagName=="LABEL"&&Jc.htmlFor==JP.id){var Je=IA(Jc,JP);
if(Gs(Jy,Je)){I9=true}}else{if(Jc.nodeType==1&&Jc.tagName=="IMG"&&typeof(Jc.alt)=="string"){var Je=Jc.alt;if(Gs(Jy,Je)){I9=true}}}}}}}}if(I9){JP.checked=true;JP.click()}}else{Df(JP,Jy)}}}break;case"ccexpmonth":if(JE.ccexp==""){break}var Jy=BD(JE.ccexp).substring(5,7);if(JP.type=="select-one"){var Jr=Jy;
if(Jr.charAt(0)=="0"){Jr=Jr.substring(1)}var Jo=Gb("month"+Jr).toLowerCase();var Jl=Gb("mon"+Jr).toLowerCase();for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value.toLowerCase().indexOf(Jo)!=-1||JP.options[JQ].value.toLowerCase().indexOf(Jl)!=-1||JP.options[JQ].text.toLowerCase().indexOf(Jo)!=-1||JP.options[JQ].text.toLowerCase().indexOf(Jl)!=-1){JP.selectedIndex=JQ;
break}}if(JQ==JP.options.length){for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value==Jy||JP.options[JQ].value==Jr||JP.options[JQ].text==Jy||JP.options[JQ].text==Jr){JP.selectedIndex=JQ;break}}}}else{Df(JP,Jy)}break;case"ccexpyear":if(JE.ccexp==""){break}var Jw=BD(JE.ccexp);var Jy=Jw.substring(0,4);
if(JP.type=="select-one"){var Jr=Jw.substring(2,4);for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value==Jy||JP.options[JQ].value==Jr||JP.options[JQ].text==Jy||JP.options[JQ].text==Jr){JP.selectedIndex=JQ;break}}}else{Df(JP,Jy,false,true)}break;case"ccexp":var Jw=BD(JE.ccexp);var Jy=Jw.length==10?Jw.substring(5,7)+"/"+Jw.substring(2,4):"";
if(JP.type=="select-one"){if(Jy==""){break}var Jr=Jw.length==10?Jw.substring(5,7)+"/"+Jw.substring(0,4):"";var Jo=Jw.length==10?Jw.substring(5,7)+Jw.substring(2,4):"";var Jl=Jw.length==10?Jw.substring(5,7)+Jw.substring(0,4):"";for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value==Jy||JP.options[JQ].value==Jr||JP.options[JQ].value==Jo||JP.options[JQ].value==Jl||JP.options[JQ].text==Jy||JP.options[JQ].text==Jr||JP.options[JQ].text==Jo||JP.options[JQ].text==Jl){JP.selectedIndex=JQ;
break}}}else{if(Jw.length==10){if(4==Jg){Jy=Jw.substring(5,7)+Jw.substring(2,4)}}Df(JP,Jy)}break;case"ccstartmonth":if(JE.ccstart==""){break}var Jy=BD(JE.ccstart).substring(5,7);if(JP.type=="select-one"){var Jr=Jy;if(Jr.charAt(0)=="0"){Jr=Jr.substring(1)}var Jo=Gb("month"+Jr).toLowerCase();var Jl=Gb("mon"+Jr).toLowerCase();
for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value.toLowerCase().indexOf(Jo)!=-1||JP.options[JQ].value.toLowerCase().indexOf(Jl)!=-1||JP.options[JQ].text.toLowerCase().indexOf(Jo)!=-1||JP.options[JQ].text.toLowerCase().indexOf(Jl)!=-1){JP.selectedIndex=JQ;break}}if(JQ==JP.options.length){for(var JQ=0;
JQ<JP.options.length;JQ++){if(JP.options[JQ].value==Jy||JP.options[JQ].value==Jr||JP.options[JQ].text==Jy||JP.options[JQ].text==Jr){JP.selectedIndex=JQ;break}}}}else{Df(JP,Jy)}break;case"ccstartyear":if(JE.ccstart==""){break}var JO=BD(JE.ccstart);var Jy=JO.substring(0,4);if(JP.type=="select-one"){var Jr=JO.substring(2,4);
for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value==Jy||JP.options[JQ].value==Jr||JP.options[JQ].text==Jy||JP.options[JQ].text==Jr){JP.selectedIndex=JQ;break}}}else{Df(JP,Jy,false,true)}break;case"ccstart":var JO=BD(JE.ccstart);var Jy=JO.length==10?JO.substring(5,7)+"/"+JO.substring(2,4):"";
if(JP.type=="select-one"){if(Jy==""){break}var Jr=JO.length==10?JO.substring(5,7)+"/"+JO.substring(0,4):"";var Jo=JO.length==10?JO.substring(5,7)+JO.substring(2,4):"";var Jl=JO.length==10?JO.substring(5,7)+JO.substring(0,4):"";for(var JQ=0;JQ<JP.options.length;JQ++){if(JP.options[JQ].value==Jy||JP.options[JQ].value==Jr||JP.options[JQ].value==Jo||JP.options[JQ].value==Jl||JP.options[JQ].text==Jy||JP.options[JQ].text==Jr||JP.options[JQ].text==Jo||JP.options[JQ].text==Jl){JP.selectedIndex=JQ;
break}}}else{if(JO.length==10){if(4==Jg){Jy=JO.substring(5,7)+JO.substring(2,4)}}Df(JP,Jy)}break;case"ccnum1":var Jy=BD(JE.ccnum).substring(0,4);Df(JP,Jy);break;case"ccnum2":var Jy=BD(JE.ccnum).substring(4,8);Df(JP,Jy);break;case"ccnum3":var Jy=BD(JE.ccnum).substring(8,12);Df(JP,Jy);break;case"ccnum4":var Jy=BD(JE.ccnum).substring(12);
Df(JP,Jy);break;case"amexccnum2":var Jy=BD(JE.ccnum).substring(4,10);Df(JP,Jy);break;case"amexccnum3":var Jy=BD(JE.ccnum).substring(10,15);Df(JP,Jy);break;case"middlename":var Jy=BD(JE.middlename);var Jf=Jy.substring(0,1);if(1==Jg||2==Jg){Df(JP,Jf)}else{Df(JP,Jy)}break;case"middleinitial":var Jy=BD(JE.middlename).substring(0,1);
Df(JP,Jy);break;case"mobilephone1":case"mobilephone2":case"mobilephone3":case"evephone1":case"evephone2":case"evephone3":case"phone1":case"phone2":case"phone3":case"fax1":case"fax2":case"fax3":var Ji=JY.substring(0,JY.length-1);var Jv=JY.substring(JY.length-1);var JB=JE.phone;if("evephone"==Ji){JB=JE.evephone
}if("mobilephone"==Ji){JB=JE.mobilephone}if("fax"==Ji){JB=JE.fax}var Jy=BD(JB);if(Jy.length<=3){Jy=""}var JU=Jy.replace(/\D/g,"");if(JU.length==10&&JU.charAt(0)>="2"&&JU.charAt(3)>="2"){JU="1"+JU}if(JU.length==11&&JU.charAt(0)=="1"&&JU.charAt(1)>="2"&&JU.charAt(4)>="2"){switch(Jv){case"1":Df(JP,JU.substring(1,4));
break;case"2":Df(JP,JU.substring(4,7));break;case"3":Df(JP,JU.substring(7,11));break}}else{Df(JP,Jy,true)}break;case"mobilephone23":case"evephone23":case"phone23":case"fax23":var Ji=JY.substring(0,JY.length-2);var JB=JE.phone;if("evephone"==Ji){JB=JE.evephone}if("fax"==Ji){JB=JE.fax}if("mobilephone"==Ji){JB=JE.mobilephone
}var Jy=BD(JB);if(Jy.length<=3){Jy=""}var JU=Jy.replace(/\D/g,"");if(JU.length==10&&JU.charAt(0)>="2"&&JU.charAt(3)>="2"){JU="1"+JU}if(JU.length==11&&JU.charAt(0)=="1"&&JU.charAt(1)>="2"&&JU.charAt(4)>="2"){var Jn=(I8<=0||I8>=8)&&(Jg<=0||Jg>=8)?true:false;Df(JP,JU.substring(4,7)+(Jn?"-":"")+JU.substring(7,11),true)
}else{Df(JP,Jy,true)}break;case"mobilephone":case"evephone":case"phone":case"fax":var Ji=JY;var JB=JE.phone;var Jm=JE.countryphone;if("evephone"==Ji){JB=JE.evephone;Jm=JE.countryevephone}if("fax"==Ji){JB=JE.fax;Jm=JE.countryfaxphone}if("mobilephone"==Ji){JB=JE.mobilephone;Jm=JE.countrymobphone}var Jy=BD(JB);
if(Jy.length<=3){Jy=""}if(Jy.length==11&&Jy.match(/^\d+$/)&&Jy.charAt(0)=="1"&&Jy.charAt(1)>="2"&&Jy.charAt(4)>="2"){Jy=Jy.substring(1);if(Jg<=0||Jg>=12){Jy=Jy.substring(0,3)+"-"+Jy.substring(3,6)+"-"+Jy.substring(6,10)}}else{if(Jy.length>=2){var Jj=BD(Jm);var Jh=Aa(Jj);if(Jh&&Jy.indexOf(Jh)==0&&Jy.charAt(Jh.length)=="0"){Jy=Jy.substring(Jh.length)
}}}Df(JP,Jy,true);break;case"zip1":var Jy=BD(JE.zip);var JU=Jy.replace(/\D/g,"");if(JU.length==5||JU.length==9){Jy=JU.substring(0,5)}else{var JV=Jy.replace(/[^A-Za-z0-9]/g,"");if(JV.match(/^(?:[A-Za-z]\d){3}$/)){Jy=JV.substring(0,3)}else{if(JV.match(/^[A-Za-z]{1,2}\d[A-Za-z0-9]?\d[A-Za-z]{2}$/)){Jy=JV.substring(0,JV.length-3)
}else{if(JV.length<Jy.length){var JR=Jy.split(/[^A-Za-z0-9]+/);Jy=JR[0]}}}}Df(JP,Jy);break;case"zip2":var Jy=BD(JE.zip);var JU=Jy.replace(/\D/g,"");var JA=false;if(JU.length==5){Jy="";JA=true}else{if(JU.length==9){Jy=JU.substring(5,9)}else{var JV=Jy.replace(/[^A-Za-z0-9]/g,"");if(JV.match(/^(?:[A-Za-z]\d){3}$/)){Jy=JV.substring(3,6)
}else{if(JV.match(/^[A-Za-z]{1,2}\d[A-Za-z0-9]?\d[A-Za-z]{2}$/)){Jy=JV.substring(JV.length-3)}else{if(JV.length<Jy.length){var JR=Jy.split(/[^A-Za-z0-9]+/);Jy=JR[1]}}}}}Df(JP,Jy,false,false,JA);break;case"gender":var Jy=BD(JE.gender).toUpperCase();if(Jy!=""){if(JP.type=="select-one"){for(var JQ=0;JQ<JP.options.length;
JQ++){if(JP.options[JQ].value.toUpperCase().indexOf(Jy)==0||JP.options[JQ].text.toUpperCase().indexOf(Jy)==0){JP.selectedIndex=JQ;break}}}else{if(JP.type=="radio"){if(JP.value.toUpperCase().indexOf(Jy)==0){JP.checked=true}else{var Jd=JP.parentNode;if(Jd&&Jd.childNodes){for(var JQ=0;JQ<Jd.childNodes.length;
JQ++){if(Jd.childNodes[JQ]==JP){break}}if(JQ<Jd.childNodes.length-1){var t=Jd.childNodes[JQ+1];if(t.nodeType==3&&t.nodeValue.toUpperCase().indexOf(Jy)==0){JP.checked=true}else{if((t.nodeType==3&&JQ<Jd.childNodes.length-2)||t.nodeType==1){var Jc=t.nodeType==1?Jd.childNodes[JQ+1]:Jd.childNodes[JQ+2];if(Jc.nodeType==1&&Jc.tagName=="LABEL"&&Jc.htmlFor==JP.id){var Je=IA(Jc,JP);
if(Je.toUpperCase().indexOf(Jy)==0){JP.checked=true}}else{if(Jc.nodeType==1&&Jc.tagName=="IMG"&&typeof(Jc.alt)=="string"){var Je=Jc.alt;if(Je.toUpperCase().indexOf(Jy)==0){JP.checked=true}}}}}}}}}else{Df(JP,Jy)}}}break;case"age":var Jz=BD(JE.birthday);if(Jz!=""){var JL=parseInt(Jz.substring(0,4));var I0=parseInt(Jz.substring(5,7));
var Ja=parseInt(Jz.substring(8,10));var JC=new Date();var JM=JC.getFullYear();var Ju=JC.getMonth();var JH=JC.getDate();var I5=JM-JL;if(Ju<I0||(Ju==I0&&JH<Ja)){I5--}if(JP.type=="select-one"){for(var JQ=0;JQ<JP.options.length;JQ++){var Jx=JP.options[JQ].text;var z=-1;var JN=-1;var I2=Jx.match(/(\d+)\D+(\d+)/);
if(I2){z=parseInt(I2[1]);JN=parseInt(I2[2])}else{I2=Jx.match(/^\d+/);if(I2){var JG=parseInt(I2[0]);if(JQ<JP.options.length/2){z=0;JN=JG}else{z=JG;JN=99999}}else{I2=Jx.match(/\d+$/);if(I2){var JG=parseInt(I2[0]);if(JQ<JP.options.length/2){z=0;JN=JG-1}else{z=JG+1;JN=99999}}}}if(z!=-1&&JN!=-1&&I5>=z&&I5<=JN){JP.selectedIndex=JQ;
break}}}else{Df(JP,I5)}}break;case"housenumber":case"housenumbername":var Jy=BD(JE.address1);var I2=Jy.match(/^\d+/);if(!I2){Jy=BD(JE.address2);I2=Jy.match(/^\d+/)}if(!I2){Jy=BD(JE.address3);I2=Jy.match(/^\d+/)}if(I2){Df(JP,I2[0]);break}else{if(JY=="housenumber"){break}}case"housename":var Jy=BD(JE.address1);
Jy=Jy.replace(/^\d+\s*/,"");Df(JP,Jy);break}if(JP.value!=Jk){E7(JP)}}catch(JT){HX("Failure with filling form field: "+JT+" ln: "+JT.lineNumber)}}function HM(e){var t="UNK";if((e.substring(0,2)=="34"||e.substring(0,2)=="37")&&e.length==15){t="AMEX"}else{if((e.substring(0,4)=="6011"||e.substring(0,2)=="65")&&e.length==16){t="DISC"
}else{if((e.substring(0,2)=="51"||e.substring(0,2)=="52"||e.substring(0,2)=="53"||e.substring(0,2)=="54"||e.substring(0,2)=="55")&&e.length==16){t="MC"}else{if((e.substring(0,6)=="417500"||e.substring(0,4)=="4917"||e.substring(0,4)=="4913"||e.substring(0,4)=="4508"||e.substring(0,4)=="4844")&&e.length==16){t="ELECTRON"
}else{if(e.substring(0,1)=="4"&&e.length==16){t="VISA"}else{if((e.substring(0,4)=="5018"||e.substring(0,4)=="5020"||e.substring(0,4)=="5038"||e.substring(0,4)=="6304"||e.substring(0,4)=="6759"||e.substring(0,4)=="6761")&&e.length>=12&&e.length<=19){t="MAESTRO"}else{if((e.substring(0,4)=="6334"||e.substring(0,4)=="6767")&&(e.length==16||e.length==18||e.length==19)){t="SOLO"
}}}}}}}return t}function Gs(t,e){t=t.toUpperCase();e=e.toUpperCase();if(t=="AMEX"&&e.indexOf("BANAMEX")!=-1){return false}if(e.indexOf(t)!=-1){return true}else{switch(t){case"AMEX":return e.indexOf("AMERICAN")!=-1||e.indexOf("AMX")!=-1;case"DISC":return e.indexOf("DIS")!=-1;case"MC":return e.indexOf("MASTER")!=-1;
case"VISA":return e.indexOf("VSA")!=-1;default:return false}}}function Df(e,I2,I0,I1,z){if(I2!=""||z){if(typeof(e.maxLength)!="undefined"){var t=parseInt(e.maxLength);if(t>0&&I2.length>t){if(I0){return}if(I1){I2=I2.substring(I2.length-t)}else{I2=I2.substring(0,t)}}}e.value=I2}}var CD=false;function IA(I0,t,e,I4){if(!e){CD=false
}if(I0==t){CD=true;return""}if(I0.nodeType==3){return BO(I0.nodeValue).length>2?I0.nodeValue:""}var I2=new Array(),I1=0;var I5=typeof(I0.tagName)=="string"?I0.tagName:"";if(I0.lp_too_many){return""}var I3=I0&&I0.style&&!GT(I0,true);I4=false;if(I5=="LABEL"){I4=true}var I1=0;if(I5!="OPTION"&&I5!="SCRIPT"&&I5!="TEXTAREA"&&!I3){while(typeof(I0.childNodes[I1])!="undefined"){I2[I2.length]=IA(I0.childNodes[I1],t,true,I4);
if(CD){break}if(I1++>50){I0.lp_too_many=1;return""}}}var z="|";if(typeof(I4)!="undefined"&&I4){z=""}return I2.join(z)}function Aa(e){var t=new Array();t.AND=376;t.ARE=971;t.AFG=93;t.ATG=1;t.AIA=1;t.ALB=355;t.ARM=374;t.ANT=599;t.AGO=244;t.ATA=672;t.ARG=54;t.ASM=1;t.AUT=43;t.AUS=61;t.ABW=297;t.ALA=358;
t.AZE=994;t.BIH=387;t.BRB=1;t.BGD=880;t.BEL=32;t.BFA=226;t.BGR=359;t.BHR=973;t.BDI=257;t.BEN=229;t.BLM=590;t.BMU=1;t.BRN=673;t.BOL=591;t.BRA=55;t.BHS=1;t.BTN=975;t.BVT=47;t.BWA=267;t.BLR=375;t.BLZ=501;t.CAN=1;t.CCK=61;t.COD=243;t.CAF=236;t.COG=242;t.CHE=41;t.CIV=225;t.COK=682;t.CHL=56;t.CMR=237;t.CHN=86;
t.COL=57;t.CRI=506;t.CUB=53;t.CPV=238;t.CXR=61;t.CYP=357;t.CZE=420;t.DEU=49;t.DJI=253;t.DNK=45;t.DMA=1;t.DOM=1;t.DZA=213;t.ECU=593;t.EST=372;t.EGY=20;t.ESH=212;t.ERI=291;t.ESP=34;t.ETH=251;t.FIN=358;t.FJI=679;t.FLK=500;t.FSM=691;t.FRO=298;t.FRA=33;t.GAB=241;t.GBR=44;t.GRD=1;t.GEO=995;t.GUF=594;t.GGY=44;
t.GHA=233;t.GIB=350;t.GRL=299;t.GMB=220;t.GIN=224;t.GLP=590;t.GNQ=240;t.GRC=30;t.SGS=995;t.GTM=502;t.GUM=1;t.GNB=245;t.GUY=592;t.HKG=852;t.HMD=672;t.HND=504;t.HRV=385;t.HTI=509;t.HUN=36;t.IDN=62;t.IRL=353;t.ISR=972;t.IMM=44;t.IND=91;t.IOT=246;t.IRQ=964;t.IRN=98;t.ISL=354;t.ITA=39;t.JEY=44;t.JAM=1;t.JOR=962;
t.JPN=81;t.KEN=254;t.KGZ=996;t.KHM=855;t.KIR=686;t.COM=269;t.KNA=1;t.PRK=850;t.KOR=82;t.KWT=965;t.CYM=1;t.KAZ=7;t.LAO=856;t.LBN=961;t.LCA=1;t.LIE=423;t.LKA=94;t.LBR=231;t.LSO=266;t.LTU=370;t.LUX=352;t.LVA=371;t.LBY=218;t.MAR=212;t.MCO=377;t.MDA=373;t.MNE=382;t.MAF=590;t.MDG=261;t.MHL=692;t.MKD=389;t.MLI=223;
t.MMR=95;t.MNG=976;t.MAC=853;t.MNP=1;t.MTQ=596;t.MRT=222;t.MSR=1;t.MLT=356;t.MUS=230;t.MDV=960;t.MWI=265;t.MEX=52;t.MYS=60;t.MOZ=258;t.NAM=264;t.NCL=687;t.NER=227;t.NFK=672;t.NGA=234;t.NIC=505;t.NLD=31;t.NOR=47;t.NPL=977;t.NRU=674;t.NIU=683;t.NZL=64;t.OMN=968;t.PAN=507;t.PER=51;t.PYF=689;t.PNG=675;t.PHL=63;
t.PAK=92;t.POL=48;t.SPM=508;t.PCN=872;t.PRI=1;t.PSE=970;t.PRT=351;t.PLW=680;t.PRY=595;t.QAT=974;t.REU=262;t.ROU=40;t.SRB=381;t.RUS=7;t.RWA=250;t.SAU=966;t.SLB=677;t.SYC=248;t.SDN=249;t.SWE=46;t.SGP=65;t.SHN=290;t.SVN=386;t.SJM=47;t.SVK=421;t.SLE=232;t.SMR=378;t.SEN=221;t.SOM=252;t.SUR=597;t.STP=239;t.SLV=503;
t.SYR=963;t.SWZ=268;t.TCA=1;t.TCD=235;t.ATF=596;t.TGO=228;t.THA=66;t.TJK=992;t.TKL=690;t.TLS=670;t.TKM=993;t.TUN=216;t.TON=676;t.TUR=90;t.TTO=1;t.TUV=688;t.TWN=886;t.TZA=255;t.UKR=380;t.UGA=256;t.UMI=1;t.USA=1;t.URY=598;t.UZB=998;t.VAT=379;t.VCT=1;t.VEN=58;t.VGB=1;t.VIR=1;t.VNM=84;t.VUT=678;t.WLF=681;
t.WSM=685;t.YEM=967;t.MYT=262;t.YUG=381;t.ZAF=27;t.ZMB=260;t.ZWE=263;return typeof(t[e])!="undefined"?(""+t[e]):null}this.lpchooseprofilecc_window_load=function(I5,I4){I5.title=LP.lpgs("Choose Profile and Credit Card");LP.sr(I5,"profilecaption","label","Profile");LP.sr(I5,"cccaption","label","Credit Card");
LP.sr(I5,"alwayschooseprofilecc","label","Always Choose Profile and Credit Card");var t=LP.lpprefsHasUserValue("profileffid")?LP.lpprefsGetIntPref("profileffid"):0;var I1=LP.lpprefsHasUserValue("ccffid")?LP.lpprefsGetIntPref("ccffid"):0;var I2=false;var I7=false;var I3=0;var e=0;for(var I0=0;I0<d.length;
I0++){var z=d[I0];if(z.profiletype==0){var I6=I5.createElement("radio");I6.setAttribute("label",z.profilename);I6.setAttribute("value",z.ffid);if(z.ffid==t){I6.setAttribute("selected",true);I2=true}I5.getElementById("profilegroup").appendChild(I6);I3++}if(z.ccnum!=""){var I6=I5.createElement("radio");
I6.setAttribute("label",z.profilename);I6.setAttribute("value",z.ffid);if(z.ffid==I1){I6.setAttribute("selected",true);I7=true}I5.getElementById("ccgroup").appendChild(I6);e++}}if(I3<5){I5.getElementById("profilebox").setAttribute("height",I3*25)}if(!I2){I5.getElementById("profilegroup").childNodes.item(0).setAttribute("selected",true)
}if(e<5){I5.getElementById("ccbox").setAttribute("height",e*25)}if(!I7){I5.getElementById("ccgroup").childNodes.item(0).setAttribute("selected",true)}if(LP.lpprefsHasUserValue("alwayschooseprofilecc")&&LP.lpprefsGetBoolPref("alwayschooseprofilecc")){I5.getElementById("alwayschooseprofilecc").setAttribute("checked",true)
}};this.lpchooseprofilecc_accept_click=function(I0,t){var z=I0.getElementById("profilegroup").selectedItem.value;var e=I0.getElementById("ccgroup").selectedItem.value;LP.lpprefsSetIntPref("profileffid",z);LP.lpprefsSetIntPref("ccffid",e);LP.lpprefsSetBoolPref("alwayschooseprofilecc",I0.getElementById("alwayschooseprofilecc").checked);
LP.flush_prefs();LP.lp_fillFormsHelper(z,false,e);return true};this.lpchooseprofilecc_cancel_click=function(){return true};this.lplogincheck=function(e){LP.mostRecent().setTimeout((function(){Dd(e)}),100)};var Bn=0;function Dd(I3,I2,e,I1){var z=(new Date()).getTime();if((z-Bn)<1000){return}Bn=z;EP();
AL();CC();s();C0();Gq(true,I3);if(!DH&&!h){LP.lp_handle_buttons_all("loggingin")}var t="version="+LP.en(DF)+"&method=ff&hp="+(LP.IsHomePage()?"1":"0");t+=I2?("&sessionid="+LP.en(I2)):"";t+=e?("&wxusername="+LP.en(e)):"";t+=I1?("&wxhash="+LP.en(I1)):"";t+="&uuid="+LP.en(LP.getuuid());Bf("logincheckpostdata",t);
var I0=0;if(I0){EV="";Ai="";Ae="";Ft("");LP.mostRecent().setTimeout(function(){AR("logincheck")},2000);return}LP.lpMakeRequest(LP.lp_base+"login_check.php",t,HK,function(){FJ(I3,"makerequest")},I3)}var H6=0;function FJ(z,t){var e=(new Date()).getTime();if((e-H6)<1000){return}H6=e;if(!DH&&!h){LP.lp_handle_buttons_all("off")
}if(!Bc(z)){if(!h){if(z=="httptest"&&GO){LP.lpOpenLogin()}else{if(t=="noexistingsession"||t=="nokeyfileA"||t=="nokeyfileB"){}else{if(t=="invalidresponse"||t=="exception"){j("LoginError",false,true)}else{if(t=="makerequest"){j("ErrorLoginMsg")}else{j("LoginError",false,true)}}}}}}}this.lplogin=function(I0,t,z,e){LP.mostRecent().setTimeout((function(){Hi(I0,t,z,e);
t="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}),100)};function Hi(I2,z,I1,e){if(Dw){AR("login",{data0:I2,data1:z})}if(typeof(U)=="function"){U(I2+"_lp.act.xml");U(I2+"_lps.act.xml")
}EP();AL();CC();s();if(!e){C0()}EV=I2.toLowerCase().replace(/\s*/g,"");Ai=CB(EV);Ae=CB(CB(EV+z)+z);GK();Ft(GS(CB(EV+z)));z="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";z="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
C3(Ai+"_lp.key",Ai+"_lp.act.key");C3(Ai+"_lp.act.key",Ai+"_lp.act.lps");C3(Ai+"_lp.act.lps",Ai+"_lpall.lps");if(!h){Gq(true,I1)}if(!DH&&!h){LP.lp_handle_buttons_all("loggingin")}var t="xml=2&username="+LP.en(EV)+"&method=ff&hash="+Ae+"&version="+LP.en(DF);t+="&hp="+(LP.IsHomePage()?"1":"0");t+="&encrypted_username="+LP.en(Ds(EV));
t+="&uuid="+LP.en(LP.getuuid());if(LP.lpdolostpwotp&&(!LP.lpprefsHasUserValue("StoreLostPWOTP")||LP.lpprefsGetBoolPref("StoreLostPWOTP"))){t+="&lostpwotphash="+LP.en(LP.GetOTPHash())}else{LP.DeleteOTP()}CC();Bf("postdata",t);Bf("from",I1);AL();GJ("postdata",t);GJ("from",I1);s();Id("postdata",t);Id("from",I1);
if(!e){C0()}Fk("postdata",t);Fk("from",I1);t+="&otp=";t+="&sesameotp=";t+="&gridresponse=";t+="&multifactorresponse=";var I0=0;if(I0){if(I1=="namedpipes"){Eu="";DH=true;h=false;BJ=false;A2=false;FE="";BP=-1;H7=-1;BX=0;LP.lp_handle_buttons_all("in");Af();Ir();return}EV="";Ai="";Ae="";Ft("");LP.mostRecent().setTimeout(function(){AR("logincheck")
},2000);return}LP.lpMakeRequest(LP.lp_base+"login.php",t,Bg,function(){Hz(I1)},I1)}var H2=0;function Hz(t){var e=(new Date()).getTime();if((e-H2)<1000){return}H2=e;if(!DH&&!h){LP.lp_handle_buttons_all("off")}Gq(false,t)}function Gq(Jb,Jc){var Jg=0;if(Jg){return}if(Hk==""||EV==""||Ai==""){if(Jc=="frompipes"){return
}var Ja=A4();if(!Ja){return}var z=Ja.username;var e=Ja.password;EV=z.toLowerCase().replace(/\s*/g,"");Ai=CB(EV);Ae=CB(CB(EV+e)+e);GK();Ft(GS(CB(EV+e)));e="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
e="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";Ja.password="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
Ja.password="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}if(Jb){if(h){return}var Jh=Cd(EV);if(!Jh){return}Jh=HT(Ai,true,false);if(!Jh){return}Jh=Jh.substring(0,200);if(Jh.indexOf("type=sesameoffline\ndata=")>=0||Jh.indexOf("type=trueapioffline\ndata=")>=0||Jh.indexOf("type=yubikeyoffline\ndata=")>=0||Jh.indexOf("type=yubikeyofflinemulti\nkeys=")>=0){return
}Ff(Jc,true);return}if(h){return}LP.lp_handle_buttons_all("off");var Jh=Cd(EV);if(!Jh){j("LoginError",false,true);return}Jh=HT(Ai,true,false);if(!Jh){j("LoginError",false,true);return}Jh=Jh.substring(0,1200);if(Jh.indexOf("type=sesameoffline\ndata=")>=0){var I7="";while(true){I7=Ga(null);if(I7==""||I7.length!=64){if(I7.length>64){LP.alert(LP.lpgs("SesameWrongButton"));
continue}DS();j("LoginError",false,true);return}break}Bf("password_offline",I7)}else{if(Jh.indexOf("type=trueapioffline\ndata=")>=0){var I7="";if(C2("type")=="trueapi"){I7=C2("password_offline")}if(!I7||I7.length!=64){I7=CB(CB(F4(EV)+"trueapi"))}if(!I7||I7.length!=64){while(true){if(Fl()&&typeof(BA.trueapi_get_hash)=="function"){I7=BA.trueapi_get_hash(EV)
}if(I7==""||I7.length!=64){var Je=E(EV,"trueapi");DS();j("LoginError",false,true,false,Je);return}break}}Fk("password_offline",I7);Fk("type","trueapi")}else{if(Jh.indexOf("type=yubikeyoffline\ndata=")>=0){var I7=DQ(null);if(I7==""||I7.length!=44){DS();j("LoginError",false,true);return}var I2=I7.substring(0,12);
I7=CB(CB(CB(F4("LastPassIsGreat")+I2)+I2));GJ("password_offline",I7)}else{if(Jh.indexOf("type=yubikeyofflinemulti\nkeys=")>=0){var I7=DQ(null);if(I7==""||I7.length!=44){DS();j("LoginError",false,true);return}var I2=I7.substring(0,12);I7=CB(CB(CB(F4("LastPassIsGreat")+I2)+I2));var I0=Jh.indexOf("type=yubikeyofflinemulti\nkeys=");
Jh=Jh.substring(I0);var I1=false;var t=Jh.indexOf("\n",30);if(t>0){var Jf=CB(I7);var I6=Jh.substring(30,t);Jh=Jh.substring(t+6);var I9=I6.split("&");var Jd,I8;for(Jd=0;Jd<I9.length;++Jd){I8=I9[Jd].split("#");if(I8.length==2){var I5=I8[0];var I4=I8[1];if(Jf==I5){var I3=BD(I4,GS(I7));if(I3!=""){I1=true;
GJ("password_offline",I7);GJ("password_keysline",I6);GJ("password_server",I3)}}}}}if(!I1){DS();j("LoginError",false,true);return}}}}}Ff(Jc,false)}function Ff(I0,z){Af();Eu="";DH=true;h=true;BJ=false;A2=false;FE="";BP=-1;H7=-1;BX=0;GK();LP.lp_handle_buttons_all("in");Q(true);if(Ea){LP.mostRecent().clearTimeout(Ea);
Ea=null}var t=z?30000:0;Ea=LP.mostRecent().setTimeout('LP.notifyoffline("'+I0+'");',t);if(GN){LP.mostRecent().clearTimeout(GN);GN=null}var e=30000;GN=LP.mostRecent().setTimeout("LP.retryonlinelogin("+e+");",e)}function Af(){LP.lpprefsSetBoolPref("ffhasloggedin",true,false);LP.SetupUserPreferences();LP.lpSetupIdleTimer();
if(!LP.lpprefsHasUserValue("ffhasloggedinsuccessfully",false)){LP.lpprefsSetBoolPref("ffhasloggedinsuccessfully",true,false);LP.flush_prefs()}}this.notifyoffline=function(e){if(!DH||!h){return}Cz("LoggedInOffline",null,0,"offline");if((e=="pluginlogin"||e=="createaccount")&&(!LP.lpprefsHasUserValue("showHomepageAfterLogin",false)||LP.lpprefsGetBoolPref("showHomepageAfterLogin",false))){C7()
}};this.retryonlinelogin=function(t){if(!DH||!h){return}var z=(t/(60*1000));LP.lplogincheck("retryonline");var e=2*t;if(e>20*60000){e=20*60000}LP.mostRecent().setTimeout("LP.retryonlinelogin("+e+");",e)};function II(z){var t=Cd(z,null,false);if(!t){return null}var e=t.split("\n");return e[0]}function Cd(I0,e,I3){var I6=(typeof(e)=="undefined"||e==null)?Hk:e;
var I4=(typeof(I3)=="undefined"||I3)?true:false;var I2=CB(I0);var I1=B(I2+"_lpall.slps");if(!I1){I1=B(I2+"_lpall.lps");if(I1){var t=FW(I1,true);Ce(I2+"_lpall.slps",t);U(I2+"_lpall.lps")}else{I1=B(I0+"_lp.act.lps");if(!I1){return null}C3(I0+"_lp.act.lps",I2+"_lpall.lps")}}else{I1=IJ(I1,true)}var I5=I1.split("\n");
if(I5.length!=2){return null}if(I4){if(I6==""){return null}var z=BD(I5[1],I6,true);if(z!="lastpass rocks"){return null}}return I1}function HK(z,Ja,Jd){try{if(!z||z.readyState!=4){return}if(z.status!=200||z.responseXML==null||z.responseXML.documentElement==null){if(typeof(Ja)=="function"){Ja()}return}var I9=z.responseXML.documentElement;
var I8=I9.getElementsByTagName("ok");if(!I8||I8.length==0){var Je=I9.getElementsByTagName("error");if(Je&&Je.length>0&&Je[0].hasAttribute("invalidsession")){DS();LP.lpClearCache(true,false,false);Au(LP.lp_base+"invalidsession.php",true);j("LoginError",false,true);return}if((Je&&Je.length>0&&Je[0].hasAttribute("silent")&&parseInt(Je[0].getAttribute("silent"))==1)){if(!LP.lpprefsHasUserValue("ffhasloggedin",false)){LP.lpprefsSetBoolPref("ffhasloggedin",true,false);
LP.flush_prefs();if(!K){LP.OpenCreateAccount()}}FJ(Jd,"noexistingsession");return}HX("login_check.php returned invalid response text="+z.responseText);FJ(Jd,"invalidresponse");return}CO=GS(CB(I8[0].getAttribute("pwdeckey")));EV=I8[0].getAttribute("lpusername");Ai=CB(EV);Eu=I8[0].getAttribute("uid");var Jh=(Jd=="websitelogin"||Jd=="webrootwebsitelogin"||Jd=="websiterefresh"||Jd=="websiterefreshrsa"||Jd=="frompipes")?true:false;
if(!Jh&&Jd!="preferences"&&LP.lpprefsHasUserValue("logOffWhenCloseBrowser")&&LP.lpprefsGetBoolPref("logOffWhenCloseBrowser")){var Jf=LP.lpprefsHasUserValue("lastpollcheck")?LP.lpprefsGetIntPref("lastpollcheck"):0;var Jn=LP.lpprefsHasUserValue("logOffWhenCloseBrowserVal")?LP.lpprefsGetIntPref("logOffWhenCloseBrowserVal"):0;
var I6=Ab()-Jf;if(I6>=Jn*60){DS();return}}var Jm;if(Hk==""){var Jc=II(EV);if(!Jc){FJ(Jd,"nokeyfileA");return}Jm=GS(BD(Jc,CO,true));var Jl=Cd(EV,Jm);if(!Jl){FJ(Jd,"nokeyfileB");return}}if(Jd=="httptest"){var I5=(I8[0].getAttribute("sesamepassword")!=null&&I8[0].getAttribute("sesamepassword")!="")?true:false;
var I4=(I8[0].getAttribute("yubikeyenabled")!=null&&I8[0].getAttribute("yubikeyenabled")=="1")?true:false;var Jg=(I8[0].getAttribute("multifactorenabled")!=null&&I8[0].getAttribute("multifactorenabled")!="")?true:false;var Jb=(I8[0].getAttribute("sesameotpok")!=null&&I8[0].getAttribute("sesameotpok")!="")?true:false;
var I3=(I8[0].getAttribute("yubikeyotpok")!=null&&I8[0].getAttribute("yubikeyotpok")!="")?true:false;var t=(I8[0].getAttribute("multifactorresponseok")!=null&&I8[0].getAttribute("multifactorresponseok")!="")?true:false;if(I5){if(Jb){}else{var I7=Ga(EV);if(I7==""){DS();j("LoginError",false,true);return
}var Jk=IL("logincheckpostdata")+"&sesameotp="+encodeURIComponent(I7);if(IL("label")){Jk+="&trustlabel="+LP.en(IL("label"))}LP.lpMakeRequest(LP.lp_base+"login_check.php",Jk,HK,function(){FJ(Jd,"makerequest")},Jd);return}}if(I4){if(I3){}else{var I7=DQ(EV);if(I7==""){DS();j("LoginError",false,true);return
}var Jk=IL("logincheckpostdata")+"&otp="+encodeURIComponent(I7);if(EG("label")){Jk+="&trustlabel="+LP.en(EG("label"))}LP.lpMakeRequest(LP.lp_base+"login_check.php",Jk,HK,function(){FJ(Jd,"makerequest")},Jd);return}}if(!BH(I8,Jd)){return}if(Jg){if(t){}else{var I2=I8[0].getAttribute("type");var I1="";if(I2=="trueapi"){var I0=CB(CB(F4(EV)+I2));
if(I0.length!=64){if(Fl()&&typeof(BA.trueapi_get_hash)=="function"){I0=BA.trueapi_get_hash(EV)}}Fk("password_offline",I0);Fk("type",I2);I1=I0!=""?CB(I0+I8[0].getAttribute("challenge")):""}if(I1==""){var Jj=E(EV,I2);DS();j("LoginError",false,true,false,Jj);return}var Jk=IL("logincheckpostdata")+"&multifactorresponse="+encodeURIComponent(I1);
if(C2("label")){Jk+="&trustlabel="+LP.en(C2("label"))}if(I8[0].getAttribute("wxsessid")){Jk+="&wxsessid="+LP.en(I8[0].getAttribute("wxsessid"))}LP.lpMakeRequest(LP.lp_base+"login_check.php",Jk,HK,function(){FJ(Jd,"makerequest")},Jd);return}}}if(Hk==""){Ft(Jm)}else{}IS(I8,Jd,true)}catch(Ji){HX("Failure in lpLoginCheckResponse: "+Ji+" ln: "+Ji.lineNumber);
FJ(Jd,"exception")}}function BH(I0,I2){if(I2!="httptest"){return true}var I1=(I0[0].getAttribute("gridenabled")!=null&&I0[0].getAttribute("gridenabled")!="")?true:false;var t=(I0[0].getAttribute("gridresponseok")!=null&&I0[0].getAttribute("gridresponseok")!="")?true:false;if(I1){if(t){}else{var e=Hp(EV,I0[0].getAttribute("challenge"));
if(e==""){DS();j("LoginError",false,true);return}var z=IL("logincheckpostdata")+"&gridresponse="+encodeURIComponent(e);if(Gp("label")){z+="&trustlabel="+LP.en(Gp("label"))}if(I0[0].getAttribute("wxsessid")){z+="&wxsessid="+LP.en(I0[0].getAttribute("wxsessid"))}LP.lpMakeRequest(LP.lp_base+"login_check.php",z,HK,function(){FJ(I2,"makerequest")
},I2);return false}}return true}function Bg(I7,t,Jb){try{if(!I7||I7.readyState!=4){return}if(I7.status!=200||I7.responseXML==null||I7.responseXML.documentElement==null){HX("Problem with login response. status="+I7.status+" text="+I7.responseText,null);if(typeof(t)=="function"){t()}return}var I2=I7.responseXML.documentElement;
var I8=I2.getElementsByTagName("ok");if(!I8||I8.length==0){var I6=I2.getElementsByTagName("error");var I1=I6.length==0?"":I7.responseText;if(I6&&I6.length>0&&I6[0].hasAttribute("invalidsession")){DS();LP.lpClearCache(true,false,false);Au(LP.lp_base+"invalidsession.php",true);j("LoginError",false,true);
return}if(I1&&I1.indexOf("blacklist")>0){DS();LP.lpClearCache(true,false,false);j("Blacklist",false,true);return}if(I1&&I1.indexOf("sesameotprequired")>0){LP.lpClearCache(true,false,false);var Jd=Ga(EV);if(Jd==""){DS();j("LoginError",false,true);return}var I9=IL("postdata")+"&sesameotp="+encodeURIComponent(Jd);
var I0=IL("from");if(IL("label")){I9+="&trustlabel="+LP.en(IL("label"))}LP.lpMakeRequest(LP.lp_base+"login.php",I9,Bg,function(){Hz(I0)},I0);return}if(I1&&I1.indexOf("sesameotpfailed")>0){LP.lpClearCache(true,false,false);DS();j("LoginError",false,true);return}if(I1&&I1.indexOf("otprequired")>0){LP.lpClearCache(true,false,false);
var Jd=DQ(EV);if(Jd==""){DS();j("LoginError",false,true);return}var I9=EG("postdata")+"&otp="+encodeURIComponent(Jd);var I0=EG("from");if(EG("label")){I9+="&trustlabel="+LP.en(EG("label"))}LP.lpMakeRequest(LP.lp_base+"login.php",I9,Bg,function(){Hz(I0)},I0);return}if(I1&&I1.indexOf("otpfailed")>0){LP.lpClearCache(true,false,false);
DS();j("LoginError",false,true);return}if(I1&&I1.indexOf("gridresponserequired")>0){LP.lpClearCache(true,false,false);var Jc=Hp(EV,I6[0].getAttribute("challenge"));if(Jc==""){DS();j("LoginError",false,true);return}var I9=Gp("postdata")+"&gridresponse="+encodeURIComponent(Jc);var I0=Gp("from");if(Gp("label")){I9+="&trustlabel="+LP.en(Gp("label"))
}if(I6[0].getAttribute("wxsessid")){I9+="&wxsessid="+LP.en(I6[0].getAttribute("wxsessid"))}LP.lpMakeRequest(LP.lp_base+"login.php",I9,Bg,function(){Hz(I0)},I0);return}if(I1&&I1.indexOf("gridresponsefailed")>0){LP.lpClearCache(true,false,false);DS();j("LoginError",false,true);return}if(I1&&I1.indexOf("multifactorresponserequired")>0){LP.lpClearCache(true,false,false);
var I5=I6[0].getAttribute("type");var Jc="";if(I5=="trueapi"){var I3="";if(C2("type")=="trueapi"){I3=C2("password_offline")}if(!I3||I3.length!=64){I3=CB(CB(F4(EV)+I5))}if(!I3||I3.length!=64){if(Fl()&&typeof(BA.trueapi_get_hash)=="function"){I3=BA.trueapi_get_hash(EV)}}Fk("password_offline",I3);Fk("type",I5);
Jc=I3!=""?CB(I3+I6[0].getAttribute("challenge")):""}if(Jc==""){var Ja=E(EV,I5);DS();j("LoginError",false,true,false,Ja);return}var I9=C2("postdata")+"&multifactorresponse="+encodeURIComponent(Jc);var I0=C2("from");if(C2("label")){I9+="&trustlabel="+LP.en(C2("label"))}if(I6[0].getAttribute("wxsessid")){I9+="&wxsessid="+LP.en(I6[0].getAttribute("wxsessid"))
}LP.lpMakeRequest(LP.lp_base+"login.php",I9,Bg,function(){Hz(I0)},I0);return}if(I1&&I1.indexOf("multifactorresponsefailed")>0){var Ja=E(EV,I6[0].getAttribute("type"));LP.lpClearCache(true,false,false);DS();j("LoginError",false,true,false,Ja);return}if(I1&&I1.indexOf("unknownemail")>0){DS();j(I6[0].getAttribute("message")?I6[0].getAttribute("message"):"LoginError",false,true,true);
return}if(I1&&I1.indexOf("unknownpassword")>0){DS();j(I6[0].getAttribute("message")?I6[0].getAttribute("message"):"LoginError",false,true);return}if(I1&&I1.indexOf("iprestriction")>0){LP.lpClearCache(true,false,false);DS();j(I6[0].getAttribute("message")?I6[0].getAttribute("message"):"LoginError",false,true);
return}if(I6&&I6.length>0&&I6[0].hasAttribute("cause")){var z=I6[0].getAttribute("cause");DS();j((I6.length>0&&I6[0].getAttribute("message"))?I6[0].getAttribute("message"):"LoginError",false,true);return}HX("login.php returned invalid response text="+I7.responseText);Hz(Jb);return}CO=GS(CB(I8[0].getAttribute("pwdeckey")));
EV=I8[0].getAttribute("lpusername");Ai=CB(EV);Eu=I8[0].getAttribute("uid");R();IS(I8,Jb,false)}catch(I4){HX("Failure in lpLoginResponse: "+I4+" ln: "+I4.lineNumber);Hz(Jb)}}function IS(I4,I5,z){h=false;if(z==null||typeof(z)=="undefined"){z=true}if(Ea){LP.mostRecent().clearTimeout(Ea);Ea=null}if(GN){LP.mostRecent().clearTimeout(GN);
GN=null}C3(Ai+"_lp.key",Ai+"_lp.act.key");C3(Ai+"_lp.act.key",Ai+"_lp.act.lps");Bf("password_offline",I4[0].getAttribute("sesamepassword"));GJ("password_offline",I4[0].getAttribute("yubikeyhash"));GJ("password_keysline",I4[0].getAttribute("yubikeykeysline"));GJ("password_server",I4[0].getAttribute("yubikeyserverpassword"));
Id("password_offline",I4[0].getAttribute("gridpassword"));IC=I4[0].getAttribute("disableoffline")==1?1:0;if(IC){LP.lpClearCache(true,false,false)}GK();Iw(I4);LP.lphelpstats=new DX();LP.lphelpstats.currentlyopen=false;LP.lphelpstats.wino=null;LP.lphelpstats.highlighthelp=(I4[0].getAttribute("hih")=="1"?true:false);
LP.lphelpstats.genpwhelp=(I4[0].getAttribute("genh")=="1"?true:false);LP.lphelpstats.addsitehelp=(I4[0].getAttribute("addh")=="1"?true:false);GW=I4[0].getAttribute("country");Is=(I4[0].getAttribute("upgrade")=="1"?true:false);HF=(I4[0].getAttribute("logoff_other_ses")=="1"?true:false);Ic(I4[0],"login");
var I0=(LP.lpprefsHasUserValue("singlefactortype",false)?LP.lpprefsGetCharPref("singlefactortype",false):"");if(I4[0].getAttribute("multifactor_singlefactor")=="1"){if(I0==""){if(C2("type")=="trueapi"){if(Fl()&&typeof(BA.trueapi_default_login_exists)=="function"){if(BA.trueapi_default_login_exists(EV)){LP.lpprefsSetCharPref("singlefactortype",C2("type"),false);
LP.lpprefsSetBoolPref("openloginstart",true,false);LP.flush_prefs()}}}}}else{if(I0!=""){LP.disable_single_factor()}}var I1=I5=="websiterefreshrsa"?true:false;Ep(I1,I4);if(LP.lpdolostpwotp&&I4[0].hasAttribute("lostpwotpresult")){var I8=AC(Ai+"_lps.act.sxml")||AC(Ai+"_lps.act.xml");if(I8&&!LP.lpprefsHasUserValue("StoreLostPWOTP")){LP.lpprefsSetBoolPref("StoreLostPWOTP",true)
}else{if(!LP.lpprefsHasUserValue("StoreLostPWOTP")){LP.lpprefsSetBoolPref("StoreLostPWOTP",true)}}}if(LP.lpdolostpwotp&&(!LP.lpprefsHasUserValue("StoreLostPWOTP")||LP.lpprefsGetBoolPref("StoreLostPWOTP"))){if(I4[0].hasAttribute("lostpwotpresult")&&I4[0].getAttribute("lostpwotpresult")!="ok"){LP.DeleteOTP();
LP.MakeOTP()}}LP.lpCloseNotifications();DH=true;BJ=parseInt(I4[0].getAttribute("isadmin"))==1;A2=parseInt(I4[0].getAttribute("loglogins"))==1;FE=I4[0].getAttribute("email");BP=-1;H7=parseInt(I4[0].getAttribute("accts_version"));LP.lp_handle_buttons_all("in");Gx=Ba();var I2=I4[0].getAttribute("sessionid");
if(Gx!=I2&&I2!=""){Gx=I2}if(!z&&!Dw){AR("internal_logincheck_ack",{data0:Gx,data1:EV,data2:LP.GetIdentity()})}try{var I3=(I4[0].getAttribute("ignoreminor")=="0"?false:true);var t=I4[0].getAttribute("reqdversion");if(DF!=""&&t!=""&&EL(DF,t,I3)<0){LP.alert(LP.lpgs("A required update is available for LastPass. Please press OK to begin download and installation."));
LP.lpUpdate()}}catch(I6){}Af();Ez=true;Q();if(I5=="pluginlogin"||I5=="createaccount"){Ir()}var e=Ab();LP.lpprefsSetIntPref("lastpollcheck",e);LP.flush_prefs();Fa=e;if(LP.lpdopoll){LP.setupPollTimer()}if(Gd){Gd=false;Go()}else{if((I5=="pluginlogin"||I5=="createaccount")&&(!LP.lpprefsHasUserValue("showHomepageAfterLogin",false)||LP.lpprefsGetBoolPref("showHomepageAfterLogin",false)==true)){C7()
}}var I7=Ak();if(I7==""){I7="0"}if(parseInt(I7)<parseInt(I4[0].getAttribute("iconsversion"))){LP.lpMakeRequest(LP.lp_base+"geticon.php","versionff="+LP.en(I7),Hn)}LP.lpretryrequests()}function A4(){var I0=CZ();if(I0.length==0){return null}var t=I0[0];var e=Gn();if(typeof(e[t])=="undefined"){return null
}var z=e[t];return{username:t,password:z}}function Bc(I0){var t=A4();if(!t){return false}var z=t.username;var e=t.password;LP.lplogin(z,e,I0);return true}function CZ(z){var I0="";if(LP.lpprefsHasUserValue("loginusers",false)){I0=LP.lpprefsGetCharPref("loginusers",false)}var I1=new Array();var t=encodeURIComponent(z);
if(typeof(z)!="undefined"&&z!=""&&I0.indexOf(t)==-1){I0=t+"|"+I0}if(I0!=""){I1=I0.split("|");for(var e=0;e<I1.length;e++){I1[e]=decodeURIComponent(I1[e])}}return I1}function Gn(){var t="";if(LP.lpprefsHasUserValue("loginpws",false)){t=IJ(LP.lpprefsGetCharPref("loginpws",false))}var I2=new Array();var I1=new Array();
if(t!=""){I2=t.split("|");for(var I0=0;I0<I2.length;I0++){var I4=I2[I0].split("=");if(typeof(I4[1])!="undefined"){var e=decodeURIComponent(I4[0]);var I3=decodeURIComponent(I4[1]);var z=GS(CB(e));I3=BD(I3,z);I1[e]=I3}else{}}}return I1}this.have_loginpw=function(t){var e=Gn();return typeof(e[t])!="undefined"&&e[t]
};this.delete_loginpw=function(t){var e=Gn();if(typeof(e[t])!="undefined"){e[t]=null}E4(e)};function Fz(t,e){if(!DH){LP.lpGetCurrentWindow().setTimeout(function(){if(!DH){LP.lpOpenLogin(t.extra)}},500)}}this.lpOpenLogin=function(I1,e){var I0={logincase:1};if(typeof(e)!="undefined"&&e!=null&&e!=""){I0.sesameusername=e
}if(DH){DS()}else{if(I1&&typeof(I1)=="function"){Gi=I1}else{Gi=null}var z=(LP.lpprefsHasUserValue("singlefactortype",false)?LP.lpprefsGetCharPref("singlefactortype",false):"");if(z=="trueapi"&&Fl()&&typeof(BA.trueapi_default_login_exists)=="function"&&BA.trueapi_default_login_exists("")){var I4={},t={},I2={};
if(BA.trueapi_get_default_login(I4,t,I2)){Fk("password_offline",I2.value);Fk("type",z);LP.lplogin(I4.value,t.value,"pluginlogin",I2.value!="");return}}var I3="content/login.xul";LP.lpGetCurrentWindow().openDialog(GY+I3,"_blank","chrome,titlebar,toolbar,centerscreen,modal",I0)}};this.httptest=function(){if(!DH){if(typeof(EP)=="function"){EP()
}Gq(true,"httptest");var e=LP.lp_base+"httptest.php";e=e.replace(/^https:\/\//,"http://");LP.lpMakeRequest(e,"",BS,DW)}};function BS(z){try{if(z&&z.readyState==4){if(z.status==200&&z.responseXML!=null&&z.responseXML.documentElement!=null){var I2=z.responseXML.documentElement;var t=I2.getElementsByTagName("ok");
if(t.length>0){var I1=t[0].getAttribute("lastpass");if(I1=="1"){LP.lplogincheck("httptest");return}}}DW()}}catch(I0){DW()}}function DW(){LP.setTimeout(function(){LP.httptest()},300000)}function E(t,e){return"multifactordisable.php?cmd=sendemail&username="+encodeURIComponent(t)+"&type="+encodeURIComponent(e)
}function N(I3,I1,t,I2){A3=false;var I0="SK:requestfailed";I0+="\n  url         : "+I1.url;I0+="\n  reason      : "+I3;I0+="\n  isqueueable : "+(t?"yes":"no");if(typeof(I2)!="undefined"&&I2&&I2.target&&I2.target.status){I0+="\n  status      : "+I2.target.status;if(I2.target.responseText){I0+="\n  response    : "+I2.target.responseText
}}if(t){I0+="\n  action      : appending to queue";Hq(I1);return}I0+="\n  action      : dropping request since it is not queueable";if(I3=="invalidresponse"||I3=="onerror"||I3=="exception"||I3=="objectcreation"){var z=I1.url;if(z.indexOf("loglogin.php")==-1&&z.indexOf("logformfill.php")==-1&&z.indexOf("error.php")==-1&&z.indexOf("poll_server.php")==-1&&z.indexOf("httptest.php")==-1&&z.indexOf("geticon.php")==-1&&z.indexOf("logout.php")==-1){j("ErrorSendingMsg")
}}}this.lpMakeRequest=function(t,I2,I1,I3,I0,e){if(!e){e=LP.mostRecent()}if(Eu!=null&&Eu!=""){I2+=(I2!=""?"&":"")+"requid="+LP.en(Eu)}if(Gx!=null&&Gx!=""&&(t.match(/^https:\/\//i)||As(t))){I2+=(I2!=""?"&":"")+"wxsessid="+LP.en(Gx);var z=(LP.lpprefsHasUserValue("logOffWhenCloseBrowser",true)&&LP.lpprefsGetBoolPref("logOffWhenCloseBrowser",true)==true&&(!LP.lpprefsHasUserValue("logOffWhenCloseBrowserVal",true)||LP.lpprefsGetIntPref("logOffWhenCloseBrowserVal",true)==0));
if(EV!=""){I2+="&sessonly="+(z?"1":"0")}}if(D4&&EV!=""&&Ae!=""&&(t.match(/^https:\/\//i)||As(t))){I2+=(I2!=""?"&":"")+"wxusername="+LP.en(EV);I2+=(I2!=""?"&":"")+"wxhash="+LP.en(Ae)}if(e){e.setTimeout(function(){LP.lpMakeRequestReal(t,I2,I1,I3,I0)},0)}else{LP.setTimeout(function(){LP.lpMakeRequestReal(t,I2,I1,I3,I0)
},0)}};this.lpMakeRequestReal=function(z,I0,I5,t,I8){var I4=G();var I9=I4+"_"+En(1,10000);var I1={rid:I9,ts:I4,url:z,params:I0};I0=I0.replace(/&?sentms=[^\&]+/,"");I0+=(I0==""?"":"&")+"sentms="+encodeURIComponent(I4);var I2=D6(z);var I7=typeof(t)=="function"?t:N;if(typeof(Components)!="undefined"){var I6=Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Components.interfaces.nsIXMLHttpRequest)
}else{var I6=new XMLHttpRequest()}if(!I6){I7("objectcreation",I1,I2);return false}I6.onreadystatechange=function(){Dh(I5,I6,t,I8,I1,I2)};try{I6.onerror=(t&&!I2)?t:function(Ja){N("onerror",I1,I2,Ja)};I6.open("POST",z,true);I6.setRequestHeader("Content-Type","application/x-www-form-urlencoded");I6.send(I0)
}catch(I3){I7("exception",I1,I2)}};var Cc=false;function Dh(z,I6,e,I7,I0,I3){if(I6.readyState==4&&I6.status==200){A3=true;var I8=CJ(I0.url);var Ja=null;if(I8){Ja=IT(I0.url);if(!Ja){return}}if(I6.responseXML&&I6.responseXML.documentElement){var I5=I6.responseXML.documentElement.getElementsByTagName("error");
if(I5&&I5.length>0){var t=I5[0].getAttribute("cause");if(t&&"oldpassword"==t){if(typeof(U)=="function"){U(EV+"_lp.act.xml");U(EV+"_lps.act.xml");U(Ai+"_lp.act.xml");U(Ai+"_lps.act.xml");U(Ai+"_lps.act.sxml")}DS()}var I4=I5[0].getAttribute("notloggedin");if(I4&&I4=="1"){if(I8){Al(Ja,false)}else{N("notloggedin",I0,I3)
}DS();j("ErrorSessionMsg",false,true);return}var I2=I5[0].getAttribute("oldretry");if(I2&&I2=="1"){if(I8){Al(Ja,true);return}HX("SK:ERROR : received oldretry=1 for non retry request!",null);return}}}var I9=false;if(I6.responseXML&&I6.responseXML.documentElement){I9=true}else{if(I6.responseText&&(I6.responseText=="latest"||I6.responseText=="nodata"||I6.responseText.indexOf("iconsversion")==0)){I9=true
}if(I0.url.indexOf("logout.php")>=0){I9=true}if(I0.url.indexOf("error.php")>=0){I9=true}if(I0.url.indexOf("country_from_ip.php")>=0){I9=true}if(I0.url.indexOf("loglogin.php")>=0){I9=true}if(I0.url.indexOf("logformfill.php")>=0){I9=true}if(I0.url.indexOf("httptest.php")>=0){I9=true}if(I0.url.indexOf("set_never_autofill.php")>=0){I9=true
}if(I0.url.indexOf("help.php")>=0){I9=true}if(I0.url.indexOf("create_account.php")>=0){I9=true}if(I0.url.indexOf("getaccts.php")>=0){if(I0.url.indexOf("mobile")>=0){I9=true}else{if(typeof(LP)!="undefined"){LP.lpClearCache(true);if(Cc==false){LP.lpGetAccounts();Cc=true}}HX("ERROR: Got invalid xml from getaccts")
}}}if(I8){if(!I9){}Al(Ja,I9);return}if(I9){if(typeof(z)=="function"){if(!DH){var I1=z.toString().substring(0,100);if(I1.indexOf("poll_server_response")!=-1){DS();j("ErrorSessionMsg",false,true);return}}z(I6,e,I7)}}else{N("invalidresponse",I0,I3)}}else{if(I6.readyState==4&&typeof(e)=="function"){e()}}}function CJ(e){return e.indexOf("?rid=")>0||e.indexOf("&rid=")>0
}function IT(t){var I0=new RegExp("[?&]rid=([^&]+)");var e=I0.exec(t);if(!e||e.length!=2){HX("SK:lpgetretryrid - could not find rid in url",null);return null}var z=e[1];return z}function D6(e){if(CJ(e)){return false}var z=["add_never.php","change_pw.php","deliver_and_add.php","formfill.php","gm_deliver.php","save_gen_pw.php","set_autologin.php","set_never_autofill.php","show.php","fields.php"];
var t;for(t in z){if(e.indexOf(z[t])>=0){return true}}return false}function Hq(I4){var e=Hx();var I1=I4.rid;var I2=I4.ts;var I0=null;for(var z in e){if(e[z]["rid"]==I1){HX("SK:We tried to append a row with an idential rid value",null);return false}if(I0==null){var t=parseInt(e[z]["ts"]);if(I2<t){I0=z
}}}if(I0==null){e[e.length]=I4}else{var I3=[];for(var z in e){if(z==I0){I3[I3.length]=I4}I3[I3.length]=e[z]}e=I3}if(!Fb(e)){HX("SK:Could not write to retry file in lpretryinsert",null);return false}return true}var IY={exit:null,error:false,rid:null,status:null,sentms:null,donems:null,retryintervalms:0,initretryintervalms:0,responsewaitms:10000};
function Al(e,t){if(t){if(!BU(e)){HX("SK:lpremovefromretryfile failed for rid="+e,null);Fe("SK:lpremovefromretryfile failed for rid="+e+". Contents of retry file:");IY.exit=true;return}IY.status="done";IY.donems=(new Date()).getTime();G6(false)}else{IY.status="failed";IY.donems=(new Date()).getTime();
G6(true,true,e)}}var Dc=new Array();function G6(I1,e,I5){if(I1){var I3=e?24*60*60*1000:10*60*1000;var I2=IY.retryintervalms;var z=2*I2;if(z==0){z=2000}else{if(z>I3){z=I3}}IY.retryintervalms=z;if(I2!=z){var I6=Math.round(I2/1000);var I0=Math.round(z/1000)}if(e){if(typeof(Dc[I5])=="undefined"){Dc[I5]=0
}Dc[I5]++;if(Dc[I5]==16){Dc[I5]=0;BU(I5)}}}else{if(IY.retryintervalms!=IY.initretryintervalms){var I4=Math.round(IY.retryintervalms/1000);var t=Math.round(IY.initretryintervalms/1000)}IY.retryintervalms=IY.initretryintervalms}}this.lpretryrequests=function(){var t=10000;if(IY.exit){return}if(!DH){return
}if(IY.status=="started"){var I4=(new Date()).getTime()-IY.sentms;if(I4<=IY.responsewaitms){LP.lpGetCurrentWindow().setTimeout("LP.lpretryrequests()",t);return}G6(true,false);IY.donems=(new Date()).getTime();IY.rid=null;IY.sentms=null;IY.status=null}if(IY.donems&&((new Date()).getTime()-IY.donems)<IY.retryintervalms){LP.lpGetCurrentWindow().setTimeout("LP.lpretryrequests()",t);
return}IY.rid=null;IY.sentms=null;IY.status=null;IY.donems=null;var e=Hx();if(e.length==0){LP.lpGetCurrentWindow().setTimeout("LP.lpretryrequests()",t);return}var I2=e[0];var z=I2.url;var I0=I2.rid;var I3=I2.ts;z+=(z.indexOf("?")==-1?"?":"&")+"rid="+encodeURIComponent(I0);z+="&localts="+encodeURIComponent(I3);
IY.rid=I0;IY.sentms=(new Date()).getTime();IY.status="started";var I1=Math.round(IY.responsewaitms/1000);LP.lpMakeRequest(z,I2.params,null,null,null);LP.lpGetCurrentWindow().setTimeout("LP.lpretryrequests()",t)};var Db=null;var Di=true;function BU(t){var I1=Hx();if(I1.length==0){I1=Hx(true);if(I1.length==0){return true
}}var e;var I0=false;var z=[];for(e=0;e<I1.length;++e){if(I1[e]["rid"]==t){I0=true}else{z[z.length]=I1[e]}}if(!I0){Fe("SK:lpremovefromretryfile : ERROR could not find rid="+t+". Contents of retry file:");return false}if(!Fb(z)){return false}if(z.length==0){LP.lpGetAccounts()}return true}function Fe(I1){var I0=Hx();
var z=I1;for(var t in I0){z+="\n["+t+"] :";for(var e in I0[t]){z+=" "+e+"->"+I0[t][e]}}}function Hx(e){if(Db==null||e){var I3=new Array();var I5=Fx();if(I5==null){return I3}else{if(I5==""){Db=I3;return I3}}var I4=BD(I5);if(I4==""||I4==null){HX("Failed to decrypt retry data",null);G3();return I3}var I0=AI(I4);
if(I0==null){HX("Failed to lpatob decrypted retry data (so perhaps decryption failed)",null);G3();return I3}var z=I0.indexOf(">LastPassRetry");if(I0.length<=2*14||I0.indexOf("LastPassRetry<")!=0||z!=(I0.length-14)){HX("Retry data format after decryption invalid: "+I0,null);G3();return I3}I0=I0.substring(14,z);
var I1=I0.split("\n");var I2;var t;for(I2=0;I2<I1.length;++I2){I3[I3.length]=Aj(I1[I2])}Db=I3}return Db}function Fb(I4){var I3="";var I1;var t;for(I1=0;I1<I4.length;++I1){I3+=(I1==0?"":"\n")+Ha("row",I4[I1])}var I0=GG("LastPassRetry<"+I3+">LastPassRetry");if(I0==null){return false}var I2=Ds(I0);if(I2==""||I2==null){return false
}Db=null;var e=FG(I2);var z=Hx();return e}function Aj(z){var I3=new Array();var I1=new RegExp("<([^ ]+) ?(.*)/>");var I2=I1.exec(z);if(!I2||I2.length!=3){return I3}var I0=I2[2];var I1=new RegExp('([^=]+)="([^"]*)"');var e=null;while((e=I1.exec(I0))!=null){if(e.length!=3){break}var I4=e[1].toString();
var t=e[2].toString();I0=I0.replace(I4+'="'+t+'"',"");I4=GR(I4);t=l(t);if(I4=="null"){t=null}else{if(I4=="false"){t=false}}I3[I4]=t}return I3}function Ha(z,I0){var e="<"+z;var t;for(t in I0){if(I0[t]==null){I0[t]="null"}if(typeof(I0[t])=="object"){I0[t]="null"}e+=" "+t+'="'+DR(I0[t].toString())+'"'}e+="/>";
return e}function Ik(I7,e){var I0=8;var I8=0;var z=I7;function Jc(Jh,Jk){var Jj=(Jh&65535)+(Jk&65535);var Ji=(Jh>>16)+(Jk>>16)+(Jj>>16);return(Ji<<16)|(Jj&65535)}function I1(Ji,Jh){return(Ji>>>Jh)|(Ji<<(32-Jh))}function I2(Ji,Jh){return(Ji>>>Jh)}function I9(Jh,Jj,Ji){return((Jh&Jj)^((~Jh)&Ji))}function I3(Jh,Jj,Ji){return((Jh&Jj)^(Jh&Ji)^(Jj&Ji))
}function Jb(Jh){return(I1(Jh,2)^I1(Jh,13)^I1(Jh,22))}function Jd(Jh){return(I1(Jh,6)^I1(Jh,11)^I1(Jh,25))}function I6(Jh){return(I1(Jh,7)^I1(Jh,18)^I2(Jh,3))}function Ja(Jh){return(I1(Jh,17)^I1(Jh,19)^I2(Jh,10))}function Jg(Ji,Jj){var Jv=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298);
var Jk=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225);var Jh=new Array(64);var Jx,Jw,Ju,Jt,Jr,Jp,Jo,Jn,Jm,Jl;var Js,Jq;Ji[Jj>>5]|=128<<(24-Jj%32);Ji[((Jj+64>>9)<<4)+15]=Jj;for(var Jm=0;Jm<Ji.length;Jm+=16){Jx=Jk[0];Jw=Jk[1];Ju=Jk[2];Jt=Jk[3];Jr=Jk[4];
Jp=Jk[5];Jo=Jk[6];Jn=Jk[7];for(var Jl=0;Jl<64;Jl++){if(Jl<16){Jh[Jl]=Ji[Jl+Jm]}else{Jh[Jl]=Jc(Jc(Jc(Ja(Jh[Jl-2]),Jh[Jl-7]),I6(Jh[Jl-15])),Jh[Jl-16])}Js=Jc(Jc(Jc(Jc(Jn,Jd(Jr)),I9(Jr,Jp,Jo)),Jv[Jl]),Jh[Jl]);Jq=Jc(Jb(Jx),I3(Jx,Jw,Ju));Jn=Jo;Jo=Jp;Jp=Jr;Jr=Jc(Jt,Js);Jt=Ju;Ju=Jw;Jw=Jx;Jx=Jc(Js,Jq)}Jk[0]=Jc(Jx,Jk[0]);
Jk[1]=Jc(Jw,Jk[1]);Jk[2]=Jc(Ju,Jk[2]);Jk[3]=Jc(Jt,Jk[3]);Jk[4]=Jc(Jr,Jk[4]);Jk[5]=Jc(Jp,Jk[5]);Jk[6]=Jc(Jo,Jk[6]);Jk[7]=Jc(Jn,Jk[7])}return Jk}function Jf(Jk){var Jj=Array();var Jh=(1<<I0)-1;for(var Ji=0;Ji<Jk.length*I0;Ji+=I0){Jj[Ji>>5]=""}for(var Ji=0;Ji<Jk.length*I0;Ji+=I0){Jj[Ji>>5]|=(Jk.charCodeAt(Ji/I0)&Jh)<<(24-Ji%32)
}return Jj}function t(Ji){Ji=Ji.replace(/\r\n/g,"\n");var Jh="";for(var Jk=0;Jk<Ji.length;Jk++){var Jj=Ji.charCodeAt(Jk);if(Jj<128){Jh+=String.fromCharCode(Jj)}else{if((Jj>127)&&(Jj<2048)){Jh+=String.fromCharCode((Jj>>6)|192);Jh+=String.fromCharCode((Jj&63)|128)}else{Jh+=String.fromCharCode((Jj>>12)|224);
Jh+=String.fromCharCode(((Jj>>6)&63)|128);Jh+=String.fromCharCode((Jj&63)|128)}}}return Jh}function I4(Jj){var Ji=I8?"0123456789ABCDEF":"0123456789abcdef";var Jk="";for(var Jh=0;Jh<Jj.length*4;Jh++){Jk+=Ji.charAt((Jj[Jh>>2]>>((3-Jh%4)*8+4))&15)+Ji.charAt((Jj[Jh>>2]>>((3-Jh%4)*8))&15)}return Jk}I7=t(I7);
var Je=Jg(Jf(I7),I7.length*I0);if(typeof(e)!="undefined"&&true==e){return Je}else{var I5=I4(Je);return I5}}if(typeof(Ah)=="undefined"){function Ah(I3){if(typeof(LP)=="object"&&typeof(LP.lpGetCurrentWindow)=="function"&&typeof(ischrome)=="undefined"){var I5=LP.lpGetCurrentWindow();if(typeof(I5)=="object"&&typeof(I5.btoa)=="function"){return I5.btoa(I3)
}}if(typeof(lptoolband)=="object"&&typeof(lptoolband.btoa2)!="undefined"){return lptoolband.btoa2(I3,I3.length)}var I0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var z,t,e,I8,I7,I6,I4,I9,I2=0,I1="";do{z=I3.charCodeAt(I2++);t=I3.charCodeAt(I2++);e=I3.charCodeAt(I2++);I9=z<<16|t<<8|e;
I8=I9>>18&63;I7=I9>>12&63;I6=I9>>6&63;I4=I9&63;I1+=I0.charAt(I8)+I0.charAt(I7)+I0.charAt(I6)+I0.charAt(I4)}while(I2<I3.length);switch(I3.length%3){case 1:I1=I1.slice(0,-2)+"==";break;case 2:I1=I1.slice(0,-1)+"=";break}return I1}}if(typeof(Et)=="undefined"){function Et(I3){if(typeof(LP)=="object"&&typeof(LP.lpGetCurrentWindow)=="function"&&typeof(ischrome)=="undefined"){var I5=LP.lpGetCurrentWindow();
if(typeof(I5)=="object"&&typeof(I5.atob)=="function"){return I5.atob(I3)}}if(typeof(lptoolband)=="object"&&typeof(lptoolband.atob2)!="undefined"){return lptoolband.atob2(I3,I3.length)}if(typeof(I3)!="string"||I3.length%4!=0||typeof(I3.charAt)=="undefined"){return""}var I0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var z,t,e,I8,I7,I6,I4,I9,I2=0,I1="";do{I8=I0.indexOf(I3.charAt(I2++));I7=I0.indexOf(I3.charAt(I2++));I6=I0.indexOf(I3.charAt(I2++));I4=I0.indexOf(I3.charAt(I2++));I9=I8<<18|I7<<12|I6<<6|I4;z=I9>>16&255;t=I9>>8&255;e=I9&255;if(I6==64){I1+=String.fromCharCode(z)}else{if(I4==64){I1+=String.fromCharCode(z,t)
}else{I1+=String.fromCharCode(z,t,e)}}}while(I2<I3.length);return I1}}var Dl=function(){var I3=4;var I6=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]];var I5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var I9=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22];
var Jb=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125];
var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];var Ja=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,0,0,0,0,0,0,0,10,11,12,13,14,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,11,12,13,14,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,];
var I7=function(Jf){for(var Je=0;Je<4;Je++){Jf[Je]=I9[Jf[Je]]}return Jf};var Jc=function(Jg){var Je=Jg[0];for(var Jf=0;Jf<3;Jf++){Jg[Jf]=Jg[Jf+1]}Jg[3]=Je;return Jg};var e=function(Jh,Jf,Je){var Ji,Jg;for(Ji=0;Ji<4;Ji++){for(Jg=0;Jg<I3;Jg++){Jh[Ji][Jg]^=Je[Jf*4+Jg][Ji]}}return Jh};var I2=function(Jg){var Jh,Je;
var Jf;for(Jh=0;Jh<4;Jh++){for(Je=0;Je<I3;Je++){Jf=Jg[Jh][Je];Jg[Jh][Je]=I9[Jg[Jh][Je]]}}return Jg};var I8=function(Jg){var Jh,Je;var Jf=new Array();for(Jh=1;Jh<4;Jh++){for(Je=0;Je<I3;Je++){Jf[Je]=Jg[Jh][(Je+Jh)%I3]}for(Je=0;Je<I3;Je++){Jg[Jh][Je]=Jf[Je]}}return Jg};var I1=function(Jj){var Jh,Ji;var Jg=new Array();
var Jf=new Array();var Je=new Array();for(Jh=0;Jh<I3;Jh++){for(Ji=0;Ji<4;Ji++){Jg[Ji]=Jj[Ji][Jh];Jf[Ji]=Jg[Ji]<<1;if(Jf[Ji]>255){Jf[Ji]^=283}Je[Ji]=Jg[Ji]^Jf[Ji]}Jj[0][Jh]=Jf[0]^Je[1]^Jg[2]^Jg[3];Jj[1][Jh]=Jg[0]^Jf[1]^Je[2]^Jg[3];Jj[2][Jh]=Jg[0]^Jg[1]^Jf[2]^Je[3];Jj[3][Jh]=Je[0]^Jg[1]^Jg[2]^Jf[3]}return Jj
};var I0=function(Jg){var Jh,Je;var Jf;for(Jh=0;Jh<4;Jh++){for(Je=0;Je<I3;Je++){Jf=Jg[Jh][Je];Jg[Jh][Je]=Jb[Jg[Jh][Je]]}}return Jg};var Jd=function(Jg){var Jh,Je;var Jf=new Array();for(Jh=1;Jh<4;Jh++){for(Je=0;Je<I3;Je++){Jf[Je]=Jg[Jh][(Je+(I3-Jh))%I3]}for(Je=0;Je<I3;Je++){Jg[Jh][Je]=Jf[Je]}}return Jg
};var z=function(Je){var Jh,Jl;var Jg=new Array();var Jf=new Array();var Jo=new Array();var Jn=new Array();var Jm=new Array();var Jk=new Array();var Jj=new Array();var Ji=new Array();for(Jh=0;Jh<I3;Jh++){for(Jl=0;Jl<4;Jl++){Jg[Jl]=Je[Jl][Jh];Jf[Jl]=Jg[Jl]<<1;if(Jf[Jl]>255){Jf[Jl]^=283}Jo[Jl]=Jf[Jl]<<1;
if(Jo[Jl]>255){Jo[Jl]^=283}Jn[Jl]=Jo[Jl]<<1;if(Jn[Jl]>255){Jn[Jl]^=283}Jm[Jl]=Jn[Jl]^Jg[Jl];Jk[Jl]=Jn[Jl]^Jf[Jl]^Jg[Jl];Jj[Jl]=Jn[Jl]^Jo[Jl]^Jg[Jl];Ji[Jl]=Jn[Jl]^Jo[Jl]^Jf[Jl]}Je[0][Jh]=Ji[0]^Jk[1]^Jj[2]^Jm[3];Je[1][Jh]=Jm[0]^Ji[1]^Jk[2]^Jj[3];Je[2][Jh]=Jj[0]^Jm[1]^Ji[2]^Jk[3];Je[3][Jh]=Jk[0]^Jj[1]^Jm[2]^Ji[3]
}return Je};var I4=function(Je){if(typeof(reportError)=="function"){reportError(Je,null)}};return{KeyExpansion:function(Jj){var Ji,Jg;var Jf=new Array();var Jh;var Jk;if(!(Jj instanceof Array&&(Jj.length==16||Jj.length==24||Jj.length==32))){I4("KeyExpansion: key must be an array of length 16, 24, or 32 bytes")
}Jh=Jj.length/4;Jk=Jh+6;var Je=new Array();for(Ji=0;Ji<Jh;Ji++){Je[Ji]=[Jj[4*Ji],Jj[4*Ji+1],Jj[4*Ji+2],Jj[4*Ji+3]]}for(;Ji<I3*(Jk+1);Ji++){Je[Ji]=new Array();for(Jg=0;Jg<4;Jg++){Jf[Jg]=Je[Ji-1][Jg]}if(Ji%Jh==0){Jf=I7(Jc(Jf));for(Jg=0;Jg<4;Jg++){Jf[Jg]^=I6[Ji/Jh][Jg]}}else{if(Jh>6&&Ji%Jh==4){Jf=I7(Jf)
}}for(Jg=0;Jg<4;Jg++){Je[Ji][Jg]=Je[Ji-Jh][Jg]^Jf[Jg]}}return Je},Cipher:function(Jh,Je){var Jl,Ji;var Jk;var Jj=new Array();var Jg=new Array();var Jf;if(!(Jh instanceof Array&&Jh.length==4*I3)){I4("Cipher: input must be an array of length "+(4*I3));return null}if(!(Je instanceof Array&&(Je.length==I3*11||Je.length==I3*13||Je.length==I3*15))){I4("Cipher: roundKeys must be an array of length "+(I3*11)+", "+(I3*13)+", or "+(I3*15));
return null}Jk=Je.length/I3-1;for(Jl=0;Jl<4;Jl++){Jj[Jl]=new Array();for(Ji=0;Ji<I3;Ji++){Jj[Jl][Ji]=Jh[Jl+4*Ji]}}Jj=e(Jj,0,Je);for(Jf=1;Jf<Jk;Jf++){Jj=I2(Jj);Jj=I8(Jj);Jj=I1(Jj);Jj=e(Jj,Jf,Je)}Jj=I2(Jj);Jj=I8(Jj);Jj=e(Jj,Jk,Je);for(Jl=0;Jl<4;Jl++){for(Ji=0;Ji<I3;Ji++){Jg[Jl+4*Ji]=Jj[Jl][Ji]}}return Jg
},InvCipher:function(Jh,Je){var Jl,Ji;var Jk;var Jj=new Array();var Jg=new Array();var Jf;if(!(Jh instanceof Array&&Jh.length==4*I3)){I4("Cipher: input must be an array of length "+(4*I3));return null}if(!(Je instanceof Array&&(Je.length==I3*11||Je.length==I3*13||Je.length==I3*15))){I4("Cipher: roundKeys must be an array of length "+(I3*11)+", "+(I3*13)+", or "+(I3*15));
return null}Jk=Je.length/I3-1;for(Jl=0;Jl<4;Jl++){Jj[Jl]=new Array();for(Ji=0;Ji<I3;Ji++){Jj[Jl][Ji]=Jh[Jl+4*Ji]}}Jj=e(Jj,Jk,Je);for(Jf=Jk-1;Jf>0;Jf--){Jj=Jd(Jj);Jj=I0(Jj);Jj=e(Jj,Jf,Je);Jj=z(Jj)}Jj=Jd(Jj);Jj=I0(Jj);Jj=e(Jj,0,Je);for(Jl=0;Jl<4;Jl++){for(Ji=0;Ji<I3;Ji++){Jg[Jl+4*Ji]=Jj[Jl][Ji]}}return Jg
},StringToKeyIv:function(Jk,Jm){var Jj;var Ji=new Array();var Jl=new Array();var Jg=new Array();var Je=0;var Jf=16;var Jh;if(Jm!=128&&Jm!=192&&Jm!=256){I4("BytesToKey: bits must be 128, 192, or 256");return null}Je=Jm/8;for(Jh=0;Jh<Jk.length;Jh++){Ji[Jh]=Jk.charCodeAt(Jh)}for(;;){Jh=0;if(Je){while(Je){Jl.push(Ji[Jh++]);
Je--;if(Jh==Ji.length){break}}}if(Jf&&Jh<Ji.length){while(Jf){Jg.push(Ji[Jh++]);Jf--;if(Jh==Ji.length){break}}}if((!Je&&!Jf)||(!Je&&Jh>=Ji.length)){break}}return{key:Jl,iv:Jg}},StringToPaddedData:function(Jh){var Jg=new Array();var Jf;Jh=Dl._utf8_encode(Jh);for(Jf=0;Jf<Jh.length;Jf++){Jg.push(Jh.charCodeAt(Jf))
}var Je=16-(Jf%16);for(Jf=0;Jf<Je;Jf++){Jg.push(Je)}return Jg},PaddedDataToString:function(Jh,Jf){var Jj="";var Jg;var Ji=Jh[Jh.length-1];if(Ji>=0&&Ji<=16){for(Jg=Jh.length-1;Jg>0;Jg--){if(Jh[Jg]!=Ji){break}}for(var Je=0;Je<=Jg;Je++){Jj+=String.fromCharCode(Jh[Je])}}else{if(!Jf){I4("Bogus pad:"+Ji+(typeof(g_to_dec)!="undefined"?" length: "+g_to_dec.length:""))
}}Jj=Dl._utf8_decode(Jj);return Jj},_utf8_encode:function(Jf){var Je="";for(var Jh=0;Jh<Jf.length;Jh++){var Jg=Jf.charCodeAt(Jh);if(Jg<128){Je+=String.fromCharCode(Jg)}else{if((Jg>127)&&(Jg<2048)){Je+=String.fromCharCode((Jg>>6)|192);Je+=String.fromCharCode((Jg&63)|128)}else{Je+=String.fromCharCode((Jg>>12)|224);
Je+=String.fromCharCode(((Jg>>6)&63)|128);Je+=String.fromCharCode((Jg&63)|128)}}}return Je},_utf8_decode:function(Je){var Jj="";var Jh=0;var Jk=0;var Ji=0;var Jg=0;var Jf=0;while(Jh<Je.length){Jk=Je.charCodeAt(Jh);if(Jk<128){Jj+=String.fromCharCode(Jk);Jh++}else{if((Jk>191)&&(Jk<224)){Jg=Je.charCodeAt(Jh+1);
Jj+=String.fromCharCode(((Jk&31)<<6)|(Jg&63));Jh+=2}else{Jg=Je.charCodeAt(Jh+1);Jf=Je.charCodeAt(Jh+2);Jj+=String.fromCharCode(((Jk&15)<<12)|((Jg&63)<<6)|(Jf&63));Jh+=3}}}return Jj},db64:function(Je){return Et(Je)},eb64:function(Je){return Ah(Je)},BytesToB64:function(Je){var Jg;var Jf="";for(Jg=0;Jg<Je.length;
Jg++){Jf+=String.fromCharCode(Je[Jg])}return Dl.eb64(Jf)},B64ToBytes:function(Jg){var Jh=Dl.db64(Jg);var Je=new Array();for(var Jf=0;Jf<Jh.length;Jf++){Je[Jf]=Jh.charCodeAt(Jf)}return Je},Prepare:function(Jh){var Je,Jj,Jg;var Jf=256;var Ji={mode:"ecb",b64:false,data:new Array(),key:new Array(),iv:new Array()};
if(Jh.mode=="cbc"){Ji.mode=Jh.mode}if(Jh.b64==true){Ji.b64=Jh.b64}if(typeof Jh.pass=="string"){if(Jh.bits==128||Jh.bits==192){Jf=Jh.bits}Jj=Dl.StringToKeyIv(Jh.pass,Jf);for(Je=0;Je<Jj.key.length;Je++){Ji.key[Je]=Jj.key[Je]}for(Je=0;Je<Jj.iv.length;Je++){Ji.iv[Je]=Jj.iv[Je]}}else{if(!(Jh.key instanceof Array)||(Jh.key.length!=16&&Jh.key.length!=24&&Jh.key.length!=32)){I4("obj.key must be a byte array of length 16, 24, or 32");
return null}for(Je=0;Je<Jh.key.length;Je++){if(typeof Jh.key[Je]!="number"){I4("obj.key must be a byte array of length 16, 24, or 32");return null}Ji.key[Je]=Jh.key[Je]}if(Ji.mode=="cbc"){if(!(Jh.iv instanceof Array)||Jh.iv.length!=16){I4("obj.iv must be a byte array of length 16");return null}for(Je=0;
Je<Jh.iv.length;Je++){if(typeof Jh.iv[Je]!="number"){I4("obj.iv must be a byte array of length 16");return null}Ji.iv[Je]=Jh.iv[Je]}}}if(typeof Jh.data=="string"){Jg=Dl.StringToPaddedData(Jh.data);for(Je=0;Je<Jg.length;Je++){Ji.data[Je]=Jg[Je]}}else{if(!(Jh.data instanceof Array)||Jh.data.length%16){I4("obj.data must be a byte array with a multiple of 16 length ");
return null}for(Je=0;Je<Jh.data.length;Je++){if(typeof Jh.data[Je]!="number"){I4("obj.data must be a byte array with a multiple of 16 length ");return null}Ji.data[Je]=Jh.data[Je]}}Ji.round=Dl.KeyExpansion(Ji.key);return Ji},Encrypt:function(Jk){var Je=new Array();var Jh=new Array();var Jg;var Jj,Ji;
var Jf;var Jl;Jl=Dl.Prepare(Jk);if(Jl==null){return null}if(Jl.mode=="cbc"){Jg=Jl.iv}for(Ji=0;Ji<Jl.data.length/16;Ji++){for(Jj=0;Jj<16;Jj++){Jh[Jj]=Jl.data[Ji*16+Jj];if(Jl.mode=="cbc"){Jh[Jj]^=Jg[Jj]}}Jg=Dl.Cipher(Jh,Jl.round);for(Jj=0;Jj<16;Jj++){Je[Ji*16+Jj]=Jg[Jj]}}if(Jl.b64){Je=Dl.BytesToB64(Je)
}return Je},Decrypt:function(Jk,Ji){var Jn=new Array();var Jm=new Array();var Jf=new Array();var Jh;var Jl,Jj;var Je;var Jg;Jg=Dl.Prepare(Jk);if(Jg==null){return null}if(Jg.b64){Jg.data=Dl.B64ToBytes(Jk.data)}if(Jg.mode=="cbc"){for(Jl=0;Jl<Jg.iv.length;Jl++){Jf[Jl]=Jg.iv[Jl]}}for(Jj=0;Jj<Jg.data.length/16;
Jj++){if(Jj>0&&Jg.mode=="cbc"){for(Jl=0;Jl<16;Jl++){Jf[Jl]=Jm[Jl]}}for(Jl=0;Jl<16;Jl++){Jm[Jl]=Jg.data[Jj*16+Jl]}Jh=Dl.InvCipher(Jm,Jg.round);for(Jl=0;Jl<16;Jl++){Jn[Jj*16+Jl]=Jh[Jl];if(Jg.mode=="cbc"){Jn[Jj*16+Jl]^=Jf[Jl]}}}return Dl.PaddedDataToString(Jn,Ji)},bin2hex:function(Jh){var Je=Jh.length;var Jf="";
var Ji;var Jg=0;while(0<Je--){Ji=Jh.charCodeAt(Jg++);Jf+=t[(Ji&240)>>4];Jf+=t[(Ji&15)]}return Jf},hex2bin:function(Jl){var Je=Jl.length;var Jg="";var Jk,Jj;var Ji,Jf;var Jh=0;while(Je>1){Ji=Jl.charAt(Jh++);Jk=Ji.charCodeAt(0);Jf=Jl.charAt(Jh++);Jj=Jf.charCodeAt(0);Jg+=String.fromCharCode((Ja[Jk]<<4)+Ja[Jj]);
Je-=2}return Jg},ok:function(Je){if(0==Je.length){return true}return Dl.isb64(Je)&&Je.length>=16},isb64:function(Jf){var Je=new RegExp("^[A-Za-z0-9+/=]+$");if(Jf.match(Je)){return true}return false}}}();function Hm(I8){var I2=new Date();var z=new Date(I2.getFullYear(),0,1,0,0,0,0);var I4=new Date(I2.getFullYear(),6,1,0,0,0,0);
var I3=z.toGMTString();var I1=new Date(I3.substring(0,I3.lastIndexOf(" ")-1));I3=I4.toGMTString();var I5=new Date(I3.substring(0,I3.lastIndexOf(" ")-1));var I6=(z-I1)/(1000*60*60);var I7=(I4-I5)/(1000*60*60);var e;if(I6==I7){e="0"}else{var I0=I6-I7;if(I0>=0){I6=I7}e="1"}if(I8==null){var t;for(t=0;t<document.getElementById("timezone").options.length;
t++){if(document.getElementById("timezone").options[t].value==DL(I6)+","+e){document.getElementById("timezone").selectedIndex=t;break}}}return DL(I6)+","+e}function DL(t){var e=parseInt(t);t-=parseInt(t);t*=60;var z=parseInt(t);t-=parseInt(t);t*=60;var I0=parseInt(t);var I1=e;I1=(e<10&&e>0)?"+0"+e:"+"+e;
I1=(e==0)?"0"+e:I1;I1=(e<0&&e>-10)?"-0"+Math.abs(e):I1;z=(z<10)?"0"+z:z;return I1+":"+z}function HU(){this.i=0;this.j=0;this.S=new Array()}function Bt(t){var z,e,I0;for(z=0;z<256;++z){this.S[z]=z}e=0;for(z=0;z<256;++z){e=(e+this.S[z]+t[z%t.length])&255;I0=this.S[z];this.S[z]=this.S[e];this.S[e]=I0}this.i=0;
this.j=0}function Er(){var e;this.i=(this.i+1)&255;this.j=(this.j+this.S[this.i])&255;e=this.S[this.i];this.S[this.i]=this.S[this.j];this.S[this.j]=e;return this.S[(e+this.S[this.i])&255]}HU.prototype.init=Bt;HU.prototype.next=Er;function GV(){return new HU()}var Gk=256;var Eh;var F9;var Ix;function IU(e){F9[Ix++]^=e&255;
F9[Ix++]^=(e>>8)&255;F9[Ix++]^=(e>>16)&255;F9[Ix++]^=(e>>24)&255;if(Ix>=Gk){Ix-=Gk}}function Em(){IU(new Date().getTime())}if(F9==null){F9=new Array();Ix=0;var Ia;if(typeof(navigator)!="undefined"&&navigator.appName=="Netscape"&&navigator.appVersion<"5"&&typeof(window)!="undefined"&&window.crypto){var H1=window.crypto.random(32);
for(Ia=0;Ia<H1.length;++Ia){F9[Ix++]=H1.charCodeAt(Ia)&255}}while(Ix<Gk){Ia=Math.floor(65536*Math.random());F9[Ix++]=Ia>>>8;F9[Ix++]=Ia&255}Ix=0;Em()}function GC(){if(Eh==null){Em();Eh=GV();Eh.init(F9);for(Ix=0;Ix<F9.length;++Ix){F9[Ix]=0}Ix=0}return Eh.next()}function AY(t){var e;for(e=0;e<t.length;
++e){t[e]=GC()}}function BW(){}BW.prototype.nextBytes=AY;function En(I0,e){var t=e-I0+1;Em();var I2=new Array();for(var z=0;z<4;z++){I2[z]=0}AY(I2);var I1=0;for(var z=0;z<4;z++){I1*=256;I1+=I2[z]}I1%=t;I1+=I0;return I1}};
