0.js 21 KB

1
  1. webpackJsonp([0],{261:function(n,l,t){"use strict";function e(n){return i._19(0,[(n()(),i.Z(0,0,null,null,15,"ion-item",[["class","item item-block"]],null,null,null,w.b,w.a)),i.Y(1,1097728,null,3,k.a,[S.a,x.a,i.j,i.z,[2,Y.a]],null,null),i._16(335544320,4,{contentLabel:0}),i._16(603979776,5,{_buttons:1}),i._16(603979776,6,{_icons:1}),i.Y(5,16384,null,0,Z.a,[],null,null),(n()(),i._18(-1,2,["\n "])),(n()(),i.Z(7,0,null,3,4,"ion-input",[["placeholder","请输入手机验证码"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(n,l,t){var e=!0;if("ngModelChange"===l){e=!1!==(n.component.msgCode=t)&&e}return e},A.b,A.a)),i.Y(8,671744,null,0,j.h,[[8,null],[8,null],[8,null],[8,null]],{model:[0,"model"]},{update:"ngModelChange"}),i._14(2048,null,j.f,null,[j.h]),i.Y(10,16384,null,0,j.g,[j.f],null,null),i.Y(11,5423104,null,0,M.a,[x.a,P.a,S.a,U.a,i.j,i.z,[2,F.a],[2,k.a],[2,j.f],T.a],{type:[0,"type"],placeholder:[1,"placeholder"]},null),(n()(),i._18(-1,2,["\n "])),(n()(),i.Z(13,0,null,4,1,"div",[["class","sendBtn"],["item-end",""],["tabable",""]],null,[[null,"click"]],function(n,l,t){var e=!0;if("click"===l){e=!1!==n.component.getMsg()&&e}return e},null,null)),(n()(),i._18(-1,null,["获取验证"])),(n()(),i._18(-1,2,["\n "]))],function(n,l){n(l,8,0,l.component.msgCode);n(l,11,0,"number","请输入手机验证码")},function(n,l){n(l,7,0,i._11(l,10).ngClassUntouched,i._11(l,10).ngClassTouched,i._11(l,10).ngClassPristine,i._11(l,10).ngClassDirty,i._11(l,10).ngClassValid,i._11(l,10).ngClassInvalid,i._11(l,10).ngClassPending)})}function u(n){return i._19(0,[(n()(),i.Z(0,0,null,null,12,"ion-item",[["class","item item-block"]],null,null,null,w.b,w.a)),i.Y(1,1097728,null,3,k.a,[S.a,x.a,i.j,i.z,[2,Y.a]],null,null),i._16(335544320,7,{contentLabel:0}),i._16(603979776,8,{_buttons:1}),i._16(603979776,9,{_icons:1}),i.Y(5,16384,null,0,Z.a,[],null,null),(n()(),i._18(-1,2,["\n "])),(n()(),i.Z(7,0,null,3,4,"ion-input",[["placeholder","请输入密码"],["type","password"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(n,l,t){var e=!0;if("ngModelChange"===l){e=!1!==(n.component.password=t)&&e}return e},A.b,A.a)),i.Y(8,671744,null,0,j.h,[[8,null],[8,null],[8,null],[8,null]],{model:[0,"model"]},{update:"ngModelChange"}),i._14(2048,null,j.f,null,[j.h]),i.Y(10,16384,null,0,j.g,[j.f],null,null),i.Y(11,5423104,null,0,M.a,[x.a,P.a,S.a,U.a,i.j,i.z,[2,F.a],[2,k.a],[2,j.f],T.a],{type:[0,"type"],placeholder:[1,"placeholder"]},null),(n()(),i._18(-1,2,["\n "]))],function(n,l){n(l,8,0,l.component.password);n(l,11,0,"password","请输入密码")},function(n,l){n(l,7,0,i._11(l,10).ngClassUntouched,i._11(l,10).ngClassTouched,i._11(l,10).ngClassPristine,i._11(l,10).ngClassDirty,i._11(l,10).ngClassValid,i._11(l,10).ngClassInvalid,i._11(l,10).ngClassPending)})}function o(n){return i._19(0,[(n()(),i._18(-1,null,["\n"])),(n()(),i.Z(1,0,null,null,60,"ion-header",[],null,null,null,null,null)),i.Y(2,16384,null,0,z.a,[x.a,i.j,i.z,[2,O.a]],null,null),(n()(),i._18(-1,null,["\n\n "])),(n()(),i.Z(4,0,null,null,56,"div",[["class","loginbg"],["style","overflow: visible;overflow-y: scroll;height: 100%;"]],null,null,null,null,null)),(n()(),i._18(-1,null,["\n "])),(n()(),i.Z(6,0,null,null,45,"div",[["class","divin"]],null,null,null,null,null)),(n()(),i._18(-1,null,["\n "])),(n()(),i.Z(8,0,null,null,1,"div",[["class","close"],["tabable",""]],null,[[null,"click"]],function(n,l,t){var e=!0;if("click"===l){e=!1!==n.component.goBack()&&e}return e},null,null)),(n()(),i.Z(9,0,null,null,0,"img",[["src","../../assets/imgs/nav_icon_close@3x.png"]],null,null,null,null,null)),(n()(),i._18(-1,null,["\n "])),(n()(),i.Z(11,0,null,null,1,"div",[["class","title"]],null,null,null,null,null)),(n()(),i._18(-1,null,["登录注册"])),(n()(),i._18(-1,null,["\n "])),(n()(),i.Z(14,0,null,null,26,"ion-list",[],null,null,null,null,null)),i.Y(15,16384,null,0,E.a,[x.a,i.j,i.z,P.a,B.l,T.a],null,null),(n()(),i._18(-1,null,["\n\n "])),(n()(),i.Z(17,0,null,null,16,"ion-item",[["class","item item-block"]],null,null,null,w.b,w.a)),i.Y(18,1097728,null,3,k.a,[S.a,x.a,i.j,i.z,[2,Y.a]],null,null),i._16(335544320,1,{contentLabel:0}),i._16(603979776,2,{_buttons:1}),i._16(603979776,3,{_icons:1}),i.Y(22,16384,null,0,Z.a,[],null,null),(n()(),i._18(-1,2,["\n "])),(n()(),i.Z(24,0,null,1,2,"ion-label",[["class","lab1"],["fixed",""]],null,null,null,null,null)),i.Y(25,16384,[[1,4]],0,N.a,[x.a,i.j,i.z,[8,null],[8,null],[8,""],[8,null]],null,null),(n()(),i._18(-1,null,["+86"])),(n()(),i._18(-1,2,["\n "])),(n()(),i.Z(28,0,null,3,4,"ion-input",[["class","input1"],["placeholder","请输入手机号码"],["type","tel"],["value",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(n,l,t){var e=!0;if("ngModelChange"===l){e=!1!==(n.component.mobile=t)&&e}return e},A.b,A.a)),i.Y(29,671744,null,0,j.h,[[8,null],[8,null],[8,null],[8,null]],{model:[0,"model"]},{update:"ngModelChange"}),i._14(2048,null,j.f,null,[j.h]),i.Y(31,16384,null,0,j.g,[j.f],null,null),i.Y(32,5423104,null,0,M.a,[x.a,P.a,S.a,U.a,i.j,i.z,[2,F.a],[2,k.a],[2,j.f],T.a],{value:[0,"value"],type:[1,"type"],placeholder:[2,"placeholder"]},null),(n()(),i._18(-1,2,["\n "])),(n()(),i._18(-1,null,["\n\n "])),(n()(),i.U(16777216,null,null,1,null,e)),i.Y(36,16384,null,0,V.i,[i.I,i.F],{ngIf:[0,"ngIf"]},null),(n()(),i._18(-1,null,["\n "])),(n()(),i.U(16777216,null,null,1,null,u)),i.Y(39,16384,null,0,V.i,[i.I,i.F],{ngIf:[0,"ngIf"]},null),(n()(),i._18(-1,null,["\n "])),(n()(),i._18(-1,null,["\n "])),(n()(),i.Z(42,0,null,null,5,"div",[["class","subbtn"]],null,null,null,null,null)),(n()(),i._18(-1,null,["\n "])),(n()(),i.Z(44,0,null,null,2,"button",[["class","mybtn"],["ion-button",""]],null,[[null,"click"]],function(n,l,t){var e=!0;if("click"===l){e=!1!==n.component.gotoSub()&&e}return e},D.b,D.a)),i.Y(45,1097728,null,0,K.a,[[8,""],x.a,i.j,i.z],null,null),(n()(),i._18(46,0,["",""])),(n()(),i._18(-1,null,["\n "])),(n()(),i._18(-1,null,["\n "])),(n()(),i.Z(49,0,null,null,1,"div",[["class","des"],["tabable",""]],null,[[null,"click"]],function(n,l,t){var e=!0;if("click"===l){e=!1!==n.component.changeLoginType()&&e}return e},null,null)),(n()(),i._18(50,null,["",""])),(n()(),i._18(-1,null,["\n\n "])),(n()(),i._18(-1,null,["\n "])),(n()(),i.Z(53,0,null,null,6,"div",[["class","agree"]],null,null,null,null,null)),(n()(),i._18(-1,null,["\n "])),(n()(),i.Z(55,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),i._18(-1,null,["登录即表明同意"])),(n()(),i.Z(57,0,null,null,1,"span",[["class","red"],["tabable",""]],null,[[null,"click"]],function(n,l,t){var e=!0;if("click"===l){e=!1!==n.component.gotoService()&&e}return e},null,null)),(n()(),i._18(-1,null,["服务协议"])),(n()(),i._18(-1,null,["\n "])),(n()(),i._18(-1,null,["\n "])),(n()(),i._18(-1,null,["\n\n"])),(n()(),i._18(-1,null,["\n\n\n"])),(n()(),i.Z(63,0,null,null,1,"ion-content",[["padding",""]],[[2,"statusbar-padding",null],[2,"has-refresher",null]],null,null,H.b,H.a)),i.Y(64,4374528,null,0,F.a,[x.a,P.a,T.a,i.j,i.z,U.a,q.a,i.u,[2,O.a],[2,R.a]],null,null)],function(n,l){var t=l.component;n(l,29,0,t.mobile);n(l,32,0,"","tel","请输入手机号码");n(l,36,0,t.msgLogin);n(l,39,0,!t.msgLogin)},function(n,l){var t=l.component;n(l,28,0,i._11(l,31).ngClassUntouched,i._11(l,31).ngClassTouched,i._11(l,31).ngClassPristine,i._11(l,31).ngClassDirty,i._11(l,31).ngClassValid,i._11(l,31).ngClassInvalid,i._11(l,31).ngClassPending);n(l,46,0,t.btnmsg);n(l,50,0,t.btnmsg2);n(l,63,0,i._11(l,64).statusbarPadding,i._11(l,64)._hasRefresher)})}Object.defineProperty(l,"__esModule",{value:!0});var i=t(0),a=t(2),s=(t(30),t(92)),r=t(31),c=t(273),d=t(23),f=t(142),h=function(n){function l(l,t,e,u,o,i,a){var s=n.call(this)||this;return s.navCtrl=l,s.navParams=t,s.toastController=e,s.C=u,s.LS=o,s.events=i,s.device=a,s.mobile="",s.seckey="f5b8b09fad6bf4e6d519a16b2f8b2053",s.msgLogin=!0,s.msgText="获取短信",s.msgCode="",s.password="",s.btnmsg="短信登录",s.btnmsg2="密码登录",s.isNew=!1,s}return Object(a.__extends)(l,n),l.prototype.ionViewDidLoad=function(){},l.prototype.changeLoginType=function(){"密码登录"==this.btnmsg?(this.btnmsg="短信登录",this.btnmsg2="密码登录",this.msgLogin=!0):(this.btnmsg="密码登录",this.btnmsg2="短信登录",this.msgLogin=!1)},l.prototype.login=function(){},l.prototype.gotoSub=function(){var n=this,l="sms",t="";1==this.msgLogin?(l="sms",t=this.msgCode):(l="pwd",t=this.password),1==this.checkMobile(this.mobile)?this.C.postApi("home/index/getconf",{method:"login_auth",phone:this.mobile,password:t,type:l}).subscribe(function(l){"SUCCESS"==l.result_code?(n.LS.setItem("TOKEN",l.token),n.LS.setItem("isLogin","TRUE"),n.LS.setItem("is_approved",l.is_approved),n.LS.setItem("id_approved",l.id_approved),n.LS.setItem("credit",l.credit),1==n.isNew?(n.upUserInfo(),n.errorLog(n.toastController,"注册成功"),n.navCtrl.push("Password1Page")):(n.errorLog(n.toastController,"登录成功"),n.navCtrl.pop().then(function(){n.events.publish("login-events")}))):n.errorLog(n.toastController,l.result_msg)},function(l){n.C.endLoading()}):this.errorLog(this.toastController,"请输入正确的手机号码")},l.prototype.upUserInfo=function(){var n=this;this.C.postApi("home/index/getconf",{method:"set_phone_info",token:this.LS.getItem("TOKEN"),phone_info:this.device.platform+"|"+this.device.manufacturer+"|"+this.device.model+"|"+this.device.version,clentid:this.device.uuid}).subscribe(function(n){},function(l){n.C.endLoading()})},l.prototype.getMsg=function(){var n=this;1==this.checkMobile(this.mobile)?this.C.postApi("home/index/getconf",{method:"get_sms_code",phone:this.mobile,sign:c.Md5.hashStr(this.seckey+this.mobile)+""}).subscribe(function(l){"SUCCESS"==l.result_code?(n.isNew="0"==l.is_new,n.errorLog(n.toastController,"发送成功")):n.errorLog(n.toastController,l.result_msg)},function(l){n.C.endLoading()}):this.errorLog(this.toastController,"请输入正确的手机号码")},l.prototype.gotoService=function(){this.navCtrl.push("ServicePage")},l.prototype.setPassword1=function(){this.navCtrl.push("Password1Page")},l.prototype.goBack=function(){this.navCtrl.pop()},l}(s.a),g=function(){return function(){}}(),p=t(201),_=t(202),b=t(203),m=t(204),v=t(205),y=t(206),C=t(207),L=t(208),I=t(209),w=t(93),k=t(16),S=t(15),x=t(1),Y=t(41),Z=t(52),A=t(271),j=t(18),M=t(136),P=t(4),U=t(6),F=t(20),T=t(7),z=t(45),O=t(5),E=t(53),B=t(8),N=t(54),V=t(10),D=t(32),K=t(19),H=t(63),q=t(22),R=t(13),X=t(11),J=t(46),W=t(55),$=i.X({encapsulation:2,styles:[],data:{}}),G=i.V("page-login",h,function(n){return i._19(0,[(n()(),i.Z(0,0,null,null,1,"page-login",[],null,null,null,o,$)),i.Y(1,49152,null,0,h,[R.a,X.a,J.a,r.a,d.a,W.a,f.a],null,null)],null,null)},{},{},[]),Q=t(133),nn=t(44);t.d(l,"LoginPageModuleNgFactory",function(){return ln});var ln=i.W(g,[],function(n){return i._7([i._8(512,i.i,i.S,[[8,[p.a,_.a,b.a,m.a,v.a,y.a,C.a,L.a,I.a,G]],[3,i.i],i.s]),i._8(4608,V.k,V.j,[i.r,[2,V.s]]),i._8(4608,j.k,j.k,[]),i._8(4608,j.c,j.c,[]),i._8(512,V.b,V.b,[]),i._8(512,j.j,j.j,[]),i._8(512,j.d,j.d,[]),i._8(512,j.i,j.i,[]),i._8(512,Q.a,Q.a,[]),i._8(512,Q.b,Q.b,[]),i._8(512,g,g,[]),i._8(256,nn.a,h,[])])})},271:function(n,l,t){"use strict";function e(n){return s._19(0,[(n()(),s.Z(0,0,[[1,0],["textInput",1]],null,1,"input",[["class","text-input"],["dir","auto"]],[[8,"type",0],[1,"aria-labelledby",0],[1,"min",0],[1,"max",0],[1,"step",0],[1,"autocomplete",0],[1,"autocorrect",0],[8,"placeholder",0],[8,"disabled",0],[8,"readOnly",0]],[[null,"input"],[null,"blur"],[null,"focus"],[null,"keydown"]],function(n,l,t){var e=!0,u=n.component;if("input"===l){e=!1!==u.onInput(t)&&e}if("blur"===l){e=!1!==u.onBlur(t)&&e}if("focus"===l){e=!1!==u.onFocus(t)&&e}if("keydown"===l){e=!1!==u.onKeydown(t)&&e}return e},null,null)),s.Y(1,278528,null,0,r.g,[s.p,s.q,s.j,s.A],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null)],function(n,l){n(l,1,0,"text-input","text-input-"+l.component._mode)},function(n,l){var t=l.component;n(l,0,0,t._type,t._labelId,t.min,t.max,t.step,t.autocomplete,t.autocorrect,t.placeholder,t._disabled,t._readonly)})}function u(n){return s._19(0,[(n()(),s.Z(0,0,[[1,0],["textInput",1]],null,1,"textarea",[["class","text-input"]],[[1,"aria-labelledby",0],[1,"autocomplete",0],[1,"autocorrect",0],[8,"placeholder",0],[8,"disabled",0],[8,"readOnly",0]],[[null,"input"],[null,"blur"],[null,"focus"],[null,"keydown"]],function(n,l,t){var e=!0,u=n.component;if("input"===l){e=!1!==u.onInput(t)&&e}if("blur"===l){e=!1!==u.onBlur(t)&&e}if("focus"===l){e=!1!==u.onFocus(t)&&e}if("keydown"===l){e=!1!==u.onKeydown(t)&&e}return e},null,null)),s.Y(1,278528,null,0,r.g,[s.p,s.q,s.j,s.A],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null)],function(n,l){n(l,1,0,"text-input","text-input-"+l.component._mode)},function(n,l){var t=l.component;n(l,0,0,t._labelId,t.autocomplete,t.autocorrect,t.placeholder,t._disabled,t._readonly)})}function o(n){return s._19(0,[(n()(),s.Z(0,0,null,null,1,"button",[["class","text-input-clear-icon"],["clear",""],["ion-button",""],["tabindex","-1"],["type","button"]],null,[[null,"click"],[null,"mousedown"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.clearTextInput(t)&&e}if("mousedown"===l){e=!1!==u.clearTextInput(t)&&e}return e},c.b,c.a)),s.Y(1,1097728,null,0,d.a,[[8,""],f.a,s.j,s.z],{clear:[0,"clear"]},null)],function(n,l){n(l,1,0,"")},null)}function i(n){return s._19(0,[(n()(),s.Z(0,0,null,null,0,"div",[["class","input-cover"]],null,[[null,"touchstart"],[null,"touchend"],[null,"mousedown"],[null,"mouseup"]],function(n,l,t){var e=!0,u=n.component;if("touchstart"===l){e=!1!==u._pointerStart(t)&&e}if("touchend"===l){e=!1!==u._pointerEnd(t)&&e}if("mousedown"===l){e=!1!==u._pointerStart(t)&&e}if("mouseup"===l){e=!1!==u._pointerEnd(t)&&e}return e},null,null))],null,null)}function a(n){return s._19(2,[s._16(671088640,1,{_native:0}),(n()(),s.U(16777216,null,null,1,null,e)),s.Y(2,16384,null,0,r.i,[s.I,s.F],{ngIf:[0,"ngIf"]},null),(n()(),s.U(16777216,null,null,1,null,u)),s.Y(4,16384,null,0,r.i,[s.I,s.F],{ngIf:[0,"ngIf"]},null),(n()(),s.U(16777216,null,null,1,null,o)),s.Y(6,16384,null,0,r.i,[s.I,s.F],{ngIf:[0,"ngIf"]},null),(n()(),s.U(16777216,null,null,1,null,i)),s.Y(8,16384,null,0,r.i,[s.I,s.F],{ngIf:[0,"ngIf"]},null)],function(n,l){var t=l.component;n(l,2,0,!t._isTextarea);n(l,4,0,t._isTextarea);n(l,6,0,t._clearInput);n(l,8,0,t._useAssist)},null)}t.d(l,"a",function(){return h}),l.b=a;var s=t(0),r=t(10),c=t(32),d=t(19),f=t(1),h=(t(4),t(15),t(7),s.X({encapsulation:2,styles:[],data:{}}))},273:function(n,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var e=function(){function n(){this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}return n.hashStr=function(n,l){return void 0===l&&(l=!1),this.onePassHasher.start().appendStr(n).end(l)},n.hashAsciiStr=function(n,l){return void 0===l&&(l=!1),this.onePassHasher.start().appendAsciiStr(n).end(l)},n._hex=function(l){var t,e,u,o,i=n.hexChars,a=n.hexOut;for(o=0;o<4;o+=1)for(e=8*o,t=l[o],u=0;u<8;u+=2)a[e+1+u]=i.charAt(15&t),a[e+0+u]=i.charAt(15&(t>>>=4)),t>>>=4;return a.join("")},n._md5cycle=function(n,l){var t=n[0],e=n[1],u=n[2],o=n[3];e=((e+=((u=((u+=((o=((o+=((t=((t+=(e&u|~e&o)+l[0]-680876936|0)<<7|t>>>25)+e|0)&e|~t&u)+l[1]-389564586|0)<<12|o>>>20)+t|0)&t|~o&e)+l[2]+606105819|0)<<17|u>>>15)+o|0)&o|~u&t)+l[3]-1044525330|0)<<22|e>>>10)+u|0,e=((e+=((u=((u+=((o=((o+=((t=((t+=(e&u|~e&o)+l[4]-176418897|0)<<7|t>>>25)+e|0)&e|~t&u)+l[5]+1200080426|0)<<12|o>>>20)+t|0)&t|~o&e)+l[6]-1473231341|0)<<17|u>>>15)+o|0)&o|~u&t)+l[7]-45705983|0)<<22|e>>>10)+u|0,e=((e+=((u=((u+=((o=((o+=((t=((t+=(e&u|~e&o)+l[8]+1770035416|0)<<7|t>>>25)+e|0)&e|~t&u)+l[9]-1958414417|0)<<12|o>>>20)+t|0)&t|~o&e)+l[10]-42063|0)<<17|u>>>15)+o|0)&o|~u&t)+l[11]-1990404162|0)<<22|e>>>10)+u|0,e=((e+=((u=((u+=((o=((o+=((t=((t+=(e&u|~e&o)+l[12]+1804603682|0)<<7|t>>>25)+e|0)&e|~t&u)+l[13]-40341101|0)<<12|o>>>20)+t|0)&t|~o&e)+l[14]-1502002290|0)<<17|u>>>15)+o|0)&o|~u&t)+l[15]+1236535329|0)<<22|e>>>10)+u|0,e=((e+=((u=((u+=((o=((o+=((t=((t+=(e&o|u&~o)+l[1]-165796510|0)<<5|t>>>27)+e|0)&u|e&~u)+l[6]-1069501632|0)<<9|o>>>23)+t|0)&e|t&~e)+l[11]+643717713|0)<<14|u>>>18)+o|0)&t|o&~t)+l[0]-373897302|0)<<20|e>>>12)+u|0,e=((e+=((u=((u+=((o=((o+=((t=((t+=(e&o|u&~o)+l[5]-701558691|0)<<5|t>>>27)+e|0)&u|e&~u)+l[10]+38016083|0)<<9|o>>>23)+t|0)&e|t&~e)+l[15]-660478335|0)<<14|u>>>18)+o|0)&t|o&~t)+l[4]-405537848|0)<<20|e>>>12)+u|0,e=((e+=((u=((u+=((o=((o+=((t=((t+=(e&o|u&~o)+l[9]+568446438|0)<<5|t>>>27)+e|0)&u|e&~u)+l[14]-1019803690|0)<<9|o>>>23)+t|0)&e|t&~e)+l[3]-187363961|0)<<14|u>>>18)+o|0)&t|o&~t)+l[8]+1163531501|0)<<20|e>>>12)+u|0,e=((e+=((u=((u+=((o=((o+=((t=((t+=(e&o|u&~o)+l[13]-1444681467|0)<<5|t>>>27)+e|0)&u|e&~u)+l[2]-51403784|0)<<9|o>>>23)+t|0)&e|t&~e)+l[7]+1735328473|0)<<14|u>>>18)+o|0)&t|o&~t)+l[12]-1926607734|0)<<20|e>>>12)+u|0,e=((e+=((u=((u+=((o=((o+=((t=((t+=(e^u^o)+l[5]-378558|0)<<4|t>>>28)+e|0)^e^u)+l[8]-2022574463|0)<<11|o>>>21)+t|0)^t^e)+l[11]+1839030562|0)<<16|u>>>16)+o|0)^o^t)+l[14]-35309556|0)<<23|e>>>9)+u|0,e=((e+=((u=((u+=((o=((o+=((t=((t+=(e^u^o)+l[1]-1530992060|0)<<4|t>>>28)+e|0)^e^u)+l[4]+1272893353|0)<<11|o>>>21)+t|0)^t^e)+l[7]-155497632|0)<<16|u>>>16)+o|0)^o^t)+l[10]-1094730640|0)<<23|e>>>9)+u|0,e=((e+=((u=((u+=((o=((o+=((t=((t+=(e^u^o)+l[13]+681279174|0)<<4|t>>>28)+e|0)^e^u)+l[0]-358537222|0)<<11|o>>>21)+t|0)^t^e)+l[3]-722521979|0)<<16|u>>>16)+o|0)^o^t)+l[6]+76029189|0)<<23|e>>>9)+u|0,e=((e+=((u=((u+=((o=((o+=((t=((t+=(e^u^o)+l[9]-640364487|0)<<4|t>>>28)+e|0)^e^u)+l[12]-421815835|0)<<11|o>>>21)+t|0)^t^e)+l[15]+530742520|0)<<16|u>>>16)+o|0)^o^t)+l[2]-995338651|0)<<23|e>>>9)+u|0,e=((e+=((o=((o+=(e^((t=((t+=(u^(e|~o))+l[0]-198630844|0)<<6|t>>>26)+e|0)|~u))+l[7]+1126891415|0)<<10|o>>>22)+t|0)^((u=((u+=(t^(o|~e))+l[14]-1416354905|0)<<15|u>>>17)+o|0)|~t))+l[5]-57434055|0)<<21|e>>>11)+u|0,e=((e+=((o=((o+=(e^((t=((t+=(u^(e|~o))+l[12]+1700485571|0)<<6|t>>>26)+e|0)|~u))+l[3]-1894986606|0)<<10|o>>>22)+t|0)^((u=((u+=(t^(o|~e))+l[10]-1051523|0)<<15|u>>>17)+o|0)|~t))+l[1]-2054922799|0)<<21|e>>>11)+u|0,e=((e+=((o=((o+=(e^((t=((t+=(u^(e|~o))+l[8]+1873313359|0)<<6|t>>>26)+e|0)|~u))+l[15]-30611744|0)<<10|o>>>22)+t|0)^((u=((u+=(t^(o|~e))+l[6]-1560198380|0)<<15|u>>>17)+o|0)|~t))+l[13]+1309151649|0)<<21|e>>>11)+u|0,e=((e+=((o=((o+=(e^((t=((t+=(u^(e|~o))+l[4]-145523070|0)<<6|t>>>26)+e|0)|~u))+l[11]-1120210379|0)<<10|o>>>22)+t|0)^((u=((u+=(t^(o|~e))+l[2]+718787259|0)<<15|u>>>17)+o|0)|~t))+l[9]-343485551|0)<<21|e>>>11)+u|0,n[0]=t+n[0]|0,n[1]=e+n[1]|0,n[2]=u+n[2]|0,n[3]=o+n[3]|0},n.prototype.start=function(){return this._dataLength=0,this._bufferLength=0,this._state.set(n.stateIdentity),this},n.prototype.appendStr=function(l){var t,e,u=this._buffer8,o=this._buffer32,i=this._bufferLength;for(e=0;e<l.length;e+=1){if((t=l.charCodeAt(e))<128)u[i++]=t;else if(t<2048)u[i++]=192+(t>>>6),u[i++]=63&t|128;else if(t<55296||t>56319)u[i++]=224+(t>>>12),u[i++]=t>>>6&63|128,u[i++]=63&t|128;else{if((t=1024*(t-55296)+(l.charCodeAt(++e)-56320)+65536)>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");u[i++]=240+(t>>>18),u[i++]=t>>>12&63|128,u[i++]=t>>>6&63|128,u[i++]=63&t|128}i>=64&&(this._dataLength+=64,n._md5cycle(this._state,o),i-=64,o[0]=o[16])}return this._bufferLength=i,this},n.prototype.appendAsciiStr=function(l){for(var t,e=this._buffer8,u=this._buffer32,o=this._bufferLength,i=0;;){for(t=Math.min(l.length-i,64-o);t--;)e[o++]=l.charCodeAt(i++);if(o<64)break;this._dataLength+=64,n._md5cycle(this._state,u),o=0}return this._bufferLength=o,this},n.prototype.appendByteArray=function(l){for(var t,e=this._buffer8,u=this._buffer32,o=this._bufferLength,i=0;;){for(t=Math.min(l.length-i,64-o);t--;)e[o++]=l[i++];if(o<64)break;this._dataLength+=64,n._md5cycle(this._state,u),o=0}return this._bufferLength=o,this},n.prototype.getState=function(){var n=this._state;return{buffer:String.fromCharCode.apply(null,this._buffer8),buflen:this._bufferLength,length:this._dataLength,state:[n[0],n[1],n[2],n[3]]}},n.prototype.setState=function(n){var l,t=n.buffer,e=n.state,u=this._state;for(this._dataLength=n.length,this._bufferLength=n.buflen,u[0]=e[0],u[1]=e[1],u[2]=e[2],u[3]=e[3],l=0;l<t.length;l+=1)this._buffer8[l]=t.charCodeAt(l)},n.prototype.end=function(l){void 0===l&&(l=!1);var t,e=this._bufferLength,u=this._buffer8,o=this._buffer32,i=1+(e>>2);if(this._dataLength+=e,u[e]=128,u[e+1]=u[e+2]=u[e+3]=0,o.set(n.buffer32Identity.subarray(i),i),e>55&&(n._md5cycle(this._state,o),o.set(n.buffer32Identity)),(t=8*this._dataLength)<=4294967295)o[14]=t;else{var a=t.toString(16).match(/(.*?)(.{0,8})$/);if(null===a)return;var s=parseInt(a[2],16),r=parseInt(a[1],16)||0;o[14]=s,o[15]=r}return n._md5cycle(this._state,o),l?this._state:n._hex(this._state)},n.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),n.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),n.hexChars="0123456789abcdef",n.hexOut=[],n.onePassHasher=new n,n}();l.Md5=e,"5d41402abc4b2a76b9719d911017c592"!==e.hashStr("hello")&&console.error("Md5 self test failed.")}});