var d,aa=this;function ba(a){return void 0!==a}function ca(a,b){for(var c=a.split("."),e=b||aa,f;f=c.shift();)if(null!=e[f])e=e[f];else return null;return e}function da(){}function h(a){a.a=function(){return a.mk?a.mk:a.mk=new a}}
function ea(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ga(a){return"array"==ea(a)}function ha(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ia(a){return"string"==typeof a}function ja(a){return"number"==typeof a}function ka(a){return"function"==ea(a)}function la(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ma(a){return a[na]||(a[na]=++pa)}var na="closure_uid_"+(1E9*Math.random()>>>0),pa=0;
function qa(a,b,c){return a.call.apply(a.bind,arguments)}function ra(a,b,c){if(!a)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,e);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function k(a,b,c){k=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?qa:ra;return k.apply(null,arguments)}
function sa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}var ta=Date.now||function(){return+new Date};function ua(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,e){return e in b?b[e]:a}));return a}function va(a,b){var c=a.split("."),e=aa;c[0]in e||!e.execScript||e.execScript("var "+c[0]);for(var f;c.length&&(f=c.shift());)!c.length&&ba(b)?e[f]=b:e=e[f]?e[f]:e[f]={}}
function m(a,b){function c(){}c.prototype=b.prototype;a.c=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.TB=function(a,c,g){var l=Array.prototype.slice.call(arguments,2);return b.prototype[c].apply(a,l)}};var wa;function ya(a,b){return 0==a.lastIndexOf(b,0)}function za(a,b){for(var c=a.split("%s"),e="",f=Array.prototype.slice.call(arguments,1);f.length&&1<c.length;)e+=c.shift()+f.shift();return e+c.join("%s")}function Aa(a){return/^[\s\xa0]*$/.test(a)}function Ba(a){return Aa(null==a?"":String(a))}function Ca(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")}var Da=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};
function Ea(a){return decodeURIComponent(a.replace(/\+/g," "))}function Fa(a){if(!Ga.test(a))return a;-1!=a.indexOf("\x26")&&(a=a.replace(Ha,"\x26amp;"));-1!=a.indexOf("\x3c")&&(a=a.replace(Ia,"\x26lt;"));-1!=a.indexOf("\x3e")&&(a=a.replace(Ja,"\x26gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ka,"\x26quot;"));-1!=a.indexOf("'")&&(a=a.replace(La,"\x26#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ma,"\x26#0;"));return a}var Ha=/&/g,Ia=/</g,Ja=/>/g,Ka=/"/g,La=/'/g,Ma=/\x00/g,Ga=/[\x00&<>"']/;
function Na(a){return-1!=a.indexOf("\x26")?"document"in aa?Oa(a):Pa(a):a}function Oa(a){var b={"\x26amp;":"\x26","\x26lt;":"\x3c","\x26gt;":"\x3e","\x26quot;":'"'},c;c=aa.document.createElement("div");return a.replace(Qa,function(a,f){var g=b[a];if(g)return g;if("#"==f.charAt(0)){var l=Number("0"+f.substr(1));isNaN(l)||(g=String.fromCharCode(l))}g||(c.innerHTML=a+" ",g=c.firstChild.nodeValue.slice(0,-1));return b[a]=g})}
function Pa(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"\x26";case "lt":return"\x3c";case "gt":return"\x3e";case "quot":return'"';default:if("#"==c.charAt(0)){var e=Number("0"+c.substr(1));if(!isNaN(e))return String.fromCharCode(e)}return a}})}var Qa=/&([^;\s<&]+);?/g;function Ra(a,b,c){var e=a;0<=b&&b<a.length&&0<c&&(e=a.substr(0,b)+a.substr(b+c,a.length-b-c));return e}
function Sa(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function Ta(a,b){return Array(b+1).join(a)}function Ua(a,b){var c=ba(void 0)?a.toFixed(void 0):String(a),e=c.indexOf(".");-1==e&&(e=c.length);return Ta("0",Math.max(0,b-e))+c}function Va(a,b){return a<b?-1:a>b?1:0}Math.random();function Xa(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}
function Ya(a){var b=ia(void 0)?Sa(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,f){return b+f.toUpperCase()})};var Za=Array.prototype,$a=Za.indexOf?function(a,b,c){return Za.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(ia(a))return ia(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},n=Za.forEach?function(a,b,c){Za.forEach.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=ia(a)?a.split(""):a,g=0;g<e;g++)g in f&&b.call(c,f[g],g,a)},ab=Za.filter?function(a,b,c){return Za.filter.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=[],
g=0,l=ia(a)?a.split(""):a,r=0;r<e;r++)if(r in l){var B=l[r];b.call(c,B,r,a)&&(f[g++]=B)}return f},bb=Za.map?function(a,b,c){return Za.map.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=Array(e),g=ia(a)?a.split(""):a,l=0;l<e;l++)l in g&&(f[l]=b.call(c,g[l],l,a));return f},cb=Za.reduce?function(a,b,c,e){e&&(b=k(b,e));return Za.reduce.call(a,b,c)}:function(a,b,c,e){var f=c;n(a,function(c,l){f=b.call(e,f,c,l,a)});return f},db=Za.some?function(a,b,c){return Za.some.call(a,b,c)}:function(a,b,c){for(var e=
a.length,f=ia(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&b.call(c,f[g],g,a))return!0;return!1},gb=Za.every?function(a,b,c){return Za.every.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=ia(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&!b.call(c,f[g],g,a))return!1;return!0};function hb(a,b,c){var e=0;n(a,function(a,g,l){b.call(c,a,g,l)&&++e},c);return e}
function jb(a,b,c){a:{for(var e=a.length,f=ia(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&b.call(c,f[g],g,a)){b=g;break a}b=-1}return 0>b?null:ia(a)?a.charAt(b):a[b]}function kb(a,b,c){a:{for(var e=a.length,f=ia(a)?a.split(""):a,e=e-1;0<=e;e--)if(e in f&&b.call(c,f[e],e,a)){b=e;break a}b=-1}return 0>b?null:ia(a)?a.charAt(b):a[b]}function lb(a,b){return 0<=$a(a,b)}function mb(a,b){lb(a,b)||a.push(b)}function nb(a,b){var c=$a(a,b),e;(e=0<=c)&&Za.splice.call(a,c,1);return e}
function ob(a){return Za.concat.apply(Za,arguments)}function pb(a){var b=a.length;if(0<b){for(var c=Array(b),e=0;e<b;e++)c[e]=a[e];return c}return[]}function qb(a,b){for(var c=1;c<arguments.length;c++){var e=arguments[c];if(ha(e)){var f=a.length||0,g=e.length||0;a.length=f+g;for(var l=0;l<g;l++)a[f+l]=e[l]}else a.push(e)}}function rb(a,b,c,e){return Za.splice.apply(a,sb(arguments,1))}function sb(a,b,c){return 2>=arguments.length?Za.slice.call(a,b):Za.slice.call(a,b,c)}
function tb(a,b){for(var c=[],e=0;e<b;e++)c[e]=a;return c};function ub(a,b,c){for(var e in a)b.call(c,a[e],e,a)}function vb(a,b){var c={},e;for(e in a)c[e]=b.call(void 0,a[e],e,a);return c}function wb(a){var b=[],c=0,e;for(e in a)b[c++]=a[e];return b}function xb(a){var b=[],c=0,e;for(e in a)b[c++]=e;return b}function p(a,b){for(var c=ha(b),e=c?b:arguments,c=c?0:1;c<e.length&&(a=a[e[c]],ba(a));c++);return a}function zb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function Ab(a){for(var b in a)return!1;return!0}
function Bb(a,b,c){if(b in a)throw Error('The object already contains the key "'+b+'"');a[b]=c}function Cb(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(c in b)if(!(c in a))return!1;return!0}var Db="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function Eb(a,b){for(var c,e,f=1;f<arguments.length;f++){e=arguments[f];for(c in e)a[c]=e[c];for(var g=0;g<Db.length;g++)c=Db[g],Object.prototype.hasOwnProperty.call(e,c)&&(a[c]=e[c])}}function Fb(a){var b=arguments.length;if(1==b&&ga(arguments[0]))return Fb.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},e=0;e<b;e+=2)c[arguments[e]]=arguments[e+1];return c}
function Gb(a){var b=arguments.length;if(1==b&&ga(arguments[0]))return Gb.apply(null,arguments[0]);for(var c={},e=0;e<b;e++)c[arguments[e]]=!0;return c};function Hb(a){if("function"==typeof a.Qd)return a.Qd();if(ia(a))return a.split("");if(ha(a)){for(var b=[],c=a.length,e=0;e<c;e++)b.push(a[e]);return b}return wb(a)}function Ib(a){if("function"==typeof a.ck)return a.ck();if("function"!=typeof a.Qd){if(ha(a)||ia(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return xb(a)}}
function Jb(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ha(a)||ia(a))n(a,b,c);else for(var e=Ib(a),f=Hb(a),g=f.length,l=0;l<g;l++)b.call(c,f[l],e&&e[l],a)};function q(a){return function(){return a}}var Kb=q(!0);function Lb(a){return Math.floor(Math.random()*a)};function Mb(a,b){this.Nf={};this.pb=[];this.zb=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var e=0;e<c;e+=2)this.set(arguments[e],arguments[e+1])}else if(a){a instanceof Mb?(c=a.ck(),e=a.Qd()):(c=xb(a),e=wb(a));for(var f=0;f<c.length;f++)this.set(c[f],e[f])}}d=Mb.prototype;d.QD=function(){return this.zb};d.Qd=function(){Nb(this);for(var a=[],b=0;b<this.pb.length;b++)a.push(this.Nf[this.pb[b]]);return a};d.ck=function(){Nb(this);return this.pb.concat()};
d.Ao=function(a){return Pb(this.Nf,a)};d.equals=function(a,b){if(this===a)return!0;if(this.zb!=a.QD())return!1;var c=b||Qb;Nb(this);for(var e,f=0;e=this.pb[f];f++)if(!c(this.get(e),a.get(e)))return!1;return!0};function Qb(a,b){return a===b}d.isEmpty=function(){return 0==this.zb};d.clear=function(){this.Nf={};this.zb=this.pb.length=0};d.remove=function(a){return Pb(this.Nf,a)?(delete this.Nf[a],this.zb--,this.pb.length>2*this.zb&&Nb(this),!0):!1};
function Nb(a){if(a.zb!=a.pb.length){for(var b=0,c=0;b<a.pb.length;){var e=a.pb[b];Pb(a.Nf,e)&&(a.pb[c++]=e);b++}a.pb.length=c}if(a.zb!=a.pb.length){for(var f={},c=b=0;b<a.pb.length;)e=a.pb[b],Pb(f,e)||(a.pb[c++]=e,f[e]=1),b++;a.pb.length=c}}d.get=function(a,b){return Pb(this.Nf,a)?this.Nf[a]:b};d.set=function(a,b){Pb(this.Nf,a)||(this.zb++,this.pb.push(a));this.Nf[a]=b};d.forEach=function(a,b){for(var c=this.ck(),e=0;e<c.length;e++){var f=c[e],g=this.get(f);a.call(b,g,f,this)}};d.clone=function(){return new Mb(this)};
d.kc=function(){Nb(this);for(var a={},b=0;b<this.pb.length;b++){var c=this.pb[b];a[c]=this.Nf[c]}return a};function Pb(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Rb;a:{var Sb=aa.navigator;if(Sb){var Tb=Sb.userAgent;if(Tb){Rb=Tb;break a}}Rb=""}function Ub(a){return-1!=Rb.indexOf(a)};var Vb=Ub("Opera")||Ub("OPR"),s=Ub("Trident")||Ub("MSIE"),Wb=Ub("Gecko")&&-1==Rb.toLowerCase().indexOf("webkit")&&!(Ub("Trident")||Ub("MSIE")),Xb=-1!=Rb.toLowerCase().indexOf("webkit"),Yb=Ub("Macintosh"),Zb,$b=aa.navigator||null;Zb=!!$b&&-1!=($b.appVersion||"").indexOf("X11");function ac(){var a=aa.document;return a?a.documentMode:void 0}
var bc=function(){var a="",b;if(Vb&&aa.opera)return a=aa.opera.version,ka(a)?a():a;Wb?b=/rv\:([^\);]+)(\)|;)/:s?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:Xb&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(Rb))?a[1]:"");return s&&(b=ac(),b>parseFloat(a))?String(b):a}(),cc={};
function dc(a){var b;if(!(b=cc[a])){b=0;for(var c=Da(String(bc)).split("."),e=Da(String(a)).split("."),f=Math.max(c.length,e.length),g=0;0==b&&g<f;g++){var l=c[g]||"",r=e[g]||"",B=RegExp("(\\d*)(\\D*)","g"),C=RegExp("(\\d*)(\\D*)","g");do{var H=B.exec(l)||["","",""],M=C.exec(r)||["","",""];if(0==H[0].length&&0==M[0].length)break;b=Va(0==H[1].length?0:parseInt(H[1],10),0==M[1].length?0:parseInt(M[1],10))||Va(0==H[2].length,0==M[2].length)||Va(H[2],M[2])}while(0==b)}b=cc[a]=0<=b}return b}
function ec(a){return s&&fc>=a}var gc=aa.document,fc=gc&&s?ac()||("CSS1Compat"==gc.compatMode?parseInt(bc,10):5):void 0;function hc(){this.tF=ta()}new hc;hc.prototype.set=function(a){this.tF=a};hc.prototype.reset=function(){this.set(ta())};hc.prototype.get=function(){return this.tF};var ic=Gb("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));function jc(){this.SA="";this.WH=kc}jc.prototype.qm=!0;jc.prototype.nm=function(){return this.SA};jc.prototype.toString=function(){return"Const{"+this.SA+"}"};function lc(a){return a instanceof jc&&a.constructor===jc&&a.WH===kc?a.SA:"type_error:Const"}var kc={};function mc(){this.iz="";this.TH=nc}mc.prototype.qm=!0;var nc={};mc.prototype.nm=function(){return this.iz};function oc(a){var b=new mc;b.iz=a;return b}var pc=oc(""),qc=/^[-.%_!# a-zA-Z0-9]+$/;function rc(){this.Qm="";this.UH=sc}rc.prototype.qm=!0;rc.prototype.nm=function(){return this.Qm};rc.prototype.ux=!0;rc.prototype.Wo=function(){return 1};var sc={};function tc(){this.sF="";this.XH=uc}tc.prototype.qm=!0;tc.prototype.nm=function(){return this.sF};tc.prototype.ux=!0;tc.prototype.Wo=function(){return 1};var uc={};function vc(){this.Qm="";this.SH=wc;this.pD=null}vc.prototype.ux=!0;vc.prototype.Wo=function(){return this.pD};vc.prototype.qm=!0;vc.prototype.nm=function(){return this.Qm};function xc(a){return a instanceof vc&&a.constructor===vc&&a.SH===wc?a.Qm:"type_error:SafeHtml"}var yc=/^[a-zA-Z0-9-]+$/,zc=Gb("action","cite","data","formaction","href","manifest","poster","src"),Ac=Gb("embed","iframe","link","script","style","template");
function Bc(a){if(!yc.test("input"))throw Error("Invalid tag name \x3cinput\x3e.");if("input"in Ac)throw Error("Tag name \x3cinput\x3e is not allowed for SafeHtml.");var b=null,c="\x3cinput";if(a)for(var e in a){if(!yc.test(e))throw Error('Invalid attribute name "'+e+'".');var f=a[e];if(null!=f){var g;g=e;if(f instanceof jc)f=lc(f);else if("style"==g.toLowerCase()){if(!la(f))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof f+" given: "+f);if(!(f instanceof
mc)){var l="",r=void 0;for(r in f){if(!/^[-_a-zA-Z0-9]+$/.test(r))throw Error("Name allows only [-_a-zA-Z0-9], got: "+r);var B=f[r];null!=B&&(B instanceof jc?B=lc(B):qc.test(B)||(B="zClosurez"),l+=r+":"+B+";")}f=l?oc(l):pc}f=f instanceof mc&&f.constructor===mc&&f.TH===nc?f.iz:"type_error:SafeStyle"}else{if(/^on/i.test(g))throw Error('Attribute "'+g+'" requires goog.string.Const value, "'+f+'" given.');if(g.toLowerCase()in zc)if(f instanceof tc)f=f instanceof tc&&f.constructor===tc&&f.XH===uc?f.sF:
"type_error:TrustedResourceUrl";else if(f instanceof rc)f=f instanceof rc&&f.constructor===rc&&f.UH===sc?f.Qm:"type_error:SafeUrl";else throw Error('Attribute "'+g+'" on tag "input" requires goog.html.SafeUrl or goog.string.Const value, "'+f+'" given.');}f.qm&&(f=f.nm());g=g+'\x3d"'+Fa(String(f))+'"';c+=" "+g}}e=void 0;ba(e)?ga(e)||(e=[e]):e=[];!0===ic.input?c+="\x3e":(b=Cc(e),c+="\x3e"+xc(b)+"\x3c/input\x3e",b=b.Wo());(a=a&&a.dir)&&(b=/^(ltr|rtl|auto)$/i.test(a)?0:null);return Dc(c,b)}
function Cc(a){function b(a){if(ga(a))n(a,b);else{if(!(a instanceof vc)){var g=null;a.ux&&(g=a.Wo());a=Dc(Fa(a.qm?a.nm():String(a)),g)}e+=xc(a);a=a.Wo();0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,e="";n(arguments,b);return Dc(e,c)}var wc={};function Dc(a,b){var c=new vc;c.Qm=a;c.pD=b;return c}Dc("",0);var Ec=!s||ec(9);!Wb&&!s||s&&ec(9)||Wb&&dc("1.9.1");var Fc=s&&!dc("9");function Gc(a,b){this.x=ba(a)?a:0;this.y=ba(b)?b:0}Gc.prototype.clone=function(){return new Gc(this.x,this.y)};function Hc(a,b){return new Gc(a.x-b.x,a.y-b.y)}Gc.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};Gc.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};Gc.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function Ic(a,b){this.width=a;this.height=b}d=Ic.prototype;d.clone=function(){return new Ic(this.width,this.height)};d.isEmpty=function(){return!(this.width*this.height)};d.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};d.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};d.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Jc(a){return a?new Kc(Lc(a)):wa||(wa=new Kc)}function t(a,b){var c=b||document,e=null;return(e=c.querySelectorAll&&c.querySelector?c.querySelector("."+a):Mc(document,"*",a,b)[0])||null}
function Mc(a,b,c,e){a=e||a;b=b&&"*"!=b?b.toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){e={};for(var f=0,g=0,l;l=a[g];g++)b==l.nodeName&&(e[f++]=l);e.length=f;return e}return a}a=a.getElementsByTagName(b||"*");if(c){e={};for(g=f=0;l=a[g];g++)b=l.className,"function"==typeof b.split&&lb(b.split(/\s+/),c)&&(e[f++]=l);e.length=f;return e}return a}
function Nc(a,b){ub(b,function(b,e){"style"==e?a.style.cssText=b:"class"==e?a.className=b:"for"==e?a.htmlFor=b:e in Oc?a.setAttribute(Oc[e],b):ya(e,"aria-")||ya(e,"data-")?a.setAttribute(e,b):a[e]=b})}var Oc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function Pc(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new Ic(a.clientWidth,a.clientHeight)}function Qc(a){return Xb||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}function Rc(a){return a?Sc(a):window}function Sc(a){return a.parentWindow||a.defaultView}function Tc(a,b,c){return Uc(document,arguments)}
function Uc(a,b){var c=b[0],e=b[1];if(!Ec&&e&&(e.name||e.type)){c=["\x3c",c];e.name&&c.push(' name\x3d"',Fa(e.name),'"');if(e.type){c.push(' type\x3d"',Fa(e.type),'"');var f={};Eb(f,e);delete f.type;e=f}c.push("\x3e");c=c.join("")}c=a.createElement(c);e&&(ia(e)?c.className=e:ga(e)?c.className=e.join(" "):Nc(c,e));2<b.length&&Vc(a,c,b,2);return c}
function Vc(a,b,c,e){function f(c){c&&b.appendChild(ia(c)?a.createTextNode(c):c)}for(;e<c.length;e++){var g=c[e];!ha(g)||la(g)&&0<g.nodeType?f(g):n(Wc(g)?pb(g):g,f)}}function Xc(a){return Yc(document,a)}function Yc(a,b){var c=a.createElement("div");s?(c.innerHTML="\x3cbr\x3e"+b,c.removeChild(c.firstChild)):c.innerHTML=b;if(1==c.childNodes.length)return c.removeChild(c.firstChild);for(var e=a.createDocumentFragment();c.firstChild;)e.appendChild(c.firstChild);return e}
function Zc(a){for(var b;b=a.firstChild;)a.removeChild(b)}function $c(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function ad(a){return void 0!=a.firstElementChild?a.firstElementChild:bd(a.firstChild)}function bd(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function cd(a){return la(a)&&1==a.nodeType}
function dd(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function Lc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function ed(a){return a.contentDocument||a.contentWindow.document}
function fd(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else Zc(a),a.appendChild(Lc(a).createTextNode(String(b)))}var gd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},hd={IMG:" ",BR:"\n"};function id(a){return jd(a)&&kd(a)}function ld(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))}
function jd(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified}function kd(a){a=a.tabIndex;return ja(a)&&0<=a&&32768>a}function md(a){if(Fc&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];nd(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Fc||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}function od(a){var b=[];nd(a,b,!1);return b.join("")}
function nd(a,b,c){if(!(a.nodeName in gd))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in hd)b.push(hd[a.nodeName]);else for(a=a.firstChild;a;)nd(a,b,c),a=a.nextSibling}function Wc(a){if(a&&"number"==typeof a.length){if(la(a))return"function"==typeof a.item||"string"==typeof a.item;if(ka(a))return"function"==typeof a.item}return!1}function Kc(a){this.$a=a||aa.document||document}d=Kc.prototype;d.p=Jc;function pd(a){return a.$a}
d.b=function(a){return ia(a)?this.$a.getElementById(a):a};d.Pw=function(a,b){return t(a,b||this.$a)};d.bH=Nc;d.g=function(a,b,c){return Uc(this.$a,arguments)};d.createElement=function(a){return this.$a.createElement(a)};d.createTextNode=function(a){return this.$a.createTextNode(String(a))};function qd(a,b){return Yc(a.$a,b)}function rd(a){return"CSS1Compat"==a.$a.compatMode}function sd(a){return Qc(a.$a)}
function td(a){var b=a.$a;a=Qc(b);b=Sc(b);return s&&dc("10")&&b.pageYOffset!=a.scrollTop?new Gc(a.scrollLeft,a.scrollTop):new Gc(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}d.appendChild=function(a,b){a.appendChild(b)};d.append=function(a,b){Vc(Lc(a),a,arguments,1)};d.S=Zc;d.RD=ad;d.sM=cd;d.contains=dd;d.Pg=fd;
d.Rd=function(a){var b;(b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!jd(a)||kd(a)):id(a))&&s?(a=ka(a.getBoundingClientRect)?a.getBoundingClientRect():{height:a.offsetHeight,width:a.offsetWidth},a=null!=a&&0<a.height&&0<a.width):a=b;return a};/*
 Portions of this code are from the Dojo Toolkit, received by
 The Closure Library Authors under the BSD license. All other code is
 Copyright 2005-2009 The Closure Library Authors. All Rights Reserved.

The "New" BSD License:

Copyright (c) 2005-2009, The Dojo Foundation
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
    list of conditions and the following disclaimer.
 Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.
 Neither the name of the Dojo Foundation nor the names of its contributors
    may be used to endorse or promote products derived from this software
    without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
var ud=function(){function a(a,c){if(!a)return[];if(a.constructor==Array)return a;if(!ia(a))return[a];if(ia(c)&&(c=ia(c)?document.getElementById(c):c,!c))return[];c=c||document;var f=c.ownerDocument||c.documentElement;ih=c.contentType&&"application/xml"==c.contentType||Vb&&(c.doctype||"[object XMLDocument]"==f.toString())||!!f&&(Df?f.xml:c.xmlVersion||f.xmlVersion);return(f=e(a)(c))&&f.rt?f:b(f)}function b(a){if(a&&a.rt)return a;var b=[];if(!a||!a.length)return b;a[0]&&b.push(a[0]);if(2>a.length)return b;
fe++;if(Df&&ih){var c=fe+"";a[0].setAttribute("_zipIdx",c);for(var e=1,f;f=a[e];e++)a[e].getAttribute("_zipIdx")!=c&&b.push(f),f.setAttribute("_zipIdx",c)}else if(Df&&a.yK)try{for(e=1;f=a[e];e++)Ob(f)&&b.push(f)}catch(g){}else for(a[0]&&(a[0]._zipIdx=fe),e=1;f=a[e];e++)a[e]._zipIdx!=fe&&b.push(f),f._zipIdx=fe;return b}function c(a,b){if(!b)return 1;var c=Aw(a);return b[c]?0:b[c]=1}function e(a,b){if(Gs){var c=Hs[a];if(c&&!b)return c}if(c=Is[a])return c;var c=a.charAt(0),g=-1==a.indexOf(" ");0<=a.indexOf("#")&&
g&&(b=!0);if(!Gs||b||-1!="\x3e~+".indexOf(c)||Df&&-1!=a.indexOf(":")||S&&0<=a.indexOf(".")||-1!=a.indexOf(":contains")||-1!=a.indexOf("|\x3d")){var l=a.split(/\s*,\s*/);return Is[a]=2>l.length?f(a):function(a){for(var b=0,c=[],e;e=l[b++];)c=c.concat(f(e)(a));return c}}var r=0<="\x3e~+".indexOf(a.charAt(a.length-1))?a+" *":a;return Hs[a]=function(b){try{if(9!=b.nodeType&&!g)throw"";var c=b.querySelectorAll(r);Df?c.yK=!0:c.rt=!0;return c}catch(f){return e(a,!0)(b)}}}function f(a){var b=eb(Da(a));if(1==
b.length){var c=g(b[0]);return function(a){if(a=c(a,[]))a.rt=!0;return a}}return function(a){a=Wa(a);for(var c,e,f=b.length,l,r,B=0;B<f;B++){r=[];c=b[B];e=a.length-1;0<e&&(l={},r.rt=!0);e=g(c);for(var C=0;c=a[C];C++)e(c,r,l);if(!r.length)break;a=r}return r}}function g(a){var b=Js[a.query];if(b)return b;var c=a.jE,c=c?c.ut:"",e=C(a,{cm:1}),f="*"==a.tag,g=document.getElementsByClassName;if(c)g={cm:1},f&&(g.tag=1),e=C(a,g),"+"==c?b=B(e):"~"==c?b=r(e):"\x3e"==c&&(b=l(e));else if(a.id)e=!a.BE&&f?Kb:C(a,
{cm:1,id:1}),b=function(b,c){var f=Jc(b).b(a.id),g;if((g=f&&e(f))&&!(g=9==b.nodeType)){for(g=f.parentNode;g&&g!=b;)g=g.parentNode;g=!!g}if(g)return Wa(f,c)};else if(g&&/\{\s*\[native code\]\s*\}/.test(String(g))&&a.Dc.length&&!S)var e=C(a,{cm:1,Dc:1,id:1}),H=a.Dc.join(" "),b=function(a,b){for(var c=Wa(0,b),f,g=0,l=a.getElementsByClassName(H);f=l[g++];)e(f,a)&&c.push(f);return c};else f||a.BE?(e=C(a,{cm:1,tag:1,id:1}),b=function(b,c){for(var f=Wa(0,c),g,l=0,r=b.getElementsByTagName(a.getTag());g=r[l++];)e(g,
b)&&f.push(g);return f}):b=function(b,c){for(var e=Wa(0,c),f,g=0,l=b.getElementsByTagName(a.getTag());f=l[g++];)e.push(f);return e};return Js[a.query]=b}function l(a){a=a||Kb;return function(b,e,f){for(var g=0,l=b[Ks];b=l[g++];)wj(b)&&(!f||c(b,f))&&a(b,g)&&e.push(b);return e}}function r(a){return function(b,e,f){for(b=b[xj];b;){if(wj(b)){if(f&&!c(b,f))break;a(b)&&e.push(b)}b=b[xj]}return e}}function B(a){return function(b,e,f){for(;b=b[xj];)if(!sm||Ob(b)){f&&!c(b,f)||!a(b)||e.push(b);break}return e}}
function C(a,b){if(!a)return Kb;b=b||{};var c=null;b.cm||(c=fa(c,Ob));b.tag||"*"!=a.tag&&(c=fa(c,function(b){return b&&b.tagName==a.getTag()}));b.Dc||n(a.Dc,function(a,b){var e=new RegExp("(?:^|\\s)"+a+"(?:\\s|$)");c=fa(c,function(a){return e.test(a.className)});c.count=b});b.Rk||n(a.Rk,function(a){var b=a.name;kp[b]&&(c=fa(c,kp[b](b,a.value)))});b.mr||n(a.mr,function(a){var b,e=a.attr;a.type&&Ls[a.type]?b=Ls[a.type](e,a.dy):e.length&&(b=Bw(e));b&&(c=fa(c,b))});b.id||a.id&&(c=fa(c,function(b){return!!b&&
b.id==a.id}));c||"default"in b||(c=Kb);return c}function H(a){return oa(a)%2}function M(a){return!(oa(a)%2)}function oa(a){var b=a.parentNode,c=0,e=b[Ks],f=a._i||-1,g=b._l||-1;if(!e)return-1;e=e.length;if(g==e&&0<=f&&0<=g)return f;b._l=e;f=-1;for(b=b.firstElementChild||b.firstChild;b;b=b[xj])wj(b)&&(b._i=++c,a===b&&(f=c));return f}function ib(a){for(;a=a[xj];)if(wj(a))return!1;return!0}function yb(a){for(;a=a[Cw];)if(wj(a))return!1;return!0}function fb(a,b){return a?"class"==b?a.className||"":"for"==
b?a.htmlFor||"":"style"==b?a.style.cssText||"":(ih?a.getAttribute(b):a.getAttribute(b,2))||"":""}function Ob(a){return 1==a.nodeType}function fa(a,b){return a?b?function(){return a.apply(window,arguments)&&b.apply(window,arguments)}:a:b}function eb(a){function b(){0<=C&&(xa.id=c(C,S).replace(/\\/g,""),C=-1);if(0<=H){var a=H==S?null:c(H,S);0>"\x3e~+".indexOf(a)?xa.tag=a:xa.ut=a;H=-1}0<=B&&(xa.Dc.push(c(B+1,S).replace(/\\/g,"")),B=-1)}function c(b,e){return Da(a.slice(b,e))}a=0<="\x3e~+".indexOf(a.slice(-1))?
a+" * ":a+" ";for(var e=[],f=-1,g=-1,l=-1,r=-1,B=-1,C=-1,H=-1,oa="",M="",ib,S=0,yb=a.length,xa=null,fa=null;oa=M,M=a.charAt(S),S<yb;S++)"\\"!=oa&&(xa||(ib=S,xa={query:null,Rk:[],mr:[],Dc:[],tag:null,ut:null,id:null,getTag:function(){return ih?this.OR:this.tag}},H=S),0<=f?"]"==M?(fa.attr?fa.dy=c(l||f+1,S):fa.attr=c(f+1,S),!(f=fa.dy)||'"'!=f.charAt(0)&&"'"!=f.charAt(0)||(fa.dy=f.slice(1,-1)),xa.mr.push(fa),fa=null,f=l=-1):"\x3d"==M&&(l=0<="|~^$*".indexOf(oa)?oa:"",fa.type=l+M,fa.attr=c(f+1,S-l.length),
l=S+1):0<=g?")"==M&&(0<=r&&(fa.value=c(g+1,S)),r=g=-1):"#"==M?(b(),C=S+1):"."==M?(b(),B=S):":"==M?(b(),r=S):"["==M?(b(),f=S,fa={}):"("==M?(0<=r&&(fa={name:c(r+1,S),value:null},xa.Rk.push(fa)),g=S):" "==M&&oa!=M&&(b(),0<=r&&xa.Rk.push({name:c(r+1,S)}),xa.BE=xa.Rk.length||xa.mr.length||xa.Dc.length,xa.zW=xa.query=c(ib,S),xa.OR=xa.tag=xa.ut?null:xa.tag||"*",xa.tag&&(xa.tag=xa.tag.toUpperCase()),e.length&&e[e.length-1].ut&&(xa.jE=e.pop(),xa.query=xa.jE.query+" "+xa.query),e.push(xa),xa=null));return e}
function Wa(a,b){var c=b||[];a&&c.push(a);return c}var S=Xb&&"BackCompat"==document.compatMode,Df=s&&!dc("9"),Ks=document.firstChild.children?"children":"childNodes",ih=!1,Ls={"*\x3d":function(a,b){return function(c){return 0<=fb(c,a).indexOf(b)}},"^\x3d":function(a,b){return function(c){return 0==fb(c,a).indexOf(b)}},"$\x3d":function(a,b){return function(c){c=" "+fb(c,a);return c.lastIndexOf(b)==c.length-b.length}},"~\x3d":function(a,b){var c=" "+b+" ";return function(b){return 0<=(" "+fb(b,a)+" ").indexOf(c)}},
"|\x3d":function(a,b){b=" "+b;return function(c){c=" "+fb(c,a);return c==b||0==c.indexOf(b+"-")}},"\x3d":function(a,b){return function(c){return fb(c,a)==b}}},sm="undefined"==typeof document.firstChild.nextElementSibling,xj=sm?"nextSibling":"nextElementSibling",Cw=sm?"previousSibling":"previousElementSibling",wj=sm?Ob:Kb,kp={checked:function(){return function(a){return a.checked||a.attributes.checked}},"first-child":function(){return yb},"last-child":function(){return ib},"only-child":function(){return function(a){return yb(a)&&
ib(a)?!0:!1}},empty:function(){return function(a){var b=a.childNodes;for(a=a.childNodes.length-1;0<=a;a--){var c=b[a].nodeType;if(1===c||3==c)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if('"'==c||"'"==c)b=b.slice(1,-1);return function(a){return 0<=a.innerHTML.indexOf(b)}},not:function(a,b){var c=eb(b)[0],e={cm:1};"*"!=c.tag&&(e.tag=1);c.Dc.length||(e.Dc=1);var f=C(c,e);return function(a){return!f(a)}},"nth-child":function(a,b){if("odd"==b)return H;if("even"==b)return M;if(-1!=b.indexOf("n")){var c=
b.split("n",2),e=c[0]?"-"==c[0]?-1:parseInt(c[0],10):1,f=c[1]?parseInt(c[1],10):0,g=0,l=-1;0<e?0>f?f=f%e&&e+f%e:0<f&&(f>=e&&(g=f-f%e),f%=e):0>e&&(e*=-1,0<f&&(l=f,f%=e));if(0<e)return function(a){a=oa(a);return a>=g&&(0>l||a<=l)&&a%e==f};b=f}var r=parseInt(b,10);return function(a){return oa(a)==r}}},Bw=Df?function(a){var b=a.toLowerCase();"class"==b&&(a="className");return function(c){return ih?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},
Js={},Is={},Hs={},Gs=!!document.querySelectorAll&&(!Xb||dc("526")),fe=0,Aw=Df?function(a){return ih?a.getAttribute("_uid")||a.setAttribute("_uid",++fe)||fe:a.uniqueID}:function(a){return a._uid||(a._uid=++fe)};a.Rk=kp;return a}();va("goog.dom.query",ud);va("goog.dom.query.pseudos",ud.Rk);var ua=function(a){return p(u.goog,a.split("."))||a},h=function(a){a.a=function(){return a.mk?a.mk:a.mk=new a};a.rc=function(){return!!a.mk};a.RK=function(){delete a.mk}},u="undefined"==typeof settings?{}:settings,v=jQuery,w=jQuery.Deferred,x=jQuery.when;function y(){return x().promise()}
var vd=jQuery.inArray,wd=jQuery.makeArray,xd=jQuery.map,yd=jQuery.each,z=jQuery.proxy,zd=jQuery.extend,Ad=jQuery.sprintf,Bd=jQuery.param,Cd=jQuery.deparam,Dd=jQuery.trim,Ed=jQuery.grep,Fd=jQuery.isArray,Gd=jQuery.isEmptyObject,Hd=jQuery.isFunction,Id=jQuery.isPlainObject,Jd=jQuery.isString,Kd=jQuery.isNumeric,Ld=jQuery.isNull,Md=jQuery.isUndefined,Nd=jQuery.isNullOrUndefined,Od=jQuery.isSimple,Pd=jQuery.isInstanceOf;function Qd(a){return Pd(a,Rd)}function Sd(a){return Pd(a,Td)}
function Ud(a){throw Error(Ad.apply(null,arguments));};function Td(a){this.data=[];this.set.apply(this,arguments);return this}Td.prototype.data;d=Td.prototype;d.empty=function(){this.data=[];return this};
d.set=function(a){for(var b=wd(arguments),c=0;c<b.length;c+=1)switch(!0){case Sd(b[c]):this.set(b[c].toArray());break;case Jd(b[c])&&Od(b[c+1])&&!Nd(b[c+1]):this.data.push({name:b[c],value:b[c+1]});c+=1;break;case Jd(b[c])&&Fd(b[c+1]):for(var e=0;e<b[c+1].length;e++)this.data.push({name:b[c],value:b[c+1][e]});break;case Fd(b[c]):for(e=0;e<b[c].length;e++)Id(b[c][e])&&Jd(b[c][e].name)&&Od(b[c][e].value)&&!Nd(b[c][e].value)&&this.data.push(b[c][e]);break;case Id(b[c]):for(e in b[c])if(!Nd(b[c][e]))if(Fd(b[c][e]))for(var f=
0;f<b[c][e].length;f++)this.data.push({name:e,value:b[c][e][f]});else Od(b[c][e])&&this.data.push({name:e,value:b[c][e]})}return this};d.get=function(a){var b=void 0,c;for(c in this.data)this.data[c].name==a&&(Md(b)?b=this.data[c].value:Fd(b)?b.push(this.data[c].value):b=[b,this.data[c].value]);return b};d.replace=function(){var a=new Td;a.set.apply(a,arguments);a=zd(this.kc(),a.kc());this.empty().set(a);return this};
d.remove=function(){for(var a=0;a<this.data.length;a+=1)-1!=vd(this.data[a].name,arguments)&&(this.data.splice(a,1),a-=1);return this};d.kc=function(){for(var a={},b=0;b<this.data.length;b+=1){var c=this.data[b].name,e=this.data[b].value;Md(a[c])?a[c]=e:Fd(a[c])?a[c].push(e):a[c]=[a[c],e]}return a};d.toArray=function(){var a=[],b;for(b in this.data)a.push({name:this.data[b].name,value:this.data[b].value});return a};d.nn=function(){return Bd(this.data)||""};var Vd=!s||ec(9),Wd=!s||ec(9),Xd=s&&!dc("9");!Xb||dc("528");Wb&&dc("1.9b")||s&&dc("8")||Vb&&dc("9.5")||Xb&&dc("528");Wb&&!dc("8")||s&&dc("9");function Yd(){0!=Zd&&($d[ma(this)]=this);this.ni=this.ni;this.Lk=this.Lk}var Zd=0,$d={};Yd.prototype.ni=!1;Yd.prototype.O=function(){if(!this.ni&&(this.ni=!0,this.I(),0!=Zd)){var a=ma(this);delete $d[a]}};Yd.prototype.I=function(){if(this.Lk)for(;this.Lk.length;)this.Lk.shift()()};function ae(a){a&&"function"==typeof a.O&&a.O()};function be(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.Qk=!1;this.vF=!0}be.prototype.I=function(){};be.prototype.O=function(){};be.prototype.stopPropagation=function(){this.Qk=!0};be.prototype.preventDefault=function(){this.defaultPrevented=!0;this.vF=!1};function ce(a){ce[" "](a);return a}ce[" "]=da;function de(a,b){be.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.fz=!1;this.xg=null;a&&this.init(a,b)}m(de,be);var ee=[1,4,2];
de.prototype.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;if(e){if(Wb){var f;a:{try{ce(e.nodeName);f=!0;break a}catch(g){}f=!1}f||(e=null)}}else"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;this.offsetX=Xb||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=Xb||void 0!==a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:
a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.fz=Yb?a.metaKey:a.ctrlKey;this.state=a.state;this.xg=a;a.defaultPrevented&&this.preventDefault()};function ge(a){return Vd?0==a.xg.button:"click"==a.type?!0:!!(a.xg.button&ee[0])}
de.prototype.stopPropagation=function(){de.c.stopPropagation.call(this);this.xg.stopPropagation?this.xg.stopPropagation():this.xg.cancelBubble=!0};de.prototype.preventDefault=function(){de.c.preventDefault.call(this);var a=this.xg;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Xd)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};de.prototype.I=function(){};var he="closure_listenable_"+(1E6*Math.random()|0);function ie(a){return!(!a||!a[he])}var je=0;function ke(a,b,c,e,f){this.uk=a;this.proxy=null;this.src=b;this.type=c;this.In=!!e;this.Ws=f;this.key=++je;this.Tm=this.pr=!1}function le(a){a.Tm=!0;a.uk=null;a.proxy=null;a.src=null;a.Ws=null};function me(a){this.src=a;this.Mb={};this.Vq=0}d=me.prototype;d.add=function(a,b,c,e,f){var g=a.toString();a=this.Mb[g];a||(a=this.Mb[g]=[],this.Vq++);var l=ne(a,b,e,f);-1<l?(b=a[l],c||(b.pr=!1)):(b=new ke(b,this.src,g,!!e,f),b.pr=c,a.push(b));return b};d.remove=function(a,b,c,e){a=a.toString();if(!(a in this.Mb))return!1;var f=this.Mb[a];b=ne(f,b,c,e);return-1<b?(le(f[b]),Za.splice.call(f,b,1),0==f.length&&(delete this.Mb[a],this.Vq--),!0):!1};
function oe(a,b){var c=b.type;if(!(c in a.Mb))return!1;var e=nb(a.Mb[c],b);e&&(le(b),0==a.Mb[c].length&&(delete a.Mb[c],a.Vq--));return e}d.Sm=function(a){a=a&&a.toString();var b=0,c;for(c in this.Mb)if(!a||c==a){for(var e=this.Mb[c],f=0;f<e.length;f++)++b,le(e[f]);delete this.Mb[c];this.Vq--}return b};d.bb=function(a,b){var c=this.Mb[a.toString()],e=[];if(c)for(var f=0;f<c.length;++f){var g=c[f];g.In==b&&e.push(g)}return e};
d.Yo=function(a,b,c,e){a=this.Mb[a.toString()];var f=-1;a&&(f=ne(a,b,c,e));return-1<f?a[f]:null};function ne(a,b,c,e){for(var f=0;f<a.length;++f){var g=a[f];if(!g.Tm&&g.uk==b&&g.In==!!c&&g.Ws==e)return f}return-1};var pe="closure_lm_"+(1E6*Math.random()|0),qe={},re=0;function se(a,b,c,e,f){if(ga(b)){for(var g=0;g<b.length;g++)se(a,b[g],c,e,f);return null}c=te(c);return ie(a)?a.C(b,c,e,f):ue(a,b,c,!1,e,f)}function ue(a,b,c,e,f,g){if(!b)throw Error("Invalid event type");var l=!!f,r=ve(a);r||(a[pe]=r=new me(a));c=r.add(b,c,e,f,g);if(c.proxy)return c;e=we();c.proxy=e;e.src=a;e.uk=c;a.addEventListener?a.addEventListener(b.toString(),e,l):a.attachEvent(xe(b.toString()),e);re++;return c}
function we(){var a=ye,b=Wd?function(c){return a.call(b.src,b.uk,c)}:function(c){c=a.call(b.src,b.uk,c);if(!c)return c};return b}function ze(a,b,c,e,f){if(ga(b)){for(var g=0;g<b.length;g++)ze(a,b[g],c,e,f);return null}c=te(c);return ie(a)?a.AE(b,c,e,f):ue(a,b,c,!0,e,f)}function Ae(a,b,c,e,f){if(ga(b))for(var g=0;g<b.length;g++)Ae(a,b[g],c,e,f);else c=te(c),ie(a)?a.W(b,c,e,f):a&&(a=ve(a))&&(b=a.Yo(b,c,!!e,f))&&Be(b)}
function Be(a){if(ja(a)||!a||a.Tm)return!1;var b=a.src;if(ie(b))return oe(b.wg,a);var c=a.type,e=a.proxy;b.removeEventListener?b.removeEventListener(c,e,a.In):b.detachEvent&&b.detachEvent(xe(c),e);re--;(c=ve(b))?(oe(c,a),0==c.Vq&&(c.src=null,b[pe]=null)):le(a);return!0}function xe(a){return a in qe?qe[a]:qe[a]="on"+a}function Ce(a,b,c,e){var f=1;if(a=ve(a))if(b=a.Mb[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.In==c&&!g.Tm&&(f&=!1!==De(g,e))}return Boolean(f)}
function De(a,b){var c=a.uk,e=a.Ws||a.src;a.pr&&Be(a);return c.call(e,b)}
function ye(a,b){if(a.Tm)return!0;if(!Wd){var c=b||ca("window.event"),e=new de(c,this),f=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var g=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(l){g=!0}if(g||void 0==c.returnValue)c.returnValue=!0}c=[];for(g=e.currentTarget;g;g=g.parentNode)c.push(g);for(var g=a.type,r=c.length-1;!e.Qk&&0<=r;r--)e.currentTarget=c[r],f&=Ce(c[r],g,!0,e);for(r=0;!e.Qk&&r<c.length;r++)e.currentTarget=c[r],f&=Ce(c[r],g,!1,e)}return f}return De(a,new de(b,this))}
function ve(a){a=a[pe];return a instanceof me?a:null}var Ee="__closure_events_fn_"+(1E9*Math.random()>>>0);function te(a){if(ka(a))return a;a[Ee]||(a[Ee]=function(b){return a.handleEvent(b)});return a[Ee]};function Fe(){this.log("create instance");this.pp={};this.jz=w();se(window,"load",function(){this.init(document)},!1,this);return this}h(Fe);Fe.prototype.log=function(){};
Fe.prototype.init=function(a,b){b=parseInt(b,10);Kd(b)||(b=Number.MAX_VALUE,yd(this.pp,function(a,c){b=Math.min(c.Xe(),b)}));this.log(za("started init: %s",b));var c=w(),e=[];yd(this.pp,function(a,c){c.Xe()==b&&e.push(c)});var f=e.length;f?yd(e,function(b,e){x(e.init(a)).always(function(){0==--f&&c.resolve()})}):c.resolve();var g=w(),e=[];yd(this.pp,function(a,c){c.Xe()>b&&e.push(c)});e.length?x(c).always(z(function(){x(this.init(a,b+1)).always(g.resolve)},this)):x(c).always(g.resolve);return g.promise().always(z(function(){this.log(za("finished init: %s",
b))},this))};Fe.a();function A(){this.constructor==A&&Ud("Helper %s is not creatable",this.getName());this.constructor.rc()&&Ud("Helper %s already has an instance",this.getName());this.log("create instance");this.k=v();var a=Fe.a(),b=this.getName();b||Ud("Helper does not have name");a.pp[b]&&Ud("Application already has helper %s",b);a.pp[b]=this;return this}h(A);A.prototype.log=function(){};A.prototype.getData=function(){return"helper-"+this.getName()};A.prototype.Pd=function(){return"[data-"+this.getData()+"]"};
A.prototype.Vw=function(){return"."+this.getName()+".helper"};A.prototype.getNamespace=A.prototype.Vw;A.prototype.Xe=q(2);A.prototype.getContainer=function(){return this.k};A.prototype.init=function(a){this.log("init");if(Ld(this.Pd()))return y();a=v().add(v(a).filter(this.Pd())).add(v(a).find(this.Pd()));var b=a.size();if(0==b)return y();var c=w(),e=z(function(a){return this.each(a)},this);a.each(function(a,g){x(e(g)).always(function(){0==--b&&c.resolve()})});return c.promise()};
A.prototype.each=function(){return y()};function Ge(){A.call(this);v.validator.setDefaults({onfocusout:!1,errorElement:"span",errorClass:"errorElement",validClass:"validElement",errorPlacement:function(a,b){var c=b.parents("form").first(),e=b.attr("name"),f=b.parent();if(e)for(var g=c.find(":input").filter(function(a,b){return $(b).attr("name")==e});!f.is(c);){var l=!0;g.each(function(){l=l&&0<f.find(this).size()});if(l)break;f=f.parent()}a.appendTo(f);"absolute"==a.css("position")&&a.click(function(){a.hide()})}});zd(v.validator.messages,
u.shell.validate);return this}m(Ge,A);h(Ge);Ge.prototype.getName=q("validate");Ge.prototype.getData=q("validate");Ge.prototype.Xe=q(1);Ge.prototype.each=function(a){var b=v(a);if(b.is("form"))b.removeData("validator"),b.validate(b.data(this.getData())||{});else if(b.is(":input")){var c=b.parents("form").not(this.Pd()).first();c.size()&&(c.attr("data-"+this.getData(),{}),this.each(c));b.rules("add",b.data(this.getData())||{})}return Ge.c.each.call(this,a)};Ge.a();function He(){A.call(this);return this}m(He,A);h(He);He.prototype.getName=q("mask");He.prototype.getData=q("mask");He.prototype.Xe=q(0);He.prototype.each=function(a){var b=v(a),c=b.data(this.getData());b.data("ui-mask")&&b.mask("destroy");b.mask(Id(c)?c:{mask:c});return He.c.each.call(this,a)};He.a();function Ie(){A.call(this);return this}m(Ie,A);h(Ie);Ie.prototype.getName=q("selectmenu");Ie.prototype.each=function(a){var b=w();a=v(a);a.data("ui-selectmenu")&&a.selectmenu("destroy");var c=zd(!0,{},{style:"dropdown",maxHeight:250,create:b.resolve},a.data(this.getData())||{});a.selectmenu(c);return b.promise()};Ie.a();function D(){A.call(this);this.iu={};return this}m(D,A);h(D);D.prototype.getName=q("widget");D.prototype.getData=q("widget");D.prototype.Xe=q(3);function E(a,b){var c=b.prototype.getName();c||Ud("Widget does not have a name");a.iu[c]&&Ud("Widget %s is already exist",c);a.iu[c]=b}function Je(a,b){a.iu[b]||Ud("Widget %s does not exist",b);return a.iu[b]}D.prototype.each=function(a){a=v(a);var b=a.data("widget")||"",c=a.data("params")||{};c.container=a;return Je(this,b).a().h("init",c)};D.a();function Ke(){A.call(this);return this}m(Ke,A);h(Ke);Ke.prototype.getName=q("banner");Ke.prototype.each=function(a){var b=v(a).data(this.getData());Le.a().send({event:"BannerView",myPromoView:{promotions:[b]}});return A.prototype.each.call(this,a)};Ke.a();function Me(){A.call(this);return this}m(Me,A);h(Me);Me.prototype.getName=q("body");Me.prototype.Xe=q(3);Me.prototype.each=function(a){a=v(a).data(this.getData());return a.url?Ne.a().V.h({url:a.url,Rg:a.tmpl,data:a.data}):y()};Me.a();function Oe(){A.call(this);return this}m(Oe,A);h(Oe);Oe.prototype.getName=q("content");Oe.prototype.Xe=q(3);Oe.prototype.each=function(a){a=v(a).data(this.getData());return a.url?Pe.a().V.h({url:a.url,Rg:a.tmpl,data:a.data}):y()};Oe.a();function Qe(){A.call(this);return this}m(Qe,A);h(Qe);Qe.prototype.getName=q("action");Qe.prototype.Pd=q("[data-action]");Qe.prototype.getData=q("action");
Qe.prototype.each=function(a){function b(a){var b=c.data("action"),g=c.data("params")||{},C=c.parents(e).data(f);switch(c.get(0).type){case "select-one":case "select-multiple":zd(!0,g,v(":selected",c).data("params")||{})}a.preventDefault();a.stopPropagation();c.disabled()||(g.target=jQuery(a.target),c.disabled(!0),c.refresh(),Je(D.a(),C).a().h(b,g,function(){c.disabled(!1);c.refresh()}))}var c=v(a),e=D.a().Pd(),f=D.a().getData();switch(!0){case c.is("select, :checkbox, :radio"):c.bindspace(this,"action change",
b);break;case c.is(":text, textarea"):c.bindspace(this,"action input paste keyup change",b);break;case c.is("option"):var g=Math.random().toString().substr(2);c.parents("select").first().bindspace(this,"action."+g+" change."+g+"",function(a){c.is($(":selected",a.currentTarget))&&b(a)});break;default:c.bindspace(this,"action click",b)}return Qe.c.each.call(this,a)};Qe.a();function Re(){A.call(this);return this}m(Re,A);h(Re);Re.prototype.getName=q("amount");Re.prototype.each=function(a){a=v(a).find(":input");var b=a.eq(0),c=a.eq(1),e=a.eq(2),f=e.val();b.bindspace(this,"input paste keyup change",function(){e.trigger("amount")});c.bindspace(this,"input paste keyup change",function(){e.trigger("amount")});e.bindspace(this,"amount",function(){var a=(parseInt(b.val(),10)||0)+(parseInt(c.val(),10)||0)/100;f!=a&&(f=a,e.val(f).trigger("keyup"))}).trigger("amount");return x().promise()};
Re.a();function Se(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function Te(a){return(new Ue(void 0)).serialize(a)}function Ue(a){this.wt=a}Ue.prototype.serialize=function(a){var b=[];Ve(this,a,b);return b.join("")};
function Ve(a,b,c){switch(typeof b){case "string":We(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(null==b){c.push("null");break}if(ga(b)){a.serializeArray(b,c);break}c.push("{");var e="",f;for(f in b)if(Object.prototype.hasOwnProperty.call(b,f)){var g=b[f];"function"!=typeof g&&(c.push(e),We(f,c),c.push(":"),Ve(a,a.wt?a.wt.call(b,f,g):g,c),e=",")}c.push("}");break;case "function":break;
default:throw Error("Unknown type: "+typeof b);}}var Xe={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Ye=/\uffff/.test("")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;function We(a,b){b.push('"',a.replace(Ye,function(a){if(a in Xe)return Xe[a];var b=a.charCodeAt(0),f="\\u";16>b?f+="000":256>b?f+="00":4096>b&&(f+="0");return Xe[a]=f+b.toString(16)}),'"')}
Ue.prototype.serializeArray=function(a,b){var c=a.length;b.push("[");for(var e="",f=0;f<c;f++)b.push(e),e=a[f],Ve(this,this.wt?this.wt.call(a,String(f),e):e,b),e=",";b.push("]")};function Le(){A.call(this);return this}m(Le,A);h(Le);Le.prototype.getName=q("analytics");Le.prototype.each=function(a){var b=v(a),c=b.data(this.getData());b.bindspace(this,"click",function(){c.event?Ze(this,c.event,c.category,c.action,c.label,c.context,c.location,c.data):this.ca(c.category,c.action,c.label,c.context,c.location,c.data)});return Le.c.each.call(this,a)};Le.prototype.send=function(a){window.dataLayer&&(window.dataLayer.push(a),this.log(Te(a)))};
function Ze(a,b,c,e,f,g,l,r){a.send(zd(!0,{event:Ya(Xa(b)),eventCategory:Ya(Xa(c)),eventAction:Ya(Xa(e)),eventLabel:f||"",eventContext:Ya(Xa(g||"")),eventLocation:Ya(Xa(l||""))},r||{}))}Le.prototype.ca=function(a,b,c,e,f,g){Ze(this,"big-event",a,b,c,e,f,g)};function $e(a,b){a.send({event:"VirtualPageView",urladdress:"/virtual"+b});a.log(b)}Le.a();function af(){A.call(this);return this}m(af,A);h(af);d=af.prototype;d.getName=q("ass");d.Pd=q("[name]");d.Xe=q(0);d.init=function(a){if(!jQuery.browser.msie||8<parseFloat(jQuery.browser.version))return y();var b=document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css";c.styleSheet.cssText=":before,:after{content:none !important}";b.appendChild(c);setTimeout(function(){b.removeChild(c)},0);return af.c.init.call(this,a)};
d.each=function(a){var b=v(a),c=b.attr("name"),c=c.replace(/&apos;/g,"'");b.attr("name",c);return af.c.each.call(this,a)};af.a();function bf(){A.call(this);return this}m(bf,A);h(bf);bf.prototype.getName=q("button");bf.prototype.each=function(a){var b=v(a);b.button(b.data(this.getData())||{});return bf.c.each.call(this,a)};bf.a();function cf(){A.call(this);return this}m(cf,A);h(cf);cf.prototype.getName=q("buttonset");cf.prototype.each=function(a){var b=v(a);b.buttonset(b.data(this.getData())||{});return cf.c.each.call(this,a)};cf.a();function df(){A.call(this);v.datepicker.setDefaults(u.shell.datepicker);return this}m(df,A);h(df);df.prototype.getName=q("datepicker");
df.prototype.each=function(a){var b=v(a).data(this.getData()),c=v(b.input,a),e=v(b.value,a),f=v(b.button,a);delete b.input;delete b.value;delete b.button;c.mask({mask:"dD.mM.yYYY",definitions:{d:/[0123]/,D:/[0123456789]/,m:/[01]/,M:/[0123456789]/,y:/[12]/,Y:/[0123456789]/}});c.bindspace(this,"paste input change keyup",function(){var a=c.val();if(arguments.callee.value==a||!c.mask("valid"))return!1;arguments.callee.value=a;c.datepicker("setDate",a);e.trigger("change");e.trigger("keyup")});c.datepicker(zd(!0,
{},{showOn:"nobody",altField:e,onClose:function(){e.trigger("change");e.trigger("keyup")}},b));e.bindspace(this,"change refresh",function(){c.datepicker("setDate",v.datepicker.parseDate(c.datepicker("option","dateFormat"),e.val(),c.data("datepicker").settings));c.mask("refresh")}).trigger("refresh");f.bindspace(this,"click",function(){v.datepicker._datepickerShowing&&v.datepicker._lastInput==c[0]?v.datepicker._hideDatepicker():(v.datepicker._datepickerShowing&&v.datepicker._lastInput!=c[0]&&v.datepicker._hideDatepicker(),
v.datepicker._showDatepicker(c[0]));return!1});return df.c.each.call(this,a)};df.a();function ef(){df.call(this);return this}m(ef,A);h(ef);ef.prototype.getName=q("datepicker-range");
ef.prototype.each=function(a){var b=v(a).data(this.getData()),c=b.from;c.input=v(c.input,a);c.value=v(c.value,a);c.button=v(c.button,a);var e=b.to;e.input=v(e.input,a);e.value=v(e.value,a);e.button=v(e.button,a);c.limit=e.input;e.limit=c.input;delete b.from;delete b.to;yd([c,e],z(function(a,c){c.input.mask({mask:"dD.mM.yYYY",definitions:{d:/[0123]/,D:/[0123456789]/,m:/[01]/,M:/[0123456789]/,y:/[12]/,Y:/[0123456789]/}});c.input.bindspace(this,"paste input change keyup",function(){var a=c.input.val();
if(arguments.callee.value==a||!c.input.mask("valid"))return!1;arguments.callee.value=a;c.input.datepicker("setDate",a);c.value.trigger("change");c.value.trigger("keyup")});c.input.datepicker(zd(!0,{},{showOn:"focus",altField:c.value,onSelect:function(a){a=v.datepicker.parseDate(c.input.datepicker("option","dateFormat"),a,c.input.data("datepicker").settings);if(null!=c.minDays){var b=new Date(a);b.setDate(b.getDate()-c.minDays);c.limit.datepicker("option","minDate",b).refresh()}null!=c.maxDays&&(a=
new Date(a),a.setDate(a.getDate()+c.maxDays),c.limit.datepicker("option","maxDate",a).refresh())},onClose:function(){c.value.trigger("change");c.value.trigger("keyup")}},b));c.value.bindspace(this,"change refresh",function(){try{var a=v.datepicker.parseDate(c.input.datepicker("option","dateFormat"),c.value.val(),c.input.data("datepicker").settings);c.input.datepicker("setDate",a);c.input.mask("refresh");if(null!=c.minDays){var b=new Date(a);b.setDate(b.getDate()-c.minDays);c.limit.datepicker("option",
"minDate",b).refresh()}if(null!=c.maxDays){var e=new Date(a);e.setDate(e.getDate()+c.maxDays);c.limit.datepicker("option","maxDate",e).refresh()}}catch(f){}});c.button.bindspace(this,"click",function(){v.datepicker._datepickerShowing&&v.datepicker._lastInput==c.input[0]?v.datepicker._hideDatepicker():(v.datepicker._datepickerShowing&&v.datepicker._lastInput!=c.input[0]&&v.datepicker._hideDatepicker(),v.datepicker._showDatepicker(c.input[0]));return!1})},this));c.value.trigger("refresh");e.value.trigger("refresh");
return A.prototype.each.call(this,a)};ef.a();function ff(){A.call(this);return this}m(ff,A);h(ff);ff.prototype.getName=q("counter");ff.prototype.each=function(a){a=v(a);var b=a.data(this.getData()),c=v("\x3cimg\x3e");yd(b,function(a,b){c.attr(a,b)});a.append(c);return y()};ff.a();function gf(){A.call(this);return this}m(gf,A);h(gf);gf.prototype.getName=q("expand");gf.prototype.each=function(a){var b=v(a),c=b.data(this.getData())||{};c.hash=hf(F.a());b.expand(c);return gf.c.each.call(this,a)};gf.a();function jf(){A.call(this);return this}m(jf,A);h(jf);jf.prototype.getName=q("full-page");jf.prototype.each=function(a){var b=v(a),c=b.data(this.getData());b.rW(c);return A.prototype.each.call(this,a)};jf.a();function kf(){A.call(this);return this}m(kf,A);h(kf);kf.prototype.getName=q("group-toggle");
kf.prototype.each=function(a){function b(a,r,B){clearTimeout(H);-1==a&&(a="prev"==r?l.last().index():0);a%=l.length;if(a!=C){r||(r=a>C?"next":"prev");var fb=e[r]?e[r].hide:null,Ob=e[r]?e[r].show:null;e.banner&&M[a]&&Le.a().send({event:"BannerRotation",cause:B?B:"User",position:M[a].position});g.filter(":nth-child("+l.length+"n+"+(C+1)+")").removeClass("active");g.filter(":nth-child("+l.length+"n+"+(a+1)+")").addClass("active");c.is(":visible")&&Id(Ob)&&Id(fb)?l.eq(C).hide(fb.effect,fb.options,fb.duration,
function(){C=a;l.eq(C).show(Ob.effect,Ob.options,Ob.duration)}):(l.eq(C).hide(),C=a,l.eq(C).show());e.slideitems&&g.each(function(b,c){var f=v(c);f.animate({"margin-left":(b-a-.5)*f.outerWidth()},e.slideitems)});f.timeout&&(H=setTimeout(function(){b(l.eq(C).next().index(),"next","Auto")},f.timeout[C]))}}var c=v(a),e=c.data(this.getData()),f=e.auto||{},g=c.find(e.items).children(),l=c.find(e.blocks).children(),r=c.find(e.prev?e.prev.item:null),B=c.find(e.next?e.next.item:null),C=g.filter(".active").index()%
l.length,H,M=[];-1==C&&(C=Lb(l.length),g.filter(":nth-child("+l.length+"n+"+(C+1)+")").addClass("active"));e.slideitems&&g.each(function(a,b){var c=v(b);c.css("margin-left",(a-C-.5)*c.outerWidth())});l.eq(C).show();e.banner&&(yd(l,function(a,b){M.push(v(b).data("promotion"))}),Le.a().send({event:"BannerView",myPromoView:{promotions:M},position:M[C].position}));g.bindspace(this,"click",function(a){b($(a.currentTarget).index());a.preventDefault()});r.bindspace(this,"click",function(a){b(l.eq(C).prev().index(),
"prev");a.preventDefault()});B.bindspace(this,"click",function(a){b(l.eq(C).next().index(),"next");a.preventDefault()});l.bindspace(this,"swipeleft",function(a){b(l.eq(C).prev().index(),"next");a.preventDefault()});l.bindspace(this,"swiperight",function(a){b(l.eq(C).prev().index(),"prev");a.preventDefault()});r.length||B.length||g.length||l.bindspace(this,"click",function(a){b($(a.currentTarget).next().index(),"next");a.preventDefault()});f.timeout&&(ga(f.timeout)||(f.timeout=tb(f.timeout,l.length)),
c.bindspace(this,"mouseleave",function(){H=setTimeout(function(){b(l.eq(C).next().index(),"next","Auto")},f.timeout[C])}),c.bindspace(this,"mouseenter",function(){clearTimeout(H)}),c.mouseleave());return A.prototype.each.call(this,a)};kf.a();var lf=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function mf(a){if(nf){nf=!1;var b=aa.location;if(b){var c=b.href;if(c&&(c=(c=mf(c)[3]||null)?decodeURI(c):c)&&c!=b.hostname)throw nf=!0,Error();}}return a.match(lf)}var nf=Xb;function of(a,b){var c;if(a instanceof of)this.Ye=ba(b)?b:a.Ye,pf(this,a.Oi),c=a.sl,qf(this),this.sl=c,c=a.mh,qf(this),this.mh=c,rf(this,a.Pm),this.setPath(a.getPath()),sf(this,a.Fe.clone()),c=a.Wj,qf(this),this.Wj=c;else if(a&&(c=mf(String(a)))){this.Ye=!!b;pf(this,c[1]||"",!0);var e=c[2]||"";qf(this);this.sl=tf(e);e=c[3]||"";qf(this);this.mh=tf(e,!0);rf(this,c[4]);this.setPath(c[5]||"",!0);sf(this,c[6]||"",!0);c=c[7]||"";qf(this);this.Wj=tf(c)}else this.Ye=!!b,this.Fe=new uf(null,0,this.Ye)}d=of.prototype;
d.Oi="";d.sl="";d.mh="";d.Pm=null;d.Om="";d.Wj="";d.vM=!1;d.Ye=!1;d.toString=function(){var a=[],b=this.Oi;b&&a.push(vf(b,wf,!0),":");if(b=this.mh){a.push("//");var c=this.sl;c&&a.push(vf(c,wf,!0),"@");a.push(encodeURIComponent(String(b)).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Pm;null!=b&&a.push(":",String(b))}if(b=this.getPath())this.mh&&"/"!=b.charAt(0)&&a.push("/"),a.push(vf(b,"/"==b.charAt(0)?xf:yf,!0));(b=this.Fe.toString())&&a.push("?",b);(b=this.Wj)&&a.push("#",vf(b,zf));return a.join("")};
d.resolve=function(a){var b=this.clone(),c=!!a.Oi;c?pf(b,a.Oi):c=!!a.sl;if(c){var e=a.sl;qf(b);b.sl=e}else c=!!a.mh;c?(e=a.mh,qf(b),b.mh=e):c=null!=a.Pm;e=a.getPath();if(c)rf(b,a.Pm);else if(c=!!a.Om){if("/"!=e.charAt(0))if(this.mh&&!this.Om)e="/"+e;else{var f=b.getPath().lastIndexOf("/");-1!=f&&(e=b.getPath().substr(0,f+1)+e)}f=e;if(".."==f||"."==f)e="";else if(-1!=f.indexOf("./")||-1!=f.indexOf("/.")){for(var e=ya(f,"/"),f=f.split("/"),g=[],l=0;l<f.length;){var r=f[l++];"."==r?e&&l==f.length&&g.push(""):
".."==r?((1<g.length||1==g.length&&""!=g[0])&&g.pop(),e&&l==f.length&&g.push("")):(g.push(r),e=!0)}e=g.join("/")}else e=f}c?b.setPath(e):c=""!==a.Fe.toString();c?sf(b,tf(a.Fe.toString())):c=!!a.Wj;c&&(a=a.Wj,qf(b),b.Wj=a);return b};d.clone=function(){return new of(this)};function pf(a,b,c){qf(a);a.Oi=c?tf(b,!0):b;a.Oi&&(a.Oi=a.Oi.replace(/:$/,""))}function rf(a,b){qf(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Pm=b}else a.Pm=null}d.getPath=function(){return this.Om};
d.setPath=function(a,b){qf(this);this.Om=b?tf(a,!0):a;return this};function sf(a,b,c){qf(a);b instanceof uf?(a.Fe=b,a.Fe.iA(a.Ye)):(c||(b=vf(b,Af)),a.Fe=new uf(b,0,a.Ye))}function Bf(a){return a.Fe}function qf(a){if(a.vM)throw Error("Tried to modify a read-only Uri");}d.iA=function(a){this.Ye=a;this.Fe&&this.Fe.iA(a);return this};function tf(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}
function vf(a,b,c){return ia(a)?(a=encodeURI(a).replace(b,Cf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Cf(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var wf=/[#\/\?@]/g,yf=/[\#\?:]/g,xf=/[\#\?]/g,Af=/[\#\?@]/g,zf=/#/g;function uf(a,b,c){this.ve=a||null;this.Ye=!!c}
function Ef(a){if(!a.Tb&&(a.Tb=new Mb,a.zb=0,a.ve))for(var b=a.ve.split("\x26"),c=0;c<b.length;c++){var e=b[c].indexOf("\x3d"),f=null,g=null;0<=e?(f=b[c].substring(0,e),g=b[c].substring(e+1)):f=b[c];f=Ea(f);f=Ff(a,f);a.add(f,g?Ea(g):"")}}function Gf(a){var b=Ib(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new uf(null,0,void 0);a=Hb(a);for(var e=0;e<b.length;e++){var f=b[e],g=a[e];ga(g)?c.setValues(f,g):c.add(f,g)}return c}d=uf.prototype;d.Tb=null;d.zb=null;
d.QD=function(){Ef(this);return this.zb};d.add=function(a,b){Ef(this);this.ve=null;a=Ff(this,a);var c=this.Tb.get(a);c||this.Tb.set(a,c=[]);c.push(b);this.zb++;return this};d.remove=function(a){Ef(this);a=Ff(this,a);return this.Tb.Ao(a)?(this.ve=null,this.zb-=this.Tb.get(a).length,this.Tb.remove(a)):!1};d.clear=function(){this.Tb=this.ve=null;this.zb=0};d.isEmpty=function(){Ef(this);return 0==this.zb};d.Ao=function(a){Ef(this);a=Ff(this,a);return this.Tb.Ao(a)};
d.ck=function(){Ef(this);for(var a=this.Tb.Qd(),b=this.Tb.ck(),c=[],e=0;e<b.length;e++)for(var f=a[e],g=0;g<f.length;g++)c.push(b[e]);return c};d.Qd=function(a){Ef(this);var b=[];if(ia(a))this.Ao(a)&&(b=ob(b,this.Tb.get(Ff(this,a))));else{a=this.Tb.Qd();for(var c=0;c<a.length;c++)b=ob(b,a[c])}return b};d.set=function(a,b){Ef(this);this.ve=null;a=Ff(this,a);this.Ao(a)&&(this.zb-=this.Tb.get(a).length);this.Tb.set(a,[b]);this.zb++;return this};
d.get=function(a,b){var c=a?this.Qd(a):[];return 0<c.length?String(c[0]):b};d.setValues=function(a,b){this.remove(a);0<b.length&&(this.ve=null,this.Tb.set(Ff(this,a),pb(b)),this.zb+=b.length)};d.toString=function(){if(this.ve)return this.ve;if(!this.Tb)return"";for(var a=[],b=this.Tb.ck(),c=0;c<b.length;c++)for(var e=b[c],f=encodeURIComponent(String(e)),e=this.Qd(e),g=0;g<e.length;g++){var l=f;""!==e[g]&&(l+="\x3d"+encodeURIComponent(String(e[g])));a.push(l)}return this.ve=a.join("\x26")};
d.clone=function(){var a=new uf;a.ve=this.ve;this.Tb&&(a.Tb=this.Tb.clone(),a.zb=this.zb);return a};function Ff(a,b){var c=String(b);a.Ye&&(c=c.toLowerCase());return c}d.iA=function(a){a&&!this.Ye&&(Ef(this),this.ve=null,this.Tb.forEach(function(a,c){var e=c.toLowerCase();c!=e&&(this.remove(c),this.setValues(e,a))},this));this.Ye=a};d.extend=function(a){for(var b=0;b<arguments.length;b++)Jb(arguments[b],function(a,b){this.add(b,a)},this)};function Hf(){Yd.call(this);this.wg=new me(this);this.lK=this;this.ez=null}m(Hf,Yd);Hf.prototype[he]=!0;d=Hf.prototype;d.Is=function(){return this.ez};d.Rt=function(a){this.ez=a};d.addEventListener=function(a,b,c,e){se(this,a,b,c,e)};d.removeEventListener=function(a,b,c,e){Ae(this,a,b,c,e)};
d.dispatchEvent=function(a){var b,c=this.Is();if(c)for(b=[];c;c=c.Is())b.push(c);var c=this.lK,e=a.type||a;if(ia(a))a=new be(a,c);else if(a instanceof be)a.target=a.target||c;else{var f=a;a=new be(e,c);Eb(a,f)}var f=!0,g;if(b)for(var l=b.length-1;!a.Qk&&0<=l;l--)g=a.currentTarget=b[l],f=If(g,e,!0,a)&&f;a.Qk||(g=a.currentTarget=c,f=If(g,e,!0,a)&&f,a.Qk||(f=If(g,e,!1,a)&&f));if(b)for(l=0;!a.Qk&&l<b.length;l++)g=a.currentTarget=b[l],f=If(g,e,!1,a)&&f;return f};
d.I=function(){Hf.c.I.call(this);this.wg&&this.wg.Sm(void 0);this.ez=null};d.C=function(a,b,c,e){return this.wg.add(String(a),b,!1,c,e)};d.AE=function(a,b,c,e){return this.wg.add(String(a),b,!0,c,e)};d.W=function(a,b,c,e){return this.wg.remove(String(a),b,c,e)};function If(a,b,c,e){b=a.wg.Mb[String(b)];if(!b)return!0;b=b.concat();for(var f=!0,g=0;g<b.length;++g){var l=b[g];if(l&&!l.Tm&&l.In==c){var r=l.uk,B=l.Ws||l.src;l.pr&&oe(a.wg,l);f=!1!==r.call(B,e)&&f}}return f&&!1!=e.vF}
d.bb=function(a,b){return this.wg.bb(String(a),b)};d.Yo=function(a,b,c,e){return this.wg.Yo(String(a),b,c,e)};function Jf(a,b){Hf.call(this);this.Bb=a||1;this.ln=b||aa;this.Zu=k(this.HV,this);this.Kx=ta()}m(Jf,Hf);d=Jf.prototype;d.enabled=!1;d.ua=null;d.setInterval=function(a){this.Bb=a;this.ua&&this.enabled?(this.stop(),this.start()):this.ua&&this.stop()};
d.HV=function(){if(this.enabled){var a=ta()-this.Kx;0<a&&a<.8*this.Bb?this.ua=this.ln.setTimeout(this.Zu,this.Bb-a):(this.ua&&(this.ln.clearTimeout(this.ua),this.ua=null),this.dispatchEvent(Kf),this.enabled&&(this.ua=this.ln.setTimeout(this.Zu,this.Bb),this.Kx=ta()))}};d.start=function(){this.enabled=!0;this.ua||(this.ua=this.ln.setTimeout(this.Zu,this.Bb),this.Kx=ta())};d.stop=function(){this.enabled=!1;this.ua&&(this.ln.clearTimeout(this.ua),this.ua=null)};
d.I=function(){Jf.c.I.call(this);this.stop();delete this.ln};var Kf="tick";function Lf(a,b,c){if(ka(a))c&&(a=k(a,c));else if(a&&"function"==typeof a.handleEvent)a=k(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:aa.setTimeout(a,b||0)};function Mf(a){Yd.call(this);this.Wa=a;this.pb={}}m(Mf,Yd);var Nf=[];d=Mf.prototype;d.C=function(a,b,c,e){ga(b)||(b&&(Nf[0]=b.toString()),b=Nf);for(var f=0;f<b.length;f++){var g=se(a,b[f],c||this.handleEvent,e||!1,this.Wa||this);if(!g)break;this.pb[g.key]=g}return this};d.AE=function(a,b,c,e){return Of(this,a,b,c,e)};function Of(a,b,c,e,f,g){if(ga(c))for(var l=0;l<c.length;l++)Of(a,b,c[l],e,f,g);else{b=ze(b,c,e||a.handleEvent,f,g||a.Wa||a);if(!b)return a;a.pb[b.key]=b}return a}
d.W=function(a,b,c,e,f){if(ga(b))for(var g=0;g<b.length;g++)this.W(a,b[g],c,e,f);else c=c||this.handleEvent,f=f||this.Wa||this,c=te(c),e=!!e,b=ie(a)?a.Yo(b,c,e,f):a?(a=ve(a))?a.Yo(b,c,e,f):null:null,b&&(Be(b),delete this.pb[b.key]);return this};d.Sm=function(){ub(this.pb,Be);this.pb={}};d.I=function(){Mf.c.I.call(this);this.Sm()};d.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Pf(){be.call(this,"navigate")}m(Pf,be);function Qf(){return!(Ub("iPad")||Ub("Android")&&!Ub("Mobile")||Ub("Silk"))&&(Ub("iPod")||Ub("iPhone")||Ub("Android")||Ub("IEMobile"))};function Rf(a,b){for(var c=[a],e=b.length-1;0<=e;--e)c.push(typeof b[e],b[e]);return c.join("\x0B")};function Sf(a,b,c,e){Hf.call(this);if(a&&!b)throw Error("Can't use invisible history without providing a blank page.");var f;c?f=c:(f="history_state"+Tf,document.write(za(Uf,f,f)),f=ia(f)?document.getElementById(f):f);this.qp=f;this.Qa=c?Rc(Lc(c)):window;this.Zs=b;s&&!b&&(this.Zs="https"==window.location.protocol?"https:///":'javascript:""');this.ua=new Jf(Vf);b=sa(ae,this.ua);this.Lk||(this.Lk=[]);this.Lk.push(ba(void 0)?k(b,void 0):b);this.tl=!a;this.ug=new Mf(this);if(a||Wf)e?a=e:(a="history_iframe"+
Tf,e=this.Zs?'src\x3d"'+Fa(this.Zs)+'"':"",document.write(za(Xf,a,e)),a=ia(a)?document.getElementById(a):a),this.$s=a,this.KH=!0;Wf&&(this.ug.C(this.Qa,"load",this.JR),this.cH=this.yw=!1);this.tl?Yf(this,this.fc(),!0):Zf(this,this.qp.value);Tf++}m(Sf,Hf);Sf.prototype.Yb=!1;Sf.prototype.Cm=!1;Sf.prototype.vm=null;
var $f=function(a,b){var c=b||Rf;return function(){var b=this||aa,b=b.closure_memoize_cache_||(b.closure_memoize_cache_={}),f=c(ma(a),arguments);return b.hasOwnProperty(f)?b[f]:b[f]=a.apply(this,arguments)}}(function(){return s?8<=document.documentMode:"onhashchange"in aa}),Wf=s&&!ec(8);d=Sf.prototype;d.Bm=null;d.I=function(){Sf.c.I.call(this);this.ug.O();this.N(!1)};
d.N=function(a){if(a!=this.Yb)if(Wf&&!this.yw)this.cH=a;else if(a)if(Vb?this.ug.C(this.Qa.document,ag,this.NR):Wb&&this.ug.C(this.Qa,"pageshow",this.tt),$f()&&this.tl)this.ug.C(this.Qa,"hashchange",this.KR),this.Yb=!0,this.dispatchEvent(new Pf(this.fc()));else{if(!s||Qf()||this.yw)this.ug.C(this.ua,Kf,k(this.YB,this,!0)),this.Yb=!0,Wf||(this.vm=this.fc(),this.dispatchEvent(new Pf(this.fc()))),this.ua.start()}else this.Yb=!1,this.ug.Sm(),this.ua.stop()};
d.JR=function(){this.yw=!0;this.qp.value&&Zf(this,this.qp.value,!0);this.N(this.cH)};d.tt=function(a){a.xg.persisted&&(this.N(!1),this.N(!0))};d.KR=function(){var a=bg(this.Qa);a!=this.vm&&cg(this,a)};d.fc=function(){return null!=this.Bm?this.Bm:this.tl?bg(this.Qa):dg(this)||""};d.Xt=function(a,b){eg(this,a,!1,b)};d.uF=function(a,b){eg(this,a,!0,b)};function bg(a){a=a.location.href;var b=a.indexOf("#");return 0>b?"":a.substring(b+1)}
function eg(a,b,c,e){a.fc()!=b&&(a.tl?(Yf(a,b,c),$f()||s&&!Qf()&&Zf(a,b,c,e),a.Yb&&a.YB()):(Zf(a,b,c),a.Bm=a.vm=a.qp.value=b,a.dispatchEvent(new Pf)))}function Yf(a,b,c){a=a.Qa.location;var e=a.href.split("#")[0],f=-1!=a.href.indexOf("#");if(Wf||f||b)e+="#"+b;e!=a.href&&(c?a.replace(e):a.href=e)}
function Zf(a,b,c,e){if(a.KH||b!=dg(a))if(a.KH=!1,b=encodeURIComponent(String(b)),s){var f=ed(a.$s);f.open("text/html",c?"replace":void 0);f.write(za(fg,Fa(e||a.Qa.document.title),b));f.close()}else if(b=a.Zs+"#"+b,a=a.$s.contentWindow)c?a.location.replace(b):a.location.href=b}
function dg(a){if(s)return a=ed(a.$s),a.body?Ea(a.body.innerHTML):null;var b=a.$s.contentWindow;if(b){var c;try{c=Ea(bg(b))}catch(e){return a.Cm||(!0!=a.Cm&&a.ua.setInterval(gg),a.Cm=!0),null}a.Cm&&(!1!=a.Cm&&a.ua.setInterval(Vf),a.Cm=!1);return c||null}return null}d.YB=function(){if(this.tl){var a=bg(this.Qa);a!=this.vm&&cg(this,a)}if(!this.tl||Wf)if(a=dg(this)||"",null==this.Bm||a==this.Bm)this.Bm=null,a!=this.vm&&cg(this,a)};
function cg(a,b){a.vm=a.qp.value=b;a.tl?(Wf&&Zf(a,b),Yf(a,b)):Zf(a,b);a.dispatchEvent(new Pf(a.fc()))}d.NR=function(){this.ua.stop();this.ua.start()};var ag=["mousedown","keydown","mousemove"],fg="\x3ctitle\x3e%s\x3c/title\x3e\x3cbody\x3e%s\x3c/body\x3e",Xf='\x3ciframe id\x3d"%s" style\x3d"display:none" %s\x3e\x3c/iframe\x3e',Uf='\x3cinput type\x3d"text" name\x3d"%s" id\x3d"%s" style\x3d"display:none"\x3e',Tf=0,Vf=150,gg=1E4;function hg(a,b){Hf.call(this);this.Qa=a||window;this.JH=b||null;se(this.Qa,"popstate",this.bq,!1,this);se(this.Qa,"hashchange",this.bq,!1,this)}m(hg,Hf);function ig(){var a=window;return!(!a.history||!a.history.pushState)}d=hg.prototype;d.Yb=!1;d.Wq=!0;d.fq="/";d.N=function(a){a!=this.Yb&&(this.Yb=a)&&this.dispatchEvent(new Pf(this.fc()))};
d.fc=function(){if(this.Wq){var a=this.Qa.location.href,b=a.indexOf("#");return 0>b?"":a.substring(b+1)}this.JH?(a=this.Qa.location,a=(a.pathname+a.search).substr(this.fq.length)):a=this.Qa.location.pathname.substr(this.fq.length);return a};d.Xt=function(a,b){a!=this.fc()&&(this.Qa.history.pushState(null,b||this.Qa.document.title||"",jg(this,a)),this.dispatchEvent(new Pf))};d.uF=function(a,b){this.Qa.history.replaceState(null,b||this.Qa.document.title||"",jg(this,a));this.dispatchEvent(new Pf)};
d.I=function(){Ae(this.Qa,"popstate",this.bq,!1,this);this.Wq&&Ae(this.Qa,"hashchange",this.bq,!1,this)};function kg(a){!1!=a.Wq&&(Ae(a.Qa,"hashchange",a.bq,!1,a),a.Wq=!1)}function jg(a,b){return a.Wq?"#"+b:a.JH?a.fq+b:a.fq+b+a.Qa.location.search}d.bq=function(){this.Yb&&this.dispatchEvent(new Pf(this.fc()))};function lg(){}
function F(){A.call(this);this.Qa=window;this.Vc=this.Qa.location;this.$a=this.Qa.document;this.links={};this.top=0;if(this.Vc.hash&&ya(this.Vc.hash,"#/"))return this.Vc.href=this.Vc.protocol+"//"+this.Vc.host+this.Vc.hash.substring(1).replace(/^\/+/,"/"),this;ig()?(this.Wg=new hg(this.Qa,new lg),kg(this.Wg),this.Wg.fq="",this.href=this.fc(),this.Wg.N(!0)):(this.Wg=new Sf,this.Wg.N(!0),this.href=(this.Vc.pathname+this.Vc.search).replace(/^\/+/,"/"));se(this.Wg,"navigate",function(a){a.preventDefault();this.open(this.fc())},
!1,this);return this}m(F,A);h(F);d=F.prototype;d.getName=q("history");d.Pd=q("[href]:not([data-lightbox]),[data-href]:not([data-lightbox])");
d.each=function(a){var b=v(a);b.bindspace(this,"click",function(a){var e=Dd(b.attr("href")||b.data("href")),f=Dd(b.attr("ajax")||b.data("ajax")),g=Dd(b.attr("tmpl")||b.data("tmpl")),l=Dd(b.attr("target")||b.data("target")),r=b.data("data");if(e)if(Id(r)&&(e+=(-1===e.indexOf("?")?"?":"\x26")+Bd(r).replace(/'/g,"%27"),f&&(f+=(-1===f.indexOf("?")?"?":"\x26")+Bd(r).replace(/'/g,"%27"))),(r=b.data("ga-link-open"))&&Ze(Le.a(),"link-open","","",e,r),r=b.data("ga"),Id(r)&&Le.a().ca(r.category||"Link",r.action||
"Open",r.label||e,r.context,r.location,r.data),!l&&"/"==e.substring(0,1)&&"//"!=e.substring(0,2))a.preventDefault(),this.open(e,f,g,!0);else if(!l&&"#"==e.substring(0,1)&&1<e.length&&"/"!=e.substring(1,1))a.preventDefault(),this.scroll(e);else if(!b.is("a"))switch(a.preventDefault(),l){case "_blank":this.Qa.open(e);break;case "_top":this.Qa.top.location.href=e;break;case "_parent":this.Qa.parent.location.href=e;break;case "_self":a.ctrlKey||2==a.which||Pe.a().Fb.h();this.Vc.href=e;break;default:this.Vc.href=
e}else if(l)switch(l){case "_self":a.ctrlKey||2==a.which||Pe.a().Fb.h()}});return F.c.each.call(this,a)};d.click=function(a){v(this.Pd()).filter(function(){return a.has(this).size()}).trigger("click")};d.reload=function(){this.Vc.href=this.href};d.fc=function(){return(this.Wg.fc()||this.Vc.pathname+this.Vc.search).replace(/^\/+/,"/")};d.Xt=function(a,b,c){c?this.Wg.uF(a,b):this.Wg.Xt(a,b);this.$a.title=b;return this};d.getPath=function(){return(new of(this.fc())).getPath()};
function mg(){var a=F.a();return Bf(new of(a.fc())).toString()}function hf(a,b){var c=(b?b:a.Vc.hash).substring(1);ig()||(c=c.substring(a.href.length+1));return c}
d.open=function(a,b,c,e){var f,g,l,r;if("/"!=a.substring(0,1))return this.scroll(),this;f=new of(a.replace(/^\/+/,"/"));g=f.getPath();l=f.Fe.toString();a=g+(l?"?"+l.replace(/'/g,"%27"):"");if(g==ng.getPath()&&this.href!=a)return this.Vc.href=a,this;if(a==this.href&&!e)return this.scroll(),this;b&&(f=new of(b.replace(/^\/+/,"/")),e=f.getPath(),r=f.Fe.toString(),(b=e+(r?"?"+r.replace(/'/g,"%27"):""))&&!this.links[g]&&new G(e,g,null,c));this.links[g]?(this.log(za("open %s",a)),v(this.Pd()).filter(function(b,
c){var e=v(c);return ya(e.attr("href")||e.data("href")||"",a)}).trigger("action"),Je(D.a(),"content").a().V.h({link:this.links[g],data:r||l,query:l})):(this.log(za("history link with path %s does not exist",g)),Pe.a().Fb.h(),this.Vc.href=a);return this};
d.save=function(a,b,c,e){Sd(b)&&(b=b.nn());b&&!Jd(b)&&(b=Bd(b));a=a.replace(/^\/+/,"/")+(b?"?"+b.replace(/'/g,"%27"):"");if(a==this.href)return this.scroll(),this;this.href=a;this.Xt(this.href,c?c:ng.getName(),e);this.scroll();"undefined"!=typeof _gaq&&_gaq.push(["_trackPageview",this.href]);this.log(za("save %s [%s]",a,c));return this};
d.scroll=function(a){og.trigger();var b=hf(this,a),c=v("#"+b.replace(/(=|:|\.|\[|\]|,)/g,"\\$1"));c.size()||(c=v("a[name]").filter(function(a,c){return $(c).attr("name")==b}));c.size()&&(ig()&&$(window).scrollTop(this.top),this.top=c.size()?c.offset().top:0,$("html,body").animate({scrollTop:this.top},"fast",z(function(){a&&(this.Vc.hash=ig()?a:this.href+a)},this)))};F.a();function pg(){A.call(this);return this}m(pg,A);h(pg);pg.prototype.getName=q("hover-toggle");pg.prototype.each=function(a){var b=v(a),c=b.data(this.getData()),e=b.find(c.hover);e.size()||(e=b);(function(){var a;b.bindspace(this,"mouseenter",function(){clearTimeout(a);a=setTimeout(function(){e.addClass(c["class"],c.duration)},c.delay)});b.bindspace(this,"mouseleave",function(){clearTimeout(a);a=setTimeout(function(){e.removeClass(c["class"],c.duration)},c.delay)})})();return pg.c.each.call(this,a)};
pg.a();function qg(){A.call(this);return this}m(qg,A);h(qg);qg.prototype.getName=q("iframe");qg.prototype.each=function(a){var b=v(a),c=b.data(this.getData());b.request(!0);var e=$("\x3ciframe\x3e"),f;for(f in c)e.attr(f,c[f]);e.bind("load",function(){b.request(!1);b.hide();e.show()});e.hide();b.after(e);return qg.c.each.call(this,a)};qg.a();function rg(){A.call(this);return this}m(rg,A);h(rg);rg.prototype.getName=q("keyfilter");rg.prototype.getData=q("keyfilter");rg.prototype.each=function(a){var b=v(a);b.keyfilter(b.data(this.getData()));return rg.c.each.call(this,a)};rg.a();function sg(){A.call(this);return this}m(sg,A);h(sg);sg.prototype.getName=q("knob");sg.prototype.each=function(a){a=v(a);var b=a.data(this.getData()),c=v("\x3cinput\x3e").attr("type","text"),e;for(e in b)c.attr("data-"+e,b[e]);a.empty().append(c);c.knob();b.maxValue&&b.value>b.maxValue&&100>b.value&&(b.value=b.maxValue);c.animate({value:b.value},{duration:1E3,progress:function(){$(this).val(this.value).change()}});return y()};sg.a();function tg(){A.call(this);return this}m(tg,A);h(tg);tg.prototype.getName=q("lightbox");tg.prototype.Pd=q("[data-lightbox]");tg.prototype.getData=q("lightbox");tg.prototype.each=function(a){var b=v(a),c=b.data(this.getData());b.colorbox(Id(c)?c:{});return A.prototype.each.call(this,a)};tg.a();function ug(){A.call(this);return this}m(ug,A);h(ug);ug.prototype.getName=q("parent-remove");ug.prototype.each=function(a){var b=v(a);a=b.data(this.getData());Nd(a.level)&&(a.level=0);for(var c=0;c<a.level;c+=1)b=b.parent();b.remove();return y()};ug.a();function vg(){A.call(this);return this}m(vg,A);h(vg);vg.prototype.getName=q("phone");vg.prototype.each=function(a){var b=v(a);b.phone(b.data(this.getData())||{});return vg.c.each.call(this,a)};vg.a();function wg(){A.call(this);return this}m(wg,A);h(wg);d=wg.prototype;d.getName=q("placeholder");d.getData=q("placeholder");d.Pd=q("[placeholder]");d.init=function(a){if(!jQuery.browser.msie||10<=parseFloat(jQuery.browser.version))return y();var b=this.Pd(),c=jQuery.fn.val;jQuery.fn.val=function(a){arguments.length&&this.each(function(){var a=jQuery(this);a.is(b)&&(a.prev().hide(),a.show())});return c.apply(this,wd(arguments))};return wg.c.init.call(this,a)};
d.each=function(a){var b=v(a),c=b.attr(this.getData()),e=v("\x3cinput\x3e");e.attr({type:"text",tabindex:b.attr("tabindex"),autocomplete:b.attr("autocomplete"),maxlength:b.attr("maxlength")});e.addClass(b.attr("class")+" "+this.getData());e.val(c);b.before(e);""===b.val()?b.hide():e.hide();e.bindspace(this,"focus",function(){e.hide();b.show().focus()});b.bindspace(this,"blur",function(){""==b.val()&&(b.hide(),e.show())});return wg.c.each.call(this,a)};wg.a();function xg(){A.call(this);return this}m(xg,A);h(xg);xg.prototype.getName=q("prettify");xg.prototype.each=function(a){a=v(a);var b=a.clone(),c=v("\x3cdiv\x3e"),e=w();b.addClass("prettyprint");c.append(b);prettyPrint(e.resolve,c[0]);a.replaceWith(b);return e.promise()};xg.a();function yg(){A.call(this);return this}m(yg,A);h(yg);yg.prototype.getName=q("print-image");yg.prototype.each=function(a){a=v(a);var b=a.data(this.data);b.src&&a.bindspace(this,"click",function(){var a=window.open();a.document.write('\x3cimg src\x3d"'+b.src+'"\x3e');a.document.close();a.focus();a.print();a.close();return!1});return y()};yg.a();function zg(){A.call(this);if(!jQuery.browser.msie||9<parseFloat(jQuery.browser.version))return this;$(".qiwi-account").css({top:"-50px",visibility:"visible"}).delay(2E3).animate({top:"5px"},1600).delay(4800).animate({top:"-50px"},1600,function(){$(this).css({visibility:"hidden"})});return this}m(zg,A);h(zg);zg.prototype.getName=q("qiwi-account");zg.a();function Ag(){A.call(this);return this}m(Ag,A);h(Ag);Ag.prototype.getName=q("redirect");Ag.prototype.each=function(a){var b=v(a).data(this.getData());return b.url?(setTimeout(z(function(){b.analytics?Le.a().send(z(function(){Bg(b)},this)):Bg(b)},this),b.timeout||1),y()):b.reload?(F.a().reload(),y()):Ag.c.each.call(this,a)};
function Bg(a){if(a.params){var b=v("\x3cform\x3e").attr("action",a.url).attr("method","post").appendTo(document.body);yd(Id(a.params)?a.params:{},function(a,e){b.append(v("\x3cinput\x3e").attr("type","hidden").attr("name",a).val(e))});b.submit()}else a.iframe&&window.parent?window.parent.location.href=a.url:window.location.href=a.url}Ag.a();function Cg(){A.call(this);zd(v.fn.request.defaults,u.shell.request);zd(v.fn.request.defaults,u.qiwi.request);return this}m(Cg,A);h(Cg);Cg.prototype.getName=q("request");Cg.a();function Dg(){A.call(this);if(void 0===typeof window.console||top!==window||!/(^|\.)qiwi\.(com|sg)$/.test(document.domain))return this;var a=u.shell.selfxss.stop,b=u.shell.selfxss.warn;if(window.chrome||window.safari)return console.log("\n"),console.log("%c"+a,"font-family:Whitney,Helvetica,Arial,sans-serif;font-size:50px;font-weight:bold;text-transform:uppercase;color:#ffa834;-webkit-text-stroke:2px #26b;"),console.log("\n"),console.log("%c"+b,"font-family:Whitney,Helvetica,Arial,sans-serif;font-size:25px;"),
console.log("\n"),this;for(var a=' .d8888b.  888                       888;d88P  Y88b 888                       888;Y88b.      888                       888; "Y888b.   888888  .d88b.  88888b.   888;    "Y88b. 888    d88""88b 888 "88b  888;      "888 888    888  888 888  888  Y8P;Y88b  d88P Y88b.  Y88..88P 888 d88P     ; "Y8888P"   "Y888  "Y88P"  88888P"   888;                           888          ;                           888          ;                           888          '.split(";"),b=b.match(/.{35}.+?\s+|.+$/g),
c=Math.floor(Math.max(0,(a.length-b.length)/2)),e=0;e<a.length||e<b.length;e++){var f=a[e];a[e]=f+Array(45-f.length).join(" ")+(b[e-c]||"")}console.log("\n"+a.join("\n")+"\n\n");return this}m(Dg,A);h(Dg);Dg.prototype.getName=q("self-xss");Dg.a();function Eg(){A.call(this);return this}m(Eg,A);h(Eg);Eg.prototype.getName=q("select-toggle");Eg.prototype.each=function(a){var b=v(a).children(),c=b.eq(0).find("select"),e=b.eq(1).children();c.bindspace(this,"change",function(){e.hide().eq(c.find("option:selected").index()).show()});return Eg.c.each.call(this,a)};Eg.a();function Fg(){A.call(this);return this}m(Fg,A);h(Fg);Fg.prototype.getName=q("submit");Fg.prototype.each=function(a){v(a).removeAttr("disabled");return y()};Fg.a();function Gg(){A.call(this);return this}m(Gg,A);h(Gg);Gg.prototype.getName=q("video");
Gg.prototype.each=function(a){var b=v(a),c=b.data(this.getData()),e=null;yd(c.sources,function(a,g){e||(e=v("\x3cvideo\x3e\x3c/video\x3e"),e.get(0)&&e.get(0).canPlayType&&e.get(0).canPlayType(g.type)?v.ajax({url:g.src,timeout:c.timeout,success:function(){c.video["class"]=b.attr("class");c.video.src=g.src;yd(c.video,function(a,b){e.attr(a,b)});b.replaceWith(e)},error:function(){b.remove()}}):e=null)});e||b.remove();return A.prototype.each.call(this,a)};Gg.a();function Hg(){A.call(this);return this}m(Hg,A);h(Hg);Hg.prototype.getName=q("video-group-toggle");
Hg.prototype.each=function(a){function b(a){a%=g.length;a!=r&&(null!=r&&(f.filter(":nth-child("+g.length+"n+"+(r+1)+")").removeClass("active"),g.eq(r).hide(),l[r]&&(l[r].pause(),l[r].currentTime=0)),r=a,f.filter(":nth-child("+g.length+"n+"+(r+1)+")").addClass("active"),g.eq(r).show(),l[r]&&(l[r].load(),l[r].play(),l[r].currentTime=0))}var c=v(a),e=c.data(this.getData()),f=c.find(e.items).children(),g=c.find(e.blocks).children(),l=[],r=null,B=[];yd(e.videos,function(){B.push(w());l.push(null)});yd(e.videos,
function(a,c){var f=[];yd(c,function(){f.push(w())});x.apply(null,f).always(B[a].resolve);var r=null;yd(c,function(c,B){r?f[c].resolve():(r=v("\x3cvideo\x3e\x3c/video\x3e"),r.get(0)&&r.get(0).canPlayType&&r.get(0).canPlayType(B.type)?v.ajax({type:"GET",url:B.src,success:function(){r.attr("preload","none")},error:function(){r.attr("preload","preload")},complete:function(){r.attr("poster",e.poster);r.attr("src",B.src);g.eq(a).append(r);r.on("ended",function(){b(a+1)});l[a]=r.get(0);f[c].resolve()}}):
(r=null,f[c].resolve()))})});x.apply(null,B).always(function(){for(var a=0;a<l.length;a+=1)l[a].load();g.eq(0).show();v(window).bindspace(this,"touchstart",function(){v(window).unbindspace(this,"touchstart");b(0)});(new ScrollScene({triggerHook:"onCenter",triggerElement:c})).on("enter",function(){b(0)}).addTo(new ScrollMagic)});f.bindspace(this,"click",function(a){b($(a.currentTarget).index());a.preventDefault()});return A.prototype.each.call(this,a)};Hg.a();function Ig(){A.call(this);return this}m(Ig,A);h(Ig);Ig.prototype.getName=q("virtual-input");Ig.prototype.each=function(a){var b=v(a),c=b.data(this.getData()),e=b.find(c.text);a=b.find(c["char"]);b=b.find(c.back);a.bindspace(this,"click",function(a){a=e.val()+Dd(v(a.currentTarget).text());var b=parseInt(e.attr("maxlength")||e.rules().maxlength,10);b&&a.length>b||e.val(a).keyup()});b.bindspace(this,"click",function(){var a=e.val();""!==a&&e.val(a.substring(0,a.length-1)).keyup()});return x().promise()};
Ig.a();function Jg(){A.call(this);v(window).bindspace(this,"resize",function(){this.init(document)});return this}m(Jg,A);h(Jg);Jg.prototype.getName=q("viewport-height");Jg.prototype.each=function(a){a=v(a);var b=v(window).height(),c=parseInt(a.css("min-height"),10);a.height(b>c?b:c);return y()};Jg.a();function Rd(a,b){this.ya(a);this.mA(b);return this}Rd.prototype.ya=function(a){this.name=a;return this};Rd.prototype.getName=function(){return this.name};Rd.prototype.mA=function(a){this.method=a;return this};Rd.prototype.h=function(a,b){function c(){return y()}var e=w();Hd(b)&&(c=function(){return b(f)});var f={};Id(a)&&(f=zd(!0,{},a,f));x(this.method(f)).always(function(){x(c()).always(e.resolve)});return e.promise()};function Kg(){this.constructor.rc()&&Ud("Storage %s already has an instance",this.getName());this.data=new Td;return this}h(Kg);d=Kg.prototype;d.set=function(a){this.data.set.apply(this.data,wd(arguments));return this};d.get=function(a){return this.data.get(a)};d.replace=function(){this.data.replace.apply(this.data,wd(arguments));return this};d.remove=function(){this.data.remove.apply(this.data,wd(arguments));return this};d.empty=function(){this.data.empty();return this};d.kc=function(){return this.data.kc()};
d.toArray=function(){return this.data.toArray()};d.nn=function(){return this.data.nn()};function Lg(a,b){this.ya(a);this.Mb=[];if(Fd(b))for(var c=0;c<b.length;c++)this.Mb.push(b[c]);return this}d=Lg.prototype;d.ya=function(a){this.name=a;return this};d.getName=function(){return this.name};d.bb=function(){return this.Mb};function Mg(a,b){for(var c=b.bb(),e=0;e<c.length;e++)a.Mb.push(c[e])}d.addListener=function(a,b){this.Mb.push(new Ng(a,parseInt(b,10)||0));return this};
function I(a,b,c,e){Pd(b,J)&&(b=b.getName());Qd(c)&&(c=c.getName());a.addListener(function(a){return Je(D.a(),b).a().h(c,a)},e)}
d.trigger=function(a,b,c){function e(){return y()}c=parseInt(c,10);if(!Kd(c)||0>c)c=0;var f={event:this};Id(a)&&(f=zd(!0,{},a,f));Hd(b)&&(e=function(){return b(f)});var g=w(),l=Ed(this.Mb,function(a){return a.Xe()==c}),r=l.length;r?yd(l,function(a,b){x(b.h(f)).always(function(){0==--r&&g.resolve()})}):g.resolve();var B=w(),l=Ed(this.Mb,function(a){return a.Xe()>c});l.length?x(g).always(z(function(){x(this.trigger(a,b,c+1)).always(B.resolve)},this)):x(g).always(function(){x(e()).always(B.resolve)});
return B.promise()};var Og=new Lg("login-success"),Pg=new Lg("login-error"),Qg=new Lg("login-error-attempts"),Rg=new Lg("remind-error"),Sg=new Lg("registration-error"),Tg=new Lg("registration-success"),Ug=new Lg("person-info"),Vg=new Lg("provider"),Wg=new Lg("card-menu"),Xg=new Lg("payment-success"),Yg=new Lg("text-init"),og=new Lg("hash-change"),Zg=new Lg("extra-banners"),$g=new Lg("extra-provider");new Lg("extra-payment-reports");var ah=new Lg("extra-payment-providers");new Lg("extra-order-reports");
var bh=new Lg("oauth-created"),ch=new Lg("oauth-login-success"),dh=new Lg("oauth-login-error"),eh=new Lg("oauth-login-error-attempts"),fh=new Lg("oauth-registration-success");function Ng(a,b){this.mA(a);this.yM=b;return this}Ng.prototype.mA=function(a){this.method=a;return this};Ng.prototype.Xe=function(){return this.yM};Ng.prototype.h=function(a){return this.method.apply(null,arguments)};function K(a,b){Id(a)&&(b=a.tmpl,a=a.link);this.Be=a;this.MV=b}var gh=new K(u.qiwi.empty),hh=new K(u.qiwi.login),jh=new K(u.qiwi.logout);function G(a,b,c,e){Id(a)&&(c=a.name,b=a.path,e=a.tmpl,a=a.link);K.call(this,a,e);this.setPath(b);this.ya(c);a=F.a();(b=this.getPath())&&(a.links[b]||(a.links[b]=this))}m(G,K);h(G);G.prototype.getPath=function(){return this.Om};G.prototype.setPath=function(a){this.Om=a;return this};G.prototype.getName=function(){return this.wc};G.prototype.ya=function(a){this.wc=a;return this};var ng=new G(u.qiwi.main),kh=new G(u.qiwi.empty);function J(){this.constructor==J&&Ud("Widget %s is not creatable",this.getName());this.constructor.rc()&&Ud("Widget %s already has an instance",this.getName());this.log("create instance");this.e={};this.data=new Td;this.rz=this.gb=null;this.k=v();this.mc=null;this.r=gh;this.Es={};this.ja=L(this,"init");this.ab=L(this,"change");this.dL=L(this,"ajax-html-success");this.cL=L(this,"ajax-hml-error");this.iL=L(this,"ajax-json-success");this.hL=L(this,"ajax-json-input");this.fL=L(this,"ajax-json-error");
this.eL=L(this,"ajax-json-confirmation");this.gL=L(this,"ajax-json-expired");this.jb=L(this,"main");this.kr={};this.yl=N(this,"init",this.Db);this.Yh=N(this,"change",this.Cb);N(this,"restore",this.Hm);this.tB=N(this,"data-empty",this.vO);this.Zh=N(this,"data-merge",this.wO);this.ag=N(this,"ajax-html",this.F);this.eI=N(this,"ajax-html-complete",this.UN);this.pB=N(this,"ajax-html-success",this.Ji);this.fI=N(this,"ajax-html-error",this.VN);this.Wh=N(this,"ajax-json",this.G);this.gI=N(this,"ajax-json-complete",
this.jy);this.kI=N(this,"ajax-json-success",this.ky);this.jI=N(this,"ajax-json-input",this.XN);this.qB=N(this,"ajax-json-error",this.Na);this.hI=N(this,"ajax-json-confirmation",this.WN);this.iI=N(this,"ajax-json-expired",this.OE);this.V=N(this,"main",this.ha);this.Je=N(this,"empty",this.DO);this.ce=N(this,"show",this.Xa);this.ad=N(this,"hide",this.tc);N(this,"dialog",this.Jp);this.vn=N(this,"confirm",this.qb);return this}h(J);J.prototype.log=function(){};
J.prototype.nb=function(){this.log("destroy instance");Pd(this.k,jQuery)&&this.k.request(!1);this.constructor.RK()};J.prototype.Vw=function(){return"."+this.getName()+".widget"};J.prototype.getNamespace=J.prototype.Vw;d=J.prototype;d.getContainer=function(){return this.k};function O(a,b){var c=a.k,e=D.a().Pd();return v(b,c).filter(function(){return v(this).parents(e).first().is(c)})}function L(a,b,c){a.Es[b]=new Lg(b,c);return a.Es[b]}
d.trigger=function(a,b,c){Pd(a,Lg)&&(a=a.getName());Jd(a)||Ud("Event must be event or event name");this.Es[a]||Ud("Widget %s has no event %s",this.getName(),a);a=this.Es[a];this.log(za("trigger event %s",a.getName()));b=$.extend(b||{},{hu:this});return a.trigger(b,c)};function N(a,b,c){a.kr[b]=new Rd(b,z(function(a){return c.call(this,a)},a));return a.kr[b]}
d.h=function(a,b,c){Qd(a)&&(a=a.getName());Jd(a)||Ud("Action must be action or action name");this.kr[a]||Ud("Widget %s has no action %s",this.getName(),a);a=this.kr[a];this.log(za("execute action %s",a.getName()));b=$.extend(b||{},{action:a});return a.h(b,c)};d.getData=function(){return this.data};
d.init=function(a){this.e=zd({},!0,this.e,a);this.data.empty().set(this.e.data);Pd(this.e.container,jQuery)&&(this.k=this.e.container);Jd(this.e.selector)&&(this.rz=this.e.selector);this.rz&&(this.k=v(this.rz,document));this.mc&&lh(this.mc.a(),this.k);this.k.bindspace(this,"remove",z(function(){this.nb()},this));this.gb&&this.gb.replace(this.data)};d.Db=function(a){this.init(a);return this.trigger(this.ja,a)};
d.Cb=function(a){switch(a.mode){case "replace":this.data.replace(a.data);break;default:this.data.empty().set(a.data)}this.gb&&this.gb.set(this.data);return this.trigger(this.ab,a)};d.Hm=function(){return this.k.size()?y():this.ha({})};d.vO=function(){this.data.empty()};d.wO=function(a){Sd(a.data)&&a.data.set(this.data.toArray())};
d.F=function(a){var b=w(),c={context:this};c.type=a.type;c.type||(c.type="POST");c.dataType=a.dataType;c.data=a.data;c.headers=a.headers;c.url=a.url;Pd(a.link,K)&&(c.url=a.link.Be);c.url||Ud("Ajax url is required");-1==vd(c.dataType,["html"])&&(c.dataType="html");Pd(a.link,K)&&!Jd(a.Rg)&&(a.Rg=a.link.MV);Jd(a.Rg)&&(a.Rg=ca(a.Rg,window.template),Hd(a.Rg)?c.dataType="json":a.Rg=null);Sd(c.data)&&(c.data=c.data.toArray());a.sa||(a.sa="replaceWith");Pd(a.k,jQuery)||(a.k=this.k);!a.k.size()&&this.mc&&
(a.k=mh(this.mc.a()));Pd(a.request,jQuery)||(a.request=a.k);Qd(a.bg)||(a.bg=this.eI);Qd(a.t)||(a.t=this.pB);Qd(a.da)||(a.da=this.fI);Pd(a.vg,Lg)||(a.vg=this.dL);Pd(a.Md,Lg)||(a.Md=this.cL);c.beforeSend=function(b,c){this.log(za('XHR started loading: "%s"',c.url));a.request.request(b);return!0};c.success=function(b,c){try{Hd(a.Rg)&&(b=Id(b)&&Id(b.data)?a.Rg(b.data,null,{settings:u}):null),b=v(Dd(b)),b.filter("title, meta").size()?(a.response=v(),a.status="parsererror"):(a.response=b,a.status=c)}catch(g){a.response=
v(),a.status="parsererror"}};c.error=function(b,c,g){b.status&&u.shell.http.code[b.status]&&(g=u.shell.http.code[b.status]);a.response=g?v("\x3cdiv\x3e").html(g):v();a.status=c};c.complete=function(){a.request.request(!1);this.h(a.bg,a,b.resolve)};Pd(a.files,jQuery)&&(c.files=a.files,c.iframe=!0,c.processData=!1);Pd(a.form,jQuery)?a.form.ajaxSubmit(c):v.ajax(c);return b.promise()};
d.UN=function(a){return-1!=vd(a.status,["success","notmodified"])?this.h(a.t,a):-1==vd(a.status,["abort"])&&a.response.size()?this.h(a.da,a):y()};d.Ji=function(a){if(Jd(a.sa)&&Hd(a.k[a.sa]))a.k[a.sa](a.response);Pd(a.link,G)?F.a().save(a.link.getPath(),Nd(a.query)?a.data:a.query,a.link.getName(),a.replace):a.path&&F.a().save(a.path,Nd(a.query)?a.data:a.query,"",a.replace);return this.trigger(a.vg,a,function(a){return Fe.a().init(a.response)})};
d.VN=function(a){var b=w(),c=v("\x3cdiv\x3e");c.html(a.response).dialog({modal:!0,resizable:!1,draggable:!1,closeEnabled:!1,closeOnEscape:!1,title:u.shell.dialog.title.error,close:z(function(){this.trigger(a.Md,a,b.resolve);c.remove()},this),buttons:[{text:u.shell.dialog.button.close,click:function(){c.dialog("close")}}]});return b};
d.G=function(a){var b=w(),c={context:this};c.type=a.type;c.type||(c.type="POST");c.dataType=a.dataType;c.data=a.data;c.headers=a.headers;c.url=a.url;c.traditional=a.traditional;a.type||(c.type="POST");Pd(a.link,K)&&(c.url=a.link.Be);c.url||Ud("Ajax url is required");-1==vd(c.dataType,["json","jsonp"])&&(c.dataType="json");Sd(c.data)&&(c.data=c.data.toArray());Pd(a.k,jQuery)||(a.k=this.k);Pd(a.request,jQuery)||(a.request=a.k);Qd(a.bg)||(a.bg=this.gI);Qd(a.t)||(a.t=this.kI);Qd(a.yn)||(a.yn=this.jI);
Qd(a.da)||(a.da=this.qB);Qd(a.bc)||(a.bc=this.hI);Qd(a.uB)||(a.uB=this.iI);Pd(a.vg,Lg)||(a.vg=this.iL);Pd(a.lL,Lg)||(a.lL=this.hL);Pd(a.Md,Lg)||(a.Md=this.fL);Pd(a.jL,Lg)||(a.jL=this.eL);Pd(a.kL,Lg)||(a.kL=this.gL);c.beforeSend=function(b,c){this.log(za('XHR started loading: "%s"',c.url));a.request.request(b);return!0};c.success=function(b){if(!Id(b)||Md(b.code)||Md(b.code.value)||Md(b.data))b={code:{value:"parsererror"},data:b,message:null,messages:null};a.response=b;a.status=b.code.value};c.error=
function(b,c,g){g=b.status&&u.shell.http.code[b.status]?u.shell.http.code[b.status]:b.responseText;g={code:{value:c},data:null,message:g,messages:null};a.response=g;a.status=g.code.value};c.complete=function(){a.request.request(!1);a.response.message||(Fd(a.response.messages)?a.response.message=a.response.messages.join("\n"):"0"!=a.response.code.value&&(a.response.message=u.shell.ajax[a.response.code.value]));this.h(a.bg,a,b.resolve);this.Ix=a.status};Pd(a.files,jQuery)&&(c.files=a.files,c.iframe=
!0,c.processData=!1);Pd(a.form,jQuery)?a.form.ajaxSubmit(c):v.ajax(c);return b.promise()};
d.jy=function(a){if(-1!=vd(a.status,["0"]))return this.h(a.t,a);if(-1!=vd(a.status,["1"]))return this.h(a.yn,a);if(-1!=vd(a.status,["4"]))return this.h(a.bc,a);if(-1!=vd(a.status,["5"])){var b=a.response.data;return Id(b)&&(b.awaytingConfirm||b.confirmLink)?this.h(a.bc,a):this.h(a.t,a)}if(-1!=vd(a.status,["6"]))return this.h(a.uB,a);if(-1!=vd(a.status,["7"]))return b=a.response.data,Id(b)&&b.token&&"7"!=this.Ix?(b.url&&(delete a.link,a.url=b.url),a.data=new Td(b.parameters&&!Pd(a.form,jQuery)?b.parameters:
a.data),a.data.set("token",b.token),this.G(a)):this.h(a.da,a);if(-1!=vd(a.status,["6"]))return this.h(this.qB,a);if(-1!=vd(a.status,["11"]))return F.a().reload(),y();if(-1!=vd(a.status,["301"])){var c=v("\x3cdiv\x3e");c.html(a.response.message).dialog({modal:!0,resizable:!1,draggable:!1,closeEnabled:!1,closeOnEscape:!1,title:u.shell.dialog.title.info,close:z(function(){a.response.data?window.location.href=a.response.data:F.a().reload();c.remove()},this),buttons:[{text:u.shell.dialog.button.close,
click:function(){c.dialog("close")}}]});return y()}return-1!=vd(a.status,["abort"])?y():this.h(a.da,a)};d.ky=function(a){if(!a.response.message)return y();var b=w(),c=v("\x3cdiv\x3e");c.html(a.response.message).dialog({modal:!0,resizable:!1,draggable:!1,closeEnabled:!1,closeOnEscape:!1,title:u.shell.dialog.title.info,close:z(function(){this.trigger(a.vg,a,b.resolve);c.remove()},this),buttons:[{text:u.shell.dialog.button.close,click:function(){c.dialog("close")}}]});return b};
d.Na=function(a){var b=w(),c=v("\x3cdiv\x3e");c.html(a.response.message).dialog({modal:!0,resizable:!1,draggable:!1,closeEnabled:!1,closeOnEscape:!1,title:u.shell.dialog.title.error,close:z(function(){this.trigger(a.Md,a,b.resolve);c.remove()},this),buttons:[{text:u.shell.dialog.button.close,click:function(){c.dialog("close")}}]});return b};d.XN=function(a){return this.Na(a)};d.WN=function(a){return this.Na(a)};d.OE=function(a){return this.Na(a)};
function nh(a,b){b.headers=zd({Accept:"application/vnd.qiwi.v"+(b.version||1)+"+json","Content-Type":"application/json"},b.headers||{});"POST"!=b.type&&"PUT"!=b.type||!b.data||(b.data=Te(b.data));var c=b.url.split("?");b.url=[u.qiwi.context,b.cf?"/user":"","/sinap",c[0],"/proxy.action",c[1]?"?"+c[1]:""].join("");return a.G(b)}d.ha=function(a){a.data=new Td(this.data.kc());return this.trigger(this.jb,a,z(function(a){a.link=this.r;return this.h(this.ag,a)},this))};d.DO=function(){return y()};d.Xa=function(){this.k.show()};
d.tc=function(){this.k.hide()};d.Jp=function(a){var b=w(),c=v("\x3cdiv\x3e");c.html(a.message).dialog({modal:!0,width:"auto",resizable:!1,draggable:!1,closeEnabled:!1,closeOnEscape:!1,title:null,open:function(){c.dialog("option","position","center")},close:function(){c.remove()},buttons:[{text:a.close||u.shell.dialog.button.close,click:function(){Hd(a.fg)?x(a.fg()).always(b.resolve):b.resolve();c.dialog("close")}}]});return b};
d.qb=function(a){var b=w(),c=v("\x3cdiv\x3e");c.html(a.message).dialog({modal:!0,width:"auto",resizable:!1,draggable:!1,closeEnabled:!1,closeOnEscape:!1,title:u.shell.dialog.title.attention,open:function(){c.dialog("option","position","center")},close:function(){c.remove()},buttons:[{text:a.TV||u.shell.dialog.button.yes,click:function(){Hd(a.confirm)?x(a.confirm()).always(b.resolve):b.resolve();c.dialog("close")}},{text:a.HR||u.shell.dialog.button.no,click:function(){Hd(a.cancel)?x(a.cancel()).always(b.resolve):
b.resolve();c.dialog("close")}}]});return b};d.ph=function(){return this.getName()};d.ca=function(a,b,c,e,f,g,l){b=a.action||b;c=a.label||c;e=a.context||e||this.e.context;f=a.location||f||this.e.location;g=a.category||g||this.ph();a=a.data||l;Qd(b)&&(b=b.getName());Fd(c)&&(c=c.join(", "));Le.a().ca(g,b,c,e,f,a)};function oh(){J.call(this);this.Ub="ul \x3e li";this.K=jQuery();return this}m(oh,J);h(oh);d=oh.prototype;d.getName=q("menu");d.init=function(a){oh.c.init.call(this,a);this.K=O(this,this.e.Ub||this.Ub)};d.Cb=function(a){var b=this.K.removeClass("active").ishas(a.target).addClass("active");b.is(a.target)&&F.a().click(b);return oh.c.Cb.call(this,a)};d.Hm=function(a){return oh.c.Hm.call(this,a)};d.tc=function(a){this.K.removeClass("active");oh.c.tc.call(this,a)};E(D.a(),oh);function P(){this.constructor==P&&Ud("Widget %s is not creatable",this.getName());J.call(this);this.Bt="form";this.MF=":input";this.YG="[data-container-name\x3dsuccess], .successMessageBlock";this.FF="[data-container-name\x3derror], .errorMessageBlock";this.l=v();this.L=v();this.yo=v();this.pa=v();N(this,"submit",this.lR);return this}m(P,J);h(P);d=P.prototype;d.getName=q("form");
d.init=function(a){P.c.init.call(this,a);this.l=O(this,this.e.Bt||this.Bt);this.L=O(this,this.e.MF||this.MF);this.yo=O(this,this.e.YG||this.YG);this.pa=O(this,this.e.FF||this.FF);this.l.is(":visible")&&(this.data.replace(this.l.formToArray()),this.gb&&this.gb.set(this.data));this.l.bindspace(this,"submit",function(){this.h(this.Yh);return!1});this.l.bindspace(this,"invalid-form",function(a,c){this.ca({},"validate",wb(vb(c.errorMap,function(a,b){return b+":"+a})))});if(null==this.e.analytics||!1!==
this.e.analytics)this.L.filter(":text,:password").each(function(){var a=v(this),c=a.val();a.data("ui-mask")&&(c=a.mask("value"));a.attr("default",c)}).bindspace("ga","blur",z(function(a){a=v(a.target);var c=a.val();a.data("ui-mask")&&(c=a.mask("value"));Le.a().send({event:"FormTrack",FormTrack:{form:Ya(Xa(this.ph())),type:a.attr("type"),name:a.attr("name")+(a.data("title")?"|"+a.data("title"):""),val:c&&c!=a.attr("default")?"completed":"skipped"}})},this)),this.L.filter("select").each(function(){var a=
v(this),c=a.val();a.attr("default",c)}).bindspace("ga","change",z(function(a){a=v(a.target);Le.a().send({event:"FormTrack",FormTrack:{form:Ya(Xa(this.ph())),type:a.prop("tagName").toLowerCase(),name:a.attr("name")+(a.data("title")?"|"+a.data("title"):""),val:a.val()}})},this)),this.L.filter(":radio").bindspace("ga","change",z(function(a){a=v(a.target);Le.a().send({event:"FormTrack",FormTrack:{form:Ya(Xa(this.ph())),type:a.attr("type"),name:a.attr("name")+(a.data("title")?"|"+a.data("title"):""),val:a.filter(":checked").val()}})},
this)),this.L.filter(":checkbox").bindspace("ga","change",z(function(a){a=v(a.target);Le.a().send({event:"FormTrack",FormTrack:{form:Ya(Xa(this.ph())),type:a.attr("type"),name:a.attr("name")+(a.data("title")?"|"+a.data("title"):""),val:a.is(":checked")?"check":"uncheck"}})},this))};d.Xa=function(a){P.c.Xa.call(this,a);this.L.refresh()};d.tc=function(a){P.c.tc.call(this,a);this.L.refresh()};
d.Cb=function(a){this.pa.empty().hide();this.yo.empty().hide();if(this.l.size()&&!this.l.valid())return y();a.data=(new Td(this.l.formToArray(),a.data)).kc();return P.c.Cb.call(this,a)};d.lR=function(){this.pa.empty().hide();this.yo.empty().hide();return this.l.size()&&!this.l.valid()?x().promise():this.G({form:this.l,url:this.l.attr("action")})};
d.Hm=function(a){this.l.populate(Cd(mg()));this.L.trigger("refresh");this.l.is(":visible")&&this.data.replace(this.l.formToArray());return P.c.Hm.call(this,a)};d.ky=function(a){this.l.size()&&this.l.validate().resetForm(!0);return this.yo.size()?(this.yo.html(a.response.message).show(),this.trigger(a.vg,a)):P.c.ky.call(this,a)};
d.Na=function(a){this.l.size()&&this.l.validate().resetForm(!0);if(this.l.size()&&Id(a.response.messages)&&!Gd(a.response.messages))return this.l.validate().showErrors(a.response.messages),this.trigger(a.Md,a);this.ca(a,null,a.response.message);return this.pa.size()?(this.pa.html(a.response.message).show(),this.trigger(a.Md,a)):P.c.Na.call(this,a)};E(D.a(),P);function Q(){P.call(this);this.mc=Pe;this.r=kh;this.t=N(this,"success",this.Ik);this.da=N(this,"error",this.yy);Mg(this.ja,Yg);return this}m(Q,P);h(Q);Q.prototype.getName=q("text");Q.prototype.init=function(a){Q.c.init.call(this,a);this.e.title&&(document.title=this.e.title);switch(a.type){case "full":ph.trigger();break;case "double-column":qh.trigger();break;case "double-column-alt":rh.trigger();break;case "three-column":sh.trigger()}};Q.prototype.Ik=function(a){this.k.empty().removeClass().addClass("resultPage").addClass("page").addClass("narrow").append(jQuery("\x3ci\x3e").addClass("icon-success").addClass("fa").addClass("fa-check-circle")).append(jQuery("\x3ch2\x3e").html(a.response.message))};
Q.prototype.yy=function(a){this.k.empty().removeClass().addClass("resultPage").addClass("page").addClass("narrow").append(jQuery("\x3ci\x3e").addClass("icon-error").addClass("fa").addClass("fa-times-circle-o")).append(jQuery("\x3ch2\x3e").html(a.response.message))};E(D.a(),Q);function th(){Q.call(this);Mg(this.ja,sh);return this}m(th,Q);h(th);th.prototype.getName=q("slim-text");E(D.a(),th);function uh(){Q.call(this);Mg(this.ja,qh);return this}m(uh,Q);h(uh);uh.prototype.getName=q("wide-text");E(D.a(),uh);function vh(){this.constructor==vh&&Ud("Widget %s is not creatable",this.getName());J.call(this);this.Mj=v();this.Fb=N(this,"load",this.$b);return this}m(vh,J);h(vh);vh.prototype.getName=q("wrap");function mh(a){a.Mj.size()&&a.Mj.parent().size()||(a.Mj=a.k.wrapInner("\x3cdiv\x3e").children().first());return a.Mj}function lh(a,b){a.Mj=b}vh.prototype.ha=function(a){this.Mj.request(!1);a.k=mh(this);return this.ag.h(a)};vh.prototype.$b=function(){this.Mj.request(!1);mh(this).request(!0)};function Ne(){vh.call(this);this.Dc=["full","double-column","double-column-alt","three-column"];this.hK=N(this,"view-1",this.xR);this.iK=N(this,"view-2",this.yR);this.jK=N(this,"view-3",this.zR);this.kK=N(this,"view-4",this.AR);return this}m(Ne,vh);h(Ne);d=Ne.prototype;d.getName=q("body");d.xR=function(){this.k.removeClass(this.Dc.join(" ")).addClass(this.Dc[0])};d.yR=function(){this.k.removeClass(this.Dc.join(" ")).addClass(this.Dc[1])};d.zR=function(){this.k.removeClass(this.Dc.join(" ")).addClass(this.Dc[2])};
d.AR=function(){this.k.removeClass(this.Dc.join(" ")).addClass(this.Dc[3])};E(D.a(),Ne);var ph=new Lg("body-view-1"),qh=new Lg("body-view-2"),rh=new Lg("body-view-3"),sh=new Lg("body-view-4");ph.addListener(function(){if(Ne.rc())return Ne.a().hK.h()});qh.addListener(function(){if(Ne.rc())return Ne.a().iK.h()});rh.addListener(function(){if(Ne.rc())return Ne.a().jK.h()});sh.addListener(function(){if(Ne.rc())return Ne.a().kK.h()});function wh(a,b){a.innerHTML=xc(b)};function xh(){return Xb?"Webkit":Wb?"Moz":s?"ms":Vb?"O":null};function yh(a,b,c,e){this.top=a;this.right=b;this.bottom=c;this.left=e}d=yh.prototype;d.clone=function(){return new yh(this.top,this.right,this.bottom,this.left)};d.contains=function(a){return this&&a?a instanceof yh?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
d.expand=function(a,b,c,e){la(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=b,this.bottom+=c,this.left-=e);return this};d.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};d.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
d.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};function zh(a,b,c,e){this.left=a;this.top=b;this.width=c;this.height=e}d=zh.prototype;d.clone=function(){return new zh(this.left,this.top,this.width,this.height)};d.contains=function(a){return a instanceof zh?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};d.getCenter=function(){return new Gc(this.left+this.width/2,this.top+this.height/2)};
d.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};d.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};d.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ah(a,b,c){if(ia(b))(b=Bh(a,b))&&(a.style[b]=c);else for(var e in b){c=a;var f=b[e],g=Bh(c,e);g&&(c.style[g]=f)}}function Bh(a,b){var c=Xa(b);if(void 0===a.style[c]){var e=xh()+Ya(c);if(void 0!==a.style[e])return e}return c}function Ch(a,b){var c=Lc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Dh(a,b){return Ch(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
function Eh(a,b,c){var e,f=Wb&&(Yb||Zb)&&dc("1.9");b instanceof Gc?(e=b.x,b=b.y):(e=b,b=c);a.style.left=Fh(e,f);a.style.top=Fh(b,f)}function Gh(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}s&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Hh(a){if(s&&!ec(8))return a.offsetParent;var b=Lc(a),c=Dh(a,"position"),e="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Dh(a,"position"),e=e&&"static"==c&&a!=b.documentElement&&a!=b.body,!e&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}
function Ih(a){for(var b=new yh(0,Infinity,Infinity,0),c=Jc(a),e=c.$a.body,f=c.$a.documentElement,g=sd(c);a=Hh(a);)if(!(s&&0==a.clientWidth||Xb&&0==a.clientHeight&&a==e)&&a!=e&&a!=f&&"visible"!=Dh(a,"overflow")){var l=Jh(a),r;r=a;if(Wb&&!dc("1.9")){var B=parseFloat(Ch(r,"borderLeftWidth"));if(Kh(r))var C=r.offsetWidth-r.clientWidth-B-parseFloat(Ch(r,"borderRightWidth")),B=B+C;r=new Gc(B,parseFloat(Ch(r,"borderTopWidth")))}else r=new Gc(r.clientLeft,r.clientTop);l.x+=r.x;l.y+=r.y;b.top=Math.max(b.top,
l.y);b.right=Math.min(b.right,l.x+a.clientWidth);b.bottom=Math.min(b.bottom,l.y+a.clientHeight);b.left=Math.max(b.left,l.x)}e=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,g);c=Pc(Sc(c.$a)||window);b.right=Math.min(b.right,e+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null}
function Jh(a){var b,c=Lc(a),e=Dh(a,"position"),f=Wb&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==e&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),g=new Gc(0,0),l;b=c?Lc(c):document;l=!s||ec(9)||rd(Jc(b))?b.documentElement:b.body;if(a==l)return g;if(a.getBoundingClientRect)b=Gh(a),a=td(Jc(c)),g.x=b.left+a.x,g.y=b.top+a.y;else if(c.getBoxObjectFor&&!f)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(l),g.x=b.screenX-a.screenX,g.y=b.screenY-a.screenY;else{b=a;do{g.x+=b.offsetLeft;g.y+=
b.offsetTop;b!=a&&(g.x+=b.clientLeft||0,g.y+=b.clientTop||0);if(Xb&&"fixed"==Dh(b,"position")){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(Vb||Xb&&"absolute"==e)g.y-=c.body.offsetTop;for(b=a;(b=Hh(b))&&b!=c.body&&b!=l;)g.x-=b.scrollLeft,Vb&&"TR"==b.tagName||(g.y-=b.scrollTop)}return g}function Fh(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Lh(a,b){a.style.height=Fh(b,!0)}function Mh(a,b){a.style.width=Fh(b,!0)}
function Nh(a){var b=Oh;if("none"!=Dh(a,"display"))return b(a);var c=a.style,e=c.display,f=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=e;c.position=g;c.visibility=f;return a}function Oh(a){var b=a.offsetWidth,c=a.offsetHeight,e=Xb&&!b&&!c;return ba(b)&&!e||!a.getBoundingClientRect?new Ic(b,c):(a=Gh(a),new Ic(a.right-a.left,a.bottom-a.top))}function Ph(a){var b=Jh(a);a=Nh(a);return new zh(b.x,b.y,a.width,a.height)}
function R(a,b){a.style.display=b?"":"none"}function Kh(a){return"rtl"==Dh(a,"direction")}var Qh=Wb?"MozUserSelect":Xb?"WebkitUserSelect":null;function Rh(a,b,c){c=c?null:a.getElementsByTagName("*");if(Qh){if(b=b?"none":"",a.style[Qh]=b,c){a=0;for(var e;e=c[a];a++)e.style[Qh]=b}}else if(s||Vb)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;e=c[a];a++)e.setAttribute("unselectable",b)}
function Sh(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var f=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=e;return f}function Th(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Sh(a,c):0}
function Uh(a){if(s){var b=Th(a,"paddingLeft"),c=Th(a,"paddingRight"),e=Th(a,"paddingTop");a=Th(a,"paddingBottom");return new yh(e,c,a,b)}b=Ch(a,"paddingLeft");c=Ch(a,"paddingRight");e=Ch(a,"paddingTop");a=Ch(a,"paddingBottom");return new yh(parseFloat(e),parseFloat(c),parseFloat(a),parseFloat(b))}var Vh={thin:2,medium:4,thick:6};function Wh(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in Vh?Vh[c]:Sh(a,c)}
function Xh(a){if(s&&!ec(9)){var b=Wh(a,"borderLeft"),c=Wh(a,"borderRight"),e=Wh(a,"borderTop");a=Wh(a,"borderBottom");return new yh(e,c,a,b)}b=Ch(a,"borderLeftWidth");c=Ch(a,"borderRightWidth");e=Ch(a,"borderTopWidth");a=Ch(a,"borderBottomWidth");return new yh(parseFloat(e),parseFloat(c),parseFloat(a),parseFloat(b))}var Yh=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Zh(){}h(Zh);Zh.prototype.FR=0;function $h(a){return":"+(a.FR++).toString(36)};function ai(a){Hf.call(this);this.Kb=a||Jc();this.xt=bi;this.Ja=null;this.j=!1;this.aa=null;this.Ai=void 0;this.mf=this.va=this.Ud=this.xa=null;this.OH=!1}m(ai,Hf);ai.prototype.qM=Zh.a();var bi=null;
function ci(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?"highlight":"unhighlight";case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close"}throw Error("Invalid component state");}d=ai.prototype;d.Ha=function(){return this.Ja||(this.Ja=$h(this.qM))};
d.ic=function(a){if(this.Ud&&this.Ud.mf){var b=this.Ud.mf,c=this.Ja;c in b&&delete b[c];Bb(this.Ud.mf,a,this)}this.Ja=a};d.b=function(){return this.aa};d.Pw=function(a){return this.aa?this.Kb.Pw(a,this.aa):null};d.Q=function(){this.Ai||(this.Ai=new Mf(this));return this.Ai};function di(a,b){if(a==b)throw Error("Unable to set parent component");if(b&&a.Ud&&a.Ja&&ei(a.Ud,a.Ja)&&a.Ud!=b)throw Error("Unable to set parent component");a.Ud=b;ai.c.Rt.call(a,b)}d.getParent=function(){return this.Ud};
d.Rt=function(a){if(this.Ud&&this.Ud!=a)throw Error("Method not supported");ai.c.Rt.call(this,a)};d.p=function(){return this.Kb};d.g=function(){this.aa=this.Kb.createElement("div")};function fi(a,b){T(a,b)}function T(a,b,c){if(a.j)throw Error("Component already rendered");a.aa||a.g();b?b.insertBefore(a.aa,c||null):a.Kb.$a.body.appendChild(a.aa);a.Ud&&!a.Ud.j||a.n()}
d.ea=function(a){if(this.j)throw Error("Component already rendered");if(a&&this.Gb(a)){this.OH=!0;var b=Lc(a);this.Kb&&this.Kb.$a==b||(this.Kb=Jc(a));this.Gc(a);this.n()}else throw Error("Invalid element to decorate");};d.Gb=function(){return!0};d.Gc=function(a){this.aa=a};d.n=function(){this.j=!0;gi(this,function(a){!a.j&&a.b()&&a.n()})};d.B=function(){gi(this,function(a){a.j&&a.B()});this.Ai&&this.Ai.Sm();this.j=!1};
d.I=function(){this.j&&this.B();this.Ai&&(this.Ai.O(),delete this.Ai);gi(this,function(a){a.O()});!this.OH&&this.aa&&$c(this.aa);this.Ud=this.xa=this.aa=this.mf=this.va=null;ai.c.I.call(this)};d.ee=function(a,b){this.ai(a,hi(this),b)};
d.ai=function(a,b,c){if(a.j&&(c||!this.j))throw Error("Component already rendered");if(0>b||b>hi(this))throw Error("Child component index out of bounds");this.mf&&this.va||(this.mf={},this.va=[]);if(a.getParent()==this){var e=a.Ha();this.mf[e]=a;nb(this.va,a)}else Bb(this.mf,a.Ha(),a);di(a,this);rb(this.va,b,0,a);a.j&&this.j&&a.getParent()==this?(c=this.Va(),c.insertBefore(a.b(),c.childNodes[b]||null)):c?(this.aa||this.g(),b=ii(this,b+1),T(a,this.Va(),b?b.aa:null)):this.j&&!a.j&&a.aa&&a.aa.parentNode&&
1==a.aa.parentNode.nodeType&&a.n()};d.Va=function(){return this.aa};function ji(a){null==a.xt&&(a.xt=Kh(a.j?a.aa:a.Kb.$a.body));return a.xt}d.Uf=function(a){if(this.j)throw Error("Component already rendered");this.xt=a};function ki(a){return!!a.va&&0!=a.va.length}function hi(a){return a.va?a.va.length:0}function ei(a,b){var c;a.mf&&b?(c=a.mf,c=(b in c?c[b]:void 0)||null):c=null;return c}function ii(a,b){return a.va?a.va[b]||null:null}function gi(a,b,c){a.va&&n(a.va,b,c)}
function li(a,b){return a.va&&b?$a(a.va,b):-1}d.removeChild=function(a,b){if(a){var c=ia(a)?a:a.Ha();a=ei(this,c);if(c&&a){var e=this.mf;c in e&&delete e[c];nb(this.va,a);b&&(a.B(),a.aa&&$c(a.aa));di(a,null)}}if(!a)throw Error("Child is not in parent component");return a};d.S=function(a){for(var b=[];ki(this);)b.push(this.removeChild(ii(this,0),a));return b};function mi(a){ai.call(this,a)}m(mi,ai);mi.prototype.g=function(){this.aa=this.p().g("FORM",{method:"POST",style:"display:none"})};mi.prototype.post=function(a,b,c){var e=this.b();e||(T(this,void 0),e=this.b());e.action=b||"";e.target=c||"";ni(this,e,a);e.submit()};function ni(a,b,c){var e,f,g=[];for(e in c)f=c[e],ha(f)?n(f,k(function(a){g.push(Bc({type:"hidden",name:e,value:String(a)}))},a)):g.push(Bc({type:"hidden",name:e,value:String(f)}));wh(b,Cc(g))};function oi(a){ai.call(this,a)}m(oi,mi);oi.prototype.post=function(a,b,c,e){var f=this.b();f||(T(this,void 0),f=this.b());f.action=b||"";f.target=c||"";f.enctype=e||"multipart/form-data";f.encoding=e||"multipart/form-data";ni(this,f,a);f.submit()};function Pe(){vh.call(this);this.HN=new K(u.qiwi.login.url);N(this,"url",this.vR);this.gK=N(this,"url-success",this.wR);return this}m(Pe,vh);h(Pe);Pe.prototype.getName=q("content");Pe.prototype.init=function(a){Pe.c.init.call(this,a);$.cookie("TestForThirdPartyCookie","yes",{path:"/"});"yes"!=$.cookie("TestForThirdPartyCookie")&&this.k.html(u.shell["disable-third-party-cookies"])};Pe.prototype.vR=function(a){return this.G({link:this.HN,data:a.data,t:this.gK})};
Pe.prototype.wR=function(a){a=a.response&&Id(a.response.data)?a.response.data:{};a.url&&(new oi).post(a.params,a.url);return y()};E(D.a(),Pe);function pi(){vh.call(this);return this}m(pi,vh);h(pi);pi.prototype.getName=q("navigation");E(D.a(),pi);function qi(){Kg.call(this);return this}m(qi,Kg);h(qi);function ri(){J.call(this);this.hN=new K(u.qiwi.empty);this.Tz="[data-container\x3dselect]";this.kh=jQuery();return this}m(ri,J);h(ri);ri.prototype.getName=q("language");ri.prototype.init=function(a){ri.c.init.call(this,a);this.kh=O(this,this.Tz);this.kh.bindspace(this,"change",function(){this.h(this.Yh)})};
ri.prototype.Cb=function(a){var b=this.kh.val();if(b==this.e.selected)return y();this.ca(zd({},a,{label:this.e.selected+"-"+b}));return this.h(this.ag,{link:this.hN,data:{lang:b}},z(function(){var a=qi.a().kc();Gd(a)?F.a().reload():(new oi).post(a,F.a().fc())},this))};E(D.a(),ri);function si(){J.call(this);I(this.ja,this.getName(),this.V.getName());return this}m(si,J);h(si);si.prototype.getName=q("link");si.prototype.ha=function(){return this.F({link:new K(this.e.url)})};E(D.a(),si);function ti(){P.call(this);this.gb=qi.a();return this}m(ti,P);h(ti);ti.prototype.getName=q("post");E(D.a(),ti);function ui(){Q.call(this);this.vJ=N(this,"redirect",this.eQ);I(this.ja,this.getName(),this.vJ.getName());return this}m(ui,Q);h(ui);ui.prototype.getName=q("token");ui.prototype.eQ=function(){return this.e.url?this.F({url:this.e.url,data:this.data}):y()};E(D.a(),ui);function vi(){J.call(this);this.$x=new K(u.qiwi.empty);this.Nu=N(this,"select",this.Sp);this.Ou=N(this,"select-success",this.Qy);return this}m(vi,J);h(vi);vi.prototype.getName=q("country-select");vi.prototype.Sp=function(a){return this.F({link:this.$x,data:a.data,k:jQuery("\x3cdiv\x3e"),request:this.k,t:this.Ou})};vi.prototype.Qy=function(){this.k.request(!0);F.a().reload()};E(D.a(),vi);function wi(){J.call(this);this.$x=new K(u.qiwi.country.select);this.Nu=N(this,"select",this.Sp);this.Ou=N(this,"select-success",this.Qy);return this}m(wi,J);h(wi);wi.prototype.getName=q("country-toggle");wi.prototype.Sp=function(a){return this.F({link:this.$x,data:a.data,k:v("\x3cdiv\x3e"),t:this.Ou})};
wi.prototype.Qy=function(a){var b=w(),c=v("\x3cdiv\x3e");c.html(a.response).dialog({modal:!0,width:"auto",resizable:!1,draggable:!1,closeEnabled:!0,closeOnEscape:!0,open:function(){Fe.a().init(a.response).always(function(){c.dialog("option","position","center")})},close:function(){b.resolve();c.remove()}});return b.promise()};E(D.a(),wi);function xi(){J.call(this);this.Tg=N(this,"login-success",this.Gm);this.Ug=N(this,"logout-success",this.Hg);this.YI=N(this,"logout-error",this.tP);this.Uj=L(this,"login-success",Og.bb());this.Lc=window["qiwi-main-lib"].auth;this.Qq=null;this.SK=3E4;this.Ax=!1;return this}m(xi,J);h(xi);d=xi.prototype;d.getName=q("sso");d.init=function(a){xi.c.init.call(this,a);v(window).bindspace(this,"focus",function(){yi(this)});yi(this).then(function(){zi(this,a)}.bind(this))};
function zi(a,b){var c=a.e.auth;a.Qq&&clearTimeout(a.Qq);a.Qq=setTimeout(function(){c?yi(this).then(function(){zi(this,b)}.bind(this)):zi(this,b)}.bind(a),a.SK)}d.nb=function(){xi.c.nb.call(this);clearTimeout(this.Qq);this.Qq=null};function yi(a){return a.Lc.isAuthorized(a.e.auth,a.Gg.bind(a),a.$e.bind(a)).then(function(a){Md(a)?Fe.a().jz.resolve():Fe.a().jz.reject()}.bind(a))}d.Gg=function(a){return this.G({url:u.qiwi.sso.check,type:"GET",data:a.data,t:this.Tg})};
d.Gm=function(a){return this.trigger(Og,{response:a.response})};d.$e=function(){return this.G({link:jh,t:this.Ug,da:this.YI})};d.Hg=function(){window.location.href=u.qiwi.context+"/"};
d.tP=function(a){if(this.Ax)return y();var b=w(),c=v("\x3cdiv\x3e");this.Ax=!0;c.html(a.response.message).dialog({modal:!0,resizable:!1,draggable:!1,closeEnabled:!1,closeOnEscape:!1,title:u.shell.dialog.title.error,close:z(function(){this.trigger(a.Md,a,b.resolve);this.Ax=!1;c.remove()},this),buttons:[{text:u.shell.dialog.button.close,click:function(){c.dialog("close")}}]});return b};E(D.a(),xi);function Ai(){Q.call(this);N(this,"process",this.PP);N(this,"process-success",this.QP);return this}m(Ai,Q);h(Ai);Ai.prototype.getName=q("acquiring-abstract");Ai.prototype.PP=function(){this.pa.empty().hide();return this.l.valid()?this.F({link:this.Vx,data:this.l.formToArray()}):x().promise()};
Ai.prototype.QP=function(a){var b=a.response.data||{},c=b.failUrl||b.successUrl||b.redirectUrl;a=b.errorMessage;var b=b.redirectParams,e=null;c&&b&&(e=v("\x3cform\x3e").attr("action",c).attr("method","post").appendTo(document.body),yd(b,function(a,b){e.append(v("\x3cinput\x3e").attr("type","hidden").attr("name",a).val(b))}));if(a){var f=w(),g=v("\x3cdiv\x3e");g.html(a).dialog({modal:!0,resizable:!1,draggable:!1,closeEnabled:!1,closeOnEscape:!1,close:z(function(){f.resolve();g.remove();c&&(e?e.submit():
window.location.href=c)},this),buttons:[{text:u.shell.dialog.button.close,click:function(){g.dialog("close")}}]});return f}c&&(e?e.submit():window.location.href=c);return x().promise()};function Bi(){Ai.call(this);this.r=Ci;this.Vx=new K(u.acquiring.pay.subscribed.process);return this}m(Bi,Ai);h(Bi);Ai.prototype.getName=q("acquiring-pay-subscribed-form");E(D.a(),Bi);var Ci=new G(u.acquiring.pay.subscribed.form);function Di(){Ai.call(this);this.r=Ei;this.Vx=new K(u.acquiring.pay.unsubscribed.process);return this}m(Di,Ai);h(Di);Ai.prototype.getName=q("acquiring-pay-unsubscribed-form");E(D.a(),Di);var Ei=new G(u.acquiring.pay.unsubscribed.form);function Fi(){Ai.call(this);this.r=Gi;this.Vx=new K(u.acquiring.subscribe);return this}m(Fi,Ai);h(Fi);Ai.prototype.getName=q("acquiring-subscribe-form");E(D.a(),Fi);var Gi=new G(u.acquiring.subscribe.form.main);function Hi(){Q.call(this);this.r=Ii;this.jN=new K(u.applications.list.lock.token);this.iN=new K(u.applications.list.lock.client);this.eS="[data-container-name\x3ditem]";this.gS="[data-container-name\x3ditem-tokens]";this.hS="[data-container-name\x3ditem-tokens-item]";this.fS="[data-container-name\x3ditem-toggle-tokens]";this.tr=jQuery();this.jv=jQuery();this.ZB=jQuery();this.iv=jQuery();N(this,"tokens",this.qR);N(this,"lock-token",this.qP);this.XI=N(this,"lock-token-success",this.rP);N(this,"lock-client",
this.oP);this.WI=N(this,"lock-client-success",this.pP);return this}m(Hi,Q);h(Hi);d=Hi.prototype;d.getName=q("applications-list");d.init=function(a){Hi.c.init.call(this,a);this.tr=O(this,this.eS);this.jv=O(this,this.gS);this.ZB=O(this,this.hS);this.iv=O(this,this.fS)};
d.qR=function(a){var b=this.tr.has(a.target);a=this.iv.filter(function(){return b.has(this).size()});var c=this.jv.filter(function(){return b.has(this).size()}),e=a.hasClass("active");this.iv.removeClass("active");this.jv.hide();e||(a.addClass("active"),c.show())};d.qP=function(a){return this.qb({message:u.applications.list.lock.token.confirm,confirm:z(function(){this.G({link:this.jN,data:a.data,k:a.target,t:this.XI})},this)})};
d.rP=function(a){var b=this.tr.has(a.k),c=this.ZB.filter(function(){return b.has(this).size()});2>c.size()?b.remove():c.has(a.k).remove()};d.oP=function(a){return this.qb({message:u.applications.list.lock.client.confirm,confirm:z(function(){this.G({link:this.iN,data:a.data,k:a.target,t:this.WI})},this)})};d.pP=function(a){this.tr.has(a.k).remove()};E(D.a(),Hi);var Ii=new G(u.applications.list.main);function Ji(){oh.call(this);this.r=new K(u.applications.menu);this.mc=pi;return this}m(Ji,oh);h(Ji);Ji.prototype.getName=q("applications-menu");Ji.prototype.Hm=function(){this.data.empty().set(Cd(mg()));return this.ha({})};E(D.a(),Ji);function Ki(){J.call(this);this.r=new K(u.applications.mobile.main);this.Ox=new K(u.applications.mobile.answer);N(this,"answer",this.ly);this.Au=N(this,"answer-complete",this.my);return this}m(Ki,Q);h(Ki);Ki.prototype.getName=q("applications-mobile");Ki.prototype.Db=function(a){this.ca(a,null,window.location.pathname);Ki.c.Db.call(this,a)};Ki.prototype.ly=function(a){this.ca(a);return this.G({link:this.Ox,data:a.data,bg:this.Au})};Ki.prototype.my=function(){F.a().reload();return y()};E(D.a(),Ki);function Li(){Q.call(this);this.r=Mi;this.EM=new K(u.applications.oauth.form.allow);this.NM=Ni;this.et=new K(u.applications.oauth.form.confirm);N(this,"allow",this.YN);this.lI=N(this,"allow-confirmation",this.ZN);N(this,"deny",this.AO);this.vn=N(this,"confirm",this.qb);this.wn=N(this,"confirm-success",this.Fm);this.hr=N(this,"logout",this.$e);this.Ug=N(this,"logout-success",this.Hg);return this}m(Li,Q);h(Li);d=Li.prototype;d.getName=q("applications-oauth-form");
d.YN=function(){this.data.replace("value",!0);return this.G({link:this.EM,data:this.data,bc:this.lI})};d.ZN=function(a){this.data.replace("identifier",a.response.identifier);return this.F({link:this.NM,data:this.data})};
d.AO=function(){this.k.request(!0);var a=this.data.get("reject"),b=this.data.get("close"),c=this.data.get("target");b&&window.opener?(window.opener.focus(),a&&(window.opener.location.href=a),window.close()):"iframe"!=c&&window.parent?window.parent.location.href=a:a?window.location.href=a:window.close()};d.qb=function(){this.pa.empty().hide();if(this.l.size()&&!this.l.valid())return y();this.data.replace(this.l.formToArray());return this.G({link:this.et,data:this.data,t:this.wn})};
d.Fm=function(a){this.k.request(!0);a=p(a.response,"data");var b=this.data.get("close"),c=this.data.get("target");b&&window.opener?(window.opener.focus(),a&&(window.opener.location.href=a),window.close()):"iframe"!=c&&window.parent?window.parent.location.href=a:a?window.location.href=a:window.close()};d.$e=function(){return this.G({link:jh,t:this.Ug})};d.Hg=function(){F.a().reload()};E(D.a(),Li);var Mi=new G(u.applications.oauth.form.main),Ni=new G(u.applications.oauth.form.code);function Oi(){J.call(this);this.gb=Pi.a();this.gb.gt=Qi;this.gb.ht=Ri;this.gb.it=Si;this.gb.Xx=Ti;this.gb.xp=Ui;this.gb.Yx=Vi;this.gb.jt=Wi;this.gb.Zx=Xi;this.gb.kt=Yi;return this}m(Oi,J);h(Oi);Oi.prototype.getName=q("applications-oauth-info");Oi.prototype.Db=function(a){return F.a().getPath()==F.a().fc()?(window.location.href=F.a().getPath()+"?"+Bd(a.data),y()):Oi.c.Db.call(this,a)};E(D.a(),Oi);new G(u.applications.oauth.main);new G(u.applications.oauth.phone);new G(u.applications.oauth.terminal);
var Qi=new G(u.applications.oauth.login.form),Ri=new G(u.applications.oauth.registration.form),Si=new G(u.applications.oauth.registration.password),Ti=new G(u.applications.oauth.registration.result),Vi=kh,Wi=new G(u.applications.oauth.remind.form),Xi=new G(u.applications.oauth.remind.mail),Yi=new G(u.applications.oauth.remind.success),Ui=new G(u.applications.oauth.remind.password);function Zi(){J.call(this);this.r=new K(u.applications.promo.main);return this}m(Zi,Q);h(Zi);Zi.prototype.getName=q("applications-promo");Zi.prototype.init=function(a){Zi.c.init.call(this,a);this.k.children().size()||this.h(this.V)};E(D.a(),Zi);function $i(){J.call(this);this.r=new K(u.applications.suggest.main);return this}m($i,Q);h($i);$i.prototype.getName=q("applications-suggest");$i.prototype.init=function(a){$i.c.init.call(this,a);this.k.children().size()||this.h(this.V)};E(D.a(),$i);function aj(){Q.call(this);this.r=bj;return this}m(aj,Q);h(aj);aj.prototype.getName=q("applications");E(D.a(),aj);var bj=new G(u.applications.main.main);new G(u.applications.main.all);new G(u.applications.main.client);new G(u.applications.main.category);function cj(){Q.call(this);this.r=dj;this.Jh="[name\x3damount]";this.zz="[name\x3dvalue]";this.vz="[name\x3dchange]";this.ma=jQuery();this.Pl=jQuery();this.Ml=jQuery();return this}m(cj,Q);h(cj);cj.prototype.getName=q("card-confirm-alfabank");
cj.prototype.init=function(a){cj.c.init.call(this,a);this.ma=O(this,this.Jh);this.Pl=O(this,this.zz);this.Ml=O(this,this.vz);this.Pl.bindspace(this,"input paste keyup change",function(){this.ma.trigger("amount")});this.Ml.bindspace(this,"input paste keyup change",function(){this.ma.trigger("amount")});this.ma.bindspace(this,"amount",function(){var a=(parseInt(this.Pl.val(),10)||0)+(parseInt(this.Ml.val(),10)||0)/100;arguments.callee.value!=a&&(arguments.callee.value=a,this.ma.val(a).trigger("keyup"))}).trigger("amount")};
cj.prototype.Cb=function(a){this.pa.empty().hide();if(!this.l.size()||this.l.valid())this.data.replace(this.l.formToArray()),this.data.replace(a.data),this.F({link:this.r,data:this.data})};E(D.a(),cj);var dj=new G(u.card.confirm.alfabank.main);function ej(){J.call(this);Mg(this.ja,Wg);return this}m(ej,J);h(ej);ej.prototype.getName=q("card-confirm-success");E(D.a(),ej);function fj(){Q.call(this);this.errors={};this.Ht="[name\x3dcardPan]";this.ES="[name\x3dcardDate]";this.Gt="[name\x3dcardCvv]";this.sS="[data-container-name\x3dhelp-card-pan]";this.Ct="[data-container-name\x3dhelp-card-cvv]";this.Dt="[data-container-name\x3dicon-card-bank]";this.xb=v();this.qv=v();this.jg=v();this.Jl=v();this.bh=v();this.qe=v();this.r=gj;this.Px=new K(u.card.create.success);this.tE=new K(u.card.create.error);this.ij=N(this,"create",this.Pf);this.xn=N(this,"create-success",this.Gp);
N(this,"create-error",this.PE);this.vn=N(this,"confirm",this.qb);this.wn=N(this,"confirm-success",this.Fm);this.Du=N(this,"card-pan-change",this.qy);this.Eu=N(this,"card-pan-change-success",this.sy);I(this.ja,this.getName(),this.vn.getName());return this}m(fj,Q);h(fj);d=fj.prototype;d.getName=q("card-create-form");
d.init=function(a){fj.c.init.call(this,a);this.xb=O(this,this.Ht);this.qv=O(this,this.ES);this.jg=O(this,this.Gt);this.Jl=O(this,this.sS);this.bh=O(this,this.Ct);this.qe=O(this,this.Dt);this.xb.bindspace(this,"input paste keyup change",function(){this.Du.h({timeout:500})});this.jg.bindspace(this,"focus input paste keyup change",function(){this.Jl.hide();this.l.validate().check(this.jg,!0)?this.bh.hide():this.bh.show()});this.jg.bindspace(this,"blur",function(){this.bh.hide()})};
d.nb=function(){fj.c.nb.call(this);clearTimeout(this.Pq)};d.ob=function(a){return p(a.response,"data","status")};d.pc=function(a){var b=p(a.response,"data","body")||{};return p(b,sb(arguments,1))};
d.qy=function(a){var b=this.l.validate().check(this.xb,!0),c=this.xb.val();this.xb.data("ui-mask")&&(b=b&&this.xb.mask("valid"),c=this.xb.mask("value"));this.ej!=c&&(this.Jl.hide(),this.qe.removeClass());if(c)switch(c[0]){case "4":this.qe.addClass("VISA");break;case "5":this.qe.addClass("MASTER_CARD");break;default:this.qe.addClass("typing")}clearTimeout(this.Pq);if(!b)return this.ej=c,y();if(this.ej==c)return y();this.Jl.hide();this.yx=!1;var e=w();this.Pq=setTimeout(z(function(){this.ej=c;nh(this,
{version:2,url:"/api/terms/99/cardDetails",type:"POST",data:{cardId:{type:"Pan",value:c},sum:{currency:"643",amount:0}},request:v(),t:this.Eu}).always(e.resolve)},this),+a.timeout||1);return e.promise()};d.sy=function(a){if(200!=this.ob(a))return this.ry(a);delete this.errors[this.xb.attr("name")];this.xb.valid();(this.yx=(this.pc(a)||{}).linked)&&this.Jl.show()};
d.ry=function(a){var b=this.ob(a);a=this.pc(a)||{};this.errors[this.xb.attr("name")]=p(a,"message")||u.shell.http.code[b]||b;this.l.validate().showErrors(this.errors);return y()};
d.Pf=function(){this.pa.empty().hide();return this.l.size()&&!this.l.valid()?y():Gd(this.errors)?this.yx?(this.Jl.show(),y()):nh(this,{version:2,url:"/api/user/linkedCard",cf:!0,type:"POST",data:{pan:this.xb.val(),expirationDate:{month:this.qv.val().substr(5,2),year:this.qv.val().substr(0,4)},cvv:this.jg.val()},t:this.xn}):(this.l.validate().showErrors(this.errors),y())};
d.Gp=function(a){if(200!=this.ob(a))return this.PE(a);a=this.pc(a)||{};var b=p(a,"state")||{};switch(p(b,"code")){case "AwaitingAcquiringConfirmation":this.k.request(!0),(new mi).post({PaReq:p(b,"paReq"),MD:p(b,"md"),TermUrl:location.protocol+"//"+(location.hostname||location.host)+this.r.getPath()+"?"+Bd({transaction:p(a,"id"),finish:p(b,"confirmationUrl")})},p(b,"redirectUrl"))}return y()};
d.PE=function(a){var b=this.ob(a);a=this.pc(a)||{};return this.F({link:this.tE,data:{error:p(a,"message")||u.shell.http.code[b]||b},query:""})};d.qb=function(){return zb(this.e.confirm,"")||zb(this.e.confirm,null)?(this.l.show(),y()):nh(this,{version:2,url:"/api/terms/confirmations",type:"POST",data:this.e.confirm,t:this.wn})};
d.Fm=function(a){var b;200!=this.ob(a)||"Accepted"!=this.pc(a,"state","code")?(b=this.ob(a),a=this.pc(a)||{},b=this.F({link:this.tE,data:{error:p(a,"message")||u.shell.http.code[b]||b},query:""})):b=this.F({link:this.Px});return b};E(D.a(),fj);var gj=new G(u.card.create.form);function hj(){oh.call(this);this.r=new K(u.card.menu.main);this.ed=new K(u.card.menu.remove);N(this,"mode",this.Ch);N(this,"remove",this.wd);this.be=N(this,"remove-success",this.Ce);return this}m(hj,oh);h(hj);hj.prototype.getName=q("card-menu");hj.prototype.Ch=function(a){this.data.empty().set(a.data);return this.h(this.V,{},z(function(){return this.Db({data:this.data.kc()})},this))};
hj.prototype.wd=function(a){return this.qb({message:u.card.menu.remove.confirm,confirm:z(function(){this.G({link:this.ed,data:a.data,t:this.be})},this)})};hj.prototype.Ce=function(){return this.h(this.V)};E(D.a(),hj);Wg.addListener(function(){return hj.a().V.h()});function ij(){Q.call(this);this.r=jj;this.Uc=new K(u.card.update.update);this.ay=kj;this.de=N(this,"update",this.Wc);this.nd=N(this,"update-success",this.Qf);this.oh=L(this,"update-success");I(this.ab,this.getName(),this.de.getName());I(this.oh,this.getName(),this.nd.getName());I(this.oh,"card-menu","main");return this}m(ij,Q);h(ij);ij.prototype.getName=q("card-update-form");ij.prototype.Wc=function(){return this.G({link:this.Uc,data:this.data,t:this.nd})};
ij.prototype.Qf=function(a){return a.event?this.F({link:this.ay}):this.trigger(this.oh)};E(D.a(),ij);var jj=new G(u.card.update.main),kj=new G(u.card.update.success);function lj(){Q.call(this);this.zp=mj;this.yE=nj;this.Dn=N(this,"state",this.uc);Mg(this.ja,ah);I(this.ab,this.getName(),this.Dn.getName());return this}m(lj,Q);h(lj);lj.prototype.getName=q("payment");lj.prototype.ph=function(){var a=lj.c.ph.call(this);this.e.provider&&this.e.provider.id&&(a=a+"-"+this.e.provider.id);return a};function oj(a){return a.e.payment?"Favorite":"Normal"}function pj(){return qj?rj().join("/"):""}
lj.prototype.Cb=function(a){a.query=a.data;return a.back?J.prototype.Cb.call(this,a):lj.c.Cb.call(this,a)};lj.prototype.uc=function(a){return this.F({link:this.data.get("protected")?this.yE:this.zp,data:this.data,query:a.query})};E(D.a(),lj);new G(u.payment.main);var mj=new G(u.payment.state),nj=new G(u.payment.protectedstate);function sj(){A.call(this);return this}m(sj,A);h(sj);sj.prototype.getName=q("form-field");sj.prototype.getData=q("form-field");
sj.prototype.each=function(a){var b=v(a);if(!b.is(":input"))return sj.c.each.call(this,a);var c=b.data(this.getData())||{};b.data("params",c);if(c.regex){var e=c.regex,e=v(v.parseHTML(e)).text(),e=e.split("(").join("\\("),e=e.split(")").join("\\)"),e=e.split("\\w").join("[A-Za-zА-ЯЁа-яё0-9_]");b.parents("form").first().validate();b.rules("add",{required:!(new RegExp(e)).test(""),regexp:e})}else b.rules("remove","required"),b.rules("remove","regexp");b.is(":text")&&(b.data("ui-mask")&&b.mask("destroy"),
(e=c.mask)&&b.mask({mask:e}),b.inputfit({DR:10,KN:20}));if("DATE"==c.type&&"COMMON"==c.dateType&&c.format){var f=b,g=b.next(),e={};c.format=c.format.replace(/yy/g,"y");c.format=c.format.replace(/MM/g,"mm");e.altField=f;e.altFormat=c.format;e.onClose=function(){f.trigger("change");f.trigger("keyup")};c.futureDisabled&&(e.maxDate="0D");g.mask({mask:"dD.mM.yYYY",definitions:{d:/[0123]/,D:/[0123456789]/,m:/[01]/,M:/[0123456789]/,y:/[12]/,Y:/[0123456789]/}});g.bindspace(this,"paste.date input.date change.date keyup.date",
function(){var a=g.val();if(arguments.callee.value==a||!g.mask("valid"))return!1;arguments.callee.value=a;g.datepicker("setDate",a);f.trigger("change");f.trigger("keyup")});g.datepicker(e);f.bindspace(this,"change.date refresh.date",function(){g.datepicker("setDate",v.datepicker.parseDate(g.datepicker("option","altFormat"),f.val(),g.data("datepicker").settings));g.mask("refresh")}).trigger("refresh")}c.refreshable&&(b.bindspace(this,"input.refreshable paste.refreshable keyup.refreshable change.refreshable",
function(){b.trigger("formstate")}),b.bindspace(this,"formstateform",function(){b.trigger("formstate")}));if(b.is(":text")){var l=b.next();l.hide();b.disabled(!1).show();l.unbindspace(this,"click.masked");b.unbindspace(this,"blur.masked");b.unbindspace(this,"input.masked paste.masked keyup.masked change.masked");if(c.masked&&Dd(l.text())){var r=b.rules(),f=null;b.bindspace(this,"input.masked paste.masked keyup.masked change.masked",function(){var a=b.val();b.data("ui-mask")&&(a=b.mask("value"));f!=
a&&(f=a,b.rules("add",r))});b.bindspace(this,"blur.masked",function(){f=b.val();b.data("ui-mask")&&(f=b.mask("value"));f||(l.show(),b.disabled(!0).hide(),yd(r,function(a){b.rules("remove",a)}))}).blur();l.bindspace(this,"click.masked",function(){l.hide();b.disabled(!1).show().focus()})}}return sj.c.each.call(this,a)};sj.a();function U(){lj.call(this);this.r=tj;this.vp=new K(u.payment.form.calculate);this.Tx=new K(u.payment.online.info);this.vE=new K(u.payment.form.state);this.rE=new K(u.payment.form.acquiring);this.HM=new K(u.payment.form.cardnumber);this.errors={};this.NF="[name\x3dextra\\[\\'account\\'\\]]";this.PF="[name\x3dextra\\[\\'account_type\\'\\]]";this.Jh="[name\x3damount]";this.Qi="[name\x3damountInteger]";this.Pi="[name\x3damountFraction]";this.Vk="[name\x3dcurrency]";this.Zk="[name\x3dsource]";this.$F=
"[name\x3dparams\\.selectedMode]";this.TF="[name\x3dparams\\.cardDate]";this.Gt="[name\x3dparams\\.cardCvv]";this.Ht="[name\x3dparams\\.cardPan]";this.QF="[name\x3dextra\\[\\'bindcard\\'\\]]";this.Ct="[data-container-name\x3dhelp-card-cvv]";this.HF="[data-container-name\x3dhelp-card-bad]";this.JF="[data-container-name\x3dhelp-card-good]";this.IF="[data-container-name\x3dhelp-card-bind]";this.Dt="[data-container-name\x3dicon-card-bank]";this.jq=".amountInfo";this.kq=".amountInfo .totalCash";this.lq=
".bankCurrency";this.oq=".bankCurrency span";this.hq=".additionalCurrency";this.iq=".additionalCurrency span";this.mq=".currencyInformation";this.nq=".currencyInformation span";this.DF=".commissionInfo";this.XG=".smscommandInfo";this.xG=".minAmountsInfo";this.wG=".maxAmountsInfo";this.AF=".cashbackInfo";this.Ui=".pageControls, .payment_frm_ac, .payment_frm_divider";this.VG=".scheduleControls";this.yG="[data-container-name\x3dmode-icon]";this.zG="[data-container-name\x3dmode-text]";this.UG="[class*\x3dcont_]";
this.TG=".cont_paymentBlock";this.FG=".cont_acquiring";this.GG=".cont_amount";this.DG=".cont_account";this.EG=".cont_account_type";this.IG=".cont_onlineCheck";this.AG=".onlineInfo";this.aG="[name\x3donline-info]";this.zF="[data-container-name\x3donline-info-button]";this.tz="[data-container\x3dhelp]";this.cV="[data-container-name\x3dschedule]";this.jV="[data-container-name\x3dschedule-show]";this.dV="[data-container-name\x3dschedule-active]";this.eV="[data-container-name\x3dschedule-interval]";this.hV=
"[data-container-name\x3dschedule-once]";this.kV="[data-container-name\x3dschedule-weekly]";this.fV="[data-container-name\x3dschedule-monthly]";this.iV="[data-container-name\x3dschedule-once-date]";this.lV="[data-container-name\x3dschedule-weekly-date]";this.gV="[data-container-name\x3dschedule-monthly-date]";this.ba=v();this.Er=v();this.ma=v();this.Ib=v();this.Hb=v();this.ka=v();this.ib=v();this.Ql=v();this.uC=v();this.jg=v();this.xb=v();v();this.bh=v();this.wr=v();this.Nn=v();this.Mn=v();this.qe=
v();this.Oc=v();this.ke=v();this.le=v();this.oe=v();this.ie=v();this.je=v();this.me=v();this.ne=v();this.nf=v();this.pg=v();this.Dj=v();this.Cj=v();this.uj=v();this.$r=v();this.as=v();this.wo=v();this.dD=v();this.Fj=v();this.Gj=v();this.SC=v();this.TC=v();this.ls=v();this.Jd=v();this.yj=v();this.kv=v();this.Il=v();this.xo=v();this.jw=v();this.hw=v();this.iw=v();this.ns=v();this.li=v();this.ki=v();this.os=v();this.ps=v();this.ms=v();this.J={};this.lc=this.tb=this.Ac=this.Bc=null;this.zl=N(this,"provider",
this.af);this.Cc=N(this,"calculate",this.oy);this.Cu=N(this,"calculate-success",this.Bh);this.Bu=N(this,"calculate-error",this.nt);this.xu=N(this,"account-change",this.Ii);this.oB=N(this,"account-type-change",this.QN);this.Iu=N(this,"online-info",this.ot);this.BB=N(this,"online-info-success",this.Ki);this.AB=N(this,"online-info-error",this.Fy);N(this,"help",this.zk);N(this,"schedule-show",this.vQ);N(this,"schedule-hide",this.tQ);this.HJ=N(this,"schedule-interval",this.uQ);this.EI=N(this,"form-state",
this.LO);N(this,"mode",this.Ch);this.$I=N(this,"mode-change",this.vP);this.Du=N(this,"card-pan-change",this.qy);this.Eu=N(this,"card-pan-change-success",this.sy);this.qI=N(this,"card-pan-change-error",this.ry);this.cv=!1;this.pn=this.bi=null;this.eu={};I(this.ja,this.getName(),this.xu.getName(),1);I(this.ja,this.getName(),this.oB.getName(),1);I(this.ja,this.getName(),this.Iu.getName(),1);I(this.ja,this.getName(),this.Cc.getName(),2);return this}m(U,lj);h(U);d=U.prototype;d.getName=q("payment-form");
d.init=function(a){U.c.init.call(this,a);this.cv=this.Za=!1;this.pn=this.bi=null;this.eu=(new Td(this.l.formToArray())).kc();this.L.each(z(function(a,b){var c=v(b);c.data("ui-mask")&&(this.eu[c.attr("name")]=c.mask("value"))},this));this.ba=O(this,this.e.NF||this.NF);this.Er=O(this,this.e.PF||this.PF);this.ma=O(this,this.e.Jh||this.Jh);this.Ib=O(this,this.e.Qi||this.Qi);this.Hb=O(this,this.e.Pi||this.Pi);this.ka=O(this,this.e.Vk||this.Vk);this.ib=O(this,this.e.Zk||this.Zk);this.Ql=O(this,this.e.$F||
this.$F);this.uC=O(this,this.e.TF||this.TF);this.jg=O(this,this.e.Gt||this.Gt);this.xb=O(this,this.e.Ht||this.Ht);O(this,this.e.QF||this.QF);this.bh=O(this,this.e.Ct||this.Ct);this.wr=O(this,this.e.HF||this.HF);this.Nn=O(this,this.e.JF||this.JF);this.Mn=O(this,this.e.IF||this.IF);this.qe=O(this,this.e.Dt||this.Dt);this.Oc=O(this,this.e.jq||this.jq);this.ke=O(this,this.e.kq||this.kq);this.le=O(this,this.e.lq||this.lq);this.oe=O(this,this.e.oq||this.oq);this.ie=O(this,this.e.hq||this.hq);this.je=O(this,
this.e.iq||this.iq);this.me=O(this,this.e.mq||this.mq);this.ne=O(this,this.e.nq||this.nq);this.nf=O(this,this.e.DF||this.DF);this.pg=O(this,this.e.XG||this.XG);this.Dj=O(this,this.e.xG||this.xG);this.Cj=O(this,this.e.wG||this.wG);this.uj=O(this,this.e.AF||this.AF);this.$r=O(this,this.e.yG||this.yG);this.as=O(this,this.e.zG||this.zG);this.od=O(this,this.e.Ui||this.Ui);this.BK=O(this,this.e.VG||this.VG);this.wo=O(this,this.e.UG||this.UG);this.dD=O(this,this.e.TG||this.TG);this.Fj=O(this,this.e.FG||
this.FG);this.Gj=O(this,this.e.GG||this.GG);this.SC=O(this,this.e.DG||this.DG);this.TC=O(this,this.e.EG||this.EG);this.ls=O(this,this.e.IG||this.IG);this.Jd=O(this,this.e.AG||this.AG);this.yj=O(this,this.e.aG||this.aG);this.kv=O(this,this.e.zF||this.zF);this.Jd.size()&&(n(p(this.Jd.data(),"params","requiredFields"),function(a){this.L.filter("[name\x3d"+a+"],[name\x3dextra\\[\\'"+a+"\\'\\]]").bindspace(this,"input.onlineinfo paste.onlineinfo keyup.onlineinfo change.onlineinfo",function(a){this.Iu.h({input:v(a.currentTarget),
timeout:500})})},this),$(":input",this.Jd).filter(z(function(a,b){var c=$(b).attr("name");return this.L.not(b).filter(function(a,b){var e=$(b).attr("name");return e==c||"extra['"+e+"']"==c}).size()},this)).disabled(!0));this.Il=O(this,this.tz);this.xo=O(this,this.cV);this.jw=O(this,this.jV);this.hw=O(this,this.dV);this.iw=O(this,this.eV);this.ns=O(this,this.hV);this.li=O(this,this.kV);this.ki=O(this,this.fV);this.os=O(this,this.iV);this.ps=O(this,this.lV);this.ms=O(this,this.gV);clearTimeout(this.xH);
this.iw.bindspace(this,"change",function(){this.HJ.h()});this.jg.bindspace(this,"focus input paste keyup change",function(){this.wr.hide();this.Nn.hide();this.l.validate().check(this.jg,!0)?(this.bh.hide(),this.Mn.show()):(this.bh.show(),this.Mn.hide())});this.jg.bindspace(this,"blur",function(){this.bh.hide()});this.xb.bindspace(this,"input paste keyup change",function(){this.h(this.Du,{timeout:500})});this.xb.bindspace(this,"focus",function(){});this.xb.bindspace(this,"blur",function(){this.wr.hide();
this.Nn.hide()});if(!this.L.filter(":focus").size()){var b=this.wo.filter(":visible").find(this.L).filter(":not([readonly]):not([disabled])");this.e.focus&&(b=b.filter(z(function(a,b){return v(b).attr("name")==this.e.focus},this)));b=b.first();this.xH=setTimeout(function(){b.data("ui-mask")?(b.focus(),b.mask("value")&&b.val(b.mask("masked"))):b.focus().val(b.val())},100)}this.ka.bindspace(this,"change",function(){this.Za=!1;this.Cc.h()});this.ib.bindspace(this,"change",function(){this.Za=!1;this.Cc.h()});
this.Ib.bindspace(this,"input paste keyup change",function(){this.Di=!0;this.Cc.h({timeout:500})});this.Ib.bindspace(this,"focus",function(){this.Mn.hide()});this.Hb.bindspace(this,"input paste keyup change",function(){this.Di=!0;this.Cc.h({timeout:500})});this.Hb.bindspace(this,"focus",function(){this.Mn.hide()});this.Ql.bindspace(this,"change",function(){this.$I.h()});this.J={};if((a=this.ib.data("modes"))&&Fd(a))for(var c=0;c<a.length;c++){var e=a[c];if(e&&Fd(e.sources))for(var f=0;f<e.sources.length;f++){var g=
e.sources[f];g&&g.id&&(this.J[g.id]={id:g.id,mode:e.id,kind:e.type,TB:e["default"],vk:g["default"],nK:g.additional,rs:g.data&&g.data.cssClass?g.data.cssClass:null,sg:g.currency&&g.currency.currencyCode?g.currency.currencyCode:null,type:g.defaultCommission&&g.defaultCommission.type?g.defaultCommission.type:null,gF:g.minAmount&&g.minAmount.doubleValue?g.minAmount.doubleValue:null,yW:g.minAmount&&g.minAmount.currencyCode?g.minAmount.currencyCode:null,HE:g.maxAmount&&g.maxAmount.doubleValue?g.maxAmount.doubleValue:
null,uW:g.maxAmount&&g.maxAmount.currencyCode?g.maxAmount.currencyCode:null,Zg:$("#commission_"+g.id).html(),zK:Id(g.commissions)&&!Gd(g.commissions),nl:$("#smscommand_"+e.id).html(),df:this.e.provider.id,disabled:[]})}}for(var l in this.J){if(this.J[l].nK||"megafon"==this.J[l].mode)for(var r in this.J)if("qiwi"==this.J[r].mode&&this.J[l].sg==this.J[r].sg){"EMPTY"!=this.J[l].type||this.J[l].zK?this.J[l].Zg=this.J[r].Zg+this.J[l].Zg:(this.J[l].Zg=this.J[r].Zg,this.J[l].type=this.J[r].type);break}if(!this.J[l].nl)for(r in this.J)this.J[r].TB&&
(this.J[l].nl=this.J[r].nl)}this.J.TERMINAL={id:"terminal",mode:"terminal"};this.ba.bindspace(this,"input paste keyup change",function(){this.h(this.xu,{timeout:1})});this.Er.bindspace(this,"change",function(){this.h(this.oB)});this.L.bindspace(this,"formstate",function(a){this.h(this.EI,{input:$(a.currentTarget)})});this.e.state||this.L.trigger("formstateform");this.e.cashback&&this.uj.html(v.format(u.payment.cashback.empty,this.e.cashback.rate)).show();this.pe=v().add(this.wo).add(this.od).add(this.BK).add(this.pg).not(this.dD);
this.Ac=this.Bc=0;this.Di=this.dj=this.tb=this.lc=null;if(this.e.provider)switch(l={ecommerce:{currencyCode:this.ka.val(),detail:{products:[{name:this.e.provider.name,id:this.e.provider.id,price:this.ma.val(),brand:uj(this),variant:oj(this)}]}},item:{type:"payment",action:"detail",categorySite:pj(),currencyCode:this.ka.val(),name:this.e.provider.name,id:this.e.provider.id,price:this.ma.val(),brand:uj(this),variant:oj(this)}},this.e.state){case "FIELD":Le.a().send(zd(!0,{event:"PageInit",eventLabel:"Payment Form"},
l));break;case "":Le.a().send(zd(!0,{event:"Ecommerce Data"},l))}};d.nb=function(){U.c.nb.call(this);clearTimeout(this.xH);clearTimeout(this.Rq);clearTimeout(this.yH);clearTimeout(this.jn);clearTimeout(this.Pq)};function uj(a){var b=a.ib.val();return a.e.state&&b&&a.J[b]&&a.J[b].mode?a.J[b].mode:""}d.af=function(a){this.data.empty().set(a.data);return this.ha(a)};
d.Ch=function(a){if(this.ib.is("select")){var b=null,c;for(c in this.J)if(this.J[c].mode==a.mode&&(b||(b=c),this.J[c].vk)){b=c;break}b&&this.ib.val(b).refresh().change()}this.Ql.val(a.mode).refresh().change();return y()};
d.vP=function(){var a=this.Ql.val();this.$r.removeClass("active").filter("[data-container-mode\x3d"+a+"]").addClass("active");this.as.removeClass("active").filter("[data-container-mode\x3d"+a+"]").addClass("active");this.pe.toggleClass("hidden_by_terminal","terminal"==a);this.L.refresh();return y()};
d.qy=function(a){var b=this.l.validate().check(this.xb,!0),c=this.xb.val();this.xb.data("ui-mask")&&(b=b&&this.xb.mask("valid"),c=this.xb.mask("value"));this.ej!=c&&(this.wr.hide(),this.Nn.hide(),this.qe.removeClass());if(c)switch(c[0]){case "4":this.qe.addClass("VISA");break;case "5":this.qe.addClass("MASTER_CARD");break;default:this.qe.addClass("typing")}clearTimeout(this.Pq);if(!b)return this.ej=c,y();if(this.ej==c)return y();var e=w();this.Pq=setTimeout(z(function(){this.ej=c;this.h(this.Wh,{link:this.HM,
data:{cardNumber:this.ej},k:v(),t:this.Eu,da:this.qI},e.resolve)},this),+a.timeout||1);return e.promise()};d.sy=function(a){var b=a.response.data;this.qe.removeClass();b&&b.cardType&&this.qe.addClass(b.cardType);b&&b.cardBind&&this.Nn.html(a.response.message).show();delete this.errors[this.xb.attr("name")];this.xb.valid();return y()};d.ry=function(a){this.errors[this.xb.attr("name")]=a.response.message;this.l.validate().showErrors(this.errors)};
d.oy=function(a){clearTimeout(this.jn);var b=parseInt(this.Ib.val(),10)||0,c=parseInt(this.Hb.val(),10)||0,e=this.ib.val()||null,f=this.ka.val()||null;0==b&&0==c&&(this.Di=!1);if(this.Bc==b&&this.Ac==c&&this.lc==e&&this.tb==f&&this.Za)return y();this.nf.empty().hide();this.pg.empty().hide();this.Dj.children().hide();this.Cj.children().hide();if(!this.J[e])return y();var g=this.Ql.val()||this.J[e].mode;this.$r.removeClass("active").filter("[data-container-mode\x3d"+g+"]").addClass("active");this.as.removeClass("active").filter("[data-container-mode\x3d"+
g+"]").addClass("active");"terminal"==g?this.pe.addClass("hidden_by_terminal"):this.pe.hasClass("hidden_by_terminal")&&this.pe.removeClass("hidden_by_terminal").find(this.L).refresh();if("terminal"==this.J[e].mode)return y();if("card_-4"==this.J[e].id){if(!this.Fj.children().size())return this.F({link:this.rE,k:this.Fj.show(),sa:"html"}).always(z(function(){this.Db(this.e)},this))}else this.Fj.empty().hide();this.J[e].Zg&&this.nf.html(this.J[e].Zg).show();if(this.J[e].nl&&this.ba.size()){this.pg.html(this.J[e].nl).show();
var g=this.l.validate().check(this.ba,!0),l=this.ba.val();this.ba.data("ui-mask")&&(g=g&&this.ba.mask("valid"),l=this.ba.mask("value"));g&&this.pg.find("[type\x3daccount]").text(this.e.unmasksms?l:this.ba.val());this.pg.find("[type\x3damount]").text(b+c/100)}this.Dj.children("."+f).show();this.Cj.children("."+e).show();if(0==b&&0==c)return this.ma.val(0),this.Za&&this.ma.valid(),this.Za=!0,this.Oc.hide(),this.ke.empty(),this.le.hide(),this.oe.empty(),this.ie.hide(),this.je.empty(),this.me.hide(),
this.ne.empty(),this.e.cashback&&this.uj.html(v.format(u.payment.cashback.empty,this.e.cashback.rate)).show(),this.Bc=b,this.Ac=c,this.lc=e,this.tb=f,y();if("EMPTY"==this.J[e].type&&this.J[e].sg==f)return this.ma.val(b+c/100),this.Za&&this.ma.valid(),this.Za=!0,this.Oc.hide(),this.ke.empty(),this.le.hide(),this.oe.empty(),this.ie.hide(),this.je.empty(),this.me.hide(),this.ne.empty(),this.e.cashback&&(a=(new BigNumber(this.e.cashback.rate)).div(100).times((new BigNumber(b)).plus((new BigNumber(c)).div(100))).times(100).floor().div(100),
.01>a.toNumber()?this.uj.html(v.format(u.payment.cashback.empty,this.e.cashback.rate)).show():this.uj.html(v.format(u.payment.cashback.value,v.format(u.payment.amount,a.floor().toNumber(),this.e.cashback.currency.integer,a.minus(a.floor()).times(100).toNumber(),this.e.cashback.currency.fraction))).show()),this.Bc=b,this.Ac=c,this.lc=e,this.tb=f,y();var r=w();this.jn=setTimeout(z(function(){this.Bc=b;this.Ac=c;this.lc=e;this.tb=f;this.ma.val(0);this.Oc.hide();this.ke.empty();this.le.hide();this.oe.empty();
this.ie.hide();this.je.empty();this.me.hide();this.ne.empty();this.h(this.Wh,{link:this.vp,data:{integer:this.Bc,fraction:this.Ac,source:this.lc,currency:this.tb,provider:this.J[this.lc].df},k:this.Oc.show(),t:this.Cu,da:this.Bu},r.resolve)},this),+a.timeout||1);return r.promise()};
d.Bh=function(a){this.Oc.hide();this.ke.empty();this.Bc=a.response.data.amount.integer;this.Ac=a.response.data.amount.formattedFraction;this.Ib.val(this.Bc);this.Hb.val(this.Ac);this.ma.val(a.response.data.fullAmount.integer+"."+a.response.data.fullAmount.formattedFraction);a.response.data.rate.from.currencyCode!=a.response.data.rate.to.currencyCode&&(this.le.show(),this.oe.html(a.response.data.rateMessage),a.response.data.additionalRateMessage&&(this.ie.show(),this.je.html(a.response.data.additionalRateMessage)),
a.response.data.rateAboutMessage&&(this.me.show(),this.ne.html(a.response.data.rateAboutMessage)));a.response.data.amount.doubleValue!=a.response.data.fullAmount.doubleValue&&(this.Oc.show(),this.ke.html(a.response.data.amountMessage).show());this.e.cashback&&(a.response.data.cashbackMessage?this.uj.html(a.response.data.cashbackMessage).show():this.uj.html(v.format(u.payment.cashback.empty,this.e.cashback.rate)).show());this.Za&&this.ma.keyup().valid();this.Za=!0};
d.nt=function(a){this.Oc.show();this.ke.html(a.response.message).show();this.Za=!0};
d.QN=function(a){if(!this.Er.size())return y();this.cv&&(this.l.validate().EW={},this.l.validate().sW=null,this.l.validate().prepareForm(),this.l.validate().hideErrors(),this.ba.val("").change(),this.uC.val("").change());this.cv=!0;var b=this.Er.filter(":checked"),c=b.val();a=this.TC.data("params");a=Id(a)&&a.accountTypes?a.accountTypes:[];for(var e=0;e<a.length;e++)for(var f in a[e].fields)jQuery(".cont_"+a[e].fields[f],this.k).hide();for(e=0;e<a.length;e++)if(a[e].type.id==c){jQuery("h3.dataField",
this.SC).text(b.next().text());for(f in a[e].fields)jQuery(".cont_"+a[e].fields[f],this.k).show().find(":input").refresh();b=sj.a();this.ba.data(b.getData(),zd(!0,{},this.ba.data(b.getData()),{mask:a[e].mask,regex:a[e].regexp,masked:a[e].masked}));b.each(this.ba);break}};
d.Ii=function(){if(!this.ba.size())return y();var a=this.l.validate().check(this.ba,!0),b=this.ba.val();this.ba.data("ui-mask")&&(a=a&&this.ba.mask("valid"),b=this.ba.mask("value"));a&&this.pg.find("[type\x3daccount]").text(this.e.unmasksms?b:this.ba.val());return y()};
d.ot=function(a){clearTimeout(this.Rq);if(!this.Jd.size())return y();delete this.errors[this.yj.attr("name")];this.yj.valid();if(a.input&&this.kv.size()&&null!=this.bi)return y();var b=p(this.Jd.data(),"params","requiredFields"),c=!0;n(b,function(b){b=this.L.filter("[name\x3d"+b+"],[name\x3dextra\\[\\'"+b+"\\'\\]]");c=c&&(a.event||a.input?b.validate().check(b,!0):b.valid())},this);if(!c)return y();for(var e=this.l.formToArray(),f=[],g=0;g<e.length;g++)for(var l in b)if(e[g].name==b[l]||e[g].name==
"extra['"+b[l]+"']"){f.push(e[g]);break}var r=Bd(f);if(this.pn==r)return y();var B=w();this.Rq=setTimeout(z(function(){this.pn=r;this.bi=null;this.Jd.hide();this.h(this.Wh,{link:this.Tx,data:e,request:this.ls,t:this.BB,da:this.AB},B.resolve)},this),+a.timeout||1);return B.promise()};
d.Ki=function(a){var b=a.response.data;this.yj.valid();this.bi=!0;if(b["additional-action"])return this.F({url:b["additional-action"],data:a.data,k:this.Jd,sa:"html"});a=this.Jd.data("params").values;var c=w(),e=a.length,f;for(f in a){var g=a[f].bankName,l=v(".onlineInfo-"+g,this.Jd);Md(b[g])?(b[g]="",l.hide()):(this.Jd.show(),l.show());v(".dataValue",l).text(b[g]);var r=a[f].name;if("amount"==r)if(l=b[g].split("."),!1===this.Di){this.Ib.val(l[0]?l[0]:"0");this.Hb.val(l[1]?1==l[1].length&&"0"!=l[1][0]?
l[1]+"0":l[1].substr(0,2):"00");if(a[f].writeable)this.Ib.removeAttr("readonly"),this.Hb.removeAttr("readonly");else if(l[0]||l[1])this.Ib.attr("readonly","readonly"),this.Hb.attr("readonly","readonly");this.h(this.Cc).always(function(){0==--e&&c.resolve()})}else this.Di=!1,a[f].writeable?(this.Ib.removeAttr("readonly"),this.Hb.removeAttr("readonly"),0==--e&&c.resolve()):l[0]||l[1]?(this.Ib.val(l[0]?l[0]:"0"),this.Hb.val(l[1]?1==l[1].length&&"0"!=l[1][0]?l[1]+"0":l[1].substr(0,2):"00"),this.Ib.attr("readonly",
"readonly"),this.Hb.attr("readonly","readonly"),this.h(this.Cc).always(function(){0==--e&&c.resolve()})):0==--e&&c.resolve();else r&&this.L.each(function(c,e){var l=$(e),M=l.attr("name");if(M==r||M=="extra['"+r+"']")M=l.val(),l.val(b[g]),a[f].writeable?l.removeAttr("readonly"):l.attr("readonly","readonly"),b[g]!=M&&l.change()}),0==--e&&c.resolve()}a.length||c.resolve();return c.promise()};
d.Fy=function(a){Ld(this.Di)&&(this.Di=!1);this.Jd.hide();this.errors[this.yj.attr("name")]=a.response.message;this.l.validate().showErrors(this.errors);this.pn=null;this.bi=!1;return y()};d.zk=function(a){var b=this.Il.filter(function(){return $(this).data("container-name")==a.name});this.Il.not(b).hide();b.toggle()};d.vQ=function(){this.jw.hide();this.hw.val(!0);this.xo.show();this.xo.find(":input").disabled(!1).refresh()};
d.tQ=function(){this.jw.show();this.hw.val(!1);this.xo.hide();this.xo.find(":input").disabled(!0).refresh();this.li.find(":checkbox").selected(!1).refresh();this.ki.find(":checkbox").selected(!1).refresh()};
d.uQ=function(){switch(this.iw.filter(":checked").val()){case "ONCE":this.ns.show();this.os.show();this.li.hide();this.ps.hide();this.li.find(":checkbox").disabled(!0).selected(!1).refresh();this.ki.hide();this.ms.hide();this.ki.find(":checkbox").disabled(!0).selected(!1).refresh();break;case "WEEK":this.ns.hide();this.os.hide();this.li.show();this.ps.show();this.li.find(":checkbox").disabled(!1).refresh();this.ki.hide();this.ms.hide();this.ki.find(":checkbox").disabled(!0).selected(!1).refresh();
break;case "MONTH":this.ns.hide(),this.os.hide(),this.li.hide(),this.ps.hide(),this.li.find(":checkbox").disabled(!0).selected(!1).refresh(),this.ki.show(),this.ms.show(),this.ki.find(":checkbox").disabled(!1).refresh()}};
d.LO=function(a){clearTimeout(this.yH);this.of=a.input;var b=this.of.validate().check(this.of,!0);this.of.data("ui-mask")&&(b=b&&this.of.mask("valid"));if(!b)return y();var c=this.of.val();this.of.data("ui-mask")&&(c=this.of.mask("value"));if(c==this.eu[this.of.attr("name")])return y();delete this.errors[this.of.attr("name")];var e=new Td(this.l.formToArray());e.set("state","FIELD");Id(this.e.token)&&e.set([this.e.token]);this.getName();this.of.attr("name");this.yH=setTimeout(z(function(){this.eu[this.of.attr("name")]=
c;this.F({link:this.vE,data:e})},this),+a.timeout||500)};
d.Cb=function(a){if(this.Jd.size())return this.h(this.Iu,null,z(function(){return this.bi?Gd(this.errors)?U.c.Cb.call(this,a):(this.l.validate().showErrors(this.errors),y()):y()},this));if(!Gd(this.errors))return this.l.validate().showErrors(this.errors),y();a.back&&this.e.provider&&Le.a().send({event:"BigEvent",eventCategory:"Button",eventAction:"Click",eventLabel:"",eventContext:"Return",ecommerce:{currencyCode:this.ka.val(),remove:{products:[{name:this.e.provider.name,id:this.e.provider.id,price:this.ma.val(),
brand:uj(this),variant:oj(this),quantity:1}]}}});return U.c.Cb.call(this,a)};E(D.a(),U);Vg.addListener(function(a){return U.a().zl.h(a)});var tj=new G(u.payment.form.main);function vj(){U.call(this);this.r=yj;this.Qx=new K(u.card.form.detect);this.AK=v();this.zu=N(this,"account-change-success",this.gy);this.yu=N(this,"account-change-failure",this.fy);return this}m(vj,U);h(vj);d=vj.prototype;d.getName=q("card-form");d.nb=function(){vj.c.nb.call(this);clearTimeout(this.Sq)};
d.Ii=function(){this.ba.rules("remove","error");var a=this.l.validate().check(this.ba,!0),b=this.ba.val();this.ba.data("ui-mask")&&(a=a&&this.ba.mask("valid"),b=this.ba.mask("value"));clearTimeout(this.Sq);this.ba.rules("add",{error:!0});if(!a||this.dj==b)return y();this.Sq=setTimeout(z(function(){this.dj=b;return this.G({link:this.Qx,data:{cardNumber:this.dj},k:this.AK,t:this.zu,da:this.yu})},this),500)};
d.gy=function(a){if(!a.response.message)return y();this.ba.rules("remove","error");this.ba.valid();this.r=tj;this.data.empty();this.data.set(this.l.formToArray());this.data.replace({provider:a.response.message});this.data.replace({"extra['account']":this.dj});return this.ha({query:{provider:a.response.message}})};d.fy=function(a){this.ba.rules("add",{error:!0,messages:{error:a.response.message}});this.ba.valid();return y()};E(D.a(),vj);var yj=new G(u.card.form.main);s&&dc(8);var zj={};function Aj(){throw Error("Do not instantiate directly");}Aj.prototype.tw=null;Aj.prototype.getContent=function(){return this.content};Aj.prototype.toString=function(){return this.content};function Bj(a,b){null!=a&&this.append.apply(this,arguments)}d=Bj.prototype;d.rj="";d.set=function(a){this.rj=""+a};d.append=function(a,b,c){this.rj+=a;if(null!=b)for(var e=1;e<arguments.length;e++)this.rj+=arguments[e];return this};d.clear=function(){this.rj=""};d.toString=function(){return this.rj};function Cj(a){if(null!=a)switch(a.tw){case 1:return 1;case -1:return-1;case 0:return 0}return null}function Dj(){Aj.call(this)}m(Dj,Aj);Dj.prototype.kD=zj;function V(a){return null!=a&&a.kD===zj?a:Ej(String(String(a)).replace(Fj,Gj),Cj(a))}function Hj(){Aj.call(this)}m(Hj,Aj);Hj.prototype.kD={}.eW;function Ij(a){function b(){}b.prototype=a.prototype;return function(a,e){var f=new b;f.content=String(a);void 0!==e&&(f.tw=e);return f}}var Ej=Ij(Dj);Ij(Hj);
function Jj(a){var b=[],c;for(c in a)b.push(c);return b}(function(a){function b(){}b.prototype=a.prototype;return function(a,e){if(!String(a))return"";var f=new b;f.content=String(a);void 0!==e&&(f.tw=e);return f}})(Dj);
var Kj={"\x00":"\x26#0;",'"':"\x26quot;","\x26":"\x26amp;","'":"\x26#39;","\x3c":"\x26lt;","\x3e":"\x26gt;","\t":"\x26#9;","\n":"\x26#10;","\x0B":"\x26#11;","\f":"\x26#12;","\r":"\x26#13;"," ":"\x26#32;","-":"\x26#45;","/":"\x26#47;","\x3d":"\x26#61;","`":"\x26#96;","":"\x26#133;"," ":"\x26#160;","\u2028":"\x26#8232;","\u2029":"\x26#8233;"};function Gj(a){return Kj[a]}var Fj=/[\x00\x22\x26\x27\x3c\x3e]/g;var Lj={hg:{}};Lj.hg.Hh={};
Lj.hg.Hh.st=function(a){var b="";if(1<a.pageCount){for(var b=b+('\x3cul class\x3d"pagingLinks"\x3e'+(0!=a.currentNumber?'\x3cli class\x3d"previous"\x3e\x3ca href\x3d"#" data-action\x3d"change" data-params\x3d\'{"data":{"paging.currentNumber":'+V(a.currentNumber-1)+'},"mode":"replace"}\'\x3e\x26larr;\x3c/a\x3e\x3c/li\x3e':"")),c=a.pages,e=c.length,f=0;f<e;f++)var g=c[f],b=b+(a.currentNumber==g?'\x3cli class\x3d"active"\x3e\x3cspan\x3e'+V(g+1)+"\x3c/span\x3e\x3c/li\x3e":'\x3cli\x3e\x3ca href\x3d"#" data-action\x3d"change" data-params\x3d\'{"data":{"paging.currentNumber":'+V(g)+
'},"mode":"replace"}\'\x3e'+V(g+1)+"\x3c/a\x3e\x3c/li\x3e");b+=(a.currentNumber<a.pageCount-1?'\x3cli class\x3d"next"\x3e\x3ca href\x3d"#" data-action\x3d"change" data-params\x3d\'{"data":{"paging.currentNumber":'+V(a.currentNumber+1)+'},"mode":"replace"}\'\x3e\x26rarr;\x3c/a\x3e\x3c/li\x3e':"")+"\x3c/ul\x3e"}return b};
Lj.hg.Hh.KA=function(a){var b="";if(null!=a.sizes&&a.sizes.length){for(var b=b+('\x3cdiv class\x3d"switchSize"\x3e\x3cspan class\x3d"simpleText"\x3e'+V(settings.shell.paging.sizes.onpage)+"\x3c/span\x3e \x3cul\x3e"),c=a.sizes,e=c.length,f=0;f<e;f++)var g=c[f],b=b+('\x3cli data-action\x3d"change" data-params\x3d\'{"data":{"paging.size":"'+V(g.id)+'","paging.currentNumber":0},"mode":"replace"}\''+(g.id==a.sizeElementId?'class\x3d"active"':"")+"\x3e"+V(g.label)+"\x3c/li\x3e");b+="\x3c/ul\x3e \x3c/div\x3e"}return b};Lj.df={};
Lj.df.list=function(a){var b='\x3cdiv class\x3d"providersPage" data-widget\x3d"'+(a.component?V(a.component):"text")+'" ';if(null!=a.extraData){for(var b=b+'data-params\x3d\'{"data":{',c=Jj(a.extraData),e=c.length,f=0;f<e;f++)var g=c[f],b=b+('"'+V(g)+'":"'+V(a.extraData[g])+'"'+(f!=e-1?",":""));b+="}}'"}b+="\x3e"+(a.useSuggestion?'\x3cdiv id\x3d"searchSuggestion"\x3e\x3cdiv class\x3d"icon"\x3e\x3c/div\x3e\x3cdiv class\x3d"tip"\x3e'+V(settings.provider.search.suggestion)+"\x3c/div\x3e\x3c/div\x3e":"")+
(null!=a.additionalData&&a.additionalData.hasPopular?'\x3cdiv class\x3d"providersWrap"\x3e\x3cul class\x3d"providersViewToggle"\x3e\x3cli\x3e\x3ca href\x3d"'+V(settings.provider.tree.main.path)+"?category\x3d"+V(a.extraData.category)+'"\x3e'+V(settings.provider.popular.popular)+'\x3c/a\x3e\x3c/li\x3e\x3cli class\x3d"active"\x3e\x3ca href\x3d"#"\x3e'+V(settings.provider.popular.sorted)+"\x3c/a\x3e\x3c/li\x3e\x3c/ul\x3e\x3c/div\x3e\x3ch2\x3e"+V(a.additionalData.title)+"\x3c/h2\x3e":"");if(null==a.items||
0==a.items.length)b+="\x3cspan\x3e"+V(a.emptyMessage)+"\x3c/span\x3e";else{b+=(null!=a.paging?'\x3cdiv class\x3d"topPaging"\x3e'+(null!=a.additionalData&&a.additionalData.hasPopular?"":Lj.hg.Hh.KA(a.paging)+Lj.hg.Hh.st(a.paging))+'\x3cdiv class\x3d"clearBoth"\x3e\x3c/div\x3e\x3c/div\x3e':"")+'\x3cdiv class\x3d"providersWrap"\x3e\x3cul class\x3d"providersList"\x3e';c=a.items;e=c.length;for(f=0;f<e;f++)if(g=c[f],"SEARCH_STUB"==g.type)b+='\x3cli\x3e\x3ca href\x3d"'+V(g.url)+'" target\x3d"_self"\x3e\x3cdiv class\x3d"frame"\x3e\x3cimg src\x3d"'+
V(g.logo)+'" class\x3d"logo"/\x3e\x3c/div\x3e'+V(g.name)+"\x3c/a\x3e\x3c/li\x3e";else var b=b+"\x3cli\x3e",l=""+(g.category?V(settings.provider.tree.list.main.path)+"?category\x3d"+V(g.id):V(settings.payment.form.main.path)+"?provider\x3d"+V(g.id)),b=b+('\x3ca href\x3d"'+V(l)+'"\x3e\x3cdiv class\x3d"frame"\x3e\x3cimg src\x3d"'+V(g.logo)+'" class\x3d"logo"/\x3e\x3c/div\x3e'+V(g.name)+"\x3c/a\x3e\x3c/li\x3e");b+="\x3c/ul\x3e\x3c/div\x3e"+(null!=a.paging?'\x3cdiv class\x3d"bottomPaging"\x3e'+Lj.hg.Hh.KA(a.paging)+
Lj.hg.Hh.st(a.paging)+'\x3cdiv class\x3d"clearBoth"\x3e\x3c/div\x3e\x3c/div\x3e':"")}return b+"\x3c/div\x3e"};function Mj(){Q.call(this);this.zl=N(this,"provider",this.af);this.pi=L(this,"provider",Vg.bb());I(this.ab,this.getName(),this.V.getName());return this}m(Mj,Q);h(Mj);Mj.prototype.getName=q("provider-list");Mj.prototype.af=function(a){return this.trigger(this.pi,a)};function Nj(){Mj.call(this);this.r=Oj;return this}m(Nj,Mj);h(Nj);Nj.prototype.getName=q("cash-credits");E(D.a(),Nj);var Oj=new G(u.cash.credits.main);function Pj(){Mj.call(this);this.r=Qj;return this}m(Pj,Mj);h(Pj);Pj.prototype.getName=q("cash-transfers");E(D.a(),Pj);var Qj=new G(u.cash.transfers.main);function Rj(){P.call(this);this.r=new K(u.confirmation.form);this.et=new K(u.confirmation.confirm);this.xm=new K(u.confirmation.resend);this.zq=".smsStatus";this.yq=".sendAgain";this.lh=jQuery();this.Ej=jQuery();this.vn=N(this,"confirm",this.qb);this.wn=N(this,"confirm-success",this.Fm);this.rB=N(this,"confirm-failure",this.sO);N(this,"resend",this.Fk);this.Mu=N(this,"resend-success",this.Oy);this.EJ=N(this,"resend-failure",this.qQ);this.Bn=N(this,"resend-timeout",this.Py);I(this.ja,this.getName(),
this.Bn.getName());return this}m(Rj,P);h(Rj);d=Rj.prototype;d.getName=q("confirmation-form");d.ph=function(){return Pd(this.e.hu,J)?[this.e.hu.getName(),this.getName()].join("-"):this.getName()};d.init=function(a){Rj.c.init.call(this,a);this.lh=O(this,this.e.zq||this.zq);this.Ej=O(this,this.e.yq||this.yq)};d.nb=function(){Rj.c.nb.call(this);clearInterval(this.Tq)};
d.ha=function(a){this.e.hu=a.hu;this.e.success=a.success;this.e.Nd=a.Nd;this.e.validate=a.validate;this.e.Pc=a.Pc;this.e.clear=a.clear;this.data.empty().set(a.data);return Rj.c.ha.call(this,a)};d.qb=function(a){this.ca(a);this.pa.empty().hide();if(this.l.size()&&!this.l.valid()||Hd(this.e.validate)&&!this.e.validate(a))return y();a=new Td;a.set(this.l.formToArray());a.set(Hd(this.e.Pc)?this.e.Pc():this.e.Pc);return this.G({link:this.et,data:a,t:this.wn,yn:this.rB,da:this.rB})};
d.Fm=function(a){return Hd(this.e.success)?this.e.success(a):y()};d.sO=function(a){if(Hd(this.e.Nd))return this.e.Nd(a);if(Id(this.e.Nd)&&Hd(this.e.Nd[a.response.data]))return this.e.Nd[a.response.data](a);"error.code.900.label"==a.response.data&&!1!==this.e.clear&&this.l.html("\x3cbr /\x3e\x3cbr /\x3e\x3cbr /\x3e");return Rj.c.Na.call(this,a)};
d.Fk=function(a){this.ca(a);clearInterval(this.Tq);this.pa.empty().hide();a=new Td;a.set(this.l.formToArray());a.set(Hd(this.e.Pc)?this.e.Pc():this.e.Pc);return this.G({link:this.xm,data:a,t:this.Mu,da:this.EJ})};d.Oy=function(a){return this.h(this.Bn,a)};d.qQ=function(a){return Rj.c.Na.call(this,a)};
d.Py=function(){var a=20;this.Ej.hide();this.lh.show().text(Ad(u.confirmation.resend.status,a,u.confirmation.resend.unit));this.Tq=setInterval(z(function(){a-=1;0==a?(clearInterval(this.Tq),this.Ej.show(),this.lh.hide()):this.lh.text(Ad(u.confirmation.resend.status,a,u.confirmation.resend.unit))},this),1E3)};E(D.a(),Rj);function Sj(){Rj.call(this);this.r=new K(u.confirmation["public"].form);this.et=new K(u.confirmation["public"].confirm);this.xm=new K(u.confirmation["public"].resend);return this}m(Sj,Rj);h(Sj);Sj.prototype.getName=q("public-confirmation-form");E(D.a(),Sj);function Pi(){Kg.call(this);this.gt=G.WV;this.ht=G.XV;this.it=G.YV;this.Xx=G.ZV;this.xp=G.cW;this.Yx=G.$V;this.jt=G.bW;this.Zx=G.aW;this.kt=G.dW;return this}m(Pi,Kg);h(Pi);function Tj(){xi.call(this);return this}m(Tj,xi);h(Tj);Tj.prototype.getName=q("external-sso");Tj.prototype.Hg=function(){F.a().reload()};E(D.a(),Tj);function Uj(){Q.call(this);this.r=new K(Vj.Be);this.xE=hh;N(this,"login",this.Gg);this.xB=N(this,"login-complete",this.Np);this.Tg=N(this,"login-success",this.Gm);this.gr=N(this,"login-error",this.Dy);this.jj=N(this,"login-error-attempts",this.Bk);this.yB=N(this,"login-error-attempts-success",this.sP);this.mI=N(this,"auto-login",this.Gg);this.ir=N(this,"registration-success",this.Pp);this.HB=N(this,"registration-success-login",this.kQ);this.dJ=N(this,"oauth-login-success",this.AP);this.eJ=N(this,
"oauth-login-success-check",this.BP);this.bJ=N(this,"oauth-login-error",this.yP);this.cJ=N(this,"oauth-login-error-check",this.zP);N(this,"sso-login",this.Vp);N(this,"sso-check",this.WE);this.TJ=N(this,"sso-check-success",this.NQ);this.jr=N(this,"sso-oauth-providers",this.Km);N(this,"sso-oauth-sigin",this.Yp);this.Uj=L(this,"login-success",Og.bb());this.zs=L(this,"login-error",Pg.bb());this.nh=L(this,"login-error-attempts",Qg.bb());this.Ko=L(this,"oauth-created",bh.bb());this.Kh=":input[name\x3dlogin]";
this.Az=":input[name\x3dpassword]";this.Tk=":input[name\x3dcaptcha]";this.xq="[data-container-name\x3doauth]";this.mb=v();this.Oe=v();this.Fd=v();this.Id=v();this.Lc=window["qiwi-main-lib"].auth;return this}m(Uj,Q);h(Uj);d=Uj.prototype;d.getName=q("login-form");d.init=function(a){Uj.c.init.call(this,a);this.mb=O(this,this.Kh);this.Oe=O(this,this.Az);this.Fd=O(this,this.Tk);this.Id=O(this,this.xq);this.mc&&!this.k.parent().is(this.mc.a().k)&&(this.mc.a().k.request(!0),F.a().reload());this.Km()};
d.Vp=function(){this.pa.empty().hide();if(!this.l.valid())return y();this.k.request(!0);var a=$.deparam($.param(this.l.formToArray()));return this.Lc.login(a,this.Mi.bind(this),this.Ty.bind(this),this.Im.bind(this))};d.Mi=function(a){this.WE(a)};d.Im=function(a){this.k.request(!1);return this.h(this.gr,{Md:this.zs,response:{message:u.shell.http.code[a.message]?u.shell.http.code[a.message]:a.message}})};
d.Ty=function(a){return this.Fd.size()?this.Im(a):(this.k.request(!0),this.trigger(this.nh,{fj:this.mb.val(),gj:this.Oe.val(),response:{message:u.shell.http.code[a.message]?u.shell.http.code[a.message]:a.message,captchaUrl:a.captchaUrl}}))};d.Km=function(){if(!this.Id.children().size())return this.Lc.getOAuthProviders(this.Xp.bind(this),this.Lm.bind(this))};d.Xp=function(a){var b=Lj.De.ef.vk;this.Id.html(b({providers:a.data.supportedProviders},null,{settings:u}));return Fe.a().init(this.Id)};
d.Lm=function(){};d.Wp=function(a){return this.trigger(this.Ko,a)};d.Yp=function(a){this.ca(a);this.e.context=a.context;return this.Lc.oAuthLogin({provider:a.context,disabledMessage:u.qiwi.oauth.disabled},this.Mi.bind(this),this.Wp.bind(this))};d.WE=function(a){return this.G({url:u.qiwi.sso.check,type:"GET",data:a.data,t:this.TJ})};d.NQ=function(a){this.k.request(!0);return this.h(this.Tg,a)};d.Gg=function(a){this.ca(a);return this.Vp(a)};
d.Np=function(a){this.k.request(!0);if(-1!=vd(a.status,["3"]))return this.trigger(this.nh,{fj:this.mb.val(),gj:this.Oe.val(),response:a.response});if(-1!=vd(a.status,["7"])){var b=a.response.data;return Id(b)&&b.token&&"7"!=this.Ix?(b.url&&(delete a.link,a.url=b.url),a.data=new Td(b.parameters?b.parameters:a.data),a.data.set("loginToken",b.token),a.data=a.data.kc(),this.G(a)):this.h(a.da,a)}return this.jy(a)};
d.Gm=function(a){if(a.event){var b=a.response&&Id(a.response.data)?a.response.data:{};if(b.url)if(b.full)"/"==b.url[0]?window.location.href=b.url:(new oi).post(b.params,b.url);else return this.F({url:b.url}).always(z(function(){return this.trigger(this.Uj)},this));else F.a().getPath()==Vj.getPath()?window.location.href=ng.getPath():F.a().getPath()==Wj.getPath()?window.location.href=ng.getPath():F.a().getPath()==Xj.getPath()?window.location.href=ng.getPath():a["public"]?window.location.href=ng.getPath():
(b=qi.a().kc(),Ab(b)?F.a().reload():(new oi).post(b,F.a().fc()));return y()}this.ca(a);return this.trigger(this.Uj,{response:a.response})};d.Dy=function(a){this.k.request(!1);this.Oe.val("");this.Fd.val("");return this.Na(a)};d.Bk=function(a){this.data.empty().replace("captcha",!0);return this.ha({fj:a.fj,gj:a.gj,response:a.response})};
d.sP=function(a){this.k.request(!1);this.mb.val(a.fj).trigger("change");this.Oe.val(a.gj).trigger("change");this.Fd.val("");this.pa.html(a.response.message).show();return y()};d.Pp=function(a){this.data.empty().set({login:a.data.login});return this.h(this.V,{target:!0})};d.kQ=function(a){this.mb.val(a.data.login).trigger("change");this.Oe.val(a.data.newPassword).trigger("change");this.Fd.val("");return this.h(this.mI)};d.AP=function(){return this.h(this.V)};d.BP=function(a){return this.Mi(a)};
d.yP=function(){return this.h(this.V)};d.zP=function(a){return this.Im(a)};E(D.a(),Uj);var Vj=new G(u.qiwi.login.form),Wj=new G(u.qiwi.oauth.login.form);Og.addListener(function(a){return Uj.a().Tg.h(a)});Qg.addListener(function(a){return Uj.a().jj.h(a)});Qg.addListener(function(a){return Uj.a().yB.h(a)},1);Tg.addListener(function(a){return Uj.a().ir.h(a)});Tg.addListener(function(a){return Uj.a().HB.h(a)},1);ch.addListener(function(a){return Uj.a().dJ.h(a)});
ch.addListener(function(a){return Uj.a().eJ.h(a)},1);dh.addListener(function(a){return Uj.a().bJ.h(a)});dh.addListener(function(a){return Uj.a().cJ.h(a)},1);function Yj(){Uj.call(this);var a=Pi.a();this.r=a.gt;this.tk=a.jt;this.Wx=a.ht;this.An=N(this,"remind",this.Li);N(this,"registration",this.My);this.Uj=L(this,"login-success");this.zs=L(this,"login-error",Pg.bb());this.nh=L(this,"login-error-attempts");I(this.Uj,this,this.Tg);I(this.nh,this,this.jj);I(this.nh,this,this.yB,1);return this}m(Yj,Uj);h(Yj);d=Yj.prototype;d.getName=q("external-login-form");d.Np=function(a){this.data.empty().set(Pi.a().toArray());return Yj.c.Np.call(this,a)};
d.Bk=function(a){this.data.empty().set(Pi.a().toArray()).replace("captcha",!0);return this.ha({fj:a.fj,gj:a.gj,response:a.response})};d.Gm=function(a){this.ca(a);F.a().reload();return y()};d.Li=function(a){this.ca(a);return this.F({link:this.tk,data:Pi.a().toArray()})};d.My=function(a){this.ca(a);return this.F({link:this.Wx,data:Pi.a().toArray()})};E(D.a(),Yj);function Zj(){Sj.call(this);return this}m(Zj,Sj);h(Zj);Zj.prototype.getName=q("external-public-confirmation-form");Zj.prototype.Fm=function(){var a=new Td(this.l.formToArray());Pi.a().set("identifier",a.get("identifier"));return this.F({url:ak.Be,data:Pi.a().toArray()})};E(D.a(),Zj);function bk(){Q.call(this);this.Wx=new K(u.qiwi.registration);this.r=ck;this.wa=Xj;this.mN=new K(u.qiwi.registration.oferta);N(this,"registration",this.My);this.ir=N(this,"registration-success",this.Pp);this.GB=N(this,"registration-error",this.jQ);N(this,"oferta",this.CP);this.jr=N(this,"sso-oauth-providers",this.Km);N(this,"sso-oauth-sigin",this.Yp);this.pL=L(this,"registration-error",Sg.bb());this.Ko=L(this,"oauth-created",bh.bb());this.oL=L(this,"oauth-login-success",ch.bb());this.nL=L(this,"oauth-login-error",
dh.bb());this.Kh="[name\x3dlogin]";this.Tk="[name\x3dcaptcha]";this.CS="[name\x3dagreement]";this.xq="[data-container-name\x3doauth]";this.mb=v();this.Fd=v();this.kC=v();this.Id=v();this.country=null;this.Lc=window["qiwi-main-lib"].auth;return this}m(bk,Q);h(bk);d=bk.prototype;d.getName=q("registration-form");
d.init=function(a){bk.c.init.call(this,a);this.mb=O(this,this.Kh);this.Fd=O(this,this.Tk);this.kC=O(this,this.CS);this.Id=O(this,this.xq);this.mb.bindspace(this,"input paste keyup change",function(){var a=(this.mb.data("params")||{}).code;a||(a=this.mb.attr("defaultcountry"));a!=this.country&&(this.country=a,this.kC.selected(!1))}).keyup();this.h(this.jr)};
d.My=function(a){this.ca(a);this.pa.empty().hide();if(!this.l.valid())return y();this.data.empty().set(this.l.formToArray());return this.G({data:this.data,link:this.Wx,t:this.ir,yn:this.GB,da:this.GB,Md:this.pL})};d.Pp=function(a){this.ca(a);return this.F({link:this.wa,data:{identifier:a.response.data,login:this.data.get("login")},query:{identifier:a.response.data}})};d.jQ=function(a){this.Fd.val("");return this.Na(a)};
d.CP=function(a){this.country&&this.mb.val()&&window.open(this.mN.Be+"?"+Bd({country:this.country,phone:this.mb.val()}),"_blank");this.ca(a,null,this.country)};d.Mi=function(a){return this.trigger(this.oL,a)};d.Im=function(a){return this.trigger(this.nL,a)};d.Wp=function(a){return this.trigger(this.Ko,a)};d.Yp=function(a){this.ca(a);this.e.context=a.context;return this.Lc.oAuthLogin({provider:a.context,disabledMessage:u.qiwi.oauth.disabled},this.Mi.bind(this),this.Wp.bind(this))};
d.Km=function(){if(!this.Id.children().size())return this.Lc.getOAuthProviders(this.Xp.bind(this),this.Lm.bind(this))};d.Xp=function(a){var b=Lj.De.ef.vk;this.Id.html(b({providers:a.data.supportedProviders},null,{settings:u}));return Fe.a().init(this.Id)};d.Lm=function(){};E(D.a(),bk);var ck=new G(u.qiwi.registration.form);function dk(){bk.call(this);var a=Pi.a();this.r=a.ht;this.wa=a.it;return this}m(dk,bk);h(dk);dk.prototype.getName=q("external-registration-form");dk.prototype.Pp=function(a){this.ca(a);var b=Pi.a();b.replace("phone",this.mb.val());b.replace("identifier",a.response.data);return this.F({link:this.wa,data:b.toArray()})};E(D.a(),dk);function ek(){Q.call(this);this.r=Xj;this.zh=fk;this.FD=L(this,"registration-confirmation");this.GD=L(this,"registration-success",Tg.bb());this.Lh="[name\x3dnewPassword]";this.Mh="[name\x3dnewPasswordRepeat]";this.Xk="[name\x3dperiod]";this.cb=".confirmationForm";this.Nh=".newPasswordRepeatValid";this.Sa=v();this.Ta=v();this.kg=v();this.R=v();this.Fc=v();N(this,"password",this.xW);this.iJ=N(this,"password-success",this.RE);N(this,"password-failure",this.IP);this.hJ=N(this,"password-confirmation",
this.HP);I(this.ja,this.getName(),this.hJ.getName());I(this.FD,"public-confirmation-form","main");return this}m(ek,Q);h(ek);d=ek.prototype;d.getName=q("registration-password");
d.init=function(a){ek.c.init.call(this,a);this.Sa=O(this,this.Lh);this.Ta=O(this,this.Mh);this.kg=O(this,this.Xk);this.R=O(this,this.cb);this.Fc=O(this,this.Nh);this.Sa.bindspace(this,"input paste keyup change",function(){this.Sa.val()&&this.Sa.validate().check(this.Sa,!1);this.Ta.change()});this.Ta.bindspace(this,"input paste keyup change",function(){this.Ta.val()&&this.Ta.valid()?this.Fc.show():this.Fc.hide()});this.kg.bindspace(this,"change",function(){this.ca({},[this.kg.attr("name"),"change"].join("-"),
this.kg.filter(":checked").val())});this.L.bindspace(this,"input.save paste.save keyup.save change.save",function(){this.data.empty().set(this.l.formToArray())})};d.ha=function(a){this.data.empty().set(a.data);return Q.c.ha.call(this,a)};d.RE=function(a){this.ca(a);this.e.partnerLink&&v.post(this.e.partnerLink);this.data.empty().set(this.l.formToArray());return this.trigger(this.GD,{data:this.data.kc()})};d.IP=function(a){return this.Na(a)};
d.HP=function(a){this.R.empty().show();a=this.R.data("params");var b={},c;for(c in a)if(Id(a[c]))for(var e in a[c])b[c+"['"+e+"']"]=a[c][e];else b[c]=a[c];return this.trigger(this.FD,{k:this.R,sa:"html",data:b,validate:z(function(){return this.l.valid()},this),success:z(function(){return this.h(this.iJ)},this),Pc:z(function(){var a=this.data.toArray();for(c in a)a[c].name="data['"+a[c].name+"']";return a},this),clear:!1})};E(D.a(),ek);var Xj=new G(u.qiwi.registration.password),fk=new G(u.qiwi.registration.result);function gk(){ek.call(this);var a=Pi.a();this.r=a.it;this.zh=a.Xx;return this}m(gk,ek);h(gk);gk.prototype.getName=q("external-registration-password");gk.prototype.RE=function(a){this.ca(a);a=Pi.a();a.replace("afterRegistration",!0);return this.F({link:this.zh,data:a.toArray()})};E(D.a(),gk);function hk(){Q.call(this);this.tk=new K(u.qiwi.remind.code);this.r=ik;this.wa=jk;this.sk=kk;this.An=N(this,"remind",this.Li);this.lj=N(this,"remind-success",this.Fh);this.Bl=N(this,"remind-error",this.Dk);this.kj=N(this,"remind-confirmation",this.Eh);this.Ri="[name\x3dcode]";this.Ne=v();return this}m(hk,Q);h(hk);d=hk.prototype;d.getName=q("remind-code");d.init=function(a){hk.c.init.call(this,a);this.Ri=O(this,this.Ri);this.Ne.val()&&this.h(this.An)};
d.Li=function(){this.pa.empty().hide();if(!this.l.valid())return y();this.data.empty().set(this.l.formToArray());return this.G({data:this.data,link:this.tk,t:this.lj,da:this.Bl,bc:this.kj})};d.Fh=function(){return this.F({link:this.wa})};d.Dk=function(a){return this.Na(a)};d.Eh=function(a){return this.F({link:this.sk,data:{identifier:a.response.identifier,login:this.data.get("login")}})};E(D.a(),hk);var ik=new G(u.qiwi.remind.code);function lk(){hk.call(this);var a=Pi.a();this.r=a.Yx;this.wa=a.kt;this.sk=a.xp;return this}m(lk,hk);h(lk);lk.prototype.getName=q("external-remind-code");lk.prototype.Eh=function(a){var b=Pi.a();b.replace("identifier",a.response.identifier);return this.F({link:this.sk,data:b.toArray()})};E(D.a(),lk);function mk(){Q.call(this);this.tk=new K(u.qiwi.remind);this.r=nk;this.wa=ok;this.sk=kk;this.An=N(this,"remind",this.Li);this.lj=N(this,"remind-success",this.Fh);this.Bl=N(this,"remind-error",this.Dk);this.kj=N(this,"remind-confirmation",this.Eh);this.Hw=L(this,"remind-error",Rg.bb());this.Kh=":input[name\x3dlogin]";this.Tk=":input[name\x3dcaptcha]";this.mb=v();this.Fd=v();return this}m(mk,Q);h(mk);d=mk.prototype;d.getName=q("remind-form");
d.init=function(a){mk.c.init.call(this,a);this.mb=O(this,this.Kh);this.Fd=O(this,this.Tk)};d.Li=function(){this.pa.empty().hide();if(!this.l.valid())return y();this.data.empty().set(this.l.formToArray());return this.G({data:this.data,link:this.tk,t:this.lj,da:this.Bl,bc:this.kj,Md:this.Hw})};d.Fh=function(){return this.F({link:this.wa})};d.Dk=function(a){this.Fd.val("");return this.Na(a)};d.Eh=function(a){return this.F({link:this.sk,data:{identifier:a.response.identifier,login:this.data.get("login")}})};
E(D.a(),mk);var nk=new G(u.qiwi.remind.form),ok=new G(u.qiwi.remind.mail),jk=new G(u.qiwi.remind.success);function pk(){mk.call(this);var a=Pi.a();this.r=a.jt;this.wa=a.Zx;this.sk=a.xp;this.GM=a.gt;N(this,"back",this.bO);return this}m(pk,mk);h(pk);pk.prototype.getName=q("external-remind-form");pk.prototype.Fh=function(){var a=Pi.a();a.replace("phone",this.mb.val());return this.F({link:this.wa,data:a.toArray()})};pk.prototype.Eh=function(a){var b=Pi.a();b.replace("phone",this.mb.val());b.replace("identifier",a.response.identifier);return this.F({link:this.sk,data:b.toArray()})};
pk.prototype.bO=function(){return this.F({link:this.GM,data:Pi.a().toArray()})};E(D.a(),pk);function qk(){Q.call(this);this.r=kk;this.wa=jk;this.Lh="[name\x3dnewPassword]";this.Mh="[name\x3dnewPasswordRepeat]";this.cb=".confirmationForm";this.Nh=".newPasswordRepeatValid";this.Sa=v();this.Ta=v();this.R=v();this.Fc=v();this.An=N(this,"remind",this.Li);this.lj=N(this,"remind-success",this.Fh);this.Bl=N(this,"remind-error",this.Dk);this.kj=N(this,"remind-confirmation",this.Eh);this.Mo=L(this,"remind-confirmation");I(this.ja,this.getName(),this.kj.getName());I(this.Mo,"public-confirmation-form",
"main");return this}m(qk,Q);h(qk);d=qk.prototype;d.getName=q("remind-password");
d.init=function(a){qk.c.init.call(this,a);this.Sa=O(this,this.Lh);this.Ta=O(this,this.Mh);this.R=O(this,this.cb);this.Fc=O(this,this.Nh);this.Sa.bindspace(this,"input paste keyup change",function(){this.Sa.val()&&this.Sa.validate().check(this.Sa,!1);this.Ta.change()});this.Ta.bindspace(this,"input paste keyup change",function(){this.Ta.val()&&this.Fc.toggle(!!this.Ta.valid())});this.L.bindspace(this,"input.save paste.save keyup.save change.save",function(){this.data.empty().set(this.l.formToArray())})};
d.ha=function(a){this.data.empty().set(a.data);return qk.c.ha.call(this,a)};d.Fh=function(){return this.F({link:this.wa,data:{login:this.data.get("login")}})};d.Dk=function(a){return this.Na(a)};
d.Eh=function(a){this.R.empty().show();a=this.R.data("params");var b={},c;for(c in a)if(Id(a[c]))for(var e in a[c])b[c+"['"+e+"']"]=a[c][e];else b[c]=a[c];return this.trigger(this.Mo,{k:this.R,sa:"html",data:b,validate:z(function(){return this.l.valid()},this),success:z(function(){return this.lj.h()},this),Pc:z(function(){var a=this.data.toArray();for(c in a)a[c].name="data['"+a[c].name+"']";return a},this),clear:!1})};E(D.a(),qk);var kk=new G(u.qiwi.remind.password);function rk(){qk.call(this);var a=Pi.a();this.r=a.xp;this.wa=a.kt;return this}m(rk,qk);h(rk);rk.prototype.getName=q("external-remind-password");rk.prototype.Fh=function(){var a=Pi.a();return this.F({link:this.wa,data:a.toArray()})};E(D.a(),rk);function sk(){U.call(this);this.r=tk;return this}m(sk,U);h(sk);sk.prototype.getName=q("favorite-edit");sk.prototype.ha=function(a){this.data.empty().set(a.data);return sk.c.ha.call(this,a)};E(D.a(),sk);var tk=new G(u.favorite.edit.main);function uk(){oh.call(this);this.r=new K(u.favorite.menu.main);this.ed=new K(u.favorite.remove);this.Lo=L(this,"open");this.No=L(this,"task");this.Oo=L(this,"update");N(this,"open",this.Gy);N(this,"task",this.Uy);N(this,"mode",this.Ch);this.ij=N(this,"create",this.Pf);this.de=N(this,"update",this.Wc);N(this,"remove",this.wd);this.be=N(this,"remove-success",this.Ce);this.nj=N(this,"show-success",this.Hk);this.Lo.addListener(function(a){return vk.a().V.h(a)});this.No.addListener(function(a){return wk.a().V.h(a)});
this.Oo.addListener(function(a){return sk.a().V.h(a)});return this}m(uk,oh);h(uk);d=uk.prototype;d.getName=q("favorite-menu");d.init=function(a){uk.c.init.call(this,a);this.k.is(":visible")&&this.h(this.ce)};d.Xa=function(a){this.k.request(!1);return this.k.children().size()?uk.c.Xa.call(this,a):(this.k.show(),this.ha({sa:"html",t:this.nj}))};d.Hk=function(a){a=uk.c.Ji.call(this,a);var b=this.init(this.e);return x(a,b).promise()};d.tc=function(a){this.k.request(!1);return uk.c.tc.call(this,a)};
d.Ch=function(a){a.data&&this.data.empty().set(a.data);return this.h(this.V,{sa:"html"},z(function(){return this.Db({data:this.data.kc()})},this))};d.Gy=function(a){this.K.removeClass("active").filter(function(){var b=v(this);return b.is(a.target)||b.has(a.target).size()}).addClass("active");return this.trigger(this.Lo,a)};d.Uy=function(a){this.K.removeClass("active").filter(function(){var b=v(this);return b.is(a.target)||b.has(a.target).size()}).addClass("active");return this.trigger(this.No,a)};
d.Wc=function(a){this.K.removeClass("active").filter(function(){var b=v(this);return b.is(a.target)||b.has(a.target).size()}).addClass("active");return this.trigger(this.Oo,a)};d.wd=function(a){var b=this.K.removeClass("active").filter(function(){var b=v(this);return b.is(a.target)||b.has(a.target).size()}).addClass("active");return this.qb({message:u.favorite.remove.confirm,confirm:z(function(){this.G({data:a.data,link:this.ed,k:b,t:this.be})},this)})};
d.Ce=function(){return this.h(this.V,{sa:"html"},z(function(){return this.Db({data:this.data.kc()})},this))};E(D.a(),uk);function xk(){Q.call(this);this.r=yk;this.ed=new K(u.favorite.remove);this.Lo=L(this,"open");this.No=L(this,"task");this.Oo=L(this,"update");N(this,"open",this.Gy);N(this,"task",this.Uy);N(this,"mode",this.Ch);this.ij=N(this,"create",this.Pf);this.de=N(this,"update",this.Wc);N(this,"remove",this.wd);this.be=N(this,"remove-success",this.Ce);this.nj=N(this,"show-success",this.Hk);this.Lo.addListener(function(a){return vk.a().V.h(a)});this.No.addListener(function(a){return wk.a().V.h(a)});this.Oo.addListener(function(a){return sk.a().V.h(a)});
return this}m(xk,Q);h(xk);d=xk.prototype;d.getName=q("favorite-list");d.init=function(a){xk.c.init.call(this,a);this.k.is(":visible")&&this.h(this.ce)};d.Xa=function(a){this.k.request(!1);return this.k.children().size()?xk.c.Xa.call(this,a):(this.k.show(),this.ha({sa:"html",t:this.nj}))};d.Hk=function(a){a=xk.c.Ji.call(this,a);var b=this.init(this.e);return x(a,b).promise()};d.tc=function(a){this.k.request(!1);return xk.c.tc.call(this,a)};
d.Ch=function(a){a.data&&this.data.empty().set(a.data);return this.h(this.V,a)};d.Gy=function(a){return this.trigger(this.Lo,a)};d.Uy=function(a){return this.trigger(this.No,a)};d.Wc=function(a){return this.trigger(this.Oo,a)};d.wd=function(a){return this.qb({message:u.favorite.remove.confirm,confirm:z(function(){this.G({data:a.data,link:this.ed,t:this.be})},this)})};d.Ce=function(){return this.h(this.V)};E(D.a(),xk);var yk=new G(u.favorite.list.main);function vk(){Q.call(this);this.r=zk;return this}m(vk,Q);h(vk);vk.prototype.getName=q("favorite-open");vk.prototype.ha=function(a){this.data.empty().set(a.data);return vk.c.ha.call(this,a)};E(D.a(),vk);var zk=new G(u.favorite.open.main);function Ak(){Q.call(this);this.r=Bk;return this}m(Ak,Q);h(Ak);Ak.prototype.getName=q("favorite-save");Ak.prototype.ha=function(a){this.data.empty().set(a.data);return Ak.c.ha.call(this,a)};E(D.a(),Ak);var Bk=new G(u.favorite.save.main);function wk(){Q.call(this);this.r=Ck;return this}m(wk,Q);h(wk);wk.prototype.getName=q("favorite-task");wk.prototype.ha=function(a){this.data.empty().set(a.data);return wk.c.ha.call(this,a)};E(D.a(),wk);var Ck=new G(u.favorite.task.main);function Dk(){J.call(this);this.vN=new K(u.feature.list.random);this.Ub="[data-container-name\x3ditem]";this.K=jQuery();N(this,"next",this.QE);N(this,"prev",this.TE);this.Ku=N(this,"random",this.WP);this.pJ=N(this,"random-success",this.XP);return this}m(Dk,J);h(Dk);d=Dk.prototype;d.getName=q("bonuses-feature");d.init=function(a){Dk.c.init.call(this,a);this.K=O(this,this.Ub);this.K.size()?this.K.filter(":hidden").size()==this.K.size()&&this.K.first().show():this.h(this.Ku)};
d.QE=function(a){var b=this.K.filter(":visible"),c=b.next();if(c.size()){var e=w(),f=w();b.hide("slide",{direction:"left"},e.resolve);c.show("slide",{direction:"right"},f.resolve);return x(e,f).promise()}return this.h(this.Ku,{data:a.data,manipulate:"append"}).always(z(function(){this.QE(a)},this))};
d.TE=function(a){var b=this.K.filter(":visible"),c=b.prev();if(c.size()){var e=w(),f=w();b.hide("slide",{direction:"right"},e.resolve);c.show("slide",{direction:"left"},f.resolve);return x(e,f).promise()}return this.h(this.Ku,{data:a.data,manipulate:"prepend"}).always(z(function(){this.TE(a)},this))};d.WP=function(a){return this.F({link:this.vN,data:a.data,sa:a.manipulate?a.manipulate:"append",request:$(),t:this.pJ})};d.XP=function(a){a=Dk.c.Ji.call(this,a);var b=this.init(this.e);return x(a,b).promise()};
E(D.a(),Dk);function Ek(){Q.call(this);this.r=Fk;this.ab.addListener(function(a){return Ek.a().V.h(a)});return this}m(Ek,Q);h(Ek);Ek.prototype.getName=q("feature-list-bonuses-archive");E(D.a(),Ek);var Fk=new G(u.feature.list.bonuses.archive);function Gk(){Q.call(this);this.ab.addListener(function(a){return Gk.a().V.h(a)});return this}m(Gk,Q);h(Gk);Gk.prototype.getName=q("feature-list");E(D.a(),Gk);new G(u.feature.list.list);new G(u.feature.list.top);new G(u.feature.list.bonuses.list);new G(u.feature.list.bonuses.fixed);new G(u.feature.list.bonuses.active);function Hk(){sj.call(this);return this}m(Hk,sj);h(Hk);Hk.prototype.getName=q("form-field-date-month-range-select");Hk.prototype.getData=q("form-field-date-month-range-select");
Hk.prototype.each=function(a){var b=v(a);if(!b.is(":input"))return Hk.c.each.call(this,a);var c=b.next().find(":radio"),e=b.next().nextAll("div");e.each(z(function(a,c){var f=$(c),g=f.find(":input");g.bindspace(this,"change",function(){var a=[];g.each(function(b,c){a.push($(c).val())});e.not(f).each(function(b,c){$(c).find(":input").each(function(b,c){$(c).val(a[b])})});b.val(a.join("/"))});var H=g.eq(0),M=g.eq(1);M.is("select")?H.bindspace(this,"change.null",function(){var a=H.find("option").filter(":selected").index();
M.find("option").each(function(b,c){c=$(c);a>b?(c.disabled(!0),c.is(":selected")&&c.selected(!1).next().selected(!0)):c.disabled(!1)});M.refresh();M.change()}):H.bindspace(this,"change.null",function(){M.val(H.val()).change()})},this));c.bindspace(this,"change",function(){e.hide().eq(c.filter(":checked").val()).show().find(":input").refresh().change()});var f=b.val().split("/");if(3==f.length){var g=f[0]==f[1]?0:1;c.selected(!1).refresh();c.eq(g).selected(!0).refresh();e.hide().eq(g).show().find(":input").each(function(a,
b){$(b).val(f[a])}).refresh().change()}else c.change();return Hk.c.each.call(this,a)};Hk.a();function Ik(){sj.call(this);return this}m(Ik,sj);h(Ik);Ik.prototype.getName=q("form-field-date-select");Ik.prototype.getData=q("form-field-date-select");
Ik.prototype.each=function(a){function b(){try{if(g.val()&&f.val()){var a=new Date;a.setDate(1);a.setMonth(parseInt(g.val(),10)-1);a.setFullYear(parseInt(f.val(),10));c.val(a.getTime()?$.datepicker.formatDate(e.format,a):"").keyup()}else c.val("").keyup()}catch(b){c.val("").keyup()}}var c=v(a);if(!c.is(":input"))return Ik.c.each.call(this,a);var e=c.data(this.getData())||{};if(!e.format)return Ik.c.each.call(this,a);e.format=e.format.replace(/yy/g,"y");e.format=e.format.replace(/MM/g,"mm");var f=
e.year?c.siblings(e.year):c.nextAll(":input").eq(0),g=e.month?c.siblings(e.month):c.nextAll(":input").eq(1);g.bindspace(this,"change",b);f.bindspace(this,"change",b);c.bindspace(this,"change",function(){try{if(c.val()){var a=$.datepicker.parseDate("dd"+e.format,"01"+c.val());g.val(10>a.getMonth()+1?"0"+(a.getMonth()+1):a.getMonth()+1);f.val(a.getFullYear())}else g.val(""),f.val("")}catch(b){g.val(""),f.val("")}g.refresh();f.refresh()}).change();return Ik.c.each.call(this,a)};Ik.a();function Jk(){Q.call(this);this.Ub="[data-container-name\x3ditem]";this.ST="[data-container-name\x3ditem-cancel]";this.K=jQuery();this.FC=jQuery();this.r=Kk;N(this,"activate",this.xk);this.cr=N(this,"cancel",this.py);return this}m(Jk,Q);h(Jk);Jk.prototype.getName=q("kaspersky-products");Jk.prototype.init=function(a){Jk.c.init.call(this,a);this.K=O(this,this.Ub);this.FC=O(this,this.ST)};
Jk.prototype.xk=function(a){var b=parseInt((window.screen.width-800)/2),c=parseInt((window.screen.height-600)/2);window.open(Mi.getPath()+"?"+Bd(a.data),"kp","left\x3d"+b+",top\x3d"+c+",width\x3d800,height\x3d600,menubar\x3d0,toolbar\x3d0,location\x3d0,directories\x3d0,status\x3d0,resizable\x3d0,scrollbars\x3d1")};Jk.prototype.py=function(a){var b=this.K.has(a.target);this.FC.filter(function(){return b.has(this).size()}).toggle()};E(D.a(),Jk);var Kk=new G(u.kaspersky.products.main);function Lk(){Q.call(this);this.r=Mk;this.yp=new K(u.megafon.phone.attach.save);this.wa=new K(u.megafon.phone.attach.success);N(this,"save",this.Qp);this.Cn=N(this,"save-success",this.Rp);this.GJ=N(this,"save-success-dialog",this.sQ);return this}m(Lk,Q);h(Lk);Lk.prototype.getName=q("megafon-phone-attach");Lk.prototype.Qp=function(){this.pa.empty().hide();return this.l.size()&&!this.l.valid()?y():this.G({link:this.yp,data:this.l.formToArray(),t:this.Cn})};
Lk.prototype.Rp=function(a){return this.F({link:this.wa,data:a.data,t:this.GJ})};Lk.prototype.sQ=function(a){var b=w(),c=v("\x3cdiv\x3e");c.html(a.response).dialog({modal:!0,width:"auto",resizable:!1,draggable:!1,closeEnabled:!0,closeOnEscape:!0,overlayClass:"ui-widget-fader",open:function(){Fe.a().init(a.response).always(function(){c.dialog("option","position","center")})},close:function(){b.resolve();c.remove()}});return b.promise()};E(D.a(),Lk);new G(u.megafon.main);var Mk=new G(u.megafon.phone.attach.main);function Nk(){J.call(this);this.r=new K(u.megafon.balance.main);this.Fb=N(this,"load",this.$b);I(this.ja,this.getName(),this.Fb.getName());return this}m(Nk,J);h(Nk);Nk.prototype.getName=q("megafon-balance");Nk.prototype.$b=function(a){return a.target&&null!=this.e.loaded||!this.k.children().size()?this.h(this.V):y()};E(D.a(),Nk);function Ok(){J.call(this);this.r=new K(u.megafon.balance.header);this.Fb=N(this,"load",this.$b);I(this.ja,this.getName(),this.Fb.getName());return this}m(Ok,J);h(Ok);Ok.prototype.getName=q("megafon-balance-header");Ok.prototype.$b=function(a){return a.target&&null!=this.e.loaded||!this.k.children().size()?this.h(this.V):y()};E(D.a(),Ok);function Pk(){J.call(this);this.r=new K(u.megafon.balance.header);this.Fb=N(this,"load",this.$b);I(this.ja,this.getName(),this.Fb.getName());return this}m(Pk,J);h(Pk);Pk.prototype.getName=q("megafon-balance-header-selected");Pk.prototype.$b=function(a){return a.target&&null!=this.e.loaded||!this.k.children().size()?this.h(this.V):y()};E(D.a(),Pk);function Qk(){J.call(this);this.r=new K(u.megafon.balance.source);this.Fb=N(this,"load",this.$b);I(this.ja,this.getName(),this.Fb.getName());return this}m(Qk,J);h(Qk);Qk.prototype.getName=q("megafon-balance-source");Qk.prototype.$b=function(a){return a.target&&null!=this.e.loaded||!this.k.children().size()?this.h(this.V):y()};E(D.a(),Qk);function Rk(){J.call(this);N(this,"close",this.yk);return this}m(Rk,J);h(Rk);Rk.prototype.getName=q("megafon-demo");Rk.prototype.Db=function(a){this.ca(a);return Rk.c.Db.call(this,a)};
Rk.prototype.yk=function(a){this.ca(a);v(".popup").hide();v(".popup-prompt .description").show();v(".auth_balance .account_list").show();a=v(".auth_balance [data-container-name\x3dmegafon-balance-header]");a.attr("data-widget","megafon-balance-header");Fe.a().init(a);v(".mg-logo-box-logo").css({"z-index":"102"});v(".accountSelect").css({"z-index":"102"});v(".mg-logo-box-link \x3e a").css({"z-index":"102"});v(".add-megafon-payments").css({color:"#fff","border-color":"#fff","z-index":"102"});v(document.body).click(function(){setTimeout(function(){window.location.href=
ng.getPath()},500)})};E(D.a(),Rk);function Sk(){J.call(this);this.Tc=new K(u.megafon.feedback);this.lf=N(this,"send",this.Ic);this.Uz="[data-container-name\x3dsend]";this.am=jQuery();return this}m(Sk,J);h(Sk);Sk.prototype.getName=q("megafon-details");Sk.prototype.init=function(a){Sk.c.init.call(this,a);this.am=O(this,this.Uz)};Sk.prototype.Ic=function(){return this.F({link:this.Tc,k:this.am})};E(D.a(),Sk);function Tk(){J.call(this);this.r=new K(u.megafon.phone.list);this.Uc=new K(u.megafon.phone.update);this.ed=new K(u.megafon.phone.remove);this.Ub="[data-container-name\x3ditem]";this.Hz="[data-container-name\x3ditem-form]";this.Iz="[data-container-name\x3ditem-form-name]";this.Jz="[data-container-name\x3ditem-name]";this.K=jQuery();this.Aj=jQuery();this.lo=jQuery();this.Bj=jQuery();this.Fb=N(this,"load",this.$b);this.de=N(this,"update",this.Wc);N(this,"update-submit",this.Yy);N(this,"update-cancel",
this.Wy);this.nd=N(this,"update-success",this.Qf);N(this,"remove",this.wd);this.be=N(this,"remove-success",this.Ce);I(this.ja,this.getName(),this.Fb.getName());return this}m(Tk,J);h(Tk);d=Tk.prototype;d.getName=q("megafon-phone-list");d.init=function(a){Tk.c.init.call(this,a);this.K=O(this,this.Ub);this.Aj=O(this,this.Hz);this.lo=O(this,this.Iz);this.Bj=O(this,this.Jz);this.zj=v();this.cc=v();this.$g=v();this.Me=v()};
d.$b=function(a){return a.target&&null!=this.e.loaded||!this.k.children().size()?this.h(this.V):y()};d.Wc=function(a){this.Rb=this.K.has(a.target);this.Aj.hide();this.Bj.show();this.cc=this.Rb.find(this.Aj);this.Me=this.Rb.find(this.Bj);this.$g=this.cc.find(this.lo);this.cc.validate().resetForm(!0);this.cc.show();this.Me.hide();this.$g.focus();this.$g.val(Dd(this.Me.text()))};d.Wy=function(){this.cc.validate().resetForm(!0);this.cc.hide();this.Me.show();return y()};
d.Yy=function(){return this.cc.valid()?this.G({link:this.Uc,data:this.cc.formToArray(),t:this.nd}):y()};d.Qf=function(){this.cc.validate().resetForm(!0);this.cc.hide();this.Me.show();this.Me.text(this.$g.val())};d.wd=function(a){this.Rb=this.K.has(a.target);return this.qb({message:u.megafon.phone.remove.confirm,confirm:z(function(){this.G({link:this.ed,data:a.data,t:this.be})},this)})};d.Ce=function(){this.Rb.remove()};E(D.a(),Tk);function Uk(){Tk.call(this);this.r=new K(u.megafon.phone.list.main);return this}m(Uk,Tk);h(Uk);Uk.prototype.getName=q("megafon-main-phone-list");E(D.a(),Uk);function Vk(){P.call(this);this.Tc=new K(u.megafon.register.confirm);this.wa=new K(u.megafon.register.success);this.lf=N(this,"send",this.Ic);this.nc=N(this,"send-success",this.xd);this.ZI=N(this,"main-redirect",this.uP);this.Dd=N(this,"send-failure",this.Tp);this.mj=N(this,"send-confirmation",this.Gk);this.Hf=L(this,"send-confirmation");this.Uz="[data-container-name\x3dsend]";this.mS="[data-container-name\x3dconfirm]";this.am=v();this.ur=v();I(this.Hf,"megafon-register-confirmation-form","main");
return this}m(Vk,P);h(Vk);d=Vk.prototype;d.getName=q("megafon-register-token");d.init=function(a){Vk.c.init.call(this,a);this.am=O(this,this.Uz);this.ur=O(this,this.mS)};d.Db=function(a){this.ca(a);return Vk.c.Db.call(this,a)};d.Ic=function(){return this.G({link:this.Tc,t:this.nc,da:this.Dd,bc:this.mj})};d.xd=function(a){this.ca(a);this.G({link:this.wa,t:this.ZI})};d.uP=function(a){window.location.href=a.response&&a.response.data&&a.response.data.url?a.response.data.url:ng.getPath()};
d.Tp=function(a){this.am.show();this.ur.hide();return this.Na(a)};d.Gk=function(a){this.ca(a);this.am.hide();this.ur.empty().show();return this.trigger(this.Hf,{k:this.ur,sa:"html",data:{identifier:a.response.identifier,type:"MEGAFON_REGISTER_TOKEN"},success:function(a){return Vk.a().nc.h(a)},Nd:{"error.code.302.label":function(a){return Vk.a().Dd.h(a)},"error.code.890.label":function(a){return Vk.a().Dd.h(a)},"error.code.1027.label":function(a){return Vk.a().Dd.h(a)}},clear:!1})};E(D.a(),Vk);function Wk(){Sj.call(this);this.r=new K(u.megafon.register.confirmation.form);return this}m(Wk,Sj);h(Wk);Wk.prototype.getName=q("megafon-register-confirmation-form");Wk.prototype.ph=function(){return this.getName()};E(D.a(),Wk);function Xk(){Q.call(this);this.r=Yk;this.ed=new K(u.message.list.remove);this.kN=new K(u.message.list.mark);this.lN=new K(u.message.list.more);this.Tz="[data-container-name\x3dselect]";this.cU="[data-container-name\x3dmessages]";this.sz="[data-container-name\x3dactions]";this.Ub="[data-container-name\x3ditem]";this.VT="[data-container-name\x3ditem-remove]";this.WT="[data-container-name\x3ditem-select]";this.TT="[data-container-name\x3ditem-important]";this.XT="[data-container-name\x3ditem-unimportant]";
this.pU="[data-container-name\x3dremove]";this.fU="[data-container-name\x3dmore]";this.kh=v();this.KC=v();this.di=v();this.K=jQuery();this.HC=jQuery();this.wf=jQuery();this.Ov=jQuery();this.Qv=jQuery();this.Vl=jQuery();this.bs=jQuery();this.Fl=jQuery();jQuery();this.nv=jQuery();N(this,"item-toggle",this.lP);N(this,"item-important",this.cP);N(this,"item-unimportant",this.mP);this.VI=N(this,"item-select",this.Ak);N(this,"item-remove",this.hP);this.TI=N(this,"item-remove-confirm",this.iP);this.UI=N(this,
"item-remove-success",this.jP);N(this,"selected-remove",this.xQ);this.JJ=N(this,"selected-remove-confirm",this.yQ);this.KJ=N(this,"selected-remove-success",this.zQ);this.Nu=N(this,"select",this.Sp);this.zB=N(this,"more",this.Ey);this.aJ=N(this,"more-success",this.wP);I(this.ab,this.getName(),this.V.getName());this.cz=0;return this}m(Xk,Q);h(Xk);d=Xk.prototype;d.getName=q("message-list");
d.init=function(a){Xk.c.init.call(this,a);this.kh=O(this,this.Tz);this.KC=O(this,this.cU);this.di=O(this,this.sz);this.K=O(this,this.Ub);this.HC=O(this,this.VT);this.wf=O(this,this.WT);this.Ov=O(this,this.TT);this.Qv=O(this,this.XT);this.Vl=O(this,this.pU);this.bs=O(this,this.fU);this.kh.bindspace(this,"change select",function(){this.Nu.h()});this.wf.bindspace(this,"change",function(){this.VI.h()});this.K.size()||this.cz||this.h(this.zB);this.K.size()&&this.di.show().find(this.L).refresh()};
d.lP=function(a){var b=this.K.has(a.target);this.K.not(b).removeClass("active");b.toggleClass("active");this.ca(a,null,b.hasClass("read")?"Read":"Unread");if(b.hasClass("read"))return y();b.removeClass("unread").addClass("read");return this.G({link:this.kN,data:a.data,request:$(),t:this.Je})};d.cP=function(a){var b=this.K.has(a.target),c=b.find(this.Ov).show();b.find(this.Qv).hide();return this.G({link:this.dN,data:a.data,k:c,t:this.Je})};
d.mP=function(a){var b=this.K.has(a.target);b.find(this.Ov).hide();b=b.find(this.Qv).show();return this.G({link:this.dN,data:a.data,k:b,t:this.Je})};d.hP=function(a){this.Fl=this.K.has(a.target);this.Fl.find(this.HC);return this.qb({message:u.message.list.remove.confirm.item,confirm:z(function(){return this.h(this.TI,a)},this)})};d.iP=function(a){return this.G({data:a.data,link:this.ed,request:this.Fl,t:this.UI})};
d.jP=function(){this.wf.selected(!1).refresh();this.Ak();this.Fl.remove();this.init(this.e);if(!this.K.size()&&this.bs.size())return this.F({link:this.r});this.K.size()||this.di.hide()};d.Ak=function(){this.wf.filter(":checked").size()?this.Vl.addClass("active"):this.Vl.removeClass("active");return y()};
d.xQ=function(a){if(!this.Vl.hasClass("active"))return y();this.nv=this.wf.filter(":checked");this.Fl=this.K.has(this.nv);return this.qb({message:u.message.list.remove.confirm.selected,confirm:z(function(){return this.h(this.JJ,a)},this)})};d.yQ=function(){var a=new Td;this.nv.each(function(){a.set("ids",$(this).val())});return this.G({data:a,link:this.ed,request:this.Vl,t:this.KJ})};
d.zQ=function(){this.Vl.removeClass("active");this.Fl.remove();this.init(this.e);if(!this.K.size()&&this.bs.size())return this.F({link:this.r});this.kh.val("");this.kh.refresh();this.K.size()||this.di.hide()};
d.Sp=function(){switch(this.kh.val()){case "all":this.wf.selected(!0).refresh();this.Ak();break;case "none":this.wf.selected(!1).refresh();this.Ak();break;case "new":this.Ak();break;case "read":this.wf.selected(!1).refresh();this.K.filter(".read").find(this.wf).selected(!0).refresh();this.Ak();break;case "unread":this.wf.selected(!1).refresh(),this.K.filter(".unread").find(this.wf).selected(!0).refresh(),this.Ak()}return y()};
d.Ey=function(a){this.cz+=1;this.bs.remove();return this.F({link:this.lN,data:a.data,request:this.k,k:this.KC,sa:"append",t:this.aJ})};d.wP=function(a){a=Xk.c.Ji.call(this,a);var b=this.init(this.e);return x(a,b).promise()};E(D.a(),Xk);var Yk=new G(u.message.list.main);function Zk(){Q.call(this);this.r=$k;N(this,"accept",this.Of);return this}m(Zk,Q);h(Zk);Zk.prototype.getName=q("order-external-nanocredit-form");Zk.prototype.Of=function(){this.data.empty().set(this.l.formToArray());return this.F({link:al,data:this.data})};E(D.a(),Zk);var $k=new G(u.nanocredit.order.external.form);function bl(){Q.call(this);this.r=al;return this}m(bl,Q);h(bl);bl.prototype.getName=q("order-external-nanocredit-result");bl.prototype.init=function(a){bl.c.init.call(this,a);v.getScript("//www.qppi.ru/Scripts/QppiruHost.js",z(function(){window.QppiruHost.init(this.e.token,this.e.success,this.e.failure)},this))};E(D.a(),bl);var al=new G(u.nanocredit.order.external.result);function cl(){Q.call(this);this.r=dl;return this}m(cl,Q);h(cl);cl.prototype.getName=q("news-item");E(D.a(),cl);var dl=new G(u.news.item.main);function el(){J.call(this);N(this,"item",this.Cy);this.Jo=L(this,"item");this.Jo.addListener(function(a){return cl.a().V.h(a)});return this}m(el,J);h(el);el.prototype.getName=q("news-last");el.prototype.Cy=function(a){return this.trigger(this.Jo,a)};E(D.a(),el);function fl(){Q.call(this);this.r=gl;N(this,"item",this.Cy);this.Jo=L(this,"item");this.Jo.addListener(function(a){return cl.a().V.h(a)});this.ab.addListener(function(a){return fl.a().V.h(a)});return this}m(fl,Q);h(fl);fl.prototype.getName=q("news-list");fl.prototype.Cy=function(a){return this.trigger(this.Jo,a)};E(D.a(),fl);var gl=new G(u.news.list.main);function hl(){J.call(this);this.r=new K(u.offer.main);this.DN=new K(u.offer.shown);this.JM=new K(u.offer.click);this.tS="img";this.YT="a";this.gC=jQuery();this.IC=jQuery();this.MJ=N(this,"shown",this.DQ);this.uI=N(this,"click",this.pO);return this}m(hl,J);h(hl);hl.prototype.getName=q("offer");hl.prototype.init=function(a){hl.c.init.call(this,a);this.gC=O(this,this.tS);this.IC=O(this,this.YT);this.gC.bindspace(this,"load",function(){this.h(this.MJ)});this.IC.bindspace(this,"click",function(){this.h(this.uI)})};
hl.prototype.DQ=function(){return this.G({link:this.DN,data:this.data,request:$(),t:this.Je,da:this.Je})};hl.prototype.pO=function(){return this.G({link:this.JM,data:this.data,request:$(),t:this.Je,da:this.Je})};E(D.a(),hl);Xg.addListener(function(){return hl.a().V.h()},1);function il(){P.call(this);this.ab.addListener(function(a){return jl.a().V.h(a)});return this}m(il,P);h(il);il.prototype.getName=q("order-daterange");il.prototype.Xa=function(a){il.c.Xa.call(this,a);this.data.empty().set(this.l.formToArray())};il.prototype.tc=function(a){il.c.tc.call(this,a);this.data.empty()};E(D.a(),il);function kl(){Q.call(this);return this}m(kl,Q);h(kl);kl.prototype.getName=q("order-external-create");kl.prototype.init=function(a){kl.c.init.call(this,a);Fe.a().jz.done(function(){F.a().getPath()==ll.getPath()&&mg()||(window.location.href=ll.getPath()+"?"+this.data.nn())}.bind(this))};E(D.a(),kl);function ml(){Q.call(this);this.r=nl;this.yh=new K(u.order.external.form.accept);this.BM=ol;this.zM=new K(u.order.external.form.accept.phone);this.AM=pl;this.CM=ql;this.cb=".confirmationForm";this.At=".confirmationLink";this.Zk="[name\x3dsource]";this.Bz="[name\x3dpaymentModeType]";this.eU="[data-container-name\x3dmode]";this.R=v();this.Le=v();this.ib=v();this.rf=v();this.LC=v();this.hr=N(this,"logout",this.$e);this.Ug=N(this,"logout-success",this.Hg);N(this,"accept",this.Of);this.kf=N(this,"accept-success",
this.wk);this.$H=N(this,"accept-failure",this.MN);this.un=N(this,"accept-confirmation",this.Ep);N(this,"accept-phone",this.LE);this.bI=N(this,"accept-phone-success",this.ON);this.aI=N(this,"accept-phone-failure",this.NN);N(this,"accept-terminal",this.ME);this.IB=N(this,"source",this.Sy);N(this,"mode",this.Ch);N(this,"sso-logout",this.Jm);this.oi=L(this,"accept-confirmation");L(this,"confirmation-link");I(this.oi,"confirmation-form","main");this.J={};this.Lc=window["qiwi-main-lib"].auth;return this}
m(ml,Q);h(ml);d=ml.prototype;d.getName=q("order-external-form");
d.init=function(a){ml.c.init.call(this,a);this.R=O(this,this.cb);this.Le=O(this,this.At);this.ib=O(this,this.Zk);this.rf=O(this,this.Bz);this.LC=O(this,this.eU);this.ib.bindspace(this,"change",function(){this.h(this.IB)});this.R.size()||(this.R=this.k);this.Le.size()||(this.Le=this.k);this.J={};if((a=this.ib.data("modes"))&&Fd(a))for(var b=0;b<a.length;b++){var c=a[b];if(c&&Fd(c.sources))for(var e=0;e<c.sources.length;e++){var f=c.sources[e];f&&f.id&&(this.J[f.id]={id:f.id,kind:c.type,vk:f["default"]})}}this.J[this.ib.val()]&&
this.LC.removeClass("active").filter("[data-container-mode\x3d"+this.J[this.ib.val()].kind+"]").addClass("active")};d.$e=function(a){return a.target?this.Jm(a):this.G({link:jh,t:this.Ug})};d.Hg=function(){F.a().reload()};d.Jm=function(){return this.Lc.logout(this.$e.bind(this))};d.Ch=function(a){var b=null,c;for(c in this.J)if(this.J[c].kind==a.mode&&(b||(b=c),this.J[c].vk)){b=c;break}this.rf.val(a.mode);b&&this.ib.val(b).refresh().change();return y()};
d.Sy=function(){var a=this.J[this.ib.val()];this.rf.val(a?a.kind:this.ib.val());this.data.empty().set(this.l.formToArray());return this.ha({})};d.Of=function(){if(!this.l.valid())return y();switch(this.rf.val()){case "PHONE":return this.LE();case "TERMINAL":return this.ME();default:return this.G({link:this.yh,data:this.l.formToArray(),t:this.kf,bc:this.un,da:this.$H})}};d.wk=function(){return this.F({link:this.BM,data:this.data})};
d.MN=function(a){var b=this.data.get("failUrl"),c=this.data.get("iframe"),e=this.data.get("target");return b?(c&&window.parent&&"iframe"!=e?window.parent.location.href=b:window.location.href=b,y()):this.Na(a)};
d.Ep=function(a){this.l.hide();var b=a.response.identifier,c=a.response.data.confirmLink;a.response.data.awaytingConfirm?b=a.response.data.identifier:c&&(b=a.response.data.identifier);if(b)if(c)this.Le.show(),this.Le.find("a").attr("href",c);else return this.R.show(),this.trigger(this.oi,{k:this.R,sa:"html",data:{identifier:b,type:"BILL"},success:function(a){return ml.a().kf.h(a)}});return y()};
d.LE=function(){this.data.empty().set(this.l.formToArray());return this.G({link:this.zM,data:this.data,t:this.bI,da:this.aI})};d.ON=function(){this.data.get("successUrl");this.data.get("iframe");this.data.get("target");return this.F({link:this.AM,data:this.data})};d.NN=function(a){var b=this.data.get("failUrl"),c=this.data.get("iframe"),e=this.data.get("target");return b?(c&&window.parent&&"iframe"!=e?window.parent.location.href=b:window.location.href=b,y()):this.Na(a)};
d.ME=function(){this.data.empty().set(this.l.formToArray());return this.F({link:this.CM,data:this.data})};E(D.a(),ml);var nl=new G(u.order.external.form.main),ol=new G(u.order.external.form.accept.success);new G(u.order.external.form.accept.failure);var pl=new G(u.order.external.form.accept.phone.success);new G(u.order.external.form.accept.phone.failure);var ql=new G(u.order.external.form.accept.terminal);function rl(){J.call(this);this.gb=Pi.a();this.gb.gt=sl;this.gb.ht=tl;this.gb.it=ul;this.gb.Xx=vl;this.gb.xp=wl;this.gb.Yx=xl;this.gb.jt=yl;this.gb.Zx=zl;this.gb.kt=Al;return this}m(rl,J);h(rl);rl.prototype.getName=q("order-external-info");rl.prototype.init=function(a){rl.c.init.call(this,a);this.data.get("order")&&!mg()&&(window.location.href=F.a().getPath()+"?"+this.data.nn())};E(D.a(),rl);
var ll=new G(u.order.external.main),ak=new G(u.order.external.sources),sl=new G(u.order.external.login.form),tl=new G(u.order.external.registration.form),ul=new G(u.order.external.registration.password),vl=new G(u.order.external.registration.result),xl=kh,yl=new G(u.order.external.remind.form),zl=new G(u.order.external.remind.mail),Al=new G(u.order.external.remind.success),wl=new G(u.order.external.remind.password);function Bl(){Q.call(this);this.Bz="[name\x3dpaymentModeType]";this.jS="[data-container-name\x3dbuttons]";this.rf=v();this.$B=v();return this}m(Bl,Q);h(Bl);Bl.prototype.getName=q("order-external-methods");Bl.prototype.init=function(a){Bl.c.init.call(this,a);this.rf=O(this,this.Bz);this.$B=O(this,this.jS);this.rf.bindspace(this,"change",function(){this.$B.hide().eq(this.rf.index(this.rf.filter(":checked"))).show()})};
Bl.prototype.Cb=function(a){this.pa.empty().hide();if(this.l.size()&&!this.l.valid())return y();Pi.a().replace(this.rf.attr("name"),this.rf.filter(":checked").val());this.data.empty().set(this.l.formToArray());var b=this.data.nn(),c=a.href+"?"+b;a=a.ajax+"?"+b;F.a().open(c,a,null);return y()};E(D.a(),Bl);function Cl(){Q.call(this);return this}m(Cl,Q);h(Cl);Cl.prototype.getName=q("order-external-phone");Cl.prototype.init=function(a){Cl.c.init.call(this,a);for(var b in this.e.data)Od(this.e.data[b])&&this.l.append(v("\x3cinput\x3e").attr("type","hidden").attr("name",b).val(this.e.data[b]))};Cl.prototype.Cb=function(){this.pa.empty().hide();if(this.l.size()&&!this.l.valid())return y();this.l.get(0).submit();return y()};E(D.a(),Cl);function Dl(){Q.call(this);this.MT="[name\x3dto]";this.Kv=v();return this}m(Dl,Q);h(Dl);Dl.prototype.getName=q("order-external-preorder");Dl.prototype.init=function(a){Dl.c.init.call(this,a);this.Kv=O(this,this.MT)};Dl.prototype.Cb=function(){this.pa.empty().hide();if(this.l.size()&&!this.l.valid())return y();this.Kv.val(this.Kv.val().replace(/[^\d]/,""));this.l[0].submit()};E(D.a(),Dl);function El(){Q.call(this);this.qU="[data-container-name\x3dreports]";this.nS="[data-container-name\x3dcontinue]";this.QC=v();this.cC=v();N(this,"reports",this.Ek);this.sB=N(this,"continue",this.ty);return this}m(El,Q);h(El);El.prototype.getName=q("order-external-result");El.prototype.init=function(a){El.c.init.call(this,a);this.QC=O(this,this.qU);this.cC=O(this,this.nS);Pi.a().get("successUrl")?this.cC.show():this.QC.show()};
El.prototype.Ek=function(){var a=Pi.a(),b=Fl.getPath(),c=a.get("iframe");Lf(function(){c&&window.parent?window.parent.location.href=b:window.location.href=b},3E3);return y()};El.prototype.ty=function(){var a=Pi.a(),b=a.get("successUrl"),c=a.get("iframe"),e=a.get("target");if(!b)return y();Lf(function(){c&&window.parent&&"iframe"!=e?window.parent.location.href=b:window.location.href=b},3E3);return y()};E(D.a(),El);function Gl(){Q.call(this);this.r=ol;this.Et=".identificationForm";this.wj=v();this.sB=N(this,"continue",this.ty);return this}m(Gl,Q);h(Gl);Gl.prototype.getName=q("order-external-success");Gl.prototype.init=function(a){Gl.c.init.call(this,a);this.wj=O(this,this.Et);this.wj.size()||this.sB.h()};
Gl.prototype.ty=function(){var a=this.data.get("successUrl"),b=this.data.get("iframe"),c=this.data.get("target");if(!a)return y();Lf(function(){b&&window.parent&&"iframe"!=c?window.parent.location.href=a:window.location.href=a},3E3);return y()};E(D.a(),Gl);function Hl(){Q.call(this);this.r=Il;this.zh=Jl;this.wp=new K(u.order.form.create);this.Jh="[name\x3damount]";this.zz="[name\x3dvalue]";this.vz="[name\x3dchange]";this.Vk="[name\x3dcurrency]";this.ij=N(this,"create",this.Pf);this.xn=N(this,"create-success",this.Gp);this.yI=N(this,"create-failure",this.uO);return this}m(Hl,Q);h(Hl);d=Hl.prototype;d.getName=q("order-form");
d.init=function(a){Hl.c.init.call(this,a);this.ma=O(this,this.Jh);this.Pl=O(this,this.zz);this.Ml=O(this,this.vz);this.ka=O(this,this.Vk);this.Pl.bindspace(this,"input paste keyup change",function(){this.ma.trigger("amount")});this.Ml.bindspace(this,"input paste keyup change",function(){this.ma.trigger("amount")});this.ma.bindspace(this,"amount",function(){var a=(parseInt(this.Pl.val(),10)||0)+(parseInt(this.Ml.val(),10)||0)/100;arguments.callee.value!=a&&(arguments.callee.value=a,this.ma.val(a),
this.ma.keyup())}).trigger("amount");this.ka.bindspace(this,"change",function(){var a=this.ka.data("params");this.ka.is("select")&&(a=this.ka.find(":selected").data("params"));this.ma.rules("add",a);this.ma.keyup()}).change()};d.Pf=function(){this.pa.empty().hide();return this.l.valid()?this.G({link:this.wp,data:this.l.formToArray(),t:this.xn,da:this.yI}):y()};d.Gp=function(){return this.F({link:this.zh,data:{err:!1}})};d.uO=function(){return this.F({link:this.zh,data:{err:!0}})};E(D.a(),Hl);
var Il=new G(u.order.form.main),Jl=new G(u.order.form.result);function jl(){Q.call(this);this.r=Kl;this.gN=new K(u.order.item.reject);this.wE=new K(u.order.fragment);this.Ub="[data-container-name\x3ditem]";this.vG="[data-container-name\x3ditem-operations]";this.K=jQuery();this.Pv=jQuery();this.Rb=jQuery();this.ah=jQuery();this.RI=N(this,"item-reject",this.fP);this.SI=N(this,"item-reject-success",this.gP);N(this,"item-accept",this.WO);this.MI=N(this,"item-accept-success",this.XO);this.QI=N(this,"item-payment-form-success",this.eP);this.wB=N(this,"item-payment-form-cancel",
this.dP);this.DD=L(this,"item-reject");this.BD=L(this,"item-accept");this.CD=L(this,"item-cancel");this.DD.addListener(function(a){return jl.a().RI.h(a)});this.BD.addListener(function(a){return Ll.a().V.h(a)});this.CD.addListener(function(a){return Ll.a().cr.h(a)});this.ab.addListener(function(a){return jl.a().V.h(a)});this.jb.addListener(function(a){return Ml.a().Zh.h(a)});this.jb.addListener(function(a){return il.a().Zh.h(a)});return this}m(jl,Q);h(jl);d=jl.prototype;d.getName=q("order-list");
d.init=function(a){jl.c.init.call(this,a);this.K=O(this,this.e.Ub||this.Ub);this.Pv=O(this,this.e.vG||this.vG)};d.fP=function(a){this.Rb=this.K.has(a.target);this.ah=this.Rb.find(this.Pv);return Pd(a.event,Lg)?this.G({data:a.data,link:this.gN,request:this.ah,t:this.SI}):this.qb({message:u.order.item.reject.confirm,confirm:z(function(){this.trigger(this.DD,a)},this)})};
d.gP=function(){this.Rb.removeClass(function(a,b){return(b.match(/\bstatus_\S+/g)||[]).join(" ")}).addClass("status_CANCELED");this.ah.remove();this.e.main&&this.F({link:this.wE})};d.WO=function(a){var b=this.K.has(a.target);return this.Rb.is(b)&&this.Rb.hasClass("active")?(a.k=this.Rb,a.request=this.ah,this.trigger(this.CD,a)):this.wB.h(a,z(function(a){this.Rb=b;this.ah=this.Rb.find(this.Pv);a.k=this.Rb;a.request=this.ah;return this.trigger(this.BD,a)},this))};
d.XO=function(){this.Rb.removeClass("active");this.Rb.removeClass(function(a,b){return(b.match(/\bstatus_\S+/g)||[]).join(" ")}).addClass("status_PAID");this.ah.remove();this.e.main&&this.F({link:this.wE})};d.eP=function(){this.Rb.addClass("active");this.ah.hide();return y()};d.dP=function(){this.Rb.removeClass("active");this.ah.show();return y()};E(D.a(),jl);var Kl=new G(u.order.list);function Ml(){oh.call(this);this.mc=pi;this.r=new K(u.order.menu);N(this,"daterange",this.wy);N(this,"orderform",this.GP);this.Io=L(this,"daterange");this.Dw=L(this,"orderform");this.ab.addListener(function(a){return jl.a().V.h(a)},1);this.ab.addListener(function(a){return il.a().ad.h(a)});this.Io.addListener(function(a){return il.a().ce.h(a)});this.Dw.addListener(function(a){return Hl.a().V.h(a)},1);this.Dw.addListener(function(a){return il.a().ad.h(a)});return this}m(Ml,oh);h(Ml);
Ml.prototype.getName=q("order-menu");Ml.prototype.wy=function(a){this.data.empty();this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Io,a)};Ml.prototype.GP=function(a){this.data.empty();this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Dw,a)};E(D.a(),Ml);function Ll(){P.call(this);this.r=new K(u.order.item.payment.form);this.yh=new K(u.order.item.accept);this.Rx=new K(u.person.account.information.old.main);this.Zk="[name\x3dsource]";this.jq=".commissionInfo";this.kq=".commissionInfo .totalCash";this.lq=".bankCurrency";this.oq=".bankCurrency span";this.hq=".additionalCurrency";this.iq=".additionalCurrency span";this.mq=".currencyInformation";this.nq=".currencyInformation span";this.cb=".confirmationForm";this.At=".confirmationLink";this.Et=".identificationForm";
this.qo=jQuery();this.ib=jQuery();this.Oc=jQuery();this.ke=jQuery();this.le=jQuery();this.oe=jQuery();this.ie=jQuery();this.je=jQuery();this.me=jQuery();this.ne=jQuery();this.R=jQuery();this.Le=jQuery();this.wj=jQuery();N(this,"main-complete",this.wW);N(this,"accept",this.Of);this.kf=N(this,"accept-success",this.wk);this.un=N(this,"accept-confirmation",this.Ep);this.cr=N(this,"cancel",this.py);this.IB=N(this,"source",this.Sy);this.ED=L(this,"main-success");this.Cf=L(this,"accept-success");this.oi=
L(this,"accept-confirmation");this.ws=L(this,"cancel");I(this.oi,"confirmation-form","main");this.Cf.addListener(function(a){return jl.a().MI.h(a)});this.Cf.addListener(function(a){return Ll.a().kf.h(a)});Mg(this.Cf,Ug);this.ws.addListener(function(a){return Ll.a().cr.h(a)});this.ws.addListener(function(a){return jl.a().wB.h(a)});this.ED.addListener(function(a){return jl.a().QI.h(a)});return this}m(Ll,P);h(Ll);d=Ll.prototype;d.getName=q("order-payment-form");
d.init=function(a){Ll.c.init.call(this,a);this.ib=O(this,this.e.Zk||this.Zk);this.Oc=O(this,this.e.jq||this.jq);this.ke=O(this,this.e.kq||this.kq);this.le=O(this,this.e.lq||this.lq);this.oe=O(this,this.e.oq||this.oq);this.ie=O(this,this.e.hq||this.hq);this.je=O(this,this.e.iq||this.iq);this.me=O(this,this.e.mq||this.mq);this.ne=O(this,this.e.nq||this.nq);this.R=O(this,this.e.cb||this.cb);this.Le=O(this,this.e.At||this.At);this.wj=O(this,this.e.Et||this.Et);setTimeout(z(function(){this.ib.change()},
this),1);this.R.size()||(this.R=this.k);this.Le.size()||(this.Le=this.k)};d.ha=function(a){return this.cr.h(a,z(function(a){this.qo=a.request;return this.F({link:this.r,data:a.data,sa:"append",k:a.k,request:a.request,vg:this.ED})},this))};d.py=function(a){return a.event==this.ws?(this.qo.request(!1),this.k.hide().remove(),y()):this.trigger(this.ws,a)};d.Of=function(){return this.l.valid()?this.G({link:this.yh,data:this.l.formToArray(),t:this.kf,bc:this.un}):y()};
d.wk=function(a){if(a.event==this.Cf){this.qo.request(!1);if(this.wj.size())return this.l.remove(),this.R.remove(),this.Le.remove(),this.wj.empty().show(),this.F({link:this.Rx,data:{provider:this.e.provider,source:this.ib.val()},sa:"append",k:this.wj});this.k.hide().remove();return y()}return this.trigger(this.Cf,a)};
d.Ep=function(a){this.l.hide();var b=a.response.identifier,c=a.response.data.confirmLink;a.response.data.awaytingConfirm?b=a.response.data.identifier:c&&(b=a.response.data.identifier);if(b)if(c)this.Le.show(),this.Le.find("a").attr("href",c);else return this.R.show(),this.trigger(this.oi,{k:this.R,sa:"html",data:{identifier:b,type:"BILL"},success:function(a){return Ll.a().kf.h(a)}});return y()};
d.Sy=function(a){this.Oc.hide();this.ke.empty();this.le.hide();this.oe.empty();this.ie.hide();this.je.empty();this.me.hide();this.ne.empty();a.amountMessage&&(this.Oc.show(),this.ke.html(a.amountMessage));a.rateMessage&&a.rate&&a.rate.from&&a.rate.to&&a.rate.from.currencyCode!=a.rate.to.currencyCode&&(this.le.show(),this.oe.html(a.rateMessage),a.additionalRateMessage&&(this.ie.show(),this.je.html(a.additionalRateMessage)),a.rateAboutMessage&&(this.me.show(),this.ne.html(a.rateAboutMessage)))};
E(D.a(),Ll);function Nl(){lj.call(this);return this}m(Nl,lj);h(Nl);Nl.prototype.getName=q("payment-confirm");
Nl.prototype.init=function(a){Nl.c.init.call(this,a);$e(Le.a(),"/funnel/cash_request/confirmation/"+this.e.provider.id);this.e.provider&&Le.a().send({event:"PageInit",eventLabel:"Payment Confirm",ecommerce:{currencyCode:this.e.currency,add:{products:[{name:this.e.provider.name,id:this.e.provider.id,price:this.e.amount,brand:this.e.mode,variant:oj(this)}]}},item:{type:"payment",action:"add",categorySite:pj(),currencyCode:this.e.currency,name:this.e.provider.name,id:this.e.provider.id,price:this.e.amount,
brand:this.e.mode,variant:oj(this)}})};Nl.prototype.Cb=function(a){a.back&&Le.a().send({event:"BigEvent",eventCategory:"Button",eventAction:"Click",eventLabel:"",eventContext:"Return",ecommerce:{currencyCode:this.e.currency,remove:{products:[{name:this.e.provider.name,id:this.e.provider.id,price:this.e.amount,brand:this.e.mode,variant:oj(this),quantity:1}]}}});return Nl.c.Cb.call(this,a)};E(D.a(),Nl);function Ol(){lj.call(this);this.xm=new K(u.confirmation.resend);this.zq=".smsStatus";this.yq=".sendAgain";this.lh=jQuery();this.Ej=jQuery();N(this,"resend",this.Fk);this.Mu=N(this,"resend-success",this.Oy);this.Bn=N(this,"resend-timeout",this.Py);I(this.ja,this.getName(),this.Bn.getName());return this}m(Ol,lj);h(Ol);d=Ol.prototype;d.getName=q("payment-confirm-sms");
d.init=function(a){Ol.c.init.call(this,a);this.lh=O(this,this.e.zq||this.zq);this.Ej=O(this,this.e.yq||this.yq);$e(Le.a(),"/funnel/cash_request/confirmation_sms/"+this.e.provider.id);this.e.provider&&Le.a().send({event:"PageInit",eventLabel:"Payment SMS Confirm",ecommerce:{currencyCode:this.e.currency,checkout:{actionField:{step:1,option:"sms confirm"},products:[{name:this.e.provider.name,id:this.e.provider.id,brand:this.e.mode,variant:oj(this)}]}},item:{type:"payment",action:"sms confirm",categorySite:pj(),
currencyCode:this.e.currency,name:this.e.provider.name,id:this.e.provider.id,price:this.e.amount,brand:this.e.mode,variant:oj(this)}})};d.Fk=function(a){this.pa.empty().hide();return this.G({link:this.xm,data:a.data,t:this.Mu})};d.Oy=function(a){return this.h(this.Bn,a)};
d.Py=function(){var a=20;this.Ej.hide();this.lh.show().text(Ad(u.confirmation.resend.status,a,u.confirmation.resend.unit));this.Tq=setInterval(z(function(){a-=1;0==a?(clearInterval(this.Tq),this.Ej.show(),this.lh.hide()):this.lh.text(Ad(u.confirmation.resend.status,a,u.confirmation.resend.unit))},this),1E3)};E(D.a(),Ol);function Pl(){lj.call(this);return this}m(Pl,lj);h(Pl);Pl.prototype.getName=q("payment-confirm-oferta");Pl.prototype.init=function(a){Pl.c.init.call(this,a)};E(D.a(),Pl);function Ql(){lj.call(this);this.vn=N(this,"confirm",this.qb);return this}m(Ql,lj);h(Ql);Ql.prototype.getName=q("payment-confirm-external");Ql.prototype.qb=function(){this.k.request(!0);this.e.data?(new mi).post(this.e.data,this.e.url):window.open(this.e.url,"_self");return y()};E(D.a(),Ql);function Rl(){lj.call(this);return this}m(Rl,lj);h(Rl);Rl.prototype.getName=q("payment-save-success");Rl.prototype.init=function(a){Rl.c.init.call(this,a);window.location.href=yk.getPath()};E(D.a(),Rl);function Sl(){lj.call(this);return this}m(Sl,lj);h(Sl);Sl.prototype.getName=q("payment-save");E(D.a(),Sl);function Tl(){lj.call(this);Mg(this.ja,Ug);Mg(this.ja,Xg);return this}m(Tl,lj);h(Tl);Tl.prototype.getName=q("payment-success");
Tl.prototype.init=function(a){Tl.c.init.call(this,a);this.e.provider&&($e(Le.a(),"/funnel/cash_request/success/"+this.e.provider.id),Le.a().send({event:"PageInit",eventLabel:"Payment Processing",ecommerce:{currencyCode:this.e.currency,checkout:{actionField:{step:2},products:[{name:this.e.provider.name,id:this.e.provider.id,brand:this.e.mode,variant:oj(this)}]}},item:{type:"payment",action:"checkout",categorySite:pj(),currencyCode:this.e.currency,name:this.e.provider.name,id:this.e.provider.id,price:this.e.amount,
brand:this.e.mode,variant:oj(this),order:{id:this.e.id}}}))};E(D.a(),Tl);function Ul(){lj.call(this);return this}m(Ul,lj);h(Ul);Ul.prototype.getName=q("payment-error");Ul.prototype.init=function(a){Ul.c.init.call(this,a);if(this.e.error){a=new of(window.location.href);a.getPath();var b=a.Fe;b.set("error",this.e.error);F.a().save(a.getPath(),b.toString(),null,!0);Le.a().send({event:"PageInit",eventLabel:this.e.error})}};E(D.a(),Ul);function Vl(){U.call(this);this.Yk="[name\x3dextra\\[\\'rec_country\\'\\]]";this.Jb=jQuery();return this}m(Vl,U);h(Vl);Vl.prototype.getName=q("card-payment-form");Vl.prototype.init=function(a){Vl.c.init.call(this,a);this.Jb=O(this,this.Yk);this.Jb.size()||(this.Jb=$("\x3cinput\x3e").attr("type","hidden").attr("name","extra['rec_country']").appendTo(this.l))};E(D.a(),Vl);function Wl(){U.call(this);this.Dz="[name\x3dextra\\[\\'rec_amount\\'\\]]";this.Ez="[name\x3dextra\\[\\'rec_currcode\\'\\]]";this.Cz="[name\x3dextra\\[\\'rate\\'\\]]";this.Wn=v();this.lg=v();this.Vn=v();this.xu=N(this,"account-change",this.Ii);return this}m(Wl,U);h(Wl);Wl.prototype.getName=q("contact-payment-form");
Wl.prototype.init=function(a){Wl.c.init.call(this,a);this.Wn=O(this,this.Dz);this.lg=O(this,this.Ez);this.Vn=O(this,this.Cz);this.ka.bindspace(this,"change",function(){this.Za=!1;this.h(this.Cc);this.ka.trigger("formstate")});this.ka.bindspace(this,"formstateform",function(){this.ka.trigger("formstate")});a=this.ba.data("params").currencies||{};var b=this.ka.val(),c;for(c in a)if(a[c].currency.currencyCode==b){this.lg.val(a[c].extCurrencyId);break}};
Wl.prototype.Ii=function(a){var b=this.ba.val();this.Gj.hide();if(!b)return y();this.Gj.show();a=this.ba.data("params")||{};a=a.countryCurrencies||[];for(var c=[],e=0;e<a.length;e++)a[e].country==b&&c.push(a[e].currency.currencyCode);b=this.ka.val();a=this.ka.children().disabled(!0);e=a.filter(":selected").selected(!1);a.filter(function(a,b){return-1!=vd($(b).val(),c)}).disabled(!1);e.is(":disabled")&&(e=a.not(":disabled").first());e.selected(!0);this.ka.refresh();b!=this.ka.val()&&this.ka.trigger("change");
return y()};Wl.prototype.Bh=function(a){Wl.c.Bh.call(this,a);this.Wn.val(a.response.data.amount.integer+"."+a.response.data.amount.formattedFraction);this.Vn.val(a.response.data.rate.value)};E(D.a(),Wl);function Xl(){U.call(this);this.zc="[name\x3dextra\\[\\'extra_poslat\\'\\]]";this.Nz=".cont__extra_cnt1";this.Oz=".cont__extra_cnt2";this.Pz=".cont__extra_cnt3";this.Qz=".cont__extra_cnt4";this.Ca=jQuery();this.Hj=jQuery();this.Ij=jQuery();this.Jj=jQuery();this.Kj=jQuery();this.oj=N(this,"type-change",this.Kk);return this}m(Xl,U);h(Xl);Xl.prototype.getName=q("housenoginsk-payment-form");
Xl.prototype.init=function(a){Xl.c.init.call(this,a);this.Ca=O(this,this.zc);this.Hj=O(this,this.Nz);this.Ij=O(this,this.Oz);this.Jj=O(this,this.Pz);this.Kj=O(this,this.Qz);this.Ca.bindspace(this,"change",function(){this.h(this.oj)}).change()};Xl.prototype.Kk=function(){switch(this.Ca.val()){case "1":this.Hj.show();this.Ij.show();this.Jj.show();this.Kj.show();break;default:this.Hj.hide(),this.Ij.hide(),this.Jj.hide(),this.Kj.hide()}return y()};E(D.a(),Xl);function Yl(){U.call(this);this.zc="[name\x3dextra\\[\\'type\\'\\]]";this.PT="[name\x3dextra\\[\\'type_helper\\'\\]]";this.Ca=jQuery();this.Xr=jQuery();return this}m(Yl,U);h(Yl);Yl.prototype.getName=q("mezhregiongaz-payment-form");
Yl.prototype.init=function(a){Yl.c.init.call(this,a);this.Ca=O(this,this.zc);this.Xr=O(this,this.PT);a=(a=this.Xr.data("params"))&&a.regions?a.regions:[];for(var b=this.Ca.val(),c=0;c<a.length;c++)if(a[c].type==b){this.Xr.val(a[c].id);this.Xr.refresh();a[c].mask?this.ba.mask({mask:a[c].mask}):this.ba.mask("destroy");this.ba.refresh();break}};E(D.a(),Yl);function Zl(){U.call(this);this.rk=null;this.Qo=[];this.Po=[];this.zc="[name\x3dextra\\[\\'type\\'\\]]";this.Uk="[name\x3dextra\\[\\'card\\'\\]]";this.Ti="[name\x3dextra\\[\\'rem-id\\'\\]]";this.Si="[name\x3dextra\\[\\'rec-id\\'\\]]";this.vq="[name\x3dextra\\[\\'to_name_f\\'\\]]";this.uq="[name\x3dextra\\[\\'to_name\\'\\]]";this.wq="[name\x3dextra\\[\\'to_name_p\\'\\]]";this.Yk="[name\x3dextra\\[\\'rec_country\\'\\]]";this.Lt=this.Mt="";this.Vm=".newRecipient";this.Xm=".newRecipientTitle";this.Wm=
".newRecipientButton";this.$k=".cont_card";this.VU=".cont_result";this.LG=this.PG="";this.Ca=v();this.Ba=v();this.Gd=v();this.na=v();this.uf=v();this.tf=v();this.vf=v();this.Jb=v();this.Qe=v();this.Pe=v();this.Ea=v();this.dc=v();this.Hd=v();this.Kd=v();this.te=v();this.xf=v();this.se=v();this.ld=N(this,"refresh",this.vd);this.oj=N(this,"type-change",this.Kk);this.Xh=N(this,"card-change",this.Em);this.$h=N(this,"recipient-change",this.Dh);this.Al=N(this,"recipient-create",this.Ck);this.jd="";I(this.ja,
this.getName(),this.ld.getName());return this}m(Zl,U);h(Zl);d=Zl.prototype;d.getName=q("money-transfer-payment-form");d.DE=function(a){return["[name\x3dextra\\[\\'"+a+"\\'\\]]","[name\x3d"+a+"]"]};d.EE=function(a){return[".cont_"+a]};
d.init=function(a){Zl.c.init.call(this,a);this.Mt=bb(this.Qo,this.DE).join(",");this.Lt=bb(this.Po,this.DE).join(",");this.PG=bb(this.Qo,this.EE).join(",");this.LG=bb(this.Po,this.EE).join(",");this.Ca=O(this,this.zc);this.Ba=O(this,this.Uk);this.Gd=O(this,this.Ti);this.na=O(this,this.Si);this.uf=O(this,this.vq);this.tf=O(this,this.uq);this.vf=O(this,this.wq);this.Jb=O(this,this.Yk);this.Qe=O(this,this.Mt);this.Pe=O(this,this.Lt);this.Ea=O(this,this.Vm);this.dc=O(this,this.Xm);this.Hd=O(this,this.Wm);
this.Kd=O(this,this.$k);this.te=O(this,this.VU);this.xf=O(this,this.PG);this.se=O(this,this.LG);this.Kd.size()&&(this.Ea.size()||(this.Ea=$("\x3cdiv\x3e").addClass("newRecipient"),this.xf.last().after(this.Ea),this.dc=$("\x3cdiv\x3e").addClass("newRecipientTitle").text(u.providers.leader.newrecipient),this.Ea.append(this.dc),this.Ea.append(this.se)),this.te.size()||(this.te=$("\x3cdiv\x3e").addClass("cont_result"),this.xf.last().after(this.te)),this.na.size()||(this.na=$("\x3cinput\x3e").attr("name",
"extra['rec-id']").attr("type","hidden"),this.te.append(this.na)));this.Ca.rules("add",{required:!0});this.na.rules("add",{required:!0});this.Ca.bindspace(this,"change",function(){this.h(this.oj)});this.Ba.bindspace(this,"input paste keyup change",function(){this.h(this.Xh)});this.na.bindspace(this,"change",function(){this.h(this.$h)});this.L.refresh();this.pe=this.pe.add(this.Ea)};
d.vd=function(a){var b=this.Ca.filter(":checked").val();this.Ea.removeClass("active");this.dc.hide();this.Hd.show();this.Kd.hide();this.te.hide();this.xf.hide();this.se.hide();this.L.refresh();"card"==b?(this.Kd.show(),this.te.show(),this.L.refresh(),a.reset?(this.jd="",this.te.hide(),this.Ba.val(""),this.na.val(""),this.Qe.val(""),this.Pe.val(""),this.L.refresh()):this.h(this.Xh,{reset:!1})):"fio"==b&&(this.xf.show(),this.se.show(),this.L.refresh(),a.reset&&(this.jd="",this.te.hide(),this.Ba.val(""),
this.na.val(""),this.Qe.val(""),this.Pe.val(""),this.L.refresh()))};d.Kk=function(){return this.h(this.ld,{reset:!0})};
d.Em=function(a){var b=this.l.validate().check(this.Ba,!0),c=this.Ba.val();this.Ba.data("ui-mask")&&(b=b&&this.Ba.mask("valid"),c=this.Ba.mask("value"));clearTimeout(this.ql);if(!b||this.jd==c)return y();this.ql=setTimeout(z(function(){this.jd=c;this.L.refresh();this.te.show().html("\x3cbr /\x3e\x3cbr /\x3e");this.h(this.ag,{link:this.rk,data:{number:c,recipientCheck:a.reset||Md(a.reset)?!1:!0},k:this.te,sa:"html"},z(function(){return this.h(this.yl,{reset:!1},z(function(){this.L.refresh();a.reset||
Md(a.reset)||this.na.filter(":checked").size()||this.h(this.Al,{reset:!1})},this))},this))},this),a.timeout?a.timeout:500);return y()};
d.Dh=function(){this.Ea.removeClass("active");this.dc.hide();this.Hd.show();this.se.hide();var a=this.na.filter(":checked").data("params")||{},b=this.Gd.data("params")||{},c=v();ub(a.extraFields,function(a,b){var g=this.Pe.filter(function(a,c){var e=$(c).attr("name");return b==e||"extra['"+b+"']"==e});g.val()!=a&&(c=c.add(g),g.val(a))},this);this.tf.val()!=a.firstName&&(c=c.add(this.tf),this.tf.val(a.firstName));this.uf.val()!=a.lastName&&(c=c.add(this.uf),this.uf.val(a.lastName));this.vf.val()!=
a.secondName&&(c=c.add(this.vf),this.vf.val(a.secondName));this.Jb.val()!=a.country&&(c=c.add(this.Jb),this.Jb.val(a.country));ub(b.extraFields,function(a,b){var g=this.Qe.filter(function(a,c){var e=$(c).attr("name");return b==e||"extra['"+b+"']"==e});g.val()!=a&&(c=c.add(g),g.val(a))},this);this.L.refresh();c.change()};
d.Ck=function(a){var b=this.Gd.data("params")||{};ub(b.extraFields,function(a,b){this.Qe.filter(function(a,c){var l=$(c).attr("name");return b==l||"extra['"+b+"']"==l}).val(a).refresh()},this);this.Ea.addClass("active");this.dc.show();this.Hd.hide();this.na.rules("remove");this.na.selected(!1);this.se.show();(a.reset||Md(a.reset))&&this.Pe.val("");this.L.refresh()};E(D.a(),Zl);function $l(){U.call(this);this.oT="[name\x3dextra\\[\\'pay_type\\'\\]]";this.FS="[name\x3dextra\\[\\'counter\\'\\]]";this.Ft="[name\x3dextra\\[\\'account1\\'\\]]";this.OF="[name\x3dextra\\[\\'account2\\'\\]]";this.NU=".cont_pay_type";this.BU=".cont_counter";this.Lz=".cont_account1";this.Mz=".cont_account2";this.Pr=jQuery();this.Kl=jQuery();this.ei=jQuery();this.fi=jQuery();jQuery();this.ro=jQuery();this.ng=jQuery();this.og=jQuery();this.jJ=N(this,"pay-type-change",this.JP);this.xI=N(this,"counter-change",
this.tO);return this}m($l,U);h($l);$l.prototype.getName=q("mosoblgaz-payment-form");
$l.prototype.init=function(a){$l.c.init.call(this,a);this.Pr=O(this,this.oT);this.Kl=O(this,this.FS);this.ei=O(this,this.Ft);this.fi=O(this,this.Ft);O(this,this.NU);this.ro=O(this,this.BU);this.ng=O(this,this.Lz);this.og=O(this,this.Mz);this.Pr.bindspace(this,"change",function(){this.h(this.jJ)});this.Kl.bindspace(this,"change",function(){this.h(this.xI)});switch(this.Pr.val()){case "1":this.ro.show();break;case "2":this.ro.hide()}switch(this.Kl.val()){case "1":this.ng.show();this.og.show();break;
case "0":this.ng.hide(),this.og.hide()}};$l.prototype.JP=function(){switch(this.Pr.val()){case "1":this.ro.show();this.Kl.val("1").disabled(!1).change();break;case "2":this.ro.hide(),this.Kl.val("0").disabled(!0).change()}return y()};$l.prototype.tO=function(){switch(this.Kl.val()){case "1":this.ng.show();this.og.show();this.ei.val("").disabled(!1).change();this.fi.val("").disabled(!1).change();break;case "0":this.ng.hide(),this.og.hide(),this.ei.val("").disabled(!0).change(),this.fi.val("").disabled(!0).change()}return y()};
E(D.a(),$l);function am(){U.call(this);this.r=bm;this.zp=cm;this.yE=dm;this.BG=".reverseAmountInfo";this.yF=".amountCurrency";this.CG=".reverseAmountCurrency";this.pG="[name\x3dreverseAmount]";this.rG="[name\x3dreverseAmountInteger]";this.qG="[name\x3dreverseAmountFraction]";this.LF="#transferStatus .left";this.KF="#transferStatus .right";this.cG="[name\x3dphone]";this.RC=jQuery();this.gv=jQuery();this.Uv=jQuery();this.fo=jQuery();this.io=jQuery();this.ho=jQuery();this.iC=jQuery();this.hC=jQuery();this.xC=jQuery();
this.qn=this.rn=null;this.JB=N(this,"source-change",this.KQ);I(this.ja,this.getName(),this.JB.getName(),1);return this}m(am,U);h(am);d=am.prototype;d.getName=q("person-account-transfer-form");
d.init=function(a){am.c.init.call(this,a);this.RC=O(this,this.e.BG||this.BG);this.gv=O(this,this.e.yF||this.yF);this.Uv=O(this,this.e.CG||this.CG);this.fo=O(this,this.e.pG||this.pG);this.io=O(this,this.e.rG||this.rG);this.ho=O(this,this.e.qG||this.qG);this.iC=O(this,this.e.LF||this.LF);this.hC=O(this,this.e.KF||this.KF);this.xC=O(this,this.e.cG||this.cG);this.ib.bindspace(this,"change",function(){this.JB.h();this.Za=!1;this.Cc.h()});this.ka.bindspace(this,"change",function(){this.Za=!1;this.Cc.h()});
this.Ib.bindspace(this,"input paste keyup change",function(){this.e.reverse=!1;this.Cc.h({timeout:500})});this.Hb.bindspace(this,"input paste keyup change",function(){this.e.reverse=!1;this.Cc.h({timeout:500})});this.io.bindspace(this,"input paste keyup change",function(){this.e.reverse=!0;this.Cc.h({timeout:500})});this.ho.bindspace(this,"input paste keyup change",function(){this.e.reverse=!0;this.Cc.h({timeout:500})});if((a=this.ib.data("modes"))&&Fd(a))for(var b=0;b<a.length;b++){var c=a[b];if(c&&
Fd(c.sources))for(var e=0;e<c.sources.length;e++){var f=c.sources[e];f&&f.id&&f.replenishProvider&&this.J[f.id]&&(this.J[f.id].df=f.replenishProvider)}}a=this.ib.data("disabled")||{};yd(a,z(function(a,b){yd(b,z(function(b,c){this.J[c]&&this.J[c].disabled.push(a)},this))},this))};
d.KQ=function(){var a=this.ib.val(),b=this.ka.find("option").disabled(!1),c=b.filter(":selected").selected(!1);b.filter(z(function(b,c){var g=$(c).val();return g==a||this.J[g]&&!this.J[g].df||-1!=vd(g,this.J[a].disabled)},this)).disabled(!0);c.is(":disabled")&&(c=b.not(":disabled").first());c.selected(!0);this.ka.refresh()};
d.oy=function(a){clearTimeout(this.jn);var b=this.e.reverse?this.io.val()||0:this.Ib.val()||0,c=this.e.reverse?this.ho.val()||0:this.Hb.val()||0,e=this.ib.val()||null,f=this.ka.val()||null;if((this.e.reverse?this.rn:this.Bc)==b&&(this.e.reverse?this.qn:this.Ac)==c&&this.lc==e&&this.tb==f&&this.Za)return y();this.nf.empty().hide();this.pg.empty().hide();this.gv.empty().hide();this.Uv.empty().hide();this.Dj.children().hide();this.Cj.children().hide();if(!this.J[e]||!this.J[f])return y();this.iC.removeClass(this.lc?
this.J[this.lc].rs:"").addClass(this.J[e].rs);this.hC.removeClass(this.tb?this.J[this.tb].rs:"").addClass(this.J[f].rs);this.gv.html(this.J[f].sg).show();this.J[e].Zg&&this.nf.html(this.J[e].Zg).show();this.J[e].nl&&this.pg.html(this.J[e].nl).show();this.J[e].sg&&this.Uv.html(this.J[e].sg).show();this.Dj.children("."+e).show();this.Cj.children("."+e).show();this.le.hide();this.oe.empty();this.ie.hide();this.je.empty();this.me.hide();this.ne.empty();if(0==b&&0==c)return this.ma.val("0"),this.fo.val("0"),
this.Za&&this.ma.valid(),this.Za=!0,this.e.reverse?(this.rn=b,this.qn=c):(this.Bc=b,this.Ac=c),this.lc=e,this.tb=f,y();var g=w();this.jn=setTimeout(z(function(){this.e.reverse?(this.rn=b,this.qn=c):(this.Bc=b,this.Ac=c);this.lc=e;this.tb=f;this.ma.val("0");this.fo.val("0");this.h(this.Wh,{link:this.vp,data:this.e.reverse?{provider:this.J[this.tb].df,integer:this.rn,fraction:this.qn,source:this.lc,currency:this.J[this.lc].sg,providerCurrency:this.J[this.tb].sg}:{provider:this.J[this.tb].df,integer:this.Bc,
fraction:this.Ac,source:this.lc,currency:this.J[this.tb].sg},k:this.e.reverse?this.RC:this.Oc,t:this.Cu,da:this.Bu},g.resolve)},this),a.timeout?a.timeout:1);return g.promise()};
d.Bh=function(a){this.rn=a.response.data.providerAmount.integer;this.qn=a.response.data.providerAmount.formattedFraction;this.io.val(this.rn);this.ho.val(this.qn);this.fo.val(a.response.data.providerAmount.doubleValue);this.Bc=a.response.data.amount.integer;this.Ac=a.response.data.amount.formattedFraction;this.Ib.val(this.Bc);this.Hb.val(this.Ac);this.ma.val(a.response.data.fullAmount.doubleValue);a.response.data.rate.from.currencyCode!=a.response.data.rate.to.currencyCode&&(this.le.show(),this.oe.html(a.response.data.rateMessage),
a.response.data.additionalRateMessage&&(this.ie.show(),this.je.html(a.response.data.additionalRateMessage)),a.response.data.rateAboutMessage&&(this.me.show(),this.ne.html(a.response.data.additionalRateMessage)));a.response.data.commissionMessage&&this.nf.html(v("\x3cp\x3e").html(a.response.data.commissionMessage)).show();this.Za&&this.ma.keyup().valid();this.Za=!0};
d.nt=function(){this.e.reverse?(this.ma.val("0"),this.Ib.val("0"),this.Hb.val("00")):(this.fo.val("0"),this.io.val("0"),this.ho.val("00"));this.Za&&this.ma.keyup().valid();this.Za=!0};
d.uc=function(a){this.data.replace("currency",this.J[this.tb].sg);this.data.replace("destination",this.tb);return this.e.provider.id!=this.J[this.tb].df?(this.r=tj,this.data.empty().set(this.l.formToArray()),this.data.replace("provider",this.J[this.tb].df),lb(["PHONE","MEGAFON"],this.J[this.tb].kind)?this.data.replace("extra['account']",this.xC.val()):this.data.remove("extra['account']"),this.ha({query:{provider:this.J[this.tb].df}})):am.c.uc.call(this,a)};E(D.a(),am);
var bm=new G(u.person.account.transfer.main),cm=new G(u.person.account.transfer.state),dm=new G(u.person.account.transfer.protectedstate);function em(){lj.call(this);this.zp=cm;return this}m(em,lj);h(em);em.prototype.getName=q("person-account-transfer-confirm");em.prototype.init=function(a){em.c.init.call(this,a);$e(Le.a(),"/funnel/cash_request/confirmation/"+this.e.provider.id)};E(D.a(),em);function fm(){U.call(this);this.Um="[name\x3dextra\\[\\'country\\'\\]]";this.Dz="[name\x3dextra\\[\\'rec_amount\\'\\]]";this.tT="[name\x3dextra\\[\\'rec_currency\\'\\]]";this.Cz="[name\x3dextra\\[\\'rec_course\\'\\]]";this.Sb=jQuery();this.Wn=jQuery();this.zC=jQuery();this.Vn=jQuery();this.Fu=N(this,"country-change",this.uy);this.dr=N(this,"currency-change",this.vy);I(this.ja,this.getName(),this.dr.getName());return this}m(fm,U);h(fm);d=fm.prototype;d.getName=q("privatmoney-payment-form");
d.init=function(a){fm.c.init.call(this,a);this.Sb=O(this,this.Um);this.Wn=O(this,this.Dz);this.zC=O(this,this.tT);this.Vn=O(this,this.Cz);this.Sb.bindspace(this,"change",function(){this.h(this.Fu)}).change();this.ka.bindspace(this,"change",function(){this.Za=!1;this.h(this.dr);this.h(this.Cc)})};d.Bh=function(a){fm.c.Bh.call(this,a);this.Wn.val(a.response.data.amount.integer+"."+a.response.data.amount.formattedFraction);this.Vn.val(a.response.data.rate.value)};
d.uy=function(a){var b=this.Sb.val();this.Gj.hide();if(!b)return y();this.Gj.show();a=this.Sb.data("params")||{};var c=a.countryCurrencies||[];a=this.ka.val();for(var e=this.ka.children().disabled(!0),f=e.filter(":selected").selected(!1),g=0;g<c.length;g++)c[g].country==b&&e.filter(function(a,b){return $(b).val()==c[g].currency.currencyCode}).disabled(!1);f.is(":disabled")&&(f=e.not(":disabled").first());f.selected(!0);this.ka.refresh();a!=this.ka.val()&&this.ka.change();return y()};
d.vy=function(a){var b=this.ka.val();a=this.Sb.data("params")||{};a=a.providerCurrencies||[];for(var c=0;c<a.length;c++)a[c].currency&&a[c].currency.currencyCode==b&&this.zC.val(a[c].extCurrencyId);return y()};E(D.a(),fm);function gm(){U.call(this);this.Fz="[name\x3dextra\\[\\'district\\'\\]]";this.zc="[name\x3dextra\\[\\'district_helper\\'\\]]";this.GT="[name\x3dextra\\[\\'real_prv_id\\'\\]]";this.fh=v();this.Ca=v();this.Wr=v();return this}m(gm,U);h(gm);gm.prototype.getName=q("rostelecom-payment-form");
gm.prototype.init=function(a){gm.c.init.call(this,a);this.fh=O(this,this.Fz);this.Ca=O(this,this.zc);this.Wr=O(this,this.GT);var b=(a=this.fh.data("params"))&&Fd(a.regions)?a.regions:[],c=(a=this.Wr.data("params"))&&Fd(a.services)?a.services:[];a=this.fh.val();for(var e=0;e<b.length;e++)if(b[e].id==a){var f=this.Ca.children().disabled(!0).hide(),g=f.filter(":selected").selected(!1);f.filter(function(a,c){return-1!==vd(v(c).val(),b[e].serviceTypes)}).disabled(!1).show();if(g.is(":disabled")||!g.size())g=
f.not(":disabled").first();g.selected(!0);this.Ca.refresh();break}for(var f=this.Ca.val(),l=0;l<c.length;l++)if(c[l].region==a&&c[l].type==f){f=this.Wr.children().disabled(!0).hide();g=f.filter(":selected").selected(!1);f.filter(function(a,b){return-1!==vd(v(b).val(),c[l].providers)}).disabled(!1).show();if(g.is(":disabled")||!g.size())g=f.not(":disabled").first();g.selected(!0);this.Wr.refresh();break}};E(D.a(),gm);function hm(){U.call(this);return this}m(hm,U);h(hm);hm.prototype.getName=q("transfer-payment-form");hm.prototype.Ii=function(a){var b=this.ba.val().replace(/\D/g,""),c=Dd(v("body").attr("class"));b==im.a().state.person&&"theme__megafon"==c&&F.a().open(bm.getPath()+"?"+Bd({paymentModeType:"PHONE"}));return hm.c.Ii.call(this,a)};E(D.a(),hm);function jm(){U.call(this);this.bG="[name\x3dextra\\[\\'oper_type\\'\\]]";this.JG=".cont_oper_type";this.Or=jQuery();this.aD=jQuery();this.gJ=N(this,"oper-type-change",this.FP);return this}m(jm,U);h(jm);jm.prototype.getName=q("vpb-payment-form");jm.prototype.init=function(a){jm.c.init.call(this,a);this.Or=O(this,this.e.bG||this.bG);this.aD=O(this,this.e.JG||this.JG);this.Or.bindspace(this,"input paste keyup change",function(){this.h(this.gJ)});this.Or.change()};
jm.prototype.FP=function(a){a=(a=this.aD.data("params"))&&a.operationProviderMap?a.operationProviderMap:{};var b=this.Or.filter(":checked").val();if(!a[b]||this.e.provider.id==a[b])return y();this.data.empty().set(this.l.formToArray()).replace({provider:a[b]});return this.ha({query:{provider:a[b]}})};E(D.a(),jm);function km(){U.call(this);this.Ft="[name\x3dextra\\[\\'ev_account1\\'\\]]";this.OF="[name\x3dextra\\[\\'ev_account2\\'\\]]";this.uS="[name\x3dextra\\[\\'ev_account3\\'\\]]";this.vS="[name\x3dextra\\[\\'ev_account4\\'\\]]";this.wS="[name\x3dextra\\[\\'ev_account5\\'\\]]";this.xS="[name\x3dextra\\[\\'ev_account6\\'\\]]";this.yS="[name\x3dextra\\[\\'ev_account7\\'\\]]";this.zS="[name\x3dextra\\[\\'ev_account8\\'\\]]";this.AS="[name\x3dextra\\[\\'ev_account9\\'\\]]";this.IS="[name\x3dextra\\[\\'disp2\\'\\]]";
this.JS="[name\x3dextra\\[\\'disp3\\'\\]]";this.KS="[name\x3dextra\\[\\'disp4\\'\\]]";this.LS="[name\x3dextra\\[\\'disp5\\'\\]]";this.MS="[name\x3dextra\\[\\'disp6\\'\\]]";this.NS="[name\x3dextra\\[\\'disp7\\'\\]]";this.OS="[name\x3dextra\\[\\'disp8\\'\\]]";this.PS="[name\x3dextra\\[\\'disp9\\'\\]]";this.Lz=".cont_ev_account1";this.Mz=".cont_ev_account2";this.rU=".cont_ev_account3";this.sU=".cont_ev_account4";this.tU=".cont_ev_account5";this.uU=".cont_ev_account6";this.vU=".cont_ev_account7";this.wU=
".cont_ev_account8";this.xU=".cont_ev_account9";this.ei=v();this.fi=v();this.xr=v();this.yr=v();this.zr=v();this.Ar=v();this.Br=v();this.Cr=v();this.Dr=v();this.sv=v();this.tv=v();this.uv=v();this.vv=v();this.wv=v();this.xv=v();this.yv=v();this.zv=v();this.rv=v();this.ng=v();this.og=v();this.cs=v();this.ds=v();this.es=v();this.fs=v();this.gs=v();this.hs=v();this.js=v();return this}m(km,U);h(km);d=km.prototype;d.getName=q("zhilcomfort-payment-form");
d.init=function(a){km.c.init.call(this,a);this.ei=O(this,this.Ft);this.fi=O(this,this.OF);this.xr=O(this,this.uS);this.yr=O(this,this.vS);this.zr=O(this,this.wS);this.Ar=O(this,this.xS);this.Br=O(this,this.yS);this.Cr=O(this,this.zS);this.Dr=O(this,this.AS);this.sv=O(this,this.IS);this.tv=O(this,this.JS);this.uv=O(this,this.KS);this.vv=O(this,this.LS);this.wv=O(this,this.MS);this.xv=O(this,this.NS);this.yv=O(this,this.OS);this.zv=O(this,this.PS);this.rv=O(this,this.BW);this.ng=O(this,this.Lz);this.og=
O(this,this.Mz);this.cs=O(this,this.rU);this.ds=O(this,this.sU);this.es=O(this,this.tU);this.fs=O(this,this.uU);this.gs=O(this,this.vU);this.hs=O(this,this.wU);this.js=O(this,this.xU)};d.ot=function(a){this.sv.val("");this.tv.val("");this.uv.val("");this.vv.val("");this.wv.val("");this.xv.val("");this.yv.val("");this.zv.val("");this.rv.val("");return km.c.ot.call(this,a)};
d.Ki=function(a){this.ei.disabled(!0);this.fi.disabled(!0);this.xr.disabled(!0);this.yr.disabled(!0);this.zr.disabled(!0);this.Ar.disabled(!0);this.Br.disabled(!0);this.Cr.disabled(!0);this.Dr.disabled(!0);this.ng.hide();this.og.hide();this.cs.hide();this.ds.hide();this.es.hide();this.fs.hide();this.gs.hide();this.hs.hide();this.js.hide();a=km.c.Ki.call(this,a);this.sv.val()&&(this.ei.disabled(!1),this.ng.show());this.tv.val()&&(this.fi.disabled(!1),this.og.show());this.uv.val()&&(this.xr.disabled(!1),
this.cs.show());this.vv.val()&&(this.yr.disabled(!1),this.ds.show());this.wv.val()&&(this.zr.disabled(!1),this.es.show());this.xv.val()&&(this.Ar.disabled(!1),this.fs.show());this.yv.val()&&(this.Br.disabled(!1),this.gs.show());this.zv.val()&&(this.Cr.disabled(!1),this.hs.show());this.rv.val()&&(this.Dr.disabled(!1),this.js.show());this.L.refresh();return a};
d.Fy=function(a){this.ei.disabled(!0);this.fi.disabled(!0);this.xr.disabled(!0);this.yr.disabled(!0);this.zr.disabled(!0);this.Ar.disabled(!0);this.Br.disabled(!0);this.Cr.disabled(!0);this.Dr.disabled(!0);this.ng.hide();this.og.hide();this.cs.hide();this.ds.hide();this.es.hide();this.fs.hide();this.gs.hide();this.hs.hide();this.js.hide();this.L.refresh();return km.c.Fy.call(this,a)};E(D.a(),km);function lm(){U.call(this);this.bT="[name\x3dextra\\[\\'extra_poslat\\'\\]]";this.YS="[name\x3dextra\\[\\'_extra_cnt1\\'\\]]";this.ZS="[name\x3dextra\\[\\'_extra_cnt2\\'\\]]";this.$S="[name\x3dextra\\[\\'_extra_cnt3\\'\\]]";this.aT="[name\x3dextra\\[\\'_extra_cnt4\\'\\]]";this.Nz=".cont__extra_cnt1";this.Oz=".cont__extra_cnt2";this.Pz=".cont__extra_cnt3";this.Qz=".cont__extra_cnt4";this.Av=jQuery();this.Gr=jQuery();this.Hr=jQuery();this.Ir=jQuery();this.Jr=jQuery();this.Hj=jQuery();this.Ij=jQuery();
this.Jj=jQuery();this.Kj=jQuery();this.CI=N(this,"extra-poslat-change",this.JO);return this}m(lm,U);h(lm);lm.prototype.getName=q("zhkh-noginsk-payment-form");lm.prototype.init=function(a){lm.c.init.call(this,a);this.Av=O(this,this.bT);this.Gr=O(this,this.YS);this.Hr=O(this,this.ZS);this.Ir=O(this,this.$S);this.Jr=O(this,this.aT);this.Hj=O(this,this.Nz);this.Ij=O(this,this.Oz);this.Jj=O(this,this.Pz);this.Kj=O(this,this.Qz);this.Av.bindspace(this,"input paste keyup change",function(){this.h(this.CI)}).change()};
lm.prototype.JO=function(){this.Gr.val("");this.Hr.val("");this.Ir.val("");this.Jr.val("");switch(this.Av.val()){case "1":this.Hj.show();this.Ij.show();this.Jj.show();this.Kj.show();this.Gr.disabled(!1);this.Hr.disabled(!1);this.Ir.disabled(!1);this.Jr.disabled(!1);break;default:this.Hj.hide(),this.Ij.hide(),this.Jj.hide(),this.Kj.hide(),this.Gr.disabled(!0),this.Hr.disabled(!0),this.Ir.disabled(!0),this.Jr.disabled(!0)}return y()};E(D.a(),lm);function mm(){J.call(this);return this}m(mm,J);h(mm);mm.prototype.getName=q("person-account-create-failure");E(D.a(),mm);function nm(){P.call(this);this.wp=new K(u.person.account.create.create);this.ij=N(this,"create",this.Pf);return this}m(nm,P);h(nm);nm.prototype.getName=q("person-account-create-form");nm.prototype.Pf=function(){this.pa.empty().hide();if(!this.l.valid())return y();om.a().getContainer().remove();mm.a().getContainer().remove();return this.F({link:this.wp,data:this.l.formToArray()})};E(D.a(),nm);new G(u.person.account.create.main);function om(){J.call(this);Mg(this.ja,Ug);return this}m(om,J);h(om);om.prototype.getName=q("person-account-create-success");E(D.a(),om);function pm(){Q.call(this);this.r=qm;this.Rx=new K(u.person.account.identification.identification);this.cN=rm;this.bN=tm;this.cb="[data-container-name\x3dconfirm]";this.Ui="[data-container-name\x3dactions]";this.Wk="[name\x3dinn]";this.sq="[name\x3dsnils]";this.rq="[name\x3dpassport]";this.pq="[name\x3dbirthDateString]";this.qq="[name\x3doms]";this.R=v();this.od=v();this.qf=v();this.ji=v();this.ii=v();this.gi=v();v();N(this,"identification",this.Kp);this.fr=N(this,"identification-success",this.By);
this.vB=N(this,"identification-failure",this.OO);this.GI=N(this,"identification-removed",this.PO);this.FI=N(this,"identification-confirmation",this.NO);this.AD=L(this,"identification-confirmation");I(this.AD,"confirmation-form","main");return this}m(pm,Q);h(pm);d=pm.prototype;d.getName=q("person-account-identification-confirm");
d.init=function(a){pm.c.init.call(this,a);this.R=O(this,this.cb);this.od=O(this,this.Ui);this.qf=O(this,this.Wk);this.ji=O(this,this.sq);this.ii=O(this,this.rq);this.gi=O(this,this.pq);O(this,this.qq);this.qf.rules("add",{inn:!0});this.ji.rules("add",{snils:!0});this.ii.rules("add",{passport:!0});this.gi.rules("add",{agerange:[18,90]});this.R.size()||(this.R=this.k)};
d.Kp=function(){this.pa.empty().hide();if(this.l.size()&&!this.l.valid())return y();this.data.empty().set(this.l.formToArray());return this.G({link:this.Rx,data:this.data,t:this.fr,da:this.vB,bc:this.FI})};d.By=function(){return this.F({link:this.cN})};d.OO=function(a){this.L.disabled(!1).refresh();this.od.show();this.R.empty().hide();return this.Na(a)};d.PO=function(){return this.F({link:this.bN})};
d.NO=function(a){this.L.disabled(!0).refresh();this.od.hide();this.R.empty().show();return this.trigger(this.AD,{k:this.R,sa:"html",data:{identifier:a.response.identifier,type:"ACCOUNT_IDENTIFICATION"},success:function(a){return pm.a().fr.h(a)},Nd:{"error.code.1416.label":function(a){return pm.a().vB.h(a)},"error.code.1417.label":function(a){return pm.a().GI.h(a)}},Pc:z(function(){for(var a=this.data.toArray(),c=0;c<a.length;c++)a[c].name="data['"+a[c].name+"']";return a},this),clear:!1})};
E(D.a(),pm);var qm=new G(u.person.account.identification.confirm),rm=new G(u.person.account.identification.success),tm=new G(u.person.account.identification.removed);function um(){Q.call(this);this.Ub="[data-container-name\x3ditem]";this.K=v();this.Rb=v();N(this,"item-delete",this.YO);this.NI=N(this,"item-delete-confirm",this.ZO);this.OI=N(this,"item-delete-success",this.$O);this.r=vm;this.OM=new K(u.person.account.identification["delete"]);return this}m(um,Q);h(um);d=um.prototype;d.getName=q("person-account-identification-list");d.init=function(a){um.c.init.call(this,a);this.K=O(this,this.Ub)};
d.YO=function(a){this.Rb=this.K.has(a.target);return this.qb({message:u.person.account.identification["delete"].confirm,confirm:z(function(){return this.h(this.NI,a)},this)})};d.ZO=function(a){return this.G({data:a.data,link:this.OM,request:this.Rb,t:this.OI})};d.$O=function(){this.Rb.remove();this.init(this.e);this.K.size()||(window.location.href=ng.getPath())};E(D.a(),um);var vm=new G(u.person.account.identification.list);function wm(){Q.call(this);return this}m(wm,Q);h(wm);wm.prototype.getName=q("person-account-identification-success");E(D.a(),wm);function xm(){J.call(this);this.Ys=window["qiwi-main-lib"].identification;this.r=new K(u.person.account.information.main);this.Fb=N(this,"load",this.$b);I(this.ja,this.getName(),this.Fb.getName());return this}m(xm,J);h(xm);xm.prototype.getName=q("person-account-information");xm.prototype.$b=function(a){if(!this.e.id)return this.h(this.V);this.Ys.render(this.k.get(0),a.id,a.country);return y()};E(D.a(),xm);function ym(){P.call(this);this.Wk="[name\x3dinn]";this.sq="[name\x3dsnils]";this.rq="[name\x3dpassport]";this.pq="[name\x3dbirthDateString]";this.qq="[name\x3doms]";this.qf=v();this.ji=v();this.ii=v();this.gi=v();v();this.r=new K(u.person.account.information.old.main);this.yp=new K(u.person.account.information.old.save);this.wa=new K(u.person.account.information.old.success);N(this,"save",this.Qp);this.Cn=N(this,"save-success",this.Rp);this.Fb=N(this,"load",this.$b);I(this.ja,this.getName(),this.Fb.getName());
return this}m(ym,P);h(ym);d=ym.prototype;d.getName=q("person-account-information-old");d.init=function(a){ym.c.init.call(this,a);this.qf=O(this,this.Wk);this.ji=O(this,this.sq);this.ii=O(this,this.rq);this.gi=O(this,this.pq);O(this,this.qq);this.qf.rules("add",{inn:!0});this.ji.rules("add",{snils:!0});this.ii.rules("add",{passport:!0});this.gi.rules("add",{agerange:[18,90]})};
d.$b=function(){if(!this.k.children().size())return this.h(this.V);$e(Le.a(),"/funnel/cash_request/success/and_identification/"+this.e.provider);return y()};d.Qp=function(){return this.l.valid()?this.G({link:this.yp,data:this.l.formToArray(),t:this.Cn}):y()};d.Rp=function(a){a=a.response&&Id(a.response.data)?a.response.data:{};$e(Le.a(),"/funnel/cash_request/success/identification_ok/"+this.e.provider);return a.url?(window.location.href=a.url,y()):this.e.reload?(F.a().reload(),y()):this.F({link:this.wa})};
E(D.a(),ym);function zm(){this.constructor==zm&&Ud("Widget %s is not creatable",this.getName());J.call(this);this.Ub="[data-container-name\x3ditem]";this.UT="[data-container-name\x3ditem-more]";this.K=jQuery();this.GC=jQuery();this.zB=N(this,"more",this.Ey);return this}m(zm,J);h(zm);zm.prototype.init=function(a){zm.c.init.call(this,a);this.K=O(this,this.Ub);this.GC=O(this,this.UT)};zm.prototype.Ey=function(a){var b=this.K.has(a.target).toggleClass("active");this.GC.filter(function(a,e){return b.has(e).size()}).toggle()};function Am(){zm.call(this);this.Uc=new K(u.person.account.list.card.update);this.ed=new K(u.person.account.list.card.remove);this.Hz="[data-container-name\x3ditem-form]";this.Iz="[data-container-name\x3ditem-form-name]";this.Jz="[data-container-name\x3ditem-name]";this.Aj=v();this.lo=v();this.Bj=v();this.cc=v();this.$g=v();this.Me=v();this.de=N(this,"update",this.Wc);N(this,"update-submit",this.Yy);N(this,"update-cancel",this.Wy);this.nd=N(this,"update-success",this.Qf);N(this,"remove",this.wd);
this.be=N(this,"remove-success",this.Ce);this.oh=L(this,"update-success");this.qi=L(this,"remove-success");this.oh.addListener(function(){return Bm.a().V.h()});this.qi.addListener(function(){return Bm.a().V.h()});return this}m(Am,zm);h(Am);d=Am.prototype;d.getName=q("person-account-list-item-card");d.init=function(a){Am.c.init.call(this,a);this.Aj=O(this,this.Hz);this.lo=O(this,this.Iz);this.Bj=O(this,this.Jz);this.cc=v();this.$g=v();this.Me=v()};
d.Wc=function(a){a=this.K.has(a.target);this.Aj.hide();this.Bj.show();this.cc=a.find(this.Aj);this.Me=a.find(this.Bj);this.$g=this.cc.find(this.lo);this.cc.validate().resetForm(!0);this.cc.show();this.Me.hide();this.$g.focus();this.$g.val(Dd(this.Me.text()));return y()};d.Wy=function(){this.cc.validate().resetForm(!0);this.cc.hide();this.Me.show();return y()};d.Yy=function(){return this.cc.valid()?this.G({link:this.Uc,data:this.cc.formToArray(),t:this.nd}):y()};
d.Qf=function(a){return this.trigger(this.oh,a)};d.wd=function(a){return this.qb({message:u.person.account.list.card.remove.confirm,confirm:z(function(){this.G({link:this.ed,data:a.data,t:this.be})},this)})};d.Ce=function(a){return this.trigger(this.qi,a)};E(D.a(),Am);function Cm(){zm.call(this);return this}m(Cm,zm);h(Cm);Cm.prototype.getName=q("person-account-list-item-phone");E(D.a(),Cm);function Dm(){zm.call(this);this.Ux=new K(u.person.account.list.qiwi.primary);N(this,"primary",this.Jy);this.Ju=N(this,"primary-success",this.Ky);this.Vj=L(this,"primary-success");Mg(this.Vj,Ug);this.Vj.addListener(function(){return Bm.a().V.h()});return this}m(Dm,zm);h(Dm);Dm.prototype.getName=q("person-account-list-item-qiwi");Dm.prototype.Jy=function(a){return this.G({link:this.Ux,data:a.data,t:this.Ju})};Dm.prototype.Ky=function(){return this.trigger(this.Vj)};E(D.a(),Dm);function Em(){zm.call(this);this.ed=new K(u.person.account.list.webmoney.remove);N(this,"remove",this.wd);this.be=N(this,"remove-success",this.Ce);this.qi=L(this,"remove-success");this.qi.addListener(function(){return Bm.a().V.h()});return this}m(Em,zm);h(Em);Em.prototype.getName=q("person-account-list-item-webmoney");Em.prototype.wd=function(a){return this.qb({message:u.person.account.list.webmoney.remove.confirm,confirm:z(function(){this.G({link:this.ed,data:a.data,t:this.be})},this)})};
Em.prototype.Ce=function(a){return this.trigger(this.qi,a)};E(D.a(),Em);function Fm(){zm.call(this);this.Ux=new K(u.person.megafon.primary);N(this,"primary",this.Jy);this.Ju=N(this,"primary-success",this.Ky);this.Vj=L(this,"primary-success");Mg(this.Vj,Ug);this.Vj.addListener(function(){return Bm.a().V.h()});return this}m(Fm,zm);h(Fm);Fm.prototype.getName=q("person-account-list-item-megafon");Fm.prototype.Jy=function(a){return this.G({link:this.Ux,data:a.data,t:this.Ju})};Fm.prototype.Ky=function(){return this.trigger(this.Vj)};E(D.a(),Fm);function Bm(){Q.call(this);this.r=Gm;return this}m(Bm,Q);h(Bm);Bm.prototype.getName=q("person-account-list");Bm.prototype.init=function(a){Bm.c.init.call(this,a);this.e.card&&(this.r=Hm)};E(D.a(),Bm);var Gm=new G(u.person.account.list.main.main),Hm=new G(u.person.card.list.main);function Im(){oh.call(this);this.r=new K(u.person.account.menu);this.mc=pi;return this}m(Im,oh);h(Im);Im.prototype.getName=q("person-account-menu");E(D.a(),Im);function Jm(){P.call(this);this.yh=new K(u.person.beta.accept);N(this,"accept",this.Of);return this}m(Jm,P);h(Jm);Jm.prototype.getName=q("person-beta-form");Jm.prototype.Of=function(){this.pa.empty().hide();return this.l.valid()?this.F({link:this.yh,data:this.l.formToArray()}):y()};E(D.a(),Jm);new G(u.person.beta.main);function Km(){Q.call(this);this.Uc=new K(u.person.confirmation.change);this.gU="[data-container-name\x3doption]";this.jU="[data-container-name\x3doption-enabled]";this.iU="[data-container-name\x3doption-disabled]";this.hU="[data-container-name\x3doption-confirm]";this.kU="[data-container-name\x3doption-update]";this.MC=v();this.OC=v();this.NC=v();this.Sv=v();this.mo=v();this.vj=v();this.Hl=v();this.Gl=v();this.Ln=v();this.de=N(this,"update",this.Wc);this.nd=N(this,"update-success",this.Qf);this.Cl=
N(this,"update-failure",this.Xy);this.En=N(this,"update-confirmation",this.Zp);this.ri=L(this,"update-confirmation");I(this.ri,"confirmation-form","main");return this}m(Km,Q);h(Km);d=Km.prototype;d.getName=q("person-confirmation-form");d.init=function(a){Km.c.init.call(this,a);this.MC=O(this,this.gU);this.OC=O(this,this.jU);this.NC=O(this,this.iU);this.Sv=O(this,this.hU);this.mo=O(this,this.kU)};
d.Wc=function(a){this.mo.disabled(!0);this.vj.size()&&(this.data.get("value")?(this.Hl.hide(),this.Gl.show()):(this.Hl.show(),this.Gl.hide()));this.Ln.empty().hide();this.data.empty().set(a.data);this.vj=this.MC.ishas(a.target);this.Ln=this.Sv.filter(z(function(a,c){return this.vj.has(c).size()},this));this.Hl=this.OC.filter(z(function(a,c){return this.vj.has(c).size()},this)).hide();this.Gl=this.NC.filter(z(function(a,c){return this.vj.has(c).size()},this)).hide();return this.G({link:this.Uc,data:this.data,
k:this.vj,t:this.nd,da:this.Cl,bc:this.En})};d.Qf=function(){this.data.get("value")?(this.Hl.show(),this.Gl.hide()):(this.Hl.hide(),this.Gl.show());this.Ln.empty().hide();this.vj=v();this.Hl=v();this.Gl=v();this.Ln=v();this.mo.disabled(!1)};d.Xy=function(a){this.mo.disabled(!1);return this.Na(a)};d.Zp=function(a){this.mo.disabled(!1);this.Sv.empty().show();a.data.set("identifier",a.response.identifier);return this.trigger(this.ri,{k:this.Ln,sa:"html",data:a.data,success:function(a){return Km.a().nd.h(a)}})};
E(D.a(),Km);new G(u.person.confirmation.main);function Lm(){Q.call(this);this.r=Mm;this.Tc=new K(u.person.email.create.confirm.send);this.wa=Nm;this.Ri="[name\x3dcode]";this.zc="[name\x3dtype]";this.cb=".confirmationForm";this.Ui=".pageControls";this.Ne=v();this.R=v();this.od=v();this.lf=N(this,"send",this.Ic);this.nc=N(this,"send-success",this.xd);this.Dd=N(this,"send-failure",this.Tp);this.mj=N(this,"send-confirmation",this.Gk);this.Hf=L(this,"send-confirmation");I(this.Hf,"confirmation-form","main");return this}m(Lm,Q);h(Lm);d=Lm.prototype;
d.getName=q("person-email-create-confirm");d.init=function(a){Lm.c.init.call(this,a);this.Ne=O(this,this.Ri);this.Ca=O(this,this.zc);this.R=O(this,this.cb);this.R.size()||(this.R=this.k);this.Ne.val()&&this.lf.h()};d.Ic=function(){this.pa.empty().hide();if(this.l.size()&&!this.l.valid())return y();this.data.empty().set(this.l.formToArray());return this.G({link:this.Tc,data:this.data,t:this.nc,da:this.Dd,bc:this.mj})};d.xd=function(){return this.F({link:this.wa})};
d.Tp=function(a){this.L.disabled(!1).refresh();this.od.show();this.R.empty().hide();return this.Na(a)};
d.Gk=function(a){this.L.disabled(!0).refresh();this.od.hide();this.R.empty().show();return this.trigger(this.Hf,{k:this.R,sa:"html",data:{identifier:a.response.identifier,type:"EMAIL_CREATE"},success:function(a){return Lm.a().nc.h(a)},Nd:{"error.code.302.label":function(a){return Lm.a().Dd.h(a)},"error.code.890.label":function(a){return Lm.a().Dd.h(a)},"error.code.1027.label":function(a){return Lm.a().Dd.h(a)}},Pc:{"data['code']":this.Ne.val(),"data['type']":this.Ca.val()},clear:!1})};E(D.a(),Lm);
var Mm=new G(u.person.email.create.confirm.main),Nm=new G(u.person.email.create.confirm.success);function Om(){Q.call(this);this.r=Pm;this.Tc=new K(u.person.email.create.form.send);this.wa=Qm;this.lf=N(this,"send",this.Ic);this.nc=N(this,"send-success",this.xd);return this}m(Om,Q);h(Om);Om.prototype.getName=q("person-email-create-form");Om.prototype.Ic=function(){this.pa.empty().hide();if(this.l.size()&&!this.l.valid())return y();this.data.empty().set(this.l.formToArray());return this.G({link:this.Tc,data:this.data,t:this.nc})};Om.prototype.xd=function(){return this.F({link:this.wa})};
E(D.a(),Om);var Pm=new G(u.person.email.create.form.main),Qm=new G(u.person.email.create.form.success);function Rm(){Q.call(this);this.r=Sm;this.Tc=new K(u.person.email.remove.confirm.send);this.wa=Tm;this.Ri="[name\x3dcode]";this.zc="[name\x3dtype]";this.cb=".confirmationForm";this.Ui=".pageControls";this.Ne=v();this.R=v();this.od=v();this.lf=N(this,"send",this.Ic);this.nc=N(this,"send-success",this.xd);this.Dd=N(this,"send-failure",this.Tp);this.mj=N(this,"send-confirmation",this.Gk);this.Hf=L(this,"send-confirmation");I(this.Hf,"confirmation-form","main");return this}m(Rm,Q);h(Rm);d=Rm.prototype;
d.getName=q("person-email-remove-confirm");d.init=function(a){Rm.c.init.call(this,a);this.Ne=O(this,this.Ri);this.Ca=O(this,this.zc);this.R=O(this,this.cb);this.R.size()||(this.R=this.k);this.Ne.val()&&this.lf.h()};d.Ic=function(){this.pa.empty().hide();if(this.l.size()&&!this.l.valid())return y();this.data.empty().set(this.l.formToArray());return this.G({link:this.Tc,data:this.data,t:this.nc,da:this.Dd,bc:this.mj})};d.xd=function(){return this.F({link:this.wa})};
d.Tp=function(a){this.L.disabled(!1).refresh();this.od.show();this.R.empty().hide();return this.Na(a)};
d.Gk=function(a){this.L.disabled(!0).refresh();this.od.hide();this.R.empty().show();return this.trigger(this.Hf,{k:this.R,sa:"html",data:{identifier:a.response.identifier,type:"EMAIL_REMOVE"},success:function(a){return Rm.a().nc.h(a)},Nd:{"error.code.302.label":function(a){return Rm.a().Dd.h(a)},"error.code.890.label":function(a){return Rm.a().Dd.h(a)},"error.code.1027.label":function(a){return Rm.a().Dd.h(a)}},Pc:{"data['code']":this.Ne.val(),"data['type']":this.Ca.val()},clear:!1})};E(D.a(),Rm);
var Sm=new G(u.person.email.remove.confirm.main),Tm=new G(u.person.email.remove.confirm.success);function Um(){Q.call(this);this.r=Vm;this.Tc=new K(u.person.email.remove.form.send);this.wa=Wm;this.lf=N(this,"send",this.Ic);this.nc=N(this,"send-success",this.xd);return this}m(Um,Q);h(Um);Um.prototype.getName=q("person-email-remove-form");Um.prototype.Ic=function(){this.pa.empty().hide();if(this.l.size()&&!this.l.valid())return y();this.data.empty().set(this.l.formToArray());return this.G({link:this.Tc,data:this.data,t:this.nc})};Um.prototype.xd=function(){return this.F({link:this.wa})};
E(D.a(),Um);var Vm=new G(u.person.email.remove.form.main),Wm=new G(u.person.email.remove.form.success);function im(){J.call(this);this.r=new K(u.person.info.main);this.zp=new K(u.person.info.state);this.mc=Xm;this.ZR="[data-container-name\x3daccount]";this.bS="[data-container-name\x3daccount-this]";this.$R="[data-container-name\x3daccount-list]";this.aS=".accountSelect";this.aU="[data-container-name\x3dmegafon-balance-header]";this.Jn=v();this.sr=v();this.ev=v();this.fv=v();this.Zr=v();this.Dn=N(this,"state",this.uc);this.aK=N(this,"state-success",this.iR);N(this,"state-failure",this.UQ);N(this,"account-list",
this.PN);this.hr=N(this,"logout",this.$e);this.Ug=N(this,"logout-success",this.Hg);this.bL=L(this,"account-list");this.mL=L(this,"main-menu-refresh");this.HD=L(this,"person-info-refresh");this.bL.addListener(function(a){return Bm.a().V.h(a)});I(this.mL,"main-menu","refresh");I(this.ja,this.getName(),"state");Mg(this.HD,Ug);this.state={};this.Nq=0;this.GV=10;this.hn=null;this.kH=3E4;this.Lc=window["qiwi-main-lib"].auth;return this}m(im,J);h(im);d=im.prototype;d.getName=q("person-info");
d.init=function(a){im.c.init.call(this,a);this.Jn=O(this,this.ZR);this.sr=O(this,this.bS);this.ev=O(this,this.$R);this.fv=O(this,this.aS);this.Zr=O(this,this.aU);this.sr.bindspace(this,"click",function(a){v(a.target).is("[data-action]")||(this.ev.slideToggle("fast"),this.sr.toggleClass("active"),this.Zr.attr("data-widget")||(this.Zr.attr("data-widget","megafon-balance-header"),Fe.a().init(this.Zr)))});this.e["public"]&&(v(document.body).addClass("authorized"),this.data.set("view",this.e["public"]));
jQuery(document).bindspace(this,"mousedown",function(a){this.Nq=0;this.Jn.filter(a.target).size()||this.Jn.has(a.target).size()||(this.ev.slideUp("fast"),this.sr.removeClass("active"))});jQuery(document).bindspace(this,"mousemove",function(){this.Nq=0});clearTimeout(this.hn)};d.nb=function(){im.c.nb.call(this);clearTimeout(this.hn)};d.PN=function(){this.fv.children().disabled(!1).selected(!1).filter(".defaultAccount").selected(!0);this.fv.refresh();window.location.href=Gm.getPath()};
d.uc=function(){this.Nq+=1;return this.Nq>this.GV?y():this.G({link:this.zp,k:$(),t:this.aK,da:this.Je})};
d.iR=function(a){clearTimeout(this.hn);this.hn=setTimeout(z(function(){this.h(this.Dn)},this),this.kH);var b=a.response.data;Id(b)||(b={});if(this.state.messages!=b.messages){a=v(".auth_menu ul .nav_i_lenta");var c=v("span",a);c.size()||(c=v("\x3cspan\x3e").appendTo(a));b.messages?c.html(b.messages):c.remove()}if(Id(this.state.balances)&&Id(b.balances)){var e=!1;yd(this.state.balances,function(a,c){e=e||c!==b.balances[a]});e&&this.trigger(this.HD)}this.state=b;return y()};
d.UQ=function(){clearTimeout(this.hn);this.hn=setTimeout(z(function(){this.h(this.Dn)},this),this.kH);return y()};d.Jm=function(){return this.Lc.logout(this.$e.bind(this))};d.$e=function(a){return a.target?this.Jm(a):this.G({link:jh,t:this.Ug})};d.Hg=function(){window.location.href=u.qiwi.context+"/"};E(D.a(),im);Ug.addListener(function(){return im.a().V.h()});function Ym(){J.call(this);N(this,"login",this.Gg);this.jj=N(this,"login-error-attempts",this.Bk);this.zn=N(this,"oauth-created",this.Op);this.ZT="[data-container-name\x3dlogin-form]";this.Re=v();return this}m(Ym,J);h(Ym);d=Ym.prototype;d.getName=q("person-menu");d.init=function(a){Ym.c.init.call(this,a);this.Re=O(this,this.ZT);jQuery(document).bindspace(this,"mousedown",function(a){this.Re.filter(a.target).size()||this.Re.has(a.target).size()||"static"!=this.Re.css("position")&&this.Re.slideUp("fast")})};
d.Gg=function(a){if(a.popup){v("html,body").toggleClass("overflow");this.Re.toggle();var b=this.Re.find(":input:visible").first(),c=b.val();b.focus();b.val("");b.val(c);this.ca(a);return y()}this.Re.is(":animated")||this.Re.slideToggle("fast",z(function(){var b=this.Re.find(":input:visible").first(),c=b.val();b.focus();b.val("");b.val(c);this.ca(a)},this));return y()};d.Bk=function(){this.Re.slideUp("fast")};d.Op=function(){this.Re.slideUp("fast")};E(D.a(),Ym);Qg.addListener(function(a){if(Ym.rc())return Ym.a().jj.h(a)});
bh.addListener(function(a){if(Ym.rc())return Ym.a().zn.h(a)});function Zm(){J.call(this);this.RM=new K(u.person.wallet.sms.toggle);N(this,"enable",this.EO);this.AI=N(this,"enable-success",this.FO);N(this,"dismiss",this.BO);N(this,"close",this.yk);return this}m(Zm,J);h(Zm);d=Zm.prototype;d.getName=q("person-notification-sms");d.EO=function(a){this.ca(a);return this.G({link:this.RM,data:{enabled:!0,fromBanner:!0},t:this.AI})};d.FO=function(a){this.ca(a);return a.response.message?this.Jp({message:a.response.message,fg:z(function(){return $m(this)},this)}):$m(this)};
function $m(a){a.k.remove();return an.rc()?an.a().V.h():y()}d.BO=function(a){this.ca(a);return this.Jp({message:u.person.wallet.sms.dismiss,fg:z(function(){$.cookie("sms-alert","none",{path:"/",expires:1E3});this.k.remove()},this)})};d.yk=function(a){this.ca(a);$.cookie("sms-alert","none",{path:"/"});this.k.remove()};E(D.a(),Zm);function bn(){P.call(this);this.r=new K(u.person.login.form);this.xE=hh;this.mc=Xm;N(this,"login",this.Gg);this.xB=N(this,"login-complete",this.Np);this.Tg=N(this,"login-success",this.Gm);this.gr=N(this,"login-error",this.Dy);this.jj=N(this,"login-error-attempts",this.Bk);this.zn=N(this,"oauth-created",this.Op);N(this,"sso-login",this.Vp);N(this,"sso-check-login",this.XE);this.SJ=N(this,"sso-check-success-login",this.MQ);this.jr=N(this,"sso-oauth-providers",this.Km);N(this,"sso-oauth-sigin",this.Yp);
this.Uj=L(this,"login-success",Og.bb());this.zs=L(this,"login-error",Pg.bb());this.nh=L(this,"login-error-attempts",Qg.bb());this.Ko=L(this,"oauth-created",bh.bb());this.Kh=":input[name\x3dlogin]";this.Az=":input[name\x3dpassword]";this.xq="[data-container-name\x3doauth]";this.mb=v();this.Oe=v();this.Id=v();this.Lc=window["qiwi-main-lib"].auth;return this}m(bn,P);h(bn);d=bn.prototype;d.getName=q("person-login-form");
d.init=function(a){bn.c.init.call(this,a);this.mb=O(this,this.Kh);this.Oe=O(this,this.Az);this.Id=O(this,this.xq);this.mb.focus();this.h(this.jr)};d.nb=function(){bn.c.nb.call(this);clearTimeout(this.DW)};d.Vp=function(){this.pa.empty().hide();if(!this.l.valid())return y();this.k.request(!0);var a=$.deparam($.param(this.l.formToArray()));return this.Lc.login(a,this.Mi.bind(this),this.Ty.bind(this),this.Im.bind(this))};d.Mi=function(a){return this.XE(a)};
d.Im=function(a){this.k.request(!1);this.Oe.val("");return this.Na({response:{message:u.shell.http.code[a.message]?u.shell.http.code[a.message]:a.message},Md:this.zs})};d.Ty=function(a){return this.e["public"]?((new oi).post({login:this.mb.val(),captcha:!0},Vj.getPath()),y()):this.trigger(this.nh,{fj:this.mb.val(),gj:this.Oe.val(),response:{message:u.shell.http.code[a.message]?u.shell.http.code[a.message]:a.message,captchaUrl:a.captchaUrl}})};
d.XE=function(a){return this.G({url:u.qiwi.sso.check,type:"GET",data:a.data,t:this.SJ})};d.MQ=function(a){this.k.request(!0);return this.h(this.Tg,a)};d.Wp=function(a){return this.e["public"]?((new oi).post(a.data,Wj.getPath()),y()):this.trigger(this.Ko,a)};d.Km=function(){if(!this.Id.children().size())return this.Lc.getOAuthProviders(this.Xp.bind(this),this.Lm.bind(this))};d.Lm=function(){};
d.Xp=function(a){this.Id.html((this.e["public"]?Lj.De.ef.kE:Lj.De.ef.oF)({providers:a.data.supportedProviders},null,{settings:u}));return Fe.a().init(this.Id)};d.Lm=function(){};d.Op=function(){this.k.request(!1)};d.Yp=function(a){this.ca(a);return this.Lc.oAuthLogin({provider:a.context,disabledMessage:u.qiwi.oauth.disabled},this.Mi.bind(this),this.Wp.bind(this))};
d.Gg=function(a){this.ca(a);if(a.target)return this.Vp(a);this.pa.empty().hide();return this.l.valid()?this.G({data:this.l.formToArray(),link:this.xE,bg:this.xB,t:this.Tg,yn:this.gr,da:this.gr}):y()};
d.Np=function(a){this.k.request(!0);if(-1!=vd(a.status,["3"]))return this.e["public"]?(window.location.href=Vj.getPath(),y()):this.trigger(this.nh,{fj:this.mb.val(),gj:this.Oe.val(),response:a.response});if(-1!=vd(a.status,["7"])){var b=a.response.data;return Id(b)&&b.token&&"7"!=this.Ix?(b.url&&(delete a.link,a.url=b.url),a.data=new Td(b.parameters?b.parameters:a.data),a.data.set("loginToken",b.token),a.data=a.data.kc(),this.G(a)):this.h(a.da,a)}return this.jy(a)};
d.Gm=function(a){if(a.event)return y();this.ca(a);return this.trigger(this.Uj,{response:a.response,"public":this.e["public"]})};d.Dy=function(a){this.k.request(!1);this.Oe.val("");return this.Na(a)};d.Bk=function(){this.k.request(!1)};E(D.a(),bn);Og.addListener(function(a){if(bn.rc())return bn.a().Tg.h(a)});Qg.addListener(function(a){if(bn.rc())return bn.a().jj.h(a)});bh.addListener(function(a){if(bn.rc())return bn.a().zn.h(a)});function cn(){Q.call(this);this.r=dn;this.Uc=new K(u.person.password.change);this.ay=en;this.nT="[name\x3doldPassword]";this.Lh="[name\x3dnewPassword]";this.Mh="[name\x3dnewPasswordRepeat]";this.Xk="[name\x3dperiod]";this.cb=".confirmationForm";this.Ui=".pageControls";this.Nh=".newPasswordRepeatValid";v();this.Sa=v();this.Ta=v();this.kg=v();this.R=v();this.od=v();this.Fc=v();this.de=N(this,"update",this.Wc);this.nd=N(this,"update-success",this.Qf);this.Cl=N(this,"update-failure",this.Xy);this.En=
N(this,"update-confirmation",this.Zp);this.ri=L(this,"update-confirmation");I(this.ri,"confirmation-form","main");return this}m(cn,Q);h(cn);d=cn.prototype;d.getName=q("person-password-form");
d.init=function(a){cn.c.init.call(this,a);O(this,this.nT);this.Sa=O(this,this.Lh);this.Ta=O(this,this.Mh);this.kg=O(this,this.Xk);this.R=O(this,this.cb);this.od=O(this,this.Ui);this.Fc=O(this,this.Nh);this.Sa.bindspace(this,"input paste keyup change",function(){this.Sa.val()&&this.Sa.validate().check(this.Sa,!1);this.Ta.change()});this.Ta.bindspace(this,"input paste keyup change",function(){this.Ta.val()&&(this.Ta.valid()?this.Fc.show():this.Fc.hide())});this.R.size()||(this.R=this.k)};
d.Wc=function(){this.pa.empty().hide();if(this.l.size()&&!this.l.valid())return y();this.data.empty().set(this.l.formToArray());return this.G({link:this.Uc,t:this.nd,da:this.Cl,bc:this.En})};d.Qf=function(){return this.F({link:this.ay})};d.Xy=function(a){this.L.disabled(!1).refresh();this.od.show();this.R.empty().hide();return this.Na(a)};
d.Zp=function(a){this.L.disabled(!0).refresh();this.od.hide();this.R.empty().show();return this.trigger(this.ri,{k:this.R,sa:"html",data:{identifier:a.response.identifier,type:"PASSWORD_CHANGE"},success:function(a){return cn.a().nd.h(a)},Nd:{"error.code.302.label":function(a){return cn.a().Cl.h(a)},"error.code.890.label":function(a){return cn.a().Cl.h(a)},"error.code.1027.label":function(a){return cn.a().Cl.h(a)}},Pc:{"data['oldPassword']":this.data.get("oldPassword"),"data['newPassword']":this.data.get("newPassword"),
"data['period']":this.data.get("period"),"data['token']":this.data.get("token")},clear:!1})};E(D.a(),cn);var dn=new G(u.person.password.main),en=new G(u.person.password.change.success);function fn(){J.call(this);this.Ox=new K(u.person.emergency.answer);this.IM=new K(u.person.emergency.classic);N(this,"answer",this.ly);this.Au=N(this,"answer-complete",this.my);N(this,"classic",this.nO);this.tI=N(this,"classic-complete",this.oO);return this}m(fn,Q);h(fn);d=fn.prototype;d.getName=q("person-emergency");d.ly=function(a){return this.G({link:this.Ox,data:a.data,bg:this.Au})};d.my=function(){this.k.remove();return y()};d.nO=function(a){return this.G({link:this.IM,data:a.data,bg:this.tI})};
d.oO=function(a){window.location.href=a.response.data.url;return y()};E(D.a(),fn);function Xm(){vh.call(this);return this}m(Xm,vh);h(Xm);Xm.prototype.getName=q("person");E(D.a(),Xm);function an(){Q.call(this);this.r=gn;this.zE=new K(u.person.wallet.sms.toggle);N(this,"sms-enable",this.IQ);this.QJ=N(this,"sms-enable-success",this.JQ);N(this,"sms-disable",this.EQ);this.PJ=N(this,"sms-disable-success",this.HQ);this.OJ=N(this,"sms-disable-confirm",this.GQ);this.NJ=N(this,"sms-disable-cancel",this.FQ);return this}m(an,Q);h(an);d=an.prototype;d.getName=q("person-wallet");d.IQ=function(a){this.ca(a);return this.G({link:this.zE,data:{enabled:!0},t:this.QJ})};
d.JQ=function(a){return a.response.message?this.Jp({message:a.response.message,fg:z(function(){return this.ha({})},this)}):this.ha({})};d.EQ=function(a){this.ca(a);return this.qb({message:u.person.wallet.sms.disable.message,TV:u.person.wallet.sms.disable.yes,HR:u.person.wallet.sms.disable.no,confirm:z(function(){return this.h(this.OJ)},this),cancel:z(function(){return this.h(this.NJ)},this)})};d.GQ=function(a){this.ca(a);return this.G({link:this.zE,data:{enabled:!1},t:this.PJ})};d.FQ=function(a){this.ca(a)};
d.HQ=function(a){return a.response.message?this.Jp({message:a.response.message,fg:z(function(){return this.ha({})},this)}):this.ha({})};E(D.a(),an);var gn=new G(u.person.wallet.main);function hn(){Q.call(this);this.qS="[data-container-name\x3ddocuments-toggle]";this.pS="[data-container-name\x3ddocuments-block]";this.Wk="[name\x3dinn]";this.sq="[name\x3dsnils]";this.rq="[name\x3dpassport]";this.pq="[name\x3dbirthDateString]";this.qq="[name\x3doms]";this.eC=v();this.dC=v();this.qf=v();this.ji=v();this.ii=v();this.gi=v();v();this.r=jn;this.yp=new K(u.person.wallet.form.save);this.wa=gn;N(this,"save",this.Qp);this.Cn=N(this,"save-success",this.Rp);this.FJ=N(this,"save-error",this.rQ);
N(this,"documents",this.CO);return this}m(hn,Q);h(hn);d=hn.prototype;d.init=function(a){hn.c.init.call(this,a);this.eC=O(this,this.qS);this.dC=O(this,this.pS);this.qf=O(this,this.Wk);this.ji=O(this,this.sq);this.ii=O(this,this.rq);this.gi=O(this,this.pq);O(this,this.qq);this.qf.rules("add",{inn:!0});this.ji.rules("add",{snils:!0});this.ii.rules("add",{passport:!0});this.gi.rules("add",{agerange:[18,90]})};
d.Qp=function(a){this.ca(a);return this.l.valid()?this.G({link:this.yp,data:this.l.formToArray(),t:this.Cn,da:this.FJ}):y()};d.Rp=function(a){this.ca(a);return this.F({link:this.wa})};d.rQ=function(a){this.ca(a);return this.Na(a)};d.CO=function(){this.eC.hide();this.dC.show()};var jn=new G(u.person.wallet.form.main);function kn(){hn.call(this);return this}m(kn,hn);h(kn);kn.prototype.getName=q("person-wallet-new-form");E(D.a(),kn);function ln(){hn.call(this);return this}m(ln,hn);h(ln);ln.prototype.getName=q("person-wallet-edit-form");E(D.a(),ln);function mn(){J.call(this);this.Ub="[data-container-name\x3ditem]";this.r=new K(u.person.social.provider.list.main);new K(u.person.social.provider.list.bind);this.GN=new K(u.person.social.provider.list.unbind);N(this,"bind",this.cO);this.pI=N(this,"bind-success",this.dO);N(this,"unbind",this.sR);this.fK=N(this,"unbind-success",this.uR);this.eK=N(this,"unbind-cancel",this.tR);this.Fb=N(this,"load",this.$b);I(this.ja,this.getName(),this.Fb.getName());return this}m(mn,J);h(mn);d=mn.prototype;
d.getName=q("person-social-provider-list");d.init=function(a){mn.c.init.call(this,a);this.K=O(this,this.Ub)};d.$b=function(){return this.k.children().size()?y():this.h(this.V)};d.cO=function(a){this.ca(a,null,a.provider);var b=parseInt((window.screen.width-800)/2),c=parseInt((window.screen.height-600)/2);window.OAUTH_CALLBACK=z(function(a){this.h(this.pI,a)},this);window.open(a.url,"social","left\x3d"+b+",top\x3d"+c+",width\x3d800,height\x3d600,menubar\x3d0,toolbar\x3d0,location\x3d0,directories\x3d0,status\x3d0,resizable\x3d0,scrollbars\x3d1")};
d.dO=function(a){this.ca(a,null,a.provider);return this.h(this.V)};d.sR=function(a){this.ca(a,null,a.provider);return this.qb({message:u.person.social.provider.list.unbind.confirm,confirm:z(function(){return this.G({link:this.GN,data:{provider:a.provider.toUpperCase()},t:this.fK})},this),cancel:z(function(){return this.h(this.eK,a)},this)})};d.tR=function(a){this.ca(a,null,a.provider)};d.uR=function(a){this.ca(a,null,a.provider);return this.h(this.V)};E(D.a(),mn);function nn(){Q.call(this);this.r=on;this.zl=N(this,"provider",this.af);Mg(this.ja,$g);return this}m(nn,Q);h(nn);nn.prototype.getName=q("provider-info");nn.prototype.af=function(a){this.data.empty().set(a.data);return this.ha(a)};E(D.a(),nn);var on=new G(u.provider.info.main);function pn(){Mj.call(this);this.r=qn;return this}m(pn,Mj);h(pn);pn.prototype.getName=q("provider-operators-list");E(D.a(),pn);var qn=new G(u.provider.operators.list.main);function rn(){oh.call(this);this.r=new K(u.provider.popular.menu.main);this.zl=N(this,"provider",this.af);this.nj=N(this,"show-success",this.Hk);this.pi=L(this,"provider",Vg.bb());return this}m(rn,oh);h(rn);d=rn.prototype;d.getName=q("provider-popular-menu");d.init=function(a){rn.c.init.call(this,a);this.k.is(":visible")&&this.h(this.ce)};
d.af=function(a){this.K.removeClass("active").filter(function(){var b=v(this);return b.is(a.target)||b.has(a.target).size()}).addClass("active");return this.trigger(this.pi,a)};d.Xa=function(a){this.k.request(!1);return this.k.children().size()?rn.c.Xa.call(this,a):(this.k.show(),this.ha({sa:"html",t:this.nj}))};d.Hk=function(a){a=rn.c.Ji.call(this,a);var b=this.init(this.e);return x(a,b).promise()};d.tc=function(a){this.k.request(!1);return rn.c.tc.call(this,a)};E(D.a(),rn);function sn(){oh.call(this);this.Sx=new K(u.provider.tabs.menu);this.xs=L(this,"favorite");this.As=L(this,"popular");this.ys=L(this,"list");N(this,"favorite",this.KO);this.CB=N(this,"popular",this.Iy);N(this,"list",this.nP);this.xs.addListener(function(){return uk.a().ce.h()});this.xs.addListener(function(){return rn.a().ad.h()});this.xs.addListener(function(){return tn.a().ad.h()});this.As.addListener(function(){return uk.a().ad.h()});this.As.addListener(function(){return rn.a().ce.h()});this.As.addListener(function(){return tn.a().ad.h()});
this.ys.addListener(function(){return uk.a().ad.h()});this.ys.addListener(function(){return rn.a().ad.h()});this.ys.addListener(function(){return tn.a().ce.h()});return this}m(sn,oh);h(sn);d=sn.prototype;d.getName=q("provider-tabs");
d.Jk=function(a){var b=this.K.filter(function(){var b=v(this);return b.is(a.target)||b.has(a.target).size()});b.removeClass(this.e.itemsActiveClass).siblings().removeClass(this.e.itemsActiveClass);this.k.removeClass(this.e.selfSelectedPrefix+this.e.selfSelectedSuffix);this.e.selfSelectedPrefix=b.attr("class");this.k.addClass(this.e.selfSelectedPrefix+this.e.selfSelectedSuffix);b.addClass(this.e.itemsActiveClass);return this.G({link:this.Sx,data:a.data,k:$("\x3cdiv\x3e"),t:this.Je})};
d.KO=function(a){this.Jk(a);return this.trigger(this.xs,a)};d.Iy=function(a){this.Jk(a);return this.trigger(this.As,a)};d.nP=function(a){this.Jk(a);return this.trigger(this.ys,a)};E(D.a(),sn);function un(){Mj.call(this);this.r=vn;this.jb.addListener(function(a){return tn.a().Zh.h(a)});return this}m(un,Mj);h(un);un.prototype.getName=q("provider-tree-list");E(D.a(),un);new G(u.provider.tree.main);var vn=new G(u.provider.tree.list.main);function tn(){oh.call(this);this.r=new K(u.provider.tree.menu.main);this.Ub="ul \x3e li ul \x3e li";this.$G="li.category";this.GF="li.seeAll .subLink";this.qw=jQuery();this.fC=jQuery();N(this,"tree",this.rR);N(this,"full",this.MO);this.zl=N(this,"provider",this.af);this.nj=N(this,"show-success",this.Hk);this.pi=L(this,"provider",Vg.bb());this.Cw=L(this,"full");this.Cw.addListener(function(a){return un.a().tB.h(a)});this.Cw.addListener(function(a){return un.a().V.h(a)},1);return this}m(tn,oh);h(tn);
d=tn.prototype;d.getName=q("provider-tree-menu");d.init=function(a){tn.c.init.call(this,a);this.qw=O(this,this.e.$G||this.$G);this.fC=O(this,this.e.GF||this.GF);this.qw.filter(".primaryactive").removeClass("primaryactive").children().click();this.k.is(":visible")&&this.h(this.ce)};d.af=function(a){this.K.removeClass("active").filter(function(){var b=v(this);return b.is(a.target)||b.has(a.target).size()}).addClass("active");return this.trigger(this.pi,a)};
d.Xa=function(a){this.k.request(!1);return this.k.children().size()?tn.c.Xa.call(this,a):(this.k.show(),this.ha({sa:"html",t:this.nj}))};d.Hk=function(a){a=tn.c.Ji.call(this,a);var b=this.init(this.e);return x(a,b).promise()};d.tc=function(a){this.k.request(!1);return tn.c.tc.call(this,a)};
d.rR=function(a){var b=this.qw.ishas(a.target).last(),c=b.hasClass("active");b.removeClass("active").siblings().removeClass("active");if(c)return y();b.addClass("active");return b.children("ul").size()?y():this.h(this.ag,{link:this.r,data:a.data,k:b,sa:"append"},z(function(){return this.Db({data:this.data.kc()})},this))};
d.MO=function(a){this.data.empty().set(a.data);this.fC.removeClass("active").filter(function(){var b=v(this);return b.is(a.target)||b.has(a.target).size()}).addClass("active");return this.trigger(this.Cw,a)};E(D.a(),tn);function wn(){oh.call(this);return this}m(wn,oh);h(wn);wn.prototype.getName=q("qiwicard-menu");E(D.a(),wn);function xn(){oh.call(this);this.Sx=new K(u.qiwicard.tabs.menu);this.Ds=L(this,"qvv");this.Bs=L(this,"qvc");this.Cs=L(this,"qvp");N(this,"qvv",this.VP);N(this,"qvc",this.SP);N(this,"qvp",this.TP);this.Ds.addListener(function(){return yn.a().ce.h()});this.Ds.addListener(function(){return zn.a().ad.h()});this.Ds.addListener(function(){return An.a().ad.h()});this.Bs.addListener(function(){return yn.a().ad.h()});this.Bs.addListener(function(){return zn.a().ce.h()});this.Bs.addListener(function(){return An.a().ad.h()});
this.Cs.addListener(function(){return yn.a().ad.h()});this.Cs.addListener(function(){return zn.a().ad.h()});this.Cs.addListener(function(){return An.a().ce.h()});return this}m(xn,oh);h(xn);d=xn.prototype;d.getName=q("qiwicard-tabs");d.Jk=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.G({link:this.Sx,data:a.data,k:$("\x3cdiv\x3e"),t:this.Je})};
d.VP=function(a){this.Jk(a);return this.trigger(this.Ds,a)};d.SP=function(a){this.Jk(a);return this.trigger(this.Bs,a)};d.TP=function(a){this.Jk(a);return this.trigger(this.Cs,a)};E(D.a(),xn);function Bn(){Q.call(this);this.r=Cn;this.ft=Dn;this.wp=new K(u.qvc.create.create);this.Px=En;this.ij=N(this,"create",this.Pf);this.xn=N(this,"create-success",this.Gp);this.yD=L(this,"create-success");this.yD.addListener(function(){return zn.a().V.h()});return this}m(Bn,Q);h(Bn);d=Bn.prototype;d.getName=q("qvc-create");d.nb=function(){clearTimeout(this.wH)};d.init=function(a){Bn.c.init.call(this,a);this.h(this.ij)};
d.Pf=function(){var a=w();clearTimeout(this.wH);this.k.request(!0);this.wH=setTimeout(z(function(){this.G({link:this.wp,t:this.xn}).always(a.resolve)},this),3E3);return a.promise()};d.Gp=function(){return this.F({link:this.Px,vg:this.yD})};E(D.a(),Bn);var Cn=new G(u.qvc.create.main),Dn=new G(u.qvc.create.form),En=new G(u.qvc.create.success);function Fn(){Q.call(this);this.r=Gn;this.QM=new K(u.qvc.details.details);N(this,"details",this.xy);this.em=L(this,"details");I(this.jb,"qvc-menu","data-merge-id");I(this.em,"qvc-menu","data-merge-id");return this}m(Fn,Q);h(Fn);Fn.prototype.getName=q("qvc-details");Fn.prototype.xy=function(a){a.data=new Td;return this.trigger(this.em,a,z(function(a){a.link=this.QM;a.t=this.t;a.da=this.da;return this.h(this.Wh,a)},this))};E(D.a(),Fn);var Gn=new G(u.qvc.details.main);function Hn(){Q.call(this);this.r=In;return this}m(Hn,Q);h(Hn);Hn.prototype.getName=q("qvc-help");E(D.a(),Hn);var In=new G(u.qvc.help.main);function Jn(){Q.call(this);this.r=Kn;I(this.jb,"qvc-menu","data-merge-id");return this}m(Jn,Q);h(Jn);Jn.prototype.getName=q("qvc-info");E(D.a(),Jn);var Kn=new G(u.qvc.info.main);function zn(){oh.call(this);this.mc=pi;this.r=new K(u.qvc.menu.main);N(this,"card",this.Fp);N(this,"info",this.Lp);N(this,"reports",this.Ek);N(this,"details",this.xy);N(this,"remove",this.wd);this.ij=N(this,"create",this.Pf);this.EB=N(this,"recreate",this.Ly);N(this,"help",this.zk);N(this,"data-merge-id",this.Hp);N(this,"data-merge-number",this.Ip);N(this,"items-first",this.Mp);this.Df=L(this,"card");this.Ff=L(this,"info");this.Gf=L(this,"reports");this.em=L(this,"details");this.Iw=L(this,"remove");
this.Bw=L(this,"create");this.Gw=L(this,"recreate");this.Ef=L(this,"help");I(this.Df,"qvc-menu","main");I(this.Df,"qvc-menu","items-first",1);I(this.Ff,"qvc-info","main");I(this.Ff,"qvc-report-settings","hide");I(this.Gf,"qvc-report-list","main");I(this.Gf,"qvc-report-settings","show");I(this.em,"qvc-details","main");I(this.em,"qvc-report-settings","hide");I(this.Iw,"qvc-remove","main");I(this.Iw,"qvc-report-settings","hide");I(this.Bw,"qvc-create","main");I(this.Bw,"qvc-report-settings","hide");
I(this.Gw,"qvc-recreate","main");I(this.Gw,"qvc-report-settings","hide");I(this.Ef,"qvc-help","main");I(this.Ef,"qvc-report-settings","hide");return this}m(zn,oh);h(zn);d=zn.prototype;d.getName=q("qvc-menu");d.Mp=function(){this.K.first().trigger("action")};d.Xa=function(a){return this.k.size()?zn.c.Xa.call(this,a):(this.k=jQuery("\x3cdiv\x3e").appendTo(this.mc.a().getContainer()),this.ha(a))};d.Hp=function(a){Sd(a.data)&&a.data.set("id",this.data.get("id"))};
d.Ip=function(a){Sd(a.data)&&a.data.set("number",this.data.get("number"))};d.Fp=function(a){this.data.empty().set(a.data);return this.trigger(this.Df,a)};d.Lp=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Ff,a)};d.Ek=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Gf,a)};
d.xy=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.em,a)};d.wd=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Iw,a)};
d.Pf=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Bw,a)};d.Ly=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Gw,a)};
d.zk=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Ef,a)};E(D.a(),zn);function Ln(){Q.call(this);this.r=Mn;this.ft=Nn;this.wN=new K(u.qvc.recreate.recreate);this.xN=On;this.EB=N(this,"recreate",this.Ly);this.FB=N(this,"recreate-success",this.dQ);this.uJ=N(this,"recreate-failure",this.cQ);this.tJ=N(this,"recreate-confirmation",this.bQ);this.JD=L(this,"recreate-success");this.ID=L(this,"recreate-confirmation");this.ID.addListener(function(a){return Rj.a().V.h(a)});this.JD.addListener(function(){return zn.a().V.h()});return this}m(Ln,Q);h(Ln);d=Ln.prototype;
d.getName=q("qvc-recreate");d.nb=function(){clearTimeout(this.zH);clearTimeout(this.AH)};d.init=function(a){Ln.c.init.call(this,a);this.h(this.EB)};d.Ly=function(){var a=w();clearTimeout(this.zH);this.k.request(!0);this.zH=setTimeout(z(function(){this.G({link:this.wN,t:this.FB,da:this.uJ,bc:this.tJ}).always(a.resolve)},this),3E3);return a.promise()};
d.dQ=function(){var a=w();clearTimeout(this.AH);this.k.request(!0);this.AH=setTimeout(z(function(){this.F({link:this.xN,vg:this.JD}).always(a.resolve)},this),3E3);return a.promise()};d.cQ=function(a){return this.yy(a)};d.bQ=function(a){return this.trigger(this.ID,{k:this.k,sa:"html",data:{identifier:a.response.identifier,type:"QVC_RECREATE"},success:function(a){return Ln.a().FB.h(a)},Pc:this.l.formToArray(),clear:!1})};E(D.a(),Ln);
var Mn=new G(u.qvc.recreate.main),Nn=new G(u.qvc.recreate.form),On=new G(u.qvc.recreate.success);function Pn(){Q.call(this);this.r=Qn;this.ed=new K(u.qvc.remove.remove);this.qi=L(this,"remove-success");I(this.jb,"qvc-menu","data-merge-id");I(this.qi,"qvc-menu","main");N(this,"remove",this.wd);this.be=N(this,"remove-success",this.Ce);return this}m(Pn,Q);h(Pn);Pn.prototype.getName=q("qvc-remove");Pn.prototype.ha=function(a){this.data.empty().set(a.data);return Pn.c.ha.call(this,a)};
Pn.prototype.wd=function(){return this.qb({message:u.qvc.remove.remove.confirm,confirm:z(function(){this.G({link:this.ed,data:this.data,t:this.be,da:this.DI})},this)})};Pn.prototype.Ce=function(a){a=this.Ik(a);var b=this.trigger(this.qi);return x(a,b).promise()};E(D.a(),Pn);var Qn=new G(u.qvc.remove.main);function Rn(){Q.call(this);this.r=Sn;I(this.jb,"qvc-menu","data-merge-number");I(this.jb,"qvc-report-settings","data-merge");I(this.ab,"qvc-report-list","main");return this}m(Rn,Q);h(Rn);Rn.prototype.getName=q("qvc-report-list");E(D.a(),Rn);var Sn=new G(u.qvc.report.list.main);function Tn(){P.call(this);I(this.ab,"qvc-report-list","main");return this}m(Tn,P);h(Tn);Tn.prototype.getName=q("qvc-report-settings");Tn.prototype.Xa=function(a){Tn.c.Xa.call(this,a);this.data.empty().set(this.l.formToArray())};E(D.a(),Tn);function Un(){Q.call(this);this.cb=".confirmationForm";this.sz=".actions";this.R=v();this.di=v();this.r=Vn;this.Mx=new K(u.qvp.activate.activate);this.Nx=Wn;this.sE=Xn;N(this,"activate",this.xk);this.br=N(this,"activate-success",this.iy);this.ar=N(this,"activate-failure",this.hy);this.dI=N(this,"activate-confirmation",this.SN);this.wD=L(this,"activate-confirmation");I(this.wD,"confirmation-form","main");I(this.ja,"qvp-report-settings","hide");return this}m(Un,Q);h(Un);d=Un.prototype;d.getName=q("qvp-activate");
d.init=function(a){Un.c.init.call(this,a);this.R=O(this,this.cb);this.di=O(this,this.sz)};d.ha=function(a){this.data.empty().set(a.data);return Un.c.ha.call(this,a)};d.xk=function(){this.pa.empty().hide();if(!this.l.size()||this.l.valid())return this.data.empty().set(this.l.formToArray()),this.G({link:this.Mx,data:this.data,t:this.br,da:this.ar,bc:this.dI})};d.iy=function(){return this.F({link:this.Nx})};d.hy=function(a){this.L.disabled(!1).refresh();this.R.empty().hide();this.di.show();return this.Na(a)};
d.SN=function(a){this.L.disabled(!0).refresh();this.R.empty().show();this.di.hide();return this.trigger(this.wD,{k:this.R,sa:"html",data:{identifier:a.response.identifier,type:"QVP_ACTIVATE"},success:function(a){return Un.a().br.h(a)},Nd:{"error.code.900.label":function(a){return Un.a().ar.h(a)}},Pc:{"data['number']":this.data.get("number")}})};E(D.a(),Un);var Vn=new G(u.qvp.activate.main),Wn=new G(u.qvp.activate.success),Xn=new G(u.qvp.activate.failure);function Yn(){Q.call(this);this.r=Zn;this.KM=new K(u.qvp.close.close);this.MM=$n;this.LM=ao;this.xD=L(this,"close-success");I(this.jb,"qvp-menu","data-merge-id");I(this.xD,"qvp-menu","main");I(this.ja,"qvp-report-settings","hide");N(this,"close",this.yk);this.wI=N(this,"close-success",this.rO);this.vI=N(this,"close-failure",this.qO);return this}m(Yn,Q);h(Yn);d=Yn.prototype;d.getName=q("qvp-close");d.ha=function(a){this.data.empty().set(a.data);return Yn.c.ha.call(this,a)};
d.yk=function(){return this.qb({message:u.qvp.close.close.confirm,confirm:z(function(){this.G({link:this.KM,data:this.data,t:this.wI,da:this.vI})},this)})};d.rO=function(){var a=this.F({link:this.MM}),b=this.trigger(this.xD);return x(a,b).promise()};d.qO=function(){return this.F({link:this.LM})};E(D.a(),Yn);var Zn=new G(u.qvp.close.main),$n=new G(u.qvp.close.success),ao=new G(u.qvp.close.failure);function bo(){U.call(this);this.r=co;this.ft=eo;this.PM=new K(u.qvp.create.delivery);this.yN=new K(u.qvp.create.region);this.EF="#delivery";this.BF="#city";this.CF="#cityEmpty";this.eG="[name\x3dextra\\[\\'qvp_card_type\\'\\]]";this.dG="[name\x3dextra\\[\\'qvp_card_embossed_name\\'\\]]";this.XF="[name\x3dextra\\[\\'from_address_country\\'\\]]";this.YF="[name\x3dextra\\[\\'from_address_country_key\\'\\]]";this.Jt="[name\x3dextra\\[\\'from_address_city\\'\\]]";this.WF="[name\x3dextra\\[\\'from_address_city_key\\'\\]]";
this.Kt="[name\x3dextra\\[\\'from_address_reg\\'\\]]";this.ZF="[name\x3dextra\\[\\'from_address_reg_key\\'\\]]";this.RF="[name\x3dextra\\[\\'key\\'\\]]";this.Qi="[name\x3damountInteger]";this.Pi="[name\x3damountFraction]";this.Vk="[name\x3dcurrency]";this.fG="[name\x3dextra\\[\\'qvp_promo\\'\\]]";this.KG=".cont_qvp_card_embossed_name";this.vr=jQuery();this.aC=jQuery();this.lv=jQuery();this.Rr=jQuery();this.yC=jQuery();this.Bv=jQuery();this.Nl=jQuery();this.Lr=jQuery();this.pf=jQuery();this.Mr=jQuery();
this.Nr=jQuery();this.Ll=jQuery();this.Ib=jQuery();this.Hb=jQuery();this.ka=jQuery();this.cD=jQuery();this.er=N(this,"delivery",this.yO);this.zI=N(this,"delivery-success",this.zO);this.yJ=N(this,"region",this.hQ);this.zJ=N(this,"region-success",this.iQ);this.oJ=N(this,"promo",this.RP);this.DB=N(this,"qvp-card-type-change",this.UP);I(this.ja,"qvp-report-settings","hide");I(this.ja,this.getName(),this.DB.getName());return this}m(bo,U);h(bo);d=bo.prototype;d.getName=q("qvp-create");
d.init=function(a){bo.c.init.call(this,a);this.vr=O(this,this.e.EF||this.EF);this.aC=O(this,this.e.BF||this.BF);this.lv=O(this,this.e.CF||this.CF);this.Rr=O(this,this.e.eG||this.eG);this.yC=O(this,this.e.dG||this.dG);this.Bv=O(this,this.e.XF||this.XF);this.Nl=O(this,this.e.YF||this.YF);this.Lr=O(this,this.e.Jt||this.Jt);this.pf=O(this,this.e.WF||this.WF);this.Mr=O(this,this.e.Kt||this.Kt);this.Nr=O(this,this.e.ZF||this.ZF);this.Ll=O(this,this.e.RF||this.RF);this.Ib=O(this,this.e.Qi||this.Qi);this.Hb=
O(this,this.e.Pi||this.Pi);this.ka=O(this,this.e.Vk||this.Vk);this.re=O(this,this.e.fG||this.fG);this.cD=O(this,this.e.KG||this.KG);this.Nl.bindspace(this,"change",function(){this.Bv.val(Dd(jQuery(":selected",this.Nl).text()));this.e.focus=this.Bv.attr("name");this.h(this.er)});this.Nl.val()&&!this.vr.children().size()&&this.Nl.trigger("change");this.pf.bindspace(this,"change",function(){this.Lr.val(Dd(jQuery(":selected",this.pf).text()))});this.Nr.bindspace(this,"change",function(){this.Mr.val(Dd(jQuery(":selected",
this.Nr).text()));this.h(this.yJ)});this.Ll.bindspace(this,"change",function(){this.e.focus=this.Ll.attr("name");this.h(this.er)});this.re.bindspace(this,"input paste keyup change",function(){this.h(this.oJ)});this.Rr.bindspace(this,"change",function(){this.h(this.DB)});a=this.Ll.filter(":checked").data("params")||{};Id(a.value)&&(this.Ib.val(a.value.integer),this.Hb.val(a.value.fraction),this.ka.val(a.value.currencyCode))};
d.yO=function(){var a=this.re.val(),b=this.re.validate().check(this.re,!0);this.re.data("ui-mask")&&(a=this.re.mask("value"),b=b&&this.re.mask("valid"));var c=this.Nl.val(),e=this.Ll.filter(":checked").val();return c?this.F({link:this.PM,sa:"html",data:{country:c,cost:e,promo:b?a:"",isChipCard:"chip"==this.Rr.filter(":checked").val()},k:this.vr,t:this.zI}):(this.vr.empty(),y())};d.zO=function(a){return this.h(this.pB,a,z(function(){return Fe.a().init(this.k)},this))};
d.hQ=function(){if(!this.pf.size())return y();this.pf.children().filter(":not(:first)").remove();this.pf.refresh();this.pf.selectmenu("widget").show();this.lv.hide();return this.G({link:this.yN,data:{region:this.Nr.val(),cost:this.Ll.filter(":checked").val()},k:this.aC,t:this.zJ})};
d.iQ=function(a){if(a.response.data&&Fd(a.response.data.cities)&&a.response.data.cities.length){for(var b=0;b<a.response.data.cities.length;b++)this.pf.append($("\x3coption\x3e").val(a.response.data.cities[b].id).text(a.response.data.cities[b].title));this.pf.refresh();this.pf.selectmenu("widget").show()}else this.pf.selectmenu("widget").hide(),this.lv.show()};
d.RP=function(a){var b=this.re.val(),c=this.re.validate().check(this.re,!0);this.re.data("ui-mask")&&(b=this.re.mask("value"),c=c&&this.re.mask("valid"));if(this.TR==b)return y();clearTimeout(this.SR);this.SR=setTimeout(z(function(){this.TR=b;return this.er.h(a)},this),500);return y()};d.UP=function(){var a=this.Rr.filter(":checked").val();if(a===this.type)return y();this.type=a;a="chip"==a;this.cD.toggle(a);this.yC.disabled(!a);return this.h(this.er)};E(D.a(),bo);
var co=new G(u.qvp.create.main),eo=new G(u.qvp.create.form);function fo(){Q.call(this);this.r=go;I(this.ja,"qvp-report-settings","hide");return this}m(fo,Q);h(fo);fo.prototype.getName=q("qvp-help");E(D.a(),fo);var go=new G(u.qvp.help.main);function ho(){Q.call(this);this.r=io;I(this.jb,"qvp-menu","data-merge-id");I(this.ja,"qvp-report-settings","hide");return this}m(ho,Q);h(ho);ho.prototype.getName=q("qvp-info");E(D.a(),ho);var io=new G(u.qvp.info.main);function An(){oh.call(this);this.mc=pi;this.r=new K(u.qvp.menu.main);N(this,"card",this.Fp);N(this,"info",this.Lp);N(this,"reports",this.Ek);N(this,"activate",this.xk);N(this,"close",this.yk);N(this,"buy",this.ny);N(this,"help",this.zk);N(this,"rename",this.Ny);N(this,"pin",this.Hy);N(this,"data-merge-id",this.Hp);N(this,"data-merge-number",this.Ip);N(this,"items-first",this.Mp);this.Df=L(this,"card");this.Ff=L(this,"info");this.Gf=L(this,"reports");this.zw=L(this,"activate");this.Aw=L(this,"close");
this.Tj=L(this,"buy");this.Ef=L(this,"help");this.Jw=L(this,"rename");this.Ew=L(this,"pin");I(this.Df,"qvp-menu","main");I(this.Df,"qvp-menu","items-first",1);I(this.Ff,"qvp-info","main");I(this.Ff,"qvp-report-settings","hide");I(this.Gf,"qvp-report-list","main",1);I(this.Gf,"qvp-report-settings","show");I(this.zw,"qvp-activate","main");I(this.zw,"qvp-report-settings","hide");I(this.Aw,"qvp-close","main");I(this.Aw,"qvp-report-settings","hide");I(this.Tj,"qvp-create","main");I(this.Tj,"qvp-report-settings",
"hide");I(this.Ef,"qvp-help","main");I(this.Ef,"qvp-report-settings","hide");I(this.Jw,"qvp-rename","main");I(this.Jw,"qvp-report-settings","hide");I(this.Ew,"qvp-pin","main");I(this.Ew,"qvp-report-settings","hide");return this}m(An,oh);h(An);d=An.prototype;d.getName=q("qvp-menu");d.Mp=function(){this.K.first().trigger("action")};d.Xa=function(a){return this.k.size()?An.c.Xa.call(this,a):(this.k=jQuery("\x3cdiv\x3e").appendTo(this.mc.a().getContainer()),this.ha(a))};
d.Hp=function(a){Sd(a.data)&&a.data.set("id",this.data.get("id"))};d.Ip=function(a){Sd(a.data)&&a.data.set("number",this.data.get("number"))};d.Fp=function(a){this.data.empty().set(a.data);return this.trigger(this.Df,a)};d.Lp=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Ff,a)};
d.Ek=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Gf,a)};d.xk=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.zw,a)};
d.yk=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Aw,a)};d.ny=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Tj,a)};
d.zk=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Ef,a)};d.Ny=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Jw,a)};
d.Hy=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Ew,a)};E(D.a(),An);function jo(){Q.call(this);this.r=ko;this.oN=new K(u.qvp.pin.pin);this.qN=lo;this.pN=mo;N(this,"pin",this.Hy);this.lJ=N(this,"pin-success",this.LP);this.kJ=N(this,"pin-failure",this.KP);I(this.jb,"qvp-menu","data-merge-id");I(this.ja,"qvp-report-settings","hide");return this}m(jo,Q);h(jo);d=jo.prototype;d.getName=q("qvp-pin");d.ha=function(a){this.data.empty().set(a.data);return jo.c.ha.call(this,a)};
d.Hy=function(){this.pa.empty().hide();if(!this.l.size()||this.l.valid())return this.G({link:this.oN,data:this.l.formToArray(),t:this.lJ,da:this.kJ})};d.LP=function(){return this.F({link:this.qN})};d.KP=function(){return this.F({link:this.pN})};E(D.a(),jo);var ko=new G(u.qvp.pin.main),lo=new G(u.qvp.pin.success),mo=new G(u.qvp.pin.failure);function no(){Q.call(this);this.r=oo;this.AN=new K(u.qvp.rename.rename);this.CN=po;this.BN=qo;N(this,"rename",this.Ny);this.DJ=N(this,"rename-success",this.pQ);this.CJ=N(this,"rename-failure",this.oQ);I(this.jb,"qvp-menu","data-merge-id");I(this.ja,"qvp-report-settings","hide");return this}m(no,Q);h(no);d=no.prototype;d.getName=q("qvp-rename");d.ha=function(a){this.data.empty().set(a.data);return no.c.ha.call(this,a)};
d.Ny=function(){this.pa.empty().hide();if(!this.l.size()||this.l.valid())return this.G({link:this.AN,data:this.l.formToArray(),t:this.DJ,da:this.CJ})};d.pQ=function(){return this.F({link:this.CN})};d.oQ=function(){return this.F({link:this.BN})};E(D.a(),no);var oo=new G(u.qvp.rename.main),po=new G(u.qvp.rename.success),qo=new G(u.qvp.rename.failure);function ro(){Q.call(this);this.r=so;I(this.jb,"qvp-menu","data-merge-number");I(this.jb,"qvp-report-settings","data-merge");I(this.ab,"qvp-report-list","main");I(this.ja,"qvp-report-settings","show");return this}m(ro,Q);h(ro);ro.prototype.getName=q("qvp-report-list");E(D.a(),ro);var so=new G(u.qvp.report.list.main);function to(){P.call(this);I(this.ab,"qvp-report-list","main");return this}m(to,P);h(to);to.prototype.getName=q("qvp-report-settings");to.prototype.Xa=function(a){to.c.Xa.call(this,a);this.data.empty().set(this.l.formToArray())};E(D.a(),to);function uo(){Q.call(this);this.r=vo;return this}m(uo,Q);h(uo);uo.prototype.getName=q("qvv-create");E(D.a(),uo);var vo=new G(u.qvv.create.main);function wo(){Q.call(this);this.r=xo;I(this.ja,"qvv-report-settings","hide");return this}m(wo,Q);h(wo);wo.prototype.getName=q("qvv-help");E(D.a(),wo);var xo=new G(u.qvv.help.main);function yo(){Q.call(this);this.r=zo;I(this.jb,"qvv-menu","data-merge-id");return this}m(yo,Q);h(yo);yo.prototype.getName=q("qvv-info");E(D.a(),yo);var zo=new G(u.qvv.info.main);function yn(){oh.call(this);this.mc=pi;this.r=new K(u.qvv.menu.main);N(this,"card",this.Fp);N(this,"info",this.Lp);N(this,"reports",this.Ek);N(this,"resend",this.Fk);N(this,"recharge",this.aQ);N(this,"transfer",this.Vy);N(this,"buy",this.ny);N(this,"help",this.zk);N(this,"data-merge-id",this.Hp);N(this,"data-merge-number",this.Ip);N(this,"data-merge-card-id",this.xO);N(this,"items-first",this.Mp);this.Df=L(this,"card");this.Ff=L(this,"info");this.Gf=L(this,"reports");this.fm=L(this,"resend");this.Fw=
L(this,"recharge");this.Kw=L(this,"transfer");this.Tj=L(this,"buy");this.Ef=L(this,"help");I(this.Df,"qvv-menu","main");I(this.Df,"qvv-menu","items-first",1);I(this.Ff,"qvv-info","main");I(this.Ff,"qvv-report-settings","hide");I(this.Gf,"qvv-report-list","main");I(this.Gf,"qvv-report-settings","show");I(this.fm,"qvv-resend","main");I(this.fm,"qvv-report-settings","hide");I(this.Fw,"qvv-recharge","main");I(this.Fw,"qvv-report-settings","hide");I(this.Kw,"qvv-transfer","main");I(this.Kw,"qvv-report-settings",
"hide");I(this.Tj,"qvv-create","main");I(this.Tj,"qvv-report-settings","hide");I(this.Ef,"qvv-help","main");I(this.Ef,"qvv-report-settings","hide");return this}m(yn,oh);h(yn);d=yn.prototype;d.getName=q("qvv-menu");d.Mp=function(){this.K.first().trigger("action")};d.Xa=function(a){return this.k.size()?yn.c.Xa.call(this,a):(this.k=jQuery("\x3cdiv\x3e").appendTo(this.mc.a().getContainer()),this.ha(a))};d.Hp=function(a){Sd(a.data)&&a.data.set("id",this.data.get("id"))};
d.Ip=function(a){Sd(a.data)&&a.data.set("number",this.data.get("number"))};d.xO=function(a){Sd(a.data)&&a.data.set("cardId",this.data.get("id"))};d.Fp=function(a){this.data.empty().set(a.data);return this.trigger(this.Df,a)};d.Lp=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Ff,a)};
d.Ek=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Gf,a)};d.Fk=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.fm,a)};
d.aQ=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Fw,a)};d.Vy=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Kw,a)};
d.ny=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Tj,a)};d.zk=function(a){this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Ef,a)};E(D.a(),yn);function Ao(){U.call(this);this.r=Bo;this.It="#currency";this.hi=jQuery();I(this.jb,"qvv-menu","data-merge-card-id");return this}m(Ao,U);h(Ao);Ao.prototype.getName=q("qvv-recharge");Ao.prototype.init=function(a){Ao.c.init.call(this,a);this.hi=O(this,this.It);this.hi.size()&&(this.hi.attr("name",this.ka.attr("name")),this.ka.parent().html($("\x3cspan\x3e").addClass("cur").text(this.hi.val())),this.ka=this.hi,this.ka.change())};E(D.a(),Ao);var Bo=new G(u.qvv.recharge.main);function Co(){Q.call(this);this.r=Do;I(this.jb,"qvv-menu","data-merge-id");I(this.jb,"qvv-report-settings","data-merge");I(this.ab,"qvv-report-list","main");return this}m(Co,Q);h(Co);Co.prototype.getName=q("qvv-report-list");E(D.a(),Co);var Do=new G(u.qvv.report.list.main);function Eo(){P.call(this);I(this.ab,"qvv-report-list","main");return this}m(Eo,P);h(Eo);Eo.prototype.getName=q("qvv-report-settings");Eo.prototype.Xa=function(a){Eo.c.Xa.call(this,a);this.data.empty().set(this.l.formToArray())};E(D.a(),Eo);function Fo(){Q.call(this);this.r=Go;this.xm=new K(u.qvv.resend.resend);N(this,"resend",this.Fk);this.fm=L(this,"resend");I(this.jb,"qvv-menu","data-merge-id");I(this.fm,"qvv-menu","data-merge-id");return this}m(Fo,Q);h(Fo);Fo.prototype.getName=q("qvv-resend");Fo.prototype.Fk=function(a){a.data=new Td;return this.trigger(this.fm,a,z(function(a){a.link=this.xm;a.t=this.t;a.da=this.da;return this.h(this.Wh,a)},this))};E(D.a(),Fo);var Go=new G(u.qvv.resend.main);function Ho(){Q.call(this);this.r=Io;this.FN=new K(u.qvv.transfer.transfer);this.Jh="[name\x3damount]";this.Qi="[name\x3damountInteger]";this.Pi="[name\x3damountFraction]";this.ma=jQuery();this.Ib=jQuery();this.Hb=jQuery();N(this,"transfer",this.Vy);I(this.jb,"qvv-menu","data-merge-id");return this}m(Ho,Q);h(Ho);Ho.prototype.getName=q("qvv-transfer");
Ho.prototype.init=function(a){Ho.c.init.call(this,a);this.data.empty();this.ma=O(this,this.e.Jh||this.Jh);this.Ib=O(this,this.e.Qi||this.Qi);this.Hb=O(this,this.e.Pi||this.Pi);this.Ib.bindspace(this,"input paste keyup change",function(){this.ma.trigger("amount")});this.Hb.bindspace(this,"input paste keyup change",function(){this.ma.trigger("amount")});this.ma.bindspace(this,"amount",function(){var a=(parseInt(this.Ib.val())||0)+(parseInt(this.Hb.val())||0)/100;arguments.callee.value!=a&&(arguments.callee.value=
a,this.ma.val(a).trigger("keyup"))}).trigger("amount")};Ho.prototype.Vy=function(){this.pa.empty().hide();return this.l.valid()?this.G({data:this.l.formToArray(),link:this.FN,t:this.t,da:this.da}):y()};Ho.prototype.Ik=function(a){return a.response&&a.response.data&&(a.response.data.resultMessage&&(a.response.message=a.response.data.resultMessage),!a.response.data.correct)?Ho.c.yy.call(this,a):Ho.c.Ik.call(this,a)};E(D.a(),Ho);var Io=new G(u.qvv.transfer.main);function Jo(){Q.call(this);this.r=Ko;this.uE=new K(u.replenish.all.filters);this.wm=new K(u.replenish.all.methods);this.zh=new K(u.replenish.all.result);this.fN=new K(u.replenish.all.instruction);this.rS="[data-container-name\x3dfilters]";this.yV="[data-container-name\x3dtypes-items]";this.lS="[data-container-name\x3dcommissions-items]";this.mV="[data-container-name\x3dsearch]";this.dU="[data-container-name\x3dmethods]";this.pv=jQuery();this.rw=jQuery();this.mv=jQuery();this.jh=jQuery();this.mg=jQuery();
this.Vg=N(this,"update-link",this.fF);N(this,"change-type",this.mO);N(this,"change-commission",this.gO);this.sI=N(this,"change-search",this.jO);N(this,"change-sort",this.kO);N(this,"instruction",this.UO);this.LI=N(this,"instruction-success",this.VO);this.IJ=N(this,"scroll",this.wQ);this.fu="";this.tg=1;return this}m(Jo,Q);h(Jo);d=Jo.prototype;d.getName=q("replenish-all");
d.init=function(a){Jo.c.init.call(this,a);this.pv=O(this,this.rS);this.rw=O(this,this.yV);this.mv=O(this,this.lS);this.jh=O(this,this.mV);this.mg=O(this,this.dU);this.fu=this.jh.val();this.jh.bindspace(this,"input paste keyup change",function(){var a=this.jh.val();this.fu!=a&&(clearTimeout(this.vH),this.vH=setTimeout(z(function(){this.fu=a;var c={};c[this.jh.attr("name")]=this.fu;this.h(this.sI,{data:c})},this),300))});$(window).bindspace(this,"scroll",function(){this.h(this.IJ)}).scroll()};
d.nb=function(){$(window).unbindspace(this,"scroll");Jo.c.nb.call(this)};d.fF=function(a){a.link=this.r;a.replace=a.link.getPath()==F.a().fc();this.data.remove("mode");return this.Ji(a).always(z(function(){return this.Db({data:this.data.kc()})},this))};
d.mO=function(a){this.data.replace(a.data);this.rw.removeClass("active").ishas(a.target).addClass("active");this.jh.val("");this.data.remove(this.jh.attr("name"));this.data.replace("mode",this.e.mode);this.tg=1;return this.F({link:this.wm,data:this.data,k:this.mg,t:this.Vg})};
d.gO=function(a){this.data.replace(a.data);this.mv.removeClass("active").ishas(a.target).addClass("active");this.jh.val("");this.data.remove(this.jh.attr("name"));this.data.replace("mode",this.e.mode);this.tg=1;return this.F({link:this.wm,data:this.data,k:this.mg,t:this.Vg})};
d.jO=function(a){clearTimeout(this.vH);this.mv.removeClass("active").first().addClass("active");this.rw.removeClass("active").first().addClass("active");this.data.remove("method","commission").replace(a.data);this.data.replace("mode",this.e.mode);this.tg=1;return this.F({link:this.wm,data:this.data,k:this.mg,t:this.Vg})};d.kO=function(a){this.data.replace(a.data);this.data.replace("mode",this.e.mode);this.tg=1;return this.F({link:this.wm,data:this.data,k:this.mg,t:this.Vg})};
d.UO=function(a){return this.F({link:this.fN,data:a.data,request:a.target,t:this.LI})};d.VO=function(a){var b=w(),c=v("\x3cdiv\x3e");c.html(a.response).dialog({modal:!0,width:"auto",resizable:!1,draggable:!1,closeEnabled:!0,closeOnEscape:!0,title:"",open:function(){Fe.a().init(a.response).always(function(){c.dialog("option","position","center")})},close:function(){b.resolve();c.remove()}});return b};
d.wQ=function(a){a=this.mg.data("params")||{};if(!a.maxPages||!this.mg.children().size()||this.tg>=a.maxPages||$(document).height()>=$(window).scrollTop()+$(window).height()+300)return y();a=this.mg.find("table");var b=$("\x3cdiv\x3e").html("\x3cbr /\x3e\x3cbr /\x3e").insertAfter(a).hide();this.tg+=1;var c=new Td;c.set(this.data.kc());c.replace("mode",this.e.mode);c.replace("currentPage",this.tg);return this.h(this.ag,{link:this.zh,data:c,request:b,k:a,sa:"append"},z(function(){return this.h(this.yl)},
this))};E(D.a(),Jo);var Ko=new G(u.replenish.all.main);function Lo(){Jo.call(this);this.r=Mo;this.rN=new K(u.replenish.map.points);this.eN=new K(u.replenish.map.information);this.aN=new K(u.replenish.map.icon.terminal);this.UM=new K(u.replenish.map.icon.card);this.YM=new K(u.replenish.map.icon.office);this.$M=new K(u.replenish.map.icon.shop);this.VM=new K(u.replenish.map.icon.money);this.WM=new K(u.replenish.map.icon.moneycard);new K(u.replenish.map.icon.cluster);this.ZM=new K(u.replenish.map.icon.shadow);this.XM=new K(u.replenish.map.icon.none);this.$T=
"[data-container-name\x3dmap]";this.cS="[data-container-name\x3daddress]";this.lU="[data-container-name\x3downers]";this.Yr=v();this.Rv=v();this.tj=v();this.Tv=v();this.mJ=N(this,"points",this.SE);this.nJ=N(this,"points-success",this.MP);this.HI=N(this,"information",this.QO);this.II=N(this,"information-success",this.RO);N(this,"zoom",this.CR);N(this,"change-address",this.eO);this.rI=N(this,"change-owners",this.hO);this.mt=this.map=null;this.Mf=[];return this}m(Lo,Jo);h(Lo);d=Lo.prototype;
d.getName=q("replenish-map");
d.init=function(a){Lo.c.init.call(this,a);this.Yr=O(this,this.$T);this.Rv=v("\x3cdiv\x3e");this.tj=O(this,this.cS);this.Tv=O(this,this.lU);this.map||this.Yr.request(!0);var b="callback"+v.now();window[b]=z(function(){try{delete window[b]}catch(a){window[b]=void 0}if(!this.map){this.Yr.request(!1);var e=parseFloat(this.data.get("lat")),f=parseFloat(this.data.get("lng")),g=parseInt(this.data.get("zoom"));e&&f&&g||(e=55.73421489447054,f=37.62129170835117,g=13,window.navigator.geolocation&&window.navigator.geolocation.getCurrentPosition(z(function(a){this.map.setCenter(new google.maps.LatLng(a.coords.latitude,
a.coords.longitude));this.map.setZoom(16)},this)));this.map=new google.maps.Map(this.Yr.get(0),{scrollwheel:!1,center:new google.maps.LatLng(e,f),mapTypeId:google.maps.MapTypeId.ROADMAP,zoom:g});google.maps.event.addListenerOnce(this.map,"idle",z(function(){},this));google.maps.event.addListener(this.map,"bounds_changed",z(function(){clearTimeout(this.uH);this.uH=setTimeout(z(function(){this.h(this.mJ)},this),100)},this));this.mt=new google.maps.InfoWindow({disableAutoPan:!0});google.maps.event.addListener(this.mt,
"closeclick",z(function(){No(this)},this))}this.cB=this.tj.val();this.tj.autocomplete({minLength:1,delay:500,open:z(function(){this.tj.autocomplete("widget").width(this.tj.outerWidth())},this),change:function(){return!1},close:z(function(){this.tj.blur()},this),select:z(function(a,b){(new google.maps.Geocoder).geocode({address:b.item.value},z(function(a,b){b==google.maps.GeocoderStatus.OK&&a.length&&this.map.fitBounds(a[0].geometry.viewport)},this))},this),focus:function(){return!1},source:z(function(a,
b){$.ajax({url:"https://maps-api-ssl.google.com/maps/suggest",data:{q:a.term,cp:10,json:!0},dataType:"jsonp",success:function(a){b($.map(a.suggestion||[],function(a){return{label:a.query,value:a.query}}))}})},this)});this.Tv.bindspace(this,"change",function(){this.h(this.rI)})},this);if("undefined"==typeof google||"undefined"==typeof google.maps)jQuery.get("//maps.googleapis.com/maps/api/js",{v:"3",sensor:!1,language:settings.qiwi.locale,callback:b},null,"script");else window[b]()};
d.nb=function(){this.Rv.request(!1);clearTimeout(this.tH);clearTimeout(this.uH);Lo.c.nb.call(this)};
d.SE=function(){this.data.replace({lng:this.map.getCenter().lng(),lat:this.map.getCenter().lat(),zoom:this.map.getZoom()});var a=Bf(new of(window.location.href));a.set("lng",this.map.getCenter().lng());a.set("lng",this.map.getCenter().lat());a.set("zoom",this.map.getZoom());var b=this.data.kc();delete b.lng;delete b.lat;b.lng1=this.map.getBounds().getNorthEast().lng();b.lat1=this.map.getBounds().getNorthEast().lat();b.lng2=this.map.getBounds().getSouthWest().lng();b.lat2=this.map.getBounds().getSouthWest().lat();
return this.G({link:this.rN,data:new Td(b),query:a.toString(),request:this.Rv,t:this.nJ,da:this.Je})};
d.MP=function(a){for(var b=0;b<this.Mf.length;b++)this.ud&&this.Mf[b].data.id==this.ud.data.id||this.Mf[b].setMap(null);this.Mf=[];this.ud&&this.Mf.push(this.ud);if(Fd(a.response.data))for(b=0;b<a.response.data.length;b++)Oo(this,a.response.data[b]);for(var b=0,c=[];b<this.Mf.length;b+=1){for(var e=this.Mf[b].getPosition(),f=[],g=0;g<this.Mf.length;g+=1)e.equals(this.Mf[g].getPosition())&&-1==vd(g,c)&&(f.push(g),c.push(g));for(var l=g=0,r=f.length,B=2*Math.PI/r;g<r;g+=1,l+=B)this.Mf[f[g]].setPosition(new google.maps.LatLng(e.lat()+
5E-5*Math.sin(l),e.lng()+1E-4*Math.cos(l)))}this.ud&&google.maps.event.trigger(this.ud,"click");return this.fF(a)};
function Oo(a,b){var c={terminal:a.aN,card:a.UM,office:a.YM,shop:a.$M,money:a.VM,moneycard:a.WM},e=new google.maps.Marker({zIndex:1,position:new google.maps.LatLng(b.lat,b.lng),icon:new google.maps.MarkerImage(Pd(c[b.icon],K)?c[b.icon].Be:a.XM),shadow:new google.maps.MarkerImage(a.ZM.Be),title:b.description,data:{id:b.id,cluster:b.cluster,ownerId:b.ownerId}});a.ud&&e.data.id==a.ud.data.id?(a.ud.data=e.data,a.ud.setPosition(e.getPosition())):(e.setMap(a.map),google.maps.event.addListener(e,"click",
z(function(){this.h(this.HI,{FE:e})},a)),a.Mf.push(e))}d.QO=function(a){this.data.replace(a.FE.data);this.ud=a.FE;return this.F({link:this.eN,data:this.data,k:v("\x3cdiv\x3e"),t:this.II})};d.RO=function(a){a=a.response;this.k.append(a);a.width(a.outerWidth()+10);a.height(a.outerHeight()+10);Fe.a().init(a);this.mt.setContent(a.get(0));this.mt.open(this.map,this.ud)};d.CR=function(){this.map.setCenter(this.ud.getPosition());this.map.setZoom(this.map.getZoom()+1)};
d.eO=function(a){var b=new google.maps.Geocoder,c=this.tj.val();if(c==this.cB)return y();clearTimeout(this.tH);this.cB=c;var e=w();this.tH=setTimeout(z(function(){b.geocode({address:this.cB},z(function(a,b){b==google.maps.GeocoderStatus.OK&&a.length&&this.map.setCenter(a[0].geometry.location);e.resolve()},this))},this),a.timeout?a.timeout:500);return e.promise()};function No(a){a.ud=null;a.data.remove("id");a.data.remove("cluster")}
d.hO=function(){this.data.remove("owners");var a=!1,b=this.Tv.filter(":checked");b.each(z(function(b,e){var f=$(e).val();this.data.set("owners",f);this.ud&&this.ud.data.AW===f&&(a=!0)},this));0<b.length&&!a&&No(this);return this.SE()};E(D.a(),Lo);var Mo=new G(u.replenish.map.main);function Po(){J.call(this);this.iS="ul.bullets \x3e li";this.sV="ul.steps \x3e li";this.tV=".step-right";this.uV=".step-left";this.oS="[data-container-name\x3ddescription]";this.zV="[data-container-name\x3dvideo]";this.nV="[data-container-name\x3dshow-description]";this.oV="[data-container-name\x3dshow-video]";this.nU="[data-container-name\x3dprint]";this.Kn=jQuery();this.qg=jQuery();this.zf=jQuery();this.mi=jQuery();this.ig=jQuery();this.yf=jQuery();this.ov=jQuery();this.sw=jQuery();this.lw=jQuery();
this.mw=jQuery();jQuery();N(this,"change-bullet",this.fO);N(this,"change-step",this.vW);N(this,"next-step",this.xP);N(this,"prev-step",this.NP);N(this,"show-description",this.BQ);N(this,"show-video",this.CQ);N(this,"print",this.OP);this.tN=new K(u.replenish.instruction.print);this.gd=x();return this}m(Po,J);h(Po);d=Po.prototype;d.getName=q("replenish-method-instruction");
d.init=function(a){Po.c.init.call(this,a);this.Kn=O(this,this.iS);this.qg=O(this,this.sV);this.zf=O(this,this.tV);this.mi=O(this,this.uV);this.ov=O(this,this.oS);this.sw=O(this,this.zV);this.lw=O(this,this.nV);this.mw=O(this,this.oV);O(this,this.nU);this.ig=this.Kn.first().addClass("active");this.yf=this.qg.first().show();this.zf.show();this.mi.hide()};
d.fO=function(a){if("resolved"==!this.gd.state())return this.gd.promise();this.gd=w();a=this.Kn.removeClass("active").ishas(a.target).addClass("active");if(a.is(this.ig))this.gd.resolve();else{var b=a.index(),c=b<this.ig.index()?"right":"left",e="left"==c?"right":"left";this.ig=a;a=this.qg.eq(b);a.is(this.qg.first())?(this.zf.show(),this.mi.hide()):(a.is(this.qg.last())?this.zf.hide():this.zf.show(),this.mi.show());this.yf.hide("slide",{direction:c},z(function(){this.yf=this.qg.eq(b).show("slide",
{direction:e},this.gd.resolve)},this))}return this.gd.promise()};
d.xP=function(){if("resolved"==!this.gd.state())return this.gd.promise();var a=this.yf.next(),b=this.ig.next();if(!a.size()||!b.size())return y();this.gd=w();this.Kn.removeClass("active");a.is(this.qg.first())?(this.zf.show(),this.mi.hide()):(a.is(this.qg.last())?this.zf.hide():this.zf.show(),this.mi.show());this.yf.hide("slide",{direction:"left"},z(function(){this.yf=a;this.ig=b;this.yf.show("slide",{direction:"right"},this.gd.resolve);this.ig.addClass("active")},this));return this.gd.promise()};
d.NP=function(){if("resolved"==!this.gd.state())return this.gd.promise();var a=this.yf.prev(),b=this.ig.prev();if(!a.size()||!b.size())return y();this.gd=w();this.Kn.removeClass("active");a.is(this.qg.first())?(this.zf.show(),this.mi.hide()):(a.is(this.qg.last())?this.zf.hide():this.zf.show(),this.mi.show());this.yf.hide("slide",{direction:"right"},z(function(){this.yf=a;this.ig=b;this.yf.show("slide",{direction:"left"},this.gd.resolve);this.ig.addClass("active")},this));return this.gd.promise()};
d.CQ=function(){this.mw.addClass("active");this.lw.removeClass("active");this.sw.show();this.ov.hide()};d.BQ=function(){this.mw.removeClass("active");this.lw.addClass("active");this.sw.hide();this.ov.show()};d.OP=function(a){var b=parseInt(($(window).width()-800)/2),c=parseInt(($(window).height()-600)/2);window.open(this.tN.Be+"?"+Bd(a.data),"rmi","left\x3d"+b+",top\x3d"+c+",width\x3d800,height\x3d600,menubar\x3d0,toolbar\x3d0,location\x3d0,directories\x3d0,status\x3d0,resizable\x3d0,scrollbars\x3d1").print()};
E(D.a(),Po);function Qo(){Lo.call(this);this.r=Ro;return this}m(Qo,Lo);h(Qo);Qo.prototype.getName=q("replenish-terminals");E(D.a(),Qo);var Ro=new G(u.replenish.terminals.main);function So(){Jo.call(this);this.r=To;this.EN=new K(u.replenish.tools.tools);this.sN=new K(u.replenish.tools.popular);this.wV="[data-container-name\x3dtools]";this.xV="[data-container-name\x3dtools-items]";this.mU="[data-container-name\x3dpopular]";this.pw=jQuery();this.jD=jQuery();this.po=jQuery();N(this,"change-tool",this.lO);N(this,"change-popular",this.iO);this.CB=N(this,"popular",this.Iy);I(this.ja,this.getName(),this.CB.getName());return this}m(So,Jo);h(So);d=So.prototype;d.getName=q("replenish-tools");
d.init=function(a){So.c.init.call(this,a);this.pw=O(this,this.wV);this.jD=O(this,this.xV);this.po=O(this,this.mU)};d.Iy=function(){return this.po.size()?this.F({link:this.sN,k:this.po}).always(z(function(){this.init(this.e)},this)):y()};
d.lO=function(a){this.tg=1;this.data.empty().set(a.data);this.pw.removeClass("front");this.jD.removeClass("active").ishas(a.target).addClass("active");this.po.remove();a=this.F({link:this.uE,data:this.data,k:this.pv,t:this.Vg});var b=this.F({link:this.wm,data:this.data,k:this.mg,t:this.Vg});return x(a,b).promise()};
d.iO=function(a){this.tg=1;this.data.empty().set(a.data);this.po.remove();a=this.F({link:this.EN,data:this.data,k:this.pw,t:this.Vg});var b=this.F({link:this.uE,data:this.data,k:this.pv,t:this.Vg}),c=this.F({link:this.wm,data:this.data,k:this.mg,t:this.Vg});return x(a,b,c).promise()};E(D.a(),So);var To=new G(u.replenish.tools.main);function Uo(){P.call(this);this.sG="[name\x3dstart]";this.UF="[name\x3dfinish]";this.CC=jQuery();this.wC=jQuery();this.ab.addListener(function(a){return Vo.a().V.h(a)});return this}m(Uo,P);h(Uo);Uo.prototype.getName=q("report-daterange");Uo.prototype.init=function(a){Uo.c.init.call(this,a);this.CC=O(this,this.e.sG||this.sG);this.wC=O(this,this.e.UF||this.UF);this.CC.bindspace(this,"change",function(){this.l.valid()&&this.Yh.h()});this.wC.bindspace(this,"change",function(){this.l.valid()&&this.Yh.h()})};
Uo.prototype.Xa=function(a){var b=this.k.is(":visible");Uo.c.Xa.call(this,a);if(!b)return this.data.empty().set(this.l.formToArray()),this.h(this.Yh)};Uo.prototype.tc=function(a){Uo.c.tc.call(this,a);this.data.empty()};E(D.a(),Uo);function Vo(){Q.call(this);this.Gz="[data-container-name\x3ditem]";this.QT="[data-container-name\x3ditem-extra]";this.zj=jQuery();this.EC=jQuery();this.r=Fl;this.SM=new K(u.report.list.extra);N(this,"item-error",this.aP);N(this,"item-extra",this.bP);this.jb.addListener(function(a){return Wo.a().Zh.h(a)});this.jb.addListener(function(a){return Xo.a().Zh.h(a)});this.jb.addListener(function(a){return Uo.a().Zh.h(a)});this.ab.addListener(function(a){return Vo.a().V.h(a)});return this}m(Vo,Q);h(Vo);
Vo.prototype.getName=q("report-list");Vo.prototype.init=function(a){Vo.c.init.call(this,a);this.zj=O(this,this.Gz);this.EC=O(this,this.QT)};Vo.prototype.aP=function(a){var b=w(),c=v("\x3cdiv\x3e");c.html(a.message).dialog(zd(!0,{modal:!0,resizable:!1,draggable:!1,closeEnabled:!1,closeOnEscape:!1,title:u.shell.dialog.title.info,close:function(){b.resolve();c.remove()},buttons:[{text:u.shell.dialog.button.close,click:function(){c.dialog("close")}}]},a));return b};
Vo.prototype.bP=function(a){var b=this.zj.ishas(a.target).toggleClass("active"),c=this.EC.filter(function(){return b.has(this).size()});return!c.size()||1<c.children().size()?y():this.F({link:this.SM,data:a.data,request:a.target,k:c,sa:"append"})};E(D.a(),Vo);var Fl=new G(u.report.list.main);function Wo(){oh.call(this);this.mc=pi;this.r=new K(u.report.menu);N(this,"daterange",this.wy);this.LJ=N(this,"settings",this.AQ);this.Io=L(this,"daterange");this.LD=L(this,"settings");this.WG="[data-container-name\x3dtoggle]";this.kw=jQuery();this.ab.addListener(function(a){return Uo.a().ad.h(a)});this.ab.addListener(function(a){return Vo.a().V.h(a)},1);this.Io.addListener(function(a){return Uo.a().ce.h(a)});this.LD.addListener(function(a){return Xo.a().ce.h(a)});return this}m(Wo,oh);h(Wo);
Wo.prototype.getName=q("report-menu");Wo.prototype.init=function(a){Wo.c.init.call(this,a);this.kw=O(this,this.e.WG||this.WG)};Wo.prototype.wy=function(a){this.data.empty();this.K.removeClass("active").filter(function(){return v(this).is(a.target)||v(this).has(a.target).size()}).addClass("active");return this.trigger(this.Io,a)};Wo.prototype.AQ=function(a){this.kw.toggle();if(this.kw.is(":hidden"))return this.trigger(this.LD,a)};E(D.a(),Wo);function Xo(){P.call(this);this.mG="#reportCurrency";this.nG="input[name\x3dpaymentModeType]";this.oG="input[name\x3dpaymentModeValue]";this.Iv=jQuery();this.AC=jQuery();this.BC=jQuery();this.zD=L(this,"hide");this.ab.addListener(function(a){return Vo.a().V.h(a)});this.zD.addListener(function(a){return Wo.a().LJ.h(a)});return this}m(Xo,P);h(Xo);Xo.prototype.getName=q("report-settings");
Xo.prototype.init=function(a){Xo.c.init.call(this,a);this.Iv=O(this,this.e.mG||this.mG);this.AC=O(this,this.e.nG||this.nG);this.BC=O(this,this.e.oG||this.oG);this.Iv.bindspace(this,"change",function(){var a=this.Iv.find(":selected").data("params");this.AC.val(a.paymentModeType);this.BC.val(a.paymentModeValue)}).change()};Xo.prototype.Xa=function(a){Xo.c.Xa.call(this,a);this.data.empty().set(this.l.formToArray())};Xo.prototype.tc=function(a){Xo.c.tc.call(this,a);return this.trigger(this.zD,a)};
E(D.a(),Xo);function Yo(){Q.call(this);this.HS="[name\x3ddate]";this.mC=v();this.r=Zo;this.ab.addListener(function(a){return Yo.a().V.h(a)});return this}m(Yo,Q);h(Yo);Yo.prototype.getName=q("report-courses");Yo.prototype.init=function(a){Yo.c.init.call(this,a);this.mC=O(this,this.HS);this.formSerialize=this.l.formSerialize();this.mC.bindspace(this,"change",function(){var a=this.l.formSerialize();this.l.valid()&&this.formSerialize!=a&&(this.formSerialize=a,this.Yh.h())})};E(D.a(),Yo);var Zo=new G(u.report.courses.main);function $o(){P.call(this);this.FM=new K(u.search.autocomplete);this.tq="[name\x3dsearchPhrase]";this.sf=v();this.pi=L(this,"provider",Vg.bb());this.nI=N(this,"autocomplete",this.$N);this.oI=N(this,"autocomplete-success",this.aO);N(this,"example",this.HO);this.ab.addListener(function(a){return ap.a().tB.h(a)});this.ab.addListener(function(a){return ap.a().V.h(a)});return this}m($o,P);h($o);d=$o.prototype;d.getName=q("search-form");
d.init=function(a){$o.c.init.call(this,a);this.sf=O(this,this.e.tq||this.tq);this.sf.autocomplete({minLength:2,delay:500,change:function(){return!1},select:z(function(a,c){var e=c.item.data;e.reload||this.e.reload?window.location.href=e.path:F.a().open(e.path,e.link,null);return!1},this),focus:function(){return!1},source:z(function(a,c){this.nI.h({fg:c})},this)});F.a().getPath()==ng.getPath()&&this.sf.focus()};
d.Cb=function(a){if(2>Dd(this.sf.val()).length)return y();this.sf.autocomplete("close");return this.e.reload?(this.l[0].submit(),y()):$o.c.Cb.call(this,a)};d.$N=function(a){return 2>Dd(this.sf.val()).length?y():this.G({data:this.l.formToArray(),link:this.FM,k:jQuery(),t:this.oI,da:this.Je,fg:a.fg})};
d.aO=function(a){a.fg&&a.response&&a.fg(xd(a.response.data.items,function(a){var c=a.contentValue,e=a.fullValue;c&&"/"==c.substring(0,1)&&(c=u.qiwi.context+c);e&&"/"==e.substring(0,1)&&(e=u.qiwi.context+e);return{label:a.text,value:a.text,data:{link:c,path:e,reload:a.reload}}}));return y()};d.HO=function(a){this.sf.val(Dd(a.target.text()));return this.Cb(a)};E(D.a(),$o);Lj.search={};
Lj.search.list=function(a){var b='\x3cdiv class\x3d"providersPage" data-widget\x3d"'+(a.component?V(a.component):"text")+'" '+(null!=a.paging?'data-params\x3d\'{"data":{"paging.currentNumber":'+V(a.paging.currentNumber)+',"paging.size":'+V(a.paging.size)+"}}'":"")+"\x3e"+(a.useSuggestion?'\x3cdiv id\x3d"searchSuggestion"\x3e\x3cdiv class\x3d"icon"\x3e\x3c/div\x3e\x3cdiv class\x3d"tip"\x3e'+V(settings.provider.search.suggestion)+"\x3c/div\x3e\x3c/div\x3e":"");if(null==a.items||0==a.items.length)b+="\x3cspan\x3e"+
V(a.emptyMessage)+"\x3c/span\x3e";else{for(var b=b+((null!=a.paging?'\x3cdiv class\x3d"topPaging"\x3e'+Lj.hg.Hh.KA(a.paging)+Lj.hg.Hh.st(a.paging)+'\x3cdiv class\x3d"clearBoth"\x3e\x3c/div\x3e\x3c/div\x3e':"")+'\x3cdiv class\x3d"providersWrap"\x3e\x3cul class\x3d"providersList"\x3e'),c=a.items,e=c.length,f=0;f<e;f++)var g=c[f],b=b+("PAGE"==g.item.type._name?'\x3cli\x3e\x3ca href\x3d"'+(g.item.url&&"/"==g.item.url[0]?V(settings.qiwi.context):"")+V(g.item.url)+'" target\x3d"_self"\x3e\x3cdiv class\x3d"frame"\x3e\x3cimg src\x3d"'+
V(g.logo)+'" class\x3d"logo"/\x3e\x3c/div\x3e'+V(g.item.text)+"\x3c/a\x3e\x3c/li\x3e":'\x3cli\x3e\x3ca href\x3d"'+V(settings.payment.form.main.path)+"?provider\x3d"+V(g.item.id.id)+'"\x3e\x3cdiv class\x3d"frame"\x3e\x3cimg src\x3d"'+V(g.logo)+'" class\x3d"logo"/\x3e\x3c/div\x3e'+V(g.item.text)+"\x3c/a\x3e\x3c/li\x3e");b+="\x3c/ul\x3e\x3c/div\x3e"+(null!=a.paging?'\x3cdiv class\x3d"bottomPaging"\x3e'+Lj.hg.Hh.st(a.paging)+'\x3cdiv class\x3d"clearBoth"\x3e\x3c/div\x3e\x3c/div\x3e':"")}return b+"\x3c/div\x3e"};function ap(){Mj.call(this);this.r=bp;this.jb.addListener(function(a){return $o.a().Zh.h(a)});return this}m(ap,Mj);h(ap);ap.prototype.getName=q("search-list");E(D.a(),ap);var bp=new G(u.search.list);function cp(){P.call(this);this.tq="[name\x3dsearchPhrase]";this.sf=jQuery();this.ab.addListener(function(a){return dp.a().V.h(a)});return this}m(cp,P);h(cp);cp.prototype.getName=q("search-public-form");
cp.prototype.init=function(a){cp.c.init.call(this,a);this.sf=O(this,this.e.tq||this.tq);this.sf.bindspace(this,"input paste keyup change",function(){var a=arguments.callee;clearTimeout(a.timeout);a.timeout=setTimeout(z(function(){var c=this.sf.val();c&&c!=a.value&&(a.value=c,this.h(this.Yh))},this),500)})};E(D.a(),cp);Lj.kz={};Lj.kz.search={};
Lj.kz.search.list=function(a){var b="";if(0==a.items.length)b+='\x3csection class\x3d"search-result wrap" data-widget\x3d"text" data-params\x3d\'{"type":"full"}\'\x3e'+V(a.emptyMessage)+"\x3c/section\x3e";else{b+='\x3csection class\x3d"search-result linker" data-widget\x3d"'+(a.component?V(a.component):"text")+'"\x3e';a=a.items;for(var c=a.length,e=0;e<c;e++)var f=a[e],b=b+('\x3cdiv class\x3d"search-result_i"\x3e\x3cdiv class\x3d"search-result_i_ico"\x3e\x3cdiv class\x3d"search-result_i_ico_cnt"\x3e'+(f.logo?
"PAGE"==f.item.type._name?'\x3ca class\x3d"search-result_i_cnt_ico_cnt_link no-hover" href\x3d"'+(f.item.url&&"/"==f.item.url[0]?V(settings.qiwi.context):"")+V(f.item.url)+'" target\x3d"_self"\x3e\x3cimg src\x3d"'+V(f.logo)+'" /\x3e\x3c/a\x3e':'\x3ca class\x3d"search-result_i_cnt_ico_cnt_link no-hover" href\x3d"'+V(settings.payment.form.main.path)+"?provider\x3d"+V(f.item.id.id)+'" target\x3d"_self"\x3e\x3cimg src\x3d"'+V(f.logo)+'" /\x3e\x3c/a\x3e':"")+'\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"search-result_i_cnt"\x3e\x3cdiv class\x3d"search-result_i_cnt_tx"\x3e'+
("PAGE"==f.item.type._name?'\x3ca class\x3d"search-result_i_cnt_tx_link" href\x3d"'+(f.item.url&&"/"==f.item.url[0]?V(settings.qiwi.context):"")+V(f.item.url)+'" target\x3d"_self"\x3e'+V(f.item.text)+"\x3c/a\x3e":'\x3ca class\x3d"search-result_i_cnt_tx_link" href\x3d"'+V(settings.payment.form.main.path)+"?provider\x3d"+V(f.item.id.id)+'" target\x3d"_self"\x3e'+V(f.item.text)+"\x3c/a\x3e"+(f.item.url?'\x3ca class\x3d"search-result_i_cnt_tx_url no-hover" href\x3d"'+V(f.item.url)+'" target\x3d"_blank"\x3e'+
V(f.item.url)+"\x3c/a\x3e":""))+"\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e");b+="\x3c/section\x3e"}return b};function dp(){Mj.call(this);this.r=ep;this.uN=new K(u.provider.provider.redirect);this.Fb=N(this,"load",this.$b);this.jb.addListener(function(a){return cp.a().Zh.h(a)});Mg(this.ja,Zg);I(this.ja,this.getName(),this.Fb.getName());return this}m(dp,Mj);h(dp);dp.prototype.getName=q("search-public-list");dp.prototype.$b=function(){return this.k.children().size()?y():this.ha({})};dp.prototype.af=function(a){return this.G({link:this.uN,data:a.data,t:this.qW})};E(D.a(),dp);var ep=new G(u.search["public"]);var fp=null,gp=null,hp=null;function ip(a){for(var b=[],c=0,e=0;e<a.length;e++){for(var f=a.charCodeAt(e);255<f;)b[c++]=f&255,f>>=8;b[c++]=f}if(!ha(b))throw Error("encodeByteArray takes an array as a parameter");jp();a=gp;c=[];for(e=0;e<b.length;e+=3){var g=b[e],l=(f=e+1<b.length)?b[e+1]:0,r=e+2<b.length,B=r?b[e+2]:0,C=g>>2,g=(g&3)<<4|l>>4,l=(l&15)<<2|B>>6,B=B&63;r||(B=64,f||(l=64));c.push(a[C],a[g],a[l],a[B])}return c.join("")}
function lp(a){var b;jp();var c=hp;b=[];for(var e=0;e<a.length;){var f=c[a.charAt(e++)],g=e<a.length?c[a.charAt(e)]:0;++e;var l=e<a.length?c[a.charAt(e)]:64;++e;var r=e<a.length?c[a.charAt(e)]:64;++e;if(null==f||null==g||null==l||null==r)throw Error();b.push(f<<2|g>>4);64!=l&&(b.push(g<<4&240|l>>2),64!=r&&b.push(l<<6&192|r))}if(8192>b.length)b=String.fromCharCode.apply(null,b);else{a="";for(c=0;c<b.length;c+=8192)e=sb(b,c,c+8192),a+=String.fromCharCode.apply(null,e);b=a}return b}
function jp(){if(!fp){fp={};gp={};hp={};for(var a=0;65>a;a++)fp[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(a),gp[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),hp[gp[a]]=a,62<=a&&(hp["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(a)]=a)}};function mp(a){if(a.classList)return a.classList;a=a.className;return ia(a)&&a.match(/\S+/g)||[]}function np(a,b){return a.classList?a.classList.contains(b):lb(mp(a),b)}function op(a,b){a.classList?a.classList.add(b):np(a,b)||(a.className+=0<a.className.length?" "+b:b)}function pp(a,b){if(a.classList)n(b,function(b){op(a,b)});else{var c={};n(mp(a),function(a){c[a]=!0});n(b,function(a){c[a]=!0});a.className="";for(var e in c)a.className+=0<a.className.length?" "+e:e}}
function qp(a,b){a.classList?a.classList.remove(b):np(a,b)&&(a.className=ab(mp(a),function(a){return a!=b}).join(" "))}function rp(a,b){a.classList?n(b,function(b){qp(a,b)}):a.className=ab(mp(a),function(a){return!lb(b,a)}).join(" ")};function sp(a){for(var b;a;){b=ma(a);if(b=tp[b])break;a=a.c?a.c.constructor:null}return b?ka(b.a)?b.a():new b:null}function W(a,b){if(!ka(a))throw Error("Invalid component class "+a);if(!ka(b))throw Error("Invalid renderer class "+b);var c=ma(a);tp[c]=b}function X(a,b){if(!a)throw Error("Invalid class name "+a);if(!ka(b))throw Error("Invalid decorator function "+b);up[a]=b}function vp(a){var b;a=mp(a);for(var c=0,e=a.length;c<e;c++)if(b=a[c],b=b in up?up[b]():null)return b;return null}
var tp={},up={};function wp(){}h(wp);d=wp.prototype;d.A=function(){return"qiwi-component"};d.kb=function(){return[this.A()]};d.g=function(a){return a.p().g("div",this.kb(a).join(" "))};d.Va=function(a){return a};d.Gb=function(){return!0};d.ea=function(a,b){b.id&&a.ic(b.id);return b};d.Dg=function(a){a=a.b();Rh(a,!0,Wb);s&&(a.hideFocus=!0)};function xp(a,b){ai.call(this,b);this.o=a||sp(this.constructor)}m(xp,ai);W(xp,wp);X("qiwi-component",function(){return new xp});xp.prototype.o=null;xp.prototype.g=function(){this.aa=this.o.g(this)};var yp;function zp(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")}function Ap(a,b,c){ga(c)&&(c=c.join(" "));var e="aria-"+b;""===c||void 0==c?(yp||(yp={atomic:!1,autocomplete:"none",dropeffect:"none",haspopup:!1,live:"off",multiline:!1,multiselectable:!1,orientation:"vertical",readonly:!1,relevant:"additions text",required:!1,sort:"none",busy:!1,disabled:!1,hidden:!1,invalid:"false"}),c=yp,b in c?a.setAttribute(e,c[b]):a.removeAttribute(e)):a.setAttribute(e,c)}
function Bp(a,b){var c=a.getAttribute("aria-"+b);return null==c||void 0==c?"":String(c)};function Cp(a){if(a.altKey&&!a.ctrlKey||a.metaKey||112<=a.keyCode&&123>=a.keyCode)return!1;switch(a.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 224:case 92:return!1;case 0:return!Wb;default:return 166>a.keyCode||183<a.keyCode}}
function Dp(a,b,c,e,f){if(!(s||Xb&&dc("525")))return!0;if(Yb&&f)return Ep(a);if(f&&!e)return!1;ja(b)&&(b=Fp(b));if(!c&&(17==b||18==b||Yb&&91==b))return!1;if(Xb&&e&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(s&&e&&b==a)return!1;switch(a){case 13:return!0;case 27:return!Xb}return Ep(a)}
function Ep(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||Xb&&0==a)return!0;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}function Fp(a){if(Wb)a=Gp(a);else if(Yb&&Xb)a:switch(a){case 93:a=91;break a}return a}
function Gp(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};function Hp(a,b){Hf.call(this);a&&this.Xu(a,b)}m(Hp,Hf);d=Hp.prototype;d.aa=null;d.bt=null;d.Cx=null;d.ct=null;d.Ae=-1;d.Fi=-1;d.Vu=!1;
var Ip={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Jp={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Kp=s||Xb&&dc("525"),Lp=Yb&&Wb;d=Hp.prototype;
d.TL=function(a){Xb&&(17==this.Ae&&!a.ctrlKey||18==this.Ae&&!a.altKey||Yb&&91==this.Ae&&!a.metaKey)&&(this.Fi=this.Ae=-1);-1==this.Ae&&(a.ctrlKey&&17!=a.keyCode?this.Ae=17:a.altKey&&18!=a.keyCode?this.Ae=18:a.metaKey&&91!=a.keyCode&&(this.Ae=91));Kp&&!Dp(a.keyCode,this.Ae,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):(this.Fi=Fp(a.keyCode),Lp&&(this.Vu=a.altKey))};d.UL=function(a){this.Fi=this.Ae=-1;this.Vu=a.altKey};
d.handleEvent=function(a){var b=a.xg,c,e,f=b.altKey;s&&"keypress"==a.type?(c=this.Fi,e=13!=c&&27!=c?b.keyCode:0):Xb&&"keypress"==a.type?(c=this.Fi,e=0<=b.charCode&&63232>b.charCode&&Ep(c)?b.charCode:0):Vb?(c=this.Fi,e=Ep(c)?b.keyCode:0):(c=b.keyCode||this.Fi,e=b.charCode||0,Lp&&(f=this.Vu),Yb&&63==e&&224==c&&(c=191));var g=c=Fp(c),l=b.keyIdentifier;c?63232<=c&&c in Ip?g=Ip[c]:25==c&&a.shiftKey&&(g=9):l&&l in Jp&&(g=Jp[l]);a=g==this.Ae;this.Ae=g;b=new Mp(g,e,a,b);b.altKey=f;this.dispatchEvent(b)};
d.b=function(){return this.aa};d.Xu=function(a,b){this.ct&&this.detach();this.aa=a;this.bt=se(this.aa,"keypress",this,b);this.Cx=se(this.aa,"keydown",this.TL,b,this);this.ct=se(this.aa,"keyup",this.UL,b,this)};d.detach=function(){this.bt&&(Be(this.bt),Be(this.Cx),Be(this.ct),this.ct=this.Cx=this.bt=null);this.aa=null;this.Fi=this.Ae=-1};d.I=function(){Hp.c.I.call(this);this.detach()};function Mp(a,b,c,e){de.call(this,e);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}m(Mp,de);function Np(a){this.Gn=a}h(Np);d=Np.prototype;d.Zb=function(){return this.Gn};function Op(a,b){a&&(a.tabIndex=b?0:-1)}d.g=function(a){return a.p().g("div",this.kb(a).join(" "))};d.Va=function(a){return a};d.Gb=function(a){return"DIV"==a.tagName};d.ea=function(a,b){b.id&&a.ic(b.id);var c=this.A(),e=!1,f=mp(b);f&&n(f,function(b){b==c?e=!0:b&&(b==c+"-disabled"?a.N(!1):b==c+"-horizontal"?Pp(a,Qp):b==c+"-vertical"&&Pp(a,Rp))},this);e||op(b,c);Sp(this,a,this.Va(b));return b};
function Sp(a,b,c){if(c)for(var e=c.firstChild,f;e&&e.parentNode==c;){f=e.nextSibling;if(1==e.nodeType){var g=a.Ow(e);g&&(g.aa=e,b.isEnabled()||g.N(!1),b.ee(g),g.ea(e))}else e.nodeValue&&""!=Da(e.nodeValue)||c.removeChild(e);e=f}}d.Ow=function(a){return vp(a)};d.Dg=function(a){a=a.b();Rh(a,!0,Wb);s&&(a.hideFocus=!0);var b=this.Zb();b&&zp(a,b)};d.ec=function(a){return a.b()};d.A=function(){return"goog-container"};
d.kb=function(a){var b=this.A(),c=[b,a.Mk==Qp?b+"-horizontal":b+"-vertical"];a.isEnabled()||c.push(b+"-disabled");return c};function Tp(){}var Up;h(Tp);var Vp={button:"pressed",checkbox:"checked",menuitem:"selected",menuitemcheckbox:"checked",menuitemradio:"checked",radio:"checked",tab:"selected",treeitem:"selected"};d=Tp.prototype;d.Zb=function(){};d.g=function(a){var b=a.p().g("div",this.kb(a).join(" "),a.getContent());Wp(this,a,b);return b};d.Va=function(a){return a};d.Fo=function(a,b,c){if(a=a.b?a.b():a){var e=[b];s&&!dc("7")&&(e=Xp(mp(a),b),e.push(b));(c?pp:rp)(a,e)}};d.Gb=function(){return!0};
d.ea=function(a,b){b.id&&a.ic(b.id);var c=this.Va(b);c&&c.firstChild?Yp(a,c.firstChild.nextSibling?pb(c.childNodes):c.firstChild):a.Af=null;var e=0,f=this.A(),g=this.A(),l=!1,r=!1,B=!1,C=pb(mp(b));n(C,function(a){l||a!=f?r||a!=g?e|=this.Ms(a):r=!0:(l=!0,g==f&&(r=!0));1==this.Ms(a)&&id(c)&&ld(c,!1)},this);a.Yi=e;l||(C.push(f),g==f&&(r=!0));r||C.push(g);var H=a.If;H&&C.push.apply(C,H);if(s&&!dc("7")){var M=Xp(C);0<M.length&&(C.push.apply(C,M),B=!0)}if(!l||!r||H||B)b.className=C.join(" ");Wp(this,a,
b);return b};d.Dg=function(a){ji(a)&&this.Uf(a.b(),!0);a.isEnabled()&&this.fd(a,a.Ia())};function Zp(a,b,c){if(a=c||a.Zb())c=b.getAttribute("role")||null,a!=c&&zp(b,a)}function Wp(a,b,c){b.Ia()||Ap(c,"hidden",!b.Ia());b.isEnabled()||a.Cd(c,1,!b.isEnabled());$p(b,8)&&a.Cd(c,8,aq(b,8));$p(b,16)&&a.Cd(c,16,b.Eg());$p(b,64)&&a.Cd(c,64,aq(b,64))}d.Mg=function(a,b){Rh(a,!b,!s&&!Vb)};d.Uf=function(a,b){this.Fo(a,this.A()+"-rtl",b)};d.Rd=function(a){var b;return $p(a,32)&&(b=a.ec())?id(b):!1};
d.fd=function(a,b){var c;if($p(a,32)&&(c=a.ec())){if(!b&&a.sp()){try{c.blur()}catch(e){}a.sp()&&a.ik(null)}id(c)!=b&&ld(c,b)}};d.setVisible=function(a,b){R(a,b);a&&Ap(a,"hidden",!b)};d.Pa=function(a,b,c){var e=a.b();if(e){var f=this.Uo(b);f&&this.Fo(a,f,c);this.Cd(e,b,c)}};d.Cd=function(a,b,c){Up||(Up={1:"disabled",8:"selected",16:"checked",64:"expanded"});b=Up[b];var e=a.getAttribute("role")||null;e&&(e=Vp[e]||b,b="checked"==b||"selected"==b?e:b);b&&Ap(a,b,c)};
d.setContent=function(a,b){var c=this.Va(a);if(c&&(Zc(c),b))if(ia(b))fd(c,b);else{var e=function(a){if(a){var b=Lc(c);c.appendChild(ia(a)?b.createTextNode(a):a)}};ga(b)?n(b,e):!ha(b)||"nodeType"in b?e(b):n(pb(b),e)}};d.ec=function(a){return a.b()};d.A=function(){return"goog-control"};d.kb=function(a){var b=this.A(),c=[b],e=this.A();e!=b&&c.push(e);b=a.Yi;for(e=[];b;){var f=b&-b;e.push(this.Uo(f));b&=~f}c.push.apply(c,e);(a=a.If)&&c.push.apply(c,a);s&&!dc("7")&&c.push.apply(c,Xp(c));return c};
function Xp(a,b){var c=[];b&&(a=a.concat([b]));n([],function(e){!gb(e,sa(lb,a))||b&&!lb(e,b)||c.push(e.join("_"))});return c}d.Uo=function(a){this.rr||bq(this);return this.rr[a]};d.Ms=function(a){if(!this.jH){this.rr||bq(this);var b=this.rr,c={},e;for(e in b)c[b[e]]=e;this.jH=c}a=parseInt(this.jH[a],10);return isNaN(a)?0:a};function bq(a){var b=a.A();b.replace(/\xa0|\s/g," ");a.rr={1:b+"-disabled",2:b+"-hover",4:b+"-active",8:b+"-selected",16:b+"-checked",32:b+"-focused",64:b+"-open"}};function cq(a){var b=vp(a);b&&b.ea(a);return b};function Y(a,b,c){ai.call(this,c);this.o=b||sp(this.constructor);this.Af=ba(a)?a:null}m(Y,ai);d=Y.prototype;d.Af=null;d.Yi=0;d.jf=39;d.Hn=255;d.Oq=0;d.$d=!0;d.If=null;d.Ss=!0;d.ge=!1;d.hz=null;function dq(a,b){a.j&&b!=a.Ss&&eq(a,b);a.Ss=b}d.ec=function(){return this.o.ec(this)};d.Hs=function(){return this.Ze||(this.Ze=new Hp)};
d.Fo=function(a,b){b?a&&(this.If?lb(this.If,a)||this.If.push(a):this.If=[a],this.o.Fo(this,a,!0)):a&&this.If&&nb(this.If,a)&&(0==this.If.length&&(this.If=null),this.o.Fo(this,a,!1))};d.g=function(){var a=this.o.g(this);this.aa=a;Zp(this.o,a,this.ap());this.ge||this.o.Mg(a,!1);this.Ia()||this.o.setVisible(a,!1)};d.ap=function(){return this.hz};d.Va=function(){return this.o.Va(this.b())};d.Gb=function(a){return this.o.Gb(a)};
d.Gc=function(a){this.aa=a=this.o.ea(this,a);Zp(this.o,a,this.ap());this.ge||this.o.Mg(a,!1);this.$d="none"!=a.style.display};d.n=function(){Y.c.n.call(this);this.o.Dg(this);if(this.jf&-2&&(this.Ss&&eq(this,!0),$p(this,32))){var a=this.ec();if(a){var b=this.Hs();b.Xu(a);this.Q().C(b,"key",this.xe).C(a,"focus",this.Rs).C(a,"blur",this.ik)}}};
function eq(a,b){var c=a.Q(),e=a.b();b?(c.C(e,"mouseover",a.Us).C(e,"mousedown",a.dd).C(e,"mouseup",a.Ci).C(e,"mouseout",a.Ts),a.hp!=da&&c.C(e,"contextmenu",a.hp),s&&c.C(e,"dblclick",a.Qs)):(c.W(e,"mouseover",a.Us).W(e,"mousedown",a.dd).W(e,"mouseup",a.Ci).W(e,"mouseout",a.Ts),a.hp!=da&&c.W(e,"contextmenu",a.hp),s&&c.W(e,"dblclick",a.Qs))}d.B=function(){Y.c.B.call(this);this.Ze&&this.Ze.detach();this.Ia()&&this.isEnabled()&&this.o.fd(this,!1)};
d.I=function(){Y.c.I.call(this);this.Ze&&(this.Ze.O(),delete this.Ze);delete this.o;this.If=this.Af=null};d.getContent=function(){return this.Af};d.setContent=function(a){this.o.setContent(this.b(),a);this.Af=a};function Yp(a,b){a.Af=b}d.qh=function(){var a=this.getContent();if(!a)return"";a=ia(a)?a:ga(a)?bb(a,od).join(""):md(a);return Ca(a)};d.Uf=function(a){Y.c.Uf.call(this,a);var b=this.b();b&&this.o.Uf(b,a)};d.Mg=function(a){this.ge=a;var b=this.b();b&&this.o.Mg(b,a)};d.Ia=function(){return this.$d};
d.setVisible=function(a,b){if(b||this.$d!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.b();c&&this.o.setVisible(c,a);this.isEnabled()&&this.o.fd(this,a);this.$d=a;return!0}return!1};d.isEnabled=function(){return!aq(this,1)};d.N=function(a){var b=this.getParent();b&&"function"==typeof b.isEnabled&&!b.isEnabled()||!fq(this,1,!a)||(a||(this.setActive(!1),this.Tf(!1)),this.Ia()&&this.o.fd(this,a),this.Pa(1,!a,!0))};d.Tf=function(a){fq(this,2,a)&&this.Pa(2,a)};d.xh=function(){return aq(this,4)};
d.setActive=function(a){fq(this,4,a)&&this.Pa(4,a)};d.AA=function(a){fq(this,8,a)&&this.Pa(8,a)};d.Eg=function(){return aq(this,16)};d.Ym=function(a){fq(this,16,a)&&this.Pa(16,a)};d.sp=function(){return aq(this,32)};d.ia=function(a){fq(this,64,a)&&this.Pa(64,a)};function aq(a,b){return!!(a.Yi&b)}d.Pa=function(a,b,c){c||1!=a?$p(this,a)&&b!=aq(this,a)&&(this.o.Pa(this,a,b),this.Yi=b?this.Yi|a:this.Yi&~a):this.N(!b)};function $p(a,b){return!!(a.jf&b)}
d.jc=function(a,b){if(this.j&&aq(this,a)&&!b)throw Error("Component already rendered");!b&&aq(this,a)&&this.Pa(a,!1);this.jf=b?this.jf|a:this.jf&~a};function gq(a,b){return!!(a.Hn&b)&&$p(a,b)}function fq(a,b,c){return $p(a,b)&&aq(a,b)!=c&&(!(a.Oq&b)||a.dispatchEvent(ci(b,c)))&&!a.ni}d.Us=function(a){(!a.relatedTarget||!dd(this.b(),a.relatedTarget))&&this.dispatchEvent("enter")&&this.isEnabled()&&gq(this,2)&&this.Tf(!0)};
d.Ts=function(a){a.relatedTarget&&dd(this.b(),a.relatedTarget)||!this.dispatchEvent("leave")||(gq(this,4)&&this.setActive(!1),gq(this,2)&&this.Tf(!1))};d.hp=da;d.dd=function(a){this.isEnabled()&&(gq(this,2)&&this.Tf(!0),!ge(a)||Xb&&Yb&&a.ctrlKey||(gq(this,4)&&this.setActive(!0),this.o.Rd(this)&&this.ec().focus()));this.ge||!ge(a)||Xb&&Yb&&a.ctrlKey||a.preventDefault()};d.Ci=function(a){this.isEnabled()&&(gq(this,2)&&this.Tf(!0),this.xh()&&this.zd(a)&&gq(this,4)&&this.setActive(!1))};
d.Qs=function(a){this.isEnabled()&&this.zd(a)};d.zd=function(a){gq(this,16)&&this.Ym(!this.Eg());gq(this,8)&&this.AA(!0);gq(this,64)&&this.ia(!aq(this,64));var b=new be("action",this);a&&(b.altKey=a.altKey,b.ctrlKey=a.ctrlKey,b.metaKey=a.metaKey,b.shiftKey=a.shiftKey,b.fz=a.fz);return this.dispatchEvent(b)};d.Rs=function(){gq(this,32)&&fq(this,32,!0)&&this.Pa(32,!0)};d.ik=function(){gq(this,4)&&this.setActive(!1);gq(this,32)&&fq(this,32,!1)&&this.Pa(32,!1)};
d.xe=function(a){return this.Ia()&&this.isEnabled()&&this.cd(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};d.cd=function(a){return 13==a.keyCode&&this.zd(a)};W(Y,Tp);X("goog-control",function(){return new Y(null)});function hq(a,b,c){ai.call(this,c);this.o=b||sp(this.constructor);this.Mk=a||Rp}m(hq,ai);var Qp="horizontal",Rp="vertical";d=hq.prototype;d.Dx=null;d.Ze=null;d.o=null;d.Mk=null;d.$d=!0;d.Yb=!0;d.So=!0;d.sc=-1;d.xc=null;d.Gh=!1;d.Tu=!1;d.MR=!0;d.Yg=null;d.ec=function(){return this.Dx||this.o.ec(this)};d.Hs=function(){return this.Ze||(this.Ze=new Hp(this.ec()))};d.g=function(){this.aa=this.o.g(this)};d.Va=function(){return this.o.Va(this.b())};d.Gb=function(a){return this.o.Gb(a)};
d.Gc=function(a){this.aa=this.o.ea(this,a);"none"==a.style.display&&(this.$d=!1)};d.n=function(){hq.c.n.call(this);gi(this,function(a){a.j&&iq(this,a)},this);var a=this.b();this.o.Dg(this);this.setVisible(this.$d,!0);this.Q().C(this,"enter",this.ix).C(this,"highlight",this.mx).C(this,"unhighlight",this.rx).C(this,"open",this.ZL).C(this,"close",this.gx).C(a,"mousedown",this.dd).C(Lc(a),"mouseup",this.LL).C(a,["mousedown","mouseup","mouseover","mouseout","contextmenu"],this.cx);this.Rd()&&jq(this,!0)};
function jq(a,b){var c=a.Q(),e=a.ec();b?c.C(e,"focus",a.Rs).C(e,"blur",a.ik).C(a.Hs(),"key",a.xe):c.W(e,"focus",a.Rs).W(e,"blur",a.ik).W(a.Hs(),"key",a.xe)}d.B=function(){this.Vi(-1);this.xc&&this.xc.ia(!1);this.Gh=!1;hq.c.B.call(this)};d.I=function(){hq.c.I.call(this);this.Ze&&(this.Ze.O(),this.Ze=null);this.o=this.xc=this.Yg=this.Dx=null};d.ix=function(){return!0};
d.mx=function(a){var b=li(this,a.target);if(-1<b&&b!=this.sc){var c=kq(this);c&&c.Tf(!1);this.sc=b;c=kq(this);this.Gh&&c.setActive(!0);this.MR&&this.xc&&c!=this.xc&&($p(c,64)?c.ia(!0):this.xc.ia(!1))}b=this.b();null!=a.target.b()&&Ap(b,"activedescendant",a.target.b().id)};d.rx=function(a){a.target==kq(this)&&(this.sc=-1);this.b().removeAttribute("aria-activedescendant")};d.ZL=function(a){(a=a.target)&&a!=this.xc&&a.getParent()==this&&(this.xc&&this.xc.ia(!1),this.xc=a)};
d.gx=function(a){a.target==this.xc&&(this.xc=null)};d.dd=function(a){this.Yb&&(this.Gh=!0);var b=this.ec();b&&id(b)?b.focus():a.preventDefault()};d.LL=function(){this.Gh=!1};d.cx=function(a){var b=lq(this,a.target);if(b)switch(a.type){case "mousedown":b.dd(a);break;case "mouseup":b.Ci(a);break;case "mouseover":b.Us(a);break;case "mouseout":b.Ts(a);break;case "contextmenu":b.hp(a)}};
function lq(a,b){if(a.Yg)for(var c=a.b();b&&b!==c;){var e=b.id;if(e in a.Yg)return a.Yg[e];b=b.parentNode}return null}d.Rs=function(){};d.ik=function(){this.Vi(-1);this.Gh=!1;this.xc&&this.xc.ia(!1)};d.xe=function(a){return this.isEnabled()&&this.Ia()&&(0!=hi(this)||this.Dx)&&this.cd(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};
d.cd=function(a){var b=kq(this);if(b&&"function"==typeof b.xe&&b.xe(a)||this.xc&&this.xc!=b&&"function"==typeof this.xc.xe&&this.xc.xe(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case 27:if(this.Rd())this.ec().blur();else return!1;break;case 36:mq(this);break;case 35:nq(this);break;case 38:if(this.Mk==Rp)oq(this);else return!1;break;case 37:if(this.Mk==Qp)ji(this)?pq(this):oq(this);else return!1;break;case 40:if(this.Mk==Rp)pq(this);else return!1;break;case 39:if(this.Mk==
Qp)ji(this)?oq(this):pq(this);else return!1;break;default:return!1}return!0};function iq(a,b){var c=b.b(),c=c.id||(c.id=b.Ha());a.Yg||(a.Yg={});a.Yg[c]=b}d.ee=function(a,b){hq.c.ee.call(this,a,b)};d.ai=function(a,b,c){a.Oq|=2;a.Oq|=64;!this.Rd()&&this.Tu||a.jc(32,!1);dq(a,!1);var e=a.getParent()==this?li(this,a):-1;hq.c.ai.call(this,a,b,c);a.j&&this.j&&iq(this,a);a=e;-1==a&&(a=hi(this));a==this.sc?this.sc=Math.min(hi(this)-1,b):a>this.sc&&b<=this.sc?this.sc++:a<this.sc&&b>this.sc&&this.sc--};
d.removeChild=function(a,b){if(a=ia(a)?ei(this,a):a){var c=li(this,a);-1!=c&&(c==this.sc?(a.Tf(!1),this.sc=-1):c<this.sc&&this.sc--);var e=a.b();e&&e.id&&this.Yg&&(c=this.Yg,e=e.id,e in c&&delete c[e])}a=hq.c.removeChild.call(this,a,b);dq(a,!0);return a};function Pp(a,b){if(a.b())throw Error("Component already rendered");a.Mk=b}d.Ia=function(){return this.$d};
d.setVisible=function(a,b){if(b||this.$d!=a&&this.dispatchEvent(a?"show":"hide")){this.$d=a;var c=this.b();c&&(R(c,a),this.Rd()&&Op(this.ec(),this.Yb&&this.$d),b||this.dispatchEvent(this.$d?"aftershow":"afterhide"));return!0}return!1};d.isEnabled=function(){return this.Yb};
d.N=function(a){this.Yb!=a&&this.dispatchEvent(a?"enable":"disable")&&(a?(this.Yb=!0,gi(this,function(a){a.PH?delete a.PH:a.N(!0)})):(gi(this,function(a){a.isEnabled()?a.N(!1):a.PH=!0}),this.Gh=this.Yb=!1),this.Rd()&&Op(this.ec(),a&&this.$d))};d.Rd=function(){return this.So};d.fd=function(a){a!=this.So&&this.j&&jq(this,a);this.So=a;this.Yb&&this.$d&&Op(this.ec(),a)};d.Vi=function(a){(a=ii(this,a))?a.Tf(!0):-1<this.sc&&kq(this).Tf(!1)};d.Tf=function(a){this.Vi(li(this,a))};
function kq(a){return ii(a,a.sc)}function mq(a){qq(a,function(a,c){return(a+1)%c},hi(a)-1)}function nq(a){qq(a,function(a,c){a--;return 0>a?c-1:a},0)}function pq(a){qq(a,function(a,c){return(a+1)%c},a.sc)}function oq(a){qq(a,function(a,c){a--;return 0>a?c-1:a},a.sc)}function qq(a,b,c){c=0>c?li(a,a.xc):c;var e=hi(a);c=b.call(a,c,e);for(var f=0;f<=e;){var g=ii(a,c);if(g&&a.WB(g)){a.Vi(c);break}f++;c=b.call(a,c,e)}}d.WB=function(a){return a.Ia()&&a.isEnabled()&&$p(a,2)};W(hq,Np);X("goog-container",function(){return new hq});function rq(){this.Gn=void 0}m(rq,Np);h(rq);rq.prototype.A=function(){return"qiwi-forms-container"};rq.prototype.Dg=function(a){a=a.b();s&&(a.hideFocus=!0);var b=this.Zb();b&&zp(a,b)};function sq(a,b){hq.call(this,null,b,a)}m(sq,hq);W(sq,rq);X("qiwi-forms-container",function(){return new sq});d=sq.prototype;d.So=!1;d.Tu=!1;d.cx=function(a){var b=lq(this,a.target);if(b)switch(a.type){case "dblclick":b.Qs(a)}};d.dd=da;d.addElement=function(a){this.ee(a,!0)};d.sd=function(a){return jb(this.Rc(),k(this.Qw,this,a))};
d.Rc=function(){var a=[];if(!ki(this))return a;for(var b=0;b<this.va.length;b+=1){var c=this.va[b];c instanceof tq&&qb(a,c);c instanceof uq&&c.Z()&&qb(a,c.Rc());c instanceof vq&&c.Z()&&qb(a,c.Rc())}return a};d.Qw=function(a,b){return b.getName()==a};d.Ls=function(){var a=[];if(!ki(this))return a;for(var b=0;b<this.va.length;b+=1){var c=this.va[b];c instanceof vq&&qb(a,c);c instanceof uq&&c.Z()&&qb(a,c.getContainer().Ls())}return a};d.xi=function(){return kb(this.ek(),k(this.zL,this))};
d.ek=function(){var a=[];if(!ki(this))return a;for(var b=0;b<this.va.length;b+=1){var c=this.va[b];c instanceof vq&&c.Z()&&qb(a,c.ek());c instanceof uq&&c.Z()&&qb(a,c.ek())}return a};d.zL=function(a){return null!=a};d.setValues=function(a){if(ki(this))for(var b=0;b<this.va.length;b+=1){var c=this.va[b];if(c instanceof tq){var e=a.get(c.getName());if(null==e)continue;c.P(e)}c instanceof uq&&c.Z()&&c.setValues(a);c instanceof vq&&c.Z()&&c.setValues(a)}};
d.Ma=function(){var a={};if(!ki(this))return a;for(var b=0;b<this.va.length;b+=1){var c=this.va[b];c instanceof tq&&c.Z()&&Eb(a,c.Ma());c instanceof uq&&c.Z()&&Eb(a,c.Ma());c instanceof vq&&c.Z()&&Eb(a,c.Ma())}return a};d.Kg=function(a){if(ki(this))for(var b=0;b<this.va.length;b+=1){var c=this.va[b];c instanceof tq&&c.Yc(a);c instanceof vq&&c.Kg();c instanceof uq&&c.Kg()}};d.n=function(){sq.c.n.call(this);this.dispatchEvent(wq)};d.B=function(){this.dispatchEvent(xq);sq.c.B.call(this)};
var wq="container-enter",xq="container-exit";function yq(){}m(yq,wp);h(yq);d=yq.prototype;d.A=function(){return"qiwi-forms-form"};d.Qc=function(){return"qiwi-forms-form-container"};d.We=function(){return"qiwi-forms-form-controls"};d.g=function(a){var b=a.p();a=b.g("form",{"class":this.kb(a).join(" "),method:"post",enctype:"multipart/form-data"});b.appendChild(a,b.g("div",this.Qc()));b.appendChild(a,b.g("div",this.We()));return a};
d.ea=function(a,b){var c=this.pd(b);c&&a.Sf(cq(ad(c)));(c=this.zg(b))&&a.Zm(cq(ad(c)));return yq.c.ea.call(this,a,b)};d.Gb=function(a){return"FORM"==a.tagName};d.pd=function(a){return t(this.Qc(),a)};d.zg=function(a){return t(this.We(),a)};d.hc=function(a,b){var c=a.p();a.b()||a.g();var e=this.pd(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.Xd=function(a,b){var c=a.p();a.b()||a.g();var e=this.zg(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};function zq(a,b){xp.call(this,a,b)}m(zq,xp);W(zq,yq);X("qiwi-forms-form",function(){return new zq});d=zq.prototype;d.hc=function(a){this.o.hc(this,a);this.Sf(a)};d.Sf=function(a){this.U=a;di(a,this)};d.getContainer=function(){return this.U};d.Xd=function(a){this.o.Xd(this,a);this.Zm(a)};d.Zm=function(a){this.Ua=a;this.j&&this.Gi(null!=a)};d.sd=function(a){return this.U.sd(a)};d.Rc=function(){return this.U.Rc()};d.Gs=function(){return bb(this.U.Rc(),this.vL)};
d.vL=function(a){return{title:a.getTitle(),value:a.Js()}};d.Ls=function(){return this.U.Ls()};d.setValues=function(a){this.U.setValues(a)};d.Ma=function(){return this.U.Ma()};d.n=function(){this.U&&!this.U.j&&this.U.b()&&this.U.n();this.Ua&&!this.Ua.j&&this.Ua.b()&&this.Ua.n();this.Ua&&this.Gi(!0);Aq(this,!0);zq.c.n.call(this)};d.B=function(){this.U&&this.U.B();this.Ua&&(this.Gi(!1),this.Ua.B());Aq(this,!1);zq.c.B.call(this)};
d.I=function(){this.U&&(this.U.O(),delete this.U);this.Ua&&(this.Ua.O(),delete this.Ua);zq.c.I.call(this)};d.Gi=function(a){var b=this.Q();(a?b.C:b.W).call(b,this.Ua,"action",this.ip)};function Aq(a,b){var c=a.Q();(b?c.C:c.W).call(c,a,Bq,a.jk)}d.ip=function(a){var b=new be(Cq);b.name=a.target.xa;this.dispatchEvent(b)};d.jk=function(a){var b=new be(Dq);b.Lw=a.target.getName();b.value=a.value;this.dispatchEvent(b)};
d.Z=function(a){return 0===hb(this.Rc(),k(this.tM,this,a))&&0===hb(this.Ls(),k(this.wM,this,a))};d.tM=function(a,b){return!b.Z(a)};d.wM=function(a,b){return!b.Z(a)};d.Ma=function(){return this.U.Ma()};var Cq="forms-form-submit",Dq="forms-form-field-change";function Eq(){}m(Eq,yq);h(Eq);d=Eq.prototype;d.A=function(){return"qiwi-payment-form"};d.Qc=function(){return"qiwi-payment-form-container"};d.We=function(){return"qiwi-payment-form-controls"};d.dk=function(){return"qiwi-payment-form-provider"};function Fq(){return"qiwi-payment-form-source"}function Gq(){return"qiwi-payment-form-acquiring"}d.ui=function(){return"qiwi-payment-form-information"};d.Sc=function(){return"qiwi-payment-form-header"};d.Ks=function(a){return t(this.dk(),a)};
d.lm=function(a){return t(this.ui(),a)};d.ak=function(a){return t(this.Sc(),a)};
d.g=function(a){var b=a.p(),c=b.g("form",{"class":this.kb(a).join(" "),method:"post",enctype:"multipart/form-data"});b.appendChild(c,b.g("div",this.dk()));b.appendChild(c,b.g("div",this.Sc()));a.qK?(b.appendChild(c,b.g("div",this.Qc())),b.appendChild(c,b.g("div",this.ui())),b.appendChild(c,b.g("div",Fq())),b.appendChild(c,b.g("div",Gq()))):(b.appendChild(c,b.g("div",this.ui())),b.appendChild(c,b.g("div",Fq())),b.appendChild(c,b.g("div",Gq())),b.appendChild(c,b.g("div",this.Qc())));b.appendChild(c,
b.g("div","qiwi-payment-form-amount"));b.appendChild(c,b.g("div","qiwi-payment-form-comment"));b.appendChild(c,b.g("div",this.We()));b.appendChild(c,b.g("div","qiwi-payment-form-footer"));R(this.lm(c),!1);return c};d.Og=function(a,b){var c=a.p();a.b()||a.g();var e=this.Ks(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.gf=function(a,b){a.p();a.b()||a.g();var c=this.lm(a.b());if(c){Zc(c);var e=Xc(b);c.appendChild(e);R(c,null!=b)}};
d.fl=function(a,b){a.p();a.b()||a.g();var c=this.ak(a.b());if(c){Zc(c);var e=Xc(b);c.appendChild(e);R(c,null!=b)}};d.gA=function(a,b){a.p();a.b()||a.g();var c=t("qiwi-payment-form-footer",a.b());if(c){Zc(c);var e=Xc(b);c.appendChild(e);R(c,null!=b)}};d.Wi=function(a,b){var c=a.p();a.b()||a.g();var e=t(Fq(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};
d.Vz=function(a,b){var c=a.p();a.b()||a.g();var e=t(Gq(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.Wz=function(a,b){var c=a.p();a.b()||a.g();var e=t("qiwi-payment-form-amount",a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.cA=function(a,b){var c=a.p();a.b()||a.g();var e=t("qiwi-payment-form-comment",a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};function Hq(a,b){xp.call(this,a,b);this.bj=new Iq(this.xw,0,this);this.cu=new Iq(this.XK,0,this)}m(Hq,zq);W(Hq,Eq);X("qiwi-payment-form",function(){return new Hq});d=Hq.prototype;d.Ad=function(a){this.sb=a};d.Og=function(a){this.o.Og(this,a);this.wA(a)};d.wA=function(a){this.Vd=a;di(a,this)};d.cn=function(a){this.ol=a};d.xi=function(){return this.ol};function Jq(a){return a.U.xi()||a.xi()}d.Wz=function(a){this.o.Wz(this,a);this.Ra&&Kq(this,!1);this.Ra=a;di(a,this);this.j&&Kq(this,!0)};
d.Wi=function(a){this.o.Wi(this,a);this.lb&&Lq(this,!1);this.lb=a;di(a,this);this.j&&Lq(this,!0)};d.Vz=function(a){this.o.Vz(this,a);this.ta&&Mq(this,!1);this.ta=a;di(a,this);this.j&&Mq(this,!0)};d.yg=function(){return this.ta};d.cA=function(a){this.o.cA(this,a);this.bd=a;di(a,this)};d.gf=function(a){this.o.gf(this,a)};d.fl=function(a){this.o.fl(this,a)};d.gA=function(a){this.o.gA(this,a)};d.Bg=function(a,b){return jb(this.VR,k(this.yL,this,a,b),this)};
d.yL=function(a,b,c){return a&&b&&c.hm.Ha()==a.Ha()&&c.FH.Ha()==b.Ha()};d.Gs=function(){var a=Hq.c.Gs.call(this);qb(a,{title:this.Ra.getTitle(),value:this.Ra.Js()});var b=this.Ra.IH,c;c=this.Ra;var e=c.Bg();c=e?Nq(e.hm,Oq(e,c.Uq),!0):Nq(c.ra.Ga().xa,c.Uq,!0);qb(a,{title:b,value:c});qb(a,{title:this.bd.getTitle(),value:this.bd.Js()});return a};
d.n=function(){Hq.c.n.call(this);this.Vd&&!this.Vd.j&&this.Vd.b()&&this.Vd.n();this.Ra&&!this.Ra.j&&this.Ra.b()&&this.Ra.n();this.lb&&!this.lb.j&&this.lb.b()&&this.lb.n();this.ta&&!this.ta.j&&this.ta.b()&&this.ta.n();this.bd&&!this.bd.j&&this.bd.b()&&this.bd.n();this.Ra&&Kq(this,!0);this.lb&&Lq(this,!0);this.ta&&Mq(this,!0);this.U&&Pq(this,!0);this.bj.stop();this.bj.start();this.cu.stop();this.cu.start()};
d.B=function(){this.Vd&&this.Vd.B();this.Ra&&(this.Ra.B(),Kq(this,!1));this.ta&&(this.ta.B(),Mq(this,!1));this.lb&&(this.lb.B(),Lq(this,!1));this.bd&&this.bd.B();this.U&&Pq(this,!1);Hq.c.B.call(this)};d.I=function(){this.Vd&&(this.Vd.O(),delete this.Vd);this.Ra&&(this.Ra.O(),delete this.Ra);this.ta&&(this.ta.O(),delete this.ta);this.lb&&(this.lb.O(),delete this.lb);this.bd&&(this.bd.O(),delete this.bd);Hq.c.I.call(this)};
function Pq(a,b){var c=a.Q(),e=a.getContainer(),f=b?c.C:c.W;f.call(c,e,"enable",a.fE);f.call(c,e,"disable",a.fE)}function Kq(a,b){var c=a.Q(),e=b?c.C:c.W;e.call(c,a.Ra,Bq,a.BL);e.call(c,a.Ra,"focus",a.CL)}function Lq(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.lb,Bq,a.fM)}function Mq(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.ta,"change",a.ZD)}d.BL=function(){this.bj.stop();this.bj.start();this.ZD()};d.CL=function(){this.ta.gn(!1)};
d.fM=function(){var a=Qq(this);(a instanceof Rq?pp:rp)(this.b(),["terminal"]);(a instanceof Sq||a instanceof Tq?pp:rp)(this.b(),["acquiring"]);switch(!0){case a instanceof Sq:a.$u=!1;a.$c(null);a.Ed=[];a.Oh(null);this.ta.reset();this.ta.N(!0);this.ta.setEditable(!0);this.ta.wb.X.il("");this.ta.vb.X.getMonth().Sg();this.ta.vb.X.getYear().Sg();Uq(this.ta);break;case a instanceof Tq:this.ta.reset();this.ta.N(!0);this.ta.setEditable(!1);this.ta.wb.X.il(a.GE);this.ta.vb.X.getMonth().setContent("**");this.ta.vb.X.getYear().setContent("**");
this.ta.Ad(a.lH.toLowerCase());break;default:this.ta.reset(),this.ta.N(!1),this.ta.setEditable(!0),this.ta.wb.X.il(""),this.ta.vb.X.getMonth().Sg(),this.ta.vb.X.getYear().Sg(),Uq(this.ta)}this.dispatchEvent(new be(Vq,this));this.bj.stop();this.bj.start()};d.ZD=function(){this.dispatchEvent(new be(Vq,this))};d.fE=function(){this.refresh();Wq(this);this.bj.stop();this.bj.start();this.cu.stop();this.cu.start()};
d.Z=function(a){var b;b=1&Hq.c.Z.call(this,a);b&=this.Ra.Z(a);b&=this.lb.Z(a);this.yg()&&this.yg().isEnabled()&&(b&=this.yg().Z(a));return b&=this.bd.Z(a)};d.Ma=function(){var a={};Eb(a,{id:(new Xq).getTime().toString()});Eb(a,this.Ra.Ma());Eb(a,this.lb.Ma());var b=Qq(this);b&&(b=b.rl(),this.ta.isEnabled()&&Eb(b,this.ta.rl()),Eb(a,{paymentMethod:b}));Eb(a,this.bd.Ma());Eb(a,{fields:this.U.Ma()});return a};function Qq(a){return(a=a.lb.X.Ga())?a.xa:null}
d.XK=function(){this.dispatchEvent(new be(Yq,this))};
d.xw=function(){var a=this.Ra;a.Pt(null);a.Ut(null);a.Oh(null);a.Yt(null);a.Ot(null);var b=Jq(this);if(b){var c=Zq(b),e=a.ra.w(),f=a.ra;f.ia(!1);f.Da()&&f.Da().S(!0);$q(f);n(c,a.mK,a);a.ra.P(e);-1===a.ra.th()&&a.ra.jl(0);$q(a.ra);c=(c=this.Ra.ra.Ga())?c.xa:null;if((e=Qq(this))&&c){var f=a.w(),g=b.Nw(ja(f)?f:0),l=jb(b.Lx,k(b.uM,b,c),b),r=new ar;l&&(r.$c(l.ra),r.hl(l.Jc),r.gl(l.Hc));b=br(b,this.sb);a.Rh(e.Yd);a.Qh(this.Bg(e.ra,c));if(l=e.qk)null!=l.Jc&&null!=r.Jc&&l.Jc>r.Jc&&r.hl(l.Jc),null!=l.Hc&&
null!=r.Hc&&l.Hc<r.Hc&&r.gl(l.Hc);(l=e.Nw(ja(f)?f:0))&&e.$u&&(g=l,l=null);g&&g.$c(c);a.Pt(g);l&&l.Bg()&&a.Ut(l);a.Oh(r);ja(f)&&(g&&(f=cr(g,f)),l&&(f=cr(l,f)),a.Yt(f),a.Z());a.Ot(b)}}};d.refresh=function(){(Jq(this)?pp:rp)(this.b(),["payable"]);jQuery(this.b()).find("[type\x3dtext]").trigger("refresh.inpufit")};function Wq(a){var b=Jq(a);b&&b.OD&&b.PD?(a.Ra.ra.P(b.PD),a.Ra.P(b.OD),a.Ra.N(!1)):a.Ra.N(!0)}
function dr(a){var b=Qq(a);if(b)switch(!0){case b instanceof Sq:a.ta.wb.Yc();a.ta.vb.Yc();a.ta.vb.Yc();a.ta.oc.Yc();break;case b instanceof Tq:a.ta.oc.Yc()}}var Yq="payment-form-sources",Vq="payment-form-acquiring";function er(){}m(er,wp);h(er);d=er.prototype;d.A=function(){return"qiwi-payment-provider"};d.qc=function(){return"qiwi-payment-provider-title"};d.qd=function(){return"qiwi-payment-provider-description"};function fr(){return"qiwi-payment-provider-deadline"}function gr(){return"qiwi-payment-provider-url-link"}function hr(){return"qiwi-payment-provider-logo-image"}
d.g=function(a){var b=a.p();a=b.g("div",this.kb(a).join(" "));b.appendChild(a,b.g("div",this.qc()));b.appendChild(a,b.g("div","qiwi-payment-provider-url",b.g("a",{className:gr(),rel:"nofollow",target:"_blank"})));b.appendChild(a,b.g("div","qiwi-payment-provider-company"));b.appendChild(a,b.g("div",this.qd()));b.appendChild(a,b.g("div",fr()));b.appendChild(a,b.g("div","qiwi-payment-provider-logo",b.g("img",{className:hr()})));return a};d.td=function(a){return t(this.qc(),a)};
d.Yj=function(a){return t(this.qd(),a)};d.setTitle=function(a,b){var c=a.p();a.b()||a.g();var e=this.td(a.b());e&&(c.S(e),R(e,!Ba(b)),Ba(b)||c.append(e,qd(c,Na(b))))};d.dA=function(a,b){var c=a.p();a.b()||a.g();var e=t("qiwi-payment-provider-company",a.b());e&&(c.S(e),R(e,!Ba(b)),Ba(b)||c.append(e,qd(c,Na(b))))};d.Vb=function(a,b){var c=a.p();a.b()||a.g();var e=this.Yj(a.b());e&&(c.S(e),R(e,!Ba(b)),Ba(b)||c.append(e,qd(c,Na(b))))};
d.eA=function(a,b){var c=a.p();a.b()||a.g();var e=t(fr(),a.b());e&&(c.S(e),R(e,!Ba(b)),Ba(b)||c.append(e,qd(c,Na(b))))};d.Lq=function(a,b){var c=a.p();a.b()||a.g();var e=t("qiwi-payment-provider-url",a.b()),f=t(gr(),a.b());f&&(c.Pg(f,b),c.bH(f,{href:b}),c=Te({category:"OpenExternalLink",action:"PaymentForm"}),f.dataset?f.dataset.ga=c:f.setAttribute("data-"+"ga".replace(/([A-Z])/g,"-$1").toLowerCase(),c));R(e,!Ba(b))};
d.kA=function(a,b){var c=a.p();a.b()||a.g();var e=t("qiwi-payment-provider-logo",a.b()),f=t(hr(),a.b());f&&c.bH(f,{src:b});R(e,!Ba(b))};function ir(a,b){xp.call(this,a,b)}m(ir,xp);W(ir,er);X("qiwi-payment-provider",function(){return new ir});d=ir.prototype;d.setTitle=function(a){this.o.setTitle(this,a);this.He(a)};d.He=function(a){this.Bd=a};d.getTitle=function(){return this.Bd};d.dA=function(a){this.o.dA(this,a)};d.Vb=function(a){this.o.Vb(this,a);this.cl(a)};d.cl=function(a){this.Qj=a};d.Lq=function(a){this.o.Lq(this,a);this.bB=a};d.getUrl=function(){return this.bB};d.kA=function(a){this.o.kA(this,a)};
d.eA=function(a){this.o.eA(this,a)};function jr(a){var b=new ir;b.setTitle(a.title);b.dA(a.company);b.Vb(a.description);b.eA(a.deadline);b.Lq(a.url);b.kA(a.logo);return b};function kr(a,b,c){Y.call(this,a,b,c)}m(kr,Y);kr.prototype.Zj=function(){for(var a=this;null!=a;){if(a instanceof zq)return a;a=a.getParent()}return null};function lr(){}m(lr,Tp);h(lr);d=lr.prototype;d.A=function(){return"qiwi-forms-field"};d.Ve=function(){return"qiwi-forms-field-control"};d.Sc=function(){return"qiwi-forms-field-header"};d.km=function(){return"qiwi-forms-field-header-title"};d.jm=function(){return"qiwi-forms-field-header-required"};d.bk=function(){return"qiwi-forms-field-header-info"};d.ti=function(){return"qiwi-forms-field-info"};d.qd=function(){return"qiwi-forms-field-description"};d.rd=function(){return"qiwi-forms-field-error"};
d.g=function(a){var b=lr.c.g.call(this,a),c=a.getName();b.dataset?b.dataset.name=c:b.setAttribute("data-"+"name".replace(/([A-Z])/g,"-$1").toLowerCase(),c);var c=a.p(),e=a.Kf,f=c.g("div",this.ti());c.appendChild(b,f);R(f,!1);f=c.g("div",this.Sc());c.appendChild(b,f);var g=a.getTitle(),l=c.g("div",[this.km()],Xc(g));c.appendChild(f,l);R(f,null!=g);g=c.g("div",[this.jm()],"*");c.appendChild(f,g);R(g,!a.nF);g=c.g("div",[this.bk()]);c.appendChild(f,g);R(g,null!=e);c.appendChild(b,c.g("div",this.Ve()));
c.appendChild(b,c.g("div",this.qd(),a.Qj));a=a.getError();e=c.g("div",this.rd(),a);c.appendChild(b,e);R(e,null!=a);return b};d.ea=function(a,b){a.Dq(cq(ad(this.Xj(b))));a.He(md(this.td(b)));return lr.c.ea.call(this,a,b)};d.Xj=function(a){return t(this.Ve(),a)};d.ak=function(a){return t(this.Sc(),a)};d.Yj=function(a){return t(this.qd(),a)};d.rh=function(a){return t(this.rd(),a)};
d.Ka=function(a,b){var c=a.p();a.b()||a.g();var e=this.Xj(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.setTitle=function(a,b){if(a){var c=t(this.km(),a);if(c&&(R(c,null!=b),Zc(c),null!=b)){var e=Xc(b);c.appendChild(e)}}};d.jA=function(a,b){var c=a.p();a.b()||a.g();var e=t(this.ti(),a.b()),f=t(this.bk(),a.b());R(f,null!=b);c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};
d.hA=function(a,b){var c=a.p();a.b()||a.g();var e=t(this.bk(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.Vb=function(a,b){if(a){var c=this.Yj(a);if(c&&(Zc(c),R(c,null!=b),null!=b)){var e=Xc(b);c.appendChild(e)}}};d.Ya=function(a,b){if(a){var c=this.rh(a);c&&(R(c,null!=b),Zc(c),fd(c,b))}};d.an=function(a,b){if(a){var c=t(this.jm(),a);c&&R(c,!b)}};function Iq(a,b,c){Yd.call(this);this.cy=a;this.Bb=b||0;this.Wa=c;this.uK=k(this.ZK,this)}m(Iq,Yd);d=Iq.prototype;d.Ja=0;d.I=function(){Iq.c.I.call(this);this.stop();delete this.cy;delete this.Wa};d.start=function(a){this.stop();this.Ja=Lf(this.uK,ba(a)?a:this.Bb)};d.stop=function(){this.xh()&&aa.clearTimeout(this.Ja);this.Ja=0};d.xh=function(){return 0!=this.Ja};d.ZK=function(){this.Ja=0;this.cy&&this.cy.call(this.Wa)};function tq(a,b,c){Y.call(this,a,b,c);this.ff(0)}m(tq,kr);W(tq,lr);X("qiwi-forms-field",function(){return new tq});d=tq.prototype;d.jf=1;d.oD="";d.nD=!0;d.Ka=function(a){this.o.Ka(this,a);this.Dq(a)};d.Dq=function(a){this.X=a;di(a,this);a.N(this.isEnabled());this.j&&this.Fg(!0)};d.Ob=function(a){this.eb=a};d.Z=function(a){if(null!=this.eb&&!this.eb){if(a||this.ll)this.Vf(!0),this.Ya(this.gc);return this.eb}var b=this.Xq,c=b.check(this.w());if(a||this.ll)this.Vf(!0),this.Ya(c?null:b.Od());return c};
d.Mc=function(a){this.gc=a};d.Od=function(){return this.gc};d.setTitle=function(a){this.o.setTitle(this.b(),a);this.He(a)};d.He=function(a){this.Bd=a};d.getTitle=function(){return this.Bd};d.jA=function(a){this.o.jA(this,a);this.Kf=a;this.j&&mr(this,!0)};d.hA=function(a){this.o.hA(this,a);this.wh=a;di(a,this);a.N(this.isEnabled());this.j&&nr(this,!0)};d.Vb=function(a){this.o.Vb(this.b(),a);this.cl(a)};d.cl=function(a){this.Qj=a};d.Ya=function(a){this.o.Ya(this.b(),a);this.dl(a)};
d.dl=function(a){this.we=a};d.getError=function(){return this.we};d.Vf=function(a){this.ll=a};d.ya=function(a){this.wc=a};d.getName=function(){return this.wc};d.an=function(a){this.o.an(this.b(),a);this.nF=a};d.N=function(a){a?(tq.c.N.call(this,a),this.X&&this.X.N(a)):(this.X&&this.X.N(a),tq.c.N.call(this,a))};d.Sh=function(a){this.Xq=a};d.ff=function(a){this.aj=new Iq(this.Rj,a,this)};
d.n=function(){tq.c.n.call(this);this.X&&(this.X.j||this.X.n(),this.Fg(!0),jQuery(this.X.b()).refresh());this.Kf&&(this.Kf.j||this.Kf.n(),mr(this,!0));this.wh&&(this.wh.j||this.wh.n(),nr(this,!0))};d.B=function(){this.X&&(this.X.B(),this.Fg(!1));this.Kf&&(this.Kf.B(),mr(this,!1));this.wh&&(this.wh.B(),nr(this,!1));tq.c.B.call(this)};d.I=function(){this.X&&(this.X.O(),delete this.X);this.Kf&&(this.Kf.O(),delete this.Kf);this.wh&&(this.wh.O(),delete this.wh);tq.c.I.call(this)};d.sp=function(){return this.X.sp()};
d.Fg=function(a){var b=this.Q(),c=this.X;a=a?b.C:b.W;a.call(b,c,"change",this.Bi);a.call(b,c,"action",this.Bi);a.call(b,c.b(),"focus",this.aE);a.call(b,c.b(),"blur",this.$D)};function mr(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.Kf,or,a.QL)}function nr(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.wh,"action",a.PL)}d.aE=function(a){this.o.Pa(this,32,!0);this.dispatchEvent(a)};d.$D=function(a){this.o.Pa(this,32,!1);this.dispatchEvent(a)};d.Bi=function(){this.aj.stop();this.aj.start()};
d.QL=function(){R(t(this.o.ti(),this.b()),!1)};d.PL=function(){R(t(this.o.ti(),this.b()),!0)};d.Rj=function(){var a=this.w();this.ub!=a&&(this.ub=a,pr(this,a),this.Z())};d.P=function(a){this.X.P(a);pr(this,a)};function pr(a,b){var c=new be(Bq,a);c.value=null!=b?b:a.ub;a.dispatchEvent(c)}d.w=function(){return this.X.w()};d.Js=function(){return this.X.qh()};
d.Yc=function(a){a:{if(this.Ia()&&!(this.X instanceof qr)){var b=this.Zj();if(null!=b){var c=b.ww.get(this.wc);a&&b.ww.remove(this.wc);if(null!=c){a=c;break a}}}a=this.oD}this.ub=a;this.Vf(!1);this.Ob(this.nD);this.Ya(null);this.P(this.ub)};d.Ma=function(){var a=Fb(this.getName(),this.w());this.X.uL&&Eb(a,this.X.Fs||{});return a};var Bq="field-change";function rr(){}m(rr,lr);h(rr);d=rr.prototype;d.A=function(){return"qiwi-payment-amount"};d.Ve=function(){return"qiwi-payment-amount-control"};d.Sc=function(){return"qiwi-payment-amount-header"};d.km=function(){return"qiwi-payment-amount-header-title"};d.jm=function(){return"qiwi-payment-amount-header-required"};d.bk=function(){return"qiwi-payment-amount-header-info"};d.ti=function(){return"qiwi-payment-amount-info"};d.qd=function(){return"qiwi-payment-amount-description"};
function sr(){return"qiwi-payment-amount-description-total"}function tr(){return"qiwi-payment-amount-description-total-title"}function ur(){return"qiwi-payment-amount-description-total-value"}function vr(){return"qiwi-payment-amount-description-commission"}function wr(){return"qiwi-payment-amount-description-source-commission"}d.bp=function(){return"qiwi-payment-amount-description-sms"};function xr(){return"qiwi-payment-amount-description-limit"}
function yr(){return"qiwi-payment-amount-description-cashback"}function zr(){return"qiwi-payment-amount-description-cashback-value"}function Ar(){return"qiwi-payment-amount-exchange-value"}d.rd=function(){return"qiwi-payment-amount-error"};d.Zw=function(a){return t(this.bp(),a)};
d.g=function(a){var b=rr.c.g.call(this,a),c=a.p();c.S(b);var e=a.Kf,f=c.g("div",this.ti());c.appendChild(b,f);R(f,!1);f=c.g("div",this.Sc());c.appendChild(b,f);var g=a.getTitle(),l=c.g("div",[this.km()],g);c.appendChild(f,l);R(f,null!=g);g=c.g("div",[this.jm()],"*");c.appendChild(f,g);R(g,!a.nF);g=c.g("div",[this.bk()]);c.appendChild(f,g);R(g,null!=e);e=c.g("div",this.qd());c.appendChild(b,e);f=c.g("div","qiwi-payment-amount-description-cashback-notes");c.appendChild(f,c.g("div","qiwi-payment-amount-description-cashback-notes-icon",
"?"));c.appendChild(f,c.g("div","qiwi-payment-amount-description-cashback-notes-text",ua("Cashback notes")));g=c.g("div",yr());c.appendChild(g,f);c.appendChild(g,c.g("div",zr()));c.appendChild(e,g);f=c.g("div",sr());c.appendChild(f,c.g("div",tr(),a.IH));c.appendChild(f,c.g("div",ur(),a.Uq));c.appendChild(e,f);R(f,null!=a.Uq);f=c.g("div",vr());c.appendChild(e,f);f=c.g("div",wr());c.appendChild(e,f);f=c.g("div",this.bp());c.appendChild(e,f);f=c.g("div",xr());c.appendChild(e,f);c.appendChild(b,c.g("div",
this.Ve()));c.appendChild(b,c.g("div","qiwi-payment-amount-currency"));e=c.g("div","qiwi-payment-amount-exchange");c.appendChild(e,c.g("div","qiwi-payment-amount-exchange-title",ua("Conversion rate")));c.appendChild(e,c.g("div",Ar()));R(e,!1);c.appendChild(b,e);a=a.getError();e=c.g("div",this.rd(),a);c.appendChild(b,e);R(e,null!=a);return b};d.$c=function(a,b){a.b()||a.g();var c=t("qiwi-payment-amount-currency",a.b());Zc(c);b.b()?(c.appendChild(b.b()),a.j&&!b.j&&b.n()):T(b,c)};
d.GA=function(a,b){a.b()||a.g();var c=t(tr(),a.b());c&&(Zc(c),fd(c,b))};d.Yt=function(a,b){a.b()||a.g();var c=t(ur(),a.b());if(c){var e=t(sr(),a.b());if(e){Zc(c);if(null!=b){var f=a.Bg();f?fd(c,Nq(f.hm,Oq(f,b),!0)):fd(c,Nq(a.ra.Ga().xa,b,!0))}R(e,null!=b)}}};d.Pt=function(a,b){a.b()||a.g();var c=t(vr(),a.b());if(c&&(Zc(c),b)){var e=new Bj;e.append(ua("Commission"));e.append(": ");e.append(b.toString());fd(c,e.toString())}};
d.Ut=function(a,b){a.b()||a.g();var c=t(wr(),a.b());if(c&&(Zc(c),b)){var e=new Bj;e.append(ua("Additional commission"));e.append(": ");e.append(b.toString());fd(c,e.toString())}};d.Rh=function(a,b){a.b()||a.g();var c=this.Zw(a.b());c&&(Zc(c),fd(c,null!=b?b:""))};
d.Oh=function(a,b){a.b()||a.g();var c=t(xr(),a.b());if(c&&(Zc(c),b)){if(b.Jc){var e=new Bj;e.append(ua("Minimum payment"));e.append(": ");e.append(b.Yw());e=Tc("div",null,e.toString());c.appendChild(e)}b.Hc&&(e=new Bj,e.append(ua("Maximum payment")),e.append(": "),e.append(b.Xw()),e=Tc("div",null,e.toString()),c.appendChild(e))}};
d.Ot=function(a,b){a.b()||a.g();var c=t(yr(),a.b()),e=t(zr(),a.b());if(c&&e&&(R(c,null!=b),null!=b)){var c=a.w(),f=a.ra.Ga().xa,g=a.Bg();g&&(f=g.hm,null!=c&&(c=Oq(g,c)));var g=b.Bg(),l=null;null!=c?(c=(new BigNumber(c)).times(g).times(100).floor().div(100).toNumber(),l=ua("Cashback value").replace("{0}",Nq(f,c,!!c))):l=ua("Cashback empty").replace("{0}",100*g);fd(e,l)}};
d.Qh=function(a,b){a.b()||a.g();var c=t("qiwi-payment-amount-exchange",a.b()),e=t(Ar(),a.b());c&&e&&(Zc(e),b?(R(c,!0),fd(e,b.toString())):R(c,!1))};function Br(a,b,c){tq.call(this,a,b,c)}m(Br,tq);W(Br,rr);X("qiwi-payment-amount",function(){return new Br});d=Br.prototype;d.$c=function(a,b){null!=b&&!b||this.o.$c(this,a);this.ra=a};d.mK=function(a){this.ra.hb(new Cr(a.he,a))};d.GA=function(a,b){null!=b&&!b||this.o.GA(this,a);this.IH=a};d.Yt=function(a,b){null!=b&&!b||this.o.Yt(this,a);this.Uq=a};d.Pt=function(a,b){null!=b&&!b||this.o.Pt(this,a)};d.Ut=function(a,b){null!=b&&!b||this.o.Ut(this,a)};
d.Rh=function(a,b){null!=b&&!b||this.o.Rh(this,a);this.Yd=a};d.Oh=function(a,b){null!=b&&!b||this.o.Oh(this,a);this.qk=a};d.Ot=function(a,b){null!=b&&!b||this.o.Ot(this,a)};d.Qh=function(a,b){null!=b&&!b||this.o.Qh(this,a);this.Wd=a};d.Bg=function(){return this.Wd};d.w=function(){var a=parseFloat(this.X.w().replace(",","."));return!ja(a)||isNaN(a)?null:a};d.Js=function(){return Nq(this.ra.Ga().xa,this.w(),!0)};d.Ma=function(){return Fb(this.getName(),{amount:this.w(),currency:this.ra.w()})};
d.Z=function(a){var b=this.w(),c=this.Uq,e=this.qk?this.qk.Jc:null,f=this.qk?this.qk.Hc:null,g=null;0>=b||0>=c?g=ua("Incorrect amount"):null!=e&&b<e?g=ua("Amount less than the minimum"):null!=f&&c>f&&(g=ua("Amount greater than the maximum"));if(a||this.ll)this.Vf(!0),this.Ya(g);return null==g};d.N=function(a){Br.c.N.call(this,a);this.ra&&this.ra.N(a)};d.n=function(){Br.c.n.call(this);this.ra&&(this.ra.j||this.ra.n(),Dr(this,!0))};d.B=function(){Br.c.B.call(this);this.ra&&(this.ra.B(),Dr(this,!1))};
d.I=function(){this.ra&&(this.ra.O(),delete this.ra);Br.c.I.call(this)};function Dr(a,b){var c=a.Q(),e=a.ra,f=b?c.C:c.W;f.call(c,e,"change",a.bE);f.call(c,e,"action",a.bE)}d.bE=function(){pr(this,this.ub)};function Er(a,b,c,e,f,g,l,r,B){var C,H;if(C=c.offsetParent){var M="HTML"==C.tagName||"BODY"==C.tagName;M&&"static"==Dh(C,"position")||(H=Jh(C),M||(M=(M=Kh(C))&&Wb?-C.scrollLeft:!M||s&&dc("8")||"visible"==Dh(C,"overflowX")?C.scrollLeft:C.scrollWidth-C.clientWidth-C.scrollLeft,H=Hc(H,new Gc(M,C.scrollTop))))}C=H||new Gc;H=Ph(a);if(M=Ih(a)){var oa=new zh(M.left,M.top,M.right-M.left,M.bottom-M.top),M=Math.max(H.left,oa.left),ib=Math.min(H.left+H.width,oa.left+oa.width);if(M<=ib){var yb=Math.max(H.top,
oa.top),oa=Math.min(H.top+H.height,oa.top+oa.height);yb<=oa&&(H.left=M,H.top=yb,H.width=ib-M,H.height=oa-yb)}}M=Jc(a);yb=Jc(c);if(M.$a!=yb.$a){var ib=M.$a.body,yb=Sc(yb.$a),oa=new Gc(0,0),fb=Rc(Lc(ib)),Ob=ib;do{var fa;if(fb==yb)fa=Jh(Ob);else{var eb=Ob;fa=void 0;if(eb.getBoundingClientRect)fa=Gh(eb),fa=new Gc(fa.left,fa.top);else{fa=td(Jc(eb));var Wa=Jh(eb);fa=new Gc(Wa.x-fa.x,Wa.y-fa.y)}if(Wb&&!dc(12)){Wa=Wa=void 0;b:{Wa=Xa("transform");if(void 0===eb.style[Wa]&&(Wa=xh()+Ya(Wa),void 0!==eb.style[Wa])){Wa=
(Xb?"-webkit":Wb?"-moz":s?"-ms":Vb?"-o":null)+"-transform";break b}Wa="transform"}eb=(Wa=Dh(eb,Wa)||Dh(eb,"transform"))?(eb=Wa.match(Yh))?new Gc(parseFloat(eb[1]),parseFloat(eb[2])):new Gc(0,0):new Gc(0,0);fa=new Gc(fa.x+eb.x,fa.y+eb.y)}}oa.x+=fa.x;oa.y+=fa.y}while(fb&&fb!=yb&&(Ob=fb.frameElement)&&(fb=fb.parent));ib=Hc(oa,Jh(ib));!s||ec(9)||rd(M)||(ib=Hc(ib,td(M)));H.left+=ib.x;H.top+=ib.y}a=Fr(a,b);b=new Gc(a&2?H.left+H.width:H.left,a&1?H.top+H.height:H.top);b=Hc(b,C);f&&(b.x+=(a&2?-1:1)*f.x,b.y+=
(a&1?-1:1)*f.y);var S;if(l)if(B)S=B;else if(S=Ih(c))S.top-=C.y,S.right-=C.x,S.bottom-=C.y,S.left-=C.x;f=S;B=b.clone();S=Fr(c,e);e=Nh(c);a=r?r.clone():e.clone();r=B;B=a;r=r.clone();B=B.clone();a=0;if(g||0!=S)S&2?r.x-=B.width+(g?g.right:0):g&&(r.x+=g.left),S&1?r.y-=B.height+(g?g.bottom:0):g&&(r.y+=g.top);l&&(f?(g=r,S=B,a=0,65==(l&65)&&(g.x<f.left||g.x>=f.right)&&(l&=-2),132==(l&132)&&(g.y<f.top||g.y>=f.bottom)&&(l&=-5),g.x<f.left&&l&1&&(g.x=f.left,a|=1),g.x<f.left&&g.x+S.width>f.right&&l&16&&(S.width=
Math.max(S.width-(g.x+S.width-f.right),0),a|=4),g.x+S.width>f.right&&l&1&&(g.x=Math.max(f.right-S.width,f.left),a|=1),l&2&&(a=a|(g.x<f.left?16:0)|(g.x+S.width>f.right?32:0)),g.y<f.top&&l&4&&(g.y=f.top,a|=2),g.y<=f.top&&g.y+S.height<f.bottom&&l&32&&(S.height=Math.max(S.height-(f.top-g.y),0),g.y=f.top,a|=8),g.y>=f.top&&g.y+S.height>f.bottom&&l&32&&(S.height=Math.max(S.height-(g.y+S.height-f.bottom),0),a|=8),g.y+S.height>f.bottom&&l&4&&(g.y=Math.max(f.bottom-S.height,f.top),a|=2),l&8&&(a=a|(g.y<f.top?
64:0)|(g.y+S.height>f.bottom?128:0)),l=a):l=256,a=l);g=new zh(0,0,0,0);g.left=r.x;g.top=r.y;g.width=B.width;g.height=B.height;l=a;l&496||(Eh(c,new Gc(g.left,g.top)),a=new Ic(g.width,g.height),e==a||e&&a&&e.width==a.width&&e.height==a.height||(g=a,e=rd(Jc(Lc(c))),!s||dc("10")||e&&dc("8")?(c=c.style,Wb?c.MozBoxSizing="border-box":Xb?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(g.width,0)+"px",c.height=Math.max(g.height,0)+"px"):(r=c.style,e?(e=Uh(c),c=Xh(c),r.pixelWidth=
g.width-c.left-e.left-e.right-c.right,r.pixelHeight=g.height-c.top-e.top-e.bottom-c.bottom):(r.pixelWidth=g.width,r.pixelHeight=g.height))));return l}function Fr(a,b){return(b&4&&Kh(a)?b^2:b)&-5};function Gr(){}Gr.prototype.Ig=function(){};function Hr(a,b,c){this.element=a;this.Bo=b;this.PR=c}m(Hr,Gr);Hr.prototype.Ig=function(a,b,c){Er(this.element,this.Bo,a,b,void 0,c,this.PR)};function Ir(a,b,c,e){Hr.call(this,a,b);this.up=c?5:0;this.dz=e||void 0}m(Ir,Hr);Ir.prototype.SD=function(){return this.up};Ir.prototype.Ig=function(a,b,c,e){var f=Er(this.element,this.Bo,a,b,null,c,10,e,this.dz);if(f&496){var g=Jr(f,this.Bo);b=Jr(f,b);f=Er(this.element,g,a,b,null,c,10,e,this.dz);f&496&&(g=Jr(f,g),b=Jr(f,b),Er(this.element,g,a,b,null,c,this.up,e,this.dz))}};function Jr(a,b){a&48&&(b^=2);a&192&&(b^=1);return b};function Kr(a,b,c,e){Ir.call(this,a,b,c||e);if(c||e)this.up=65|(e?32:132)}m(Kr,Ir);function Lr(){}m(Lr,Tp);h(Lr);d=Lr.prototype;d.Zb=function(){return"button"};d.Cd=function(a,b,c){switch(b){case 8:case 16:Ap(a,"pressed",c);break;default:case 64:case 1:Lr.c.Cd.call(this,a,b,c)}};d.g=function(a){var b=Lr.c.g.call(this,a);this.dn(b,a.fk());var c=a.w();c&&this.P(b,c);$p(a,16)&&this.Cd(b,16,a.Eg());return b};d.ea=function(a,b){b=Lr.c.ea.call(this,a,b);var c=this.w(b);a.ub=c;a.ZA=this.fk(b);$p(a,16)&&this.Cd(b,16,a.Eg());return b};d.w=da;d.P=da;d.fk=function(a){return a.title};
d.dn=function(a,b){a&&(b?a.title=b:a.removeAttribute("title"))};d.A=function(){return"goog-button"};function Mr(){}m(Mr,Lr);h(Mr);d=Mr.prototype;d.Zb=function(){};d.g=function(a){dq(a,!1);a.Hn&=-256;a.jc(32,!1);return a.p().g("button",{"class":this.kb(a).join(" "),disabled:!a.isEnabled(),title:a.fk()||"",value:a.w()||""},a.qh()||"")};d.Gb=function(a){return"BUTTON"==a.tagName||"INPUT"==a.tagName&&("button"==a.type||"submit"==a.type||"reset"==a.type)};d.ea=function(a,b){dq(a,!1);a.Hn&=-256;a.jc(32,!1);if(b.disabled){var c=this.Uo(1);op(b,c)}return Mr.c.ea.call(this,a,b)};
d.Dg=function(a){a.Q().C(a.b(),"click",a.zd)};d.Mg=da;d.Uf=da;d.Rd=function(a){return a.isEnabled()};d.fd=da;d.Pa=function(a,b,c){Mr.c.Pa.call(this,a,b,c);(a=a.b())&&1==b&&(a.disabled=c)};d.w=function(a){return a.value};d.P=function(a,b){a&&(a.value=b)};d.Cd=da;function Nr(a,b,c){Y.call(this,a,b||Mr.a(),c)}m(Nr,Y);d=Nr.prototype;d.w=function(){return this.ub};d.P=function(a){this.ub=a;this.o.P(this.b(),a)};d.fk=function(){return this.ZA};d.dn=function(a){this.ZA=a;this.o.dn(this.b(),a)};d.I=function(){Nr.c.I.call(this);delete this.ub;delete this.ZA};d.n=function(){Nr.c.n.call(this);if($p(this,32)){var a=this.ec();a&&this.Q().C(a,"keyup",this.cd)}};d.cd=function(a){return 13==a.keyCode&&"key"==a.type||32==a.keyCode&&"keyup"==a.type?this.zd(a):32==a.keyCode};
X("goog-button",function(){return new Nr(null)});function Or(){}m(Or,Tp);h(Or);Or.prototype.A=function(){return"goog-menuheader"};function Pr(a,b,c){Y.call(this,a,c||Or.a(),b);this.jc(1,!1);this.jc(2,!1);this.jc(4,!1);this.jc(32,!1);this.Yi=1}m(Pr,Y);X("goog-menuheader",function(){return new Pr(null)});function Qr(){this.gg=[]}m(Qr,Tp);h(Qr);function Rr(a,b){var c=a.gg[b];if(!c){switch(b){case 0:c=a.A()+"-highlight";break;case 1:c=a.A()+"-checkbox";break;case 2:c=a.A()+"-content"}a.gg[b]=c}return c}d=Qr.prototype;d.Zb=function(){return"menuitem"};d.g=function(a){var b=a.p().g("div",this.kb(a).join(" "),Sr(this,a.getContent(),a.p()));Tr(this,a,b,$p(a,8)||$p(a,16));return b};d.Va=function(a){return a&&a.firstChild};
d.ea=function(a,b){var c=ad(b),e=Rr(this,2);c&&np(c,e)||b.appendChild(Sr(this,b.childNodes,a.p()));np(b,"goog-option")&&(a.Bq(!0),this.Bq(a,b,!0));return Qr.c.ea.call(this,a,b)};d.setContent=function(a,b){var c=this.Va(a),e=Ur(this,a)?c.firstChild:null;Qr.c.setContent.call(this,a,b);e&&!Ur(this,a)&&c.insertBefore(e,c.firstChild||null)};function Sr(a,b,c){a=Rr(a,2);return c.g("div",a,b)}d.Tt=function(a,b,c){a&&b&&Tr(this,a,b,c)};d.Bq=function(a,b,c){a&&b&&Tr(this,a,b,c)};
function Ur(a,b){var c=a.Va(b);if(c){var c=c.firstChild,e=Rr(a,1);return!!c&&cd(c)&&np(c,e)}return!1}function Tr(a,b,c,e){Zp(a,c,b.ap());Wp(a,b,c);e!=Ur(a,c)&&(e?op(c,"goog-option"):qp(c,"goog-option"),c=a.Va(c),e?(a=Rr(a,1),c.insertBefore(b.p().g("div",a),c.firstChild||null)):c.removeChild(c.firstChild))}d.Uo=function(a){switch(a){case 2:return Rr(this,0);case 16:case 8:return"goog-option-selected";default:return Qr.c.Uo.call(this,a)}};
d.Ms=function(a){var b=Rr(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return Qr.c.Ms.call(this,a)}};d.A=function(){return"goog-menuitem"};function Vr(a,b,c,e){Y.call(this,a,e||Qr.a(),c);this.P(b)}m(Vr,Y);d=Vr.prototype;d.w=function(){var a=this.xa;return null!=a?a:this.qh()};d.P=function(a){this.xa=a};d.jc=function(a,b){Vr.c.jc.call(this,a,b);switch(a){case 8:this.Eg()&&!b&&this.Ym(!1);var c=this.b();c&&this.o.Tt(this,c,b);break;case 16:(c=this.b())&&this.o.Bq(this,c,b)}};d.Tt=function(a){this.jc(8,a)};d.Bq=function(a){this.jc(16,a)};
d.qh=function(){var a=this.getContent();return ga(a)?(a=bb(a,function(a){return cd(a)&&(np(a,"goog-menuitem-accel")||np(a,"goog-menuitem-mnemonic-separator"))?"":od(a)}).join(""),Ca(a)):Vr.c.qh.call(this)};d.Ci=function(a){var b=this.getParent();if(b){var c=b.mF;b.mF=null;if(b=c&&ja(a.clientX))b=new Gc(a.clientX,a.clientY),b=c==b?!0:c&&b?c.x==b.x&&c.y==b.y:!1;if(b)return}Vr.c.Ci.call(this,a)};d.cd=function(a){return a.keyCode==this.iF&&this.zd(a)?!0:Vr.c.cd.call(this,a)};d.xL=function(){return this.iF};
X("goog-menuitem",function(){return new Vr(null)});Vr.prototype.ap=function(){return $p(this,16)?"menuitemcheckbox":$p(this,8)?"menuitemradio":Vr.c.ap.call(this)};Vr.prototype.getParent=function(){return Y.prototype.getParent.call(this)};Vr.prototype.Is=function(){return Y.prototype.Is.call(this)};function Wr(){}m(Wr,Tp);h(Wr);Wr.prototype.g=function(a){return a.p().g("div",this.A())};Wr.prototype.ea=function(a,b){b.id&&a.ic(b.id);if("HR"==b.tagName){var c=b;b=this.g(a);c.parentNode&&c.parentNode.insertBefore(b,c);$c(c)}else op(b,this.A());return b};Wr.prototype.setContent=function(){};Wr.prototype.A=function(){return"goog-menuseparator"};function Xr(a,b){Y.call(this,null,a||Wr.a(),b);this.jc(1,!1);this.jc(2,!1);this.jc(4,!1);this.jc(32,!1);this.Yi=1}m(Xr,Y);Xr.prototype.n=function(){Xr.c.n.call(this);zp(this.b(),"separator")};X("goog-menuseparator",function(){return new Xr});function Yr(a){this.Gn=a||"menu"}m(Yr,Np);h(Yr);d=Yr.prototype;d.Gb=function(a){return"UL"==a.tagName||Yr.c.Gb.call(this,a)};d.Ow=function(a){return"HR"==a.tagName?new Xr:Yr.c.Ow.call(this,a)};d.rg=function(a,b){return dd(a.b(),b)};d.A=function(){return"goog-menu"};d.Dg=function(a){Yr.c.Dg.call(this,a);Ap(a.b(),"haspopup","true")};X("goog-menuseparator",function(){return new Xr});function Zr(a,b){hq.call(this,Rp,b||Yr.a(),a);this.fd(!1)}m(Zr,hq);d=Zr.prototype;d.pj=!0;d.oK=!1;d.A=function(){return this.o.A()};d.rg=function(a){if(this.o.rg(this,a))return!0;for(var b=0,c=hi(this);b<c;b++){var e=ii(this,b);if("function"==typeof e.rg&&e.rg(a))return!0}return!1};d.hb=function(a){this.ee(a,!0)};d.fe=function(a,b){this.ai(a,b,!0)};d.sh=function(a){return ii(this,a)};d.Xo=function(){return hi(this)};d.Tw=function(){var a=[];gi(this,function(b){a.push(b)});return a};
d.setPosition=function(a,b){var c=this.Ia();c||R(this.b(),!0);var e=this.b(),f=a,g=b,l=Jh(e);f instanceof Gc&&(g=f.y,f=f.x);Eh(e,e.offsetLeft+(f-l.x),e.offsetTop+(g-l.y));c||R(this.b(),!1)};d.getPosition=function(){return this.Ia()?Jh(this.b()):null};d.Aq=function(a){(this.pj=a)&&this.fd(!0)};d.setVisible=function(a,b,c){(b=Zr.c.setVisible.call(this,a,b))&&a&&this.j&&this.pj&&this.ec().focus();this.mF=a&&c&&ja(c.clientX)?new Gc(c.clientX,c.clientY):null;return b};
d.ix=function(a){this.pj&&this.ec().focus();return Zr.c.ix.call(this,a)};d.WB=function(a){return(this.oK||a.isEnabled())&&a.Ia()&&$p(a,2)};d.Gc=function(a){var b=this.o,c;c=this.p();c=Mc(c.$a,"div",b.A()+"-content",a);for(var e=c.length,f=0;f<e;f++)Sp(b,this,c[f]);Zr.c.Gc.call(this,a)};d.cd=function(a){var b=Zr.c.cd.call(this,a);b||gi(this,function(c){!b&&c.xL&&c.iF==a.keyCode&&(this.isEnabled()&&this.Tf(c),b=c.xe(a))},this);return b};
d.Vi=function(a){Zr.c.Vi.call(this,a);var b=ii(this,a);if(b){a=this.b();var b=b.b(),c=Jh(b),e=Jh(a),f=Xh(a),g=c.x-e.x-f.left,c=c.y-e.y-f.top,e=a.clientHeight-b.offsetHeight,f=a.scrollLeft,l=a.scrollTop,f=f+Math.min(g,Math.max(g-(a.clientWidth-b.offsetWidth),0)),l=l+Math.min(c,Math.max(c-e,0)),b=new Gc(f,l);a.scrollLeft=b.x;a.scrollTop=b.y}};function $r(){}m($r,Lr);h($r);d=$r.prototype;d.g=function(a){var b={"class":"goog-inline-block "+this.kb(a).join(" ")},b=a.p().g("div",b,this.Nj(a.getContent(),a.p()));this.dn(b,a.fk());Wp(this,a,b);return b};d.Zb=function(){return"button"};d.Va=function(a){return a&&a.firstChild&&a.firstChild.firstChild};d.Nj=function(a,b){return b.g("div","goog-inline-block "+(this.A()+"-outer-box"),b.g("div","goog-inline-block "+(this.A()+"-inner-box"),a))};d.Gb=function(a){return"DIV"==a.tagName};
d.ea=function(a,b){as(b,!0);as(b,!1);var c;a:{c=a.p().RD(b);var e=this.A()+"-outer-box";if(c&&np(c,e)&&(c=a.p().RD(c),e=this.A()+"-inner-box",c&&np(c,e))){c=!0;break a}c=!1}c||b.appendChild(this.Nj(b.childNodes,a.p()));pp(b,["goog-inline-block",this.A()]);return $r.c.ea.call(this,a,b)};d.A=function(){return"goog-custom-button"};
function as(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,e;c&&c.parentNode==a;){e=b?c.nextSibling:c.previousSibling;if(3==c.nodeType){var f=c.nodeValue;if(""==Da(f))a.removeChild(c);else{c.nodeValue=b?f.replace(/^[\s\xa0]+/,""):f.replace(/[\s\xa0]+$/,"");break}}else break;c=e}};function bs(){}m(bs,$r);h(bs);d=bs.prototype;d.Va=function(a){return bs.c.Va.call(this,a&&a.firstChild)};d.ea=function(a,b){var c=Mc(document,"*","goog-menu",b)[0];if(c){R(c,!1);Lc(c).body.appendChild(c);var e=new Zr;e.ea(c);a.fb(e)}return bs.c.ea.call(this,a,b)};d.Nj=function(a,b){return bs.c.Nj.call(this,[this.createCaption(a,b),this.qs(b)],b)};d.createCaption=function(a,b){return b.g("div","goog-inline-block "+(this.A()+"-caption"),a)};
d.qs=function(a){return a.g("div","goog-inline-block "+(this.A()+"-dropdown")," ")};d.A=function(){return"goog-menu-button"};var cs,ds;ds=cs=!1;var es=Rb;!es||-1==es.indexOf("Firefox")&&-1==es.indexOf("Camino")&&(-1!=es.indexOf("iPad")?ds=!0:-1==es.indexOf("iPhone")&&-1==es.indexOf("iPod")||(cs=!0));var fs=cs,gs=ds;function hs(a,b,c,e,f){Nr.call(this,a,c||bs.a(),e);this.jc(64,!0);this.Ah=new Kr(null,5);b&&this.fb(b);this.KE=null;this.ua=new Jf(500);!fs&&!gs||dc("533.17.9")||(this.at=!0);this.xK=!0;this.LN=f||Yr.a()}m(hs,Nr);d=hs.prototype;d.at=!1;d.WR=!1;d.YR=!1;d.n=function(){hs.c.n.call(this);is(this,!0);this.H&&this.eg(this.H,!0);Ap(this.aa,"haspopup",!!this.H)};d.B=function(){hs.c.B.call(this);is(this,!1);if(this.H){this.ia(!1);this.H.B();this.eg(this.H,!1);var a=this.H.b();a&&$c(a)}};
d.I=function(){hs.c.I.call(this);this.H&&(this.H.O(),delete this.H);delete this.qF;this.ua.O()};d.dd=function(a){hs.c.dd.call(this,a);this.xh()&&(this.ia(!aq(this,64),a),this.H&&(this.H.Gh=aq(this,64)))};d.Ci=function(a){hs.c.Ci.call(this,a);this.H&&!this.xh()&&(this.H.Gh=!1)};d.zd=function(){this.setActive(!1);return!0};d.hx=function(a){this.H&&this.H.Ia()&&!this.rg(a.target)&&this.ia(!1)};d.rg=function(a){return a&&dd(this.b(),a)||this.H&&this.H.rg(a)||!1};
d.cd=function(a){if(32==a.keyCode){if(a.preventDefault(),"keyup"!=a.type)return!0}else if("key"!=a.type)return!1;if(this.H&&this.H.Ia()){var b=13==a.keyCode||32==a.keyCode,c=this.H.xe(a);return 27==a.keyCode||b&&this.xK?(this.ia(!1),!0):c}return 40==a.keyCode||38==a.keyCode||32==a.keyCode||13==a.keyCode?(this.ia(!0,a),!0):!1};d.uh=function(){this.ia(!1)};d.VL=function(){this.xh()||this.ia(!1)};d.ik=function(a){this.at||this.ia(!1);hs.c.ik.call(this,a)};
d.Da=function(){this.H||this.fb(new Zr(this.p(),this.LN));return this.H||null};d.fb=function(a){var b=this.H;a!=b&&(b&&(this.ia(!1),this.j&&this.eg(b,!1),delete this.H),this.j&&Ap(this.aa,"haspopup",!!a),a&&(this.H=a,di(a,this),a.setVisible(!1),a.Aq(this.at),this.j&&this.eg(a,!0)));return b};d.hb=function(a){this.Da().ee(a,!0)};d.fe=function(a,b){this.Da().ai(a,b,!0)};d.sh=function(a){return this.H?ii(this.H,a):null};d.Xo=function(){return this.H?hi(this.H):0};
d.setVisible=function(a,b){var c=hs.c.setVisible.call(this,a,b);c&&!this.Ia()&&this.ia(!1);return c};d.N=function(a){hs.c.N.call(this,a);this.isEnabled()||this.ia(!1)};d.Bx=function(){return this.Ah.SD&&!!(this.Ah.up&32)};
d.ia=function(a,b){hs.c.ia.call(this,a);if(this.H&&aq(this,64)==a){if(a){if(!this.H.j)if(this.WR){var c;c=this.b();(c=void 0!=c.nextElementSibling?c.nextElementSibling:bd(c.nextSibling))?T(this.H,c.parentNode,c):T(this.H,this.b().parentNode)}else T(this.H,void 0);this.MH=Ih(this.b());this.VB=Ph(this.b());this.gq();c=!!b&&(13==b.keyCode||32==b.keyCode);b&&(40==b.keyCode||38==b.keyCode)||c&&this.YR?mq(this.H):this.H.Vi(-1)}else{this.setActive(!1);this.H.Gh=!1;if(c=this.b())Ap(c,"activedescendant",""),
Ap(c,"owns","");if(null!=this.Nk&&(this.Nk=void 0,c=this.H.b())){var e="",f;e instanceof Ic?(f=e.height,e=e.width):f="";Mh(c,e);Lh(c,f)}}this.H.setVisible(a,!1,b);this.ni||(c=this.Q(),e=a?c.C:c.W,e.call(c,pd(this.p()),"mousedown",this.hx,!0),this.at&&e.call(c,this.H,"blur",this.VL),e.call(c,this.ua,Kf,this.LR),a?this.ua.start():this.ua.stop())}this.H&&this.H.b()&&this.H.aa.removeAttribute("aria-hidden")};
d.gq=function(){if(this.H.j){var a=this.Ah;this.Ah.element=this.qF||this.b();var b=this.H.b();this.H.Ia()||(b.style.visibility="hidden",R(b,!0));!this.Nk&&this.Bx()&&(this.Nk=Nh(b));a.Ig(b,a.Bo^1,this.KE,this.Nk);this.H.Ia()||(R(b,!1),b.style.visibility="visible")}};
d.LR=function(){var a=Ph(this.b()),b=Ih(this.b()),c=this.VB;(c=!(c==a||c&&a&&c.left==a.left&&c.width==a.width&&c.top==a.top&&c.height==a.height))||(c=this.MH,c=!(c==b||c&&b&&c.top==b.top&&c.right==b.right&&c.bottom==b.bottom&&c.left==b.left));c&&(this.VB=a,this.MH=b,this.gq())};d.eg=function(a,b){var c=this.Q(),e=b?c.C:c.W;e.call(c,a,"action",this.uh);e.call(c,a,"close",this.gx);e.call(c,a,"highlight",this.mx);e.call(c,a,"unhighlight",this.rx)};
function is(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.b(),"keydown",a.SL)}d.mx=function(a){(a=a.target.b())&&js(this,a)};d.SL=function(a){$p(this,32)&&this.ec()&&this.H&&this.H.Ia()&&a.stopPropagation()};d.rx=function(){if(!kq(this.H)){var a=this.b();Ap(a,"activedescendant","");Ap(a,"owns","")}};d.gx=function(a){if(aq(this,64)&&a.target instanceof Vr){a=a.target;var b=a.b();a.Ia()&&aq(a,2)&&null!=b&&js(this,b)}};
function js(a,b){var c=a.b(),e=Bp(b,"activedescendant"),e=Lc(b).getElementById(e)||b;if(!e.id){var f=Zh.a();e.id=$h(f)}f="";e&&(f=e.id);Ap(c,"activedescendant",f);Ap(c,"owns",e.id)}X("goog-menu-button",function(){return new hs(null)});function ks(a){Hf.call(this);this.Ei=[];ls(this,a)}m(ks,Hf);d=ks.prototype;d.Sk=null;d.xF=null;d.Xo=function(){return this.Ei.length};d.sh=function(a){return this.Ei[a]||null};function ls(a,b){b&&(n(b,function(a){ms(this,a,!1)},a),qb(a.Ei,b))}d.hb=function(a){this.fe(a,this.Xo())};d.fe=function(a,b){a&&(ms(this,a,!1),rb(this.Ei,b,0,a))};d.Ga=function(){return this.Sk};d.Tw=function(){return pb(this.Ei)};d.Nb=function(a){a!=this.Sk&&(ms(this,this.Sk,!1),this.Sk=a,ms(this,a,!0));this.dispatchEvent("select")};
d.th=function(){var a=this.Sk;return a?$a(this.Ei,a):-1};d.jl=function(a){this.Nb(this.sh(a))};d.clear=function(){var a=this.Ei;if(!ga(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0;this.Sk=null};d.I=function(){ks.c.I.call(this);delete this.Ei;this.Sk=null};function ms(a,b,c){b&&("function"==typeof a.xF?a.xF(b,c):"function"==typeof b.AA&&b.AA(c))};function ns(a,b,c,e,f){hs.call(this,a,b,c,e,f||new Yr("listbox"));this.vw=this.getContent();this.vx=null;this.hz="listbox"}m(ns,hs);d=ns.prototype;d.T=null;d.n=function(){ns.c.n.call(this);this.Sg();this.Hi()};d.Gc=function(a){ns.c.Gc.call(this,a);(a=this.qh())?(this.vw=a,this.Sg()):this.Ga()||this.jl(0)};d.I=function(){ns.c.I.call(this);this.T&&(this.T.O(),this.T=null);this.vw=null};d.uh=function(a){this.Nb(a.target);ns.c.uh.call(this,a);a.stopPropagation();this.dispatchEvent("action")};
d.kk=function(){var a=this.Ga();ns.c.P.call(this,a&&a.w());this.Sg()};d.fb=function(a){var b=ns.c.fb.call(this,a);a!=b&&(this.T&&this.T.clear(),a&&(this.T?gi(a,function(a){os(a);this.T.hb(a)},this):this.Bf(a)));return b};d.hb=function(a){os(a);ns.c.hb.call(this,a);this.T?this.T.hb(a):this.Bf(this.Da());ps(this)};d.fe=function(a,b){os(a);ns.c.fe.call(this,a,b);this.T?this.T.fe(a,b):this.Bf(this.Da())};d.Nb=function(a){if(this.T){var b=this.Ga();this.T.Nb(a);a!=b&&this.dispatchEvent("change")}};
d.jl=function(a){this.T&&this.Nb(this.T.sh(a))};d.P=function(a){if(null!=a&&this.T)for(var b=0,c;c=this.T.sh(b);b++)if(c&&"function"==typeof c.w&&c.w()==a){this.Nb(c);return}this.Nb(null)};d.w=function(){var a=this.Ga();return a?a.w():null};d.Ga=function(){return this.T?this.T.Ga():null};d.th=function(){return this.T?this.T.th():-1};d.Bf=function(a){this.T=new ks;a&&gi(a,function(a){os(a);this.T.hb(a)},this);this.Hi()};d.Hi=function(){this.T&&this.Q().C(this.T,"select",this.kk)};
d.Sg=function(){var a=this.Ga();this.setContent(a?a.qh():this.vw);var b=this.o.Va(this.b());b&&this.p().sM(b)&&(null==this.vx&&(this.vx=Bp(b,"label")),a=(a=a?a.b():null)?Bp(a,"label"):this.vx,Ap(b,"label",a),ps(this))};function ps(a){var b=a.o;if(b&&(b=b.Va(a.b()))){var c=a.aa;b.id||(b.id=$h(Zh.a()));zp(b,"option");Ap(c,"activedescendant",b.id);a.T&&(c=a.T.Tw(),c=hb(c,function(a){return a instanceof Vr}),Ap(b,"setsize",c),Ap(b,"posinset",1+a.T.th()))}}
function os(a){a.hz=a instanceof Vr?"option":"separator"}d.ia=function(a,b){ns.c.ia.call(this,a,b);aq(this,64)?this.Da().Vi(this.th()):ps(this)};X("goog-select",function(){return new ns(null)});function qs(){}m(qs,Lr);h(qs);d=qs.prototype;d.g=function(a){var b={"class":"goog-inline-block "+this.kb(a).join(" ")},b=a.p().g("div",b,a.getContent());this.dn(b,a.fk());Wp(this,a,b);return b};d.Zb=function(){return"button"};d.Gb=function(a){return"DIV"==a.tagName};d.ea=function(a,b){op(b,"goog-inline-block");return qs.c.ea.call(this,a,b)};d.w=function(){return""};d.A=function(){return"goog-flat-button"};X("goog-flat-button",function(){return new Nr(null,qs.a())});function rs(){}m(rs,qs);h(rs);d=rs.prototype;d.g=function(a){var b={"class":"goog-inline-block "+this.kb(a).join(" ")},b=a.p().g("div",b,[this.createCaption(a.getContent(),a.p()),this.qs(a.p())]);this.dn(b,a.fk());Wp(this,a,b);return b};d.Va=function(a){return a&&a.firstChild};
d.ea=function(a,b){var c=Mc(document,"*","goog-menu",b)[0];if(c){R(c,!1);pd(a.p()).body.appendChild(c);var e=new Zr;e.ea(c);a.fb(e)}Mc(document,"*",this.A()+"-caption",b)[0]||b.appendChild(this.createCaption(b.childNodes,a.p()));Mc(document,"*",this.A()+"-dropdown",b)[0]||b.appendChild(this.qs(a.p()));return rs.c.ea.call(this,a,b)};d.createCaption=function(a,b){return b.g("div","goog-inline-block "+(this.A()+"-caption"),a)};
d.qs=function(a){return a.g("div",{"class":"goog-inline-block "+(this.A()+"-dropdown"),"aria-hidden":!0}," ")};d.A=function(){return"goog-flat-menu-button"};X("goog-flat-menu-button",function(){return new hs(null,null,rs.a())});function ss(){}m(ss,rs);h(ss);ss.prototype.A=function(){return"qiwi-select"};function ts(a,b,c,e,f){ns.call(this,a,b,c||ss.a(),e,f)}m(ts,ns);W(ts,ss);X("qiwi-select",function(){return new ts(null)});ts.prototype.ia=function(a,b){ts.c.ia.call(this,a,b);a&&this.b()&&this.Da()&&this.Da().b()&&Mh(this.Da().b(),Nh(this.b()).width)};function us(){}m(us,ss);h(us);us.prototype.A=function(){return"qiwi-currency-select"};function vs(a,b,c,e,f){ts.call(this,a,b,c||us.a(),e,f)}m(vs,ts);W(vs,us);X("qiwi-currency-select",function(){return new vs(null)});function $q(a){a.N(1<a.Xo())}vs.prototype.N=function(a){2>this.Xo()&&(a=!1);vs.c.N.call(this,a)};vs.prototype.fb=function(a){vs.c.fb.call(this,a);$q(this)};vs.prototype.hb=function(a){vs.c.hb.call(this,a);$q(this)};vs.prototype.fe=function(a,b){vs.c.fe.call(this,a,b);$q(this)};function ws(){this.gg=[]}m(ws,Qr);h(ws);ws.prototype.A=function(){return"qiwi-select-menu-item"};function Cr(a,b,c,e){Vr.call(this,a,b,c,e||ws.a())}m(Cr,Vr);Cr.prototype.w=function(){return this.xa.Ha()};function xs(){Yr.call(this)}m(xs,Yr);h(xs);xs.prototype.A=function(){return"qiwi-select-menu"};function ys(a,b){var c=Array.prototype.slice.call(arguments),e=c.shift();if("undefined"==typeof e)throw Error("[goog.string.format] Template required");return e.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,e,r,B,C,H,M){if("%"==C)return"%";var oa=c.shift();if("undefined"==typeof oa)throw Error("[goog.string.format] Not enough arguments");arguments[0]=oa;return zs[C].apply(null,arguments)})}
var zs={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Ta(" ",c-a.length):Ta(" ",c-a.length)+a},f:function(a,b,c,e,f){e=a.toString();isNaN(f)||""==f||(e=a.toFixed(f));var g;g=0>a?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=a&&(e=g+e);if(isNaN(c)||e.length>=c)return e;e=isNaN(f)?Math.abs(a).toString():Math.abs(a).toFixed(f);a=c-e.length-g.length;return e=0<=b.indexOf("-",0)?g+e+Ta(" ",a):g+Ta(0<=b.indexOf("0",0)?"0":" ",a)+e},d:function(a,b,c,e,f,g,l,r){return zs.f(parseInt(a,
10),b,c,e,0,g,l,r)}};zs.i=zs.d;zs.u=zs.d;function As(){}As.prototype.Ob=function(a){this.eb=a};As.prototype.Z=function(){return this.eb};As.prototype.Mc=function(a){this.gc=a};As.prototype.Od=function(){return this.gc};function Bs(){}m(Bs,As);Bs.prototype.check=function(){return this.eb=!0};function Cs(){}m(Cs,As);Cs.prototype.check=function(a){return this.eb=!Ba(a)};function Ds(){}m(Ds,As);Ds.prototype.check=function(a){return this.eb=Ba(a)};function Es(){}m(Es,As);d=Es.prototype;d.al=function(a){this.Yq=a};d.Od=function(){return this.gc||jb(this.Yq,k(this.nk,this)).Od()};d.check=function(a){return this.eb=gb(this.Yq,k(this.sj,this,a),this)};d.sj=function(a,b){return b.check(a)};d.nk=function(a){return!a.Z()};function Fs(){}m(Fs,As);d=Fs.prototype;d.al=function(a){this.Yq=a};d.Od=function(){return this.gc||kb(this.Yq,k(this.nk,this)).Od()};d.check=function(a){return this.eb=db(this.Yq,k(this.sj,this,a),this)};d.sj=function(a,b){return b.check(a)};d.nk=function(a){return!a.Z()};function Ms(){}m(Ms,As);Ms.prototype.Hq=function(a){this.Ee=a};Ms.prototype.check=function(a){return this.eb=this.Ee.check(a)};function Ns(a){var b=p(a,"type"),b=b.toLowerCase();return(0,Os[b])(a)}function Ps(){return new Bs}var Os={successful:Ps,required:function(a){var b=new Cs;b.Mc(a.message);return b},optional:function(a){var b=new Ds;b.Mc(a.message);return b},and:function(a){var b=new Es;b.al(bb(a.children,Ns));b.Mc(a.message);return b},or:function(a){var b=new Fs;b.al(bb(a.children,Ns));b.Mc(a.message);return b},predicate:function(a){var b=new Ms;b.Hq(Qs(a.predicate));b.Mc(a.message);return b}};function Rs(){}Rs.prototype.ic=function(a){this.id=a};Rs.prototype.Ha=function(){return this.id};Rs.prototype.Cq=function(a){this.he=a};function Nq(a,b,c){var e=new BigNumber(b);b=e.floor().toNumber();var e=e.minus(b).times(100).toNumber(),f=new Bj;f.append(b);f.append(" ");f.append(a.xx);c&&(f.append(" "),f.append(e),f.append(" "),f.append(a.tL));return f.toString()};function Ss(a){var b=new Rs;b.ic(a);a=u.shell.currency[a];b.Cq(a.code);b.xx=a.ishort;b.tL=a.fshort;return b};function Ts(a){var b=new Us("");b.Mg(!0);b.il("0.00");b.LH=Vs;b.dB=Ws;var c=new vs("",null);c.fb(new Zr(null,xs.a()));var e=new Br;e.ya(a.name);e.setTitle(a.title);e.Vb("");e.$c(c);e.GA(a.total.title);e.N(!0);e.an(!1);e.Sh(Ns(a.validator));e.Ka(b);e.ff(500);$q(c);return e}var Ws=/^0{0,1}(?:[\.,]\d{0,2})?$|^[1-9]{1}\d{0,5}(?:[\.,]\d{0,2})?$/;
function Vs(a){var b;ia(a)&&(b=a.match(/^(\d*)(?:([\.,])(\d*))?$/));ga(b)&&ia(b[1])&&ia(b[2])&&ia(b[3])&&(a=b[1].substring(0,6)+b[2]+b[3].substring(0,2));return a};function Xs(){}m(Xs,lr);h(Xs);d=Xs.prototype;d.A=function(){return"qiwi-payment-source"};d.Ve=function(){return"qiwi-payment-source-control"};d.Sc=function(){return"qiwi-payment-source-header"};d.km=function(){return"qiwi-payment-source-header-title"};d.jm=function(){return"qiwi-payment-source-header-required"};d.bk=function(){return"qiwi-payment-source-header-info"};d.ti=function(){return"qiwi-payment-source-info"};d.qd=function(){return"qiwi-payment-source-description"};d.rd=function(){return"qiwi-payment-source-error"};function Ys(a,b,c){tq.call(this,a,b,c)}m(Ys,tq);W(Ys,Xs);X("qiwi-payment-source",function(){return new Ys});Ys.prototype.Rj=function(){var a=this.X.Ga();null===a||this.Vb(a.xa.Qj);Ys.c.Rj.call(this)};function Zs(){Yr.call(this)}m(Zs,Yr);h(Zs);Zs.prototype.A=function(){return"qiwi-payment-source-menu"};function $s(a,b){Zr.call(this,a,b||Zs.a())}m($s,Zr);W($s,Zs);X("qiwi-payment-source-menu",function(){return new $s(null)});function at(){this.gg=[]}m(at,Qr);h(at);at.prototype.A=function(){return"qiwi-payment-source-menu-item"};at.prototype.$o=function(){return"qiwi-payment-source-menu-item-name"};at.prototype.g=function(a){var b=at.c.g.call(this,a),c=a.xa;a=a.p();var e=this.Va(b);a.S(e);a.appendChild(e,a.g("div","qiwi-payment-source-menu-item-icon",Tc("div",["qiwi-icon-source","qiwi-icon-source-"+c.getIcon()])));a.appendChild(e,a.g("div",this.$o(),c.getTitle()));return b};function bt(a,b,c,e){Vr.call(this,a,b,c,e||at.a())}m(bt,Vr);W(bt,at);X("qiwi-payment-source-menu-item",function(){return new bt});bt.prototype.w=function(){return this.xa.w()};function ct(){}m(ct,ss);h(ct);ct.prototype.A=function(){return"qiwi-payment-source-select"};function dt(a,b,c,e){ts.call(this,a,b,c||ct.a(),e)}m(dt,ts);W(dt,ct);X("qiwi-payment-source-select",function(){return new dt(null)});dt.prototype.Sg=function(){var a=null,b=this.Ga();b&&(a=b.xa.getTitle());this.setContent(a)};function et(){this.Ed=[]}d=et.prototype;d.setTitle=function(a){this.Bd=a};d.getTitle=function(){return this.Bd};d.Vb=function(a){this.Qj=a};d.$c=function(a){this.ra=a};d.Ru=function(a){a.$c(this.ra);mb(this.Ed,a)};d.Nw=function(a){return kb(this.Ed,k(this.zx,this,a),this)};d.zx=function(a,b){return b.UB<a};d.Oh=function(a){(this.qk=a)&&this.qk.$c(this.ra)};d.Rh=function(a){this.Yd=a};d.Ad=function(a){this.sb=a};d.Wi=function(a){this.lb=a};d.w=function(){return this.sb.toLowerCase()};d.getIcon=function(){return this.sb.toLowerCase()};
d.rl=function(){return{type:this.sb}};function ft(){this.Ed=[]}m(ft,et);d=ft.prototype;d.$j=q("account");d.ic=function(a){this.Ja=a};d.Ha=function(){return this.Ja};d.w=function(){var a=[this.sb];this.Ja&&a.push(this.Ja);return a.join("_").toLowerCase()};d.rl=function(){return{type:this.sb,accountId:this.Ja}};function gt(){this.Ed=[]}m(gt,et);gt.prototype.$j=q("mobile");gt.prototype.Og=function(a){this.Vd=a};gt.prototype.getIcon=function(){return(this.Vd||this.sb).toLowerCase()};gt.prototype.rl=function(){return{type:this.sb,provider:this.Vd}};function ht(){this.Ed=[]}m(ht,et);ht.prototype.$j=q("card");function Tq(){this.Ed=[]}m(Tq,et);d=Tq.prototype;d.$j=q("card");d.ic=function(a){this.Ja=a};d.Ha=function(){return this.Ja};d.DA=function(a){this.lH=a};d.lA=function(a){this.GE=a};d.w=function(){var a=[this.sb];this.Ja&&a.push(this.Ja);return a.join("_").toLowerCase()};d.rl=function(){return{type:this.sb,linkId:this.Ja}};function it(){this.Ed=[]}m(it,et);d=it.prototype;d.$j=q("card");d.ic=function(a){this.Ja=a};d.Ha=function(){return this.Ja};d.DA=function(a){this.lH=a};d.lA=function(a){this.GE=a};d.w=function(){var a=[this.sb];this.Ja&&a.push(this.Ja);return a.join("_").toLowerCase()};d.rl=function(){return{type:this.sb,linkId:this.Ja}};function Sq(){this.Ed=[]}m(Sq,et);Sq.prototype.$j=q("card");function Rq(){this.Ed=[]}m(Rq,et);Rq.prototype.$j=q("terminal");function ar(){}d=ar.prototype;d.$c=function(a){this.ra=a};d.hl=function(a){this.Jc=a};d.Yw=function(){return Nq(this.ra,this.Jc,!0)};d.gl=function(a){this.Hc=a};d.Xw=function(){return Nq(this.ra,this.Hc,!0)};function jt(a){var b=new ar;b.$c(Ss(a.currency));b.hl(a.min);b.gl(a.max);return b};function kt(a){var b=p(a,"type").toLowerCase(),b=(0,lt[b])(a);b.Wi(a.providerId);b.QK=a.isDefault;b.Ad(a.type);b.setTitle(a.title);b.Vb(a.description);mt(b,a.terms);return b}function mt(a,b){b&&(a.$u=b.cancelsPrimaryCommission,a.$c(Ss(b.currency)),n(p(b,"commission","ranges")||[],k(nt,null,a)),b.minAmount&&a.Oh(jt({min:b.minAmount,max:null,currency:b.currency})))}function nt(a,b){a.Ru(ot(b))}
function pt(a){var b=new gt;a.provider||(a.provider=a.type);b.Og(a.provider);if(a.provider)switch(a.provider.toLowerCase()){case "mts":a=ua("Sms commission"),a=a.replace("{0}","МТС"),a=a.replace("{1}",10),a=a.replace("{2}","руб."),b.Rh(a)}return b}
var lt={account:function(a){var b=new ft;b.ic(a.accountId);return b},mobile:pt,mts:pt,beeline:pt,megafon:pt,tele2:pt,matrix:pt,card:function(){return new ht},newlinkedcard:function(a){var b=new Tq;b.ic(a.linkId);b.DA(a.system.type);b.lA(a.maskedPan);return b},oldlinkedcard:function(a){var b=new it;b.ic(a.linkId);b.DA(a.system.type);b.lA(a.maskedPan);return b},unlinkedcard:function(){return new Sq},terminal:function(){return new Rq}};function qt(a){var b=new dt("",null);b.Mg(!0);b.fb(new $s);n(a.items,k(rt,null,b));var c=new Ys;c.ya(a.name);c.setTitle(a.title);c.Vb("");c.N(!0);c.an(!1);c.Sh(Ps());c.Ka(b);c.setVisible(ki(b.Da()));return c}function rt(a,b){a.hb(new bt(b.title,kt(b)))};function st(){}m(st,wp);h(st);d=st.prototype;d.A=function(){return"qiwi-payment-acquiring"};function tt(){return"qiwi-payment-acquiring-card-type"}function ut(){return"qiwi-payment-acquiring-card-pan-control"}function vt(){return"qiwi-payment-acquiring-card-pan-tooltip"}function wt(){return"qiwi-payment-acquiring-card-date"}function xt(){return"qiwi-payment-acquiring-save-control"}function yt(){return"qiwi-payment-acquiring-save-tooltip"}
function zt(){return"qiwi-payment-acquiring-card-cvv-control"}function At(){return"qiwi-payment-acquiring-card-cvv-tooltip"}
d.g=function(a){var b=st.c.g.call(this,a);a=a.p();var c=a.g("div",tt());a.appendChild(c,a.g("div",tt()+"-visa"));a.appendChild(c,a.g("div",tt()+"-mastercard"));a.appendChild(b,c);var e=a.g("div","qiwi-payment-acquiring-card-pan");a.appendChild(e,a.g("div",ut()));a.appendChild(e,a.g("div",vt(),Xc(ua("Acquiring pan tooltip"))));a.appendChild(b,e);var f=a.g("div",wt());a.appendChild(b,f);var g=a.g("div","qiwi-payment-acquiring-card-cvv");a.appendChild(g,a.g("div",zt()));a.appendChild(g,a.g("div",At(),
Xc(ua("Acquiring cvv tooltip"))));a.appendChild(b,g);var l=a.g("div","qiwi-payment-acquiring-card");a.appendChild(l,c);a.appendChild(l,e);a.appendChild(l,f);a.appendChild(l,g);a.appendChild(b,l);c=a.g("div","qiwi-payment-acquiring-save");a.appendChild(c,a.g("div",xt()));a.appendChild(c,a.g("div",yt(),Xc(ua("Acquiring save tooltip"))));a.appendChild(b,c);return b};d.aA=function(a,b){var c=a.p();a.b()||a.g();var e=t(ut(),a.b());e&&(c.S(e),b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e))};
d.kl=function(a,b){a.p();a.b()||a.g();var c=t(vt(),a.b());c&&R(c,b)};d.$z=function(a,b){var c=a.p();a.b()||a.g();var e=t(wt(),a.b());e&&(c.S(e),b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e))};d.Zz=function(a,b){var c=a.p();a.b()||a.g();var e=t(zt(),a.b());e&&(c.S(e),b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e))};d.en=function(a,b){a.p();a.b()||a.g();var c=t(At(),a.b());c&&R(c,b)};
d.xA=function(a,b){var c=a.p();a.b()||a.g();var e=t(xt(),a.b());e&&(c.S(e),b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e))};d.gn=function(a,b){a.p();a.b()||a.g();var c=t(yt(),a.b());c&&R(c,b)};d.setEditable=function(a,b){a.p();a.b()||a.g();var c=t(xt(),a.b());c&&R(c,b)};d.Ad=function(a,b){a.p();a.b()||a.g();var c=t(tt(),a.b());rp(c,[a.sb]);pp(c,[b])};function Bt(a,b){xp.call(this,a,b);this.DH=new Iq(this.WK,500,this);this.CH=new Iq(this.VK,100,this);this.BH=new Iq(this.UK,100,this)}m(Bt,xp);W(Bt,st);X("qiwi-payment-acquiring",function(){return new Bt});d=Bt.prototype;d.aA=function(a){this.o.aA(this,a);this.wb=a};d.$z=function(a){this.o.$z(this,a);this.vb=a};d.Zz=function(a){this.o.Zz(this,a);this.oc=a};d.xA=function(a){this.o.xA(this,a);this.yt=a};d.Ya=function(a){this.wb.Ya(a);this.dl(a)};d.dl=function(a){this.we=a};d.getError=function(){return this.we};
d.Vf=function(a){this.ll=a};d.Ob=function(a){this.eb=a};d.Mc=function(a){this.gc=a};d.Od=function(){return this.gc};d.Ad=function(a){this.o.Ad(this,a);this.sb=a};d.n=function(){this.wb&&!this.wb.j&&this.wb.b()&&this.wb.n();this.vb&&!this.vb.j&&this.vb.b()&&this.vb.n();this.oc&&!this.oc.j&&this.oc.b()&&this.oc.n();this.wb&&Ct(this,!0);this.vb&&Dt(this,!0);this.oc&&Et(this,!0);this.kl(!1);this.en(!1);this.gn(!1);Bt.c.n.call(this)};
d.B=function(){this.wb&&(this.wb.B(),Ct(this,!1));this.vb&&(this.vb.B(),Dt(this,!1));this.oc&&(this.oc.B(),Et(this,!1));Bt.c.B.call(this)};d.I=function(){this.wb&&(this.wb.O(),delete this.wb);this.vb&&(this.vb.O(),delete this.vb);this.oc&&(this.oc.O(),delete this.oc);Bt.c.I.call(this)};function Ct(a,b){var c=a.Q(),e=a.wb,f=b?c.C:c.W;f.call(c,e,"action",a.HL);f.call(c,e,"blur",a.IL)}function Dt(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.vb,"action",a.GL)}
function Et(a,b){var c=a.Q(),e=a.oc,f=b?c.C:c.W;f.call(c,e,"action",a.DL);f.call(c,e,"focus",a.FL);f.call(c,e,"blur",a.EL)}d.HL=function(){this.CH.stop();this.CH.start()};d.IL=function(){this.kl(!1)};d.GL=function(){Ft(this)};d.DL=function(){this.BH.stop();this.BH.start()};d.FL=function(){Gt(this)};d.EL=function(){this.en(!1)};function Ft(a){a.DH.stop();a.DH.start()}d.WK=function(){this.wb.Z(!1)&&this.dispatchEvent("change")};d.VK=function(){Uq(this);Ft(this)};d.UK=function(){Gt(this);Ft(this)};
d.kl=function(a){this.o.kl(this,this.Do?a:!1)};d.en=function(a){this.o.en(this,a)};d.gn=function(a){this.o.gn(this,this.Do?a:!1)};function Gt(a){a.kl(!1);a.oc.sp()&&(a.oc.Z(!1)?(a.en(!1),a.gn(!0)):(a.en(!0),a.gn(!1)))}function Uq(a){var b=Da(a.wb.w()||"");if(b)switch(b[0]){case "4":a.Ad("visa");break;case "5":a.Ad("mastercard");break;default:a.Ad("none")}else a.Ad(null)}d.reset=function(){this.wb.Yc();this.vb.Yc();this.oc.Yc();this.yt.Yc();this.Ob(null);this.Ya(null)};
d.setEditable=function(a){this.Do=a;this.wb.N(a);this.vb.N(a);this.yt.N(a);this.o.setEditable(this,a)};d.N=function(a){this.Yb=a};d.isEnabled=function(){return this.Yb};d.rl=function(){return this.Do?{card:{pan:this.wb.w(),expirationDate:{month:this.vb.w().substr(4,2),year:this.vb.w().substr(0,4)},cvv:this.oc.w()},saveCard:this.yt.w()}:{cvv:this.oc.w()}};d.tp=function(a){var b=!0;this.Do&&(b&=this.wb.Z(a),b&=this.vb.Z(a));return b&=this.oc.Z(a)};
d.Z=function(a){if(!this.tp(a))return!1;if(a||this.ll)this.Vf(!0),this.Ya(this.eb?null:this.we?this.we:this.gc);return this.eb};function Ht(){}m(Ht,Tp);h(Ht);Ht.prototype.A=function(){return"qiwi-forms-text"};function It(a,b,c){Y.call(this,a,b,c)}m(It,kr);W(It,Ht);X("qiwi-forms-text",function(){return new It});It.prototype.Ge=function(a){this.setContent(Xc(a))};It.prototype.Cg=function(){return this.getContent()};function Jt(a){Hf.call(this);this.ua=null;this.aa=a;a=s||Xb&&!dc("531")&&"TEXTAREA"==a.tagName;this.ug=new Mf(this);this.ug.C(this.aa,a?["keydown","paste","cut","drop","input"]:"input",this)}m(Jt,Hf);
Jt.prototype.handleEvent=function(a){if("input"==a.type)s&&dc(10)&&0==a.keyCode&&0==a.charCode||(Kt(this),Vb&&this.aa!=Lc(this.aa).activeElement||this.dispatchEvent(Lt(a)));else if("keydown"!=a.type||Cp(a)){var b="keydown"==a.type?this.aa.value:null;s&&229==a.keyCode&&(b=null);var c=Lt(a);Kt(this);this.ua=Lf(function(){this.ua=null;this.aa.value!=b&&this.dispatchEvent(c)},0,this)}};function Kt(a){null!=a.ua&&(aa.clearTimeout(a.ua),a.ua=null)}function Lt(a){a=new de(a.xg);a.type="input";return a}
Jt.prototype.I=function(){Jt.c.I.call(this);this.ug.O();Kt(this);delete this.aa};function Mt(){}m(Mt,Tp);h(Mt);d=Mt.prototype;d.A=function(){return"qiwi-textinput"};d.Zb=function(){};d.g=function(a){var b=a.p().g("input",{type:"text",placeholder:a.Ww(),maxlength:a.Uw(),"class":this.kb(a).join(" "),disabled:!a.isEnabled(),autocomplete:"off"},a.getContent()||"");a.Dp&&jQuery(b).mask({mask:a.Dp});jQuery(b).inputfit({DR:10,KN:20});return b};d.ea=function(a,b){Mt.c.ea.call(this,a,b);a.Af=b.value;b.setAttribute("placeholder",a.Ww());b.setAttribute("maxlength",a.Uw());return b};
d.Gb=function(a){return"INPUT"==a.tagName&&(!ba(a.type)||"TEXT"==a.type.toUpperCase())};d.Uf=da;d.Rd=function(a){return a.isEnabled()};d.fd=da;d.Pa=function(a,b,c){Mt.c.Pa.call(this,a,b,c);var e=a.b();if(e)switch(b){case 1:ld(e,!c);c?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled");break;case 32:!aq(a,4)&&c&&(a=e.value,jQuery(e).data("ui-mask")&&(a=jQuery(e).mask("value")),Lf(k(this.setContent,this,e,a),0))}};d.Cd=da;
d.setContent=function(a,b){a&&(jQuery(a).data("ui-mask")?(jQuery(a).mask("value",b),jQuery(a).is(":focus")&&jQuery(a).focus()):a.value=b)};d.getContent=function(a){var b=null;a&&(b=a.value,jQuery(a).data("ui-mask")&&(b=jQuery(a).mask("masked")));return b};d.il=function(a,b){var c=a.b();c&&c.setAttribute("placeholder",b)};d.Ww=function(a){return(a=a.b())?a.getAttribute("placeholder"):null};d.Qt=function(a,b){var c=a.b();c&&c.setAttribute("maxlength",b)};
d.Uw=function(a){return(a=a.b())?parseInt(a.getAttribute("maxlength"),10):null};d.Ng=function(a,b){var c=a.b();c&&b&&jQuery(c).mask({mask:b})};function Us(a,b,c){Y.call(this,a,b,c)}m(Us,Y);W(Us,Mt);X("qiwi-textinput",function(){return new Us});d=Us.prototype;d.ge=!0;d.pF="";d.JE="";d.Sw=function(){this.ye||(this.ye=new Jt(this.b()));return this.ye};d.Gc=function(a){Us.c.Gc.call(this,a);ba(a.disabled)?this.N(!a.disabled):a.disabled=!this.isEnabled()};d.getContent=function(){return this.o.getContent(this.b())};d.w=function(){return this.getContent()};d.P=function(a){this.getContent()!=a&&(this.setContent(a),this.dispatchEvent("change"))};
d.il=function(a){this.pF=a;this.o.il(this,a)};d.Ww=function(){return this.pF};d.Qt=function(a){this.JE=a;this.o.Qt(this,a)};d.Uw=function(){return this.JE};d.Ng=function(a){this.Dp=a;this.o.Ng(this,a)};d.n=function(){Us.c.n.call(this);this.Q().C(this.Sw(),"input",this.nx)};d.I=function(){this.ye&&(this.ye.O(),delete this.ye);Us.c.I.call(this)};d.cd=function(a){return!this.zd(a)};
d.nx=function(a){var b=this.w();if(this.LH){var c=this.LH(b);c!=b&&(b=c,this.P(b))}if(this.dB&&!this.dB.test(b))return this.P(null!=this.ub?this.ub:""),a.preventDefault(),a.stopPropagation(),!1;this.ub=b};function Nt(){}m(Nt,Tp);h(Nt);d=Nt.prototype;d.A=function(){return"qiwi-phoneinput"};d.yi=function(){return"qiwi-phoneinput-text"};d.Zb=function(){};d.g=function(a){var b=Nt.c.g.call(this,a);a=a.p();a.appendChild(b,a.g("div","qiwi-phoneinput-flag"));a.appendChild(b,a.g("div",this.yi()));return b};d.dp=function(a){return t(this.yi(),a)};d.Rw=function(a){return t("qiwi-phoneinput-flag",a)};
d.Ge=function(a,b){var c=a.p();a.b()||a.g();var e=this.dp(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.$m=function(a,b){var c=a.p();a.b()||a.g();var e=this.Rw(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e);ld(b.b(),!1)};function Ot(a,b,c){Y.call(this,a,b,c)}m(Ot,Y);W(Ot,Nt);X("qiwi-phoneinput",function(){return new Ot});d=Ot.prototype;d.ge=!0;d.N=function(a){Ot.c.N.call(this,a);this.za&&this.za.N(a);this.la&&this.la.N(a)};d.$w=function(){this.Yf||(this.Yf=new Jt(this.za.b()));return this.Yf};d.ax=function(){this.Zf||(this.Zf=new Hp(this.za.b()));return this.Zf};d.Ge=function(a){this.o.Ge(this,a);this.EA(a)};d.EA=function(a){this.za=a};d.Cg=function(){return this.za};d.$m=function(a){this.o.$m(this,a);this.fA(a)};
d.fA=function(a){this.la=a};d.P=function(a){this.Cg().P(a)};d.w=function(){return this.Cg().w()};d.n=function(){Ot.c.n.call(this);this.za&&(this.za.j||this.za.n(),this.Cp(!0),this.lk(null));this.la&&(this.la.j||this.la.n(),this.Bp(!0))};d.B=function(){this.za&&(this.za.B(),this.Cp(!1));this.la&&(this.la.B(),this.Bp(!1));Ot.c.B.call(this)};
d.I=function(){this.za&&(this.za.O(),delete this.za);this.la&&(this.la.O(),delete this.la);this.Yf&&(this.Yf.O(),delete this.Yf);this.Zf&&(this.Zf.O(),delete this.Zf);Ot.c.I.call(this)};d.Cp=function(a){var b=this.Q();a=a?b.C:b.W;a.call(b,this.Cg(),"change",this.lk);a.call(b,this.$w(),"input",this.lk);a.call(b,this.ax(),"key",this.qx)};d.Bp=function(a){var b=this.Q();a=a?b.C:b.W;a.call(b,this.la,"action",this.jx);a.call(b,this.la,"aftershow",this.lx);a.call(b,this.la,"afterhide",this.kx)};
d.qx=function(a){var b=a.keyCode;if(this.la&&this.la.Da()&&this.la.Da().Ia())return a=this.la.Da().xe(a),27==b||9==b?(this.la.ia(!1),!0):a;if(40==b||38==b)return this.la.ia(!0,a),!0};d.lk=function(a){var b=this.w().replace(/[^\d]/g,"");b&&(b="+"+b);var c=this.la.gk(b);if(null==c)return this.za.P(this.ub||""),a.stopPropagation(),a.preventDefault(),!1;b?this.la.Nb(c):this.la.Nb(null);(a=c.xa.maxLength)&&(b=Ra(b,a+1,b.length-a));this.za.P(b);this.ub=b;this.ok=c;this.dispatchEvent("action")};
d.lx=function(){var a=this.p(),b=this.la.Da().b();Mh(b,Nh(this.za.b()).width);var c=td(a).y,a=Pc(Sc(a.$a)||window).height,e=Jh(b).y,f=Nh(b).height;e+f>c+a&&Lh(b,c+a-e-30)};d.kx=function(){var a=this.la.Da().b();Ah(a,"width","auto");Ah(a,"height","auto")};d.jx=function(){var a=this.la.Ga(),b=this.za.w();null!=this.ok&&(b=Ra(b,0,this.ok.xa.prefix.length));b=a.xa.prefix+b;this.za.P(b);this.ub=b;this.ok=a};function Pt(){}m(Pt,Tp);h(Pt);d=Pt.prototype;d.A=function(){return"qiwi-date-input"};d.zi=function(){return"qiwi-date-input-text-input"};d.Zb=function(){};d.g=function(a){var b=Pt.c.g.call(this,a),c=a.p();c.appendChild(b,c.g("div",this.zi()));a.Fa.g();return b};d.ep=function(a){return t(this.zi(),a)};d.Xf=function(a,b){var c=a.p();a.b()||a.g();var e=this.ep(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};function Qt(a,b,c){Y.call(this,a,b,c)}m(Qt,Y);W(Qt,Pt);X("qiwi-date-input",function(){return new Qt});d=Qt.prototype;d.ge=!0;d.jf=103;d.Eq=function(a){this.Co=a};d.Fq=function(a){this.Pj=a};d.N=function(a){Qt.c.N.call(this,a);this.oa&&this.oa.N(a)};d.fp=function(){this.Zi||(this.Zi=new Jt(this.oa.b()));return this.Zi};d.gp=function(){this.$i||(this.$i=new Hp(this.oa.b()));return this.$i};d.Xf=function(a){this.o.Xf(this,a);this.Kq(a)};d.Kq=function(a){this.oa=a};d.tA=function(a){this.uA(a)};
d.uA=function(a){this.Fa=a};d.Ag=function(){return this.Fa.Ag()};d.P=function(a){this.oa.P(a);this.dispatchEvent("action")};d.w=function(){return null!=this.oa?this.oa.w():null};d.getContent=function(){return this.w()};d.n=function(){Qt.c.n.call(this);this.oa&&(this.oa.j||this.oa.n(),this.Am(!0));if(this.Fa){if(!this.Fa.j){sd(this.p()).appendChild(this.Fa.b());this.Fa.n();ld(this.Fa.b(),!1);var a=ud("[tabindex]",this.Fa.b());if(a)for(var b=0;b<a.length;b+=1)ld(a[b],!1)}this.by(!0)}};
d.Am=function(a){var b=this.Q();a=a?b.C:b.W;a.call(b,this.oa.b(),"focus",this.mp);a.call(b,this.oa.b(),"blur",this.lp);a.call(b,this.fp(),"input",this.np);a.call(b,this.gp(),"key",this.op)};d.by=function(a){var b=this.Q();a=a?b.C:b.W;a.call(b,this.Fa,Rt,this.ox);a.call(b,this.Fa,St,this.px);a.call(b,this.Fa,Tt,this.jp)};d.mp=function(){this.isEnabled()&&this.ia(!0)};d.lp=function(a){this.Pa(64,!1);this.jp(a)};
d.op=function(a){var b=a.keyCode;this.ze=!1;if(this.Fa&&this.Fa.Ia()){switch(b){case 27:case 9:case 13:return this.ia(!1),!0}a.preventDefault();this.ze=!0;a=this.Ag();var c=b=0;switch(event.keyCode){case 33:b=-1;break;case 34:b=1;break;case 37:c=-1;break;case 39:c=1;break;case 38:c=-7;break;case 40:c=7;break;case 36:a.zt();break;default:return this.ze=!1}var e=a.getDate();e?e.add(new Ut(0,b,c)):(e=a.Pb.clone(),e.setDate(1));a.$f.contains(e)&&a.setDate(e);this.ze=!1;return!0}if(40==b||38==b)return this.ia(!0),
!0};d.np=function(){};d.ox=function(a){this.P(a.qa?this.Co.format(a.qa):"");!0!==this.ze&&(this.oa.b().focus(),this.ia(!1))};d.px=function(){var a=this.w(),b=new Xq;0<Vt(this.Pj,a,b,0,!0)&&this.Ag().$f.contains(b)?this.Fa.setDate(b):this.P("")};d.jp=function(){var a=this.w(),b=new Xq;0<Vt(this.Pj,a,b,0,!0)&&this.Ag().$f.contains(b)?this.Fa.setDate(b):this.P("")};d.dd=function(a){Qt.c.dd.call(this,a);this.xh()&&this.ia(!0)};
d.ia=function(a){Qt.c.ia.call(this,a);this.Fa&&aq(this,64)==a&&(a?this.Fa.ml(this.b()):Wt(this.Fa))};d.zd=function(){this.setActive(!1);return!0};function Xt(){}m(Xt,Tp);h(Xt);d=Xt.prototype;d.A=function(){return"qiwi-suggest-input"};d.zi=function(){return"qiwi-suggest-input-text-input"};d.Zb=function(){};d.g=function(a){var b=Xt.c.g.call(this,a);a=a.p();a.appendChild(b,a.g("div",this.zi()));return b};d.ep=function(a){return t(this.zi(),a)};d.Xf=function(a,b){var c=a.p();a.b()||a.g();var e=this.ep(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};function Yt(a,b,c){Y.call(this,a,b,c);this.Ah=new Kr(null,5);this.aj=new Iq(this.Rj,500,this)}m(Yt,Y);W(Yt,Xt);X("qiwi-suggest-input",function(){return new Yt});d=Yt.prototype;d.ge=!0;d.jf=71;d.N=function(a){Yt.c.N.call(this,a);this.oa&&this.oa.N(a)};d.fp=function(){this.Zi||(this.Zi=new Jt(this.oa.b()));return this.Zi};d.gp=function(){this.$i||(this.$i=new Hp(this.oa.b()));return this.$i};d.Wi=function(a){this.lb=a};d.Xf=function(a){this.o.Xf(this,a);this.Kq(a)};d.Kq=function(a){this.oa=a};d.P=function(a){this.oa.P(a)};
d.w=function(){return null!=this.oa?this.oa.w():null};d.uL=function(){return this.Fs};d.getContent=function(){return this.w()};d.n=function(){Yt.c.n.call(this);this.oa&&(this.oa.j||this.oa.n(),this.Am(!0));this.Oa&&(this.Oa.j||this.Oa.n(),Zt(this,!0))};d.B=function(){this.oa&&(this.Am(!1),this.oa.B());this.Oa&&(Zt(this,!1),this.Oa.B());Yt.c.B.call(this)};d.I=function(){this.oa&&(this.oa.O(),delete this.oa);this.Oa&&(this.Oa.O(),delete this.Oa);Yt.c.I.call(this)};
d.Am=function(a){var b=this.Q();a=a?b.C:b.W;a.call(b,this.oa,"change",this.gM);a.call(b,this.oa.b(),"focus",this.mp);a.call(b,this.oa.b(),"blur",this.lp);a.call(b,this.fp(),"input",this.np);a.call(b,this.gp(),"key",this.op)};function Zt(a,b){var c=a.Q(),e=b?c.C:c.W;e.call(c,a.Oa,"action",a.$L);e.call(c,a.Oa,"show",a.aM);e.call(c,a.Oa,"hide",a.eE);e.call(c,pd(a.p()),"mousedown",a.hx,!0)}d.gM=function(){var a=this.w();a!=this.ub&&(this.ub=a,this.dispatchEvent($t))};
d.mp=function(){this.isEnabled()&&this.ia(!0)};d.lp=function(){this.Pa(64,!1);this.eE()};d.op=function(a){var b=a.keyCode;this.ze=!1;if(this.Oa&&this.Oa.Ia()){this.ze=!0;switch(a.keyCode){case 38:case 40:case 13:this.Oa.xe(a);break;default:return this.ia(!1),this.ze=!1}this.ze=!1;return!0}if(40==b||38==b)return ki(this.Oa)&&this.ia(!0),!0};d.np=function(){this.aj.stop();this.aj.start()};d.Rj=function(){this.ia(!1);this.dispatchEvent($t)};
d.$L=function(a){a=a.target.w();this.P(a.value+(a.isFinal?"":" "));this.Fs=a.compoundValue||{};this.oa.b().focus();a.isFinal&&this.dispatchEvent(au)};d.aM=function(){this.w()};d.eE=function(){this.w()};d.dd=function(a){Yt.c.dd.call(this,a);this.xh()&&this.ia(!0)};d.hx=function(a){this.Oa&&this.Oa.Ia()&&!this.rg(a.target)&&this.ia(!1)};d.rg=function(a){return a&&dd(this.b(),a)||this.Oa&&this.Oa.rg(a)||!1};
d.ia=function(a){Yt.c.ia.call(this,a);this.Oa&&ki(this.Oa)&&aq(this,64)==a&&(this.Oa.setVisible(a,!1),a?(this.gq(),mq(this.Oa)):this.Oa.S(!0))};d.zd=function(){this.setActive(!1);return!0};d.Bx=function(){return this.Ah.SD&&!!(this.Ah.up&32)};
d.gq=function(){if(this.Oa.j){var a=this.Ah;this.Ah.element=this.oa.b();var b=this.Oa.b();this.Oa.Ia()||(b.style.visibility="hidden",R(b,!0));!this.Nk&&this.Bx()&&(this.Nk=Nh(b));a.Ig(b,a.Bo^1,this.KE,this.Nk);this.Oa.Ia()||(R(b,!1),b.style.visibility="visible");var c=this.p(),a=this.Oa.b();Lh(a,"auto");var b=td(c).y,c=Pc(Sc(c.$a)||window).height,e=Jh(a).y,f=Nh(a).height;e+f>b+c&&Lh(a,b+c-e-30)}};var au="suggest-input-final",$t="suggest-input-change";function bu(){}m(bu,Tp);h(bu);bu.prototype.g=function(a){var b=a.p().g("span",this.kb(a).join(" "));cu(this,b,a.Xg);return b};bu.prototype.ea=function(a,b){b=bu.c.ea.call(this,a,b);var c=mp(b),e=du;lb(c,eu(this,fu))?e=fu:lb(c,eu(this,gu))?e=gu:lb(c,eu(this,du))&&(e=du);a.Xg=e;Ap(b,"checked",e==fu?"mixed":e==gu?"true":"false");return b};bu.prototype.Zb=function(){return"checkbox"};
function cu(a,b,c){if(b){var e=eu(a,c);np(b,e)||(ub(hu,function(a){a=eu(this,a);a==e?op(b,a):qp(b,a)},a),Ap(b,"checked",c==fu?"mixed":c==gu?"true":"false"))}}bu.prototype.A=function(){return"goog-checkbox"};function eu(a,b){var c=a.A();if(b==gu)return c+"-checked";if(b==du)return c+"-unchecked";if(b==fu)return c+"-undetermined";throw Error("Invalid checkbox state: "+b);};function iu(a,b,c){c=c||bu.a();Y.call(this,null,c,b);this.Xg=ba(a)?a:du}m(iu,Y);var gu=!0,du=!1,fu=null,hu={UV:gu,kW:du,lW:fu};d=iu.prototype;d.Lf=null;d.Eg=function(){return this.Xg==gu};d.Ym=function(a){a!=this.Xg&&(this.Xg=a,cu(this.o,this.b(),this.Xg))};d.toggle=function(){this.Ym(this.Xg?du:gu)};
d.n=function(){iu.c.n.call(this);if(this.Ss){var a=this.Q();this.Lf&&a.C(this.Lf,"click",this.dx).C(this.Lf,"mouseover",this.Us).C(this.Lf,"mouseout",this.Ts).C(this.Lf,"mousedown",this.dd).C(this.Lf,"mouseup",this.Ci);a.C(this.b(),"click",this.dx)}a=this.aa;if(this.Lf&&a!=this.Lf&&Aa(Bp(a,"label"))){if(!this.Lf.id){var b=this.Lf,c;c=this.Ha()+".lbl";b.id=c}Ap(a,"labelledby",this.Lf.id)}};d.N=function(a){iu.c.N.call(this,a);if(a=this.b())a.tabIndex=this.isEnabled()?0:-1};
d.dx=function(a){a.stopPropagation();var b=this.Xg?"uncheck":"check";this.isEnabled()&&!a.target.href&&this.dispatchEvent(b)&&(a.preventDefault(),this.toggle(),this.dispatchEvent("change"))};d.cd=function(a){32==a.keyCode&&this.dx(a);return!1};X("goog-checkbox",function(){return new iu});function ju(){}m(ju,bu);h(ju);ju.prototype.A=function(){return"qiwi-switch"};ju.prototype.g=function(a){var b=ju.c.g.call(this,a);a.p().Pg(b,a.getTitle());return b};function ku(a,b,c){iu.call(this,a,b,c||ju.a())}m(ku,iu);W(ku,ju);X("qiwi-switch",function(){return new ku(null)});ku.prototype.setTitle=function(a){this.Bd=a};ku.prototype.getTitle=function(){return this.Bd};ku.prototype.w=function(){return this.Eg()?this.cq:this.$p};ku.prototype.P=function(a){if(!this.Eg()&&this.cq==a||this.Eg()&&this.$p==a)this.Ym(!this.Eg()),this.dispatchEvent("change")};function lu(){}m(lu,Tp);h(lu);d=lu.prototype;d.Zb=function(){};d.ea=function(a,b){a.Mg(!0);lu.c.ea.call(this,a,b);a.setContent(b.value);return b};d.g=function(a){a.Mg(!0);return a.p().g("textarea",{"class":this.kb(a).join(" "),disabled:!a.isEnabled()},a.getContent()||"")};d.Gb=function(a){return"TEXTAREA"==a.tagName};d.Uf=da;d.Rd=function(a){return a.isEnabled()};d.fd=da;d.Pa=function(a,b,c){lu.c.Pa.call(this,a,b,c);(a=a.b())&&1==b&&(a.disabled=c)};d.Cd=da;d.setContent=function(a,b){a&&(a.value=b)};
d.A=function(){return"goog-textarea"};function mu(a,b,c){Y.call(this,a,b||lu.a(),c);this.pm=""!=a;a||(this.Af="")}m(mu,Y);W(mu,lu);X("goog-textarea",function(){return new mu});var nu=Wb||Xb||s&&ec(11);d=mu.prototype;d.sm=!1;d.Xs=!1;d.pm=!1;d.vh=0;d.IE=0;d.hF=0;d.gE=!1;d.qt=!1;d.qz=!1;d.pz=!1;d.Pk="";d.il=function(a){this.Pk=a;this.b()&&ou(this)};function pu(a){return a.Ok.top+a.Ok.bottom+a.Yu.top+a.Yu.bottom}function qu(a){var b=a.hF,c=a.b();b&&c&&a.qt&&(b-=pu(a));return b}d.P=function(a){this.setContent(String(a))};
d.w=function(){return this.b().value!=this.Pk||ru(this)||this.pm?this.b().value:""};d.setContent=function(a){mu.c.setContent.call(this,a);this.pm=""!=a;this.resize()};d.N=function(a){mu.c.N.call(this,a);this.b().disabled=!a};d.resize=function(){this.b()&&this.Os()};function ru(a){return"placeholder"in a.b()}function ou(a){a.Pk&&(ru(a)?a.b().placeholder=a.Pk:!a.b()||a.pm||a.Xs||(op(a.b(),su),a.b().value=a.Pk))}
d.n=function(){mu.c.n.call(this);var a=this.b();Ah(a,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});this.Ok=Uh(a);this.Yu=Xh(a);this.Q().C(a,"scroll",this.Os).C(a,"focus",this.Os).C(a,"keyup",this.Os).C(a,"mouseup",this.ER).C(a,"blur",this.tK);ou(this);this.resize()};
function tu(a){if(!a.gE){var b=a.b().cloneNode(!1);Ah(b,{position:"absolute",height:"auto",top:"-9999px",margin:"0",padding:"1px",border:"1px solid #000",overflow:"hidden"});pd(a.p()).body.appendChild(b);var c=b.scrollHeight;b.style.padding="10px";var e=b.scrollHeight;a.qz=e>c;b.style.borderWidth="10px";a.pz=b.scrollHeight>e;b.style.height="100px";100!=b.offsetHeight&&(a.qt=!0);$c(b);a.gE=!0}b=a.b();isNaN(a.Ok.top)&&(a.Ok=Uh(b),a.Yu=Xh(b));var c=a.b().scrollHeight,f=a.b(),e=f.offsetHeight-f.clientHeight;
if(!a.qz)var g=a.Ok,e=e-(g.top+g.bottom);a.pz||(f=Xh(f),e-=f.top+f.bottom);c+=0<e?e:0;a.qt?c-=pu(a):(a.qz||(e=a.Ok,c+=e.top+e.bottom),a.pz||(a=Xh(b),c+=a.top+a.bottom));return c}function uu(a,b){a.vh!=b&&(a.vh=b,a.b().style.height=b+"px")}function vu(a){var b=a.b();b.style.height="auto";var c=b.value.match(/\n/g)||[];b.rows=c.length+1;a.vh=0}var su="textarea-placeholder-input";mu.prototype.tK=function(){ru(this)||(this.Xs=!1,""==this.b().value&&(this.pm=!1,ou(this)))};
mu.prototype.Os=function(a){if(!this.sm){var b=this.b();!ru(this)&&a&&"focus"==a.type&&(b.value==this.Pk&&this.Pk&&!this.Xs&&(qp(b,su),b.value=""),this.Xs=!0,this.pm=""!=b.value);var c=!1;this.sm=!0;a=this.vh;if(b.scrollHeight){var e=!1,f=!1,g=tu(this),l=b.offsetHeight,r=qu(this),B;B=this.IE;var C=this.b();B&&C&&this.qt&&(B-=pu(this));r&&g<r?(uu(this,r),e=!0):B&&g>B?(uu(this,B),b.style.overflowY="",f=!0):l!=g?uu(this,g):this.vh||(this.vh=g);e||f||!nu||(c=!0)}else vu(this);this.sm=!1;c&&(b=this.b(),
this.sm||(this.sm=!0,(f=b.scrollHeight)?(g=tu(this),c=qu(this),c&&g<=c||(e=this.Ok,b.style.paddingBottom=e.bottom+1+"px",tu(this)==g&&(b.style.paddingBottom=e.bottom+f+"px",b.scrollTop=0,f=tu(this)-f,f>=c?uu(this,f):uu(this,c)),b.style.paddingBottom=e.bottom+"px")):vu(this),this.sm=!1));a!=this.vh&&this.dispatchEvent("resize")}};
mu.prototype.ER=function(){var a=this.b(),b=a.offsetHeight;a.filters&&a.filters.length&&(a=a.filters.item("DXImageTransform.Microsoft.DropShadow"))&&(b-=a.offX);b!=this.vh&&(this.vh=this.hF=b)};mu.prototype.cd=function(a){return!this.zd(a)};function wu(){}m(wu,lu);h(wu);wu.prototype.A=function(){return"qiwi-textarea"};wu.prototype.g=function(a){return wu.c.g.call(this,a)};wu.prototype.ea=function(a,b){wu.c.ea.call(this,a,b);return b};function xu(a,b,c){mu.call(this,a,b||wu.a(),c)}m(xu,mu);W(xu,wu);X("qiwi-textarea",function(){return new xu(null)});xu.prototype.n=function(){xu.c.n.call(this);Ah(this.b(),"height",null)};function yu(){}m(yu,Tp);h(yu);d=yu.prototype;d.A=function(){return"qiwi-fileupload"};d.Zb=function(){};d.g=function(a){return a.p().g("input",{type:"file",name:a.getName(),"class":this.kb(a).join(" "),disabled:!a.isEnabled()},a.getContent()||"")};d.ea=function(a,b){yu.c.ea.call(this,a,b);a.Af=b.value;b.setAttribute("name",a.getName());return b};d.Gb=function(a){return"INPUT"==a.tagName&&(!ba(a.type)||"FILE"==a.type.toUpperCase())};d.Uf=da;d.Rd=function(a){return a.isEnabled()};d.fd=da;
d.Pa=function(a,b,c){yu.c.Pa.call(this,a,b,c);if(a=a.b())switch(b){case 1:a.disabled=c}};d.Cd=da;d.ya=function(a,b){var c=a.b();c&&c.setAttribute("name",b)};d.getName=function(a){return(a=a.b())?a.getAttribute("name"):null};function zu(a,b,c){Y.call(this,a,b,c)}m(zu,Y);W(zu,yu);X("qiwi-fileupload",function(){return new zu});d=zu.prototype;d.ge=!0;d.Gc=function(a){zu.c.Gc.call(this,a);ba(a.disabled)?this.N(!a.disabled):a.disabled=!this.isEnabled()};d.getContent=function(){return this.b()?this.b().value:null};d.w=function(){return this.getContent()};d.P=function(a){this.setContent(a)};d.ya=function(a){this.wc=a;this.o.ya(this,a)};d.getName=function(){return this.wc};d.cd=function(a){return!this.zd(a)};function Au(){}m(Au,Tp);h(Au);Au.prototype.A=function(){return"qiwi-info"};Au.prototype.setContent=function(a,b){a&&fd(a,b)};Au.prototype.getContent=function(a){return a?md(a):""};function qr(a,b,c){Y.call(this,a,b,c)}m(qr,Y);W(qr,Au);X("qiwi-info",function(){return new qr});qr.prototype.getContent=function(){return this.o.getContent(this.b())};qr.prototype.w=function(){return this.getContent()};qr.prototype.P=function(a){this.setContent(a)};var Bu,Cu={lu:["BC","AD"],iB:["Before Christ","Anno Domini"],kB:"JFMAMJJASOND".split(""),lB:"JFMAMJJASOND".split(""),mu:"January February March April May June July August September October November December".split(" "),hj:"January February March April May June July August September October November December".split(" "),ou:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),ru:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),tu:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
nB:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),qu:"Sun Mon Tue Wed Thu Fri Sat".split(" "),su:"Sun Mon Tue Wed Thu Fri Sat".split(" "),RH:"SMTWTFS".split(""),mB:"SMTWTFS".split(""),pu:["Q1","Q2","Q3","Q4"],nu:["1st quarter","2nd quarter","3rd quarter","4th quarter"],ju:["AM","PM"],vl:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],tn:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],ku:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Zq:6,uu:[5,6],$q:5},Du={lu:["до н. э.",
"н. э."],iB:["до н. э.","н. э."],kB:"ЯФМАМИИАСОНД".split(""),lB:"ЯФМАМИИАСОНД".split(""),mu:"января февраля марта апреля мая июня июля августа сентября октября ноября декабря".split(" "),hj:"январь февраль март апрель май июнь июль август сентябрь октябрь ноябрь декабрь".split(" "),ou:"янв. февр. марта апр. мая июня июля авг. сент. окт. нояб. дек.".split(" "),ru:"янв. февр. март апр. май июнь июль авг. сент. окт. нояб. дек.".split(" "),tu:"воскресенье понедельник вторник среда четверг пятница суббота".split(" "),
nB:"Воскресенье Понедельник Вторник Среда Четверг Пятница Суббота".split(" "),qu:"вс пн вт ср чт пт сб".split(" "),su:"Вс Пн Вт Ср Чт Пт Сб".split(" "),RH:"вс пн вт ср чт пт сб".split(" "),mB:"ВПВСЧПС".split(""),pu:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],nu:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"],ju:["AM","PM"],vl:["EEEE, d MMMM y 'г'.","d MMMM y 'г'.","d MMM y 'г'.","dd.MM.yy"],tn:["H:mm:ss zzzz","H:mm:ss z","H:mm:ss","H:mm"],ku:["{1}, {0}","{1}, {0}","{1}, {0}","{1}, {0}"],Zq:0,
uu:[5,6],$q:6};Bu=Cu;function Eu(a,b){switch(b){case 1:return 0!=a%4||0==a%100&&0!=a%400?28:29;case 5:case 8:case 10:case 3:return 30}return 31}function Ut(a,b,c,e,f,g){ia(a)?(this.ae=a==Fu?b:0,this.Sd=a==Gu?b:0,this.Ld=a==Hu?b:0,this.Lb=a==Iu?b:0,this.vc=a==Ju?b:0,this.yc=a==Ku?b:0):(this.ae=a||0,this.Sd=b||0,this.Ld=c||0,this.Lb=e||0,this.vc=f||0,this.yc=g||0)}
Ut.prototype.mn=function(a){var b=Math.min(this.ae,this.Sd,this.Ld,this.Lb,this.vc,this.yc),c=Math.max(this.ae,this.Sd,this.Ld,this.Lb,this.vc,this.yc);if(0>b&&0<c)return null;if(!a&&0==b&&0==c)return"PT0S";c=[];0>b&&c.push("-");c.push("P");(this.ae||a)&&c.push(Math.abs(this.ae)+"Y");(this.Sd||a)&&c.push(Math.abs(this.Sd)+"M");(this.Ld||a)&&c.push(Math.abs(this.Ld)+"D");if(this.Lb||this.vc||this.yc||a)c.push("T"),(this.Lb||a)&&c.push(Math.abs(this.Lb)+"H"),(this.vc||a)&&c.push(Math.abs(this.vc)+"M"),
(this.yc||a)&&c.push(Math.abs(this.yc)+"S");return c.join("")};Ut.prototype.equals=function(a){return a.ae==this.ae&&a.Sd==this.Sd&&a.Ld==this.Ld&&a.Lb==this.Lb&&a.vc==this.vc&&a.yc==this.yc};Ut.prototype.clone=function(){return new Ut(this.ae,this.Sd,this.Ld,this.Lb,this.vc,this.yc)};var Fu="y",Gu="m",Hu="d",Iu="h",Ju="n",Ku="s";Ut.prototype.times=function(a){return new Ut(this.ae*a,this.Sd*a,this.Ld*a,this.Lb*a,this.vc*a,this.yc*a)};
Ut.prototype.add=function(a){this.ae+=a.ae;this.Sd+=a.Sd;this.Ld+=a.Ld;this.Lb+=a.Lb;this.vc+=a.vc;this.yc+=a.yc};function Lu(a,b,c){ja(a)?(this.qa=Mu(a,b||0,c||1),Nu(this,c||1)):la(a)?(this.qa=Mu(a.getFullYear(),a.getMonth(),a.getDate()),Nu(this,a.getDate())):(this.qa=new Date(ta()),this.qa.setHours(0),this.qa.setMinutes(0),this.qa.setSeconds(0),this.qa.setMilliseconds(0))}function Mu(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}d=Lu.prototype;d.si=Bu.Zq;
d.Ro=Bu.$q;d.clone=function(){var a=new Lu(this.qa);a.si=this.si;a.Ro=this.Ro;return a};d.getFullYear=function(){return this.qa.getFullYear()};d.getYear=function(){return this.getFullYear()};d.getMonth=function(){return this.qa.getMonth()};d.getDate=function(){return this.qa.getDate()};d.getTime=function(){return this.qa.getTime()};d.getDay=function(){return this.qa.getDay()};d.getUTCFullYear=function(){return this.qa.getUTCFullYear()};d.getUTCMonth=function(){return this.qa.getUTCMonth()};
d.getUTCDate=function(){return this.qa.getUTCDate()};d.getUTCHours=function(){return this.qa.getUTCHours()};d.getUTCMinutes=function(){return this.qa.getUTCMinutes()};d.getTimezoneOffset=function(){return this.qa.getTimezoneOffset()};function Ou(a){a=a.getTimezoneOffset();if(0==a)a="Z";else{var b=Math.abs(a)/60,c=Math.floor(b),b=60*(b-c);a=(0<a?"-":"+")+Ua(c,2)+":"+Ua(b,2)}return a}d.set=function(a){this.qa=new Date(a.getFullYear(),a.getMonth(),a.getDate())};d.setFullYear=function(a){this.qa.setFullYear(a)};
d.setYear=function(a){this.setFullYear(a)};d.setMonth=function(a){this.qa.setMonth(a)};d.setDate=function(a){this.qa.setDate(a)};d.setTime=function(a){this.qa.setTime(a)};
d.add=function(a){if(a.ae||a.Sd){var b=this.getMonth()+a.Sd+12*a.ae,c=this.getYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var e=Math.min(Eu(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(e)}a.Ld&&(b=new Date(this.getYear(),this.getMonth(),this.getDate(),12),a=new Date(b.getTime()+864E5*a.Ld),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()),this.setDate(a.getDate()),Nu(this,a.getDate()))};
d.mn=function(a,b){return[this.getFullYear(),Ua(this.getMonth()+1,2),Ua(this.getDate(),2)].join(a?"-":"")+(b?Ou(this):"")};d.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};d.toString=function(){return this.mn()};function Nu(a,b){if(a.getDate()!=b){var c=a.getDate()<b?1:-1;a.qa.setUTCHours(a.qa.getUTCHours()+c)}}d.valueOf=function(){return this.qa.valueOf()};
function Xq(a,b,c,e,f,g,l){this.qa=ja(a)?new Date(a,b||0,c||1,e||0,f||0,g||0,l||0):new Date(a?a.getTime():ta())}m(Xq,Lu);d=Xq.prototype;d.getHours=function(){return this.qa.getHours()};d.getMinutes=function(){return this.qa.getMinutes()};d.getSeconds=function(){return this.qa.getSeconds()};d.getUTCHours=function(){return this.qa.getUTCHours()};d.getUTCMinutes=function(){return this.qa.getUTCMinutes()};d.setHours=function(a){this.qa.setHours(a)};d.setMinutes=function(a){this.qa.setMinutes(a)};
d.setSeconds=function(a){this.qa.setSeconds(a)};d.setMilliseconds=function(a){this.qa.setMilliseconds(a)};d.setUTCHours=function(a){this.qa.setUTCHours(a)};d.add=function(a){Lu.prototype.add.call(this,a);a.Lb&&this.setHours(this.qa.getHours()+a.Lb);a.vc&&this.setMinutes(this.qa.getMinutes()+a.vc);a.yc&&this.setSeconds(this.qa.getSeconds()+a.yc)};
d.mn=function(a,b){var c=Lu.prototype.mn.call(this,a);return a?c+" "+Ua(this.getHours(),2)+":"+Ua(this.getMinutes(),2)+":"+Ua(this.getSeconds(),2)+(b?Ou(this):""):c+"T"+Ua(this.getHours(),2)+Ua(this.getMinutes(),2)+Ua(this.getSeconds(),2)+(b?Ou(this):"")};d.equals=function(a){return this.getTime()==a.getTime()};d.toString=function(){return this.mn()};d.clone=function(){var a=new Xq(this.qa);a.si=this.si;a.Ro=this.Ro;return a};function Pu(a,b){this.hd=a;this.aL=b}var Qu=new Lu(0,0,1),Ru=new Lu(9999,11,31);Pu.prototype.getStartDate=function(){return this.hd};Pu.prototype.contains=function(a){return a.valueOf()>=this.hd.valueOf()&&a.valueOf()<=this.aL.valueOf()};function Su(){}function Tu(a){if("number"==typeof a){var b=new Su;b.au=a;var c;c=a;if(0==c)c="Etc/GMT";else{var e=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);e.push(Math.floor(c/60)%100);c%=60;0!=c&&e.push(":",Ua(c,2));c=e.join("")}b.sH=c;0==a?a="UTC":(c=["UTC",0>a?"+":"-"],a=Math.abs(a),c.push(Math.floor(a/60)%100),a%=60,0!=a&&c.push(":",a),a=c.join(""));b.$A=[a,a];b.du=[];return b}b=new Su;b.sH=a.id;b.au=-a.std_offset;b.$A=a.names;b.du=a.transitions;return b}
function Uu(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,e=0;e<a.du.length&&c>=a.du[e];)e+=2;return 0==e?0:a.du[e-1]};function Vu(a,b){this.Eb=[];this.Ab=b||Bu;"number"==typeof a?this.lr(a):this.Fn(a)}var Wu=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvwzZ]+/];Vu.prototype.Fn=function(a){for(;a;)for(var b=0;b<Wu.length;++b){var c=a.match(Wu[b]);if(c){c=c[0];a=a.substring(c.length);0==b&&("''"==c?c="'":(c=c.substring(1,c.length-1),c=c.replace(/\'\'/,"'")));this.Eb.push({text:c,type:b});break}}};
Vu.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.au-Uu(b,a))):0,e=c?new Date(a.getTime()+c):a,f=e;b&&e.getTimezoneOffset()!=a.getTimezoneOffset()&&(f=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));for(var c=[],g=0;g<this.Eb.length;++g){var l=this.Eb[g].text;1==this.Eb[g].type?c.push(Xu(this,l,a,e,f,b)):c.push(l)}return c.join("")};
Vu.prototype.lr=function(a){var b;if(4>a)b=this.Ab.vl[a];else if(8>a)b=this.Ab.tn[a-4];else if(12>a)b=this.Ab.ku[a-8],b=b.replace("{1}",this.Ab.vl[a-8]),b=b.replace("{0}",this.Ab.tn[a-8]);else{this.lr(10);return}this.Fn(b)};function Yu(a,b){var c;c=String(b);var e=a.Ab||Bu;if(void 0!==e.vu){for(var f=[],g=0;g<c.length;g++){var l=c.charCodeAt(g);f.push(48<=l&&57>=l?String.fromCharCode(e.vu+l-48):c.charAt(g))}c=f.join("")}return c}
function Zu(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");}
function Xu(a,b,c,e,f,g){var l=b.length;switch(b.charAt(0)){case "G":return c=0<e.getFullYear()?1:0,4<=l?a.Ab.iB[c]:a.Ab.lu[c];case "y":return c=e.getFullYear(),0>c&&(c=-c),2==l&&(c%=100),Yu(a,Ua(c,l));case "M":a:switch(c=e.getMonth(),l){case 5:a=a.Ab.kB[c];break a;case 4:a=a.Ab.mu[c];break a;case 3:a=a.Ab.ou[c];break a;default:a=Yu(a,Ua(c+1,l))}return a;case "k":return Zu(f),Yu(a,Ua(f.getHours()||24,l));case "S":return Yu(a,(f.getTime()%1E3/1E3).toFixed(Math.min(3,l)).substr(2)+(3<l?Ua(0,l-3):""));
case "E":return c=e.getDay(),4<=l?a.Ab.tu[c]:a.Ab.qu[c];case "a":return Zu(f),l=f.getHours(),a.Ab.ju[12<=l&&24>l?1:0];case "h":return Zu(f),Yu(a,Ua(f.getHours()%12||12,l));case "K":return Zu(f),Yu(a,Ua(f.getHours()%12,l));case "H":return Zu(f),Yu(a,Ua(f.getHours(),l));case "c":a:switch(c=e.getDay(),l){case 5:a=a.Ab.mB[c];break a;case 4:a=a.Ab.nB[c];break a;case 3:a=a.Ab.su[c];break a;default:a=Yu(a,Ua(c,1))}return a;case "L":a:switch(c=e.getMonth(),l){case 5:a=a.Ab.lB[c];break a;case 4:a=a.Ab.hj[c];
break a;case 3:a=a.Ab.ru[c];break a;default:a=Yu(a,Ua(c+1,l))}return a;case "Q":return c=Math.floor(e.getMonth()/3),4>l?a.Ab.pu[c]:a.Ab.nu[c];case "d":return Yu(a,Ua(e.getDate(),l));case "m":return Zu(f),Yu(a,Ua(f.getMinutes(),l));case "s":return Zu(f),Yu(a,Ua(f.getSeconds(),l));case "v":return a=g||Tu(c.getTimezoneOffset()),a.sH;case "w":return c=f.getDate(),c=new Date(f.getFullYear(),f.getMonth(),c),f=a.Ab.Zq||0,c=c.valueOf()+864E5*(((a.Ab.$q||3)-f+7)%7-((c.getDay()+6)%7-f+7)%7),c=Math.floor(Math.round((c-
(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,Yu(a,Ua(c,l));case "z":return a=g||Tu(c.getTimezoneOffset()),4>l?a.$A[0<Uu(a,c)?2:0]:a.$A[0<Uu(a,c)?3:1];case "Z":return f=g||Tu(c.getTimezoneOffset()),4>l?(a=-(f.au-Uu(f,c)),l=[0>a?"-":"+"],a=Math.abs(a),l.push(Ua(Math.floor(a/60)%100,2),Ua(a%60,2)),a=l.join("")):(l=f.au-Uu(f,c),c=["GMT"],c.push(0>=l?"+":"-"),l=Math.abs(l),c.push(Ua(Math.floor(l/60)%100,2),":",Ua(l%60,2)),a=Yu(a,c.join(""))),a;default:return""}};var $u={YH:"y",oW:"y G",pW:"MMM y",ZH:"MMMM y",fW:"MMM d",gW:"MMMM dd",iW:"M/d",hW:"MMMM d",jW:"MMM d, y",mW:"EEE, MMM d",nW:"EEE, MMM d, y",VV:"d"},av=$u,av=$u;function bv(a,b){this.sK=a;this.Kb=b||Jc()}bv.prototype.p=function(){return this.Kb};bv.prototype.fa=function(){return this.sK};bv.prototype.Te=function(a,b,c){var e=[this.fa()+"-btn"];c&&e.push(c);c=this.p().createElement("BUTTON");c.className=e.join(" ");c.appendChild(this.p().createTextNode(b));a.appendChild(c);return c};function cv(a,b,c,e){ai.call(this,c);this.Qg=b||Bu;this.SV=this.Qg.su;b=Bu;Bu=this.Qg;this.nM=new Vu("d");this.mM=new Vu("dd");this.pM=new Vu("w");this.tx=new Vu(av.YH||"y");this.oM=new Vu(av.ZH||"MMMM y");Bu=b;this.o=e||new bv(this.fa(),this.p());this.Xb=new Lu(a);this.Xb.Ro=this.Qg.$q;this.Xb.si=this.Qg.Zq;this.Pb=this.Xb.clone();this.Pb.setDate(1);this.gu="      ".split(" ");this.gu[this.Qg.uu[0]]=this.fa()+"-wkend-start";this.gu[this.Qg.uu[1]]=this.fa()+"-wkend-end";this.um={};this.hk=[]}
m(cv,ai);d=cv.prototype;d.dH=!0;d.CV=!0;d.$f=new Pu(Qu,Ru);d.qL=!0;d.JA=!0;d.hH=!0;d.Uu=!0;d.gH=!0;d.iH=!1;d.mD=null;d.JN=!1;d.vs=null;d.us=null;d.ts=null;d.vK=Zh.a();var Rt="change";d=cv.prototype;d.fa=function(){return"goog-date-picker"};d.rF=function(){this.Pb.add(new Ut(Gu,-1));dv(this);ev(this)};d.jF=function(){this.Pb.add(new Ut(Gu,1));dv(this);ev(this)};d.RR=function(){this.Pb.add(new Ut(Fu,-1));dv(this);ev(this)};d.GR=function(){this.Pb.add(new Ut(Fu,1));dv(this);ev(this)};d.zt=function(){this.setDate(new Lu)};
d.wF=function(){this.Uu&&this.setDate(null)};d.getDate=function(){return this.Xb&&this.Xb.clone()};d.setDate=function(a){var b=a==this.Xb||a&&this.Xb&&a.getFullYear()==this.Xb.getFullYear()&&a.getMonth()==this.Xb.getMonth(),c=a==this.Xb||b&&a.getDate()==this.Xb.getDate();this.Xb=a&&new Lu(a);a&&(this.Pb.set(this.Xb),this.Pb.setDate(1));dv(this);this.dispatchEvent(new fv("select",this,this.Xb));c||this.dispatchEvent(new fv(Rt,this,this.Xb));b||ev(this)};
function gv(a,b,c,e){b=t(c,b);a.Q().C(b,"click",function(a){a.preventDefault();e.call(this,a)})}
d.Gc=function(a){cv.c.Gc.call(this,a);op(a,this.fa());var b=this.Kb.createElement("table"),c=this.Kb.createElement("thead"),e=this.Kb.createElement("tbody"),f=this.Kb.createElement("tfoot");zp(e,"grid");e.tabIndex="0";this.TA=e;this.mH=f;var g=this.Kb.createElement("tr");g.className=this.fa()+"-head";if(this.vs=g){for(var l=this.vs;l.firstChild;)l.removeChild(l.firstChild);var r=this.o,B=this.JA,C=this.Qg.vl[0].toLowerCase(),H;this.iH?(C=r.p().createElement("TD"),C.colSpan=B?1:2,r.Te(C,"«",r.fa()+
"-previousMonth"),l.appendChild(C),C=r.p().createElement("TD"),C.colSpan=B?6:5,C.className=r.fa()+"-monthyear",l.appendChild(C),C=r.p().createElement("TD"),r.Te(C,"»",r.fa()+"-nextMonth"),l.appendChild(C)):(B=r.p().createElement("TD"),B.colSpan=5,r.Te(B,"«",r.fa()+"-previousMonth"),r.Te(B,"",r.fa()+"-month"),r.Te(B,"»",r.fa()+"-nextMonth"),H=r.p().createElement("TD"),H.colSpan=3,r.Te(H,"«",r.fa()+"-previousYear"),r.Te(H,"",r.fa()+"-year"),r.Te(H,"»",r.fa()+"-nextYear"),C.indexOf("y")<C.indexOf("m")?
(l.appendChild(H),l.appendChild(B)):(l.appendChild(B),l.appendChild(H)));this.iH?(gv(this,l,this.fa()+"-previousMonth",this.rF),gv(this,l,this.fa()+"-nextMonth",this.jF),this.us=t(this.fa()+"-monthyear",l)):(gv(this,l,this.fa()+"-previousMonth",this.rF),gv(this,l,this.fa()+"-nextMonth",this.jF),gv(this,l,this.fa()+"-month",this.BV),gv(this,l,this.fa()+"-previousYear",this.RR),gv(this,l,this.fa()+"-nextYear",this.GR),gv(this,l,this.fa()+"-year",this.EV),this.Sj=t(this.fa()+"-month",l),this.Eo=Jc().Pw(this.fa()+
"-year",l))}c.appendChild(g);this.ue=[];for(r=0;7>r;r++){g=this.Kb.createElement("tr");this.ue[r]=[];for(C=0;8>C;C++)l=this.Kb.createElement(0==C||0==r?"th":"td"),0!=C&&0!=r||C==r||(l.className=0==C?this.fa()+"-week":this.fa()+"-wday",zp(l,0==C?"rowheader":"columnheader")),g.appendChild(l),this.ue[r][C]=l;e.appendChild(g)}g=this.Kb.createElement("tr");g.className=this.fa()+"-foot";if(this.ts=g)l=this.ts,Zc(l),r=this.o,B=this.JA,C=r.p().createElement("TD"),C.colSpan=B?2:3,C.className=r.fa()+"-today-cont",
H=ua("Today"),r.Te(C,H,r.fa()+"-today-btn"),l.appendChild(C),C=r.p().createElement("TD"),C.colSpan=B?4:3,l.appendChild(C),C=r.p().createElement("TD"),C.colSpan=2,C.className=r.fa()+"-none-cont",B=ua("None"),r.Te(C,B,r.fa()+"-none-btn"),l.appendChild(C),gv(this,l,this.fa()+"-today-btn",this.zt),gv(this,l,this.fa()+"-none-btn",this.wF),this.uD=t(this.fa()+"-today-btn",l),this.tD=t(this.fa()+"-none-btn",l),R(this.uD,this.gH),R(this.tD,this.Uu),R(this.mH,this.gH||this.Uu);f.appendChild(g);b.cellSpacing=
"0";b.cellPadding="0";b.appendChild(c);b.appendChild(e);b.appendChild(f);a.appendChild(b);if(this.b()){if(this.hH)for(b=0;7>b;b++)fd(this.ue[0][b+1],this.SV[((b+this.Pb.si+7)%7+1)%7]);R(this.ue[0][0].parentElement||this.ue[0][0].parentNode,this.hH)}dv(this);a.tabIndex=0};d.g=function(){cv.c.g.call(this);this.Gc(this.b())};d.n=function(){cv.c.n.call(this);var a=this.Q();a.C(this.TA,"click",this.NL);a.C(hv(this,this.b()),"key",this.OL)};
d.B=function(){cv.c.B.call(this);this.bm();for(var a in this.um)this.um[a].O();this.um={}};d.create=cv.prototype.ea;d.I=function(){cv.c.I.call(this);this.tD=this.uD=this.Eo=this.us=this.Sj=this.ts=this.vs=this.mH=this.TA=this.ue=null};d.NL=function(a){if("TD"==a.target.tagName){var b,c=-2,e=-2;for(b=a.target;b;b=b.previousSibling,c++);for(b=a.target.parentNode;b;b=b.previousSibling,e++);a=this.hk[e][c];this.$f.contains(a)&&this.setDate(a.clone())}};
d.OL=function(a){var b,c;switch(a.keyCode){case 33:a.preventDefault();b=-1;break;case 34:a.preventDefault();b=1;break;case 37:a.preventDefault();c=-1;break;case 39:a.preventDefault();c=1;break;case 38:a.preventDefault();c=-7;break;case 40:a.preventDefault();c=7;break;case 36:a.preventDefault(),this.zt();case 46:a.preventDefault(),this.wF();default:return}this.Xb?(a=this.Xb.clone(),a.add(new Ut(0,b,c))):(a=this.Pb.clone(),a.setDate(1));this.$f.contains(a)&&this.setDate(a)};
d.BV=function(a){a.stopPropagation();a=[];for(var b=0;12>b;b++)a.push(this.Qg.hj[b]);iv(this,this.Sj,a,this.XL,this.Qg.hj[this.Pb.getMonth()])};d.EV=function(a){a.stopPropagation();a=[];for(var b=this.Pb.getFullYear(),c=this.Pb.clone(),e=-5;5>=e;e++)c.setFullYear(b+e),a.push(this.tx.format(c));iv(this,this.Eo,a,this.kM,this.tx.format(this.Pb))};d.XL=function(a){a=Number(a.getAttribute("itemIndex"));this.Pb.setMonth(a);dv(this);this.Sj.focus&&this.Sj.focus()};
d.kM=function(a){3==a.firstChild.nodeType&&(a=Number(a.getAttribute("itemIndex")),this.Pb.setFullYear(this.Pb.getFullYear()+a-5),dv(this));this.Eo.focus()};
function iv(a,b,c,e,f){a.bm();var g=a.Kb.createElement("div");g.className=a.fa()+"-menu";a.Dm=null;for(var l=a.Kb.createElement("ul"),r=0;r<c.length;r++){var B=a.Kb.g("li",null,c[r]);B.setAttribute("itemIndex",r);c[r]==f&&(a.Dm=B);l.appendChild(B)}g.appendChild(l);g.style.left=b.offsetLeft+b.parentNode.offsetLeft+"px";g.style.top=b.offsetTop+"px";g.style.width=b.clientWidth+"px";a.Sj.parentNode.appendChild(g);a.H=g;a.Dm||(a.Dm=l.firstChild);a.Dm.className=a.fa()+"-menu-selected";a.ey=e;b=a.Q();b.C(a.H,
"click",a.cE);b.C(hv(a,a.H),"key",a.dE);b.C(a.Kb.$a,"click",a.bm);g.tabIndex=0;g.focus()}d.cE=function(a){a.stopPropagation();this.bm();this.ey&&this.ey(a.target)};
d.dE=function(a){a.stopPropagation();var b,c=this.Dm;switch(a.keyCode){case 35:a.preventDefault();b=c.parentNode.lastChild;break;case 36:a.preventDefault();b=c.parentNode.firstChild;break;case 38:a.preventDefault();b=c.previousSibling;break;case 40:a.preventDefault();b=c.nextSibling;break;case 13:case 9:case 0:a.preventDefault(),this.bm(),this.ey(c)}b&&b!=c&&(c.className="",b.className=this.fa()+"-menu-selected",this.Dm=b)};
d.bm=function(){if(this.H){var a=this.Q();a.W(this.H,"click",this.cE);a.W(hv(this,this.H),"key",this.dE);a.W(this.Kb.$a,"click",this.bm);$c(this.H);delete this.H}};
function dv(a){if(a.b()){var b=a.Pb.clone();b.setDate(1);a.us&&fd(a.us,a.oM.format(b));a.Sj&&fd(a.Sj,a.Qg.hj[b.getMonth()]);a.Eo&&fd(a.Eo,a.tx.format(b));var c=((b.getDay()+6)%7-b.si+7)%7,e=Eu(b.getFullYear(),b.getMonth());b.add(new Ut(Gu,-1));b.setDate(Eu(b.getFullYear(),b.getMonth())-(c-1));a.dH&&!a.qL&&33>e+c&&b.add(new Ut(Hu,-7));c=new Ut(Hu,1);a.hk=[];for(e=0;6>e;e++){a.hk[e]=[];for(var f=0;7>f;f++)a.hk[e][f]=b.clone(),b.add(c)}if(a.b())for(var b=a.Pb.getMonth(),f=new Lu,c=f.getFullYear(),e=
f.getMonth(),f=f.getDate(),g=0;6>g;g++){a.JA?(fd(a.ue[g+1][0],a.pM.format(a.hk[g][0])),a.ue[g+1][0].className=a.fa()+"-week"):(fd(a.ue[g+1][0],""),a.ue[g+1][0].className="");for(var l=0;7>l;l++){var r=a.hk[g][l],B=a.ue[g+1][l+1];B.id||(B.id=$h(a.vK));zp(B,"gridcell");var C=[a.fa()+"-date"];a.$f.contains(r)||C.push(a.fa()+"-unavailable-date");if(a.CV||r.getMonth()==b){r.getMonth()!=b&&C.push(a.fa()+"-other-month");var H=(l+a.Pb.si+7)%7;a.gu[H]&&C.push(a.gu[H]);r.getDate()==f&&r.getMonth()==e&&r.getFullYear()==
c&&C.push(a.fa()+"-today");a.Xb&&r.getDate()==a.Xb.getDate()&&r.getMonth()==a.Xb.getMonth()&&r.getFullYear()==a.Xb.getFullYear()&&(C.push(a.fa()+"-selected"),Ap(a.TA,"activedescendant",B.id));a.mD&&(H=a.mD(r))&&C.push(H);r=a.JN?a.mM.format(r):a.nM.format(r);fd(B,r)}else fd(B,"");B.className=C.join(" ")}4<=g&&R(a.ue[g+1][0].parentElement||a.ue[g+1][0].parentNode,a.hk[g][0].getMonth()==b||a.dH)}}}function ev(a){var b=new fv("changeActiveMonth",a,a.Pb.clone());a.dispatchEvent(b)}
function hv(a,b){var c=ma(b);c in a.um||(a.um[c]=new Hp(b));return a.um[c]}function fv(a,b,c){be.call(this,a,b);this.qa=c}m(fv,be);function jv(a,b,c,e){cv.call(this,a,b,c,e)}m(jv,cv);jv.prototype.fa=function(){return"qiwi-date-picker"};function kv(){bv.call(this,this.fa(),Jc())}m(kv,bv);h(kv);kv.prototype.fa=function(){return"qiwi-date-picker"};kv.prototype.Te=function(a,b,c){var e=[this.fa()+"-btn"];c&&e.push(c);c=this.p().createElement("DIV");c.className=e.join(" ");c.appendChild(this.p().createTextNode(b));a.appendChild(c);return c};function lv(a,b){Hf.call(this);this.Wa=new Mf(this);if(this.tm)throw Error("Can not change this state of the popup while showing.");this.aa=a||null;b&&this.Ad(b)}m(lv,Hf);d=lv.prototype;d.aa=null;d.rK=!0;d.RB=null;d.SB=null;d.tm=!1;d.AV=!1;d.Jx=-1;d.lM=!1;d.$K=!0;d.sb="toggle_display";var St="show",Tt="hide";d=lv.prototype;d.Ad=function(a){this.sb=a};d.b=function(){return this.aa};d.Q=function(){return this.Wa};d.Ia=function(){return this.tm};
d.setVisible=function(a){this.Mq&&this.Mq.stop();this.rp&&this.rp.stop();if(a){if(!this.tm&&this.dispatchEvent("beforeshow")){if(!this.aa)throw Error("Caller must call setElement before trying to show the popup");this.Ig();a=Lc(this.aa);this.lM&&this.Wa.C(a,"keydown",this.IR,!0);if(this.rK)if(this.Wa.C(a,"mousedown",this.lF,!0),s){var b;try{b=a.activeElement}catch(c){}for(;b&&"IFRAME"==b.nodeName;){try{var e=ed(b)}catch(f){break}a=e;b=a.activeElement}this.Wa.C(a,"mousedown",this.lF,!0);this.Wa.C(a,
"deactivate",this.kF)}else this.Wa.C(a,"blur",this.kF);"toggle_display"==this.sb?(this.aa.style.visibility="visible",R(this.aa,!0)):"move_offscreen"==this.sb&&this.Ig();this.tm=!0;this.Jx=ta();this.Mq?(ze(this.Mq,"end",this.tt,!1,this),this.Mq.play()):this.tt()}}else mv(this)};d.Ig=da;function mv(a,b){if(!a.tm||!a.dispatchEvent({type:"beforehide",target:b}))return!1;a.Wa&&a.Wa.Sm();a.tm=!1;ta();a.rp?(ze(a.rp,"end",sa(a.lD,b),!1,a),a.rp.play()):a.lD(b);return!0}
d.lD=function(a){"toggle_display"==this.sb?this.AV?Lf(this.hE,0,this):this.hE():"move_offscreen"==this.sb&&(this.aa.style.top="-10000px");this.dispatchEvent({type:Tt,target:a})};d.hE=function(){this.aa.style.visibility="hidden";R(this.aa,!1)};d.tt=function(){this.dispatchEvent(St)};d.lF=function(a){a=a.target;dd(this.aa,a)||nv(this,a)||this.SB&&!dd(this.SB,a)||150>ta()-this.Jx||mv(this,a)};d.IR=function(a){27==a.keyCode&&mv(this,a.target)&&(a.preventDefault(),a.stopPropagation())};
d.kF=function(a){if(this.$K){var b=Lc(this.aa);if("undefined"!=typeof document.activeElement){if(a=b.activeElement,!a||dd(this.aa,a)||"BODY"==a.tagName)return}else if(a.target!=b)return;150>ta()-this.Jx||mv(this)}};function nv(a,b){return db(a.RB||[],function(a){return b===a||dd(a,b)})}d.I=function(){lv.c.I.call(this);this.Wa.O();ae(this.Mq);ae(this.rp);delete this.aa;delete this.Wa;delete this.RB};function ov(a,b){this.QR=4;this.vt=b||void 0;lv.call(this,a)}m(ov,lv);ov.prototype.getPosition=function(){return this.vt||null};ov.prototype.setPosition=function(a){this.vt=a||void 0;this.Ia()&&this.Ig()};ov.prototype.Ig=function(){if(this.vt){var a=!this.Ia()&&"move_offscreen"!=this.sb,b=this.b();a&&(b.style.visibility="hidden",R(b,!0));this.vt.Ig(b,this.QR,this.tW);a&&R(b,!1)}};function pv(a,b){ai.call(this,b);this.Ue=a||new cv}m(pv,ai);d=pv.prototype;d.Ue=null;d.bf=null;d.dt=null;d.pj=!0;d.g=function(){pv.c.g.call(this);this.b().className="goog-popupdatepicker";this.bf=new ov(this.b());this.bf.Rt(this)};d.Ia=function(){return this.bf?this.bf.Ia():!1};d.n=function(){pv.c.n.call(this);if(!this.Ue.j){var a=this.b();a.style.visibility="hidden";R(a,!1);this.Ue.ea(a)}this.Q().C(this.Ue,Rt,this.aq)};
d.I=function(){pv.c.I.call(this);this.bf&&(this.bf.O(),this.bf=null);this.Ue.O();this.dt=this.Ue=null};d.Gb=function(){return!1};d.Ag=function(){return this.Ue};d.getDate=function(){return this.Ue.getDate()};d.setDate=function(a){this.Ue.setDate(a)};d.Xu=function(a){this.Q().C(a,"mousedown",this.eH)};d.detach=function(a){this.Q().W(a,"mousedown",this.eH)};d.Aq=function(a){this.pj=a};
d.ml=function(a){this.dt=a;this.bf.setPosition(new Hr(a,5,197));this.Q().W(this.Ue,Rt,this.aq);this.Ue.setDate(null);this.dispatchEvent(St);this.Q().C(this.Ue,Rt,this.aq);this.bf.setVisible(!0);this.pj&&this.b().focus()};d.eH=function(a){this.ml(a.currentTarget)};function Wt(a){a.bf.setVisible(!1);a.pj&&a.dt&&a.dt.focus()}d.aq=function(a){Wt(this);this.dispatchEvent(a)};function qv(a,b){pv.call(this,a,b)}m(qv,pv);qv.prototype.g=function(){qv.c.g.call(this);this.b().className="qiwi-popup-date-picker"};qv.prototype.aq=function(a){this.dispatchEvent(a)};qv.prototype.ml=function(a){qv.c.ml.call(this,a);this.bf.setPosition(new Hr(a,5))};function rv(a){this.Eb=[];"number"==typeof a?this.lr(a):this.Fn(a)}
rv.prototype.Fn=function(a){for(var b=!1,c="",e=0;e<a.length;e++){var f=a.charAt(e);if(" "==f)for(0<c.length&&(this.Eb.push({text:c,count:0,wl:!1}),c=""),this.Eb.push({text:" ",count:0,wl:!1});e<a.length-1&&" "==a.charAt(e+1);)e++;else if(b)"'"==f?e+1<a.length&&"'"==a.charAt(e+1)?(c+="'",e++):b=!1:c+=f;else if(0<=sv.indexOf(f)){0<c.length&&(this.Eb.push({text:c,count:0,wl:!1}),c="");var g;g=a.charAt(e);for(var l=e+1;l<a.length&&a.charAt(l)==g;)l++;g=l-e;this.Eb.push({text:f,count:g,wl:!1});e+=g-1}else"'"==
f?e+1<a.length&&"'"==a.charAt(e+1)?(c+="'",e++):b=!0:c+=f}0<c.length&&this.Eb.push({text:c,count:0,wl:!1});a=!1;for(b=0;b<this.Eb.length;b++)tv(this.Eb[b])?!a&&b+1<this.Eb.length&&tv(this.Eb[b+1])&&(a=!0,this.Eb[b].wl=!0):a=!1};rv.prototype.lr=function(a){var b;11<a&&(a=10);4>a?b=Bu.vl[a]:8>a?b=Bu.tn[a-4]:(b=Bu.ku[a-8],b=b.replace("{1}",Bu.vl[a-8]),b=b.replace("{0}",Bu.tn[a-8]));this.Fn(b)};rv.prototype.parse=function(a,b,c){return Vt(this,a,b,c||0,!1)};
function Vt(a,b,c,e,f){for(var g=new uv,l=[e],r=-1,B=0,C=0,H=0;H<a.Eb.length;H++)if(0<a.Eb[H].count)if(0>r&&a.Eb[H].wl&&(r=H,B=e,C=0),0<=r){var M=a.Eb[H].count;if(H==r&&(M-=C,C++,0==M))return 0;vv(b,l,a.Eb[H],M,g)||(H=r-1,l[0]=B)}else{if(r=-1,!vv(b,l,a.Eb[H],0,g))return 0}else{r=-1;if(" "==a.Eb[H].text.charAt(0)){if(M=l[0],wv(b,l),l[0]>M)continue}else if(b.indexOf(a.Eb[H].text,l[0])==l[0]){l[0]+=a.Eb[H].text.length;continue}return 0}a:if(void 0!=g.vD&&void 0!=g.Vh&&0==g.vD&&0<g.Vh&&(g.Vh=-(g.Vh-1)),
void 0!=g.Vh&&c.setFullYear(g.Vh),a=c.getDate(),c.setDate(1),void 0!=g.Nm&&c.setMonth(g.Nm),void 0!=g.day?c.setDate(g.day):(b=Eu(c.getFullYear(),c.getMonth()),c.setDate(a>b?b:a)),ka(c.setHours)&&(void 0==g.Lb&&(g.Lb=c.getHours()),void 0!=g.OB&&0<g.OB&&12>g.Lb&&(g.Lb+=12),c.setHours(g.Lb)),ka(c.setMinutes)&&void 0!=g.vc&&c.setMinutes(g.vc),ka(c.setSeconds)&&void 0!=g.yc&&c.setSeconds(g.yc),ka(c.setMilliseconds)&&void 0!=g.Zy&&c.setMilliseconds(g.Zy),f&&(void 0!=g.Vh&&g.Vh!=c.getFullYear()||void 0!=
g.Nm&&g.Nm!=c.getMonth()||void 0!=g.day&&g.day!=c.getDate()||24<=g.Lb||60<=g.vc||60<=g.yc||1E3<=g.Zy))c=!1;else{void 0!=g.aB&&c.setTime(c.getTime()+6E4*(g.aB-c.getTimezoneOffset()));g.pK&&(f=new Date,f.setFullYear(f.getFullYear()-80),c.getTime()<f.getTime()&&c.setFullYear(f.getFullYear()+100));if(void 0!=g.uw)if(void 0==g.day)g=(7+g.uw-c.getDay())%7,3<g&&(g-=7),f=c.getMonth(),c.setDate(c.getDate()+g),c.getMonth()!=f&&c.setDate(c.getDate()+(0<g?-7:7));else if(g.uw!=c.getDay()){c=!1;break a}c=!0}return c?
l[0]-e:0}var sv="GyMdkHmsSEDahKzZvQL";function tv(a){if(0>=a.count)return!1;var b="MydhHmsSDkK".indexOf(a.text.charAt(0));return 0<b||0==b&&3>a.count}function wv(a,b){var c=a.substring(b[0]).match(/^\s+/);c&&(b[0]+=c[0].length)}
function vv(a,b,c,e,f){wv(a,b);var g=b[0],l=c.text.charAt(0),r=-1;if(tv(c))if(0<e){if(g+e>a.length)return!1;r=xv(a.substring(0,g+e),b)}else r=xv(a,b);switch(l){case "G":return r=yv(a,b,Bu.lu),0<=r&&(f.vD=r),!0;case "M":case "L":a:{c=r;if(0>c){c=yv(a,b,Bu.mu.concat(Bu.hj).concat(Bu.ou).concat(Bu.ru));if(0>c){f=!1;break a}f.Nm=c%12}else f.Nm=c-1;f=!0}return f;case "E":return c=yv(a,b,Bu.tu),0>c&&(c=yv(a,b,Bu.qu)),0>c?f=!1:(f.uw=c,f=!0),f;case "a":return r=yv(a,b,Bu.ju),0<=r&&(f.OB=r),!0;case "y":a:{var B;
if(0>r){B=a.charAt(b[0]);if("+"!=B&&"-"!=B){f=!1;break a}b[0]++;r=xv(a,b);if(0>r){f=!1;break a}"-"==B&&(r=-r)}B||2!=b[0]-g||2!=c.count?f.Vh=r:(a=r,b=(new Date).getFullYear()-80,c=b%100,f.pK=a==c,a+=100*Math.floor(b/100)+(a<c?100:0),f.Vh=a);f=!0}return f;case "Q":return 0>r?(c=yv(a,b,Bu.nu),0>c&&(c=yv(a,b,Bu.pu)),0>c?f=!1:(f.Nm=3*c,f.day=1,f=!0)):f=!1,f;case "d":return 0<=r&&(f.day=r),!0;case "S":return a=b[0]-g,f.Zy=3>a?r*Math.pow(10,3-a):Math.round(r/Math.pow(10,a-3)),!0;case "h":12==r&&(r=0);case "K":case "H":case "k":return 0<=
r&&(f.Lb=r),!0;case "m":return 0<=r&&(f.vc=r),!0;case "s":return 0<=r&&(f.yc=r),!0;case "z":case "Z":case "v":a.indexOf("GMT",b[0])==b[0]&&(b[0]+=3);a:if(b[0]>=a.length)f.aB=0,f=!0;else{c=1;switch(a.charAt(b[0])){case "-":c=-1;case "+":b[0]++}g=b[0];r=xv(a,b);if(0==r&&b[0]==g)f=!1;else{if(b[0]<a.length&&":"==a.charAt(b[0])){B=60*r;b[0]++;g=b[0];r=xv(a,b);if(0==r&&b[0]==g){f=!1;break a}B+=r}else B=r,B=24>B&&2>=b[0]-g?60*B:B%100+B/100*60;f.aB=-(B*c);f=!0}}return f;default:return!1}}
function xv(a,b){if(Bu.vu){for(var c=[],e=b[0];e<a.length;e++){var f=a.charCodeAt(e)-Bu.vu;c.push(0<=f&&9>=f?String.fromCharCode(f+48):a.charAt(e))}a=c.join("")}else a=a.substring(b[0]);c=a.match(/^\d+/);if(!c)return-1;b[0]+=c[0].length;return parseInt(c[0],10)}function yv(a,b,c){var e=0,f=-1;a=a.substring(b[0]).toLowerCase();for(var g=0;g<c.length;g++){var l=c[g].length;l>e&&0==a.indexOf(c[g].toLowerCase())&&(f=g,e=l)}0<=f&&(b[0]+=e);return f}function uv(){};function zv(){Yr.call(this)}m(zv,Yr);h(zv);zv.prototype.A=function(){return"qiwi-phone-menu"};function Av(a,b){Zr.call(this,a,b||zv.a())}m(Av,Zr);W(Av,zv);X("qiwi-phone-menu",function(){return new Av(null)});
Av.prototype.gk=function(a){var b=Number.MAX_VALUE,c=null,e=[];gi(this,function(a){e.push(a.xa.prefix)},this);for(var f=0;f<e.length;f+=1)if(a.length>e[f].length?a.substr(0,e[f].length)==e[f]:e[f].substr(0,a.length)==a){for(var g=!0,l=0;l<e.length;l+=1)if(f!=l&&a.substr(0,e[l].length)==e[l])for(var g=!1,r=0;r<e.length;r++)if(l!=r&&e[r].substr(0,e[l].length)==e[l]){g=!0;break}g&&(null==c&&(c=ii(this,f)),e[f].length<b||a.substr(0,e[f].length)==e[f])&&(b=e[f].length,c=ii(this,f))}return c};function Bv(){this.gg=[]}m(Bv,Qr);h(Bv);Bv.prototype.A=function(){return"qiwi-phone-menu-item"};Bv.prototype.$o=function(){return"qiwi-phone-menu-item-name"};Bv.prototype.im=function(){return"qiwi-phone-menu-item-code"};
Bv.prototype.g=function(a){var b=Bv.c.g.call(this,a),c=a.xa;a=a.p();var e=this.Va(b);op(e,"clearfix");a.S(e);a.appendChild(e,a.g("div","qiwi-phone-menu-item-flag",Tc("div",["qiwi-flag","qiwi-flag-"+c.code])));a.appendChild(e,a.g("div",this.$o(),c.name));a.appendChild(e,a.g("div",this.im(),c.prefix));return b};function Cv(a,b,c,e){Vr.call(this,a,b,c,e||Bv.a())}m(Cv,Vr);W(Cv,Bv);X("qiwi-phone-menu-item",function(){return new Cv});function Dv(){}m(Dv,bs);h(Dv);Dv.prototype.Va=function(a){return a?Mc(document,"*",this.A()+"-caption",a)[0]:null};Dv.prototype.Gb=function(a){return"DIV"==a.tagName};Dv.prototype.Nj=function(a,b){var c=this.A();return b.g("div","goog-inline-block ",b.g("div",[c+"-caption","goog-inline-block"],a),b.g("div",[c+"-dropdown","goog-inline-block"]))};Dv.prototype.A=function(){return"goog-css3-menu-button"};X("goog-css3-menu-button",function(){return new hs(null,null,Dv.a())});function Ev(){}m(Ev,Dv);h(Ev);Ev.prototype.A=function(){return"qiwi-phone-menu-button"};Ev.prototype.Nj=function(a,b){return b.g("div",["qiwi-phone-menu-button-caption","goog-inline-block"],b.g("div",["qiwi-flag","qiwi-flag-"+a]))};Ev.prototype.setContent=function(a,b){var c=this.Va(a);if(c){Zc(c);var e=Tc("div",["qiwi-flag","qiwi-flag-"+b]);c.appendChild(e)}};function Fv(a,b,c,e){ns.call(this,a,b,c||Ev.a(),e)}m(Fv,ns);W(Fv,Ev);X("qiwi-phone-menu-button",function(){return new Fv(null)});Fv.prototype.Sg=function(){var a=this.Ga();this.setContent(a?a.xa.code:null)};Fv.prototype.gk=function(a){return this.Da().gk(a)};function Gv(){}m(Gv,Tp);h(Gv);d=Gv.prototype;d.A=function(){return"qiwi-radio"};d.vi=function(){return"qiwi-radio-menu"};function Hv(){return"qiwi-radio-toggle"}d.Zo=function(a){return t(this.vi(),a)};d.g=function(a){var b=Gv.c.g.call(this,a);a=a.p();a.appendChild(b,a.g("div",this.vi()));a.appendChild(b,a.g("div",Hv()));return b};d.fb=function(a,b){var c=a.p();a.b()||a.g();var e=this.Zo(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};
d.FA=function(a,b){var c=a.p();a.b()||a.g();var e=t(Hv(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.Wt=function(a,b){a.p();a.b()||a.g();R(t(Hv(),a.b()),b);n(rb(a.Da().Tw(),a.GH),function(a){a.setVisible(!b)})};function Iv(a,b,c){Y.call(this,a,b,c)}m(Iv,Y);W(Iv,Gv);X("qiwi-radio",function(){return new Iv});d=Iv.prototype;d.jf=7;d.H=null;d.HH=null;d.cj=null;d.GH=null;d.T=null;d.fb=function(a){this.o.fb(this,a);this.Gq(a)};d.Gq=function(a){if(this.H=a)this.T&&this.T.O(),this.Bf(a)};d.Da=function(){return this.H};d.Wt=function(a){this.o.Wt(this,a);this.HH=a};d.FA=function(a){this.o.FA(this,a);this.cj=a};d.n=function(){Iv.c.n.call(this);this.Hi();this.H&&this.eg(this.H,!0);this.cj&&Jv(this,this.cj,!0)};
d.B=function(){this.H&&(this.H.B(),this.eg(this.H,!1));this.cj&&(this.cj.B(),Jv(this,this.H,!1));Iv.c.B.call(this)};d.I=function(){this.H&&(this.H.O(),delete this.H);this.cj&&(this.cj.O(),delete this.cj);this.T&&(this.T.O(),delete this.T);Iv.c.I.call(this,this)};d.uh=function(a){a.stopPropagation();this.Nb(a.target);this.dispatchEvent("action")};d.iM=function(){this.Wt(!this.HH)};d.kk=function(){};d.hb=function(a){this.Da().ee(a,!0);this.T?this.T.hb(a):this.Bf(this.Da())};
d.fe=function(a,b){this.Da().ai(a,b,!0);this.T?this.T.fe(a,b):this.Bf(this.Da())};d.Nb=function(a){if(this.T){var b=this.Ga();this.T.Nb(a);a!=b&&this.dispatchEvent("change")}};d.jl=function(a){this.T&&this.Nb(this.T.sh(a))};d.P=function(a){if(null!=a&&this.T)for(var b=0,c;c=this.T.sh(b);b++)if(c&&"function"==typeof c.w&&c.w()==a){this.Nb(c);return}this.Nb(null)};d.w=function(){var a=this.Ga();return a?a.w():null};d.Ga=function(){return this.T?this.T.Ga():null};
d.th=function(){return this.T?this.T.th():-1};d.Bf=function(a){this.T=new ks;a&&gi(a,function(a){this.T.hb(a)},this);this.Hi()};d.eg=function(a,b){var c=this.Q();(b?c.C:c.W).call(c,a,"action",this.uh)};function Jv(a,b,c){var e=a.Q();(c?e.C:e.W).call(e,b,"action",a.iM)}d.Hi=function(){this.T&&this.Q().C(this.T,"select",this.kk)};d.qh=function(){var a=this.Ga();return a?a.qh():null};function Kv(){Yr.call(this)}m(Kv,Yr);h(Kv);Kv.prototype.A=function(){return"qiwi-radio-menu"};function Lv(){this.gg=[]}m(Lv,Qr);h(Lv);Lv.prototype.A=function(){return"qiwi-radio-menu-item"};function Mv(){}m(Mv,Tp);h(Mv);d=Mv.prototype;d.A=function(){return"qiwi-checkbox"};d.vi=function(){return"qiwi-checkbox-menu"};d.Zo=function(a){return t(this.vi(),a)};d.g=function(a){var b=Mv.c.g.call(this,a);a=a.p();a.appendChild(b,a.g("div",this.vi()));return b};d.fb=function(a,b){var c=a.p();a.b()||a.g();var e=this.Zo(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};function Nv(a,b,c){Y.call(this,a,b,c)}m(Nv,Y);W(Nv,Mv);X("qiwi-checkbox",function(){return new Nv});d=Nv.prototype;d.jf=7;d.fb=function(a){this.o.fb(this,a);this.Gq(a)};d.Gq=function(a){this.H=a};d.Da=function(){return this.H};d.n=function(){Nv.c.n.call(this);this.H&&Ov(this,this.H,!0)};d.B=function(){this.H&&(this.H.B(),Ov(this,this.H,!1));Nv.c.B.call(this)};d.I=function(){this.H&&(this.H.O(),delete this.H);Nv.c.I.call(this,this)};d.uh=function(a){a.stopPropagation();this.dispatchEvent("action")};
d.hb=function(a){this.Da().ee(a,!0)};d.fe=function(a,b){this.Da().ai(a,b,!0)};function Ov(a,b,c){var e=a.Q();(c?e.C:e.W).call(e,b,"action",a.uh)}d.P=function(a){a=ob([],a);for(var b=0,c;c=ii(this.H,b);b++)if(c&&"function"==typeof c.w){var e=-1!=a.indexOf(c.w());c.Ym(e);this.dispatchEvent("change")}};d.w=function(){for(var a=[],b=0,c;c=ii(this.H,b);b++)c&&"function"==typeof c.w&&aq(c,16)&&a.push(c.w());return a};function Pv(){Yr.call(this)}m(Pv,Yr);h(Pv);Pv.prototype.A=function(){return"qiwi-checkbox-menu"};function Qv(){this.gg=[]}m(Qv,Qr);h(Qv);Qv.prototype.A=function(){return"qiwi-checkbox-menu-item"};function Rv(){}m(Rv,Tp);h(Rv);Rv.prototype.A=function(){return"qiwi-year-month"};Rv.prototype.g=function(a){var b=Rv.c.g.call(this,a);a=a.p();a.appendChild(b,a.g("div","qiwi-year-month-month"));a.appendChild(b,a.g("div","qiwi-year-month-year"));return b};Rv.prototype.setYear=function(a,b){var c=a.p();a.b()||a.g();var e=t("qiwi-year-month-year",a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};
Rv.prototype.setMonth=function(a,b){var c=a.p();a.b()||a.g();var e=t("qiwi-year-month-month",a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};function Sv(a,b,c){Y.call(this,a,b,c)}m(Sv,Y);W(Sv,Rv);X("qiwi-year-month",function(){return new Sv});d=Sv.prototype;d.jf=7;d.Eq=function(a){this.Co=a};d.Fq=function(a){this.Pj=a};d.N=function(a){Sv.c.N.call(this,a);this.Nc&&this.Nc.N(a);this.Kc&&this.Kc.N(a)};d.setYear=function(a){this.o.setYear(this,a);this.Nc=a};d.getYear=function(){return this.Nc};d.setMonth=function(a){this.o.setMonth(this,a);this.Kc=a};d.getMonth=function(){return this.Kc};
d.P=function(a){var b=new Xq;0<Vt(this.Pj,a,b,0,!0)?(this.Nc.P(b.getYear()),this.Kc.P(b.getMonth())):(this.Nc.P(null),this.Kc.P(null))};d.w=function(){if(null==this.Nc||null==this.Kc)return null;var a=this.Nc.w(),b=this.Kc.w();return null!=a&&null!=b?(a=new Xq(a,b),this.Co.format(a)):null};d.getContent=function(){return this.w()};d.n=function(){Sv.c.n.call(this);this.Nc&&(this.Nc.j||this.Nc.n(),Tv(this,!0));this.Kc&&(this.Kc.j||this.Kc.n(),Uv(this,!0))};
d.B=function(){this.Nc&&(this.Nc.B(),Tv(this,!1));this.Kc&&(this.Kc.B(),Uv(this,!1));Sv.c.B.call(this)};d.I=function(){this.Nc&&(this.Nc.O(),delete this.Nc);this.Kc&&(this.Kc.O(),delete this.Kc);Sv.c.I.call(this)};function Tv(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.Nc,"action",a.jM)}function Uv(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.Kc,"action",a.WL)}d.jM=function(){var a;if(a=null!=this.Nc.w())a=null!=this.Kc.w();a&&this.dispatchEvent("action")};
d.WL=function(){var a;if(a=null!=this.Nc.w())a=null!=this.Kc.w();a&&this.dispatchEvent("action")};function Vv(){}m(Vv,wp);h(Vv);d=Vv.prototype;d.A=function(){return"qiwi-help"};d.yi=function(){return this.A()+"-text"};d.Vo=function(){return this.A()+"-close"};d.dp=function(a){return t(this.yi(),a)};d.Mw=function(a){return t(this.Vo(),a)};d.g=function(a){var b=Vv.c.g.call(this,a);a=a.p();a.appendChild(b,a.g("div",this.yi()));a.appendChild(b,a.g("div",this.Vo()));return b};d.Ge=function(a,b){var c=a.b();c||(a.g(),c=a.b());if(c=this.dp(c)){var e=a.p();e.S(c);null!=b&&e.appendChild(c,Xc(b))}};
d.bl=function(a,b){a.b()||a.g();var c=this.Mw(a.b());if(c){var e=a.p();e.S(c);b.b()?(e.appendChild(c,b.b()),Wv(a)):T(b,c)}};function Xv(a,b){xp.call(this,a,b)}m(Xv,xp);W(Xv,Vv);X("qiwi-help",function(){return new Xv});d=Xv.prototype;d.Ge=function(a,b){null!=b&&!b||this.o.Ge(this,a);this.za=a};d.Cg=function(){return this.za};d.bl=function(a,b){null!=b&&!b||this.o.bl(this,a);this.Ec=a};d.n=function(){Xv.c.n.call(this);Wv(this)};d.B=function(){this.Ec&&(this.Ap(!1),this.Ec.B());Xv.c.B.call(this)};function Wv(a){a.Ec&&(a.j&&!a.Ec.j&&a.Ec.n(),a.Ap(!0))}d.Ap=function(a){var b=this.Q();(a?b.C:b.W).call(b,this.Ec,"action",this.ex)};
d.ex=function(){this.dispatchEvent(or)};var or="help-close";function Yv(){}m(Yv,qs);h(Yv);Yv.prototype.A=function(){return"qiwi-help-button"};function Zv(a,b){var c=(p(a,"view","widget","type")||"hidden").toLowerCase();return(0,$v[c])(a,b)}function aw(a,b){a.ya(b.name)}function bw(a,b){a.setTitle(b.view.title)}function cw(a,b){a.Vb(b.description)}function dw(a,b){a.N(null==b.disabled||!0!==b.disabled)}function ew(a,b){a.an(null!=b.optional&&!0===b.optional)}function fw(a,b){a.Sh(b?Ns(b.validator):Ps())}function gw(a,b){a.P(null!=b.value?b.value:"")}function hw(a,b){a.oD=null!=b.value?b.value:""}
function iw(a,b){if(b.view.info){var c=new Xv;c.Ge(marked(b.view.info));c.bl(new Nr(ua("Close"),jw.a()));a.jA(c);a.hA(new Nr("?",Yv.a()))}}function kw(a,b){var c=new Us(null!=a.value?a.value:"");c.Ng(a.view.widget.mask);var e=new tq(null,b);aw(e,a);bw(e,a);iw(e,a);cw(e,a);dw(e,a);ew(e,a);fw(e,a);e.Ka(c);gw(e,a);hw(e,a);e.ff(500);return e}function lw(a,b){var c=new Vr(b.title,b.value,null,Lv.a());c.Tt(!0);a.hb(c)}function mw(a,b){var c=new Vr(b.title,b.value,null,Qv.a());c.Bq(!0);a.hb(c)}
function nw(a,b){var c=new Vr(b.title,b.value,null,ws.a());a.hb(c)}function ow(a,b){a.hb(new Vr(b.title,b.value,null,ws.a()))}function pw(a,b){a.hb(new Vr(b.title,b.value,null,ws.a()))}
var $v={hidden:function(a,b){var c=new Us(null!=a.value?a.value:""),e=new tq(null,b);aw(e,a);e.Ka(c);gw(e,a);hw(e,a);e.setVisible(!1);fw(e,null);return e},text:kw,info:function(a,b){var c=new qr(null!=a.value?a.value:""),e=new tq(null,b);aw(e,a);bw(e,a);cw(e,a);fw(e,null);e.Ka(c);gw(e,a);hw(e,a);return e},masked:kw,radio:function(a,b){var c=new Zr(null,Kv.a());c.fd(!0);Pp(c,a.view.widget.orientation||Rp);var e=new Iv;e.fb(c);n(a.view.widget.choices,k(lw,null,e));a.view.widget.expansion&&(e.GH=a.view.widget.expansion.threshold,
e.FA(new Nr(a.view.widget.expansion.title,jw.a())),e.Wt(a.view.widget.expansion.threshold<a.view.widget.choices.length));c=new tq(null,b);aw(c,a);bw(c,a);iw(c,a);cw(c,a);dw(c,a);ew(c,a);fw(c,a);c.Ka(e);gw(c,a);hw(c,a);return c},checkbox:function(a,b){var c=new Zr(null,Pv.a());c.fd(!0);Pp(c,a.view.widget.orientation||Rp);var e=new Nv;e.fb(c);n(a.view.widget.choices,k(mw,null,e));c=new tq(null,b);aw(c,a);bw(c,a);iw(c,a);cw(c,a);dw(c,a);ew(c,a);fw(c,a);c.Ka(e);gw(c,a);hw(c,a);return c},list:function(a,
b){var c=new ts("",null);c.fb(new Zr(null,xs.a()));n(a.view.widget.choices,k(nw,null,c));null!=a.value||(a.value=a.view.widget.choices[0].value);var e=new tq(null,b);aw(e,a);bw(e,a);iw(e,a);cw(e,a);dw(e,a);ew(e,a);fw(e,a);e.Ka(c);gw(e,a);hw(e,a);return e},date:function(a,b){var c=p(a,"view","widget","format"),e=new Vu(c),c=new rv(c),f=Bu;switch(u.qiwi.locale){case "ru":f=Du;break;case "en":f=Cu}var g=Ru;p(a,"view","widget","max")||(g=new Xq,g.setHours(23),g.setMinutes(59),g.setSeconds(59));f=new jv(null,
f,null,kv.a());f.$f=new Pu(Qu,g);f=new qv(f);f.Aq(!1);var l=new Us(null!=a.value?a.value:"");l.Ng("dd.dd.dddd");g=new Qt;g.jc(32,!1);g.tA(f);g.Xf(l);g.Eq(e);g.Fq(c);e=new tq(null,b);aw(e,a);bw(e,a);iw(e,a);cw(e,a);dw(e,a);ew(e,a);fw(e,a);e.Ka(g);e.ff(500);gw(e,a);hw(e,a);return e},expirydate:function(a,b){var c=Bu;switch(u.qiwi.locale){case "ru":c=Du;break;case "en":c=Cu}for(var e=[],f=a.view.widget.yearFormat?new Vu(a.view.widget.yearFormat):null,g=0;11>g;g+=1){var l=new Xq;l.setDate(1);l.setFullYear(l.getFullYear()+
g);qb(e,{title:f?f.format(l):""+l.getFullYear(),value:l.getFullYear()})}f=new ts(a.view.widget.yearPlaceholder||ua("Year"),null);f.fb(new Zr(null,xs.a()));n(e,k(ow,null,f));for(var e=[],r=a.view.widget.monthFormat?new Vu(a.view.widget.monthFormat):null,g=0;12>g;g+=1)l=new Xq,l.setDate(1),l.setMonth(g),qb(e,{title:r?r.format(l):c.hj[g],value:l.getMonth()});c=new ts(a.view.widget.monthPlaceholder||ua("Month"),null);c.fb(new Zr(null,xs.a()));n(e,k(pw,null,c));l=new Vu(a.view.widget.format||"MMyy");e=
new rv(a.view.widget.format||"MMyy");g=new Sv;g.setYear(f);g.setMonth(c);g.Eq(l);g.Fq(e);f=new tq(null,b);aw(f,a);bw(f,a);iw(f,a);cw(f,a);dw(f,a);ew(f,a);fw(f,a);f.Ka(g);gw(f,a);hw(f,a);return f},suggestion:function(a,b){var c=new Us(null!=a.value?a.value:"");c.Ng(a.view.widget.mask);var e=new Zr(null,xs.a());e.Aq(!1);T(e,document.body);var f=new Yt;f.Wi(a.suggestionSource);f.Xf(c);f.Oa=e;c=new tq(null,b);c.nD=!1;c.Ob(!1);c.Mc(a.message);aw(c,a);bw(c,a);iw(c,a);cw(c,a);dw(c,a);ew(c,a);fw(c,null);
c.Ka(f);gw(c,a);hw(c,a);c.ff(500);return c},"switch":function(a,b){var c=new ku;c.cq=a.view.widget.onValue;c.$p=a.view.widget.offValue;c.setTitle(a.view.title);null!=a.value||(a.value=a.view.widget.offValue);var e=new tq(null,b);aw(e,a);iw(e,a);cw(e,a);dw(e,a);ew(e,a);fw(e,null);e.Ka(c);gw(e,a);hw(e,a);return e}};function qw(a){var b=new Bt;b.aA(Zv(a.card.pan));b.$z(Zv(a.card.date));b.Zz(Zv(a.card.cvv));b.xA(Zv(a.save));b.Mc(a.message);return b};function rw(){}m(rw,Tp);h(rw);d=rw.prototype;d.A=function(){return"qiwi-forms-dependency"};d.Qc=function(){return"qiwi-forms-dependency-container"};d.g=function(a){var b=rw.c.g.call(this,a);a=a.p();a.appendChild(b,a.g("div",this.Qc()));return b};d.ea=function(a,b){var c=this.pd(b);c&&a.Sf(cq(ad(c)));return rw.c.ea.call(this,a,b)};d.pd=function(a){return t(this.Qc(),a)};
d.hc=function(a,b){var c=a.p();a.b()||a.g();a.getContainer()&&a.getContainer().O();var e=this.pd(a.b());c.S(e);b&&(b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e))};d.Ob=function(a,b){var c=a.p();a.b()||a.g();var e=this.pd(a.b()),f=a.getContainer();f&&(b?(di(f,a),f.b()?(c.appendChild(e,f.b()),a.j&&!f.j&&f.n()):T(f,e)):(f.B(),di(f,null),c.S(e)))};function sw(){Hf.call(this)}m(sw,Hf);sw.prototype.Q=function(){this.Wa||(this.Wa=new Mf(this));return this.Wa};sw.prototype.I=function(){this.Wa&&(this.Wa.O(),delete this.Wa);sw.c.I.call(this)};function uq(a,b,c){Y.call(this,a,c,b);this.EH=new Iq(this.YK,0,this);new Iq(this.qD,0,this)}m(uq,kr);W(uq,rw);X("qiwi-forms-dependency",function(){return new uq});d=uq.prototype;d.Ob=function(a){this.eb=a;this.o.Ob(this,a);this.dispatchEvent(a?"enable":"disable")};d.Z=function(){return this.eb};d.hc=function(a){this.o.hc(this,a);this.Sf(a)};d.Sf=function(a){this.U=a;di(a,this)};d.getContainer=function(){return this.U};d.cn=function(a){this.ol=a};d.xi=function(){return this.ol};
d.ek=function(){var a=[this.ol];this.U&&qb(a,this.U.ek());return a};d.setValues=function(a){this.U.setValues(a)};d.Kg=function(a){this.U.Kg(a)};d.Ma=function(){return this.U.Ma()};d.Rc=function(){return this.U.Rc()};d.n=function(){uq.c.n.call(this);this.ci&&(tw(this,!0),this.ci.rm(this.Zj()),this.Ps(null))};d.B=function(){this.U&&this.U.B();this.ci&&tw(this,!1);uq.c.B.call(this)};d.I=function(){this.U&&(this.U.O(),delete this.U);this.ci&&(this.ci.O(),delete this.ci);uq.c.I.call(this)};
function tw(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.ci,"condition-change",a.Ps)}d.Ps=function(){this.ci.check()?(this.EH.stop(),this.EH.start(),this.setVisible(!0)):(this.qD(),this.setVisible(!1))};d.YK=function(){this.Ob(!0);this.Kg(!0)};d.qD=function(){this.Ob(!1);this.Kg(!1)};function uw(){Hf.call(this)}m(uw,sw);d=uw.prototype;d.el=function(a){this.Jf=a};d.sd=function(){return this.Jf};d.check=function(){var a=this.To.sd(this.Jf);return null!=a&&a.Z()&&a.Ia()};d.rm=function(a){this.To=a;this.Q().C(this.To,Dq,this.jk)};d.jk=function(a){a.Lw===this.Jf&&this.dispatchEvent("condition-change")};function vw(){Hf.call(this)}m(vw,sw);d=vw.prototype;d.el=function(a){this.Jf=a};d.sd=function(){return this.Jf};d.Hq=function(a){this.Ee=a};d.check=function(){var a=this.To.sd(this.Jf);return null!=a&&this.Ee.check(a.w())};d.rm=function(a){this.To=a;this.Q().C(this.To,Dq,this.jk)};d.jk=function(a){a.Lw===this.Jf&&this.dispatchEvent("condition-change")};function ww(){Hf.call(this);this.El=[]}m(ww,sw);d=ww.prototype;d.Su=function(a){this.El.push(a)};d.rm=function(a){n(this.El,k(this.wx,this,a),this)};d.wx=function(a,b){b.rm(a);this.Q().C(b,"condition-change",this.Ps)};d.Ps=function(a){this.dispatchEvent(a)};d.check=function(){return gb(this.El,this.av,this)};d.av=function(a){return a.check()};function xw(){Hf.call(this)}m(xw,sw);d=xw.prototype;d.Su=function(a){this.El.push(a)};d.rm=function(a){n(this.El,k(this.wx,this,a),this)};d.wx=function(a,b){b.rm(a)};d.check=function(){return db(this.El,this.av,this)};d.av=function(a){return a.check()};function yw(){};function zw(){}m(zw,yw);zw.prototype.vA=function(a){this.gz=a};zw.prototype.check=function(a){return gb(this.gz,k(this.bv,this,a),this)};zw.prototype.bv=function(a,b){return b.check(a)};function Dw(){}m(Dw,yw);Dw.prototype.vA=function(a){this.gz=a};Dw.prototype.check=function(a){return db(this.gz,k(this.bv,this,a),this)};Dw.prototype.bv=function(a,b){return b.check(a)};function Ew(){}m(Ew,yw);Ew.prototype.Ph=function(a){this.Ih=a};Ew.prototype.check=function(a){return a==this.Ih};function Fw(){}m(Fw,yw);Fw.prototype.Ph=function(a){this.Ih=a};Fw.prototype.check=function(a){return a>=this.Ih};function Gw(){}m(Gw,yw);Gw.prototype.Ph=function(a){this.Ih=a};Gw.prototype.check=function(a){return this.Ih.test(null!=a?a:"")};function Hw(){}m(Hw,yw);Hw.prototype.el=function(a){this.Jf=a};Hw.prototype.check=function(a){var b=aa.VH.sd(this.Jf).w();if(20>a.length||9>b.length)return!1;for(var c=0,e=6,f=0;9>e;e+=1,f+=1)c+=Iw[f]*parseInt(b[e],10);for(b=e=0;8>e;e+=1,b+=1)c+=Jw[b]*parseInt(a[e],10);e=9;for(b=8;20>e;e+=1,b+=1)c+=Jw[b]*parseInt(a[e],10);return c%10*3%10==parseInt(a[8],10)};var Jw=[7,1,3,7,1,3,7,1,7,1,3,7,1,3,7,1,3,7,1],Iw=[7,1,3];function Kw(){}m(Kw,yw);Kw.prototype.hl=function(a){this.Jc=a};Kw.prototype.gl=function(a){this.Hc=a};Kw.prototype.check=function(a){var b=!0;null!=this.Jc&&(b&=a>=this.Jc);null!=this.Hc&&(b&=a<=this.Hc);return b};function Qs(a){var b=p(a,"type"),b=b.toLowerCase();return(0,Lw[b])(a)}
var Lw={and:function(a){var b=new zw;b.vA(bb(a.subpredicates,Qs));return b},or:function(a){var b=new Dw;b.vA(bb(a.subpredicates,Qs));return b},equality:function(a){var b=new Ew;b.Ph(a.value);return b},greater:function(a){var b=new Fw;b.Ph(a.value);return b},regex:function(a){var b=new Gw;b.Ph(new RegExp(a.pattern));return b},bikkeying:function(a){var b=new Hw;b.el(a.field);return b},range:function(a){var b=new Kw;b.hl(a.min);b.gl(a.max);return b}};function Mw(a){var b=p(a,"type"),b=b.toLowerCase();return(0,Nw[b])(a)}function Ow(a,b){a.Su(Mw(b))}function Pw(a,b){a.Su(Mw(b))}var Nw={validity:function(a){var b=new uw;b.el(a.field);return b},predicate:function(a){var b=new vw;b.el(a.field);b.Hq(Qs(a.predicate));return b},and:function(a){var b=new ww;n(a.conditions,k(Ow,null,b));return b},or:function(a){var b=new xw;n(a.conditions,k(Pw,null,b));return b}};function Qw(){this.Ed=[];this.Lx=[];this.XB=[]}d=Qw.prototype;d.ic=function(a){this.Ja=a};d.Ha=function(){return this.Ja};d.Ru=function(a){mb(this.Ed,a)};function Zq(a){return bb(a.Lx,a.wL,a)}d.wL=function(a){return a.ra};d.Nw=function(a){return kb(this.Ed,k(this.zx,this,a),this)};d.zx=function(a,b){return b.UB<=a};d.uM=function(a,b){return b.ra.Ha()==a.Ha()};function br(a,b){return kb(a.XB,k(a.rM,a,b),a)}d.rM=function(a,b){return b.sb.toLowerCase()==a.toLowerCase()};function Rw(){}d=Rw.prototype;d.$c=function(a){this.ra=a};d.Qh=function(a){this.Wd=a};d.Bg=function(){return this.Wd};function Sw(a){a=new BigNumber(a.Wd);a=a.times(new BigNumber(100));return a.toNumber()+"%"}d.hl=function(a){this.Jc=a};d.Yw=function(){return Nq(this.ra,this.Jc)};d.gl=function(a){this.Hc=a};d.Xw=function(){return Nq(this.ra,this.Hc)};
function Tw(a,b){var c=new BigNumber(b),c=ja(a.Wd)?c.times(new BigNumber(a.Wd)):c.times(0);ja(a.gm)&&(c=c.plus(new BigNumber(a.gm)));ja(a.Jc)&&c<a.Jc&&(c=new BigNumber(a.Jc));ja(a.Hc)&&c>a.Hc&&(c=new BigNumber(a.Hc));return c.toNumber()}function cr(a,b){return(new BigNumber(b)).plus(new BigNumber(Tw(a,b))).round(2).toNumber()}
d.toString=function(){var a=new Bj;this.Wd&&this.gm?(a.append(Sw(this)),a.append(" + "),a.append(Nq(this.ra,this.gm))):this.Wd?a.append(Sw(this)):this.gm?a.append(Nq(this.ra,this.gm)):a.append("0%");this.Jc&&(a.append(", "),a.append(ua("not less")),a.append(" "),a.append(this.Yw()));this.Hc&&(a.append(", "),a.append(ua("not more")),a.append(" "),a.append(this.Xw()));return a.toString()};function ot(a){var b=new Rw;b.UB=a.bound;b.Qh(a.rate);b.gm=a.fixed;b.hl(a.min);b.gl(a.max);return b};function Uw(){}Uw.prototype.Ad=function(a){this.sb=a};Uw.prototype.Qh=function(a){this.Wd=a};Uw.prototype.Bg=function(){return this.Wd};Uw.prototype.$c=function(a){this.ra=a};function Vw(a){if(null==a)return null;var b=new Qw;b.ic(p(a,"id"));n(p(a,"commission","ranges")||[],k(Ww,null,b));n(p(a,"limits")||[],k(Xw,null,b));n(p(a,"cashbacks")||[],k(Yw,null,b));a.fixedSum&&(b.OD=a.fixedSum.amount,a=Ss(a.fixedSum.currency),b.PD=a);return b}function Ww(a,b){a.Ru(ot(b))}function Xw(a,b){var c=jt(b);mb(a.Lx,c)}function Yw(a,b){var c=new Uw;c.Ad(b.type);c.Qh(b.rate);c.$c(Ss("643"));mb(a.XB,c)};function Zw(){}m(Zw,Tp);h(Zw);d=Zw.prototype;d.A=function(){return"qiwi-forms-reference"};d.Qc=function(){return"qiwi-forms-reference-container"};d.Ve=function(){return"qiwi-forms-reference-control"};function $w(){return"qiwi-forms-reference-control-inner"}d.rd=function(){return"qiwi-forms-reference-error"};d.g=function(a){var b=Zw.c.g.call(this,a);a=a.p();a.appendChild(b,a.g("div",this.Ve()));a.appendChild(b,a.g("div",this.Qc()));a.appendChild(b,a.g("div",this.rd()));R(this.rh(b),!1);return b};
d.Xj=function(a){return t(this.Ve(),a)};d.pd=function(a){return t(this.Qc(),a)};d.rh=function(a){return t(this.rd(),a)};d.Ka=function(a,b){var c=a.p();a.b()||a.g();var e=this.Xj(a.b());c.S(e);b&&(c.appendChild(e,c.g("div",$w())),e=t($w(),a.b()),b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e))};d.hc=function(a,b){var c=a.p();a.b()||a.g();var e=this.pd(a.b());c.S(e);b&&(b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e))};
d.Ya=function(a,b){var c=a.p();a.b()||a.g();var e=this.rh(a.b());e&&(R(e,null!=b),c.S(e),c.Pg(e,b))};function vq(a,b,c){Y.call(this,a,c,b);this.YA=new Iq(this.sD,0,this);this.KV=new Iq(this.rD,0,this)}m(vq,kr);W(vq,Zw);X("qiwi-forms-reference",function(){return new vq});d=vq.prototype;d.ic=function(a){this.Ja=a};d.Ha=function(){return this.Ja};d.Ob=function(a){this.eb=a;this.dispatchEvent(a?"enable":"disable")};d.Ya=function(a,b){null!=b&&!b||this.o.Ya(this,a);this.we=a};d.getError=function(){return this.we};d.Vf=function(a){this.ll=a};d.Mc=function(a){this.gc=a};d.Od=function(){return this.gc};
d.Ka=function(a,b){di(a,this);null!=b&&!b||this.o.Ka(this,a);this.X=a};d.hc=function(a,b){a&&di(a,this);this.U&&this.U.O();null!=b&&!b||this.o.hc(this,a);this.U=a};d.getContainer=function(){return this.U};d.cn=function(a){this.ol=a};d.xi=function(){return this.ol};d.ek=function(){var a=[this.ol];this.U&&qb(a,this.U.ek());return a};d.setValues=function(a){this.U&&this.U.setValues(a)};d.Qd=function(){return cb(this.dq,this.AL,{},this)};d.Rc=function(){return this.U?this.U.Rc():[]};
d.Kg=function(a){this.U&&this.U.Kg(a)};d.AL=function(a,b){var c=this.Zj().sd(b.field);c&&Eb(a,c.Ma());return a};d.Ma=function(){return this.U?this.U.Ma():{}};d.n=function(){vq.c.n.call(this);this.X&&(this.X.j||this.X.n(),this.Fg(!0));this.dq&&ax(this,!0);this.Bi(null)};d.B=function(){this.YA.stop();this.KV.stop();this.X&&(this.X.B(),this.Fg(!1));this.dq&&ax(this,!1);this.U&&this.U.B();vq.c.B.call(this)};d.I=function(){this.X&&(this.X.O(),delete this.X);this.U&&(this.U.O(),delete this.U);vq.c.I.call(this)};
d.Fg=function(a){var b=this.Q();(a?b.C:b.W).call(b,this.X,"action",this.Bi)};function ax(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.Zj(),Dq,a.jk)}d.Bi=function(a){this.tp(!!a)&&this.sD()};d.jk=function(a){0!==hb(this.dq,k(this.sL,this,a.Lw),this)&&(this.tp(!1)?(this.YA.stop(),this.YA.start()):this.rD())};d.sD=function(){var a=this.Qd();Cb(this.hB||{},a)||(this.hB=a,this.tp(!1)&&this.dispatchEvent(new be(bx,this)))};d.rD=function(){this.Yc()};
d.Yc=function(){this.hB=null;this.o.Ka(this,this.X);this.Vf(!1);this.cn(null);this.hc(null);this.Ob(!1);this.Ya(null);this.Kg(!0)};d.Z=function(a){if(a||this.ll)this.Vf(!0),this.Ya(this.eb?null:this.we?this.we:this.gc);return this.eb};d.tp=function(a){return cb(this.dq,k(this.xM,this,a),!0,this)};d.xM=function(a,b,c){return(c=this.Zj().sd(c.field))?c.Z(a)&&b:!1};d.sL=function(a,b){return b.field===a};var bx="reference-submit";function cx(){}m(cx,qs);h(cx);cx.prototype.A=function(){return"qiwi-orange-button"};function dx(a){var b=p(a,"type"),b=b.toLowerCase();return(0,ex[b])(a)}var ex={dependency:function(a){var b=new uq;b.setVisible(!1);b.hc(fx(p(a,"content","elements")||[]));var c=Mw(p(a,"condition"));b.ci=c;b.cn(Vw(p(a,"content","terms")));return b},field:Zv,ref:function(a){var b=new vq;b.ic(a.id);b.dq=a.params;b.Ob(!1);b.Mc(a.message);b.Ka(new Nr(a.title,cx.a()));return b}};function fx(a){var b=new sq;n(a,k(gx,null,b));return b}function gx(a,b){a.addElement(dx(b))};function hx(){this.Gn=void 0}m(hx,Np);h(hx);hx.prototype.A=function(){return"qiwi-forms-controls"};function ix(a,b){hq.call(this,a,b||hx.a())}m(ix,hq);W(ix,hx);X("qiwi-forms-controls",function(){return new ix(null)});function jx(){}m(jx,qs);h(jx);jx.prototype.A=function(){return"goog-link-button"};X("goog-link-button",function(){return new Nr(null,jx.a())});function jw(){}m(jw,jx);h(jw);jw.prototype.A=function(){return"qiwi-link-button"};function kx(){}m(kx,jx);h(kx);kx.prototype.A=function(){return"qiwi-favorite-button"};function lx(){}m(lx,jx);h(lx);lx.prototype.A=function(){return"qiwi-schedule-button"};function mx(a){var b=new ix;n(a,k(nx,null,b));return b}function nx(a,b){a.ee(ox(b),!0)}function ox(a){var b=p(a,"type").toLowerCase();return(0,px[b])(a)}var px={"orange-button":function(a){var b=new Nr(a.text,cx.a());b.xa=a.name;return b},"link-button":function(a){var b=new Nr(a.text,jw.a());b.xa=a.name;return b},"favorite-button":function(a){var b=new Nr(a.text,kx.a());b.xa=a.name;return b},"schedule-button":function(a){var b=new Nr(a.text,lx.a());b.xa=a.name;return b}};function qx(){}d=qx.prototype;d.aH=function(a){this.hm=a};d.aH=function(a){this.hm=a};function Oq(a,b){return(new BigNumber(b)).times(new BigNumber(a.Wd)).times(new BigNumber(100)).ceil().div(new BigNumber(100)).toNumber()}d.Qh=function(a){this.Wd=a};d.Bg=function(){return this.Wd};d.toString=function(){var a=new Bj;a.append(1);a.append(" ");a.append(this.hm.xx);a.append(" \x3d ");a.append((new BigNumber(1)).div(new BigNumber(this.Wd)).round(4).toNumber());a.append(" ");a.append(this.FH.xx);return a.toString()};function rx(a){var b=new qx;b.Qh(a.rate);b.aH(Ss(a.from));a=Ss(a.to);b.FH=a;return b};function sx(a){var b=new Hq,c=p(a,"auth");b.qK=c;b.Ad(p(a,"type"));b.cn(Vw(p(a,"content","terms")));b.Og(jr(p(a,"provider")));b.hc(fx(p(a,"content","elements")||[]));b.Wi(qt(p(a,"source")));b.Vz(qw(p(a,"acquiring")));b.Wz(Ts(p(a,"amount")));b.cA(Zv(p(a,"comment")));b.Xd(mx(p(a,"controls")||[]));c=bb(p(a,"rates"),rx);b.VR=c;b.fl(p(a,"header"));b.gA(p(a,"footer"));b.ww=new uf;return b};function tx(){}m(tx,wp);h(tx);d=tx.prototype;d.A=function(){return"qiwi-payment-confirm"};d.We=function(){return"qiwi-payment-confirm-controls"};d.dk=function(){return"qiwi-payment-confirm-provider"};d.Sc=function(){return"qiwi-payment-confirm-header"};d.Ns=function(){return"qiwi-payment-confirm-values"};d.WD=function(){return"qiwi-payment-confirm-values-element"};d.XD=function(){return"qiwi-payment-confirm-values-element-title"};d.YD=function(){return"qiwi-payment-confirm-values-element-value"};
d.ui=function(){return"qiwi-payment-confirm-information"};d.zg=function(a){return t(this.We(),a)};d.Ks=function(a){return t(this.dk(),a)};d.ak=function(a){return t(this.Sc(),a)};d.bx=function(a){return t(this.Ns(),a)};d.lm=function(a){return t(this.ui(),a)};
d.g=function(a){a=a.p();var b=a.g("div",this.A());a.appendChild(b,a.g("div",this.dk()));a.appendChild(b,a.g("div",this.ui()));R(this.lm(b),!1);a.appendChild(b,a.g("div",this.Sc(),ua("Payment information")));a.appendChild(b,a.g("div",this.Ns()));a.appendChild(b,a.g("div",this.We()));return b};d.Xd=function(a,b){var c=a.p();a.b()||a.g();var e=this.zg(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};
d.Og=function(a,b){var c=a.p();a.b()||a.g();var e=this.Ks(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.setValues=function(a,b){var c=a.p();a.b()||a.g();var e=this.bx(a.b());c.S(e);for(var f=0;f<b.length;f+=1)if(b[f].title&&b[f].value){var g=c.g("div",this.WD());c.appendChild(g,c.g("div",this.XD(),b[f].title));c.appendChild(g,c.g("div",this.YD(),b[f].value));c.appendChild(e,g)}};
d.gf=function(a,b){a.p();a.b()||a.g();var c=this.lm(a.b());if(c){Zc(c);var e=Xc(b);c.appendChild(e);R(c,null!=b)}};function ux(a,b){xp.call(this,a,b)}m(ux,xp);W(ux,tx);X("qiwi-payment-confirm",function(){return new ux});d=ux.prototype;d.Xd=function(a){this.o.Xd(this,a);this.Zm(a)};d.Zm=function(a){this.Ua=a};d.Og=function(a){this.o.Og(this,a);this.wA(a)};d.wA=function(a){this.Vd=a;di(a,this)};d.setValues=function(a){this.o.setValues(this,a);this.hB=a};d.gf=function(a){this.o.gf(this,a)};d.n=function(){this.Ua&&!this.Ua.j&&this.Ua.b()&&this.Ua.n();this.Gi(!0);ux.c.n.call(this)};
d.B=function(){this.Ua&&this.Ua.B();ux.c.B.call(this)};d.I=function(){this.Ua&&(this.Ua.O(),delete this.Ua);ux.c.I.call(this)};d.Gi=function(a){var b=this.Q();(a?b.C:b.W).call(b,this.Ua,"action",this.ip)};d.ip=function(a){var b=new be(vx);b.name=a.target.xa;this.dispatchEvent(b)};d.Z=function(){return!0};d.refresh=function(){jQuery(this.b()).find("[type\x3dtext]").trigger("refresh.inpufit")};var vx="payment-confirm-submit";function wx(){}m(wx,wp);h(wx);d=wx.prototype;d.A=function(){return"qiwi-payment-confirm-offer"};d.qc=function(){return"qiwi-payment-confirm-offer-title"};function xx(){return"qiwi-payment-confirm-offer-anchor"}function yx(){return"qiwi-payment-confirm-offer-checkbox"}function zx(){return"qiwi-payment-confirm-offer-offer"}d.rd=function(){return"qiwi-payment-confirm-offer-error"};d.We=function(){return"qiwi-payment-confirm-offer-controls"};d.td=function(a){return t(this.qc(),a)};
d.rh=function(a){return t(this.rd(),a)};d.zg=function(a){return t(this.We(),a)};d.g=function(a){a=a.p();var b=a.g("div",this.A());a.appendChild(b,a.g("div",this.qc()));a.appendChild(b,a.g("div",xx()));a.appendChild(b,a.g("div",yx()));a.appendChild(b,a.g("a",zx()));a.appendChild(b,a.g("div",this.rd()));a.appendChild(b,a.g("div",this.We()));return b};d.setTitle=function(a,b){var c=a.p();a.b()||a.g();var e=this.td(a.b());c.S(e);e.innerHTML=b};
d.Xz=function(a,b){var c=a.p();a.b()||a.g();var e=t(xx(),a.b());c.S(e);var f=c.g("a");f.setAttribute("href",b);f.setAttribute("target","_blank");c.appendChild(f,c.createTextNode(b));c.appendChild(e,f)};d.bA=function(a,b){var c=a.p();a.b()||a.g();var e=t(yx(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.qA=function(a,b){var c=a.p();a.b()||a.g();var e=t(zx(),a.b());c.S(e);c.appendChild(e,c.createTextNode(b.text));e.setAttribute("href",b.link);e.setAttribute("target","_blank")};
d.Ya=function(a,b){var c=a.p();a.b()||a.g();var e=this.rh(a.b());c.S(e);c.appendChild(e,c.createTextNode(b));e.style.display="none"};d.Xd=function(a,b){var c=a.p();a.b()||a.g();var e=this.zg(a.b());c.S(e);b.b()?c.appendChild(e,b.b()):T(b,e)};function Ax(a,b){xp.call(this,a,b)}m(Ax,xp);W(Ax,wx);X("qiwi-payment-confirm-offer",function(){return new Ax});d=Ax.prototype;d.setTitle=function(a){this.o.setTitle(this,a);this.He(a)};d.He=function(a){this.Bd=a};d.getTitle=function(){return this.Bd};d.Xz=function(a){this.o.Xz(this,a)};d.bA=function(a){this.o.bA(this,a);this.wK=a};d.qA=function(a){this.o.qA(this,a)};d.Ya=function(a){this.o.Ya(this,a);this.dl(a)};d.dl=function(a){this.we=a};d.getError=function(){return this.we};
d.Xd=function(a){this.o.Xd(this,a);this.Zm(a)};d.Zm=function(a){this.Ua=a};d.n=function(){this.Ua&&!this.Ua.j&&this.Ua.b()&&this.Ua.n();this.Gi(!0);Ax.c.n.call(this)};d.B=function(){this.Ua&&(this.Vd.B(),this.Gi(!1));Ax.c.B.call(this)};d.Gi=function(a){var b=this.Q();(a?b.C:b.W).call(b,this.Ua,"action",this.ip)};
d.ip=function(a){var b;"confirm"===a.target.xa&&(this.wK.Xg?(b=new be(Bx),b.name=a.target.xa,this.dispatchEvent(b)):this.o.rh(this.b()).style.display="");"form"===a.target.xa&&(b=new be(Cx),b.name=a.target.xa,this.dispatchEvent(b))};var Cx="confirm-offer-back",Bx="confirm-offer-submit";function Dx(a){var b=new ku;b.cq=a.onValue;b.$p=a.offValue;b.setTitle(a.title);return b};function Ex(){}m(Ex,tx);h(Ex);d=Ex.prototype;d.A=function(){return"qiwi-payment-favorite"};d.We=function(){return"qiwi-payment-favorite-controls"};d.dk=function(){return"qiwi-payment-favorite-provider"};d.Sc=function(){return"qiwi-payment-favorite-header"};d.Ns=function(){return"qiwi-payment-favorite-values"};d.WD=function(){return"qiwi-payment-favorite-values-element"};d.XD=function(){return"qiwi-payment-favorite-values-element-title"};d.YD=function(){return"qiwi-payment-favorite-values-element-value"};
d.ui=function(){return"qiwi-payment-favorite-information"};d.qc=function(){return"qiwi-payment-favorite-title"};function Fx(){return"qiwi-payment-favorite-schedule-form"}function Gx(){return"qiwi-payment-favorite-schedule-open"}d.zg=function(a){return t(this.We(),a)};d.Ks=function(a){return t(this.dk(),a)};d.ak=function(a){return t(this.Sc(),a)};d.bx=function(a){return t(this.Ns(),a)};d.lm=function(a){return t(this.ui(),a)};d.td=function(a){return t(this.qc(),a)};
d.g=function(a){var b=Ex.c.g.call(this,a);a=a.p();var c=this.ak(b);a.Pg(c,ua("Adding to favorites"));var e=a.g("div",this.qc());c.parentNode&&c.parentNode.insertBefore(e,c.nextSibling);c=this.bx(b);e=a.g("div","qiwi-payment-favorite-schedule");a.appendChild(e,a.g("div",Fx()));a.appendChild(e,a.g("div",Gx()));c.parentNode&&c.parentNode.insertBefore(e,c.nextSibling);return b};
d.setTitle=function(a,b){var c=a.p();a.b()||a.g();var e=this.td(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.yA=function(a,b){var c=a.p();a.b()||a.g();var e=t(Fx(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.zA=function(a,b){var c=a.p();a.b()||a.g();var e=t(Gx(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.dm=function(a,b){R(t(Fx(),a.b()),b);R(t(Gx(),a.b()),!b)};function Hx(a,b){xp.call(this,a,b)}m(Hx,ux);W(Hx,Ex);X("qiwi-payment-favorite",function(){return new Hx});d=Hx.prototype;d.setTitle=function(a){this.o.setTitle(this,a);this.He(a)};d.He=function(a){this.Bd=a;di(a,this)};d.getTitle=function(){return this.Bd};d.yA=function(a){this.o.yA(this,a);this.Zc=a;di(a,this)};d.zA=function(a){this.o.zA(this,a);this.Lg=a;di(a,this)};
d.n=function(){this.Zc&&!this.Zc.j&&this.Zc.b()&&this.Zc.n();this.Lg&&!this.Lg.j&&this.Lg.b()&&this.Lg.n();var a=this.Q();a.C.call(a,this.Zc,"close",this.dM);a=this.Q();a.C.call(a,this.Lg,"action",this.eM);Hx.c.n.call(this)};d.B=function(){this.Zc&&this.Zc.B();this.Lg&&this.Lg.B();Hx.c.B.call(this)};d.I=function(){this.Zc&&(this.Zc.O(),delete this.Zc);this.Lg&&(this.Lg.O(),delete this.Lg);Hx.c.I.call(this)};d.dM=function(){this.dm(!1)};d.eM=function(){this.dm(!0)};
d.dm=function(a){this.Zc.N(a);this.Zc.reset();this.o.dm(this,a)};d.Ma=function(){var a={};Eb(a,this.getTitle().Ma(),this.Zc.isEnabled()?this.Zc.Ma():{});return a};d.Z=function(){var a;a=1&this.getTitle().Z(!0);this.Zc.isEnabled()&&(a&=this.Zc.Z(!0));return a};function Ix(){}m(Ix,wp);h(Ix);d=Ix.prototype;d.A=function(){return"qiwi-favorite-schedule-form"};d.qc=function(){return"qiwi-favorite-schedule-form-title"};d.Vo=function(){return"qiwi-favorite-schedule-form-close"};function Jx(){return"qiwi-favorite-schedule-form-interval"}function Kx(){return"qiwi-favorite-schedule-form-start-date"}function Lx(){return"qiwi-favorite-schedule-form-start-time"}function Mx(){return"qiwi-favorite-schedule-form-weekly"}
function Nx(){return"qiwi-favorite-schedule-form-monthly"}function Ox(){return"qiwi-favorite-schedule-form-autopay"}function Px(){return"qiwi-favorite-schedule-form-notify-switch"}function Qx(){return"qiwi-favorite-schedule-form-notify-day-input"}d.td=function(a){return t(this.qc(),a)};d.Mw=function(a){return t(this.Vo(),a)};
d.g=function(a){var b=a.p();a=b.g("div",this.kb(a));b.appendChild(a,b.g("div",this.qc(),ua("Schedule title")));b.appendChild(a,b.g("div",this.Vo()));b.appendChild(a,b.g("div",Jx()));var c=b.g("div","qiwi-favorite-schedule-form-start");b.appendChild(a,c);b.appendChild(c,b.g("div",Kx()));b.appendChild(c,b.g("div",Lx()));b.appendChild(a,b.g("div",Mx()));b.appendChild(a,b.g("div",Nx()));b.appendChild(a,b.g("div",Ox()));c=b.g("div","qiwi-favorite-schedule-form-notify");b.appendChild(a,c);b.appendChild(c,
b.g("div",Px()));var e=b.g("div","qiwi-favorite-schedule-form-notify-day");b.appendChild(c,e);b.appendChild(e,b.g("div",Qx()));b.appendChild(e,b.g("div","qiwi-favorite-schedule-form-notify-day-label",ua("Schedule notify day label")));b.appendChild(c,b.g("div","qiwi-favorite-schedule-form-notify-cost",ua("Schedule notify cost")));return a};d.bl=function(a,b){var c=a.p();a.b()||a.g();var e=this.Mw(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};
d.setInterval=function(a,b){var c=a.p();a.b()||a.g();var e=t(Jx(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.HA=function(a,b){var c=a.p();a.b()||a.g();var e=t(Mx(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.nA=function(a,b){var c=a.p();a.b()||a.g();var e=t(Nx(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};
d.Yz=function(a,b){var c=a.p();a.b()||a.g();var e=t(Ox(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.pA=function(a,b){var c=a.p();a.b()||a.g();var e=t(Px(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.oA=function(a,b){var c=a.p();a.b()||a.g();var e=t(Qx(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};
d.BA=function(a,b){var c=a.p();a.b()||a.g();var e=t(Kx(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.CA=function(a,b){var c=a.p();a.b()||a.g();var e=t(Lx(),a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.Ho=function(a,b){R(t(Mx(),a.b()),b)};d.Go=function(a,b){R(t(Nx(),a.b()),b)};function Rx(a,b){xp.call(this,a,b)}m(Rx,xp);W(Rx,Ix);X("qiwi-favorite-schedule-form",function(){return new Rx});d=Rx.prototype;d.N=function(a){this.Yb=a};d.isEnabled=function(){return this.Yb};d.bl=function(a){this.o.bl(this,a);this.Ec=a};d.setInterval=function(a){this.o.setInterval(this,a);this.Bb=a};d.HA=function(a){this.o.HA(this,a);this.kd=a};d.nA=function(a){this.o.nA(this,a);this.Xc=a};d.Yz=function(a){this.o.Yz(this,a);this.Ke=a};d.BA=function(a){this.o.BA(this,a);this.hd=a};
d.getStartDate=function(){return this.hd};d.CA=function(a){this.o.CA(this,a);this.Ie=a};d.pA=function(a){this.o.pA(this,a);this.Td=a};d.oA=function(a){this.o.oA(this,a);this.yd=a};
d.n=function(){this.Ec&&!this.Ec.j&&this.Ec.b()&&this.Ec.n();this.Bb&&!this.Bb.j&&this.Bb.b()&&this.Bb.n();this.kd&&!this.kd.j&&this.kd.b()&&this.kd.n();this.Xc&&!this.Xc.j&&this.Xc.b()&&this.Xc.n();this.Ke&&!this.Ke.j&&this.Ke.b()&&this.Ke.n();this.hd&&!this.hd.j&&this.hd.b()&&this.hd.n();this.Ie&&!this.Ie.j&&this.Ie.b()&&this.Ie.n();this.Td&&!this.Td.j&&this.Td.b()&&this.Td.n();this.yd&&!this.yd.j&&this.yd.b()&&this.yd.n();this.Ec&&this.Ap(!0);this.Bb&&Sx(this,!0);this.Td&&Tx(this,!0);Rx.c.n.call(this)};
d.B=function(){this.Ec&&(this.Ap(!1),this.Ec.B());this.Bb&&(Sx(this,!1),this.Bb.B());this.kd&&this.kd.B();this.Xc&&this.Xc.B();this.Ke&&this.Ke.B();this.hd&&this.hd.B();this.Ie&&this.Ie.B();this.Td&&(Tx(this,!1),this.Td.B());this.yd&&this.yd.B();Rx.c.B.call(this)};
d.I=function(){this.Ec&&(this.Ec.O(),delete this.Ec);this.Bb&&(this.Bb.O(),delete this.Bb);this.kd&&(this.kd.O(),delete this.kd);this.Xc&&(this.Xc.O(),delete this.Xc);this.Ke&&(this.Ke.O(),delete this.Ke);this.hd&&(this.hd.O(),delete this.hd);this.Ie&&(this.Ie.O(),delete this.Ie);this.Td&&(this.Td.O(),delete this.Td);this.yd&&(this.yd.O(),delete this.yd);Rx.c.I.call(this)};d.Ap=function(a){var b=this.Q();(a?b.C:b.W).call(b,this.Ec,"action",this.ex)};
function Sx(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.Bb,Bq,a.RL)}function Tx(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.Td,"change",a.YL)}d.ex=function(){this.dispatchEvent("close")};d.RL=function(){switch(this.Bb.w()){case Ux:this.Ho(!0);this.Go(!1);break;case Vx:this.Ho(!1);this.Go(!0);break;default:this.Ho(!1),this.Go(!1)}};d.YL=function(){this.yd.N(this.Td.w())};d.Ho=function(a){a||this.kd.P(null);this.kd.N(a);this.o.Ho(this,a)};d.Go=function(a){a||this.Xc.P(null);this.Xc.N(a);this.o.Go(this,a)};
d.reset=function(){this.Bb.Yc();this.hd.P((new Date).toISOString().slice(0,10).split("-").reverse().join("."));this.Ie.P("12:00:00");this.kd.Yc();this.Xc.Yc();this.Ke.P(!1);this.Td.P(!1);this.yd.P(null)};d.Z=function(a){var b;b=1&this.Bb.Z(a);b&=this.hd.Z(a);b&=this.Ie.Z(a);this.kd.isEnabled()&&(b&=this.kd.Z(a));this.Xc.isEnabled()&&(b&=this.Xc.Z(a));return b};
d.Ma=function(){var a={},b={};switch(this.Bb.w()){case Wx:Eb(b,{type:"Once"});break;case Ux:Eb(b,{type:"EachWeek",days:this.kd.w()});break;case Vx:var c=this.Xc.w(),e=-1!=this.Xc.w().indexOf(31);e&&(c=c.slice(0,-1));Eb(b,{type:"EachMonth",days:c,lastDayOfMonth:e})}Eb(a,{interval:b});var b=this.hd.w(),c=this.Ie.w(),e=new rv("dd.MM.yyyy HH:mm:ss"),f=new Xq;0<Vt(e,b+" "+c,f,0,!0)&&Eb(a,{startDate:f.mn(!0,!0).replace(" ","T")});Eb(a,{autoAccept:this.Ke.w()});this.yd.isEnabled()&&this.yd.w()&&Eb(a,{notifyBefore:parseInt(this.yd.w(),
10)||0});return{schedule:a}};var Wx="ONCE",Ux="WEEK",Vx="MONTH";function Xx(a){var b=new Rx;b.bl(new Nr(ua("Schedule close"),jw.a()));b.setInterval(Zv(a.interval));b.BA(Zv(a.start.date));b.CA(Zv(a.start.time));b.HA(Zv(a.weekly));b.nA(Zv(a.monthly));b.Yz(Yx(a.autopay));b.pA(Zx(a.notify["switch"]));b.oA($x(a.notify.day.input));return b}function Yx(a){var b=new ku;b.cq=a.onValue;b.$p=a.offValue;b.setTitle(a.title);return b}function Zx(a){var b=new ku;b.cq=a.onValue;b.$p=a.offValue;b.setTitle(a.title);return b}
function $x(a){a=new Us(null!=a.value?a.value:"");a.Qt(2);a.dB=/^\d*$/;a.N(!1);return a};function ay(a){var b=new Hx;b.Og(jr(p(a,"provider")));b.gf(p(a,"information"));b.Xd(mx(p(a,"controls")||[]));b.setTitle(Zv(p(a,"title")));b.setValues(p(a,"values")||[]);b.yA(Xx(p(a,"schedule")));b.zA(new Nr(ua("Schedule open"),jw.a()));return b};function by(){}m(by,wp);h(by);d=by.prototype;d.A=function(){return"qiwi-confirmation-smsform"};d.Sc=function(){return"qiwi-confirmation-smsform-header"};function cy(){return"qiwi-confirmation-smsform-wait"}function dy(){return"qiwi-confirmation-smsform-smsresend"}d.im=function(){return"qiwi-confirmation-smsform-code"};function ey(){return"qiwi-confirmation-smsform-resend"}d.wi=function(){return"qiwi-confirmation-smsform-submit"};function fy(){return"qiwi-confirmation-smsform-status"}
d.ak=function(a){return t(this.Sc(),a)};d.mm=function(a){return t(this.wi(),a)};d.g=function(a){var b=a.p();a=b.g("form",{"class":this.kb(a).join(" "),method:"post",enctype:"multipart/form-data"});b.appendChild(a,b.g("div",this.Sc()));b.appendChild(a,b.g("div",this.im()));b.appendChild(a,b.g("div",ey()));b.appendChild(a,b.g("div",dy()));b.appendChild(a,b.g("div",cy()));b.appendChild(a,b.g("div",fy()));b.appendChild(a,b.g("div",this.wi()));return a};
d.fl=function(a,b){var c=a.p();a.b()||a.g();var e=this.ak(a.b());c.Pg(e,b)};d.Xi=function(a,b){var c=a.p();a.b()||a.g();var e=t(cy(),a.b());c.Pg(e,b)};d.Cq=function(a,b){var c=a.p();a.b()||a.g();var e=t(this.im(),a.b());e&&(c.S(e),b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e))};d.Iq=function(a,b){var c=a.p();a.b()||a.g();var e=t(ey(),a.b());e&&(c.S(e),R(e,null!=b),null!=b&&(b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)))};
d.Jq=function(a,b){var c=a.p();a.b()||a.g();var e=t(dy(),a.b());e&&(c.S(e),R(e,null!=b),null!=b&&(b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)))};d.Wf=function(a,b){var c=a.p();a.b()||a.g();var e=this.mm(a.b());e&&(c.S(e),b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e))};d.Vt=function(a,b){var c=a.p();a.b()||a.g();var e=t(fy(),a.b());e&&(c.Pg(e,b),R(e,null!=b))};function gy(a,b){xp.call(this,a,b);this.ua=new Jf(1E3);this.kn=20;this.IA=!1}m(gy,xp);W(gy,by);X("qiwi-confirmation-smsform",function(){return new gy});d=gy.prototype;d.ic=function(a){this.Ja=a};d.Ha=function(){return this.Ja};d.Jq=function(a){this.o.Jq(this,a);this.Th=a;di(a,this)};d.fl=function(a){this.o.fl(this,a)};d.Xi=function(a){this.o.Xi(this,a);this.NH=a};d.Cq=function(a){this.o.Cq(this,a);this.he=a;di(a,this)};d.Iq=function(a){this.o.Iq(this,a);this.Jg=a;di(a,this)};
d.Wf=function(a){this.o.Wf(this,a);this.bn(a)};d.bn=function(a){this.La=a;di(a,this)};d.Vt=function(a){this.o.Vt(this,a)};d.n=function(){this.he&&!this.he.j&&this.he.b()&&this.he.n();this.La&&!this.La.j&&this.La.b()&&this.La.n();this.Th&&(this.Th.n(),this.ym(!0));this.Jg&&!this.Jg.j&&this.Jg.b()&&this.Jg.n();this.La&&this.zm(!0);this.lt(!0);hy(this,!0);this.ym(!0);this.ua.start();this.ua.dispatchEvent(Kf);gy.c.n.call(this)};
d.B=function(){this.he&&this.he.B();this.La&&(this.La.B(),this.zm(!1));this.Jg&&this.Jg.B();this.Th&&(this.Th.B(),this.ym(!1));this.lt(!1);hy(this,!1);this.ua.stop();gy.c.B.call(this)};d.I=function(){this.he&&(this.he.O(),delete this.he);this.La&&(this.La.O(),delete this.La);this.Th&&(this.Th.O(),delete this.Th);this.Jg&&(this.Jg.O(),delete this.Jg);gy.c.I.call(this)};d.Ma=function(){return{smsCode:this.he.w()}};d.lt=function(a){var b=this.Q();(a?b.C:b.W).call(b,this.b(),"submit",this.kp)};
d.zm=function(a){var b=this.Q();(a?b.C:b.W).call(b,this.La,"action",this.om)};d.ym=function(a){var b=this.Q();(a?b.C:b.W).call(b,this.Th,"action",this.Vs)};function hy(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.ua,Kf,a.hM)}d.kp=function(a){a.preventDefault();a.stopPropagation();this.om(a)};d.om=function(){this.Z()&&this.dispatchEvent(iy)};d.Vs=function(){this.dispatchEvent(jy);this.kn=20;this.ua.dispatchEvent(Kf);this.ua.start();this.o.Xi(this," ");this.IA=!1};
d.sx=function(){this.dispatchEvent(ky);this.kn=20;this.ua.dispatchEvent(Kf);this.ua.start();this.o.Xi(this,this.NH);this.IA=!0};d.hM=function(){this.kn?(this.IA?this.o.Xi(this,this.NH):this.o.Xi(this," "),this.o.Iq(this,null),this.o.Jq(this,null),this.Vt(ys(ua("SMS resend status"),this.kn)),this.kn-=1):(this.fH?this.o.Iq(this,this.Jg):this.o.Jq(this,this.Th),this.o.Xi(this,null),this.Vt(null),this.ua.stop())};d.Z=function(){return this.he.Z(!0)};
var iy="confirmation-smsform-submit",jy="confirmation-smsform-resend",ky="confirmation-smsform-voice-call";function ly(){}m(ly,lr);h(ly);d=ly.prototype;d.A=function(){return"qiwi-confirmation-code"};d.Ve=function(){return"qiwi-confirmation-code-control"};d.Sc=function(){return"qiwi-confirmation-code-header"};d.km=function(){return"qiwi-confirmation-code-header-title"};d.jm=function(){return"qiwi-confirmation-code-header-required"};d.bk=function(){return"qiwi-confirmation-code-header-info"};d.ti=function(){return"qiwi-confirmation-code-info"};d.qd=function(){return"qiwi-confirmation-code-description"};
d.rd=function(){return"qiwi-confirmation-code-error"};function my(a,b,c){tq.call(this,a,b,c)}m(my,tq);W(my,ly);X("qiwi-confirmation-code",function(){return new my});function ny(a){var b=new Us("");b.Mg(!0);b.Qt(8);var c=new my;c.ya(a.name);c.setTitle(a.title);c.Vb("");c.N(!0);c.an(!1);c.Sh(Ns(a.validator));c.Ka(b);c.ff(500);return c};function oy(){}m(oy,wp);h(oy);d=oy.prototype;d.A=function(){return"qiwi-confirmation-resend"};d.bp=function(){return"qiwi-confirmation-resend-sms"};function py(){return"qiwi-confirmation-resend-phoneTitle"}function qy(){return"qiwi-confirmation-resend-phoneDescription"}d.g=function(a){var b=a.p();a=b.g("div",this.kb(a).join(" "));b.appendChild(a,b.g("div",this.bp()));b.appendChild(a,b.g("div",py()));b.appendChild(a,b.g("div",qy()));return a};d.Zw=function(a){return t(this.bp(),a)};
d.Rh=function(a,b){var c=a.p();a.b()||a.g();var e=this.Zw(a.b());e&&(c.S(e),R(e,null!=b),null!=b&&(b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)))};d.sA=function(a,b){var c=a.p();a.b()||a.g();var e=t(py(),a.b());e&&(c.S(e),R(e,null!=b),null!=b&&(b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)))};d.rA=function(a,b){var c=a.p();a.b()||a.g();var e=t(qy(),a.b());c.Pg(e,b)};function ry(a,b){xp.call(this,a,b)}m(ry,xp);W(ry,oy);X("qiwi-confirmation-resend",function(){return new ry});d=ry.prototype;d.Rh=function(a){this.o.Rh(this,a);this.Yd=a;di(a,this)};d.sA=function(a){this.o.sA(this,a);this.Rf=a;di(a,this)};d.rA=function(a){this.o.rA(this,a)};d.n=function(){this.Yd&&!this.Yd.j&&this.Yd.b()&&this.Yd.n();this.Rf&&!this.Rf.j&&this.Rf.b()&&this.Rf.n();this.Yd&&this.ym(!0);this.Rf&&sy(this,!0);ry.c.n.call(this)};
d.B=function(){this.Yd&&(this.Yd.B(),this.ym(!1));this.Rf&&(this.Rf.B(),sy(this,!1));ry.c.B.call(this)};d.I=function(){this.Yd&&(this.Yd.O(),delete this.Yd);this.Rf&&(this.Rf.O(),delete this.Rf);ry.c.I.call(this)};d.ym=function(a){var b=this.Q();(a?b.C:b.W).call(b,this.Yd,"action",this.Vs)};function sy(a,b){var c=a.Q();(b?c.C:c.W).call(c,a.Rf,"action",a.sx)}d.Vs=function(a){var b=this.getParent();gy.prototype.Vs.call(b,a)};d.sx=function(a){var b=this.getParent();gy.prototype.sx.call(b,a)};function ty(a){var b=new ry;b.Rh(new Nr(a.sms,jw.a()));b.sA(new Nr(a.phone.title,jw.a()));b.rA(a.phone.description);return b};function uy(a){var b=new gy;b.fl(a.header);b.Xi(a.wait);b.Cq(ny(a.code));b.Wf(new Nr(a.submit,cx.a()));b.Iq(ty(a.resend));b.Jq(new Nr(a.resend.sms,jw.a()));return b};function vy(){}m(vy,wp);h(vy);d=vy.prototype;d.A=function(){return"qiwi-confirmation-external"};d.qc=function(){return"qiwi-confirmation-external-title"};d.qd=function(){return"qiwi-confirmation-external-description"};d.wi=function(){return"qiwi-confirmation-external-submit"};
d.g=function(a){var b=a.p();a=b.g("form",{"class":this.kb(a).join(" "),method:"post",enctype:"multipart/form-data"});b.appendChild(a,b.g("div",this.qc()));b.appendChild(a,b.g("div",this.qd()));b.appendChild(a,b.g("div",this.wi()));return a};d.td=function(a){return t(this.qc(),a)};d.Yj=function(a){return t(this.qd(),a)};d.mm=function(a){return t(this.wi(),a)};d.setTitle=function(a,b){var c=a.p();a.b()||a.g();var e=this.td(a.b());c.Pg(e,b)};
d.Vb=function(a,b){var c=a.p();a.b()||a.g();var e=this.Yj(a.b());c.Pg(e,b)};d.Wf=function(a,b){var c=a.p();a.b()||a.g();var e=this.mm(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};function wy(a,b){xp.call(this,a,b)}m(wy,xp);W(wy,vy);X("qiwi-confirmation-external",function(){return new wy});d=wy.prototype;d.setTitle=function(a){this.o.setTitle(this,a);this.He(a)};d.He=function(a){this.Bd=a};d.getTitle=function(){return this.Bd};d.Vb=function(a){this.o.Vb(this,a);this.cl(a)};d.cl=function(a){this.Qj=a};d.Wf=function(a){this.o.Wf(this,a);this.bn(a)};d.bn=function(a){this.La=a;di(a,this)};d.Lq=function(a){this.bB=a};d.getUrl=function(){return this.bB};
d.n=function(){this.La&&!this.La.j&&this.La.b()&&this.La.n();this.zm(!0);wy.c.n.call(this)};d.B=function(){this.La&&this.La.B();wy.c.B.call(this)};d.I=function(){this.La&&(this.La.O(),delete this.La);wy.c.I.call(this)};d.zm=function(a){var b=this.Q();(a?b.C:b.W).call(b,this.La,"action",this.om)};d.om=function(){this.dispatchEvent("submit")};Ye=/[\\\"\x00-\x1f\x7f-\uffff]/g;
function xy(){J.call(this);this.r=tj;this.wa=new K(u.sinap.payment.success);this.TM=new K(u.favorite.reset);this.DM=tj;this.Ys=window["qiwi-main-lib"].identification;N(this,"state-form",this.Mm);N(this,"state-confirm-offer",this.YE);N(this,"state-confirm",this.SQ);this.WJ=N(this,"state-confirm-success",this.TQ);N(this,"state-favorite",this.ZE);this.XJ=N(this,"state-favorite-success",this.VQ);N(this,"state-schedule",this.hR);N(this,"state-pay",this.WQ);this.KB=N(this,"state-pay-success",this.$Q);N(this,
"state-pay-resend-sms",this.$E);this.YJ=N(this,"state-pay-resend-sms-success",this.YQ);N(this,"state-pay-voice-call",this.aF);this.ZJ=N(this,"state-pay-voice-call-success",this.aR);N(this,"state-save",this.bR);this.MB=N(this,"state-save-success",this.eR);this.$J=N(this,"state-save-success-complete",this.fR);N(this,"state-save-resend-sms",this.bF);this.LB=N(this,"state-save-resend-sms-success",this.cR);N(this,"state-save-voice-call",this.cF);N(this,"state-save-voice-call-success",this.gR);N(this,"state-acquiring",
this.QQ);this.VJ=N(this,"state-acquiring-success",this.RQ);this.Gu=N(this,"form",this.zy);this.Hu=N(this,"form-success",this.Ay);this.Dn=N(this,"state",this.uc);this.qJ=N(this,"rates",this.YP);this.rJ=N(this,"rates-success",this.ZP);N(this,"reference",this.UE);this.xJ=N(this,"reference-success",this.gQ);this.wJ=N(this,"reference-error",this.fQ);N(this,"sources",this.VE);this.RJ=N(this,"sources-success",this.LQ);N(this,"identification",this.Kp);this.fr=N(this,"identification-success",this.By);N(this,
"suggest-change",this.dF);this.cK=N(this,"suggest-change-success",this.mR);N(this,"suggest-final",this.eF);N(this,"acquiring",this.NE);this.cI=N(this,"acquiring-success",this.RN);this.rV="[data-container-name\x3dform]";this.qV="[data-container-name\x3dconfirm]";this.Se=v();this.Wb=v();I(this.ja,this.getName(),this.qJ.getName(),1);I(this.ja,this.getName(),this.Gu.getName(),2);this.type="form";this.hf=[];this.Zt=0;this.$t=this.Zd=null;this.Rm={};this.Rm.provider=[];this.Rm.user=[];this.NB=!1;return this}
m(xy,J);h(xy);d=xy.prototype;d.getName=q("sinap-payment-form");d.init=function(a){xy.c.init.call(this,a);this.Se=O(this,this.rV);this.Wb=O(this,this.qV);this.oE=null};d.ob=function(a){return p(a.response,"data","status")};d.pc=function(a){var b=p(a.response,"data","body")||{};return p(b,sb(arguments,1))};function yy(a,b){var c=a.ob(b);return a.pc(b,"message")||u.shell.http.code[c]||c}
d.Qd=function(){var a={},b=this.e.request||{},c=this.e.values.fields||{},e;for(e in b){var f=e.match(/^extra\[\'(.+)\'\]$/);f&&(a[f[1]]=Na(b[e]))}for(e in c)a[e]=Na(c[e]);return Gf(a)};function zy(a){var b=null,c=null,e=a.e.request||{},f=parseInt(e.amountInteger,10)||0,g=parseInt(e.amountFraction,10)||0;if(f||g)b=(100*f+g)/100;if(e.currency)for(var l in u.shell.currency)if(u.shell.currency[l].code==e.currency){c=l;break}if(a=a.e.values.sum)b=a.amount,c=a.currency;return{amount:b,currency:c}}
d.yg=function(){var a=this.e.request||{},a={id:a.transaction,md:a.MD,paRes:a.PaRes,completionURL:a.finish};return zb(a,"")||zb(a,null)?null:a};d.kp=function(a){a.preventDefault();a.stopPropagation();this.uc({state:a.name})};d.OE=function(){F.a().open(dn.getPath());return y()};d.YP=function(){return nh(this,{url:"/crossRates",type:"GET",t:this.rJ})};d.ZP=function(a){if(200!=this.ob(a))return Ay(this,a);this.UR=this.pc(a,"result")||[];return y()};
d.DV=function(a){return this.k.request(!0,{message:a,textClassName:"fa-refresh-text"})};d.rL=function(){return nh(this,{url:"/providers/"+this.e.provider.id+"/form",type:"GET",t:this.Hu})};d.IN=function(a){return this.Ys.loadProviderIdentRequirementForPerson(a.provider.id,a.personId)};d.TK=function(a,b){var c=w();setTimeout(function(){a().then(function(a){c.resolve(a)})},b);return c.promise()};
d.zy=function(a){var b=this.TK,c=u.sinap.refresh.identificationRequest,e=u.sinap.refresh.identificationResult,f=this.DV.bind(this),g=this.IN.bind(this,a),l=this.rL.bind(this,a);if(!a.auth)return l();f("");return this.Ys.loadProviderIdentRequirement(a.provider.id).then(function(a){if(!a.required)return l();f(c);return b(g,0).then(function(){f(e);return b(l,400)})})};
d.Ay=function(a){if(200!=this.ob(a))return Ay(this,a);a=this.pc(a)||{};a.auth=this.e.auth;a.type=this.e.type;a.provider=this.e.provider;a.provider.logo=u.qiwi["static"]+a.provider.logo;a.provider.deadline=p(a,"content","terms","deadline");a.amount=u.sinap.field.amount;a.comment=u.sinap.field.comment;a.source=u.sinap.field.source;a.source.items=wb(u.sinap.field.source.types);a.acquiring=u.sinap.acquiring;a.rates=this.UR;a.controls=u.sinap.state.form.controls[this.type];a.header=p(u,"sinap","provider",
this.e.provider.id,"header");a.footer=p(u,"sinap","provider",this.e.provider.id,"footer");this.form=sx(a);aa.VH=this.form;this.form.xi()&&Zq(this.form.xi())&&(this.Rm.provider=Zq(this.form.xi()).map(function(a){return a.Ha()}));se(this.form,Cq,this.kp,!1,this);se(this.form,bx,this.UE,!1,this);se(this.form,Yq,this.VE,!1,this);se(this.form,$t,this.dF,!1,this);se(this.form,au,this.eF,!1,this);se(this.form,Vq,this.NE,!1,this);if(ia(this.e.values))try{this.e.values=Se(lp(this.e.values))}catch(b){this.e.values=
{}}this.e.state||(this.e.state="form");a=this.Qd();this.form.ww=a;this.form.setValues(a);this.Se.empty();fi(this.form,this.Se.get(0));var c=this.form.lb;(this.Zd=this.e.values.source)&&c.P(this.Zd);this.$t=c.w();null===c.X.Ga()&&c.X.jl(0);var c=this.form.Ra,e=zy(this);e.currency&&c.ra.P(e.currency);e.amount&&c.P(e.amount);c=this.form.bd;this.e.values.comment&&c.P(this.e.values.comment);!a.isEmpty()&&a.get("comment")&&c.P(a.get("comment"));return Fe.a().init(this.Se)};
d.nz=function(){var a=Bf(new of(window.location.href));a.set("provider",this.e.provider.id);a.remove("state");return a.toString()};d.lz=function(){return{provider:this.e.provider.id,state:"confirm"}};d.mz=function(){return{provider:this.e.provider.id,state:"favorite"}};d.oz=function(){return{provider:this.e.provider.id,state:"pay"}};
function By(a,b){if(("confirm"==a.e.state||"favorite"==a.e.state)&&!b.state&&Gd(a.e.values))return a.Mm(b),!1;if("form"==a.e.state||"confirm"==b.state||"favorite"==b.state){if(a.form.Z(!0))return!0;a.Se.show();a.Wb.hide();a.form.refresh();return!1}if(1==a.hf.length&&a.form.Z(!1)||0==a.hf.length&&1==a.Zt&&a.form.Z(!1))return!0;if(!a.e.auth)return Cy(a),!1;if(a.e.expired)return Dy(a),!1;a.Se.show();a.Wb.hide();a.Zd&&(0==a.hf.length?a.form.gf(u.sinap.information.sources[a.Zd].nosource):1<a.hf.length&&
a.form.gf(u.sinap.information.sources[a.Zd].fewsources));a.form.getContainer().setVisible(!1);a.form.bd.setVisible(!1);a.form.Xd(mx(u.sinap.state[(a.e.state||b.state)+"sources"].controls));"form"===a.e.state?(Wq(a.form),dr(a.form)):a.form.Ra.N(!1);a.form.refresh();return!1}d.uc=function(a){return this.form?this.h("state-"+(a.state||this.e.state||"form"),a):y()};
d.Mm=function(a){this.e.state="form";"boolean"==typeof this.e.values.schedule&&(this.e.values.schedule=null);F.a().save(this.r.getPath(),this.nz());this.Se.show();this.Wb.hide();if(!this.form)return y();this.form.gf(null);this.form.getContainer().setVisible(!0);this.form.bd.setVisible(!0);this.form.Xd(mx(u.sinap.state.form.controls[this.type]));"form"==a.state&&(Wq(this.form),dr(this.form));this.form.refresh();return y()};d.JL=function(){this.Wb.empty();this.Wb.hide();this.Se.show()};
d.KL=function(){this.NB=!0;this.Wb.empty();Ey(this)};
d.YE=function(a,b){var c={};c.title=this.e.provider.title?this.e.provider.title:"";c.url=this.e.provider.url?this.e.provider.url:"";c.checkbox=settings.sinap.state.confirmoffer.checkbox;c.controls=settings.sinap.state.confirmoffer.controls;c.offer={text:settings.sinap.state.confirmoffer.offer.text,link:b.link};c.error=settings.sinap.state.confirmoffer.offer.error;var e=new Ax;e.setTitle(c.title);e.Xz(c.url);e.bA(Dx(c.checkbox));e.qA(c.offer);e.Ya(c.error);e.Xd(mx(c.controls));this.dv=e;se(this.dv,
Cx,this.JL,!1,this);se(this.dv,Bx,this.KL.bind(this,a),!1,this);this.Wb.empty();c=this.Wb.get(0);T(this.dv,c)};d.SQ=function(a){if(!By(this,a))return y();this.e.state="confirm";if(!this.e.auth)return Cy(this);if(this.e.expired)return Dy(this);var b=Jq(this.form);return b?nh(this,{version:2,url:"/api/terms/"+b.Ha()+"/validations",cf:!0,type:"POST",data:this.form.Ma(),t:this.WJ}):this.Mm(a)};
d.TQ=function(a){if(200!=this.ob(a))return Ay(this,a);this.Se.hide();this.Wb.show();if(!this.e.auth)return Cy(this);if(this.e.expired)return Dy(this);F.a().save(this.r.getPath(),this.lz());var b=settings.sinap.state.confirmoffer.offersList,c;for(c in b)b.hasOwnProperty(c)&&b[c].currencies.forEach(function(a){this.Rm.user.forEach(function(e){a==e&&(b[c].FV=!0)})}.bind(this));var e=[];for(c in b)b.hasOwnProperty(c)&&b[c].currencies.forEach(function(a){this.Rm.provider.forEach(function(b){a==b&&e.push(c)})}.bind(this));
e=jQuery.unique(e);return 1!==e.length||b[e[0]].FV||this.NB?Ey(this):this.YE(a,b[e[0]])};
function Ey(a){var b={};b.auth=a.e.auth;b.provider=a.e.provider;b.provider.company=null;b.provider.description=null;b.controls=u.sinap.state.confirm.controls;b.values=a.form.Gs();0==a.hf.length&&1==a.Zt&&a.Zd&&(b.information=u.sinap.information.sources[a.Zd].onesource);a.Zd=null;var c=new ux;c.Og(jr(p(b,"provider")));c.gf(p(b,"information"));c.Xd(mx(p(b,"controls")||[]));c.setValues(p(b,"values")||[]);a.confirm=c;se(a.confirm,vx,a.kp,!1,a);a.Wb.empty();b=a.Wb.get(0);T(a.confirm,b);a.Wb=v(a.confirm.b());
a.confirm.refresh();$e(Le.a(),"/funnel/cash_request/confirmation/"+a.e.provider.id);return Fe.a().init(a.Wb)}d.ZE=function(a){if(!By(this,a))return y();this.e.state="favorite";if(!this.e.auth)return Cy(this);if(this.e.expired)return Dy(this);var b=Jq(this.form);return b?nh(this,{version:2,url:"/api/terms/"+b.Ha()+"/validations",cf:!0,type:"POST",data:this.form.Ma(),t:this.XJ}):this.Mm(a)};
d.VQ=function(a){if(200!=this.ob(a))return Ay(this,a);this.Se.hide();this.Wb.show();if(!this.e.auth)return Cy(this);if(this.e.expired)return Dy(this);F.a().save(this.r.getPath(),this.mz());var b={};b.auth=this.e.auth;b.provider=this.e.provider;b.provider.company=null;b.provider.description=null;b.controls=u.sinap.state.favorite.controls[this.type];b.title=u.sinap.state.favorite.title;b.title.value=this.e.values.title;b.values=this.form.Gs();b.schedule=u.sinap.state.favorite.schedule;0==this.hf.length&&
1==this.Zt&&this.Zd&&(b.information=u.sinap.information.sources[this.Zd].onesource);this.Zd=null;a=this.e.values.schedule;this.confirm=ay(b);se(this.confirm,vx,this.kp,!1,this);this.Wb.empty();fi(this.confirm,this.Wb.get(0));this.Wb=v(this.confirm.b());this.confirm.refresh();if(null!=a){if(this.confirm.dm(!0),la(a)&&!Ab(a)){b=this.confirm.Zc;b.Bb.P(null!=a.interval?a.interval:null);var c=bb(a.intervalDays||[],function(a){return parseInt(a,10)});switch(a.interval){case Ux:b.kd.P(c);break;case Vx:b.Xc.P(c)}b.getStartDate().P(null!=
a.startDate?a.startDate:(new Date).toISOString().slice(0,10).split("-").reverse().join("."));b.Ie.P(null!=a.startTime?a.startTime:"12:00:00");b.Ke.P(null!=a.autoAccept?a.autoAccept:!1);a=(null!=a.smsAlarmDay?parseInt(a.smsAlarmDay,10):null)||"";b.Td.P(!!a);b.yd.P(a)}}else this.confirm.dm(!1);return Fe.a().init(this.Wb)};d.hR=function(a){null!=this.e.values.schedule||(this.e.values.schedule=!0);return this.ZE(a)};
d.WQ=function(a){if(!this.form.Z(!0))return this.Mm(a);this.e.state="pay";if(!this.e.auth)return Cy(this);if(this.e.expired)return Dy(this);a=Jq(this.form);if(!a)return y();var b=this.form.Ma();Eb(b.fields,this.e.extra||{});return nh(this,{version:2,url:"/api/terms/"+a.Ha()+"/payments",cf:!0,type:"POST",data:b,t:this.KB})};
d.$Q=function(a){if(200!=this.ob(a))return Ay(this,a);var b=Jq(this.form).Ha(),c=this.form.lb.X.Ga().xa.lb;F.a().save(this.r.getPath(),this.oz());this.Se.hide();this.Wb.show();var e=this.pc(a)||{};this.confirm.gf(null);a=p(e,"transaction","state");var f=!!br(Jq(this.form),this.form.sb),g=this.form.yg().isEnabled()&&this.form.yg().Do&&this.form.yg().yt.w();switch(p(a,"code")){case "AwaitingSMSConfirmation":b=this.confirm.o.zg();Zc(b);this.ac=uy(u.sinap.state.pay.smsform);se(this.ac,iy,this.ZQ,!1,this);
se(this.ac,jy,this.$E,!1,this);se(this.ac,ky,this.aF,!1,this);this.ac.fH=!1;this.ac.ic(p(e,"id"));T(this.ac,b);$e(Le.a(),"/funnel/cash_request/confirmation_sms/"+this.e.provider.id);break;case "AwaitingURLConfirmation":b=this.confirm.o.zg();Zc(b);c=u.sinap.state.pay.external;e=new wy;e.setTitle(c.title);e.Vb(c.description);e.Wf(new Nr(c.submit,cx.a()));this.external=e;se(this.external,"submit",this.XQ,!1,this);this.external.Lq(p(a,"url"));T(this.external,b);break;case "AwaitingAcquiringConfirmation":this.k.request(!0);
(new mi).post({PaReq:p(a,"paReq"),MD:p(a,"md"),TermUrl:location.protocol+"//"+(location.hostname||location.host)+this.DM.getPath()+"?"+Bd({provider:this.e.provider.id,state:"acquiring",transaction:p(e,"transaction","id"),finish:p(a,"confirmationUrl"),term:b,source:c,cashback:f,binded:g})},p(a,"redirectUrl"));break;case "Accepted":return this.Kp({XA:b,source:c,transaction:p(e,"transaction","id"),qr:f,nr:g})}return y()};
d.ZQ=function(){return nh(this,{url:"/payments/"+this.ac.Ha()+"/confirm",cf:!0,type:"POST",data:this.ac.Ma(),t:this.KB})};d.dR=function(){return nh(this,{url:"/favorites/"+this.ac.Ha()+"/confirm",cf:!0,type:"POST",data:this.ac.Ma(),t:this.MB})};d.$E=function(){return nh(this,{url:"/payments/"+this.ac.Ha()+"/resendConfirmationSMS",cf:!0,type:"POST",data:{},t:this.YJ})};d.YQ=function(a){if(200!=this.ob(a))return Ay(this,a)};
d.aF=function(){return nh(this,{url:"/payments/"+this.ac.Ha()+"/resendConfirmationSMS?useVoiceCall\x3dtrue",cf:!0,type:"POST",data:{},t:this.ZJ})};d.aR=function(a){if(200!=this.ob(a))return Ay(this,a)};d.XQ=function(){this.k.request(!0);window.location.href=this.external.getUrl()};d.VD=function(){return"/favorites"};d.UD=function(){return"POST"};
d.bR=function(){if(!this.form.Z(!0)||!this.confirm.Z())return y();if(!this.e.auth)return Cy(this);if(this.e.expired)return Dy(this);var a=Jq(this.form);if(!a)return y();a={terms:a.Ha()};Eb(a,this.form.Ma(),this.confirm.Ma());return nh(this,{url:this.VD(),cf:!0,type:this.UD(),data:a,t:this.MB})};
d.eR=function(a){var b=this.ob(a);if(200!=b&&201!=b)return Ay(this,a);this.Se.hide();this.Wb.show();b=this.pc(a)||{};this.confirm.gf(null);Zc(this.confirm.o.td());Zc(t(Fx(),void 0));a=p(b,"id")||p(b,"paymentId");switch(p(b,"scheduleStatus")){case "AwaitingConfirmation":b=this.confirm.o.zg();Zc(b);this.ac=uy(u.sinap.state.save.smsform);se(this.ac,iy,this.dR,!1,this);se(this.ac,jy,this.bF,!1,this);se(this.ac,ky,this.cF,!1,this);this.ac.fH=!1;this.ac.ic(a);T(this.ac,b);break;default:return this.G({link:this.TM,
bg:this.$J})}return y()};d.fR=function(){this.k.request(!0);window.location.href=yk.getPath();return y()};d.bF=function(){return nh(this,{url:"/favorites/"+this.ac.Ha()+"/resendConfirmationSMS",cf:!0,type:"POST",data:{},t:this.LB})};d.cR=function(a){if(200!=this.ob(a))return Ay(this,a)};d.cF=function(){return nh(this,{url:"/favorites/"+this.ac.Ha()+"/resendConfirmationSMS?useVoiceCall\x3dtrue",cf:!0,type:"POST",data:{},t:this.LB})};d.gR=function(a){if(200!=this.ob(a))return Ay(this,a)};
d.QQ=function(a){if(!this.e.auth)return Cy(this);if(this.e.expired)return Dy(this);var b=this.yg();return b?nh(this,{version:2,url:"/api/terms/confirmations",type:"POST",data:b,t:this.VJ}):this.Mm(a)};d.RQ=function(a){if(200!=this.ob(a)||"Accepted"!=this.pc(a,"state","code"))return Ay(this,a);a=this.e.request||{};return this.Kp({XA:a.term,source:a.source,transaction:a.transaction,qr:a.cashback,nr:a.binded})};
d.Kp=function(a){return a.XA&&a.source?nh(this,{version:2,url:"/api/terms/"+a.XA+"/sources/"+a.source+"/identification",cf:!0,type:"GET",t:this.fr,transaction:a.transaction,qr:a.qr,nr:a.nr}):this.Ik(a)};d.By=function(a){if(200!=this.ob(a))return Ay(this,a);a.iE="Required"===this.pc(a,"status");$e(Le.a(),"/funnel/cash_request/success/"+(a.iE?"and_identification":"without_identification")+"/"+this.e.provider.id);return this.Ik(a)};
d.Ik=function(a){return this.F({link:this.wa,data:{provider:this.e.provider.id,transaction:a.transaction,cashback:a.qr,binded:a.nr,identification:a.iE}})};d.UE=function(a){var b=a.target;"form"!=this.e.state&&this.k.request(!0);b.o.Ka(b,b.X);nh(this,{url:"/refs/"+a.target.Ha()+"/containers",type:"POST",data:b.Qd(),target:b,request:v(b.b()),t:this.xJ,da:this.wJ})};
d.gQ=function(a){"form"!=this.e.state&&this.k.request(!1);var b=a.target;if(b.ni)return y();if(200!=this.ob(a)){if("form"!=this.e.state)return Ay(this,a);b.Yc();b.Ya(yy(this,a))}else{var c=this.pc(a)||{};b.o.Ka(b,null);b.Vf(!1);b.cn(Vw(p(c,"terms")||null));b.hc(fx(p(c,"elements")||[]));b.Ob(!0);b.Ya(null);b.Kg(!0)}return this.uc(a)};d.fQ=function(a){if("form"!=this.e.state)return this.k.request(!1),this.Na(a);var b=a.target;if(b.ni)return y();b.Yc();b.Ya(a.response.message);return this.uc(a)};
d.dF=function(a){a=a.target;a.ia(!1);a.getParent().Ob(!1);var b=a.Fs||{};ub(b,function(a,b,f){f[b]=""});this.form.setValues(Gf(b));b=a.w();return Aa(b)?y():nh(this,{url:"/suggestions/"+a.lb,type:"GET",data:{query:b},query:b,target:a,request:v(),t:this.cK})};
d.mR=function(a){if(200!=this.ob(a))return Ay(this,a);var b=a.target,c=b.Oa,e=null,f=this.pc(a,"result")||{},g=new Vr(u.sinap.suggest,{},null,ws.a());g.N(!1);c.ee(g,!0);for(var l=0;l<f.length;l+=1)g=new Vr(f[l].value,f[l],null,ws.a()),c.ee(g,!0),a.query==f[l].value&&f[l].isFinal&&(g.dispatchEvent("action"),e=g);b.ia(f.length&&!e);return this.uc(a)};d.eF=function(a){var b=a.target;b.ia(!1);b.getParent().Ob(!0);this.form.setValues(Gf(b.Fs||{}));return this.uc(a)};
d.NE=function(){var a=this.form.yg();a.kl(!1);if(!a.isEnabled())return this.pE=this.qE=this.nE=this.mE=null,y();var b=this.form.lb.X.Ga().xa,c=!0;b instanceof Sq&&(c=a.wb.Z(!1));if(!c)return y();c=this.form.Ra.ra.w();if(!c)return y();var e=this.form.Ra.w()||0,f;b instanceof Sq?(f="Pan",b=a.wb.w().replace(/\s/g,"")):(f="Link",b=b.Ha());if(this.mE==f&&this.nE==b&&this.qE==c&&this.pE==e)return y();a.Vf(!1);a.Ob(!1);a.Ya(null);this.mE=f;this.nE=b;this.qE=c;this.pE=e;return nh(this,{version:2,url:"/api/terms/"+
Jq(this.form).Ha()+"/cardDetails",type:"POST",data:{cardId:{type:f,value:b},sum:{currency:c,amount:e}},request:v(),t:this.cI})};
d.RN=function(a){var b=this.form.lb.X.Ga().xa;if(!b)return y();b.$u=!1;b.$c(null);b.Ed=[];b.Oh(null);this.form.xw();var c=this.pc(a)||{},e=this.form.yg();if(200!=this.ob(a))return e.Ob(!1),e.Ya(yy(this,a)),this.uc(a);e.Ob(!0);e.Ya(null);mt(b,c.terms);c.minSum&&(c.terms||b.$c(Ss(c.minSum.currency)),b.Oh(jt({min:c.minSum.amount,max:null,currency:c.minSum.currency})));c.linked&&e.kl(!0);this.form.xw();return this.uc(a)};
d.VE=function(a){if(!this.e.auth)return this.uc(a);var b=Jq(this.form);if(!b)return this.uc(a);a=b.Ha();if(this.oE==a)return y();this.oE=a;this.form.lb.Ob(!1);"form"!=this.e.state&&this.k.request(!0);nh(this,{version:2,url:"/api/terms/"+a+"/sources",type:"GET",request:v(this.form.lb.b()),t:this.RJ})};
d.LQ=function(a){"form"!=this.e.state&&this.k.request(!1);if(200!=this.ob(a))return this.form.lb.Ob(null),this.uc(a);var b=this.pc(a)||{},c={};Eb(c,u.sinap.field.source);c.items=p(b,"result")||[];this.Zt=c.items.length;this.hf=[];var e=null;this.Rm.user=b.result.map(function(a){if(a.accountId)return a.accountId}).filter(function(a){return!!a});for(b=0;b<c.items.length;b+=1){var f=kt(c.items[b]);null!=this.Zd&&ya(f.$j(),this.Zd)&&mb(this.hf,f.w());f.QK&&(e=f.w())}mb(c.items,u.sinap.field.source.types.terminal);
f=qt(c);f.Ob(null);this.form.Wi(f);f.P(this.$t);0==this.hf.length||-1!=$a(this.hf,this.$t)?null!=e&&f.P(e):null!=e&&-1!=this.hf.indexOf(e)?f.P(e):f.P(this.hf[0]);null===f.X.Ga()&&f.X.jl(0);this.$t=f.w();return this.uc(a)};function Cy(a){var b={};Eb(b,a.form.Ma(),a.e.values);qi.a().empty().set({values:ip(Te(b))});return a.F({url:Vj.Be,path:tj.getPath(),query:{provider:a.e.provider.id,state:a.e.state}})}function Dy(a){return a.F({link:dn})}
function Ay(a,b){if(401==a.ob(b))return Cy(a);$e(Le.a(),"/funnel/cash_request/error/"+a.e.provider.id);var c=w(),e=a.pc(b),f=v("\x3cdiv\x3e");f.html(yy(a,b)).dialog({modal:!0,resizable:!1,draggable:!1,closeEnabled:!1,closeOnEscape:!1,title:u.shell.dialog.title.error,close:z(function(){switch(p(e,"code")){case "QWPRC-903":break;default:this.uc({state:"form"})}c.resolve();f.remove()},a),buttons:[{text:u.shell.dialog.button.close,click:function(){f.dialog("close")}}]});return c.promise()}E(D.a(),xy);function Fy(){xy.call(this);return this}m(Fy,xy);h(Fy);d=Fy.prototype;d.nz=function(){return{payment:this.e.payment}};d.lz=function(){return{payment:this.e.payment,state:"confirm"}};d.mz=function(){return{payment:this.e.payment,state:"favorite"}};d.oz=function(){return{payment:this.e.payment,state:"pay"}};d.VD=function(){return"/favorites/"+this.e.payment};d.UD=function(){return"PUT"};function Gy(){Fy.call(this);this.r=tk;this.type="edit";return this}m(Gy,Fy);h(Gy);Gy.prototype.getName=q("sinap-favorite-edit-form");E(D.a(),Gy);function Hy(){Fy.call(this);this.r=zk;this.type="open";return this}m(Hy,Fy);h(Hy);Hy.prototype.getName=q("sinap-favorite-open-form");E(D.a(),Hy);function Iy(){xy.call(this);this.r=Bk;this.r.setPath(F.a().getPath());this.type="save";return this}m(Iy,xy);h(Iy);d=Iy.prototype;d.getName=q("sinap-favorite-save-form");d.nz=function(){return{provider:this.e.provider.id,transaction:this.e.transaction}};d.lz=function(){return{provider:this.e.provider.id,transaction:this.e.transaction,state:"confirm"}};d.mz=function(){return{provider:this.e.provider.id,transaction:this.e.transaction,state:"favorite"}};
d.oz=function(){return{provider:this.e.provider.id,transaction:this.e.transaction,state:"pay"}};E(D.a(),Iy);function Jy(){Q.call(this);this.r=Ky;this.zh=Ly;this.tz="[data-container-name\x3dhelp]";this.Il=v();this.KI=N(this,"type",this.TO);return this}m(Jy,Q);h(Jy);Jy.prototype.getName=q("support-check");Jy.prototype.init=function(a){Jy.c.init.call(this,a);this.Il=O(this,this.tz);this.L.bindspace(this,"focus",function(a){this.h(this.KI,{input:$(a.currentTarget)})})};Jy.prototype.TO=function(a){this.Il.removeClass().addClass(a.input.data("name"))};
Jy.prototype.Cb=function(){this.pa.empty().hide();return this.l.size()&&!this.l.valid()?y():this.F({link:this.zh,data:this.l.formToArray()})};E(D.a(),Jy);var Ky=new G(u.support.check.main),Ly=new G(u.support.check.result);function My(){J.call(this);return this}m(My,J);h(My);My.prototype.getName=q("support-check-success");My.prototype.Db=function(a){this.ca(a);return My.c.Db.call(this,a)};E(D.a(),My);var Z={};function Ny(){}h(Ny);d=Ny.prototype;d.A=function(){return"qiwi-component"};d.kb=function(){return[this.A()]};d.g=function(a){return a.p().g("div",this.kb(a).join(" "))};d.Va=function(a){return a};d.Gb=function(){return!0};d.ea=function(a,b){b.id&&a.ic(b.id);return b};d.Dg=function(a){a=a.b();Rh(a,!0,Wb);s&&(a.hideFocus=!0)};function Oy(a,b){ai.call(this,b);this.o=a||sp(this.constructor)}m(Oy,ai);W(Oy,Ny);X("qiwi-component",function(){return new Oy});Oy.prototype.o=null;Oy.prototype.g=function(){this.aa=this.o.g(this)};Z.forms={};function Py(){this.Gn=void 0}m(Py,Np);h(Py);Py.prototype.A=function(){return"qiwi-forms-container"};Py.prototype.Dg=function(a){a=a.b();s&&(a.hideFocus=!0);var b=this.Zb();b&&zp(a,b)};function Qy(a,b){hq.call(this,null,b,a)}m(Qy,hq);W(Qy,Py);X("qiwi-forms-container",function(){return new Qy});d=Qy.prototype;d.So=!1;d.Tu=!1;d.cx=function(a){var b=lq(this,a.target);if(b)switch(a.type){case "dblclick":b.Qs(a)}};d.dd=da;d.addElement=function(a){this.ee(a,!0)};d.sd=function(a){return jb(this.Rc(),k(this.Qw,this,a))};
d.Rc=function(){for(var a=[],b=0;b<this.va.length;b+=1){var c=this.va[b];c instanceof Ry?mb(a,c):c instanceof Sy&&c.Z()&&(c=c.getContainer().Rc(),sa(rb,a,void 0,0).apply(null,c))}return a};d.Qw=function(a,b){return b.getName()==a||b.getName()=="extra['"+a+"']"};d.setValues=function(a){for(var b=0;b<this.va.length;b+=1){var c=this.va[b];if(c instanceof Ry){var e=a.get(c.getName());null!=e&&c.P(e)}}for(b=0;b<this.va.length;b+=1)c=this.va[b],c instanceof Sy&&c.setValues(a)};function Ty(){}m(Ty,Ny);h(Ty);d=Ty.prototype;d.A=function(){return"qiwi-forms-form"};d.Qc=function(){return"qiwi-forms-form-container"};d.wi=function(){return"qiwi-forms-form-submit"};d.g=function(a){var b=a.p();a=b.g("form",{"class":this.kb(a).join(" "),method:"post",enctype:"multipart/form-data",autocomplete:"off"});b.appendChild(a,b.g("div",this.Qc()));b.appendChild(a,b.g("div",this.wi()));return a};
d.ea=function(a,b){var c=this.pd(b);c&&a.Sf(cq(ad(c)));(c=this.mm(b))&&a.bn(cq(ad(c)));return Ty.c.ea.call(this,a,b)};d.Gb=function(a){return"FORM"==a.tagName};d.pd=function(a){return t(this.Qc(),a)};d.mm=function(a){return t(this.wi(),a)};d.hc=function(a,b){var c=a.p();a.b()||a.g();var e=this.pd(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.Wf=function(a,b){var c=a.p();a.b()||a.g();var e=this.mm(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};function Uy(a,b){Oy.call(this,a,b)}m(Uy,Oy);W(Uy,Ty);X("qiwi-forms-form",function(){return new Uy});d=Uy.prototype;d.hc=function(a){this.o.hc(this,a);this.Sf(a)};d.Sf=function(a){this.U=a;di(a,this)};d.Wf=function(a){this.o.Wf(this,a);this.bn(a)};d.bn=function(a){this.La=a;di(a,this)};d.sd=function(a){return this.U.sd(a)};d.Rc=function(){return this.U.Rc()};d.setValues=function(a){this.U.setValues(a)};
d.n=function(){this.U&&!this.U.j&&this.U.b()&&this.U.n();this.La&&!this.La.j&&this.La.b()&&this.La.n();this.zm(!0);Uy.c.n.call(this)};d.B=function(){this.U&&this.U.B();this.La&&this.La.B();Uy.c.B.call(this)};d.I=function(){this.U&&(this.U.O(),delete this.U);this.La&&(this.La.O(),delete this.La);Uy.c.I.call(this)};d.zm=function(a){var b=this.Q();(a?b.C:b.W).call(b,this.La,"action",this.om)};d.om=function(){var a=!0;n(this.Rc(),function(b){a&=b.Z()},this);a&&this.dispatchEvent("submit")};function Vy(){Hf.call(this)}m(Vy,Hf);Vy.prototype.Q=function(){this.Wa||(this.Wa=new Mf(this));return this.Wa};Vy.prototype.I=function(){this.Wa&&(this.Wa.O(),delete this.Wa);Vy.c.I.call(this)};Vy.prototype.success=function(){this.dispatchEvent(Wy)};Vy.prototype.Nd=function(){this.dispatchEvent(Xy)};var Wy="success",Xy="failure";function Yy(){Hf.call(this)}m(Yy,Vy);Yy.prototype.Sh=function(a){this.Xq=a};Yy.prototype.check=function(){return this.Xq.check(this.ub)};Yy.prototype.lt=function(a,b){this.Q().C(a,b,this.ML)};Yy.prototype.ML=function(a){this.ub=a.value;this.check()?this.success():this.Nd()};function Zy(){Hf.call(this)}m(Zy,Yy);Zy.prototype.el=function(a){this.Jf=a};Zy.prototype.sd=function(){return this.Jf};function $y(){}$y.prototype.Ob=function(a){this.eb=a};$y.prototype.Z=function(){return this.eb};$y.prototype.Mc=function(a){this.gc=a};$y.prototype.Od=function(){return this.gc};function az(){}m(az,$y);az.prototype.check=function(){return this.eb=!0};function bz(){}m(bz,$y);bz.prototype.gc=ua("Please enter a valid value");bz.prototype.Ph=function(a){this.Ih=a};bz.prototype.check=function(a){return this.eb=a==this.Ih};function cz(){}m(cz,$y);cz.prototype.gc=ua("Please enter a value");cz.prototype.check=function(a){return this.eb=!Ba(a)};function dz(){}m(dz,$y);dz.prototype.gc=ua("Please enter a value");dz.prototype.check=function(a){return this.eb=Ba(a)};function ez(){}m(ez,$y);ez.prototype.gc=ua("Please enter a valid value");ez.prototype.Ph=function(a){this.Ih=a};ez.prototype.check=function(a){return this.eb=this.Ih.test(null!=a?a:"")};function fz(){}m(fz,$y);d=fz.prototype;d.al=function(a){this.va=a};d.Od=function(){return this.gc||jb(this.va,k(this.nk,this)).Od()};d.check=function(a){return this.eb=gb(this.va,k(this.sj,this,a),this)};d.sj=function(a,b){return b.check(a)};d.nk=function(a){return!a.Z()};function gz(){}m(gz,$y);d=gz.prototype;d.al=function(a){this.va=a};d.Od=function(){return this.gc||kb(this.va,k(this.nk,this)).Od()};d.check=function(a){return this.eb=db(this.va,k(this.sj,this,a),this)};d.sj=function(a,b){return b.check(a)};d.nk=function(a){return!a.Z()};function hz(a){return iz[a.type](a)}function jz(){return new az}
var iz={successful:jz,equality:function(a){var b=new bz;b.Ph(a.value);a.message&&b.Mc(a.message);return b},required:function(a){var b=new cz;a.message&&b.Mc(a.message);return b},optional:function(a){var b=new dz;a.message&&b.Mc(a.message);return b},regexp:function(a){var b=new ez;b.Ph(new RegExp(a.pattern));a.message&&b.Mc(a.message);return b},and:function(a){var b=new fz;b.al(bb(a.children,hz));a.message&&b.Mc(a.message);return b},or:function(a){var b=new gz;b.al(bb(a.children,hz));a.message&&b.Mc(a.message);
return b}};function kz(a){return lz[a.type](a)}var lz={validating:function(a){var b=new Zy;b.Sh(hz(a.validator));b.el(a.field);return b}};function mz(a,b,c){Y.call(this,a,b,c)}m(mz,Y);mz.prototype.Zj=function(){for(var a=this.getParent();!(a instanceof Uy);)a=a.getParent();return a};function nz(){}m(nz,Tp);h(nz);d=nz.prototype;d.A=function(){return"qiwi-forms-field"};d.Ve=function(){return"qiwi-forms-field-control"};d.qc=function(){return"qiwi-forms-field-title"};d.qd=function(){return"qiwi-forms-field-description"};d.rd=function(){return"qiwi-forms-field-error"};
d.g=function(a){var b=nz.c.g.call(this,a),c=a.p(),e=a.getTitle(),f=c.g("div",[this.qc(),a.XR?this.qc()+"-required":""],e);c.appendChild(b,f);R(f,!Ba(e));c.appendChild(b,f);c.appendChild(b,c.g("div",this.Ve()));c.appendChild(b,c.g("div",this.qd(),a.Qj));a=a.getError();e=c.g("div",this.rd(),a);c.appendChild(b,e);R(e,!Ba(a));return b};d.ea=function(a,b){a.Dq(cq(ad(this.Xj(b))));a.He(md(this.td(b)));return nz.c.ea.call(this,a,b)};d.Xj=function(a){return t(this.Ve(),a)};
d.td=function(a){return t(this.qc(),a)};d.Yj=function(a){return t(this.qd(),a)};d.rh=function(a){return t(this.rd(),a)};d.Ka=function(a,b){var c=a.p();a.b()||a.g();var e=this.Xj(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.setTitle=function(a,b){if(a){var c=this.td(a);c&&(R(c,!Ba(b)),Zc(c),fd(c,b))}};d.Vb=function(a,b){if(a){var c=this.Yj(a);c&&(Zc(c),fd(c,b))}};
d.Ya=function(a,b){if(a){var c=this.rh(a);if(c){R(c,!Ba(b));var e=this.td(a);Ah(c,"top",("none"!=e.style.display?Nh(e).height:0)+"px");Zc(c);fd(c,b)}}};d.St=function(a){a&&(a=this.td(a))&&op(a,this.qc()+"-required")};function Ry(a,b,c){Y.call(this,a,b,c);this.ff(0)}m(Ry,mz);W(Ry,nz);X("qiwi-forms-field",function(){return new Ry});d=Ry.prototype;d.Ka=function(a){this.o.Ka(this,a);this.Dq(a)};d.Dq=function(a){this.X=a;di(a,this);a.N(this.isEnabled());this.j&&this.Fg(!0)};d.setTitle=function(a){this.o.setTitle(this.b(),a);this.He(a)};d.He=function(a){this.Bd=a};d.getTitle=function(){return this.Bd};d.Vb=function(a){this.o.Vb(this.b(),a);this.cl(a)};d.cl=function(a){this.Qj=a};
d.Ya=function(a){this.o.Ya(this.b(),a);this.dl(a)};d.dl=function(a){this.we=a};d.getError=function(){return this.we};d.ya=function(a){this.wc=a};d.getName=function(){return this.wc};d.St=function(a){this.o.St(this.b(),a);this.XR=a};d.N=function(a){Ry.c.N.call(this,a);this.X&&this.X.N(a)};d.Sh=function(a){this.Xq=a};d.ff=function(a){this.aj=new Iq(this.Rj,a,this)};d.n=function(){Ry.c.n.call(this);this.X&&(this.X.j||this.X.n(),this.Fg(!0))};d.B=function(){Ry.c.B.call(this);this.X&&(this.X.B(),this.Fg(!1))};
d.I=function(){Ry.c.I.call(this);this.X&&(this.X.O(),delete this.X)};d.Fg=function(a){var b=this.Q(),c=this.X;a=a?b.C:b.W;a.call(b,c,"change",this.Bi);a.call(b,c,"action",this.Bi)};d.aE=function(){this.o.Pa(this,32,!0)};d.$D=function(){this.o.Pa(this,32,!1)};d.Bi=function(){this.aj.stop();this.aj.start()};d.Rj=function(){var a=this.w();if(this.ub!=a){this.ub=a;var b=new be(oz,this);b.value=a;this.dispatchEvent(b);this.Z()}};d.P=function(a){this.X.P(a);var b=new be(oz,this);b.value=a;this.dispatchEvent(b)};
d.w=function(){return this.X.w()};d.Z=function(){var a=this.Xq,b=a.check(this.w());this.Ya(b?null:a.Od());return b};var oz="change";function pz(){}m(pz,Tp);h(pz);pz.prototype.A=function(){return"qiwi-forms-text"};function qz(a,b,c){Y.call(this,a,b,c)}m(qz,mz);W(qz,pz);X("qiwi-forms-text",function(){return new qz});qz.prototype.Ge=function(a){this.setContent(Xc(a))};qz.prototype.Cg=function(){return this.getContent()};function rz(){}m(rz,Tp);h(rz);d=rz.prototype;d.A=function(){return"qiwi-forms-dependency"};d.Qc=function(){return"qiwi-forms-dependency-container"};d.g=function(a){var b=rz.c.g.call(this,a);a=a.p();a.appendChild(b,a.g("div",this.Qc()));return b};d.ea=function(a,b){var c=this.pd(b);c&&a.Sf(cq(ad(c)));return rz.c.ea.call(this,a,b)};d.pd=function(a){return t(this.Qc(),a)};d.hc=function(a,b){var c=a.p();a.b()||a.g();var e=this.pd(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};function Sy(a,b,c){Y.call(this,a,c,b)}m(Sy,mz);W(Sy,rz);X("qiwi-forms-dependency",function(){return new Sy});d=Sy.prototype;d.Z=function(){return this.Ee.check()};d.hc=function(a){this.Sf(a)};d.Sf=function(a){this.U=a;di(a,this)};d.getContainer=function(){return this.U};d.Hq=function(a){this.Ee=a};d.setValues=function(a){this.U.setValues(a)};d.n=function(){if(this.Ee){if(this.Ee instanceof Zy){var a=this.Ee,b=this.Zj().sd(a.sd());a.lt(b,oz)}sz(this,!0)}Sy.c.n.call(this)};
d.B=function(){this.U&&this.U.B();this.Ee&&sz(this,!1);Sy.c.B.call(this)};d.I=function(){this.U&&(this.U.O(),delete this.U);this.Ee&&(this.Ee.O(),delete this.Ee);Sy.c.I.call(this)};function sz(a,b){var c=a.Q(),e=a.Ee,f=b?c.C:c.W;f.call(c,e,Wy,a.cM);f.call(c,e,Xy,a.bM)}d.cM=function(){this.o.hc(this,this.U)};d.bM=function(){Zc(this.o.pd(this.b()))};function tz(){}m(tz,Tp);h(tz);d=tz.prototype;d.A=function(){return"qiwi-textinput"};d.Zb=function(){};d.g=function(a){var b=a.p().g("input",{type:"text",name:a.getName(),"class":this.kb(a).join(" "),disabled:!a.isEnabled()},a.getContent()||"");a.Dp&&jQuery(b).mask({mask:a.Dp});return b};d.ea=function(a,b){tz.c.ea.call(this,a,b);a.Af=b.value;b.setAttribute("name",a.getName());return b};d.Gb=function(a){return"INPUT"==a.tagName&&(!ba(a.type)||"TEXT"==a.type.toUpperCase())};d.Uf=da;d.Rd=function(a){return a.isEnabled()};
d.fd=da;d.Pa=function(a,b,c){tz.c.Pa.call(this,a,b,c);var e=a.b();if(e)switch(b){case 1:ld(e,!c);c?e.setAttribute("readonly","readonly"):e.removeAttribute("readonly");break;case 32:!aq(a,4)&&c&&(a=e.value,jQuery(e).data("ui-mask")&&(a=jQuery(e).mask("value")),Lf(k(this.setContent,this,e,a),0))}};d.Cd=da;d.setContent=function(a,b){a&&(jQuery(a).data("ui-mask")?(jQuery(a).mask("value",b),jQuery(a).is(":focus")&&jQuery(a).focus()):a.value=b)};
d.getContent=function(a){var b=null;a&&(b=a.value,jQuery(a).data("ui-mask")&&(b=jQuery(a).mask("masked")));return b};d.ya=function(a,b){var c=a.b();c&&c.setAttribute("name",b)};d.getName=function(a){return(a=a.b())?a.getAttribute("name"):null};d.Ng=function(a,b){var c=a.b();c&&b&&jQuery(c).mask({mask:b})};function uz(a,b,c){Y.call(this,a,b,c)}m(uz,Y);W(uz,tz);X("qiwi-textinput",function(){return new uz});d=uz.prototype;d.ge=!0;d.Sw=function(){this.ye||(this.ye=new Jt(this.b()));return this.ye};d.Gc=function(a){uz.c.Gc.call(this,a);ba(a.disabled)?this.N(!a.disabled):a.disabled=!this.isEnabled()};d.getContent=function(){return this.o.getContent(this.b())};d.w=function(){return this.getContent()};d.P=function(a){this.getContent()!=a&&(this.setContent(a),this.dispatchEvent("change"))};
d.ya=function(a){this.wc=a;this.o.ya(this,a)};d.getName=function(){return this.wc};d.Ng=function(a){this.Dp=a;this.o.Ng(this,a)};d.n=function(){uz.c.n.call(this);this.Q().C(this.Sw(),"input",this.nx)};d.B=function(){uz.c.B.call(this);this.ye&&this.ye.detach()};d.I=function(){uz.c.I.call(this);this.ye&&(this.ye.O(),delete this.ye)};d.cd=function(a){return!this.zd(a)};d.nx=function(){this.ub=this.w()};function vz(){}m(vz,Tp);h(vz);d=vz.prototype;d.A=function(){return"qiwi-phoneinput"};d.yi=function(){return"qiwi-phoneinput-text"};d.Zb=function(){};d.g=function(a){var b=vz.c.g.call(this,a);a=a.p();a.appendChild(b,a.g("div","qiwi-phoneinput-flag"));a.appendChild(b,a.g("div",this.yi()));return b};d.dp=function(a){return t(this.yi(),a)};d.Rw=function(a){return t("qiwi-phoneinput-flag",a)};
d.Ge=function(a,b){var c=a.p();a.b()||a.g();var e=this.dp(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};d.$m=function(a,b){var c=a.p();a.b()||a.g();var e=this.Rw(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e);ld(b.b(),!1)};function wz(a,b,c){Y.call(this,a,b,c)}m(wz,Y);W(wz,vz);X("qiwi-phoneinput",function(){return new wz});d=wz.prototype;d.ge=!0;d.N=function(a){wz.c.N.call(this,a);this.za&&this.za.N(a);this.la&&this.la.N(a)};d.$w=function(){this.Yf||(this.Yf=new Jt(this.za.b()));return this.Yf};d.ax=function(){this.Zf||(this.Zf=new Hp(this.za.b()));return this.Zf};d.Ge=function(a){this.o.Ge(this,a);this.EA(a)};d.EA=function(a){this.za=a};d.Cg=function(){return this.za};d.$m=function(a){this.o.$m(this,a);this.fA(a)};
d.fA=function(a){this.la=a};d.P=function(a){this.Cg().P(a)};d.w=function(){return this.Cg().w()};d.n=function(){wz.c.n.call(this);this.za&&(this.za.j||this.za.n(),this.Cp(!0),this.lk(null));this.la&&(this.la.j||this.la.n(),this.Bp(!0))};d.B=function(){wz.c.B.call(this);this.za&&(this.za.B(),this.Cp(!1));this.la&&(this.la.B(),this.Bp(!1))};
d.I=function(){wz.c.I.call(this);this.za&&(this.za.O(),delete this.za);this.la&&(this.la.O(),delete this.la);this.Yf&&(this.Yf.O(),delete this.Yf);this.Zf&&(this.Zf.O(),delete this.Zf)};d.Cp=function(a){var b=this.Q();a=a?b.C:b.W;a.call(b,this.Cg(),"change",this.lk);a.call(b,this.$w(),"input",this.lk);a.call(b,this.ax(),"key",this.qx)};d.Bp=function(a){var b=this.Q();a=a?b.C:b.W;a.call(b,this.la,"action",this.jx);a.call(b,this.la,"aftershow",this.lx);a.call(b,this.la,"afterhide",this.kx)};
d.qx=function(a){var b=a.keyCode;if(this.la&&this.la.Da()&&this.la.Da().Ia())return a=this.la.Da().xe(a),27==b||9==b?(this.la.ia(!1),!0):a;if(40==b||38==b)return this.la.ia(!0,a),!0};d.lk=function(a){var b=this.w().replace(/[^\d]/g,"");b&&(b="+"+b);var c=this.la.gk(b);if(null==c)return this.za.P(this.ub||""),a.stopPropagation(),a.preventDefault(),!1;b?this.la.Nb(c):this.la.Nb(null);(a=c.xa.maxLength)&&(b=Ra(b,a+1,b.length-a));this.za.P(b);this.ub=b;this.ok=c;this.dispatchEvent("action")};
d.lx=function(){var a=this.p(),b=this.la.Da().b();Mh(b,Nh(this.za.b()).width);var c=td(a).y,a=Pc(Sc(a.$a)||window).height,e=Jh(b).y,f=Nh(b).height;e+f>c+a&&Lh(b,c+a-e-30)};d.kx=function(){var a=this.la.Da().b();Ah(a,"width","auto");Ah(a,"height","auto")};d.jx=function(){var a=this.la.Ga(),b=this.za.w();null!=this.ok&&(b=Ra(b,0,this.ok.xa.prefix.length));b=a.xa.prefix+b;this.za.P(b);this.ub=b;this.ok=a};function xz(){}m(xz,Tp);h(xz);d=xz.prototype;d.A=function(){return"qiwi-date-input"};d.zi=function(){return"qiwi-date-input-text-input"};d.Zb=function(){};d.g=function(a){var b=xz.c.g.call(this,a),c=a.p();c.appendChild(b,c.g("div",this.zi()));a.Fa.g();return b};d.ep=function(a){return t(this.zi(),a)};d.Xf=function(a,b){var c=a.p();a.b()||a.g();var e=this.ep(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};function yz(a,b,c){Y.call(this,a,b,c)}m(yz,Y);W(yz,xz);X("qiwi-date-input",function(){return new yz});d=yz.prototype;d.ge=!0;d.jf=103;d.Eq=function(a){this.Co=a};d.Fq=function(a){this.Pj=a};d.N=function(a){yz.c.N.call(this,a);this.oa&&this.oa.N(a)};d.fp=function(){this.Zi||(this.Zi=new Jt(this.oa.b()));return this.Zi};d.gp=function(){this.$i||(this.$i=new Hp(this.oa.b()));return this.$i};d.Xf=function(a){this.o.Xf(this,a);this.Kq(a)};d.Kq=function(a){this.oa=a};d.tA=function(a){this.uA(a)};
d.uA=function(a){this.Fa=a};d.Ag=function(){return this.Fa.Ag()};d.P=function(a){this.oa.P(a);this.dispatchEvent("action")};d.w=function(){return null!=this.oa?this.oa.w():null};d.n=function(){yz.c.n.call(this);this.oa&&(this.oa.j||this.oa.n(),this.Am(!0));if(this.Fa){if(!this.Fa.j){sd(this.p()).appendChild(this.Fa.b());this.Fa.n();ld(this.Fa.b(),!1);var a=ud("[tabindex]",this.Fa.b());if(a)for(var b=0;b<a.length;b+=1)ld(a[b],!1)}this.by(!0)}};
d.Am=function(a){var b=this.Q();a=a?b.C:b.W;a.call(b,this.oa.b(),"focus",this.mp);a.call(b,this.oa.b(),"blur",this.lp);a.call(b,this.fp(),"input",this.np);a.call(b,this.gp(),"key",this.op)};d.by=function(a){var b=this.Q();a=a?b.C:b.W;a.call(b,this.Fa,Rt,this.ox);a.call(b,this.Fa,St,this.px);a.call(b,this.Fa,Tt,this.jp)};d.mp=function(){this.isEnabled()&&this.ia(!0)};d.lp=function(a){this.Pa(64,!1);this.jp(a)};
d.op=function(a){var b=a.keyCode;this.ze=!1;if(this.Fa&&this.Fa.Ia()){switch(b){case 27:case 9:case 13:return this.ia(!1),!0}a.preventDefault();this.ze=!0;a=this.Ag();var c=b=0;switch(event.keyCode){case 33:b=-1;break;case 34:b=1;break;case 37:c=-1;break;case 39:c=1;break;case 38:c=-7;break;case 40:c=7;break;case 36:a.zt();break;default:return this.ze=!1}var e=a.getDate();e?e.add(new Ut(0,b,c)):(e=a.Pb.clone(),e.setDate(1));a.$f.contains(e)&&a.setDate(e);this.ze=!1;return!0}if(40==b||38==b)return this.ia(!0),
!0};d.np=function(){};d.ox=function(a){this.P(a.qa?this.Co.format(a.qa):"");!0!==this.ze&&(this.oa.b().focus(),this.ia(!1))};d.px=function(){var a=this.w(),b=new Xq;0<Vt(this.Pj,a,b,0,!0)&&this.Ag().$f.contains(b)?this.Fa.setDate(b):this.P("")};d.jp=function(){var a=this.w(),b=new Xq;0<Vt(this.Pj,a,b,0,!0)&&this.Ag().$f.contains(b)?this.Fa.setDate(b):this.P("")};d.dd=function(a){yz.c.dd.call(this,a);this.xh()&&this.ia(!0)};
d.ia=function(a){yz.c.ia.call(this,a);this.Fa&&aq(this,64)==a&&(a?this.Fa.ml(this.b()):Wt(this.Fa))};d.zd=function(){this.setActive(!1);return!0};function zz(){}m(zz,lu);h(zz);d=zz.prototype;d.A=function(){return"qiwi-textarea"};d.g=function(a){var b=zz.c.g.call(this,a);b.setAttribute("name",a.getName());return b};d.ea=function(a,b){zz.c.ea.call(this,a,b);b.setAttribute("name",a.getName());return b};d.ya=function(a,b){var c=a.b();c&&c.setAttribute("name",b)};d.getName=function(a){return(a=a.b())?a.getAttribute("name"):null};function Az(a,b,c){mu.call(this,a,b||zz.a(),c)}m(Az,mu);W(Az,zz);X("qiwi-textarea",function(){return new Az(null)});Az.prototype.ya=function(a){this.wc=a;this.o.ya(this,a)};Az.prototype.getName=function(){return this.wc};Az.prototype.n=function(){Az.c.n.call(this);Ah(this.b(),"height",null)};function Bz(){}m(Bz,Tp);h(Bz);d=Bz.prototype;d.A=function(){return"qiwi-fileupload"};d.Zb=function(){};d.g=function(a){return a.p().g("input",{type:"file",name:a.getName(),"class":this.kb(a).join(" "),disabled:!a.isEnabled()},a.getContent()||"")};d.ea=function(a,b){Bz.c.ea.call(this,a,b);a.Af=b.value;b.setAttribute("name",a.getName());return b};d.Gb=function(a){return"INPUT"==a.tagName&&(!ba(a.type)||"FILE"==a.type.toUpperCase())};d.Uf=da;d.Rd=function(a){return a.isEnabled()};d.fd=da;
d.Pa=function(a,b,c){Bz.c.Pa.call(this,a,b,c);if(a=a.b())switch(b){case 1:a.disabled=c}};d.Cd=da;d.ya=function(a,b){var c=a.b();c&&c.setAttribute("name",b)};d.getName=function(a){return(a=a.b())?a.getAttribute("name"):null};function Cz(a,b,c){Y.call(this,a,b,c)}m(Cz,Y);W(Cz,Bz);X("qiwi-fileupload",function(){return new Cz});d=Cz.prototype;d.ge=!0;d.Gc=function(a){Cz.c.Gc.call(this,a);ba(a.disabled)?this.N(!a.disabled):a.disabled=!this.isEnabled()};d.getContent=function(){return this.b()?this.b().value:null};d.w=function(){return this.getContent()};d.P=function(a){this.setContent(a)};d.ya=function(a){this.wc=a;this.o.ya(this,a)};d.getName=function(){return this.wc};d.cd=function(a){return!this.zd(a)};function Dz(a,b,c,e){cv.call(this,a,b,c,e)}m(Dz,cv);Dz.prototype.fa=function(){return"qiwi-date-picker"};function Ez(){bv.call(this,this.fa(),Jc())}m(Ez,bv);h(Ez);Ez.prototype.fa=function(){return"qiwi-date-picker"};Ez.prototype.Te=function(a,b,c){var e=[this.fa()+"-btn"];c&&e.push(c);c=this.p().createElement("DIV");c.className=e.join(" ");c.appendChild(this.p().createTextNode(b));a.appendChild(c);return c};function Fz(a,b){pv.call(this,a,b)}m(Fz,pv);Fz.prototype.g=function(){Fz.c.g.call(this);this.b().className="qiwi-popup-date-picker"};Fz.prototype.aq=function(a){this.dispatchEvent(a)};Fz.prototype.ml=function(a){Fz.c.ml.call(this,a);this.bf.setPosition(new Hr(a,5))};function Gz(){Yr.call(this)}m(Gz,Yr);h(Gz);Gz.prototype.A=function(){return"qiwi-phone-menu"};function Hz(a,b){Zr.call(this,a,b||Gz.a())}m(Hz,Zr);W(Hz,Gz);X("qiwi-phone-menu",function(){return new Hz(null)});
Hz.prototype.gk=function(a){var b=Number.MAX_VALUE,c=null,e=[];gi(this,function(a){e.push(a.xa.prefix)},this);for(var f=0;f<e.length;f+=1)if(a.length>e[f].length?a.substr(0,e[f].length)==e[f]:e[f].substr(0,a.length)==a){for(var g=!0,l=0;l<e.length;l+=1)if(f!=l&&a.substr(0,e[l].length)==e[l])for(var g=!1,r=0;r<e.length;r++)if(l!=r&&e[r].substr(0,e[l].length)==e[l]){g=!0;break}g&&(null==c&&(c=ii(this,f)),e[f].length<b||a.substr(0,e[f].length)==e[f])&&(b=e[f].length,c=ii(this,f))}return c};function Iz(){this.gg=[]}m(Iz,Qr);h(Iz);Iz.prototype.A=function(){return"qiwi-phone-menu-item"};Iz.prototype.$o=function(){return"qiwi-phone-menu-item-name"};Iz.prototype.im=function(){return"qiwi-phone-menu-item-code"};
Iz.prototype.g=function(a){var b=Iz.c.g.call(this,a),c=a.xa;a=a.p();var e=this.Va(b);op(e,"clearfix");a.S(e);a.appendChild(e,a.g("div","qiwi-phone-menu-item-flag",Tc("div",["qiwi-flag","qiwi-flag-"+c.code])));a.appendChild(e,a.g("div",this.$o(),c.name));a.appendChild(e,a.g("div",this.im(),c.prefix));return b};function Jz(a,b,c,e){Vr.call(this,a,b,c,e||Iz.a())}m(Jz,Vr);W(Jz,Iz);X("qiwi-phone-menu-item",function(){return new Jz});function Kz(){}m(Kz,Dv);h(Kz);Kz.prototype.A=function(){return"qiwi-phone-menu-button"};Kz.prototype.Nj=function(a,b){return b.g("div",["qiwi-phone-menu-button-caption","goog-inline-block"],b.g("div",["qiwi-flag","qiwi-flag-"+a]))};Kz.prototype.setContent=function(a,b){var c=this.Va(a);if(c){Zc(c);var e=Tc("div",["qiwi-flag","qiwi-flag-"+b]);c.appendChild(e)}};function Lz(a,b,c,e){ns.call(this,a,b,c||Kz.a(),e)}m(Lz,ns);W(Lz,Kz);X("qiwi-phone-menu-button",function(){return new Lz(null)});Lz.prototype.Sg=function(){var a=this.Ga();this.setContent(a?a.xa.code:null)};Lz.prototype.gk=function(a){return this.Da().gk(a)};function Mz(){}m(Mz,Tp);h(Mz);d=Mz.prototype;d.A=function(){return"qiwi-radio"};d.vi=function(){return"qiwi-radio-menu"};d.g=function(a){var b=Mz.c.g.call(this,a),c=a.p();c.appendChild(b,c.g("div",this.vi()));a=a.p().g("input",{type:"hidden",name:a.getName(),disabled:!a.isEnabled()},a.w()||"");c.appendChild(b,a);return b};d.Zo=function(a){return t(this.vi(),a)};d.fb=function(a,b){var c=a.p();a.b()||a.g();var e=this.Zo(a.b());c.S(e);b.b()?(c.appendChild(e,b.b()),a.j&&!b.j&&b.n()):T(b,e)};
d.ya=function(a,b){var c=a.b();c&&c.setAttribute("name",b)};d.getName=function(a){return(a=a.b())?a.getAttribute("name"):null};function Nz(a,b,c){Y.call(this,a,b,c)}m(Nz,Y);W(Nz,Mz);X("qiwi-radio",function(){return new Nz});Z;d=Nz.prototype;d.H=null;d.T=null;d.fb=function(a){this.o.fb(this,a);this.Gq(a)};d.Gq=function(a){if(this.H=a)this.T&&this.T.O(),this.Bf(a)};d.Da=function(){return this.H};d.n=function(){Nz.c.n.call(this,this);this.Hi();this.H&&this.eg(this.H,!0)};d.B=function(){Nz.c.B.call(this);this.H&&(this.H.B(),this.eg(this.H,!1))};
d.I=function(){Nz.c.I.call(this,this);this.H&&(this.H.O(),delete this.H);this.T&&(this.T.O(),delete this.T)};d.uh=function(a){a.stopPropagation();this.Nb(a.target);this.dispatchEvent("action")};d.kk=function(){var a=this.Ga(),a=this.Ga(),b=Mc(document,"INPUT",null,this.b());b.length&&(b[0].value=a?a.w():"")};d.hb=function(a){this.Da().ee(a,!0);this.T?this.T.hb(a):this.Bf(this.Da())};d.fe=function(a,b){this.Da().ai(a,b,!0);this.T?this.T.fe(a,b):this.Bf(this.Da())};
d.Nb=function(a){if(this.T){var b=this.Ga();this.T.Nb(a);a!=b&&this.dispatchEvent("change")}};d.jl=function(a){this.T&&this.Nb(this.T.sh(a))};d.P=function(a){if(null!=a&&this.T)for(var b=0,c;c=this.T.sh(b);b++)if(c&&"function"==typeof c.w&&c.w()==a){this.Nb(c);return}this.Nb(null)};d.w=function(){var a=this.Ga();return a?a.w():null};d.Ga=function(){return this.T?this.T.Ga():null};d.th=function(){return this.T?this.T.th():-1};d.Bf=function(a){this.T=new ks;a&&gi(a,function(a){this.T.hb(a)},this);this.Hi()};
d.eg=function(a,b){var c=this.Q();(b?c.C:c.W).call(c,a,"action",this.uh)};d.Hi=function(){this.T&&this.Q().C(this.T,"select",this.kk)};d.ya=function(a){this.wc=a;this.o.ya(this,a)};d.getName=function(){return this.wc};function Oz(){Yr.call(this)}m(Oz,Yr);h(Oz);Oz.prototype.A=function(){return"qiwi-radio-menu"};function Pz(){this.gg=[]}m(Pz,Qr);h(Pz);Pz.prototype.A=function(){return"qiwi-radio-menu-item"};function Qz(){}m(Qz,rs);h(Qz);Qz.prototype.A=function(){return"qiwi-select"};Qz.prototype.g=function(a){var b=Qz.c.g.call(this,a),c=a.p().g("input",{type:"hidden",name:a.getName(),disabled:!a.isEnabled()},a.w()||"");a.p().appendChild(b,c);return b};Qz.prototype.ya=function(a,b){var c=a.b();c&&c.setAttribute("name",b)};Qz.prototype.getName=function(a){return(a=a.b())?a.getAttribute("name"):null};function Rz(a,b,c,e,f){ns.call(this,a,b,c||Qz.a(),e,f)}m(Rz,ns);W(Rz,Qz);X("qiwi-select",function(){return new Rz(null)});Rz.prototype.ya=function(a){this.wc=a;this.o.ya(this,a)};Rz.prototype.getName=function(){return this.wc};Rz.prototype.ia=function(a,b){Rz.c.ia.call(this,a,b);Mh(this.Da().b(),Nh(this.b()).width)};Rz.prototype.kk=function(a){Rz.c.kk.call(this,a);a=this.Ga();var b=Mc(document,"INPUT",null,this.b());b.length&&(b[0].value=a?a.w():"")};function Sz(){Yr.call(this)}m(Sz,Yr);h(Sz);Sz.prototype.A=function(){return"qiwi-select-menu"};function Tz(){this.gg=[]}m(Tz,Qr);h(Tz);Tz.prototype.A=function(){return"qiwi-select-menu-item"};Z.forms.Aa={};Z.forms.Aa.create=function(a){-1==$a("destination phone email type type_replacement message".split(" "),a.name)&&"attach"!=a.type&&(a.name="extra['"+a.name+"']");return Z.forms.Aa.QH[a.type](a)};Z.forms.Aa.CK=function(a){var b=new Sy;b.hc(Z.forms.sn.create(a.elements));b.Hq(kz(a.predicate));return b};Z.forms.Aa.PK=function(a){var b=new qz;b.Ge(a.text);return b};
Z.forms.Aa.Oj=function(a){var b=new Ry;b.ya(a.name);b.setTitle(a.title);b.Vb(a.description);b.N(null==a.editable||!0===a.editable);var c=jz(),e=!1;a.validator&&(c=hz(a.validator),e=!c.check(""),c=[],c.push({type:e?"required":"optional"}),a.validator&&c.push(a.validator),c=hz({type:e?"and":"or",children:c}));b.Sh(c);b.St(e);return b};Z.forms.Aa.MK=function(a){var b=Z.forms.Aa.Oj(a),c=new uz(a.value);c.ya(a.name);c.Ng(a.mask);b.Ka(c);b.ff(500);return b};
Z.forms.Aa.KK=function(a){var b=Z.forms.Aa.Oj(a),c=new Rz(a.placeholder?a.placeholder:ua("Choose"),null);c.ya(a.name);c.fb(new Zr(null,Sz.a()));n(a.choices,k(Z.forms.Aa.LK,null,c));b.Ka(c);return b};Z.forms.Aa.LK=function(a,b){a.hb(new Vr(b.title,b.value,null,Tz.a()))};Z.forms.Aa.IK=function(a){var b=Z.forms.Aa.Oj(a),c=new Nz;c.ya(a.name);var e=new Zr(null,Oz.a());e.fd(!0);c.fb(e);n(a.choices,k(Z.forms.Aa.JK,null,c));b.Ka(c);return b};
Z.forms.Aa.JK=function(a,b){var c=new Vr(b.title,b.value,null,Pz.a());c.Tt(!0);a.hb(c)};
Z.forms.Aa.GK=function(a){for(var b=[],c=0;c<a.formats.length;c+=1){var e=a.formats[c],f=e.prefix.length-1;e.minLength||(e.minLength=f+1);e.minLength<=f&&(e.minLength=f+1);e.maxLength||(e.maxLength=15);e=Sa(e.prefix)+"\\d{"+(e.minLength-f)+","+(e.maxLength-f)+"}";b.push({type:"regexp",pattern:e})}c=a.validator?hz(a.validator):jz();e=!c.check("");c=hz({type:e?"and":"or",children:[{type:e?"required":"optional"},{type:"or",children:b}]});b=new Ry;b.ya(a.name);b.setTitle(a.title);b.Vb(a.description);
b.N(null==a.editable||!0===a.editable);b.Sh(c);b.St(e);c=new wz;c.jc(32,!1);e=new uz(a.value);e.ya(a.name);c.Ge(e);f=new Lz(null);f.jc(32,!1);f.fb(new Hz);n(a.formats,k(Z.forms.Aa.HK,null,f));f.qF=e.b();f.gq();c.$m(f);b.Ka(c);b.ff(500);return b};Z.forms.Aa.HK=function(a,b){a.hb(new Jz(null,b))};Z.forms.Aa.NK=function(a){var b=Z.forms.Aa.Oj(a),c=new Az(a.value);c.ya(a.name);c.IE=340;c.resize();b.Ka(c);b.ff(500);return b};
Z.forms.Aa.DK=function(a){var b=a.format,c=new Vu(b),b=new rv(b),e=Bu;switch(u.qiwi.locale){case "ru":e=Du;break;case "en":e=Cu}var e=new Dz(null,e,null,Ez.a()),f=new Xq;f.setHours(23);f.setMinutes(59);f.setSeconds(59);e.$f=new Pu(Qu,f);f=new Fz(e);f.Aq(!1);var g=new uz(a.value);g.ya(a.name);g.Ng("dd.dd.dddd");e=new yz;e.jc(32,!1);e.tA(f);e.Xf(g);e.Eq(c);e.Fq(b);a=Z.forms.Aa.Oj(a);a.Ka(e);a.ff(500);return a};Z.forms.Aa.EK=function(a){var b=Z.forms.Aa.Oj(a),c=new Cz(a.value);c.ya(a.name);b.Ka(c);return b};
Z.forms.Aa.FK=function(a){var b=Z.forms.Aa.Oj(a),c=new uz(a.value);c.ya(a.name);b.Ka(c);b.setVisible(!1);b.P(a.value);return b};Z.forms.Aa.QH={dependency:Z.forms.Aa.CK,textBlock:Z.forms.Aa.PK,radio:Z.forms.Aa.IK,choice:Z.forms.Aa.KK,phoneNumber:Z.forms.Aa.GK,text:Z.forms.Aa.MK,multilineText:Z.forms.Aa.NK,attach:Z.forms.Aa.EK,fullDate:Z.forms.Aa.DK,hidden:Z.forms.Aa.FK};Z.forms.sn={};Z.forms.sn.create=function(a){var b=new Qy;n(a,k(Z.forms.sn.addElement,null,b));return b};Z.forms.sn.addElement=function(a,b){a.addElement(Z.forms.Aa.create(b))};function Uz(){}m(Uz,rs);h(Uz);Uz.prototype.A=function(){return"qiwi-orange-button"};Z.forms.jB={};Z.forms.jB.create=function(a,b){var c=new Uy;c.hc(Z.forms.sn.create(a));var e=new Nr(b.submit,Uz.a());c.Wf(e);return c};function Vz(){J.call(this);this.r=Wz;this.wa=Xz;this.ft=new K(u.support.feedback.form);this.Tc=new K(u.support.feedback.send);this.Gu=N(this,"form",this.zy);this.Hu=N(this,"form-success",this.Ay);this.lf=N(this,"send",this.Ic);this.nc=N(this,"send-success",this.xd);this.Pu=N(this,"send-error",this.Ry);this.Bt="[data-container-name\x3dform]";this.zc="[name\x3dtype]";this.tG="[name\x3dtype_replacement]";this.l=v();this.Ca=v();this.ko=v();I(this.ja,this.getName(),this.Gu.getName(),1);return this}
m(Vz,J);h(Vz);d=Vz.prototype;d.getName=q("support-feedback-form");d.init=function(a){Vz.c.init.call(this,a);this.l=O(this,this.Bt)};d.Ic=function(){this.Ca=v(this.zc);this.ko=v(this.tG);this.valueType=this.Ca.val();(this.gB=this.ko.val())&&this.Ca.val(this.gB);this.ko.disabled(!0);return this.G({link:this.Tc,form:this.l,t:this.nc,da:this.Pu})};d.xd=function(){return this.F({link:this.wa})};
d.Ry=function(a){this.Ca=v(this.zc);this.ko=v(this.tG);this.gB&&this.Ca.val(this.valueType);this.ko.disabled(!1);return this.Na(a)};d.zy=function(){return this.G({link:this.ft,form:this.l,t:this.Hu})};
d.Ay=function(a){a=a.response.data;var b=Z.forms.jB.create(JSON.parse(a.form),{submit:u.support.feedback.send.button}),c=this.l.get(0);T(b,c);c=new uf(location.search?location.search.substr(1):null);a.phone&&c.set("phone",a.phone);c.isEmpty()||b.setValues(c);this.l=v(b.b());se(b,"submit",this.Ic,!1,this)};E(D.a(),Vz);var Wz=new G(u.support.feedback.main);function Yz(){Q.call(this);this.r=Xz;return this}m(Yz,Q);h(Yz);Yz.prototype.getName=q("support-feedback-success");E(D.a(),Yz);var Xz=new G(u.support.feedback.success);function Zz(){Q.call(this);this.r=$z;return this}m(Zz,Q);h(Zz);Zz.prototype.getName=q("support-help");E(D.a(),Zz);var $z=new G(u.support.help.main);function aA(){Q.call(this);this.r=bA;this.wa=cA;this.Tc=new K(u.support.landlords.send);this.lf=N(this,"send",this.Ic);this.nc=N(this,"send-success",this.xd);return this}m(aA,Q);h(aA);aA.prototype.getName=q("support-landlords");aA.prototype.Ic=function(){this.pa.empty().hide();return this.l.size()&&!this.l.valid()?y():this.G({form:this.l,link:this.Tc,t:this.nc})};aA.prototype.xd=function(){return this.F({link:this.wa})};E(D.a(),aA);var bA=new G(u.support.landlords.main),cA=new G(u.support.landlords.success);function dA(){Q.call(this);this.r=eA;this.Mx=new K(u.transfer.eggs.activate);this.Nx=fA;this.sE=gA;this.Yh=N(this,"change",this.Cb);N(this,"activate",this.xk);this.br=N(this,"activate-success",this.iy);this.ar=N(this,"activate-failure",this.hy);return this}m(dA,Q);h(dA);d=dA.prototype;d.getName=q("transfer-eggs-activate");d.Cb=function(){this.pa.empty().hide();return this.l.valid()?this.F({link:this.r,data:this.l.formToArray()}):y()};
d.xk=function(){this.pa.empty().hide();return this.l.valid()?this.G({link:this.Mx,data:this.l.formToArray(),t:this.br,DI:this.ar}):y()};d.iy=function(){return this.F({link:this.Nx})};d.hy=function(){return this.F({link:this.sE})};E(D.a(),dA);var eA=new G(u.transfer.eggs.activate.main),fA=new G(u.transfer.eggs.activate.success),gA=new G(u.transfer.eggs.activate.failure);function hA(){U.call(this);this.r=iA;this.NT="[name\x3dextra\\[\\'to_account_type\\'\\]]";this.$U=".cont_to_account";this.Lv=jQuery();this.gw=jQuery();this.dK=N(this,"to-account-type-change",this.oR);return this}m(hA,U);h(hA);hA.prototype.getName=q("transfer-eggs-buy");hA.prototype.init=function(a){hA.c.init.call(this,a);this.Lv=O(this,this.NT);this.gw=O(this,this.$U);this.Lv.bindspace(this,"change",function(){this.h(this.dK)}).change()};
hA.prototype.oR=function(){"email"==this.Lv.filter(":checked").val()?this.gw.show():this.gw.hide()};E(D.a(),hA);var iA=new G(u.transfer.eggs.buy.main);function jA(){Q.call(this);this.r=kA;this.Gz="[data-container-name\x3ditem]";this.RT="[data-container-name\x3ditem-send-text]";this.zj=jQuery();this.Nv=jQuery();N(this,"item-send",this.kP);I(this.ab,this.getName(),this.V.getName());return this}m(jA,Q);h(jA);jA.prototype.getName=q("transfer-eggs-list");
jA.prototype.init=function(a){jA.c.init.call(this,a);this.zj=O(this,this.Gz);this.Nv=O(this,this.RT);this.Nv.bindspace(this,"focus",function(a){a.currentTarget.select()});this.Nv.bindspace(this,"mouseup",function(){return!1})};jA.prototype.kP=function(a){a=this.zj.ishas(a.target).toggleClass("active");this.zj.not(a).removeClass("active")};E(D.a(),jA);var kA=new G(u.transfer.eggs.list.main);function lA(){Q.call(this);this.r=mA;this.yh=new K(u.webmoney.bind.incoming.accept);this.cb=".confirmationForm";this.R=jQuery();this.Cf=L(this,"accept-success");this.oi=L(this,"accept-confirmation");I(this.Cf,"webmoney-bind-status","main");I(this.oi,"confirmation-form","main");N(this,"accept",this.Of);this.kf=N(this,"accept-success",this.wk);this.un=N(this,"accept-confirmation",this.Ep);return this}m(lA,Q);h(lA);d=lA.prototype;d.getName=q("webmoney-bind-incoming-form");
d.init=function(a){lA.c.init.call(this,a);this.R=O(this,this.cb);this.R.size()||(this.R=this.k)};d.Of=function(){this.pa.empty().hide();return this.l.valid()?this.G({link:this.yh,data:this.l.formToArray(),t:this.kf,bc:this.un}):y()};d.wk=function(a){return this.trigger(this.Cf,{data:{id:a.response.data}})};
d.Ep=function(a){this.l.hide();var b=a.response.identifier;return b?(this.R.show(),this.trigger(this.oi,{k:this.R,sa:"html",data:{identifier:b,type:"WEBMONEY_BIND"},success:function(){return lA.a().kf.h({response:{data:b}})}})):y()};E(D.a(),lA);var mA=new G(u.webmoney.bind.incoming.form);function nA(){Q.call(this);this.r=oA;this.yh=new K(u.webmoney.bind.outcoming.accept);this.Cf=L(this,"accept-success");I(this.Cf,"webmoney-bind-status","main");N(this,"accept",this.Of);this.kf=N(this,"accept-success",this.wk);return this}m(nA,Q);h(nA);nA.prototype.getName=q("webmoney-bind-outcoming-form");nA.prototype.Of=function(){this.pa.empty().hide();return this.l.valid()?this.G({link:this.yh,data:this.l.formToArray(),t:this.kf}):y()};nA.prototype.wk=function(a){return this.trigger(this.Cf,{data:{id:a.response.data}})};
E(D.a(),nA);var oA=new G(u.webmoney.bind.outcoming.form);function pA(){Q.call(this);this.r=qA;this.cb=".confirmationForm";this.R=jQuery();this.ND=L(this,"sms-confirmation");I(this.ND,"confirmation-form","main");return this}m(pA,Q);h(pA);pA.prototype.getName=q("webmoney-bind-status");pA.prototype.nb=function(){clearTimeout(this.IV);pA.c.nb.call(this)};
pA.prototype.init=function(a){pA.c.init.call(this,a);this.R=O(this,this.cb);this.R.size()||(this.R=this.k);switch(a.status){case "REJECTED":case "ACTIVE":break;case "WAIT_SMS_CONFIRM":this.trigger(this.ND,{k:this.R,sa:"html",data:{identifier:a.id,type:"WEBMONEY_BIND"},success:function(){return pA.a().V.h({data:{id:a.id}})}});break;default:this.IV=setTimeout(z(function(){this.h(this.V,{data:{id:a.id}})},this),a.timeout?a.timeout:5E3)}};
pA.prototype.ha=function(a){this.data.empty().set(a.data);return pA.c.ha.call(this,a)};E(D.a(),pA);var qA=new G(u.webmoney.bind.status.main);function rA(){Q.call(this);this.r=sA;this.Uc=new K(u.webmoney.payments.change);this.cb=".confirmationForm";this.BS="[name\x3dactive]";this.R=jQuery();this.jC=jQuery();this.de=N(this,"update",this.Wc);this.nd=N(this,"update-success",this.Qf);this.En=N(this,"update-confirmation",this.Zp);this.oh=L(this,"update-success");this.ri=L(this,"update-confirmation");I(this.oh,"person-account-list","main");I(this.ri,"confirmation-form","main");return this}m(rA,Q);h(rA);d=rA.prototype;d.getName=q("webmoney-payments-form");
d.init=function(a){rA.c.init.call(this,a);this.R=O(this,this.cb);this.jC=O(this,this.BS);this.R.size()||(this.R=this.k);this.jC.bindspace(this,"change",function(){this.h(this.de)})};d.Wc=function(){this.pa.empty().hide();return this.l.size()&&!this.l.valid()?y():this.G({link:this.Uc,data:this.l.formToArray(),t:this.nd,bc:this.En})};d.Qf=function(){return this.trigger(this.oh)};
d.Zp=function(a){return this.trigger(this.ri,{k:this.R,sa:"html",data:{identifier:a.response.identifier,type:"WEBMONEY_ACTIVE"},success:function(a){return rA.a().nd.h(a)}})};E(D.a(),rA);var sA=new G(u.webmoney.payments.form);function tA(){Q.call(this);return this}m(tA,Q);h(tA);tA.prototype.getName=q("webmoney");E(D.a(),tA);new G(u.webmoney.description);new G(u.webmoney.instruction);function uA(){U.call(this);this.zN=new K(u.providers.anelik.remitent);this.Si="[name\x3dextra\\[\\'rec-id\\'\\]]";this.Ti="[name\x3dextra\\[\\'rem-id\\'\\]]";this.FT="[name\x3dextra\\[\\'remitent\\'\\]]";this.qT="[name\x3dextra\\[\\'pin\\'\\]]";this.HT="[name\x3dextra\\[\\'status\\'\\]]";this.sT="[name\x3dextra\\[\\'rec_code\\'\\]]";this.Um="[name\x3dextra\\[\\'country\\'\\]]";this.uz="[name\x3dextra\\[\\'city\\'\\]]";this.wz="[name\x3dextra\\[\\'from_name\\'\\]]";this.xz="[name\x3dextra\\[\\'from_name_f\\'\\]]";
this.yz="[name\x3dextra\\[\\'from_name_p\\'\\]]";this.uq="[name\x3dextra\\[\\'to_name\\'\\]]";this.vq="[name\x3dextra\\[\\'to_name_f\\'\\]]";this.wq="[name\x3dextra\\[\\'to_name_p\\'\\]]";this.OT="[name\x3dextra\\[\\'to_addr\\'\\]]";this.UU=".cont_remitent";this.RU=".cont_rec-id";this.OU=".cont_pin";this.na=jQuery();this.Gd=jQuery();this.Vr=jQuery();this.Qr=jQuery();this.Jv=jQuery();this.Fv=jQuery();this.Sb=jQuery();this.dh=jQuery();this.Rn=jQuery();this.Sn=jQuery();this.Tn=jQuery();this.tf=jQuery();
this.uf=jQuery();this.vf=jQuery();this.Mv=jQuery();jQuery();this.Lj=jQuery();this.bD=jQuery();this.ld=N(this,"refresh",this.vd);this.Lu=N(this,"remitent-change",this.nQ);this.$h=N(this,"recipient-change",this.Dh);I(this.ja,this.getName(),this.ld.getName());return this}m(uA,U);h(uA);d=uA.prototype;d.getName=q("anelik-payment-form");
d.init=function(a){uA.c.init.call(this,a);this.na=O(this,this.Si);this.Gd=O(this,this.Ti);this.Vr=O(this,this.FT);this.Qr=O(this,this.qT);this.Jv=O(this,this.HT);this.Fv=O(this,this.sT);this.Sb=O(this,this.Um);this.dh=O(this,this.uz);this.Rn=O(this,this.wz);this.Sn=O(this,this.xz);this.Tn=O(this,this.yz);this.tf=O(this,this.uq);this.uf=O(this,this.vq);this.vf=O(this,this.wq);this.Mv=O(this,this.OT);O(this,this.UU);this.Lj=O(this,this.RU);this.bD=O(this,this.OU);this.Lj.size()||(this.Lj=$("\x3cdiv\x3e").addClass("cont_rec-id").hide(),
this.bD.after(this.Lj));this.na.size()||(this.na=$("\x3cinput\x3e").attr("name","extra['rec-id']").attr("type","hidden"),this.Lj.append(this.na));this.na.rules("add",{required:!0});this.Vr.bindspace(this,"input paste keyup change",function(){this.h(this.Lu)});this.Qr.bindspace(this,"input paste keyup change",function(){this.h(this.Lu)});this.na.bindspace(this,"change",function(){this.h(this.$h)});this.L.refresh()};
d.vd=function(a){a.reset?(this.na.val(""),this.Vr.val(""),this.Qr.val(""),this.Jv.val(""),this.Fv.val(""),this.Sb.val(""),this.dh.val(""),this.Rn.val(""),this.Sn.val(""),this.Tn.val(""),this.tf.val(""),this.uf.val(""),this.vf.val(""),this.Mv.val("")):this.h(this.Lu,{reset:!1})};
d.nQ=function(a){var b=this.Vr.val(),c=0<b.length,e=this.Qr.val(),f=4==e.length;clearTimeout(this.LV);if(!c||!f||this.OV==b&&this.NV==e)return y();this.LV=setTimeout(z(function(){this.OV=b;this.NV=e;this.L.refresh();this.Lj.show().html("\x3cbr /\x3e\x3cbr /\x3e");this.h(this.ag,{link:this.zN,data:{iden:b,pin:e,recipientCheck:a.reset||Md(a.reset)?!1:!0},k:this.Lj,sa:"html"},z(function(){return this.h(this.yl,{reset:!1},z(function(){this.L.refresh()},this))},this))},this),a.timeout?a.timeout:500);return y()};
d.Dh=function(){var a=this.na.filter(":checked").data("params")||{},b=this.Gd.data("params")||{};this.Rn.val(b.firstName);this.Sn.val(b.lastName);this.Tn.val(b.secondName);this.ba.val(a.id);this.Jv.val(a.status);this.Fv.val(a.code);this.Sb.val(a.country);this.dh.val(a.city);this.tf.val(a.firstName);this.uf.val(a.lastName);this.vf.val(a.secondName);this.Mv.val(a.address);this.L.refresh()};E(D.a(),uA);function vA(){U.call(this);this.AT="[name\x3dextra\\[\\'rem_address\\'\\]]";this.Fz="[name\x3dextra\\[\\'from_address_reg\\'\\]]";this.uz="[name\x3dextra\\[\\'from_address_city\\'\\]]";this.IT="[name\x3dextra\\[\\'from_address_street\\'\\]]";this.jT="[name\x3dextra\\[\\'from_address_house_1\\'\\]]";this.DS="[name\x3dextra\\[\\'building\\'\\]]";this.cT="[name\x3dextra\\[\\'flat\\'\\]]";this.TU=".cont_from_address_reg";this.zU=".cont_from_address_city";this.WU=".cont_from_address_street";this.KU=".cont_from_address_house_1";
this.yU=".cont_building";this.CU=".cont_flat";this.Tr=jQuery();this.fh=jQuery();this.dh=jQuery();this.jo=jQuery();this.Un=jQuery();this.On=jQuery();this.Pn=jQuery();this.bw=jQuery();this.Wv=jQuery();this.fw=jQuery();this.Yv=jQuery();this.Vv=jQuery();this.Xv=jQuery();this.xl=N(this,"address-change",this.TN);return this}m(vA,U);h(vA);vA.prototype.getName=q("fns-payment-form");
vA.prototype.init=function(a){vA.c.init.call(this,a);this.Tr=O(this,this.AT);this.fh=O(this,this.Fz);this.dh=O(this,this.uz);this.jo=O(this,this.IT);this.Un=O(this,this.jT);this.On=O(this,this.DS);this.Pn=O(this,this.cT);this.bw=O(this,this.TU);this.Wv=O(this,this.zU);this.fw=O(this,this.WU);this.Yv=O(this,this.KU);this.Vv=O(this,this.yU);this.Xv=O(this,this.CU);this.fh.bindspace(this,"input paste keyup change",function(){this.h(this.xl)});this.dh.bindspace(this,"input paste keyup change",function(){this.h(this.xl)});
this.jo.bindspace(this,"input paste keyup change",function(){this.h(this.xl)});this.Un.bindspace(this,"input paste keyup change",function(){this.h(this.xl)});this.On.bindspace(this,"input paste keyup change",function(){this.h(this.xl)});this.Pn.bindspace(this,"input paste keyup change",function(){this.h(this.xl)})};vA.prototype.TN=function(){var a=[];a.push(this.fh.val());a.push(this.dh.val());a.push(this.jo.val());a.push(this.Un.val());a.push(this.On.val());a.push(this.Pn.val());this.Tr.val(a.join(" "))};
vA.prototype.Ki=function(a){a.response&&a.response.data&&a.response.data.inn?(this.bw.hide(),this.Wv.hide(),this.fw.hide(),this.Yv.hide(),this.Vv.hide(),this.Xv.hide(),this.fh.val("").disabled(!0),this.dh.val("").disabled(!0),this.jo.val("").disabled(!0),this.Un.val("").disabled(!0),this.On.val("").disabled(!0),this.Pn.val("").disabled(!0),this.Tr.val("").disabled(!0)):(this.bw.show(),this.Wv.show(),this.fw.show(),this.Yv.show(),this.Vv.show(),this.Xv.show(),this.fh.disabled(!1),this.dh.disabled(!1),
this.jo.disabled(!1),this.Un.disabled(!1),this.On.disabled(!1),this.Pn.disabled(!1),this.Tr.disabled(!1));this.L.refresh();return vA.c.Ki.call(this,a)};E(D.a(),vA);function wA(){sj.call(this);return this}m(wA,sj);h(wA);wA.prototype.getName=q("form-field-tax-period");wA.prototype.getData=q("form-field-tax-period");
wA.prototype.each=function(a){var b=v(a);if(!b.is(":input"))return wA.c.each.call(this,a);var c=b.siblings("select").eq(0),e=b.siblings("div");e.find(":input").bindspace(this,"change",function(a){var c=[];$(a.currentTarget).parent().find(":input").each(function(){c.push($(this).val())});b.val(c.join(".")).keyup()});c.bindspace(this,"change",function(){b.val("").keyup();e.hide().eq(c.children(":selected").index()).show().find(":input").change().refresh()});var f=b.val().split(".");f[0]?(c.val(f[0]).refresh(),
e.hide().eq(c.children(":selected").index()).show().find(":input").each(function(a,b){$(b).val(f[a])}).refresh()):(e.change(),c.change());return wA.c.each.call(this,a)};wA.a();function xA(){U.call(this);this.pT="[name\x3dextra\\[\\'payment_template\\'\\]]";this.iT="[name\x3dextra\\[\\'from_inn\\'\\]]";this.dT="[name\x3dextra\\[\\'from_address\\'\\]]";this.Dv=v();this.Ol=v();this.xj=v();this.Qn=v();return this}m(xA,U);h(xA);xA.prototype.getName=q("freebank-payment-form");
xA.prototype.init=function(a){xA.c.init.call(this,a);this.Dv=O(this,this.pT);this.Ol=O(this,this.iT);this.xj=O(this,this.dT);this.Dv.size()&&this.Dv.rules("add",{min:0,messages:{min:u.shell.validate.required}});this.Ol.size()&&this.xj.size()&&!this.Qn.size()&&(this.Ol.rules("remove","required"),this.xj.rules("remove","required"),this.Qn=v("\x3cinput\x3e").attr({type:"hidden",disabled:"disabled",name:"from_inn_from_address"}).insertAfter(this.xj),this.Qn.rules("add",{required:!0}),this.Ol.bindspace(this,
"input paste keyup change",function(){this.Qn.val(this.Ol.val()+this.xj.val()).keyup()}).change(),this.xj.bindspace(this,"input paste keyup change",function(){this.Qn.val(this.Ol.val()+this.xj.val()).keyup()}).change())};E(D.a(),xA);function yA(){U.call(this);this.Wk="[name\x3dextra\\[\\'inn\\'\\]]";this.lT="[name\x3dextra\\[\\'okato\\'\\]]";this.rT="[name\x3dextra\\[\\'post_date\\'\\]]";this.mT="[name\x3dextra\\[\\'okato_helper\\'\\]]";this.kT="[name\x3dextra\\[\\'inn_helper\\'\\]]";this.wz="[name\x3dextra\\[\\'from_name\\'\\]]";this.yz="[name\x3dextra\\[\\'from_name_p\\'\\]]";this.xz="[name\x3dextra\\[\\'from_name_f\\'\\]]";this.Kt="[name\x3dextra\\[\\'from_address_reg\\'\\]]";this.Jt="[name\x3dextra\\[\\'from_address_city\\'\\]]";
this.hT="[name\x3dextra\\[\\'from_address_street\\'\\]]";this.fT="[name\x3dextra\\[\\'from_address_house_1\\'\\]]";this.gT="[name\x3dextra\\[\\'from_address_house_3\\'\\]]";this.eT="[name\x3dextra\\[\\'from_address_flat\\'\\]]";this.PU=".cont_post_date";this.MU=".cont_okato_helper";this.LU=".cont_inn_helper";this.JU=".cont_from_name";this.Sz=".cont_from_name_p";this.Rz=".cont_from_name_f";this.HU=".cont_from_address_reg";this.DU=".cont_from_address_city";this.IU=".cont_from_address_street";this.FU=
".cont_from_address_house_1";this.GU=".cont_from_address_house_3";this.EU=".cont_from_address_flat";this.qf=v();v();this.Ev=jQuery();this.Cv=v();this.eh=v();this.Rn=v();this.Tn=v();this.Sn=v();this.Mr=v();this.Lr=v();v();v();v();v();this.aw=jQuery();this.$v=v();this.Zv=v();this.$C=v();this.uo=v();this.so=v();this.YC=v();this.UC=v();this.ZC=v();this.WC=v();this.XC=v();this.VC=v();this.JI=N(this,"inn-helper-change",this.SO);return this}m(yA,U);h(yA);d=yA.prototype;d.getName=q("gibdd-payment-form");
d.init=function(a){yA.c.init.call(this,a);this.qf=O(this,this.Wk);O(this,this.lT);this.Ev=O(this,this.rT);this.Cv=O(this,this.mT);this.eh=O(this,this.kT);this.Rn=O(this,this.wz);this.Tn=O(this,this.yz);this.Sn=O(this,this.xz);this.Mr=O(this,this.Kt);this.Lr=O(this,this.Jt);O(this,this.hT);O(this,this.fT);O(this,this.gT);O(this,this.eT);this.aw=O(this,this.PU);this.$v=O(this,this.MU);this.Zv=O(this,this.LU);this.$C=O(this,this.JU);this.uo=O(this,this.Sz);this.so=O(this,this.Rz);this.YC=O(this,this.HU);
this.UC=O(this,this.DU);this.ZC=O(this,this.IU);this.WC=O(this,this.FU);this.XC=O(this,this.GU);this.VC=O(this,this.EU);this.eh.bindspace(this,"change",function(){this.h(this.JI,this.eh.find(":selected").data("params"))});qi.a().empty().set(this.data);this.L.bindspace(this,"change.post",function(){qi.a().empty().set(this.l.formToArray())})};
d.Ii=function(){var a=this.ba.val();this.ba.data("ui-mask")&&(a=this.ba.mask("value"));20==a.length?(this.aw.hide(),this.Ev.val(""),this.Ev.refresh()):this.aw.show();return y()};
d.ot=function(a){this.Rq&&clearTimeout(this.Rq);this.ss&&this.ss.resolve();delete this.errors[this.yj.attr("name")];this.yj.valid();if(a.input&&(!this.ls.size()||this.kv.size()&&null!=this.bi))return y();var b=this.ba.data("ui-mask")?this.ba.mask("value"):this.ba.val(),b=b&&20!=b.length?["account","post_date"]:["account"],c=["okato_helper"],e=!0,f=!0;n(b,function(b){b=this.L.filter("[name\x3d"+b+"],[name\x3dextra\\[\\'"+b+"\\'\\]]");e=e&&(a.event?b.validate().check(b,!0):b.valid())},this);n(c,function(b){b=
this.L.filter("[name\x3d"+b+"],[name\x3dextra\\[\\'"+b+"\\'\\]]");f=f&&(a.event?b.validate().check(b,!0):b.valid())},this);if(!e&&!f)return y();for(var g=this.l.formToArray(),l=[],r=0;r<g.length;r++){for(var B=0;B<b.length;B++)if(g[r].name==b[B]||g[r].name=="extra['"+b[B]+"']"){l.push(g[r]);break}for(B=0;B<c.length;B++)if(g[r].name==c[B]||g[r].name=="extra['"+c[B]+"']"){l.push(g[r]);break}}var C=Bd(l);if(this.pn==C)return y();this.ss=w();this.Rq=setTimeout(z(function(){this.Zv.hide();this.eh.children().remove();
this.eh.refresh();this.pn=C;this.bi=null;this.Jd.hide();this.h(this.Wh,{link:this.Tx,data:g,request:this.ls,t:this.BB,da:this.AB},this.ss.resolve)},this),a.timeout?a.timeout:500);return this.ss.promise()};d.SO=function(a){return yA.c.Ki.call(this,{response:{data:a}})};
d.Ki=function(a){this.$C.show();this.uo.show();this.so.show();this.YC.show();this.UC.show();this.ZC.show();this.WC.show();this.XC.show();this.VC.show();this.$v.show();this.L.refresh();var b=a.response.data;if(Fd(b)){this.Zv.show();for(var c=this.qf.val(),e=0,f=0;f<b.length;f++)this.eh.append($("\x3coption\x3e").val(b[f].inn).text(b[f].inn).data("params",b[f])),c==b[f].inn&&(e=f);c&&this.eh.val(c);this.eh.refresh();this.eh.change();a.response.data=b[e]}else!Id(b)||Gd(b)||this.Cv.val()||(this.$v.hide(),
this.Cv.refresh());return yA.c.Ki.call(this,a)};E(D.a(),yA);function zA(){U.call(this);this.QS="[name\x3dextra\\[\\'ev_account1\\'\\]]";this.RS="[name\x3dextra\\[\\'ev_account2\\'\\]]";this.SS="[name\x3dextra\\[\\'ev_account3\\'\\]]";this.TS="[name\x3dextra\\[\\'ev_account4\\'\\]]";this.US="[name\x3dextra\\[\\'ev_account5\\'\\]]";this.VS="[name\x3dextra\\[\\'ev_account6\\'\\]]";this.WS="[name\x3dextra\\[\\'ev_account7\\'\\]]";this.nC=jQuery();this.oC=jQuery();this.pC=jQuery();this.qC=jQuery();this.rC=jQuery();this.sC=jQuery();this.tC=jQuery();this.BI=N(this,
"ev-account-change",this.GO);return this}m(zA,U);h(zA);zA.prototype.getName=q("irbts-payment-form");
zA.prototype.init=function(a){zA.c.init.call(this,a);this.nC=O(this,this.QS);this.oC=O(this,this.RS);this.pC=O(this,this.SS);this.qC=O(this,this.TS);this.rC=O(this,this.US);this.sC=O(this,this.VS);this.tC=O(this,this.WS);a=[];a.push(this.nC);a.push(this.oC);a.push(this.pC);a.push(this.qC);a.push(this.rC);a.push(this.sC);a.push(this.tC);yd(a,z(function(a,c){var e=c.siblings().filter(":input");e.bindspace(this,"input paste keyup change",function(){this.h(this.BI,{element:c,split:e})});var f=c.val();
f&&(f=f.split("."),e.each(function(a){$(this).val(f[a]||"")}))},this))};zA.prototype.GO=function(a){var b=[];a.split.each(function(){b.push(Dd($(this).val()))});a.element.val(b.join(".")).change();return y()};E(D.a(),zA);function AA(){U.call(this);this.rk=new K(u.providers.leader.card);this.Qo="from_name_f from_name from_name_p rem_dcm_type rem_dcm_serial_no rem_dcm_no rem_dcm_date rem_dcm_country rem_dcm_issue_where rem_pob rem_dob rem_country rem_address rem_reg_country rem_reg_city rem_card_type rem_sit rem_res rem_res_helper".split(" ");this.Po="to_name_f to_name to_name_p rec_country rec_city rec_res_country rec_sit rec_sit_helper rec_res rec_res_helper".split(" ");this.CE=function(a){return["[name\x3dextra\\[\\'"+
a+"\\'\\]]","[name\x3d"+a+"]"]};this.zc="[name\x3dextra\\[\\'type\\'\\]]";this.Uk="[name\x3dextra\\[\\'card_number\\'\\]]";this.Ti="[name\x3dextra\\[\\'rem-id\\'\\]]";this.Si="[name\x3dextra\\[\\'rec-id\\'\\]]";this.vq="[name\x3dextra\\[\\'to_name_f\\'\\]]";this.uq="[name\x3dextra\\[\\'to_name\\'\\]]";this.wq="[name\x3dextra\\[\\'to_name_p\\'\\]]";this.Yk="[name\x3dextra\\[\\'rec_country\\'\\]]";this.yT="[name\x3dextra\\[\\'rec_sit\\'\\]]";this.zT="[name\x3drec_sit_helper]";this.wT="[name\x3dextra\\[\\'rec_res\\'\\]]";
this.xT="[name\x3drec_res_helper]";this.DT="[name\x3dextra\\[\\'rem_res\\'\\]]";this.ET="[name\x3drem_res_helper]";this.Vm=".newRecipient";this.Xm=".newRecipientTitle";this.Wm=".newRecipientButton";this.$k=".cont_card_number";this.Nt=".cont_card_result";this.Mt=bb(this.Qo,this.CE).join(",");this.Lt=bb(this.Po,this.CE).join(",");this.Ca=v();this.Ba=v();this.Gd=v();this.na=v();this.uf=v();this.tf=v();this.vf=v();this.Jb=v();this.$n=v();this.Tl=v();this.Zn=v();this.Rl=v();this.co=v();this.Ul=v();this.Ea=
v();this.dc=v();this.Hd=v();this.Kd=v();this.yb=v();this.Qe=v();this.Pe=v();this.xf=v();this.se=v();this.ld=N(this,"refresh",this.vd);this.oj=N(this,"type-change",this.Kk);this.Xh=N(this,"card-change",this.Em);this.$h=N(this,"recipient-change",this.Dh);this.Al=N(this,"recipient-create",this.Ck);this.jd="";I(this.ja,this.getName(),this.ld.getName());return this}m(AA,U);h(AA);d=AA.prototype;d.getName=q("leader-payment-form");
d.init=function(a){AA.c.init.call(this,a);this.Ca=O(this,this.zc);this.Ba=O(this,this.Uk);this.Gd=O(this,this.Ti);this.na=O(this,this.Si);this.uf=O(this,this.vq);this.tf=O(this,this.uq);this.vf=O(this,this.wq);this.Jb=O(this,this.Yk);this.$n=O(this,this.yT);this.Tl=O(this,this.zT);this.Zn=O(this,this.wT);this.Rl=O(this,this.xT);this.co=O(this,this.DT);this.Ul=O(this,this.ET);this.Ea=O(this,this.Vm);this.dc=O(this,this.Xm);this.Hd=O(this,this.Wm);this.Kd=O(this,this.$k);this.yb=O(this,this.Nt);this.Qe=
O(this,this.Mt);this.Pe=O(this,this.Lt);this.xf=this.wo.ishas(this.Qe);this.se=this.wo.ishas(this.Pe);this.Kd.size()&&(this.Ea.size()||(this.Ea=$("\x3cdiv\x3e").addClass("newRecipient"),this.xf.last().after(this.Ea),this.dc=$("\x3cdiv\x3e").addClass("newRecipientTitle").text(u.providers.leader.newrecipient),this.Ea.append(this.dc),this.Ea.append(this.se)),this.yb.size()||(this.yb=$("\x3cdiv\x3e").addClass("cont_card_result"),this.xf.last().after(this.yb)),this.na.size()||(this.na=$("\x3cinput\x3e").attr("name",
"extra['rec-id']").attr("type","hidden"),this.yb.append(this.na)));this.Ca.rules("add",{required:!0});this.na.rules("add",{required:!0});this.Ca.bindspace(this,"change",function(){this.h(this.oj)});this.Ba.bindspace(this,"input paste keyup change",function(){this.h(this.Xh)});this.na.bindspace(this,"change",function(){this.h(this.$h)});this.Tl.selected(1==this.$n.val());this.Rl.selected(1==this.Zn.val());this.Ul.selected(1==this.co.val());this.Tl.bindspace(this,"change",function(){this.$n.val(this.Tl.is(":checked")?
1:0)});this.Rl.bindspace(this,"change",function(){this.Zn.val(this.Rl.is(":checked")?1:0)});this.Ul.bindspace(this,"change",function(){this.co.val(this.Ul.is(":checked")?1:0)});this.L.refresh();this.pe=this.pe.add(this.Ea)};
d.vd=function(a){var b=this.Ca.filter(":checked").val();this.Ea.removeClass("active");this.dc.hide();this.Hd.show();this.Kd.hide();this.yb.hide();this.xf.hide();this.se.hide();this.L.refresh();"card"==b?(this.Kd.show(),this.yb.show(),this.L.refresh(),a.reset?(this.jd="",this.yb.hide(),this.Ba.val(""),this.na.val(""),this.Qe.val(""),this.Pe.val(""),this.L.filter("[type\x3dhidden]").each(function(a,b){b=v(b);var f=b.data("params")||{};Md(f.value)||b.val(f.value)}),this.Tl.selected(1==this.$n.val()),
this.Rl.selected(1==this.Zn.val()),this.Ul.selected(1==this.co.val()),this.L.refresh()):this.h(this.Xh,{reset:!1})):"fio"==b&&(this.xf.show(),this.se.show(),this.L.refresh(),a.reset&&(this.jd="",this.yb.hide(),this.Ba.val(""),this.na.val(""),this.Qe.val(""),this.Pe.val(""),this.L.filter("[type\x3dhidden]").each(function(a,b){b=v(b);var f=b.data("params")||{};Md(f.value)||b.val(f.value)}),this.Tl.selected(1==this.$n.val()),this.Rl.selected(1==this.Zn.val()),this.Ul.selected(1==this.co.val()),this.L.refresh()))};
d.Kk=function(){return this.h(this.ld,{reset:!0})};
d.Em=function(a){var b=this.l.validate().check(this.Ba,!0),c=this.Ba.val();this.Ba.data("ui-mask")&&(b=b&&this.Ba.mask("valid"),c=this.Ba.mask("value"));clearTimeout(this.ql);if(!b||this.jd==c)return y();this.ql=setTimeout(z(function(){this.jd=c;this.L.refresh();this.yb.show().html("\x3cbr /\x3e\x3cbr /\x3e");this.h(this.ag,{link:this.rk,data:{number:c,recipientCheck:a.reset||Md(a.reset)?!1:!0},k:this.yb,sa:"html"},z(function(){return this.h(this.yl,{reset:!1},z(function(){this.L.refresh();a.reset||
Md(a.reset)||this.na.filter(":checked").size()||this.h(this.Al,{reset:!1})},this))},this))},this),a.timeout?a.timeout:500);return y()};
d.Dh=function(){this.Ea.removeClass("active");this.dc.hide();this.Hd.show();this.se.hide();var a=this.na.filter(":checked").data("params")||{},b=this.Gd.data("params")||{};ub(a.extraFields,function(a,b){this.Pe.filter(function(a,c){var l=$(c).attr("name");return b==l||"extra['"+b+"']"==l}).val(a).refresh()},this);this.uf.val(a.lastName);this.tf.val(a.firstName);this.vf.val(a.secondName);this.Jb.val(a.country);ub(b.extraFields,function(a,b){this.Qe.filter(function(a,c){var l=$(c).attr("name");return b==
l||"extra['"+b+"']"==l}).val(a).refresh()},this);this.L.refresh()};d.Ck=function(a){var b=this.Gd.data("params")||{};ub(b.extraFields,function(a,b){this.Qe.filter(function(a,c){var l=$(c).attr("name");return b==l||"extra['"+b+"']"==l}).val(a).refresh()},this);this.Ea.addClass("active");this.dc.show();this.Hd.hide();this.na.rules("remove");this.na.selected(!1);this.se.show();(a.reset||Md(a.reset))&&this.Pe.val("");this.L.refresh()};E(D.a(),AA);function BA(){U.call(this);this.r=CA;this.Qx=new K(u.mobile.form.detect);this.Jn=v();this.zu=N(this,"account-change-success",this.gy);this.yu=N(this,"account-change-failure",this.fy);return this}m(BA,U);h(BA);d=BA.prototype;d.getName=q("mobile-form");d.nb=function(){BA.c.nb.call(this);clearTimeout(this.Sq)};
d.Ii=function(){this.ba.rules("remove","error");var a=this.l.validate().check(this.ba,!0),b=this.ba.val();this.ba.data("ui-mask")&&(a=a&&this.ba.mask("valid"),b=this.ba.mask("value"));clearTimeout(this.Sq);this.ba.rules("add",{error:!0});if(!a||this.dj==b)return y();this.Sq=setTimeout(z(function(){this.dj=b;return this.G({link:this.Qx,data:{phone:this.dj},k:this.Jn,t:this.zu,da:this.yu})},this),500)};
d.gy=function(a){if(!a.response.message)return y();this.ba.rules("remove","error");this.ba.valid();this.r=tj;this.data.empty();this.data.set(this.l.formToArray());this.data.replace({provider:a.response.message});this.data.replace({"extra['account']":this.dj.substr(this.ba.data("params").phoneFormat.code.length+1)});return this.ha({query:{provider:a.response.message}})};d.fy=function(a){this.ba.rules("add",{error:!0,messages:{error:a.response.message}});this.ba.valid();return y()};E(D.a(),BA);
var CA=new G(u.mobile.form.main);function DA(){U.call(this);this.XS="[name\x3dextra\\[\\'EXT_ACCOUNT\\'\\]]";this.vC=jQuery();this.Tx=new K(u.providers.moscowrostelecom.online.info);N(this,"ext-account-change",this.IO);return this}m(DA,U);h(DA);DA.prototype.getName=q("moscowrostelecom-payment-form");DA.prototype.init=function(a){DA.c.init.call(this,a);this.vC=O(this,this.XS)};DA.prototype.IO=function(a){this.vC.val(a.target.val())};E(D.a(),DA);function EA(){U.call(this);this.JT="[name\x3dextra\\[\\'t1\\'\\]]";this.KT="[name\x3dextra\\[\\'t2\\'\\]]";this.LT="[name\x3dextra\\[\\'t3\\'\\]]";this.XU=".cont_t1";this.YU=".cont_t2";this.ZU=".cont_t3";this.gh=v();this.hh=v();this.ih=v();this.eD=v();this.fD=v();this.gD=v();this.Qu=N(this,"tariff-change",this.nR);return this}m(EA,U);h(EA);EA.prototype.getName=q("mosenergosbyt-payment-form");
EA.prototype.init=function(a){EA.c.init.call(this,a);this.gh=O(this,this.JT);this.hh=O(this,this.KT);this.ih=O(this,this.LT);this.eD=O(this,this.XU);this.fD=O(this,this.YU);this.gD=O(this,this.ZU);this.gh.bindspace(this,"input paste keyup change",function(){this.h(this.Qu)});this.hh.bindspace(this,"input paste keyup change",function(){this.h(this.Qu)});this.ih.bindspace(this,"input paste keyup change",function(){this.h(this.Qu)})};
EA.prototype.nR=function(){var a=this.eD.is(":hidden")||this.gh.validate().check(this.gh,!0)&&(this.gh.data("ui-mask")?this.gh.mask("valid"):!0),b=this.fD.is(":hidden")||this.hh.validate().check(this.hh,!0)&&(this.hh.data("ui-mask")?this.hh.mask("valid"):!0),c=this.gD.is(":hidden")||this.ih.validate().check(this.ih,!0)&&(this.ih.data("ui-mask")?this.ih.mask("valid"):!0);if(!(a&&b&&c))return y();a=this.gh.data("ui-mask")?this.gh.mask("value"):this.gh.val();b=this.hh.data("ui-mask")?this.hh.mask("value"):
this.hh.val();c=this.ih.data("ui-mask")?this.ih.mask("value"):this.ih.val();if(a==this.PV||b==this.QV||c==this.RV)return y();this.PV=a;this.QV=b;this.RV=c;clearTimeout(this.JV);this.JV=setTimeout(z(function(){this.F({link:this.vE,data:this.l.formToArray()})},this),2E3)};E(D.a(),EA);function FA(){U.call(this);this.vp=new K(u.providers.unistream.calculate);this.rk=new K(u.providers.unistream.card);this.Um="[name\x3dextra\\[\\'country\\'\\]]";this.zc="[name\x3dextra\\[\\'type\\'\\]]";this.Uk="[name\x3dextra\\[\\'card\\'\\]]";this.uG="[name\x3dextra\\[\\'uni-key\\'\\]]";this.Ti="[name\x3dextra\\[\\'rem-id\\'\\]]";this.lG="[name\x3dextra\\[\\'rem-sname\\'\\]]";this.kG="[name\x3dextra\\[\\'rem-pname\\'\\]]";this.jG="[name\x3dextra\\[\\'rem-fname\\'\\]]";this.Si="[name\x3dextra\\[\\'rec-id\\'\\]]";
this.iG="[name\x3dextra\\[\\'rec-sname\\'\\]]";this.hG="[name\x3dextra\\[\\'rec-pname\\'\\]]";this.gG="[name\x3dextra\\[\\'rec-fname\\'\\]]";this.It="[name\x3dextra\\[\\'currency\\'\\]]";this.SF="[name\x3dextra\\[\\'exchange_rate\\'\\]]";this.VF="[name\x3dextra\\[\\'foreign_amount\\'\\]]";this.Vm=".newRecipient";this.Xm=".newRecipientTitle";this.Wm=".newRecipientButton";this.$k=".cont_card";this.Nt=".cont_card_result";this.HG=".cont_country";this.SG=".cont_rem-sname";this.RG=".cont_rem-pname";this.QG=
".cont_rem-fname";this.OG=".cont_rec-sname";this.NG=".cont_rec-pname";this.MG=".cont_rec-fname";this.Sb=jQuery();this.Ca=jQuery();this.Ba=jQuery();this.DC=jQuery();this.Gd=jQuery();this.eo=jQuery();this.bo=jQuery();this.ao=jQuery();this.na=jQuery();this.Sl=jQuery();this.Yn=jQuery();this.Xn=jQuery();this.hi=jQuery();this.Fr=jQuery();this.Kr=jQuery();this.Ea=jQuery();this.dc=jQuery();this.Hd=jQuery();this.Kd=jQuery();this.yb=jQuery();this.Wl=jQuery();this.ew=jQuery();this.dw=jQuery();this.cw=jQuery();
this.$l=jQuery();this.Zl=jQuery();this.Xl=jQuery();this.ld=N(this,"refresh",this.vd);this.oj=N(this,"type-change",this.Kk);this.Xh=N(this,"card-change",this.Em);this.$h=N(this,"recipient-change",this.Dh);this.Al=N(this,"recipient-create",this.Ck);this.Fu=N(this,"country-change",this.uy);this.dr=N(this,"currency-change",this.vy);this.jd="";I(this.ja,this.getName(),this.ld.getName());return this}m(FA,U);h(FA);d=FA.prototype;d.getName=q("unistream-payment-form");
d.init=function(a){FA.c.init.call(this,a);this.Sb=O(this,this.e.Um||this.Um);this.Ca=O(this,this.e.zc||this.zc);this.Ba=O(this,this.e.Uk||this.Uk);this.DC=O(this,this.e.uG||this.uG);this.Gd=O(this,this.e.Ti||this.Ti);this.eo=O(this,this.e.lG||this.lG);this.bo=O(this,this.e.kG||this.kG);this.ao=O(this,this.e.jG||this.jG);this.na=O(this,this.e.Si||this.Si);this.Sl=O(this,this.e.iG||this.iG);this.Yn=O(this,this.e.hG||this.hG);this.Xn=O(this,this.e.gG||this.gG);this.hi=O(this,this.e.It||this.It);this.Fr=
O(this,this.e.SF||this.SF);this.Kr=O(this,this.e.VF||this.VF);this.Ea=O(this,this.e.Vm||this.Vm);this.dc=O(this,this.e.Xm||this.Xm);this.Hd=O(this,this.e.Wm||this.Wm);this.Kd=O(this,this.e.$k||this.$k);this.yb=O(this,this.e.Nt||this.Nt);this.Wl=O(this,this.e.HG||this.HG);this.ew=O(this,this.e.SG||this.SG);this.dw=O(this,this.e.RG||this.RG);this.cw=O(this,this.e.QG||this.QG);this.$l=O(this,this.e.OG||this.OG);this.Zl=O(this,this.e.NG||this.NG);this.Xl=O(this,this.e.MG||this.MG);this.yb.size()||(this.yb=
$("\x3cdiv\x3e").addClass("cont_card_result"),this.Kd.after(this.yb));this.na.size()||(this.na=$("\x3cinput\x3e").attr("name","extra['rec-id']").attr("type","hidden"),this.yb.append(this.na));this.Ea.size()||(this.Ea=$("\x3cdiv\x3e").addClass("newRecipient"),this.yb.after(this.Ea),this.dc=$("\x3cdiv\x3e").addClass("newRecipientTitle").text(u.providers.unistream.newrecipient),this.Ea.append(this.dc),this.Ea.append(this.Wl),this.Ea.append(this.$l),this.Ea.append(this.Xl),this.Ea.append(this.Zl));this.Ca.rules("add",
{required:!0});this.Ba.rules("add",{required:!0});this.na.rules("add",{required:!0});this.Sb.bindspace(this,"change",function(){this.h(this.Fu)}).change();this.Ca.bindspace(this,"change",function(){this.h(this.oj)});this.Ba.bindspace(this,"input paste keyup change",function(){this.h(this.Xh)});this.na.bindspace(this,"change",function(){this.h(this.$h)});this.ka.bindspace(this,"change",function(){this.Za=!1;this.h(this.dr);this.h(this.Cc)});this.Ba.val()?this.Ca.val("card"):this.Sl.val()&&this.Ca.val("fio");
this.ka.bindspace(this,"input paste keyup change",function(){this.ka.trigger("formstate")});this.ka.bindspace(this,"formstateform",function(){this.ka.trigger("formstate")});this.L.refresh();this.pe=this.pe.add(this.Ea)};d.Bh=function(a){FA.c.Bh.call(this,a);this.Fr.val("");this.Kr.val("");a.response.data.rate.from.currencyCode!=a.response.data.rate.to.currencyCode&&"RUB"!=a.response.data.rate.from.currencyCode&&(this.Fr.val(a.response.data.rateMessage),this.Kr.val(a.response.data.amount.doubleValue))};
d.nt=function(a){FA.c.nt.call(this,a);this.Fr.val("");this.Kr.val("")};
d.vd=function(a){var b=this.Ca.filter(":checked").val();this.Ea.removeClass("active");this.dc.hide();this.Hd.show();this.Kd.hide();this.yb.hide();this.Wl.hide();this.ew.hide();this.dw.hide();this.cw.hide();this.$l.hide();this.Zl.hide();this.Xl.hide();this.L.refresh();"card"==b?(this.Kd.show(),this.yb.show(),this.L.refresh(),a.reset?(this.jd="",this.yb.hide(),this.Ba.val(""),this.na.val(""),this.Sb.val(""),this.eo.val(""),this.ao.val(""),this.bo.val(""),this.Sl.val(""),this.Xn.val(""),this.Yn.val(""),
this.L.refresh(),this.Sb.change()):this.h(this.Xh,{reset:!1})):"fio"==b&&(this.Wl.show(),this.ew.show(),this.dw.show(),this.cw.show(),this.$l.show(),this.Zl.show(),this.Xl.show(),this.L.refresh(),a.reset&&(this.jd="",this.yb.hide(),this.Ba.val(""),this.na.val(""),this.Sb.val(""),this.eo.val(""),this.ao.val(""),this.bo.val(""),this.Sl.val(""),this.Xn.val(""),this.Yn.val(""),this.L.refresh(),this.Sb.change()))};d.Kk=function(){return this.h(this.ld,{reset:!0})};
d.Em=function(a){var b=this.l.validate().check(this.Ba,!0),c=this.Ba.val();this.Ba.data("ui-mask")&&(b=b&&this.Ba.mask("valid"),c=this.Ba.mask("value"));clearTimeout(this.ql);if(!b||this.jd==c)return y();this.errors[this.Ba.attr("name")]=u.shell.validate.required;this.ql=setTimeout(z(function(){this.jd=c;this.L.refresh();this.yb.show().html("\x3cbr /\x3e\x3cbr /\x3e");this.h(this.ag,{link:this.rk,data:{number:c,recipientCheck:a.reset||Md(a.reset)?!1:!0},k:this.yb,sa:"html"},z(function(){delete this.errors[this.Ba.attr("name")];
return this.h(this.yl,{reset:!1},z(function(){this.L.refresh();a.reset||Md(a.reset)||this.na.filter(":checked").size()||this.h(this.Al,{reset:!1})},this))},this))},this),a.timeout?a.timeout:500);return y()};
d.Dh=function(){this.Ea.removeClass("active");this.dc.hide();this.Hd.show();this.Wl.hide();this.$l.hide();this.Zl.hide();this.Xl.hide();var a=this.na.filter(":checked").data("params")||{},b=this.Gd.data("params")||{};this.eo.val(b.lastName);this.ao.val(b.firstName);this.bo.val(b.secondName);this.Sl.val(a.lastName);this.Xn.val(a.firstName);this.Yn.val(a.secondName);this.Sb.val(a.country).change();this.L.refresh()};
d.Ck=function(a){var b=this.Gd.data("params")||{};this.eo.val(b.lastName);this.ao.val(b.firstName);this.bo.val(b.secondName);this.Ea.addClass("active");this.dc.show();this.Hd.hide();this.na.rules("remove");this.na.selected(!1);this.Wl.show();this.$l.show();this.Zl.show();this.Xl.show();if(a.reset||Md(a.reset))this.Sb.val("").change(),this.Sl.val(""),this.Xn.val(""),this.Yn.val("");this.L.refresh()};
d.uy=function(a){var b=this.Sb.val();this.Gj.hide();if(!b)return y();this.Gj.show();a=this.Sb.data("params")||{};a=a.countryCurrencies||[];this.DC.val(b);for(var c=[],e=0;e<a.length;e++)a[e].country==b&&c.push(a[e].currency.currencyCode);b=this.ka.val();a=this.ka.children().disabled(!0);e=a.filter(":selected").selected(!1);a.filter(function(a,b){return-1!=vd($(b).val(),c)}).disabled(!1);e.is(":disabled")&&(e=a.not(":disabled").first());e.selected(!0);this.ka.refresh();b!=this.ka.val()?this.ka.change():
this.Sb.trigger("formstate");return y()};d.vy=function(a){var b=this.ka.val();a=this.Sb.data("params")||{};a=a.currencies||[];for(var c=0;c<a.length;c++)a[c].currency&&a[c].currency.currencyCode==b&&this.hi.val(a[c].extCurrencyId);return y()};E(D.a(),FA);function GA(){Zl.call(this);this.vp=new K(u.providers.wu.calculate);this.rk=new K(u.providers.wu.card);this.nN=new K(u.providers.wu.offer);N(this,"offer",this.DP);this.fJ=N(this,"offer-success",this.EP);this.sJ=N(this,"rec-name-type-change",this.$P);this.AJ=N(this,"rem-name-type-change",this.lQ);this.Qo="from_name from_name_f from_name_p rem_address_city rem_address_flat rem_address_house rem_address_postcode rem_address_region rem_address_street rem_agrno rem_dob rem_name_type rem_name_type_helper rem_phone contrans".split(" ");
this.Po="to_name to_name_f to_name_p rec_country rec_city rec_currcode rec_name_type rec_name_type_helper rec_state rec_offer rem_mexico_state".split(" ");this.Uk="[name\x3dextra\\[\\'rem_cardno\\'\\]]";this.Yk="[name\x3dextra\\[\\'rec_country\\'\\]]";this.Ez="[name\x3dextra\\[\\'rec_currcode\\'\\]]";this.uT="[name\x3dextra\\[\\'rec_name_type\\'\\]]";this.vT="[name\x3drec_name_type_helper]";this.BT="[name\x3dextra\\[\\'rem_name_type\\'\\]]";this.CT="[name\x3drem_name_type_helper]";this.GS="[name\x3dcountry_agr]";
this.$k=".cont_rem_cardno";this.AU=".cont_contrans";this.QU=".cont_rec_currcode";this.SU=".cont_rec_offer";this.aV=".cont_to_name_f";this.bV=".cont_to_name_p";this.Rz=".cont_from_name_f";this.Sz=".cont_from_name_p";this.Jb=v();this.lg=v();this.Gv=v();this.Sr=v();this.Hv=v();this.Ur=v();this.lC=v();this.ks=v();this.vo=v();this.Yl=v();this.hD=v();this.iD=v();this.so=v();this.uo=v();return this}m(GA,Zl);h(GA);d=GA.prototype;d.getName=q("wu-payment-form");
d.init=function(a){GA.c.init.call(this,a);this.Jb=O(this,this.Yk);this.lg=O(this,this.Ez);this.Gv=O(this,this.uT);this.Sr=O(this,this.vT);this.Hv=O(this,this.BT);this.Ur=O(this,this.CT);this.lC=O(this,this.GS);this.ks=O(this,this.AU);this.vo=O(this,this.QU);this.Yl=O(this,this.SU);this.hD=O(this,this.aV);this.iD=O(this,this.bV);this.so=O(this,this.Rz);this.uo=O(this,this.Sz);this.ks.hide();this.Yl.hide();this.Sr.selected("M"==this.Gv.val());this.Ur.selected("M"==this.Hv.val());this.lC.rules("add",
{required:!0});this.Jb.append(this.Jb.children().not(":first").sort(function(a,c){var e=Dd(v(a).text()),f=Dd(v(c).text());return e==f?0:e>f?1:-1})).refresh();this.Jb.bindspace(this,"change",function(){this.Za=!1;this.Cc.h()});this.lg.bindspace(this,"change",function(){this.Za=!1;this.Cc.h()});this.Ur.bindspace(this,"change",function(){this.AJ.h()}).change();this.Sr.bindspace(this,"change",function(){this.sJ.h()}).change();this.fB=this.eB=null};
d.vd=function(a){GA.c.vd.call(this,a);this.ks.hide();this.Yl.toggle(!!this.Jb.val()&&!!this.lg.val())};
d.oy=function(a){clearTimeout(this.jn);var b=parseInt(this.Ib.val(),10)||0,c=parseInt(this.Hb.val(),10)||0,e=this.ib.val()||null,f=this.ka.val()||null,g=this.Jb.val()||null,l=this.lg.val()||null;0==b&&0==c&&(this.Di=!1);this.Yl.toggle(!!g&&!!l);if(this.Bc==b&&this.Ac==c&&this.lc==e&&this.tb==f&&this.Za&&this.eB==g&&this.fB==l)return y();this.nf.empty().hide();this.pg.empty().hide();this.Dj.children().hide();this.Cj.children().hide();if(!this.J[e])return y();var r=this.Ql.val()||this.J[e].mode;this.$r.removeClass("active").filter("[data-container-mode\x3d"+
r+"]").addClass("active");this.as.removeClass("active").filter("[data-container-mode\x3d"+r+"]").addClass("active");"terminal"==r?this.pe.addClass("hidden_by_terminal"):this.pe.hasClass("hidden_by_terminal")&&this.pe.removeClass("hidden_by_terminal").find(this.L).refresh();if("terminal"==this.J[e].mode)return y();if("card_-4"==this.J[e].id){if(!this.Fj.children().size())return this.F({link:this.rE,k:this.Fj.show(),sa:"html"}).always(z(function(){this.Db(this.e)},this))}else this.Fj.empty().hide();
if(!g||!l)return y();this.Dj.children("."+f).show();this.Cj.children("."+e).show();this.ma.rules("remove","min");this.ma.rules("remove","max");this.J[e].gF&&this.ma.rules("add",{min:this.J[e].gF});this.J[e].HE&&this.ma.rules("add",{max:this.J[e].HE});if(0==b&&0==c)return this.ma.val(0),this.Za&&this.ma.valid(),this.Za=!0,this.Oc.hide(),this.ke.empty(),this.le.hide(),this.oe.empty(),this.ie.hide(),this.je.empty(),this.me.hide(),this.ne.empty(),this.Bc=b,this.Ac=c,this.lc=e,this.tb=f,y();this.ma.val(b+
c/100);if(!this.ma.valid())return y();var B=w();this.jn=setTimeout(z(function(){this.Bc=b;this.Ac=c;this.lc=e;this.tb=f;this.eB=g;this.fB=l;this.ma.val(0);this.Oc.hide();this.ke.empty();this.le.hide();this.oe.empty();this.ie.hide();this.je.empty();this.me.hide();this.ne.empty();this.h(this.Wh,{link:this.vp,data:{integer:this.Bc,fraction:this.Ac,country:this.eB,reccurrency:this.fB,remcurrency:this.tb,source:this.lc,provider:this.J[this.lc].df},k:this.Oc.show(),t:this.Cu,da:this.Bu},B.resolve)},this),
a.timeout?a.timeout:1);return B.promise()};
d.Bh=function(a){var b=a.response.data;this.ma.val(this.Bc+"."+this.Ac);this.Oc.hide();this.nf.empty().show();n(["qiwiRate","qiwiFullAmount"],function(a){b[a]&&this.nf.append(v("\x3cdiv\x3e").html(b[a]))},this);this.nf.append("\x3cbr\x3e");n("trAmountMessage commissionMessage recAmountMessage currencyMessage rateMessage totalAmountMessage".split(" "),function(a){b[a]&&this.nf.append(v("\x3cdiv\x3e").html(b[a]))},this);this.ks.toggle(b.contrQW);this.Za&&this.ma.keyup().valid();this.Za=!0};
d.DP=function(a){return this.G({link:this.nN,k:a.target,data:{countryCode:this.Jb.val(),currencyCode:this.lg.val()},t:this.fJ})};
d.EP=function(a){var b=w(),c=v("\x3cdiv\x3e").css("overflow-y","scroll");c.html(a.response.message.replace(/\n/g,"\x3cbr\x3e")).dialog({width:"auto",height:500,modal:!0,resizable:!1,draggable:!1,closeEnabled:!1,closeOnEscape:!1,title:u.shell.dialog.title.info,close:z(function(){this.trigger(a.vg,a,b.resolve);c.remove()},this),buttons:[{text:u.shell.dialog.button.close,click:function(){c.dialog("close")}}]});return b.promise()};
d.$P=function(){var a=this.Sr.is(":checked"),b=a?u.providers.wu.fieldslat:u.providers.wu.fields;this.hD.find("h3.dataField").text(b.to_name_f);this.iD.find("h3.dataField").text(b.to_name_p);this.Gv.val(a?"M":"D")};d.lQ=function(){var a=this.Ur.is(":checked"),b=a?u.providers.wu.fieldslat:u.providers.wu.fields;this.so.find("h3.dataField").text(b.from_name_f);this.uo.find("h3.dataField").text(b.from_name_p);this.Hv.val(a?"M":"D")};
d.Em=function(a){var b=this.l.validate().check(this.Ba,!0),c=this.Ba.val();this.Ba.data("ui-mask")&&(b=b&&this.Ba.mask("valid"),c=this.Ba.mask("value"));clearTimeout(this.ql);if(!b||this.jd==c)return y();this.ql=setTimeout(z(function(){this.jd=c;this.L.refresh();this.te.show().html("\x3cbr /\x3e\x3cbr /\x3e");this.h(this.ag,{link:this.rk,data:{number:c,recipientCheck:a.reset||Md(a.reset)?!1:!0},k:this.te,sa:"html"},z(function(){return this.h(this.yl,{reset:!1},z(function(){this.L.refresh();a.reset||
Md(a.reset)||(this.na.filter(":checked").size()?this.h(this.$h,{reset:!1}):this.h(this.Al,{reset:!1}))},this))},this))},this),a.timeout?a.timeout:500);return y()};d.Dh=function(a){GA.c.Dh.call(this,a);this.Ea.show();this.Jb.val()?this.vo.show():this.vo.hide();this.Yl.toggle(!!this.Jb.val()&&!!this.lg.val());this.L.refresh()};d.Ck=function(a){GA.c.Ck.call(this,a);this.Ea.show();this.Jb.val()?this.vo.show():this.vo.hide();this.Yl.toggle(!!this.Jb.val()&&!!this.lg.val());this.L.refresh()};E(D.a(),GA);Lj.De={};Lj.De.ef={};
Lj.De.ef.vk=function(a,b,c){b='\x3cdiv class\x3d"oauth-login"\x3e\x3cdiv class\x3d"oauth-form"\x3e\x3cdiv class\x3d"oauth-form-providers"\x3e\x3cdiv class\x3d"oauth-provider-list"\x3e';a=a.providers;for(var e=a.length,f=0;f<e;f++){var g=a[f];b+='\x3cdiv class\x3d"oauth-provider-item-wrap '+V(g)+'"\x3e\x3cdiv class\x3d"oauth-provider-item '+V(g)+'" data-action\x3d"sso-oauth-sigin" data-params\x3d\'{"url":"'+V(settings.qiwi.sso.server)+"/signin/oauth2/"+V(g)+'","context":"'+V(g)+"\"}'\x3e\x3cspan\x3e"+
V(c.settings.qiwi.oauth.provider[g])+"\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e"}return b+='\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"oauth-login-or"\x3e'+V(settings.qiwi.oauth.or)+"\x3c/div\x3e\x3c/div\x3e"};
Lj.De.ef.oF=function(a){var b='\x3cdiv class\x3d"oauth-popup"\x3e\x3cdiv class\x3d"oauth-form"\x3e\x3cdiv class\x3d"oauth-form-header"\x3e'+V(settings.qiwi.oauth.label)+'\x3c/div\x3e\x3cdiv class\x3d"oauth-form-providers"\x3e\x3cdiv class\x3d"oauth-provider-list"\x3e';a=a.providers;for(var c=a.length,e=0;e<c;e++)var f=a[e],b=b+('\x3cdiv class\x3d"oauth-provider-item '+V(f)+'" data-action\x3d"sso-oauth-sigin" data-params\x3d\'{"url":"'+V(settings.qiwi.sso.server)+"/signin/oauth2/"+V(f)+'","context":"'+
V(f)+"\"}'\x3e\x3c/div\x3e");return b+"\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e"};
Lj.De.ef.kE=function(a){var b='\x3cdiv class\x3d"oauth-landing"\x3e\x3cdiv class\x3d"oauth-form"\x3e\x3cdiv class\x3d"oauth-form-header"\x3e'+V(settings.qiwi.oauth.label)+'\x3c/div\x3e\x3cdiv class\x3d"oauth-form-providers"\x3e\x3cdiv class\x3d"oauth-provider-list"\x3e';a=a.providers;for(var c=a.length,e=0;e<c;e++)var f=a[e],b=b+('\x3cdiv class\x3d"oauth-provider-item '+V(f)+'" data-action\x3d"sso-oauth-sigin" data-params\x3d\'{"url":"'+V(settings.qiwi.sso.server)+"/signin/oauth2/"+V(f)+'","context":"'+
V(f)+"\"}'\x3e\x3c/div\x3e");return b+"\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e"};
Lj.De.ef.list=function(a,b,c){b='\x3cdiv data-widget\x3d"person-social-provider-list" class\x3d"oauth-settings"\x3e\x3cdiv class\x3d"person_data"\x3e\x3cdiv class\x3d"person_data-col1"\x3e'+V(c.settings.qiwi.oauth.labelsocial)+'\x3c/div\x3e\x3cdiv class\x3d"person_data-col2"\x3e\x3cdiv class\x3d"oauth-form"\x3e\x3cdiv class\x3d"oauth-form-providers"\x3e\x3cdiv class\x3d"oauth-provider-list"\x3e';for(var e=Jj(a.items),f=e.length,g=0;g<f;g++){var l=e[g];b+='\x3cdiv class\x3d"oauth-provider-item-wrap '+
V(l)+'"\x3e'+(null!=a.items[l]?'\x3cdiv class\x3d"oauth-provider-item '+V(l)+'"\x3e\x3cspan\x3e'+V(c.settings.qiwi.oauth.bindprovider[l])+'\x3c/span\x3e\x3cspan class\x3d"oauth-provider-item-action"  data-action\x3d"bind" data-params\x3d\'{"provider":"'+V(l)+'","url":"'+V(a.items[l])+"\"}'\x3e"+V(c.settings.qiwi.oauth.bind)+"\x3c/span\x3e\x3c/div\x3e":'\x3cdiv class\x3d"oauth-provider-item '+V(l)+'"\x3e\x3cspan\x3e'+V(c.settings.qiwi.oauth.unbindprovider[l])+'\x3c/span\x3e\x3cspan class\x3d"oauth-provider-item-action" data-action\x3d"unbind" data-params\x3d\'{"provider":"'+
V(l)+"\"}'\x3e"+V(c.settings.qiwi.oauth.unbind)+"\x3c/span\x3e\x3c/div\x3e")+"\x3c/div\x3e"}return b+"\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e"};function HA(){J.call(this);this.Uc=gh;this.de=N(this,"update",this.Wc);this.ZG="img";this.zo=v();return this}m(HA,J);h(HA);HA.prototype.getName=q("captcha");HA.prototype.TD=function(){return this.Uc.Be+"?"+Bd({random:Math.random()})};HA.prototype.init=function(a){HA.c.init.call(this,a);this.zo=O(this,this.e.ZG||this.ZG)};
HA.prototype.Wc=function(){var a=v.Deferred();this.zo.request(!0);this.zo.bindspace(this,"load error",function(){this.zo.request(!1);a.resolve()});var b=this.TD();this.log(za('XHR started loading: "%s"',b));this.zo.attr("src",b);return a.promise()};function IA(){HA.call(this);this.Uc=new K(u.qiwi.sso.server+"/captcha");return this}m(IA,HA);h(IA);IA.prototype.init=function(a){IA.c.init.call(this,a)};IA.prototype.getName=q("login-captcha");IA.prototype.TD=function(){return this.Uc.Be+"/"+(Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^ta()).toString(36))+".jpg"};E(D.a(),IA);Pg.addListener(function(a){if(IA.rc())return IA.a().de.h(a)},1);function JA(){Q.call(this);return this}m(JA,Q);h(JA);JA.prototype.getName=q("login-result");JA.prototype.init=function(a){JA.c.init.call(this,a);this.e.partnerLink&&v.post(this.e.partnerLink)};E(D.a(),JA);function KA(){J.call(this);this.Lc=window["qiwi-main-lib"].auth;this.hr=N(this,"logout",this.$e);this.Ug=N(this,"logout-success",this.Hg);return this}m(KA,J);h(KA);d=KA.prototype;d.getName=q("logout");d.init=function(a){KA.c.init.call(this,a);this.hr.h(a)};d.Jm=function(){return this.Lc.logout(this.$e.bind(this))};d.$e=function(a){return a.target?this.Jm(a):this.G({link:jh,t:this.Ug})};
d.Hg=function(){if(this.e.url)if(this.e.params){var a=v("\x3cform\x3e").attr("action",this.e.url).attr("method","post").appendTo(document.body);yd(Id(this.e.params)?this.e.params:{},function(b,c){a.append(v("\x3cinput\x3e").attr("type","hidden").attr("name",b).val(c))});a.submit()}else window.location.href=this.e.url;else F.a().reload()};E(D.a(),KA);function LA(){HA.call(this);this.Uc=new K(u.qiwi.remind.captcha);return this}m(LA,HA);h(LA);LA.prototype.getName=q("remind-captcha");E(D.a(),LA);Rg.addListener(function(a){LA.rc()&&LA.a().de.h(a)});function MA(){Q.call(this);this.r=ik;this.wa=jk;this.Tc=new K(u.qiwi.remind.send);this.lf=N(this,"send",this.Ic);this.nc=N(this,"send-success",this.xd);this.Pu=N(this,"send-error",this.Ry);this.mj=N(this,"remind-confirmation",this.Gk);this.KD=L(this,"send-error");this.Hf=L(this,"send-confirmation");this.Ri="[name\x3dcode]";this.Xk="[name\x3dperiod]";this.Lh="[name\x3dnewPassword]";this.Mh="[name\x3dnewPasswordRepeat]";this.Nh=".newPasswordRepeatValid";this.cb=".confirmationForm";this.kS="[data-container-name\x3dcode]";
this.Kz="[data-container-name\x3dpassword]";this.Ne=v();this.kg=v();this.Sa=v();this.Ta=v();this.Fc=v();this.R=v();this.bC=v();this.oo=v();this.KD.addListener(function(){return NA.a().V.h()});I(this.Hf,"public-confirmation-form","main");return this}m(MA,Q);h(MA);d=MA.prototype;d.getName=q("remind-code-old");
d.init=function(a){MA.c.init.call(this,a);this.Ne=O(this,this.Ri);this.kg=O(this,this.Xk);this.Sa=O(this,this.Lh);this.Ta=O(this,this.Mh);this.Fc=O(this,this.Nh);this.R=O(this,this.cb);this.bC=O(this,this.kS);this.oo=O(this,this.Kz);this.Sa.bindspace(this,"input paste keyup change",function(){this.Sa.val()&&this.Sa.validate().check(this.Sa,!1);this.Ta.change()});this.Ta.bindspace(this,"input paste keyup change",function(){this.Ta.val()&&(this.Ta.valid()?this.Fc.show():this.Fc.hide())});this.L.bindspace(this,
"input.save paste.save keyup.save change.save",function(){this.data.empty().set(this.l.formToArray())});this.Ne.val()&&this.h(this.lf)};d.Ic=function(){this.pa.empty().hide();if(!this.l.valid())return y();this.data.empty().set(this.l.formToArray());return this.G({link:this.Tc,data:this.data,t:this.nc,da:this.Pu,bc:this.mj,Md:this.KD})};d.xd=function(){return this.F({link:this.wa})};d.Ry=function(a){return this.Na(a)};
d.Gk=function(a){this.bC.hide();this.oo.show();this.R.empty().show();this.L.refresh();return this.trigger(this.Hf,{k:this.R,sa:"html",data:zd({},a.response.extra,{identifier:a.response.identifier,type:a.response.type._name}),validate:z(function(){return this.l.valid()},this),success:z(function(a){return this.nc.h(a)},this),Pc:z(function(){return zd({},a.response.extra,{"data['newPassword']":this.data.get("newPassword"),"data['period']":this.data.get("period"),"data['token']":this.data.get("token")})},
this),clear:!1})};E(D.a(),MA);ik=new G(u.qiwi.remind.code);jk=new G(u.qiwi.remind.success);function NA(){Q.call(this);this.r=nk;this.wa=ok;this.tk=new K(u.qiwi.remind);this.An=N(this,"remind",this.Li);this.lj=N(this,"remind-success",this.Fh);this.Bl=N(this,"remind-error",this.Dk);this.kj=N(this,"remind-confirmation",this.Eh);this.BJ=N(this,"remind-confirmation-success",this.mQ);this.Hw=L(this,"remind-error",Rg.bb());this.Mo=L(this,"remind-confirmation");this.Kh=":input[name\x3dlogin]";this.Tk=":input[name\x3dcaptcha]";this.Xk="[name\x3dperiod]";this.Lh="[name\x3dnewPassword]";this.Mh="[name\x3dnewPasswordRepeat]";
this.Nh=".newPasswordRepeatValid";this.cb=".confirmationForm";this.oU="[data-container-name\x3dremind]";this.Kz="[data-container-name\x3dpassword]";this.mb=v();this.Fd=v();this.kg=v();this.Sa=v();this.Ta=v();this.Fc=v();this.R=v();this.PC=v();this.oo=v();I(this.Mo,"public-confirmation-form","main");return this}m(NA,Q);h(NA);d=NA.prototype;d.getName=q("remind-form-old");
d.init=function(a){NA.c.init.call(this,a);this.mb=O(this,this.Kh);this.Fd=O(this,this.Tk);this.kg=O(this,this.Xk);this.Sa=O(this,this.Lh);this.Ta=O(this,this.Mh);this.Fc=O(this,this.Nh);this.R=O(this,this.cb);this.PC=O(this,this.oU);this.oo=O(this,this.Kz);this.Sa.bindspace(this,"input paste keyup change",function(){this.Sa.val()&&this.Sa.validate().check(this.Sa,!1);this.Ta.change()});this.Ta.bindspace(this,"input paste keyup change",function(){this.Ta.val()&&(this.Ta.valid()?this.Fc.show():this.Fc.hide())});
this.L.bindspace(this,"input.save paste.save keyup.save change.save",function(){this.data.empty().set(this.l.formToArray())})};d.Li=function(){this.pa.empty().hide();if(!this.l.valid())return y();this.data.empty().set(this.l.formToArray());return this.G({link:this.tk,data:this.data,t:this.lj,da:this.Bl,bc:this.kj,Md:this.Hw})};d.Fh=function(){return this.F({link:this.wa})};d.Dk=function(a){this.Fd.val("");return this.Na(a)};
d.Eh=function(a){this.PC.hide();this.oo.show();this.R.empty().show();this.L.refresh();return this.trigger(this.Mo,{k:this.R,sa:"html",data:zd({},a.response.extra,{identifier:a.response.identifier,type:a.response.type._name}),validate:z(function(){return this.l.valid()},this),success:z(function(a){return this.BJ.h(a)},this),Pc:z(function(){return{phone:this.data.get("login"),"data['newPassword']":this.data.get("newPassword"),"data['period']":this.data.get("period"),"data['token']":this.data.get("token")}},
this),clear:!1})};d.mQ=function(){return this.F({link:jk})};E(D.a(),NA);nk=new G(u.qiwi.remind.form);ok=new G(u.qiwi.remind.mail);function OA(){HA.call(this);this.Uc=new K(u.qiwi.registration.captcha);return this}m(OA,HA);h(OA);OA.prototype.getName=q("registration-captcha");E(D.a(),OA);Sg.addListener(function(a){if(OA.rc())return OA.a().de.h(a)});function PA(){Q.call(this);this.r=new K(Wj.Be);N(this,"login",this.Gg);this.zn=N(this,"oauth-created",this.Op);return this}m(PA,Q);h(PA);PA.prototype.getName=q("oauth-phone-form");PA.prototype.Db=function(a){this.ca(a);return PA.c.Db.call(this,a)};PA.prototype.Gg=function(){this.pa.empty().hide();return this.l.valid()?this.F({link:this.r,data:this.l.formToArray(),query:""}):y()};PA.prototype.Op=function(a){this.data.empty().set(a.data);return this.ha({query:""})};E(D.a(),PA);bh.addListener(function(a){return PA.a().zn.h(a)});function QA(){Uj.call(this);this.r=new K(Wj.Be);this.nh=L(this,"login-error-attempts",eh.bb());return this}m(QA,Uj);h(QA);QA.prototype.getName=q("oauth-login-form");QA.prototype.Db=function(a){this.ca(a);return QA.c.Db.call(this,a)};QA.prototype.Bk=function(){this.data.set("captchaNeeded",!0);this.data.set("phone",this.data.get("login"));this.data.remove("login");return this.h(this.V)};
QA.prototype.Pp=function(a){this.data.empty().set({phone:a.data.login,accessToken:a.data.access_token,providerUser:a.data.provider_user,providerType:a.data.provider_type,afterRegistration:!0});return this.h(this.V)};E(D.a(),QA);fh.addListener(function(a){return QA.a().ir.h(a)});fh.addListener(function(a){return QA.a().HB.h(a)},1);eh.addListener(function(a){return QA.a().jj.h(a)});function RA(){ek.call(this);this.GD=L(this,"registration-success",fh.bb());return this}m(RA,ek);h(RA);RA.prototype.getName=q("oauth-registration-password");RA.prototype.Db=function(a){this.ca(a);return RA.c.Db.call(this,a)};E(D.a(),RA);function qj(){J.call(this);this.Ub="ul \x3e li";this.r=new K(u.qiwi.menu.breadcrumbs);this.ld=N(this,"refresh",this.vd);this.K=v();this.qo=v();return this}m(qj,J);h(qj);qj.prototype.getName=q("breadcrumbs");qj.prototype.init=function(a){qj.c.init.call(this,a);this.K=O(this,this.Ub)};function rj(){var a=[];qj.a().K.each(function(b,c){a.push(Dd(v(c).text()))});return a}qj.prototype.vd=function(){return this.F({link:this.r,data:mg(),request:this.qo})};E(D.a(),qj);Yg.addListener(function(){if(qj.rc())return qj.a().ld.h()});function SA(){J.call(this);return this}m(SA,J);h(SA);SA.prototype.getName=q("custom-container");E(D.a(),SA);Yg.addListener(function(a){if(SA.rc())return SA.a().ad.h(a)});function TA(){oh.call(this);this.r=new K(u.qiwi.menu.additional);this.ld=N(this,"refresh",this.vd);return this}m(TA,oh);h(TA);TA.prototype.getName=q("additional-menu");TA.prototype.vd=function(){return this.F({link:this.r,request:v("\x3cdiv\x3e")})};E(D.a(),TA);Yg.addListener(function(){});function UA(){oh.call(this);this.bU="[data-container\x3dmenu]";this.JC=v();N(this,"toggle",this.pR);return this}m(UA,oh);h(UA);UA.prototype.getName=q("header-menu");UA.prototype.init=function(a){UA.c.init.call(this,a);this.JC=O(this,this.bU)};UA.prototype.pR=function(a){a.target.toggleClass("active");this.JC.slideToggle("fast")};E(D.a(),UA);function VA(){oh.call(this);this.r=new K(u.qiwi.menu.main);this.ld=N(this,"refresh",this.vd);return this}m(VA,oh);h(VA);VA.prototype.getName=q("main-menu");VA.prototype.vd=function(){return this.F({link:this.r,request:v("\x3cdiv\x3e")})};E(D.a(),VA);Yg.addListener(function(){if(VA.rc())return VA.a().ld.h()});function WA(){Q.call(this);this.r=ng;return this}m(WA,Q);h(WA);WA.prototype.getName=q("main");E(D.a(),WA);function XA(){vh.call(this);return this}m(XA,vh);h(XA);XA.prototype.getName=q("extra");E(D.a(),XA);function YA(){J.call(this);this.r=new K(u.qiwi.provider.top);this.Fb=N(this,"load",this.$b);this.zl=N(this,"provider",this.af);this.pi=L(this,"provider",Vg.bb());I(this.ja,this.getName(),this.Fb.getName());return this}m(YA,J);h(YA);YA.prototype.getName=q("provider-top");YA.prototype.$b=function(a){return this.k.children().size()?y():this.ha(a)};YA.prototype.af=function(a){return this.trigger(this.pi,a)};E(D.a(),YA);function ZA(){J.call(this);this.pV="[data-container\x3dstart]";this.vV="[data-container\x3dtoggle]";this.dS="[data-container\x3danimation]";this.nw=v();this.ow=v();this.hv=v();N(this,"start",this.OQ);N(this,"stop",this.jR);this.UJ=N(this,"start-animation",this.PQ);this.bK=N(this,"stop-animation",this.kR)}m(ZA,Q);h(ZA);d=ZA.prototype;d.init=function(a){ZA.c.init.call(this,a);this.nw=O(this,this.pV);this.ow=O(this,this.vV);this.hv=O(this,this.dS)};
d.OQ=function(){this.nw.hide();this.ow.slideDown("fast",z(function(){this.h(this.UJ)},this))};d.jR=function(){this.nw.show();this.ow.slideUp("fast",z(function(){this.h(this.bK)},this))};
d.PQ=function(){this.ul=this.Uh=306.5;this.rb=new Raphael(this.hv.get(0),this.Uh,this.Uh);this.rb.setViewBox(0,0,this.Uh,this.ul,!0);this.pl=this.rb.set();this.nH=this.rb.path("M207.9,295.4H98.6V19.5c0-4.6,3.7-8.4,8.4-8.4h92.6c4.6,0,8.4,3.7,8.4,8.4V295.4z").attr({fill:"#4A88D7",stroke:"none"});this.pH=this.rb.rect(98.6,89.1,109.3,206.3).attr({fill:"#3C76BD",stroke:"none"});this.oH=this.rb.rect(95.3,295.4,115.9,6.6).attr({fill:"#738DB1",stroke:"none"});this.rH=this.rb.rect(107.1,19.9,92.4,60.3).attr({fill:"#FFFFFF",
stroke:"none"});this.qH=this.rb.path("M162.2,56.9c0.3,0.1,0.5,0.6,0.5,0.9c0.1,0.5-0.1,0.8-0.2,0.7c-0.2-0.1-0.4-0.5-0.6-1C161.9,57.2,161.9,56.8,162.2,56.9 M168.3,66.6c-0.9-1.8-2.4-3.1-4.1-4.1c-0.6-0.4-1.2-0.6-1.8-0.8c-1.3-0.4-2.6-0.5-4.1-0.8c-1.2-0.2-2.2-0.7-3.2-1.4c-0.5-0.4-1-0.9-1.3-1.4c-0.1-0.1-0.4-0.5-0.4-0.7c0,0-0.2,1,0.2,2.3c-4.3-0.2-8.1-2.6-9.8-5.5c-3.2-5.3-2.1-11.8,2.2-14.7c4.2-2.9,10.7-0.8,14.2,4.3c2.2,3.2,2.7,7,1.8,10.1c0,0,0,0,0,0.1c-1.8-1.3-3.5-0.7-3.5-0.7c1.8-0.2,3.3,1.3,3.3,1.3c0.2,0.2,0.4,0.4,0.6,0.6c0,0.1,0.1,0.1,0.1,0.2c0.5,0.7,0.8,1.4,0.9,2.1c3.7-4.7,4.3-11.1,1-16.2c-4.1-6.4-12.9-8-19.7-3.7c-6.7,4.4-8.8,13.1-4.7,19.5c3.4,5.3,11.4,6.9,15.9,5.4c1.7-0.5,7.6-1.1,11.7,3.8c0,0,0.4,0.4,0.5,0.9c0,0,0.1,0.2,0.2,0.1C168.5,67.5,168.6,67.4,168.3,66.6 M159.8,57.9C159.8,57.9,159.8,57.9,159.8,57.9C159.8,57.9,159.8,57.9,159.8,57.9C159.7,57.9,159.7,57.9,159.8,57.9C159.7,57.9,159.7,57.9,159.8,57.9c-0.1,0-0.1,0-0.1,0c-0.2,0-0.4,0-0.5,0.1c-0.4,0.2-0.4,0.8-0.1,1.2c0.1,0.2,0.3,0.3,0.5,0.4c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0.2,0,0.4,0,0.5-0.1c0.4-0.2,0.4-0.8,0.1-1.2C160.2,58.2,160,58,159.8,57.9").attr({fill:"#FFA000",
stroke:"none"});this.pl.push(this.nH);this.pl.push(this.pH);this.pl.push(this.oH);this.pl.push(this.rH);this.pl.push(this.qH);this.Ni=this.rb.set();this.$y=this.rb.path("M199.1,208.1c0,3.9-3.1,7-7,7h-77.7c-3.9,0-7-3.1-7-7V51.4c0-3.9,3.1-7,7-7h77.7c3.9,0,7,3.1,7,7V208.1z").attr({fill:"#B3C1C9",stroke:"none"});this.bz=this.rb.path("M161.3,55.1c0,0.8-0.7,1.5-1.5,1.5h-13.1c-0.8,0-1.5-0.7-1.5-1.5l0,0c0-0.8,0.7-1.5,1.5-1.5h13.1C160.6,53.6,161.3,54.2,161.3,55.1L161.3,55.1z").attr({fill:"#788E9A",stroke:"none"});
this.az=this.rb.rect(114.8,66.6,76.9,126.2).attr({fill:"#FFFFFF",stroke:"none"});this.pt=this.rb.path("M166.4,135.4c0.5,0.2,0.7,0.9,0.8,1.3c0.2,0.8-0.1,1.1-0.3,1c-0.2-0.1-0.6-0.7-0.8-1.5C165.9,135.8,166,135.3,166.4,135.4 M175.4,149.7c-1.3-2.6-3.6-4.6-6-6c-0.9-0.5-1.8-0.9-2.7-1.2c-1.9-0.6-3.8-0.8-6-1.2c-1.8-0.3-3.2-1-4.7-2.1c-0.8-0.5-1.4-1.3-2-2.1c-0.1-0.2-0.6-0.8-0.6-1c0,0-0.3,1.4,0.3,3.4c-6.4-0.3-11.9-3.8-14.5-8.1c-4.7-7.9-3-17.5,3.2-21.7c6.3-4.2,15.8-1.2,20.9,6.4c3.2,4.8,4,10.4,2.6,14.9c0,0,0,0.1,0,0.1c-2.7-2-5.2-1-5.2-1c2.7-0.3,4.9,1.9,4.9,1.9c0.3,0.3,0.6,0.6,0.9,0.9c0.1,0.1,0.1,0.2,0.2,0.3c0.7,1,1.2,2.1,1.3,3.1c5.4-6.9,6.3-16.4,1.5-23.8c-6.1-9.4-19.1-11.9-29-5.4c-9.9,6.5-13,19.4-6.9,28.8c5,7.8,16.8,10.1,23.5,8c2.5-0.8,11.3-1.6,17.3,5.6c0,0,0.5,0.6,0.8,1.3c0,0,0.1,0.2,0.3,0.1C175.8,151,176,150.8,175.4,149.7 M162.9,136.9C162.9,136.9,162.9,136.9,162.9,136.9C162.9,136.9,162.9,136.9,162.9,136.9C162.8,136.9,162.8,136.9,162.9,136.9c-0.1,0-0.1,0-0.1,0c0,0,0,0-0.1,0c-0.3-0.1-0.6,0-0.8,0.1c-0.5,0.4-0.6,1.2-0.2,1.8c0.2,0.3,0.5,0.5,0.8,0.6c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0.1,0c0.3,0,0.6,0,0.8-0.1c0.5-0.4,0.6-1.2,0.2-1.8C163.5,137.2,163.2,137,162.9,136.9").attr({fill:"#FFA000",
stroke:"none"});this.Ni.push(this.$y);this.Ni.push(this.bz);this.Ni.push(this.az);this.Ni.push(this.pt);this.bu=this.rb.set();this.UA=this.rb.path("M74.7,172.3c-3.9,0-7-3.1-7-7V87.3c0-3.9,3.1-7,7-7h157.2c3.9,0,7,3.1,7,7v77.9c0,3.9-3.1,7-7,7H74.7z").attr({fill:"#B3C1C9",stroke:"none"});this.WA=this.rb.rect(75.9,87.7,154.8,77.1).attr({fill:"#FFFFFF",stroke:"none"});this.VA=this.rb.path("M166.4,135.4c0.5,0.2,0.7,0.9,0.8,1.3c0.2,0.8-0.1,1.1-0.3,1c-0.2-0.1-0.6-0.7-0.8-1.5C165.9,135.8,166,135.3,166.4,135.4 M175.4,149.7c-1.3-2.6-3.6-4.6-6-6c-0.9-0.5-1.8-0.9-2.7-1.2c-1.9-0.6-3.8-0.8-6-1.2c-1.8-0.3-3.2-1-4.7-2.1c-0.8-0.5-1.4-1.3-2-2.1c-0.1-0.2-0.6-0.8-0.6-1c0,0-0.3,1.4,0.3,3.4c-6.4-0.3-11.9-3.8-14.5-8.1c-4.7-7.9-3-17.5,3.2-21.7c6.3-4.2,15.8-1.2,20.9,6.4c3.2,4.8,4,10.4,2.6,14.9c0,0,0,0.1,0,0.1c-2.7-2-5.2-1-5.2-1c2.7-0.3,4.9,1.9,4.9,1.9c0.3,0.3,0.6,0.6,0.9,0.9c0.1,0.1,0.1,0.2,0.2,0.3c0.7,1,1.2,2.1,1.3,3.1c5.4-6.9,6.3-16.4,1.5-23.8c-6.1-9.4-19.1-11.9-29-5.4c-9.9,6.5-13,19.4-6.9,28.8c5,7.8,16.8,10.1,23.5,8c2.5-0.8,11.3-1.6,17.3,5.6c0,0,0.5,0.6,0.8,1.3c0,0,0.1,0.2,0.3,0.1C175.8,151,176,150.8,175.4,149.7 M162.9,136.9C162.9,136.9,162.9,136.9,162.9,136.9C162.9,136.9,162.9,136.9,162.9,136.9C162.8,136.9,162.8,136.9,162.9,136.9c-0.1,0-0.1,0-0.1,0c0,0,0,0-0.1,0c-0.3-0.1-0.6,0-0.8,0.1c-0.5,0.4-0.6,1.2-0.2,1.8c0.2,0.3,0.5,0.5,0.8,0.6c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0.1,0c0.3,0,0.6,0,0.8-0.1c0.5-0.4,0.6-1.2,0.2-1.8C163.5,137.2,163.2,137,162.9,136.9").attr({fill:"#FFA000",
stroke:"none"});this.bu.push(this.UA);this.bu.push(this.WA);this.bu.push(this.VA);this.pk=this.rb.set();this.Ex=this.rb.path("M226.8,169.5c0,2-1.6,3.6-3.6,3.6H83.4c-2,0-3.6-1.6-3.6-3.6V83.4c0-2,1.6-3.6,3.6-3.6h139.7c2,0,3.6,1.6,3.6,3.6V169.5z").attr({fill:"#B3C1C9",stroke:"none"});this.Hx=this.rb.rect(85.9,86.8,134.6,79.2).attr({fill:"#FFFFFF",stroke:"none"});this.Fx=this.rb.path("M244.4,202.4c0,2-1.6,3.6-3.6,3.6H65.7c-2,0-3.6-1.6-3.6-3.6l17.6-30.5h147.2L244.4,202.4z").attr({fill:"#A1B0B9",stroke:"none",
"clip-rect":"58,202.4,194.7,12.1"});this.Gx=this.rb.path("M244.4,202.4c0,2-1.6,3.6-3.6,3.6H65.7c-2,0-3.6-1.6-3.6-3.6l17.6-30.5h147.2L244.4,202.4z").attr({fill:"#C8D7E0",stroke:"none","clip-rect":"58,170.6,194.7,31.9"});this.lE=this.rb.path("M166.4,135.4c0.5,0.2,0.7,0.9,0.8,1.3c0.2,0.8-0.1,1.1-0.3,1c-0.2-0.1-0.6-0.7-0.8-1.5C165.9,135.8,166,135.3,166.4,135.4 M175.4,149.7c-1.3-2.6-3.6-4.6-6-6c-0.9-0.5-1.8-0.9-2.7-1.2c-1.9-0.6-3.8-0.8-6-1.2c-1.8-0.3-3.2-1-4.7-2.1c-0.8-0.5-1.4-1.3-2-2.1c-0.1-0.2-0.6-0.8-0.6-1c0,0-0.3,1.4,0.3,3.4c-6.4-0.3-11.9-3.8-14.5-8.1c-4.7-7.9-3-17.5,3.2-21.7c6.3-4.2,15.8-1.2,20.9,6.4c3.2,4.8,4,10.4,2.6,14.9c0,0,0,0.1,0,0.1c-2.7-2-5.2-1-5.2-1c2.7-0.3,4.9,1.9,4.9,1.9c0.3,0.3,0.6,0.6,0.9,0.9c0.1,0.1,0.1,0.2,0.2,0.3c0.7,1,1.2,2.1,1.3,3.1c5.4-6.9,6.3-16.4,1.5-23.8c-6.1-9.4-19.1-11.9-29-5.4c-9.9,6.5-13,19.4-6.9,28.8c5,7.8,16.8,10.1,23.5,8c2.5-0.8,11.3-1.6,17.3,5.6c0,0,0.5,0.6,0.8,1.3c0,0,0.1,0.2,0.3,0.1C175.8,151,176,150.8,175.4,149.7 M162.9,136.9C162.9,136.9,162.9,136.9,162.9,136.9C162.9,136.9,162.9,136.9,162.9,136.9C162.8,136.9,162.8,136.9,162.9,136.9c-0.1,0-0.1,0-0.1,0c0,0,0,0-0.1,0c-0.3-0.1-0.6,0-0.8,0.1c-0.5,0.4-0.6,1.2-0.2,1.8c0.2,0.3,0.5,0.5,0.8,0.6c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0.1,0c0.3,0,0.6,0,0.8-0.1c0.5-0.4,0.6-1.2,0.2-1.8C163.5,137.2,163.2,137,162.9,136.9").attr({fill:"#FFA000",
stroke:"none"});this.pk.push(this.Ex);this.pk.push(this.Hx);this.pk.push(this.Fx);this.pk.push(this.Gx);this.pk.push(this.lE);this.LA=w();this.MA=w();this.NA=w();this.OA=w();this.PA=w();this.QA=w();this.RA=w();x(this.LA).done(z(function(){var a=w();x(a).done(this.MA.resolve);this.pl.attr({"fill-opacity":0});this.Ni.attr({"fill-opacity":0});this.bu.attr({"fill-opacity":0});this.pk.attr({"fill-opacity":0});this.Qb=this.rb.set();this.cg=this.nH.clone();this.Dl=this.pH.clone();this.PB=this.oH.clone();
this.dg=this.rH.clone();this.qj=this.qH.clone();this.Qb.push(this.cg);this.Qb.push(this.Dl);this.Qb.push(this.PB);this.Qb.push(this.dg);this.Qb.push(this.qj);this.Qb.attr({"fill-opacity":0,transform:["s",.5,.5,this.Uh/2,this.ul/2]}).animate({"fill-opacity":1,transform:["s",1,1,this.Uh/2,this.ul/2]},600,"ease-in-out",a.resolve)},this));x(this.MA).done(z(function(){setTimeout(this.NA.resolve,900)},this));x(this.NA).done(z(function(){var a=w(),b=w(),c=w(),e=w(),f=w();x(a,b,c,e,f).done(this.OA.resolve);
this.cg.animate({path:"M199.1,215.4h-91.7V54c0-5.1,3.1-9.2,7-9.2h77.7c3.9,0,7,4.1,7,9.2V215.4z"},1E3,"ease-in-out",a.resolve);this.Dl.animate({x:107.4,y:193.3,width:91.7,height:21.7},1E3,"ease-in-out",b.resolve);this.PB.animate({x:107.4,y:215,width:91.7,height:0},1E3,"ease-in-out",c.resolve);this.dg.animate({x:114.8,y:66.3,width:76.9,height:127},1E3,"ease-in-out",e.resolve);this.qj.animate({path:this.pt.getPath()},1E3,"ease-in-out",f.resolve)},this));x(this.OA).done(z(function(){var a=w(),b=w();x(a,
b).done(this.PA.resolve);this.Qb.animate({"fill-opacity":0},1E3,a.resolve);this.Ni.animate({"fill-opacity":1},1E3,b.resolve)},this));x(this.PA).done(z(function(){var a=w(),b=w(),c=w();x(a,b,c).done(this.QA.resolve);this.Qb.remove();this.Qb=this.rb.set();this.cg=this.$y.clone();this.QB=this.bz.clone();this.dg=this.az.clone();this.qj=this.pt.clone();this.Qb.push(this.cg);this.Qb.push(this.QB);this.Qb.push(this.dg);this.Qb.push(this.qj);this.Ni.attr({"fill-opacity":0});var e=this.VA.getBBox(),f=e.x+
e.width/2,e=e.y+e.height/2,g=this.cg.getBBox(),l=this.UA.getBBox();this.cg.animate({transform:["r",90,f,e,"s",l.height/g.width,l.width/g.height,f,e,"t",-1,-2]},1E3,"ease-in-out",a.resolve);g=this.dg.getBBox();l=this.WA.getBBox();this.dg.animate({transform:["r",90,f,e,"s",l.height/g.width,l.width/g.height,f,e,"t",-1,-2]},1E3,"ease-in-out",c.resolve);this.QB.animate({transform:["r",90,f,e],"fill-opacity":0},1E3,"ease-in-out",b.resolve)},this));x(this.QA).done(z(function(){var a=w(),b=w(),c=w(),e=w();
x(a,b,c,e).done(this.RA.resolve);this.Qb.remove();this.Qb=this.rb.set();this.cg=this.UA.clone();this.dg=this.WA.clone();this.qj=this.VA.clone();this.Dl=this.Fx.clone();this.Wu=this.Gx.clone();this.Qb.push(this.cg);this.Qb.push(this.dg);this.Qb.push(this.qj);this.Qb.push(this.Dl);this.Qb.push(this.Wu);this.Qb.attr({"fill-opacity":1});var f=this.qj.getBBox(),g=f.x+f.width/2,f=f.y+f.height/2,l=this.cg.getBBox(),r=this.Ex.getBBox();this.cg.animate({transform:["s",r.width/l.width,r.height/l.height,g,f]},
1E3,"ease-in-out",a.resolve);a=this.dg.getBBox();l=this.Hx.getBBox();this.dg.animate({transform:["s",l.width/a.width,l.height/a.height,g,f]},1E3,b.resolve);b=this.Dl.getBBox();this.Dl.attr({"fill-opacity":0,transform:["s",.5,.5,"t",0,-1*b.height]}).animate({"fill-opacity":1,transform:["s",1,1,"t",0,0]},1E3,c.resolve);c=this.Wu.getBBox();this.Wu.attr({"fill-opacity":0,transform:["s",.5,.5,"t",0,-1*c.height]}).animate({"fill-opacity":1,transform:["s",1,1,"t",0,0]},1E3,e.resolve)},this));x(this.RA).done(z(function(){this.Qb.remove();
this.pk.attr({"fill-opacity":1});this.Ex.animate({path:"M282.6,161.4c0,1.5-1.2,2.6-2.6,2.6H178.5c-1.5,0-2.6-1.2-2.6-2.6V98.9c0-1.5,1.2-2.6,2.6-2.6H280c1.5,0,2.6,1.2,2.6,2.6V161.4z"},1500,"back-in");this.Hx.animate({x:180.4,y:101.4,width:97.7,height:57.5},1500,"back-in");this.lE.animate({path:"M239.7,138.1c0.3,0.1,0.5,0.7,0.6,0.9c0.1,0.6-0.1,0.8-0.2,0.7c-0.2-0.1-0.4-0.5-0.6-1.1C239.4,138.3,239.4,137.9,239.7,138.1 M246.3,148.4c-0.9-1.9-2.6-3.3-4.4-4.4c-0.6-0.4-1.3-0.6-1.9-0.8c-1.4-0.5-2.8-0.6-4.4-0.8c-1.3-0.2-2.3-0.8-3.4-1.5c-0.6-0.4-1-0.9-1.4-1.5c-0.1-0.1-0.4-0.6-0.4-0.7c0,0-0.2,1,0.3,2.5c-4.6-0.2-8.7-2.8-10.5-5.9c-3.4-5.7-2.2-12.7,2.3-15.8c4.5-3.1,11.5-0.9,15.2,4.6c2.3,3.5,2.9,7.5,1.9,10.8c0,0,0,0,0,0.1c-2-1.4-3.8-0.7-3.8-0.7c2-0.2,3.5,1.4,3.5,1.4c0.2,0.2,0.5,0.4,0.7,0.7c0,0.1,0.1,0.1,0.1,0.2c0.5,0.7,0.8,1.5,1,2.3c3.9-5,4.6-11.9,1.1-17.3c-4.4-6.9-13.9-8.6-21.1-3.9c-7.2,4.7-9.5,14.1-5,20.9c3.6,5.6,12.2,7.4,17.1,5.8c1.8-0.6,8.2-1.1,12.6,4.1c0,0,0.4,0.4,0.6,0.9c0,0,0.1,0.2,0.2,0.1C246.6,149.4,246.7,149.2,246.3,148.4 M237.2,139.1C237.2,139.1,237.2,139.1,237.2,139.1C237.2,139.1,237.2,139.1,237.2,139.1C237.1,139.1,237.1,139.1,237.2,139.1C237.1,139.1,237.1,139.1,237.2,139.1c-0.1,0-0.1,0-0.1,0c-0.2,0-0.4,0-0.6,0.1c-0.4,0.3-0.4,0.9-0.1,1.3c0.1,0.2,0.3,0.4,0.6,0.4c0,0,0,0,0,0l0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0.1,0c0.2,0,0.4,0,0.6-0.1c0.4-0.3,0.4-0.8,0.1-1.3C237.6,139.4,237.4,139.2,237.2,139.1"},
1500,"back-in");this.Fx.animate({path:"M295.4,185.4c0,1.4-1.2,2.6-2.6,2.6H165.7c-1.4,0-2.6-1.2-2.6-2.6l12.7-22.1h106.9L295.4,185.4z","clip-rect":"160.1,185.4,141.3,8.8"},1500,"back-in");this.Gx.animate({path:"M295.4,185.4c0,1.4-1.2,2.6-2.6,2.6H165.7c-1.4,0-2.6-1.2-2.6-2.6l12.7-22.1h106.9L295.4,185.4z","clip-rect":"160.1,162.3,141.3,23.1"},1500,"back-in");this.pl.attr({"fill-opacity":0,transform:["s",.5,.5,this.Uh/2,this.ul/2]}).animate({"fill-opacity":1,transform:["s",1,1,this.Uh/2,this.ul/2]},1500,
"ease-in-out");this.$y.attr({path:"M88.8,196.8c0,2.7-2.2,4.8-4.8,4.8H30.4c-2.7,0-4.8-2.2-4.8-4.8V88.7c0-2.7,2.2-4.8,4.8-4.8H84c2.7,0,4.8,2.2,4.8,4.8V196.8z"});this.bz.attr({path:"M62.8,91.2c0,0.6-0.5,1-1,1h-9c-0.6,0-1-0.5-1-1l0,0c0-0.6,0.5-1,1-1h9C62.3,90.2,62.8,90.7,62.8,91.2L62.8,91.2z"});this.az.attr({x:30.7,y:99.2,width:53.1,height:87.1});this.pt.attr({path:"M66.3,145.5c0.3,0.1,0.5,0.6,0.5,0.9c0.1,0.6-0.1,0.8-0.2,0.7c-0.2-0.1-0.4-0.5-0.6-1.1C66,145.7,66,145.4,66.3,145.5 M72.5,155.3c-0.9-1.8-2.5-3.1-4.2-4.2c-0.6-0.4-1.3-0.6-1.8-0.8c-1.3-0.4-2.6-0.5-4.1-0.8c-1.2-0.2-2.2-0.7-3.2-1.4c-0.5-0.4-1-0.9-1.4-1.4c-0.1-0.1-0.4-0.5-0.4-0.7c0,0-0.2,1,0.2,2.3c-4.4-0.2-8.2-2.6-10-5.6c-3.2-5.4-2.1-12,2.2-15c4.3-2.9,10.9-0.9,14.4,4.4c2.2,3.3,2.8,7.2,1.8,10.3c0,0,0,0,0,0.1c-1.9-1.4-3.6-0.7-3.6-0.7c1.9-0.2,3.4,1.3,3.4,1.3c0.2,0.2,0.4,0.4,0.6,0.6c0,0.1,0.1,0.1,0.1,0.2c0.5,0.7,0.8,1.4,0.9,2.2c3.7-4.8,4.3-11.3,1-16.4c-4.2-6.5-13.2-8.2-20-3.7c-6.8,4.5-9,13.4-4.8,19.9c3.5,5.4,11.6,7,16.2,5.5c1.8-0.6,7.8-1.1,12,3.9c0,0,0.4,0.4,0.6,0.9c0,0,0.1,0.2,0.2,0.1C72.8,156.2,72.9,156.1,72.5,155.3 M63.9,146.5C63.9,146.5,63.9,146.5,63.9,146.5C63.9,146.5,63.8,146.5,63.9,146.5C63.8,146.5,63.8,146.5,63.9,146.5C63.8,146.5,63.8,146.5,63.9,146.5c-0.1,0-0.1,0-0.1,0c-0.2,0-0.4,0-0.5,0.1c-0.4,0.3-0.4,0.8-0.1,1.3c0.1,0.2,0.3,0.3,0.5,0.4c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0.2,0,0.4,0,0.5-0.1c0.4-0.3,0.4-0.8,0.1-1.3C64.3,146.7,64.1,146.6,63.9,146.5"});
this.Ni.attr({"fill-opacity":0,transform:["s",.5,.5,this.Uh/2,this.ul/2]}).animate({"fill-opacity":1,transform:["s",1,1,this.Uh/2,this.ul/2]},1500,"ease-in-out")},this));this.LA.resolve()};d.kR=function(){this.LA.reject();this.MA.reject();this.NA.reject();this.OA.reject();this.PA.reject();this.QA.reject();this.RA.reject();this.hv.empty()};d.getName=q("what-is-qiwi-animation");E(D.a(),ZA);va("template.provider.list",Lj.df.list);va("template.search.list",Lj.search.list);va("template.pub.search.list",Lj.kz.search.list);va("template.oauth.providers.main",Lj.De.ef.vk);va("template.oauth.providers.person",Lj.De.ef.oF);va("template.oauth.providers.landing",Lj.De.ef.kE);va("template.oauth.providers.list",Lj.De.ef.list);