text: window.Dom7=function(){"use strict";function a(a,b){var c=[],d=0;if(a&&!b&&a instanceof i)return a;if(a)if("string"==typeof a){var e,f,g=a.trim();if(g.indexOf("<")>=0&&g.indexOf(">")>=0){var h="div";for(0===g.indexOf("<li")&&(h="ul"),0===g.indexOf("<tr")&&(h="tbody"),0!==g.indexOf("<td")&&0!==g.indexOf("<th")||(h="tr"),0===g.indexOf("<tbody")&&(h="table"),0===g.indexOf("<option")&&(h="select"),f=document.createElement(h),f.innerHTML=g,d=0;d<f.childNodes.length;d+=1)c.push(f.childNodes[d])}else for(e=b||"#"!==a[0]||a.match(/[ .<>:~]/)?(b||document).querySelectorAll(a.trim()):[document.getElementById(a.trim().split("#")[1])],d=0;d<e.length;d+=1)e[d]&&c.push(e[d])}else if(a.nodeType||a===window||a===document)c.push(a);else if(a.length>0&&a[0].nodeType)for(d=0;d<a.length;d+=1)c.push(a[d]);return new i(c)}function b(b){function c(c,d,e){var g=arguments;c&&a(document).trigger(c,d),e&&(e in f&&f[e](g[3],g[4],g[5],g[6]),b[e]&&b[e](g[3],g[4],g[5],g[6]))}var d={method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},e=["beforeSend","error","complete","success","statusCode"];b.type&&(b.method=b.type);var f=p;o.each(f,function(a,b){e.indexOf(a)<0&&(d[a]=b)}),o.each(d,function(a,c){a in b||(b[a]=c)}),b.url||(b.url=window.location.toString());var g=b.url.indexOf("?")>=0?"&":"?",h=b.method.toUpperCase();if(("GET"===h||"HEAD"===h||"OPTIONS"===h||"DELETE"===h)&&b.data){var i;i="string"==typeof b.data?b.data.indexOf("?")>=0?b.data.split("?")[1]:b.data:o.serializeObject(b.data),i.length&&(b.url+=g+i,"?"===g&&(g="&"))}if("json"===b.dataType&&b.url.indexOf("callback=")>=0){var j,k="f7jsonp_"+(Date.now()+(q+=1)),l=b.url.split("callback="),m=l[0]+"callback="+k;if(l[1].indexOf("&")>=0){var n=l[1].split("&").filter(function(a){return a.indexOf("=")>0}).join("&");n.length>0&&(m+="&"+n)}var r=document.createElement("script");return r.type="text/javascript",r.onerror=function(){clearTimeout(j),c(void 0,void 0,"error",null,"scripterror"),c("ajaxComplete ajax:complete",{scripterror:!0},"complete",null,"scripterror")},r.src=m,window[k]=function(a){clearTimeout(j),c(void 0,void 0,"success",a),r.parentNode.removeChild(r),r=null,delete window[k]},document.querySelector("head").appendChild(r),void(b.timeout>0&&(j=setTimeout(function(){r.parentNode.removeChild(r),r=null,c(void 0,void 0,"error",null,"timeout")},b.timeout)))}"GET"!==h&&"HEAD"!==h&&"OPTIONS"!==h&&"DELETE"!==h||!1===b.cache&&(b.url+=g+"_nocache"+Date.now());var s=new XMLHttpRequest;s.requestUrl=b.url,s.requestParameters=b,s.open(h,b.url,b.async,b.user,b.password);var t=null;if(("POST"===h||"PUT"===h||"PATCH"===h)&&b.data)if(b.processData){var u=[ArrayBuffer,Blob,Document,FormData];if(u.indexOf(b.data.constructor)>=0)t=b.data;else{var v="---------------------------"+Date.now().toString(16);"multipart/form-data"===b.contentType?s.setRequestHeader("Content-Type","multipart/form-data; boundary="+v):s.setRequestHeader("Content-Type",b.contentType),t="";var w=o.serializeObject(b.data);if("multipart/form-data"===b.contentType){v="---------------------------"+Date.now().toString(16),w=w.split("&");for(var x=[],y=0;y<w.length;y+=1)x.push('Content-Disposition: form-data; name="'+_data[y].split("=")[0]+'"\r\n\r\n'+_data[y].split("=")[1]+"\r\n");t="--"+v+"\r\n"+x.join("--"+v+"\r\n")+"--"+v+"--\r\n"}else t=w}}else t=b.data;b.headers&&o.each(b.headers,function(a,b){s.setRequestHeader(a,b)}),void 0===b.crossDomain&&(b.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(b.url)&&RegExp.$2!==window.location.host),b.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),b.xhrFields&&o.each(b.xhrFields,function(a,b){s[a]=b});var z;return s.onload=function(a){if(z&&clearTimeout(z),s.status>=200&&s.status<300||0===s.status){var d;if("json"===b.dataType)try{d=JSON.parse(s.responseText),c("ajaxSuccess ajax:success",{xhr:s},"success",d,s.status,s)}catch(a){c("ajaxError ajax:error",{xhr:s,parseerror:!0},"error",s,"parseerror")}else d="text"===s.responseType||""===s.responseType?s.responseText:s.response,c("ajaxSuccess ajax:success",{xhr:s},"success",d,s.status,s)}else c("ajaxError ajax:error",{xhr:s},"error",s,s.status);b.statusCode&&(f.statusCode&&f.statusCode[s.status]&&f.statusCode[s.status](s),b.statusCode[s.status]&&b.statusCode[s.status](s)),c("ajaxComplete ajax:complete",{xhr:s},"complete",s,s.status)},s.onerror=function(a){z&&clearTimeout(z),c("ajaxError ajax:error",{xhr:s},"error",s,s.status),c("ajaxComplete ajax:complete",{xhr:s,error:!0},"complete",s,"error")},c("ajaxStart ajax:start",{xhr:s},"start",s),c(void 0,void 0,"beforeSend",s),b.timeout>0&&(s.onabort=function(){z&&clearTimeout(z)},z=setTimeout(function(){s.abort(),c("ajaxError ajax:error",{xhr:s,timeout:!0},"error",s,"timeout"),c("ajaxComplete ajax:complete",{xhr:s,timeout:!0},"complete",s,"timeout")},b.timeout)),s.send(t),s}function c(b){for(var c=[],d=arguments.length-1;d-- >0;)c[d]=arguments[d+1];var e,f,g,h,i;if("function"==typeof c[1]){var j;j=c,e=j[0],g=j[1],h=j[2],i=j[3]}else{var k;k=c,e=k[0],f=k[1],g=k[2],h=k[3],i=k[4]}return[g,h].forEach(function(a){"string"==typeof a&&(i=a,a===g?g=void 0:h=void 0)}),i=i||("getJSON"===b?"json":void 0),a.ajax({url:e,method:"post"===b?"POST":"GET",data:f,success:g,error:h,dataType:i})}function d(){for(var a=[],b=arguments.length;b--;)a[b]=arguments[b];return a.unshift("get"),c.apply(this,a)}function e(){for(var a=[],b=arguments.length;b--;)a[b]=arguments[b];return a.unshift("post"),c.apply(this,a)}function f(){for(var a=[],b=arguments.length;b--;)a[b]=arguments[b];return a.unshift("getJSON"),c.apply(this,a)}function g(b,c){var d=this,e={props:a.extend({},b),params:a.extend({duration:300,easing:"swing"},c),elements:d,animating:!1,que:[],easingProgress:function(a,b){return"swing"===a?.5-Math.cos(b*Math.PI)/2:"function"==typeof a?a(b):b},stop:function(){e.frameId&&o.cancelAnimationFrame(e.frameId),e.animating=!1,e.elements.each(function(a,b){delete b.dom7AnimateInstance}),e.que=[]},done:function(a){if(e.animating=!1,e.elements.each(function(a,b){delete b.dom7AnimateInstance}),a&&a(d),e.que.length>0){var b=e.que.shift();e.animate(b[0],b[1])}},animate:function(a,b){function c(){g=(new Date).getTime();var m,n;l||(l=!0,b.begin&&b.begin(d)),null===i&&(i=g),b.progress&&b.progress(d,Math.max(Math.min((g-i)/b.duration,1),0),i+b.duration-g<0?0:i+b.duration-g,i),f.forEach(function(c){var d=c;h||d.done||Object.keys(a).forEach(function(c){if(!h&&!d.done){m=Math.max(Math.min((g-i)/b.duration,1),0),n=e.easingProgress(b.easing,m);var l=d[c],o=l.initialValue,p=l.finalValue,q=l.unit;d[c].currentValue=o+n*(p-o);var r=d[c].currentValue;if((p>o&&r>=p||p<o&&r<=p)&&(d.container.style[c]=p+q,k+=1,k===Object.keys(a).length&&(d.done=!0,j+=1),j===f.length&&(h=!0)),h)return void e.done(b.complete);d.container.style[c]=r+q}})}),h||(e.frameId=o.requestAnimationFrame(c))}if(e.animating)return e.que.push([a,b]),e;var f=[];e.elements.each(function(b,c){var d,g,h,i,j;c.dom7AnimateInstance||(e.elements[b].dom7AnimateInstance=e),f[b]={container:c},Object.keys(a).forEach(function(e){d=window.getComputedStyle(c,null).getPropertyValue(e).replace(",","."),g=parseFloat(d),h=d.replace(g,""),i=parseFloat(a[e]),j=a[e]+h,f[b][e]={initialFullValue:d,initialValue:g,unit:h,finalValue:i,finalFullValue:j,currentValue:g}})});var g,h,i=null,j=0,k=0,l=!1;return e.animating=!0,e.frameId=o.requestAnimationFrame(c),e}};if(0===e.elements.length)return d;for(var f,g=0;g<e.elements.length;g+=1)e.elements[g].dom7AnimateInstance?f=e.elements[g].dom7AnimateInstance:e.elements[g].dom7AnimateInstance=e;return f||(f=e),"stop"===b?f.stop():f.animate(e.props,e.params),d}function h(){for(var a=this,b=0;b<a.length;b+=1)a[b].dom7AnimateInstance&&a[b].dom7AnimateInstance.stop()}for(var i=function(a){for(var b=this,c=0;c<a.length;c+=1)b[c]=a[c];return b.length=a.length,this},j=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],k={},l=0;l<j.length;l+=1)for(var m=j[l].letters,n=0;n<m.length;n+=1)k[m[n]]=j[l].base;var o={parseUrlQuery:function(a){var b,c,d,e,f={},g=a||window.location.href;if("string"==typeof g&&g.length)for(g=g.indexOf("?")>-1?g.replace(/\S*\?/,""):"",c=g.split("&").filter(function(a){return""!==a}),e=c.length,b=0;b<e;b+=1)d=c[b].replace(/#\S+/g,"").split("="),f[decodeURIComponent(d[0])]=void 0===d[1]?void 0:decodeURIComponent(d[1])||"";return f},isArray:function(a){return Array.isArray(a)},each:function(a,b){if("object"==typeof a&&b)if(Array.isArray(a)||a instanceof i){for(var c=0;c<a.length;c++)if(!1===b(c,a[c]))return}else for(var d in a)if(a.hasOwnProperty(d)&&!1===b(d,a[d]))return},unique:function(a){for(var b=[],c=0;c<a.length;c+=1)-1===b.indexOf(a[c])&&b.push(a[c]);return b},serializeObject:function(a,b){function c(a){if(b.length>0){for(var c="",d=0;d<b.length;d+=1)c+=0===d?b[d]:"["+encodeURIComponent(b[d])+"]";return c+"["+encodeURIComponent(a)+"]"}return encodeURIComponent(a)}function d(a){return encodeURIComponent(a)}if(void 0===b&&(b=[]),"string"==typeof a)return a;var e,f=[];for(var g in a)if(a.hasOwnProperty(g)){var h=void 0;if(Array.isArray(a[g])){h=[];for(var i=0;i<a[g].length;i+=1)Array.isArray(a[g][i])||"object"!=typeof a[g][i]?h.push(c(g)+"[]="+d(a[g][i])):(e=b.slice(),e.push(g),e.push(String(i)),h.push(o.serializeObject(a[g][i],e)));h.length>0&&f.push(h.join("&"))}else null===a[g]||""===a[g]?f.push(c(g)+"="):"object"==typeof a[g]?(e=b.slice(),e.push(g),""!==(h=o.serializeObject(a[g],e))&&f.push(h)):void 0!==a[g]&&""!==a[g]?f.push(c(g)+"="+d(a[g])):""===a[g]&&f.push(c(g))}return f.join("&")},toCamelCase:function(a){return a.toLowerCase().replace(/-(.)/g,function(a,b){return b.toUpperCase()})},dataset:function(b){return a(b).dataset()},getTranslate:function(a,b){void 0===b&&(b="x");var c,d,e,f=window.getComputedStyle(a,null);return window.WebKitCSSMatrix?(d=f.transform||f.webkitTransform,d.split(",").length>6&&(d=d.split(", ").map(function(a){return a.replace(",",".")}).join(", ")),e=new window.WebKitCSSMatrix("none"===d?"":d)):(e=f.transform||f.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),c=e.toString().split(",")),"x"===b&&(d=window.WebKitCSSMatrix?e.m41:16===c.length?parseFloat(c[12]):parseFloat(c[4])),"y"===b&&(d=window.WebKitCSSMatrix?e.m42:16===c.length?parseFloat(c[13]):parseFloat(c[5])),d||0},requestAnimationFrame:function(a){return window.requestAnimationFrame?window.requestAnimationFrame(a):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(a):window.setTimeout(a,1e3/60)},cancelAnimationFrame:function(a){return window.cancelAnimationFrame?window.cancelAnimationFrame(a):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(a):window.clearTimeout(a)},supportTouch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),removeDiacritics:function(a){return a.replace(/[^\u0000-\u007E]/g,function(a){return k[a]||a})},extend:function(){for(var a=[],b=arguments.length;b--;)a[b]=arguments[b];for(var c=Object(a[0]),d=1;d<a.length;d+=1){var e=a[d];if(void 0!==e&&null!==e)for(var f=Object.keys(Object(e)),g=0,h=f.length;g<h;g+=1){var i=f[g],j=Object.getOwnPropertyDescriptor(e,i);void 0!==j&&j.enumerable&&("object"==typeof c[i]&&"object"==typeof e[i]?o.extend(c[i],e[i]):c[i]=e[i])}}return c}};o.parseQuery=o.parseUrlQuery,o.param=o.serializeObject;var p={};a.ajaxSetup=function(a){a.type&&!a.method&&(a.method=a.type),o.each(a,function(a,b){p[a]=b})};for(var q=0,r={scrollTo:function(a,b,c,d,e){return void 0===d&&(d="swing"),4===arguments.length&&"function"==typeof d&&(e=d,d=void 0),this.each(function(){function f(a){void 0===a&&(a=(new Date).getTime()),null===s&&(s=a);var b,i=Math.max(Math.min((a-s)/c,1),0),j="linear"===d?i:.5-Math.cos(i*Math.PI)/2;if(q&&(m=g+j*(k-g)),r&&(n=h+j*(l-h)),q&&k>g&&m>=k&&(p.scrollTop=k,b=!0),q&&k<g&&m<=k&&(p.scrollTop=k,b=!0),r&&l>h&&n>=l&&(p.scrollLeft=l,b=!0),r&&l<h&&n<=l&&(p.scrollLeft=l,b=!0),b)return void(e&&e());q&&(p.scrollTop=m),r&&(p.scrollLeft=n),o.requestAnimationFrame(f)}var g,h,i,j,k,l,m,n,p=this,q=b>0||0===b,r=a>0||0===a;if(void 0===d&&(d="swing"),q&&(g=p.scrollTop,c||(p.scrollTop=b)),r&&(h=p.scrollLeft,c||(p.scrollLeft=a)),c){q&&(i=p.scrollHeight-p.offsetHeight,k=Math.max(Math.min(b,i),0)),r&&(j=p.scrollWidth-p.offsetWidth,l=Math.max(Math.min(a,j),0));var s=null;q&&k===g&&(q=!1),r&&l===h&&(r=!1),o.requestAnimationFrame(f)}})},scrollTop:function(a,b,c,d){3===arguments.length&&"function"==typeof c&&(d=c,c=void 0);var e=this;return void 0===a?e.length>0?e[0].scrollTop:null:e.scrollTo(void 0,a,b,c,d)},scrollLeft:function(a,b,c,d){3===arguments.length&&"function"==typeof c&&(d=c,c=void 0);var e=this;return void 0===a?e.length>0?e[0].scrollLeft:null:e.scrollTo(a,void 0,b,c,d)}},s=({addClass:function(a){var b=this;if(void 0===a)return this;for(var c=a.split(" "),d=0;d<c.length;d+=1)for(var e=0;e<this.length;e+=1)void 0!==b[e].classList&&b[e].classList.add(c[d]);return this},removeClass:function(a){for(var b=this,c=a.split(" "),d=0;d<c.length;d+=1)for(var e=0;e<this.length;e+=1)void 0!==b[e].classList&&b[e].classList.remove(c[d]);return this},hasClass:function(a){return!!this[0]&&this[0].classList.contains(a)},toggleClass:function(a){for(var b=this,c=a.split(" "),d=0;d<c.length;d+=1)for(var e=0;e<this.length;e+=1)void 0!==b[e].classList&&b[e].classList.toggle(c[d]);return this},attr:function(a,b){var c=arguments,d=this;if(1!==arguments.length||"string"!=typeof a){for(var e=0;e<this.length;e+=1)if(2===c.length)d[e].setAttribute(a,b);else for(var f in a)d[e][f]=a[f],d[e].setAttribute(f,a[f]);return this}if(this[0])return this[0].getAttribute(a)},removeAttr:function(a){for(var b=this,c=0;c<this.length;c+=1)b[c].removeAttribute(a);return this},prop:function(a,b){var c=arguments,d=this;if(1!==arguments.length||"string"!=typeof a){for(var e=0;e<this.length;e+=1)if(2===c.length)d[e][a]=b;else for(var f in a)d[e][f]=a[f];return this}if(this[0])return this[0][a]},data:function(a,b){var c,d=this;if(void 0!==b){for(var e=0;e<this.length;e+=1)c=d[e],c.dom7ElementDataStorage||(c.dom7ElementDataStorage={}),c.dom7ElementDataStorage[a]=b;return this}if(c=this[0]){if(c.dom7ElementDataStorage&&a in c.dom7ElementDataStorage)return c.dom7ElementDataStorage[a];var f=c.getAttribute("data-"+a);if(f)return f}},removeData:function(a){for(var b=this,c=0;c<this.length;c+=1){var d=b[c];d.dom7ElementDataStorage&&d.dom7ElementDataStorage[a]&&(d.dom7ElementDataStorage[a]=null,delete d.dom7ElementDataStorage[a])}},dataset:function(){var a=this[0];if(a){var b={};if(a.dataset)for(var c in a.dataset)b[c]=a.dataset[c];else for(var d=0;d<a.attributes.length;d+=1){var e=a.attributes[d];e.name.indexOf("data-")>=0&&(b[o.toCamelCase(e.name.split("data-")[1])]=e.value)}for(var f in b)"false"===b[f]?b[f]=!1:"true"===b[f]?b[f]=!0:parseFloat(b[f])===1*b[f]&&(b[f]*=1);return b}},val:function(a){var b=this;if(void 0!==a){for(var c=0;c<this.length;c+=1)b[c].value=a;return this}if(this[0]){if(this[0].multiple&&"select"===this[0].nodeName.toLowerCase()){for(var d=[],e=0;e<this[0].selectedOptions.length;e+=1)d.push(b[0].selectedOptions[e].value);return d}return this[0].value}},transform:function(a){for(var b=this,c=0;c<this.length;c+=1){var d=b[c].style;d.webkitTransform=a,d.transform=a}return this},transition:function(a){var b=this;"string"!=typeof a&&(a+="ms");for(var c=0;c<this.length;c+=1){var d=b[c].style;d.webkitTransitionDuration=a,d.transitionDuration=a}return this},on:function(){function b(b){var c=b.target,d=b.target.dom7EventData||[];if(d.unshift(b),a(c).is(g))h.apply(c,d);else for(var e=a(c).parents(),f=0;f<e.length;f+=1)a(e[f]).is(g)&&h.apply(e[f],d)}function c(a){var b=a.target.dom7EventData||[];b.unshift(a),h.apply(this,b)}for(var d=this,e=[],f=arguments.length;f--;)e[f]=arguments[f];var g,h,i=e[0],j=!1;"function"==typeof e[1]?(g=!1,h=e[1],j=e[2]):(g=e[1],h=e[2],j=e[3]);for(var k,l=i.split(" "),m=0;m<this.length;m+=1){var n=d[m];if(g)for(k=0;k<l.length;k+=1)n.dom7LiveListeners||(n.dom7LiveListeners=[]),n.dom7LiveListeners.push({type:i,listener:h,proxyListener:b}),n.addEventListener(l[k],b,j);else for(k=0;k<l.length;k+=1)n.dom7Listeners||(n.dom7Listeners=[]),n.dom7Listeners.push({type:i,listener:h,proxyListener:c}),n.addEventListener(l[k],c,j)}return this},off:function(){for(var a=this,b=[],c=arguments.length;c--;)b[c]=arguments[c];var d,e,f=b[0],g=!1;"function"==typeof b[1]?(d=!1,e=b[1],g=b[2]):(d=b[1],e=b[2],g=b[3]);for(var h=f.split(" "),i=0;i<h.length;i+=1)for(var j=0;j<this.length;j+=1){var k=a[j];if(d){if(k.dom7LiveListeners)for(var l=0;l<k.dom7LiveListeners.length;l+=1)e?k.dom7LiveListeners[l].listener===e&&k.removeEventListener(h[i],k.dom7LiveListeners[l].proxyListener,g):k.dom7Listeners[l].type===h[i]&&k.removeEventListener(h[i],k.dom7LiveListeners[l].proxyListener,g)}else if(k.dom7Listeners)for(var m=0;m<k.dom7Listeners.length;m+=1)e?k.dom7Listeners[m].listener===e&&k.removeEventListener(h[i],k.dom7Listeners[m].proxyListener,g):k.dom7Listeners[m].type===h[i]&&k.removeEventListener(h[i],k.dom7Listeners[m].proxyListener,g)}return this},once:function(a,b,c,d){function e(g){var h=g.target.dom7EventData||[];c.apply(this,h),f.off(a,b,e,d)}var f=this;return"function"==typeof b&&(c=arguments[1],d=arguments[2],b=!1),f.on(a,b,e,d)},trigger:function(){for(var a=this,b=[],c=arguments.length;c--;)b[c]=arguments[c];for(var d=b[0].split(" "),e=b[1],f=0;f<d.length;f+=1)for(var g=0;g<this.length;g+=1){var h=void 0;try{h=new CustomEvent(d[f],{detail:e,bubbles:!0,cancelable:!0})}catch(a){h=document.createEvent("Event"),h.initEvent(d[f],!0,!0),h.detail=e}a[g].dom7EventData=b.filter(function(a,b){return b>0}),a[g].dispatchEvent(h),a[g].dom7EventData=[],delete a[g].dom7EventData}return this},transitionEnd:function(a){function b(f){if(f.target===this)for(a.call(this,f),c=0;c<d.length;c+=1)e.off(d[c],b)}var c,d=["webkitTransitionEnd","transitionend"],e=this;if(a)for(c=0;c<d.length;c+=1)e.on(d[c],b);return this},animationEnd:function(a){function b(f){for(a(f),c=0;c<d.length;c+=1)e.off(d[c],b)}var c,d=["webkitAnimationEnd","animationend"],e=this;if(a)for(c=0;c<d.length;c+=1)e.on(d[c],b);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(a){if(this.length>0){if(a){var b=this.styles();return this[0].offsetWidth+parseFloat(b.getPropertyValue("margin-right"))+parseFloat(b.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(a){if(this.length>0){if(a){var b=this.styles();return this[0].offsetHeight+parseFloat(b.getPropertyValue("margin-top"))+parseFloat(b.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var a=this[0],b=a.getBoundingClientRect(),c=document.body,d=a.clientTop||c.clientTop||0,e=a.clientLeft||c.clientLeft||0,f=a===window?window.scrollY:a.scrollTop,g=a===window?window.scrollX:a.scrollLeft;return{top:b.top+f-d,left:b.left+g-e}}return null},hide:function(){for(var a=this,b=0;b<this.length;b+=1)a[b].style.display="none";return this},show:function(){for(var a=this,b=0;b<this.length;b+=1)a[b].style.display="block";return this},styles:function(){if(this[0])return window.getComputedStyle(this[0],null)},css:function(a,b){var c,d=this;if(1===arguments.length){if("string"!=typeof a){for(c=0;c<this.length;c+=1)for(var e in a)d[c].style[e]=a[e];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(a)}if(2===arguments.length&&"string"==typeof a){for(c=0;c<this.length;c+=1)d[c].style[a]=b;return this}return this},each:function(a){var b=this;if(!a)return this;for(var c=0;c<this.length;c+=1)if(!1===a.call(b[c],c,b[c]))return b;return this},filter:function(a){for(var b=[],c=this,d=0;d<c.length;d+=1)a.call(c[d],d,c[d])&&b.push(c[d]);return new i(b)},html:function(a){var b=this;if(void 0===a)return this[0]?this[0].innerHTML:void 0;for(var c=0;c<this.length;c+=1)b[c].innerHTML=a;return this},text:function(a){var b=this;if(void 0===a)return this[0]?this[0].textContent.trim():null;for(var c=0;c<this.length;c+=1)b[c].textContent=a;return this},is:function(b){var c,d,e=this[0];if(!e||void 0===b)return!1;if("string"==typeof b){if(e.matches)return e.matches(b);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(b);if(e.msMatchesSelector)return e.msMatchesSelector(b);for(c=a(b),d=0;d<c.length;d+=1)if(c[d]===e)return!0;return!1}if(b===document)return e===document;if(b===window)return e===window;if(b.nodeType||b instanceof i){for(c=b.nodeType?[b]:b,d=0;d<c.length;d+=1)if(c[d]===e)return!0;return!1}return!1},indexOf:function(a){for(var b=this,c=0;c<this.length;c+=1)if(b[c]===a)return c},index:function(){var a,b=this[0];if(b){for(a=0;null!==(b=b.previousSibling);)1===b.nodeType&&(a+=1);return a}},eq:function(a){if(void 0===a)return this;var b,c=this.length;return a>c-1?new i([]):a<0?(b=c+a,new i(b<0?[]:[this[b]])):new i([this[a]])},append:function(){for(var a=this,b=[],c=arguments.length;c--;)b[c]=arguments[c];for(var d,e=0;e<b.length;e+=1){d=b[e];for(var f=0;f<this.length;f+=1)if("string"==typeof d){var g=document.createElement("div");for(g.innerHTML=d;g.firstChild;)a[f].appendChild(g.firstChild)}else if(d instanceof i)for(var h=0;h<d.length;h+=1)a[f].appendChild(d[h]);else a[f].appendChild(d)}return this},appendTo:function(b){return a(b).append(this),this},prepend:function(a){var b,c,d=this;for(b=0;b<this.length;b+=1)if("string"==typeof a){var e=document.createElement("div");for(e.innerHTML=a,c=e.childNodes.length-1;c>=0;c-=1)d[b].insertBefore(e.childNodes[c],d[b].childNodes[0])}else if(a instanceof i)for(c=0;c<a.length;c+=1)d[b].insertBefore(a[c],d[b].childNodes[0]);else d[b].insertBefore(a,d[b].childNodes[0]);return this},prependTo:function(b){return a(b).prepend(this),this},insertBefore:function(b){for(var c=this,d=a(b),e=0;e<this.length;e+=1)if(1===d.length)d[0].parentNode.insertBefore(c[e],d[0]);else if(d.length>1)for(var f=0;f<d.length;f+=1)d[f].parentNode.insertBefore(c[e].cloneNode(!0),d[f])},insertAfter:function(b){for(var c=this,d=a(b),e=0;e<this.length;e+=1)if(1===d.length)d[0].parentNode.insertBefore(c[e],d[0].nextSibling);else if(d.length>1)for(var f=0;f<d.length;f+=1)d[f].parentNode.insertBefore(c[e].cloneNode(!0),d[f].nextSibling)},next:function(b){return new i(this.length>0?b?this[0].nextElementSibling&&a(this[0].nextElementSibling).is(b)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(b){var c=[],d=this[0];if(!d)return new i([]);for(;d.nextElementSibling;){var e=d.nextElementSibling;b?a(e).is(b)&&c.push(e):c.push(e),d=e}return new i(c)},prev:function(b){if(this.length>0){var c=this[0];return new i(b?c.previousElementSibling&&a(c.previousElementSibling).is(b)?[c.previousElementSibling]:[]:c.previousElementSibling?[c.previousElementSibling]:[])}return new i([])},prevAll:function(b){var c=[],d=this[0];if(!d)return new i([]);for(;d.previousElementSibling;){var e=d.previousElementSibling;b?a(e).is(b)&&c.push(e):c.push(e),d=e}return new i(c)},siblings:function(a){return this.nextAll(a).add(this.prevAll(a))},parent:function(b){for(var c=this,d=[],e=0;e<this.length;e+=1)null!==c[e].parentNode&&(b?a(c[e].parentNode).is(b)&&d.push(c[e].parentNode):d.push(c[e].parentNode));return a(o.unique(d))},parents:function(b){for(var c=this,d=[],e=0;e<this.length;e+=1)for(var f=c[e].parentNode;f;)b?a(f).is(b)&&d.push(f):d.push(f),f=f.parentNode;return a(o.unique(d))},closest:function(a){var b=this;return void 0===a?new i([]):(b.is(a)||(b=b.parents(a).eq(0)),b)},find:function(a){for(var b=this,c=[],d=0;d<this.length;d+=1)for(var e=b[d].querySelectorAll(a),f=0;f<e.length;f+=1)c.push(e[f]);return new i(c)},children:function(b){for(var c=this,d=[],e=0;e<this.length;e+=1)for(var f=c[e].childNodes,g=0;g<f.length;g+=1)b?1===f[g].nodeType&&a(f[g]).is(b)&&d.push(f[g]):1===f[g].nodeType&&d.push(f[g]);return new i(o.unique(d))},remove:function(){for(var a=this,b=0;b<this.length;b+=1)a[b].parentNode&&a[b].parentNode.removeChild(a[b]);return this},detach:function(){return this.remove()},add:function(){for(var b=[],c=arguments.length;c--;)b[c]=arguments[c];var d,e,f=this;for(d=0;d<b.length;d+=1){var g=a(b[d]);for(e=0;e<g.length;e+=1)f[f.length]=g[e],f.length+=1}return f},empty:function(){for(var a=this,b=0;b<this.length;b+=1){var c=a[b];if(1===c.nodeType){for(var d=0;d<c.childNodes.length;d+=1)c.childNodes[d].parentNode&&c.childNodes[d].parentNode.removeChild(c.childNodes[d]);c.textContent=""}}return this}}),t="click blur focus focusin focusout keyup keydown keypress submit change mousedown mousemove mouseup mouseenter mouseleave mouseout mouseover touchstart touchend touchmove resize scroll".split(" "),u="resize scroll".split(" "),v=0;v<t.length;v+=1)!function(b){s[b]=function(c,d,e){var f=this;if(void 0===c){for(var g=0;g<this.length;g+=1)u.indexOf(b)<0&&(b in f[g]?f[g][b]():a(f[g]).trigger(b));return this}return this.on(b,c,d,e)}}(t[v]);return function(){return Object.keys(o).forEach(function(b){a[b]=o[b]}),Object.keys(s).forEach(function(a){i.prototype[a]=s[a]}),Object.keys(r).forEach(function(a){i.prototype[a]=r[a]}),i.prototype.animate=g,i.prototype.stop=h,a.ajax=b,a.get=d,a.post=e,a.getJSON=f,a.fn=i.prototype,a}()}(),window.Template7=function(){"use strict";function a(a){return Array.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.apply(a)}function b(a){return"function"==typeof a}function c(a){return(void 0!==g&&g.escape?g.escape(a):a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function d(a){var b,c,d,e=a.replace(/[{}#}]/g,"").split(" "),f=[];for(c=0;c<e.length;c+=1){var g=e[c],j=void 0,k=void 0;if(0===c)f.push(g);else if(0===g.indexOf('"')||0===g.indexOf("'"))if(j=0===g.indexOf('"')?i:h,k=0===g.indexOf('"')?'"':"'",2===g.match(j).length)f.push(g);else{for(b=0,d=c+1;d<e.length;d+=1)if(g+=" "+e[d],e[d].indexOf(k)>=0){b=d,f.push(g);break}b&&(c=b)}else if(g.indexOf("=")>0){var l=g.split("="),m=l[0],n=l[1];if(j||(j=0===n.indexOf('"')?i:h,k=0===n.indexOf('"')?'"':"'"),2!==n.match(j).length){for(b=0,d=c+1;d<e.length;d+=1)if(n+=" "+e[d],e[d].indexOf(k)>=0){b=d;break}b&&(c=b)}var o=[m,n.replace(j,"")];f.push(o)}else f.push(g)}return f}function e(b){var c,e,f=[];if(!b)return[];var g=b.split(/({{[^{^}]*}})/);for(c=0;c<g.length;c+=1){var h=g[c];if(""!==h)if(h.indexOf("{{")<0)f.push({type:"plain",content:h});else{if(h.indexOf("{/")>=0)continue;if(h.indexOf("{#")<0&&h.indexOf(" ")<0&&h.indexOf("else")<0){f.push({type:"variable",contextName:h.replace(/[{}]/g,"")});continue}var i=d(h),j=i[0],k=">"===j,l=[],m={};for(e=1;e<i.length;e+=1){var n=i[e];a(n)?m[n[0]]="false"!==n[1]&&n[1]:l.push(n)}if(h.indexOf("{#")>=0){var o="",p="",q=0,r=void 0,s=!1,t=!1,u=0;for(e=c+1;e<g.length;e+=1)if(g[e].indexOf("{{#")>=0&&(u+=1),g[e].indexOf("{{/")>=0&&(u-=1),g[e].indexOf("{{#"+j)>=0)o+=g[e],t&&(p+=g[e]),q+=1;else if(g[e].indexOf("{{/"+j)>=0){if(!(q>0)){r=e,s=!0;break}q-=1,o+=g[e],t&&(p+=g[e])}else g[e].indexOf("else")>=0&&0===u?t=!0:(t||(o+=g[e]),t&&(p+=g[e]));s&&(r&&(c=r),f.push({type:"helper",helperName:j,contextName:l,content:o,inverseContent:p,hash:m}))}else h.indexOf(" ")>0&&(k&&(j="_partial",l[0]&&(l[0]='"'+l[0].replace(/"|'/g,"")+'"')),f.push({type:"helper",helperName:j,contextName:l,hash:m}))}}return f}function f(a,b){if(2===arguments.length){var c=new j(a),d=c.compile()(b);return c=null,d}return new j(a)}var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;var h=new RegExp("'","g"),i=new RegExp('"',"g"),j=function(a){function b(a,b){var c,d=b,e=0;if(0===a.indexOf("../")){var f=d.split("_")[1]-e;e=a.split("../").length-1,d="ctx_"+(f>=1?f:1),c=a.split("../")[e].split(".")}else 0===a.indexOf("@global")?(d="Template7.global",c=a.split("@global.")[1].split(".")):0===a.indexOf("@root")?(d="root",c=a.split("@root.")[1].split(".")):c=a.split(".");for(var g=0;g<c.length;g+=1){var h=c[g];0===h.indexOf("@")?g>0?d+="[(data && data."+h.replace("@","")+")]":d="(data && data."+a.replace("@","")+")":isFinite(h)?d+="["+h+"]":"this"===h||h.indexOf("this.")>=0||h.indexOf("this[")>=0||h.indexOf("this(")>=0?d=h.replace("this",b):d+="."+h}return d}function c(a,c){for(var d=[],e=0;e<a.length;e+=1)/^['"]/.test(a[e])?d.push(a[e]):/^(true|false|\d+)$/.test(a[e])?d.push(a[e]):d.push(b(a[e],c));return d.join(", ")}function d(a,h){function i(a,b){return a.content?d(a.content,b):function(){return""}}function j(a,b){return a.inverseContent?d(a.inverseContent,b):function(){return""}}if(void 0===a&&(a=f.template),void 0===h&&(h=1),"string"!=typeof a)throw new Error("Template7: Template must be a string");var k=e(a),l="ctx_"+h;if(0===k.length)return function(){return""};var m="";m+=1===h?"(function ("+l+", data, root) {\n":"(function ("+l+", data) {\n",1===h&&(m+="function isArray(arr){return Object.prototype.toString.apply(arr) === '[object Array]';}\n",m+="function isFunction(func){return (typeof func === 'function');}\n",m+='function c(val, ctx) {if (typeof val !== "undefined" && val !== null) {if (isFunction(val)) {return val.call(ctx);} else return val;} else return "";}\n',
  m+="root = root || ctx_1 || {};\n"),m+="var r = '';\n";var n;for(n=0;n<k.length;n+=1){var o=k[n];if("plain"!==o.type){var p=void 0,q=void 0;if("variable"===o.type&&(p=b(o.contextName,l),m+="r += c("+p+", "+l+");"),"helper"===o.type)if(o.helperName in f.helpers)q=c(o.contextName,l),m+="r += (Template7.helpers."+o.helperName+").call("+l+", "+(q&&q+", ")+"{hash:"+JSON.stringify(o.hash)+", data: data || {}, fn: "+i(o,h+1)+", inverse: "+j(o,h+1)+", root: root});";else{if(o.contextName.length>0)throw new Error('Template7: Missing helper: "'+o.helperName+'"');p=b(o.helperName,l),m+="if ("+p+") {",m+="if (isArray("+p+")) {",m+="r += (Template7.helpers.each).call("+l+", "+p+", {hash:"+JSON.stringify(o.hash)+", data: data || {}, fn: "+i(o,h+1)+", inverse: "+j(o,h+1)+", root: root});",m+="}else {",m+="r += (Template7.helpers.with).call("+l+", "+p+", {hash:"+JSON.stringify(o.hash)+", data: data || {}, fn: "+i(o,h+1)+", inverse: "+j(o,h+1)+", root: root});",m+="}}"}}else m+="r +='"+o.content.replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/'/g,"\\'")+"';"}return m+="\nreturn r;})",eval.call(g,m)}var f=this;f.template=a,f.compile=function(a){return f.compiled||(f.compiled=d(a)),f.compiled}};return j.prototype={options:{},partials:{},helpers:{_partial:function(a,b){var c=j.prototype.partials[a];if(!c||c&&!c.template)return"";c.compiled||(c.compiled=new j(c.template).compile());var d=this;for(var e in b.hash)d[e]=b.hash[e];return c.compiled(d,b.data,b.root)},escape:function(a,b){if("string"!=typeof a)throw new Error('Template7: Passed context to "escape" helper should be a string');return c(a)},if:function(a,c){var d=a;return b(d)&&(d=d.call(this)),d?c.fn(this,c.data):c.inverse(this,c.data)},unless:function(a,c){var d=a;return b(d)&&(d=d.call(this)),d?c.inverse(this,c.data):c.fn(this,c.data)},each:function(c,d){var e=c,f="",g=0;if(b(e)&&(e=e.call(this)),a(e)){for(d.hash.reverse&&(e=e.reverse()),g=0;g<e.length;g+=1)f+=d.fn(e[g],{first:0===g,last:g===e.length-1,index:g});d.hash.reverse&&(e=e.reverse())}else for(var h in e)g+=1,f+=d.fn(e[h],{key:h});return g>0?f:d.inverse(this)},with:function(a,c){var d=a;return b(d)&&(d=a.call(this)),c.fn(d)},join:function(a,c){var d=a;return b(d)&&(d=d.call(this)),d.join(c.hash.delimiter||c.hash.delimeter)},js:function(a,b){var c;return c=a.indexOf("return")>=0?"(function(){"+a+"})":"(function(){return ("+a+")})",eval.call(this,c).call(this)},js_compare:function(a,b){var c;return c=a.indexOf("return")>=0?"(function(){"+a+"})":"(function(){return ("+a+")})",eval.call(this,c).call(this)?b.fn(this,b.data):b.inverse(this,b.data)}}},f.registerHelper=function(a,b){j.prototype.helpers[a]=b},f.unregisterHelper=function(a){j.prototype.helpers[a]=void 0,delete j.prototype.helpers[a]},f.registerPartial=function(a,b){j.prototype.partials[a]={template:b}},f.unregisterPartial=function(a){j.prototype.partials[a]&&(j.prototype.partials[a]=void 0,delete j.prototype.partials[a])},f.compile=function(a,b){return new j(a,b).compile()},f.options=j.prototype.options,f.helpers=j.prototype.helpers,f.partials=j.prototype.partials,f}(),function(){"use strict";window.Framework7=function(a){function b(){var a,b=f(this),c=b[0].scrollTop,d=b[0].scrollHeight,e=b[0].offsetHeight,g=b[0].getAttribute("data-distance"),h=b.find(".virtual-list"),i=b.hasClass("infinite-scroll-top");if(g||(g=50),"string"==typeof g&&g.indexOf("%")>=0&&(g=parseInt(g,10)/100*e),g>e&&(g=e),i)c<g&&b.trigger("infinite");else if(c+e>=d-g){if(h.length>0&&(a=h.eq(-1)[0].f7VirtualList)&&!a.reachEnd&&!a.params.updatableScroll)return;b.trigger("infinite")}}function c(){d.device.ipad&&(document.body.scrollLeft=0,setTimeout(function(){document.body.scrollLeft=0},0))}var d=this;d.version="1.6.0",d.params={root:"body",cache:!0,cacheIgnore:[],cacheIgnoreGetParameters:!1,cacheDuration:6e5,preloadPreviousPage:!0,uniqueHistory:!1,uniqueHistoryIgnoreGetParameters:!1,dynamicPageUrl:"content-{{index}}",allowDuplicateUrls:!1,router:!0,routerRemoveTimeout:!1,routerRemoveWithTimeout:!1,pushState:!1,pushStateRoot:void 0,pushStateNoAnimation:!1,pushStateSeparator:"#!/",pushStateOnLoad:!0,fastClicks:!0,fastClicksDistanceThreshold:10,fastClicksDelayBetweenClicks:50,fastClicksExclude:"",tapHold:!1,tapHoldDelay:750,tapHoldPreventClicks:!0,activeState:!0,activeStateElements:"a, button, label, span",animateNavBackIcon:!1,swipeBackPage:!0,swipeBackPageThreshold:0,swipeBackPageActiveArea:30,swipeBackPageAnimateShadow:!0,swipeBackPageAnimateOpacity:!0,ajaxLinks:void 0,externalLinks:".external",sortable:!0,hideNavbarOnPageScroll:!1,hideToolbarOnPageScroll:!1,hideTabbarOnPageScroll:!1,showBarsOnPageScrollEnd:!0,showBarsOnPageScrollTop:!0,swipeout:!0,swipeoutActionsNoFold:!1,swipeoutNoFollow:!1,swipeoutRemoveWithTimeout:!1,smartSelectOpenIn:"page",smartSelectBackText:"Back",smartSelectPopupCloseText:"Close",smartSelectPickerCloseText:"Done",smartSelectSearchbar:!1,smartSelectBackOnSelect:!1,scrollTopOnNavbarClick:!1,scrollTopOnStatusbarClick:!1,panelLeftBreakpoint:null,panelRightBreakpoint:null,swipePanel:!1,swipePanelActiveArea:0,swipePanelCloseOpposite:!0,swipePanelOnlyClose:!1,swipePanelNoFollow:!1,swipePanelThreshold:0,panelsCloseByOutside:!0,modalButtonOk:"OK",modalButtonCancel:"Cancel",modalUsernamePlaceholder:"Username",modalPasswordPlaceholder:"Password",modalTitle:"Framework7",modalCloseByOutside:!1,actionsCloseByOutside:!0,popupCloseByOutside:!0,popoverCloseByOutside:!0,modalPreloaderTitle:"Loading... ",modalStack:!0,modalsMoveToRoot:!0,imagesLazyLoadThreshold:0,imagesLazyLoadSequential:!0,viewClass:"view",viewMainClass:"view-main",viewsClass:"views",notificationCloseOnClick:!1,notificationCloseIcon:!0,notificationCloseButtonText:"Close",animatePages:!0,templates:{},template7Data:{},template7Pages:!1,precompileTemplates:!1,material:!1,materialPageLoadDelay:0,materialPreloaderSvg:'<svg xmlns="http://www.w3.org/2000/svg" height="75" width="75" viewbox="0 0 75 75"><circle cx="37.5" cy="37.5" r="33.5" stroke-width="8"/></svg>',materialPreloaderHtml:'<span class="preloader-inner"><span class="preloader-inner-gap"></span><span class="preloader-inner-left"><span class="preloader-inner-half-circle"></span></span><span class="preloader-inner-right"><span class="preloader-inner-half-circle"></span></span></span>',materialRipple:!0,materialRippleElements:".ripple, a.link, a.item-link, .button, .modal-button, .tab-link, .label-radio, .label-checkbox, .actions-modal-button, a.searchbar-clear, a.floating-button, .floating-button > a, .speed-dial-buttons a, .form-checkbox, .form-radio, .data-table .sortable-cell",init:!0};for(var e in a)d.params[e]=a[e];var f=Dom7,g=Template7;d._compiledTemplates={},d.root=f(d.params.root),d.root.eq(0).addClass("framework7-root"),d.touchEvents={start:d.support.touch?"touchstart":"mousedown",move:d.support.touch?"touchmove":"mousemove",end:d.support.touch?"touchend":"mouseup"},d.ls=window.localStorage,d.rtl="rtl"===f("body").css("direction"),d.rtl&&f("html").attr("dir","rtl"),void 0!==d.params.statusbarOverlay?d.params.statusbarOverlay?f("html").addClass("with-statusbar-overlay"):f("html").removeClass("with-statusbar-overlay"):d.device.ios&&(window.cordova||window.phonegap)&&f(document).on("resume",function(){d.device.needsStatusBar()&&f("html").addClass("with-statusbar-overlay")},!1),d.views=[];var h=function(a,b){var c,e={dynamicNavbar:!1,domCache:!1,linksView:void 0,reloadPages:!1,uniqueHistory:d.params.uniqueHistory,uniqueHistoryIgnoreGetParameters:d.params.uniqueHistoryIgnoreGetParameters,allowDuplicateUrls:d.params.allowDuplicateUrls,swipeBackPage:d.params.swipeBackPage,swipeBackPageAnimateShadow:d.params.swipeBackPageAnimateShadow,swipeBackPageAnimateOpacity:d.params.swipeBackPageAnimateOpacity,swipeBackPageActiveArea:d.params.swipeBackPageActiveArea,swipeBackPageThreshold:d.params.swipeBackPageThreshold,animatePages:d.params.animatePages,preloadPreviousPage:d.params.preloadPreviousPage};b=b||{},b.dynamicNavbar&&d.params.material&&(b.dynamicNavbar=!1);for(var g in e)void 0===b[g]&&(b[g]=e[g]);var h=this;h.params=b,h.selector=a;var i=f(a);if(h.container=i[0],"string"!=typeof a&&(a=(i.attr("id")?"#"+i.attr("id"):"")+(i.attr("class")?"."+i.attr("class").replace(/ /g,".").replace(".active",""):""),h.selector=a),h.main=i.hasClass(d.params.viewMainClass),h.contentCache={},h.contextCache={},h.pagesCache={},h.pageElementsCache={},i[0].f7View=h,h.pagesContainer=i.find(".pages")[0],h.initialPages=[],h.initialPagesUrl=[],h.initialNavbars=[],h.params.domCache){var j=i.find(".page");for(c=0;c<j.length;c++)h.initialPages.push(j[c]),h.initialPagesUrl.push("#"+j.eq(c).attr("data-page"));if(h.params.dynamicNavbar){var k=i.find(".navbar-inner");for(c=0;c<k.length;c++)h.initialNavbars.push(k[c])}}h.allowPageChange=!0;var l=document.location.href;h.history=[];var m=l,n=d.params.pushStateSeparator,o=d.params.pushStateRoot;d.params.pushState&&h.main&&(o?m=o:n&&m.indexOf(n)>=0&&m.indexOf(n+"#")<0&&(m=m.split(n)[0]));var p,q;h.activePage||(p=f(h.pagesContainer).find(".page-on-center"),0===p.length&&(p=f(h.pagesContainer).find(".page:not(.cached)"),p=p.eq(p.length-1)),p.length>0&&(q=p[0].f7PageData)),h.params.domCache&&p?(h.url=i.attr("data-url")||h.params.url||"#"+p.attr("data-page"),h.pagesCache[h.url]=p.attr("data-page")):h.url=i.attr("data-url")||h.params.url||m,q&&(q.view=h,q.url=h.url,h.params.domCache&&h.params.dynamicNavbar&&!q.navbarInnerContainer&&(q.navbarInnerContainer=h.initialNavbars[h.initialPages.indexOf(q.container)]),h.activePage=q,p[0].f7PageData=q),h.url&&h.history.push(h.url);var r,s,t,u,v,w,x,y,z,A,B,C,D=!1,E=!1,F={},G=[],H=[],I=!0,J=[],K=[];if(h.handleTouchStart=function(a){I&&h.params.swipeBackPage&&!D&&!d.swipeoutOpenedEl&&h.allowPageChange&&(E=!1,D=!0,r=void 0,F.x="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,F.y="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY,u=(new Date).getTime(),z=h.params.dynamicNavbar&&i.find(".navbar-inner").length>1)},h.handleTouchMove=function(a){if(D){var b="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,c="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY;if(void 0===r&&(r=!!(r||Math.abs(c-F.y)>Math.abs(b-F.x))),r||a.f7PreventSwipeBack||d.preventSwipeBack)return void(D=!1);if(!E){var e=!1;s=i.width();var g=f(a.target),j=g.hasClass("swipeout")?g:g.parents(".swipeout");j.length>0&&(!d.rtl&&j.find(".swipeout-actions-left").length>0&&(e=!0),d.rtl&&j.find(".swipeout-actions-right").length>0&&(e=!0)),G=g.is(".page")?g:g.parents(".page"),G.hasClass("no-swipeback")&&(e=!0),H=i.find(".page-on-left:not(.cached)");var k=F.x-i.offset().left>h.params.swipeBackPageActiveArea;if(k=d.rtl?F.x<i.offset().left-i[0].scrollLeft+s-h.params.swipeBackPageActiveArea:F.x-i.offset().left>h.params.swipeBackPageActiveArea,k&&(e=!0),0!==H.length&&0!==G.length||(e=!0),e)return void(D=!1);h.params.swipeBackPageAnimateShadow&&!d.device.android&&(A=G.find(".swipeback-page-shadow"),0===A.length&&(A=f('<div class="swipeback-page-shadow"></div>'),G.append(A))),h.params.swipeBackPageAnimateOpacity&&(B=H.find(".swipeback-page-opacity"),0===B.length&&(B=f('<div class="swipeback-page-opacity"></div>'),H.append(B))),z&&(J=i.find(".navbar-on-center:not(.cached)"),K=i.find(".navbar-on-left:not(.cached)"),v=J.find(".left, .center, .right, .subnavbar, .fading"),w=K.find(".left, .center, .right, .subnavbar, .fading"),d.params.animateNavBackIcon&&(x=J.find(".left.sliding .back .icon"),y=K.find(".left.sliding .back .icon"))),f(".picker-modal.modal-in").length>0&&d.closeModal(f(".picker-modal.modal-in"))}a.f7PreventPanelSwipe=!0,E=!0,a.preventDefault();var l=d.rtl?-1:1;(t=(b-F.x-h.params.swipeBackPageThreshold)*l)<0&&(t=0);var m=t/s,n={percentage:m,activePage:G[0],previousPage:H[0],activeNavbar:J[0],previousNavbar:K[0]};h.params.onSwipeBackMove&&h.params.onSwipeBackMove(n),i.trigger("swipeBackMove swipeback:move",n);var o=t*l,p=(t/5-s/5)*l;if(1===d.device.pixelRatio&&(o=Math.round(o),p=Math.round(p)),G.transform("translate3d("+o+"px,0,0)"),h.params.swipeBackPageAnimateShadow&&!d.device.android&&(A[0].style.opacity=1-1*m),H.transform("translate3d("+p+"px,0,0)"),h.params.swipeBackPageAnimateOpacity&&(B[0].style.opacity=1-1*m),z){var q;for(q=0;q<v.length;q++)if(C=f(v[q]),C.is(".subnavbar.sliding")||(C[0].style.opacity=1-1.3*m),C[0].className.indexOf("sliding")>=0){var u=m*C[0].f7NavbarRightOffset;1===d.device.pixelRatio&&(u=Math.round(u)),C.transform("translate3d("+u+"px,0,0)"),d.params.animateNavBackIcon&&C[0].className.indexOf("left")>=0&&x.length>0&&x.transform("translate3d("+-u+"px,0,0)")}for(q=0;q<w.length;q++)if(C=f(w[q]),C.is(".subnavbar.sliding")||(C[0].style.opacity=1.3*m-.3),C[0].className.indexOf("sliding")>=0){var I=C[0].f7NavbarLeftOffset*(1-m);1===d.device.pixelRatio&&(I=Math.round(I)),C.transform("translate3d("+I+"px,0,0)"),d.params.animateNavBackIcon&&C[0].className.indexOf("left")>=0&&y.length>0&&y.transform("translate3d("+-I+"px,0,0)")}}}},h.handleTouchEnd=function(a){if(!D||!E)return D=!1,void(E=!1);if(D=!1,E=!1,0===t)return f([G[0],H[0]]).transform(""),void(z&&(v.transform("").css({opacity:""}),w.transform("").css({opacity:""}),x&&x.length>0&&x.transform(""),y&&x.length>0&&y.transform("")));var b=(new Date).getTime()-u,c=!1;(b<300&&t>10||b>=300&&t>s/2)&&(G.removeClass("page-on-center").addClass("page-on-right"),H.removeClass("page-on-left").addClass("page-on-center"),z&&(J.removeClass("navbar-on-center").addClass("navbar-on-right"),K.removeClass("navbar-on-left").addClass("navbar-on-center")),c=!0),f([G[0],H[0]]).transform("").addClass("page-transitioning"),z&&(v.css({opacity:""}).each(function(){var a=c?this.f7NavbarRightOffset:0,b=f(this);b.transform("translate3d("+a+"px,0,0)"),d.params.animateNavBackIcon&&b.hasClass("left")&&x.length>0&&x.addClass("page-transitioning").transform("translate3d("+-a+"px,0,0)")}).addClass("page-transitioning"),w.transform("").css({opacity:""}).each(function(){var a=c?0:this.f7NavbarLeftOffset,b=f(this);b.transform("translate3d("+a+"px,0,0)"),d.params.animateNavBackIcon&&b.hasClass("left")&&y.length>0&&y.addClass("page-transitioning").transform("translate3d("+-a+"px,0,0)")}).addClass("page-transitioning")),I=!1,h.allowPageChange=!1;var e={activePage:G[0],previousPage:H[0],activeNavbar:J[0],previousNavbar:K[0]};if(c){var g=h.history[h.history.length-2];h.url=g,d.pageBackCallback("before",h,{pageContainer:G[0],url:g,position:"center",newPage:H,oldPage:G,swipeBack:!0}),d.pageAnimCallback("before",h,{pageContainer:H[0],url:g,position:"left",newPage:H,oldPage:G,swipeBack:!0}),h.params.onSwipeBackBeforeChange&&h.params.onSwipeBackBeforeChange(e),i.trigger("swipeBackBeforeChange swipeback:beforechange",e)}else h.params.onSwipeBackBeforeReset&&h.params.onSwipeBackBeforeReset(e),i.trigger("swipeBackBeforeReset swipeback:beforereset",e);G.transitionEnd(function(){f([G[0],H[0]]).removeClass("page-transitioning"),z&&(v.removeClass("page-transitioning").css({opacity:""}),w.removeClass("page-transitioning").css({opacity:""}),x&&x.length>0&&x.removeClass("page-transitioning"),y&&y.length>0&&y.removeClass("page-transitioning")),I=!0,h.allowPageChange=!0,c?(d.params.pushState&&h.main&&history.back(),d.pageBackCallback("after",h,{pageContainer:G[0],url:g,position:"center",newPage:H,oldPage:G,swipeBack:!0}),d.pageAnimCallback("after",h,{pageContainer:H[0],url:g,position:"left",newPage:H,oldPage:G,swipeBack:!0}),d.router.afterBack(h,G,H),h.params.onSwipeBackAfterChange&&h.params.onSwipeBackAfterChange(e),i.trigger("swipeBackAfterChange swipeback:afterchange",e)):(h.params.onSwipeBackAfterReset&&h.params.onSwipeBackAfterReset(e),i.trigger("swipeBackAfterReset swipeback:afterreset",e)),A&&A.length>0&&A.remove(),B&&B.length>0&&B.remove()})},h.attachEvents=function(a){var b=a?"off":"on",c=!("touchstart"!==d.touchEvents.start||!d.support.passiveListener)&&{passive:!0,capture:!1},e=!!d.support.passiveListener&&{passive:!1,capture:!1};i[b](d.touchEvents.start,h.handleTouchStart,c),i[b](d.touchEvents.move,h.handleTouchMove,e),i[b](d.touchEvents.end,h.handleTouchEnd,c)},h.detachEvents=function(){h.attachEvents(!0)},h.params.swipeBackPage&&!d.params.material&&h.attachEvents(),h.params.name&&(h.params.name=h.params.name.replace(/[^a-zA-Z]/g,"")),d.views.push(h),h.main?(d.mainView=h,d.views.main=h):h.params.name&&(d[h.params.name+"View"]=h,d.views[h.params.name]=h),h.router={load:function(a){return d.router.load(h,a)},back:function(a){return d.router.back(h,a)},loadPage:function(a){if("string"==typeof(a=a||{})){var b=a;a={},b&&0===b.indexOf("#")&&h.params.domCache?a.pageName=b.split("#")[1]:a.url=b}return d.router.load(h,a)},loadContent:function(a){return d.router.load(h,{content:a})},reloadPage:function(a){return d.router.load(h,{url:a,reload:!0})},reloadContent:function(a){return d.router.load(h,{content:a,reload:!0})},reloadPreviousPage:function(a){return d.router.load(h,{url:a,reloadPrevious:!0,reload:!0})},reloadPreviousContent:function(a){return d.router.load(h,{content:a,reloadPrevious:!0,reload:!0})},refreshPage:function(){var a={url:h.url,reload:!0,ignoreCache:!0};return a.url&&0===a.url.indexOf("#")&&(h.params.domCache&&h.pagesCache[a.url]?(a.pageName=h.pagesCache[a.url],a.url=void 0,delete a.url):h.contentCache[a.url]&&(a.content=h.contentCache[a.url],a.url=void 0,delete a.url)),d.router.load(h,a)},refreshPreviousPage:function(){var a={url:h.history[h.history.length-2],reload:!0,reloadPrevious:!0,ignoreCache:!0};return a.url&&0===a.url.indexOf("#")&&h.params.domCache&&h.pagesCache[a.url]&&(a.pageName=h.pagesCache[a.url],a.url=void 0,delete a.url),d.router.load(h,a)}},h.loadPage=h.router.loadPage,h.loadContent=h.router.loadContent,h.reloadPage=h.router.reloadPage,h.reloadContent=h.router.reloadContent,h.reloadPreviousPage=h.router.reloadPreviousPage,h.reloadPreviousContent=h.router.reloadPreviousContent,h.refreshPage=h.router.refreshPage,h.refreshPreviousPage=h.router.refreshPreviousPage,h.back=h.router.back,h.hideNavbar=function(a){return d.hideNavbar(i.find(".navbar"),a)},h.showNavbar=function(a){return d.showNavbar(i.find(".navbar"),a)},h.hideToolbar=function(a){return d.hideToolbar(i.find(".toolbar"),a)},h.showToolbar=function(a){return d.showToolbar(i.find(".toolbar"),a)},d.params.pushState&&d.params.pushStateOnLoad&&h.main){var L,M=l.split(n)[1];o?L=l.split(d.params.pushStateRoot+n)[1]:n&&l.indexOf(n)>=0&&l.indexOf(n+"#")<0&&(L=M);var N=!d.params.pushStateNoAnimation&&void 0,O=history.state;L?L.indexOf("#")>=0&&h.params.domCache&&O&&O.pageName&&"viewIndex"in O?d.router.load(h,{pageName:O.pageName,url:O.url,animatePages:N,pushState:!1}):L.indexOf("#")>=0&&h.params.domCache&&h.initialPagesUrl.indexOf(L)>=0?d.router.load(h,{pageName:L.replace("#",""),animatePages:N,pushState:!1}):d.router.load(h,{url:L,animatePages:N,pushState:!1}):h.params.domCache&&l.indexOf(n+"#")>=0&&(O&&O.pageName&&"viewIndex"in O?d.router.load(h,{pageName:O.pageName,url:O.url,animatePages:N,pushState:!1}):n&&0===M.indexOf("#")&&h.initialPagesUrl.indexOf(M)&&d.router.load(h,{pageName:M.replace("#",""),animatePages:N,pushState:!1}))}return h.destroy=function(){h.detachEvents(),h.main?(d.mainView=null,delete d.mainView,d.views.main=null,delete d.views.main):h.params.name&&(d[h.params.name+"View"]=null,delete d[h.params.name+"View"],d.views[h.params.name]=null,delete d.views[h.params.name]),i.removeAttr("data-page"),i[0].f7View=null,delete i[0].f7View,d.views.splice(d.views.indexOf(h),1);for(var a in h)h.hasOwnProperty(a)&&(h[a]=null,delete h[a]);h=null},d.pluginHook("addView",h),h};d.addView=function(a,b){return new h(a,b)},d.getCurrentView=function(a){var b=f(".popover.modal-in .view"),c=f(".popup.modal-in .view"),d=f(".panel.active .view"),e=f(".views"),g=e.children(".view");if(g.length>1&&g.hasClass("tab")&&(g=e.children(".view.active")),b.length>0&&b[0].f7View)return b[0].f7View;if(c.length>0&&c[0].f7View)return c[0].f7View;if(d.length>0&&d[0].f7View)return d[0].f7View;if(g.length>0){if(1===g.length&&g[0].f7View)return g[0].f7View;if(g.length>1){for(var h=[],i=0;i<g.length;i++)g[i].f7View&&h.push(g[i].f7View);if(h.length>0&&void 0!==a)return h[a];if(h.length>1)return h;if(1===h.length)return h[0];return}}},d.navbarInitCallback=function(a,b,c,e){if(!c&&e&&(c=f(e).parent(".navbar")[0]),e&&(!e.f7NavbarInitialized||!a||a.params.domCache)){var g={container:c,innerContainer:e},h=b&&b.f7PageData,i={page:h,navbar:g};if(e.f7NavbarInitialized&&(a&&a.params.domCache||!a&&f(c).parents(".popup, .popover, .login-screen, .modal, .actions-modal, .picker-modal").length>0))return d.reinitNavbar(c,e),d.pluginHook("navbarReinit",i),void f(e).trigger("navbarReinit navbar:reinit",i);e.f7NavbarInitialized=!0,d.pluginHook("navbarBeforeInit",g,h),f(e).trigger("navbarBeforeInit navbar:beforeinit",i),d.initNavbar(c,e),d.pluginHook("navbarInit",g,h),f(e).trigger("navbarInit navbar:init",i)}},d.navbarRemoveCallback=function(a,b,c,e){!c&&e&&(c=f(e).parent(".navbar")[0]);var g,h={container:c,innerContainer:e};b&&(g=b.f7PageData);var i={page:g,navbar:h};d.pluginHook("navbarBeforeRemove",h,g),f(e).trigger("navbarBeforeRemove navbar:beforeremove",i),h=null,g=null},d.initNavbar=function(a,b){d.initSearchbar&&d.initSearchbar(b)},d.reinitNavbar=function(a,b){},d.initNavbarWithCallback=function(a){a=f(a);var b,c=a.parents("."+d.params.viewClass);0!==c.length&&(0===a.parents(".navbar-through").length&&0===c.find(".navbar-through").length||(b=c[0].f7View||void 0,a.find(".navbar-inner").each(function(){var e,g=this;if(f(g).attr("data-page")&&(e=c.find('.page[data-page="'+f(g).attr("data-page")+'"]')[0]),!e){var h=c.find(".page");1===h.length?e=h[0]:c.find(".page").each(function(){this.f7PageData&&this.f7PageData.navbarInnerContainer===g&&(e=this)})}d.navbarInitCallback(b,e,a[0],g)})))},d.sizeNavbars=function(a){d.params.material||(a?f(a).find(".navbar .navbar-inner:not(.cached)"):f(".navbar .navbar-inner:not(.cached)")).each(function(){var a=f(this);if(!a.hasClass("cached")){var b,c,e=d.rtl?a.find(".right"):a.find(".left"),g=d.rtl?a.find(".left"):a.find(".right"),h=a.find(".center"),i=a.find(".subnavbar"),j=0===e.length,k=0===g.length,l=j?0:e.outerWidth(!0),m=k?0:g.outerWidth(!0),n=h.outerWidth(!0),o=a.styles(),p=a[0].offsetWidth-parseInt(o.paddingLeft,10)-parseInt(o.paddingRight,10),q=a.hasClass("navbar-on-left");k&&(b=p-n),j&&(b=0),j||k||(b=(p-m-n+l)/2);var r=(p-n)/2;p-l-m>n?(r<l&&(r=l),r+n>p-m&&(r=p-m-n),c=r-b):c=0;var s=d.rtl?-1:1;if(h.hasClass("sliding")&&(h[0].f7NavbarLeftOffset=-(b+c)*s,h[0].f7NavbarRightOffset=(p-b-c-n)*s,q)){if(d.params.animateNavBackIcon){var t=a.parent().find(".navbar-on-center").find(".left.sliding .back .icon ~ span");t.length>0&&(h[0].f7NavbarLeftOffset+=t[0].offsetLeft)}h.transform("translate3d("+h[0].f7NavbarLeftOffset+"px, 0, 0)")}!j&&e.hasClass("sliding")&&(d.rtl?(e[0].f7NavbarLeftOffset=-(p-e[0].offsetWidth)/2*s,e[0].f7NavbarRightOffset=l*s):(e[0].f7NavbarLeftOffset=-l,e[0].f7NavbarRightOffset=(p-e[0].offsetWidth)/2,d.params.animateNavBackIcon&&e.find(".back .icon").length>0&&(e[0].f7NavbarRightOffset-=e.find(".back .icon")[0].offsetWidth)),q&&e.transform("translate3d("+e[0].f7NavbarLeftOffset+"px, 0, 0)")),!k&&g.hasClass("sliding")&&(d.rtl?(g[0].f7NavbarLeftOffset=-m*s,g[0].f7NavbarRightOffset=(p-g[0].offsetWidth)/2*s):(g[0].f7NavbarLeftOffset=-(p-g[0].offsetWidth)/2,g[0].f7NavbarRightOffset=m),q&&g.transform("translate3d("+g[0].f7NavbarLeftOffset+"px, 0, 0)")),i.length&&i.hasClass("sliding")&&(i[0].f7NavbarLeftOffset=d.rtl?i[0].offsetWidth:-i[0].offsetWidth,i[0].f7NavbarRightOffset=-i[0].f7NavbarLeftOffset);var u=c;d.rtl&&j&&k&&h.length>0&&(u=-u),h.css({left:u+"px"})}})},d.hideNavbar=function(a,b){return void 0===b&&(b=!0),f(a).addClass("navbar-hidden"+(b?"":" not-animated")),!0},d.showNavbar=function(a,b){void 0===b&&(b=!0);var c=f(a);return b?(c.removeClass("not-animated"),c.addClass("navbar-hiding").removeClass("navbar-hidden").transitionEnd(function(){c.removeClass("navbar-hiding")})):c.removeClass("navbar-hidden navbar-hiding not-animated"),!0},d.hideToolbar=function(a,b){return void 0===b&&(b=!0),f(a).addClass("toolbar-hidden"+(b?"":" not-animated")),!0},d.showToolbar=function(a,b){void 0===b&&(b=!0);var c=f(a);b?(c.removeClass("not-animated"),c.addClass("toolbar-hiding").removeClass("toolbar-hidden").transitionEnd(function(){c.removeClass("toolbar-hiding"+(b?"":" not-animated"))})):c.removeClass("toolbar-hidden toolbar-hiding not-animated")};var i=function(a,b){function c(a){a.preventDefault()}var e={input:null,clearButton:null,cancelButton:null,searchList:null,searchIn:".item-title",searchBy:"",found:null,notFound:null,overlay:null,ignore:".searchbar-ignore",customSearch:!1,removeDiacritics:!1,hideDividers:!0,hideGroups:!0};b=b||{};for(var g in e)(void 0===b[g]||null===b[g]&&e.hasOwnProperty(g))&&(b[g]=e[g]);var h=this;h.material=d.params.material,h.params=b,a=f(a),h.container=a,h.active=!1,h.input=h.params.input?f(h.params.input):h.container.find('input[type="search"]'),h.clearButton=h.params.clearButton?f(h.params.clearButton):h.container.find(".searchbar-clear"),h.cancelButton=h.params.cancelButton?f(h.params.cancelButton):h.container.find(".searchbar-cancel"),h.searchList=f(h.params.searchList),h.isVirtualList=h.searchList.hasClass("virtual-list"),h.pageContainer=h.container.parents(".page").eq(0),h.params.overlay?h.overlay=f(h.params.overlay):h.overlay=h.pageContainer.length>0?h.pageContainer.find(".searchbar-overlay"):f(".searchbar-overlay"),h.params.found?h.found=f(h.params.found):h.found=h.pageContainer.length>0?h.pageContainer.find(".searchbar-found"):f(".searchbar-found"),h.params.notFound?h.notFound=f(h.params.notFound):h.notFound=h.pageContainer.length>0?h.pageContainer.find(".searchbar-not-found"):f(".searchbar-not-found");var i=d.rtl?"margin-left":"margin-right",j=!1;h.setCancelButtonMargin=function(){h.cancelButton.transition(0).show(),h.cancelButton.css(i,-h.cancelButton[0].offsetWidth+"px"),h.cancelButton[0].clientLeft,h.cancelButton.transition(""),j=!0},h.triggerEvent=function(a,b,c){h.container.trigger(a,c),h.searchList.length>0&&h.searchList.trigger(a,c),b&&h.params[b]&&h.params[b](h,c)},h.enable=function(a){function b(){!h.searchList.length&&!h.params.customSearch||h.container.hasClass("searchbar-active")||h.query||h.overlay.addClass("searchbar-overlay-active"),h.container.addClass("searchbar-active"),h.cancelButton.length>0&&!h.material&&(j||h.setCancelButtonMargin(),h.cancelButton.css(i,"0px")),h.triggerEvent("enableSearch searchbar:enable","onEnable"),h.active=!0}d.device.ios&&!d.params.material&&a&&"focus"===a.type?setTimeout(function(){b()},400):b()},h.disable=function(){function a(){h.input.blur()}h.input.val("").trigger("change"),h.container.removeClass("searchbar-active searchbar-not-empty"),h.cancelButton.length>0&&!h.material&&h.cancelButton.css(i,-h.cancelButton[0].offsetWidth+"px"),(h.searchList.length||h.params.customSearch)&&h.overlay.removeClass("searchbar-overlay-active"),h.active=!1,d.device.ios?setTimeout(function(){a()},400):a(),h.triggerEvent("disableSearch searchbar:disable","onDisable")},h.clear=function(a){if(!h.query&&a&&f(a.target).hasClass("searchbar-clear"))return void h.disable();var b=h.value;h.input.val("").trigger("change").focus(),h.triggerEvent("clearSearch searchbar:clear","onClear",{previousQuery:b})},h.handleInput=function(){setTimeout(function(){var a=h.input.val().trim();(h.searchList.length>0||h.params.customSearch)&&(h.params.searchIn||h.isVirtualList)&&h.search(a,!0)},0)};var k,l="";return h.search=function(a,b){if(!l||a.trim()!==l){if(l=a.trim(),b||(h.active||h.enable(),h.input.val(a)),h.query=h.value=a,0===a.length?(h.container.removeClass("searchbar-not-empty"),h.searchList.length&&h.container.hasClass("searchbar-active")&&h.overlay.addClass("searchbar-overlay-active")):(h.container.addClass("searchbar-not-empty"),h.searchList.length&&h.container.hasClass("searchbar-active")&&h.overlay.removeClass("searchbar-overlay-active")),h.params.customSearch)return void h.triggerEvent("search searchbar:search","onSearch",{query:a});var c,d=[];if(h.isVirtualList){if(k=h.searchList[0].f7VirtualList,""===a.trim())return k.resetFilter(),h.notFound.hide(),void h.found.show();if(c=h.params.removeDiacritics?f.removeDiacritics(a):a,k.params.searchAll)d=k.params.searchAll(c,k.items)||[];else if(k.params.searchByItem)for(var e=0;e<k.items.length;e++)k.params.searchByItem(c,e,k.params.items[e])&&d.push(e)}else{var g;g=h.params.removeDiacritics?f.removeDiacritics(a.trim().toLowerCase()).split(" "):a.trim().toLowerCase().split(" "),h.searchList.find("li").removeClass("hidden-by-searchbar").each(function(a,b){b=f(b);var c=[];b.find(h.params.searchIn).each(function(){var a=f(this).text().trim().toLowerCase();h.params.removeDiacritics&&(a=f.removeDiacritics(a)),c.push(a)}),c=c.join(" ");for(var e=0,i=0;i<g.length;i++)c.indexOf(g[i])>=0&&e++;e===g.length||h.params.ignore&&b.is(h.params.ignore)?d.push(b[0]):b.addClass("hidden-by-searchbar")}),h.params.hideDividers&&h.searchList.find(".item-divider, .list-group-title").each(function(){for(var a=f(this),b=a.nextAll("li"),c=!0,d=0;d<b.length;d++){var e=f(b[d]);if(e.hasClass("list-group-title")||e.hasClass("item-divider"))break;e.hasClass("hidden-by-searchbar")||(c=!1)}var g=h.params.ignore&&a.is(h.params.ignore);c&&!g?a.addClass("hidden-by-searchbar"):a.removeClass("hidden-by-searchbar")}),h.params.hideGroups&&h.searchList.find(".list-group").each(function(){var a=f(this),b=h.params.ignore&&a.is(h.params.ignore);0!==a.find("li:not(.hidden-by-searchbar)").length||b?a.removeClass("hidden-by-searchbar"):a.addClass("hidden-by-searchbar")})}h.triggerEvent("search searchbar:search","onSearch",{query:a,foundItems:d}),0===d.length?(h.notFound.show(),h.found.hide()):(h.notFound.hide(),h.found.show()),h.isVirtualList&&k.filterItems(d)}},h.attachEvents=function(a){var b=a?"off":"on";h.container[b]("submit",c),h.material||h.cancelButton[b]("click",h.disable),h.overlay[b]("click",h.disable),h.input[b]("focus",h.enable),h.input[b]("change keydown keypress keyup compositionend",h.handleInput),h.clearButton[b]("click",h.clear)},h.detachEvents=function(){h.attachEvents(!0)},h.init=function(){h.attachEvents()},h.destroy=function(){h&&(h.detachEvents(),h=null)},h.init(),h.container[0].f7Searchbar=h,h};d.searchbar=function(a,b){return new i(a,b)},d.initSearchbar=function(a){function b(){e&&e.destroy()}a=f(a);var c=a.hasClass("searchbar")?a:a.find(".searchbar");if(0!==c.length&&c.hasClass("searchbar-init")){var e=d.searchbar(c,c.dataset());a.hasClass("page")?a.once("pageBeforeRemove",b):a.hasClass("navbar-inner")&&a.once("navbarBeforeRemove",b)}};var j=function(a,b){function c(a){a.preventDefault()}var d={textarea:null,maxHeight:null};b=b||{};for(var e in d)void 0!==b[e]&&null!==b[e]||(b[e]=d[e]);var g=this;if(g.params=b,g.container=f(a),0!==g.container.length)return g.textarea=g.params.textarea?f(g.params.textarea):g.container.find("textarea"),g.pageContainer=g.container.parents(".page").eq(0),g.pageContent=g.pageContainer.find(".page-content"),g.pageContentPadding=parseInt(g.pageContent.css("padding-bottom")),g.initialBarHeight=g.container[0].offsetHeight,g.initialAreaHeight=g.textarea[0].offsetHeight,g.sizeTextarea=function(){g.textarea.css({height:""});var a=g.textarea[0].offsetHeight,b=a-g.textarea[0].clientHeight,c=g.textarea[0].scrollHeight;if(c+b>a){var d=c+b,e=g.initialBarHeight+(d-g.initialAreaHeight),f=g.params.maxHeight||g.container.parents(".view")[0].offsetHeight-88;e>f&&(e=parseInt(f,10),d=e-g.initialBarHeight+g.initialAreaHeight),g.textarea.css("height",d+"px"),g.container.css("height",e+"px");var h=g.pageContent[0].scrollTop===g.pageContent[0].scrollHeight-g.pageContent[0].offsetHeight;g.pageContent.length>0&&(g.pageContent.css("padding-bottom",e+"px"),0===g.pageContent.find(".messages-new-first").length&&h&&g.pageContent.scrollTop(g.pageContent[0].scrollHeight-g.pageContent[0].offsetHeight))}else g.pageContent.length>0&&(g.container.css({height:"",bottom:""}),g.pageContent.css({"padding-bottom":""}))},g.clear=function(){g.textarea.val("").trigger("change")},g.value=function(a){if(void 0===a)return g.textarea.val()
  ;g.textarea.val(a).trigger("change")},g.textareaTimeout=void 0,g.handleTextarea=function(a){clearTimeout(g.textareaTimeout),g.textareaTimeout=setTimeout(function(){g.sizeTextarea()},0)},g.attachEvents=function(a){var b=a?"off":"on";g.container[b]("submit",c),g.textarea[b]("change keydown keypress keyup paste cut",g.handleTextarea)},g.detachEvents=function(){g.attachEvents(!0)},g.init=function(){g.attachEvents()},g.destroy=function(){g.detachEvents(),g=null},g.init(),g.container[0].f7Messagebar=g,g};d.messagebar=function(a,b){return new j(a,b)},d.initPageMessagebar=function(a){function b(){e.destroy(),a.off("page:beforeremove",b)}a=f(a);var c=a.hasClass("messagebar")?a:a.find(".messagebar");if(0!==c.length&&c.hasClass("messagebar-init")){var e=d.messagebar(c,c.dataset());a.hasClass("page")&&a.on("page:beforeremove",b)}},d.cache=[],d.removeFromCache=function(a){for(var b=!1,c=0;c<d.cache.length;c++)d.cache[c].url===a&&(b=c);!1!==b&&d.cache.splice(b,1)},d.xhr=!1,d.get=function(a,b,c,e){var g=a;if(d.params.cacheIgnoreGetParameters&&a.indexOf("?")>=0&&(g=a.split("?")[0]),d.params.cache&&!c&&a.indexOf("nocache")<0&&d.params.cacheIgnore.indexOf(g)<0)for(var h=0;h<d.cache.length;h++)if(d.cache[h].url===g&&(new Date).getTime()-d.cache[h].time<d.params.cacheDuration)return e(d.cache[h].content),!1;return d.xhr=f.ajax({url:a,method:"GET",beforeSend:d.params.onAjaxStart,complete:function(a,b){"error"!==b&&"timeout"!==b&&a.status>=200&&a.status<300||0===a.status?(d.params.cache&&""!==a.responseText&&(d.removeFromCache(g),d.cache.push({url:g,time:(new Date).getTime(),content:a.responseText})),e(a.responseText,!1)):e(a.responseText,!0),d.params.onAjaxComplete&&d.params.onAjaxComplete(a)},error:function(a){e(a.responseText,!0),d.params.onAjaxError&&d.params.onAjaxError(a)}}),b&&(b.xhr=d.xhr),d.xhr},d.pageCallbacks={},d.onPage=function(a,b,c){if(b&&b.split(" ").length>1){for(var e=b.split(" "),f=[],g=0;g<e.length;g++)f.push(d.onPage(a,e[g],c));return f.remove=function(){for(var a=0;a<f.length;a++)f[a].remove()},f.trigger=function(){for(var a=0;a<f.length;a++)f[a].trigger()},f}var h=d.pageCallbacks[a][b];return h||(h=d.pageCallbacks[a][b]=[]),d.pageCallbacks[a][b].push(c),{remove:function(){for(var a,b=0;b<h.length;b++)h[b].toString()===c.toString()&&(a=b);void 0!==a&&h.splice(a,1)},trigger:c}};for(var k="beforeInit init reinit beforeAnimation afterAnimation back afterBack beforeRemove".split(" "),l=0;l<k.length;l++)d.pageCallbacks[k[l]]={},function(a){var b=a.replace(/^./,function(a){return a.toUpperCase()});d["onPage"+b]=function(b,c){return d.onPage(a,b,c)}}(k[l]);d.triggerPageCallbacks=function(a,b,c){var e=d.pageCallbacks[a]["*"];if(e)for(var f=0;f<e.length;f++)e[f](c);var g=d.pageCallbacks[a][b];if(g&&0!==g.length)for(var h=0;h<g.length;h++)g[h](c)},d.pageInitCallback=function(a,b){var c=b.pageContainer;if(c&&(!c.f7PageInitialized||!a||a.params.domCache)){var e=b.query;e||(e=b.url&&b.url.indexOf("?")>0?f.parseUrlQuery(b.url||""):c.f7PageData&&c.f7PageData.query?c.f7PageData.query:{});var g={container:c,url:b.url,query:e,name:f(c).attr("data-page"),view:a,from:b.position,context:b.context,navbarInnerContainer:b.navbarInnerContainer,fromPage:b.fromPage};if(b.fromPage&&!b.fromPage.navbarInnerContainer&&b.oldNavbarInnerContainer&&(b.fromPage.navbarInnerContainer=b.oldNavbarInnerContainer),c.f7PageInitialized&&(a&&a.params.domCache||!a&&f(c).parents(".popup, .popover, .login-screen, .modal, .actions-modal, .picker-modal").length>0))return d.reinitPage(c),d.pluginHook("pageReinit",g),d.params.onPageReinit&&d.params.onPageReinit(d,g),d.triggerPageCallbacks("reinit",g.name,g),void f(g.container).trigger("pageReinit page:reinit",{page:g});c.f7PageInitialized=!0,c.f7PageData=g,!a||b.preloadOnly||b.reloadPrevious||(f(a.container).attr("data-page",g.name),a.activePage=g),d.pluginHook("pageBeforeInit",g),d.params.onPageBeforeInit&&d.params.onPageBeforeInit(d,g),d.triggerPageCallbacks("beforeInit",g.name,g),f(g.container).trigger("pageBeforeInit page:beforeinit",{page:g}),d.initPage(c),d.pluginHook("pageInit",g),d.params.onPageInit&&d.params.onPageInit(d,g),d.triggerPageCallbacks("init",g.name,g),f(g.container).trigger("pageInit page:init",{page:g})}},d.pageRemoveCallback=function(a,b,c){var e;if(b){b.f7PageData&&(e=b.f7PageData.context);var g={container:b,name:f(b).attr("data-page"),view:a,url:b.f7PageData&&b.f7PageData.url,query:b.f7PageData&&b.f7PageData.query,navbarInnerContainer:b.f7PageData&&b.f7PageData.navbarInnerContainer,from:c,context:e};d.pluginHook("pageBeforeRemove",g),d.params.onPageBeforeRemove&&d.params.onPageBeforeRemove(d,g),d.triggerPageCallbacks("beforeRemove",g.name,g),f(g.container).trigger("pageBeforeRemove page:beforeremove",{page:g}),g=null}},d.pageBackCallback=function(a,b,c){var e,g=c.pageContainer;if(g){g.f7PageData&&(e=g.f7PageData.context);var h={container:g,name:f(g).attr("data-page"),url:g.f7PageData&&g.f7PageData.url,query:g.f7PageData&&g.f7PageData.query,view:b,from:c.position,context:e,navbarInnerContainer:g.f7PageData&&g.f7PageData.navbarInnerContainer,swipeBack:c.swipeBack};"after"===a&&(d.pluginHook("pageAfterBack",h),d.params.onPageAfterBack&&d.params.onPageAfterBack(d,h),d.triggerPageCallbacks("afterBack",h.name,h),f(g).trigger("pageAfterBack page:afterback",{page:h})),"before"===a&&(d.pluginHook("pageBack",h),d.params.onPageBack&&d.params.onPageBack(d,h),d.triggerPageCallbacks("back",h.name,h),f(h.container).trigger("pageBack page:back",{page:h}))}},d.pageAnimCallback=function(a,b,c){var e,g=c.pageContainer;if(g){g.f7PageData&&(e=g.f7PageData.context);var h=c.query;h||(h=c.url&&c.url.indexOf("?")>0?f.parseUrlQuery(c.url||""):g.f7PageData&&g.f7PageData.query?g.f7PageData.query:{});var i={container:g,url:c.url,query:h,name:f(g).attr("data-page"),view:b,from:c.position,context:e,swipeBack:c.swipeBack,navbarInnerContainer:g.f7PageData&&g.f7PageData.navbarInnerContainer,fromPage:c.fromPage},j=c.oldPage,k=c.newPage;if(g.f7PageData=i,"after"===a&&(d.pluginHook("pageAfterAnimation",i),d.params.onPageAfterAnimation&&d.params.onPageAfterAnimation(d,i),d.triggerPageCallbacks("afterAnimation",i.name,i),f(i.container).trigger("pageAfterAnimation page:afteranimation",{page:i})),"before"===a){f(b.container).attr("data-page",i.name),b&&(b.activePage=i),k.hasClass("no-navbar")&&!j.hasClass("no-navbar")&&b.hideNavbar(),k.hasClass("no-navbar")||!j.hasClass("no-navbar")&&!j.hasClass("no-navbar-by-scroll")||b.showNavbar(),k.hasClass("no-toolbar")&&!j.hasClass("no-toolbar")&&b.hideToolbar(),k.hasClass("no-toolbar")||!j.hasClass("no-toolbar")&&!j.hasClass("no-toolbar-by-scroll")||b.showToolbar();var l;k.hasClass("no-tabbar")&&!j.hasClass("no-tabbar")&&(l=f(b.container).find(".tabbar"),0===l.length&&(l=f(b.container).parents("."+d.params.viewsClass).find(".tabbar")),d.hideToolbar(l)),k.hasClass("no-tabbar")||!j.hasClass("no-tabbar")&&!j.hasClass("no-tabbar-by-scroll")||(l=f(b.container).find(".tabbar"),0===l.length&&(l=f(b.container).parents("."+d.params.viewsClass).find(".tabbar")),d.showToolbar(l)),j.removeClass("no-navbar-by-scroll no-toolbar-by-scroll"),d.pluginHook("pageBeforeAnimation",i),d.params.onPageBeforeAnimation&&d.params.onPageBeforeAnimation(d,i),d.triggerPageCallbacks("beforeAnimation",i.name,i),f(i.container).trigger("pageBeforeAnimation page:beforeanimation",{page:i})}}},d.initPage=function(a){a=f(a),0!==a.length&&(d.sizeNavbars&&d.sizeNavbars(a.parents("."+d.params.viewClass)[0]),d.initPageMessages&&d.initPageMessages(a),d.initFormsStorage&&d.initFormsStorage(a),d.initSmartSelects&&d.initSmartSelects(a),d.initPageSwiper&&d.initPageSwiper(a),d.initPullToRefresh&&d.initPullToRefresh(a),d.initPageInfiniteScroll&&d.initPageInfiniteScroll(a),d.initSearchbar&&d.initSearchbar(a),d.initPageMessagebar&&d.initPageMessagebar(a),d.initPageScrollToolbars&&d.initPageScrollToolbars(a),d.initImagesLazyLoad&&d.initImagesLazyLoad(a),d.initPageProgressbar&&d.initPageProgressbar(a),d.initPageResizableTextarea&&d.initPageResizableTextarea(a),d.initPageDataTables&&d.initPageDataTables(a),d.params.material&&d.initPageMaterialPreloader&&d.initPageMaterialPreloader(a),d.params.material&&d.initPageMaterialInputs&&d.initPageMaterialInputs(a),d.params.material&&d.initPageMaterialTabbar&&d.initPageMaterialTabbar(a))},d.reinitPage=function(a){a=f(a),0!==a.length&&(d.sizeNavbars&&d.sizeNavbars(a.parents("."+d.params.viewClass)[0]),d.reinitPageSwiper&&d.reinitPageSwiper(a),d.reinitLazyLoad&&d.reinitLazyLoad(a))},d.initPageWithCallback=function(a){a=f(a);var b=a.parents("."+d.params.viewClass);if(0!==b.length){var c=b[0].f7View||void 0,e=c&&c.url?c.url:void 0;b&&a.attr("data-page")&&b.attr("data-page",a.attr("data-page")),d.pageInitCallback(c,{pageContainer:a[0],url:e,position:"center"})}},d.router={_remove:function(a){d.params.routerRemoveTimeout||d.params.routerRemoveWithTimeout?setTimeout(function(){f(a).remove()},0):f(a).remove()},_modalsSelector:".popup, .modal, .popover, .actions-modal, .picker-modal, .login-screen",temporaryDom:document.createElement("div"),findElement:function(a,b,c,e){b=f(b),e&&(a+=":not(.cached)");var g=b.find(a).filter(function(a,b){return 0===f(b).parents(d.router._modalsSelector).length});return g.length>1&&("string"==typeof c.selector&&(g=b.find(c.selector+" "+a)),g.length>1&&(g=b.find("."+d.params.viewMainClass+" "+a))),1===g.length?g:(e||(g=d.router.findElement(a,b,c,!0)),g&&1===g.length?g:g&&g.length>1?f(g[0]):void 0)},animatePages:function(a,b,c){var d="page-on-center page-on-right page-on-left";"to-left"===c&&(a.removeClass(d).addClass("page-from-center-to-left"),b.removeClass(d).addClass("page-from-right-to-center")),"to-right"===c&&(a.removeClass(d).addClass("page-from-left-to-center"),b.removeClass(d).addClass("page-from-center-to-right"))},prepareNavbar:function(a,b,c){f(a).find(".sliding").each(function(){var a=f(this),b="right"===c?this.f7NavbarRightOffset:this.f7NavbarLeftOffset;d.params.animateNavBackIcon&&a.hasClass("left")&&a.find(".back .icon").length>0&&a.find(".back .icon").transform("translate3d("+-b+"px,0,0)"),a.transform("translate3d("+b+"px,0,0)")})},animateNavbars:function(a,b,c){var e="navbar-on-right navbar-on-center navbar-on-left";"to-left"===c&&(b.removeClass(e).addClass("navbar-from-right-to-center"),b.find(".sliding").each(function(){var a=f(this);a.transform("translate3d(0px,0,0)"),d.params.animateNavBackIcon&&a.hasClass("left")&&a.find(".back .icon").length>0&&a.find(".back .icon").transform("translate3d(0px,0,0)")}),a.removeClass(e).addClass("navbar-from-center-to-left"),a.find(".sliding").each(function(){var a,c=f(this);d.params.animateNavBackIcon&&(c.hasClass("center")&&b.find(".sliding.left .back .icon").length>0&&(a=b.find(".sliding.left .back span"),a.length>0&&(this.f7NavbarLeftOffset+=a[0].offsetLeft)),c.hasClass("left")&&c.find(".back .icon").length>0&&c.find(".back .icon").transform("translate3d("+-this.f7NavbarLeftOffset+"px,0,0)")),c.transform("translate3d("+this.f7NavbarLeftOffset+"px,0,0)")})),"to-right"===c&&(a.removeClass(e).addClass("navbar-from-left-to-center"),a.find(".sliding").each(function(){var a=f(this);a.transform("translate3d(0px,0,0)"),d.params.animateNavBackIcon&&a.hasClass("left")&&a.find(".back .icon").length>0&&a.find(".back .icon").transform("translate3d(0px,0,0)")}),b.removeClass(e).addClass("navbar-from-center-to-right"),b.find(".sliding").each(function(){var a=f(this);d.params.animateNavBackIcon&&a.hasClass("left")&&a.find(".back .icon").length>0&&a.find(".back .icon").transform("translate3d("+-this.f7NavbarRightOffset+"px,0,0)"),a.transform("translate3d("+this.f7NavbarRightOffset+"px,0,0)")}))},preprocess:function(a,b,c,e){d.pluginHook("routerPreprocess",a,b,c,e),b=d.pluginProcess("preprocess",b),a&&a.params&&a.params.preprocess?void 0!==(b=a.params.preprocess(b,c,e))&&e(b):d.params.preprocess?void 0!==(b=d.params.preprocess(b,c,e))&&e(b):e(b)},preroute:function(a,b,c){return c&&(b.isBack=!0),d.pluginHook("routerPreroute",a,b),!!(d.params.preroute&&!1===d.params.preroute(a,b)||a&&a.params.preroute&&!1===a.params.preroute(a,b))},template7Render:function(a,b){var c,e,h=b.url,i=b.content,j=b.content,k=b.context,l=b.contextName,m=b.template;if("string"==typeof i?h?d.template7Cache[h]&&!b.ignoreCache?e=g.cache[h]:(e=g.compile(i),g.cache[h]=e):e=g.compile(i):m&&(e=m),k)c=k,k&&h&&(a.contextCache[h]=k);else{if(l)if(l.indexOf(".")>=0){for(var n=l.split("."),o=g.data[n[0]],p=1;p<n.length;p++)n[p]&&(o=o[n[p]]);c=o}else c=g.data[l];if(!c&&h&&(c=g.data["url:"+h]),!c&&"string"==typeof i&&!m){var q=i.match(/(data-page=["'][^"^']*["'])/);if(q){var r=q[0].split("data-page=")[1].replace(/['"]/g,"");r&&(c=g.data["page:"+r])}}if(!c&&m&&g.templates)for(var s in g.templates)g.templates[s]===m&&(c=g.data[s]);!c&&h&&h in a.contextCache&&(c=a.contextCache[h]),c||(c={})}if(e&&c){if("function"==typeof c&&(c=c()),h){var t=f.parseUrlQuery(h);c.url_query={};for(var u in t)c.url_query[u]=t[u]}try{j=e(c)}catch(a){j="",window.console&&window.console.error&&console.error(a)}}return{content:j,context:c}}},d.router._load=function(a,b){function c(){a.allowPageChange=!0,e.removeClass("page-from-right-to-center page-on-right page-on-left").addClass("page-on-center"),g.removeClass("page-from-center-to-left page-on-center page-on-right").addClass("page-on-left"),m&&(k.removeClass("navbar-from-right-to-center navbar-on-left navbar-on-right").addClass("navbar-on-center"),j.removeClass("navbar-from-center-to-left navbar-on-center navbar-on-right").addClass("navbar-on-left")),d.pageAnimCallback("after",a,{pageContainer:e[0],url:o,position:"right",oldPage:g,newPage:e,query:b.query,fromPage:g&&g.length&&g[0].f7PageData}),d.params.pushState&&a.main&&d.pushStateClearQueue(),a.params.swipeBackPage||a.params.preloadPreviousPage||(a.params.domCache?(g.addClass("cached"),m&&j.addClass("cached")):0===o.indexOf("#")&&0===e.attr("data-page").indexOf("smart-select-")||(d.pageRemoveCallback(a,g[0],"left"),m&&d.navbarRemoveCallback(a,g[0],l[0],j[0]),d.router._remove(g),m&&d.router._remove(j))),a.params.uniqueHistory&&E&&a.refreshPreviousPage()}d.pluginHook("routerLoad",a,b);var e,g,h,i,j,k,l,m,n,o=b.url,p=b.content,q={content:b.content},r=b.template,s=b.pageName,t=f(a.container),u=f(a.pagesContainer),v=b.animatePages,w=void 0===o&&p||r,x=b.pushState,y=b.pageElement;if(void 0===v&&(v=a.params.animatePages),(d.params.template7Pages&&"string"==typeof p||r)&&(q=d.router.template7Render(a,b),q.content&&!p&&(p=q.content)),d.router.temporaryDom.innerHTML="",!s&&!y)if("string"==typeof p||o&&"string"==typeof p)d.router.temporaryDom.innerHTML=q.content;else if("length"in p&&p.length>1)for(var z=0;z<p.length;z++)f(d.router.temporaryDom).append(p[z]);else f(d.router.temporaryDom).append(p);if(n=b.reload&&(b.reloadPrevious?"left":"center"),!(e=s?u.find('.page[data-page="'+s+'"]'):y?f(y):d.router.findElement(".page",d.router.temporaryDom,a))||0===e.length||s&&a.activePage&&a.activePage.name===s)return void(a.allowPageChange=!0);if(e.addClass(b.reload?"page-on-"+n:"page-on-right"),h=u.children(".page:not(.cached)"),y&&(h=h.filter(function(a,b){if(b!==y)return b})),b.reload&&b.reloadPrevious&&1===h.length)return void(a.allowPageChange=!0);if(b.reload)g=h.eq(h.length-1);else{if(h.length>1){for(i=0;i<h.length-2;i++)a.params.domCache?f(h[i]).addClass("cached"):(d.pageRemoveCallback(a,h[i],"left"),d.router._remove(h[i]));a.params.domCache?f(h[i]).addClass("cached"):(d.pageRemoveCallback(a,h[i],"left"),d.router._remove(h[i]))}g=u.children(".page:not(.cached)")}if(y&&g.length>1&&(g=g.filter(function(a,b){if(b!==y)return b})),(a.params.domCache||y)&&e.removeClass("cached"),a.params.dynamicNavbar)if(m=!0,k=s?t.find('.navbar-inner[data-page="'+s+'"]'):d.router.findElement(".navbar-inner",d.router.temporaryDom,a),k&&0!==k.length||(k=e.find(".navbar-inner"),k&&0!==k.length?k.parent(".navbar").length>0&&k.prependTo(e):m=!1),m&&e.find(".navbar").length>0&&d.router._remove(e.find(".navbar").filter(function(a,b){return 0===f(b).parents(d.router._modalsSelector).length})),l=t.children(".navbar"),b.reload)j=l.find(".navbar-inner:not(.cached):last-child");else if(j=l.find(".navbar-inner:not(.cached)"),j.length>0){for(i=0;i<j.length-1;i++)a.params.domCache?f(j[i]).addClass("cached"):(d.navbarRemoveCallback(a,h[i],l[0],j[i]),d.router._remove(j[i]));k||1!==j.length||(a.params.domCache?f(j[0]).addClass("cached"):(d.navbarRemoveCallback(a,h[0],l[0],j[0]),d.router._remove(j[0]))),j=l.find(".navbar-inner:not(.cached)")}if(m&&(k.addClass(b.reload?"navbar-on-"+n:"navbar-on-right"),(a.params.domCache||y)&&k.removeClass("cached"),e[0].f7RelatedNavbar=k[0],k[0].f7RelatedPage=e[0]),o)o&&y&&(a.pageElementsCache[o]={page:e,navbarInner:k});else{var A=s||e.attr("data-page");o=w?"#"+d.params.dynamicPageUrl.replace(/{{name}}/g,A).replace(/{{index}}/g,a.history.length-(b.reload?1:0)):"#"+A,a.params.domCache||(a.contentCache[o]=p),a.params.domCache&&s&&(a.pagesCache[o]=s)}if(d.params.pushState&&!b.reloadPrevious&&a.main){void 0===x&&(x=!0);var B=d.params.pushStateRoot||"",C=b.reload?"replaceState":"pushState";x&&(w||s?w&&p?history[C]({content:"string"==typeof p?p:"",url:o,viewIndex:d.views.indexOf(a)},"",B+d.params.pushStateSeparator+o):s&&history[C]({pageName:s,url:o,viewIndex:d.views.indexOf(a)},"",B+d.params.pushStateSeparator+o):history[C]({url:o,viewIndex:d.views.indexOf(a)},"",B+d.params.pushStateSeparator+o))}if(a.url=o,b.reload){var D=a.history[a.history.length-(b.reloadPrevious?2:1)];D&&0===D.indexOf("#")&&D in a.contentCache&&D!==o&&-1===a.history.indexOf(D)?(a.contentCache[D]=null,delete a.contentCache[D]):D&&D in a.pageElementsCache&&D!==o&&(-1===a.history.indexOf(D)||a.history.indexOf(D)===a.history.length-1)&&(a.pageElementsCache[D]=null,delete a.pageElementsCache[D]),D&&D in a.contextCache&&D!==o&&(-1===a.history.indexOf(D)||a.history.indexOf(D)===a.history.length-1)&&(a.contextCache[D]=null,delete a.contextCache[D]),a.history[a.history.length-(b.reloadPrevious?2:1)]=o}else a.history.push(o);var E=!1;if(a.params.uniqueHistory){var F=a.history,G=o;if(a.params.uniqueHistoryIgnoreGetParameters)for(F=[],G=o.split("?")[0],i=0;i<a.history.length;i++)F.push(a.history[i].split("?")[0]);F.indexOf(G)!==F.lastIndexOf(G)&&(a.history=a.history.slice(0,F.indexOf(G)),a.history.push(o),E=!0)}if(b.reloadPrevious?(g=g.prev(".page"),e.insertBefore(g),m&&(j=j.prev(".navbar-inner"),k.insertAfter(j))):(u.append(e[0]),m&&l.append(k[0])),b.reload&&(a.params.domCache&&a.initialPages.indexOf(g[0])>=0?(g.addClass("cached"),m&&j.addClass("cached")):(d.pageRemoveCallback(a,g[0],n),m&&d.navbarRemoveCallback(a,g[0],l[0],j[0]),d.router._remove(g),m&&d.router._remove(j))),d.pageInitCallback(a,{pageContainer:e[0],url:o,position:b.reload?n:"right",navbarInnerContainer:m?k&&k[0]:void 0,oldNavbarInnerContainer:m?j&&j[0]:void 0,context:q.context||b.context,query:b.query,fromPage:g&&g.length&&g[0].f7PageData,reload:b.reload,reloadPrevious:b.reloadPrevious}),m&&d.navbarInitCallback(a,e[0],l[0],k[0],o,b.reload?n:"right"),b.reload)return a.allowPageChange=!0,void(E&&a.refreshPreviousPage());m&&v&&d.router.prepareNavbar(k,j,"right"),e[0].clientLeft,d.pageAnimCallback("before",a,{pageContainer:e[0],url:o,position:"right",oldPage:g,newPage:e,query:b.query,fromPage:g&&g.length&&g[0].f7PageData}),v?(d.params.material&&d.params.materialPageLoadDelay?setTimeout(function(){d.router.animatePages(g,e,"to-left",a)},d.params.materialPageLoadDelay):d.router.animatePages(g,e,"to-left",a),m&&setTimeout(function(){d.router.animateNavbars(j,k,"to-left",a)},0),e.animationEnd(function(){c()})):(m&&k.find(".sliding, .sliding .back .icon").transform(""),c())},d.router.load=function(a,b){function c(c){d.router.preprocess(a,c,e,function(c){b.content=c,d.router._load(a,b)})}if(b=b||{},d.routerPreOptions&&(b=d.routerPreOptions(a,b)||{}),!b.component||!d.componentLoader){if(d.router.preroute(a,b))return!1;var e=b.url,g=b.content,h=b.pageName,i=b.pageElement;h&&h.indexOf("?")>0&&(b.query=f.parseUrlQuery(h),b.pageName=h=h.split("?")[0]);var j=b.template;return!0===a.params.reloadPages&&(b.reload=!0),!!a.allowPageChange&&(!(e&&a.url===e&&!b.reload&&!a.params.allowDuplicateUrls)&&(a.allowPageChange=!1,d.xhr&&a.xhr&&a.xhr===d.xhr&&(d.xhr.abort(),d.xhr=!1),g||h||i?void c(g):j?void d.router._load(a,b):b.url&&"#"!==b.url?void d.get(b.url,a,b.ignoreCache,function(b,d){if(d)return void(a.allowPageChange=!0);c(b)}):void(a.allowPageChange=!0)))}try{d.componentLoader(a,b,function(b){d.router.load(a,b)})}catch(a){}},d.router._back=function(a,b){function c(){d.pageBackCallback("after",a,{pageContainer:i[0],url:p,position:"center",oldPage:i,newPage:j}),d.pageAnimCallback("after",a,{pageContainer:j[0],url:p,position:"left",oldPage:i,newPage:j,query:b.query,fromPage:i&&i.length&&i[0].f7PageData}),d.router.afterBack(a,i[0],j[0])}function e(){d.pageBackCallback("before",a,{pageContainer:i[0],url:p,position:"center",oldPage:i,newPage:j}),d.pageAnimCallback("before",a,{pageContainer:j[0],url:p,position:"left",oldPage:i,newPage:j,query:b.query,fromPage:i&&i.length&&i[0].f7PageData}),t?(d.router.animatePages(j,i,"to-right",a),o&&setTimeout(function(){d.router.animateNavbars(l,k,"to-right",a)},0),j.animationEnd(function(){c()})):(o&&l.find(".sliding, .sliding .back .icon").transform(""),c())}function g(){if(d.router.temporaryDom.innerHTML="","string"==typeof q||p&&"string"==typeof q)d.router.temporaryDom.innerHTML=r.content;else if("length"in q&&q.length>1)for(var b=0;b<q.length;b++)f(d.router.temporaryDom).append(q[b]);else f(d.router.temporaryDom).append(q);j=y?f(y):d.router.findElement(".page",d.router.temporaryDom,a),a.params.dynamicNavbar&&(l=d.router.findElement(".navbar-inner",d.router.temporaryDom,a))}function h(){if(!j||0===j.length)return void(a.allowPageChange=!0);if(a.params.dynamicNavbar&&void 0===o&&(o=!(!l||0===l.length)),j.addClass("page-on-left").removeClass("cached"),o&&(m=z.children(".navbar"),n=m.find(".navbar-inner:not(.cached)"),l.addClass("navbar-on-left").removeClass("cached")),w){var c,g;if(c=f(B[B.length-2]),o&&(g=f(c[0]&&c[0].f7RelatedNavbar||n[n.length-2])),a.params.domCache&&a.initialPages.indexOf(c[0])>=0)c.length&&c[0]!==j[0]&&c.addClass("cached"),o&&g.length&&g[0]!==l[0]&&g.addClass("cached");else{var h=o&&g.length;c.length?(d.pageRemoveCallback(a,c[0],"right"),h&&d.navbarRemoveCallback(a,c[0],m[0],g[0]),d.router._remove(c),h&&d.router._remove(g)):h&&(d.navbarRemoveCallback(a,c[0],m[0],g[0]),d.router._remove(g))}B=A.children(".page:not(.cached)"),o&&(n=z.children(".navbar").find(".navbar-inner:not(.cached)")),a.history.indexOf(p)>=0?a.history=a.history.slice(0,a.history.indexOf(p)+2):a.history[[a.history.length-2]]?a.history[a.history.length-2]=p:a.history.unshift(p)}if(i=f(B[B.length-1]),a.params.domCache&&i[0]===j[0]&&(i=A.children(".page.page-on-center"),0===i.length&&a.activePage&&(i=f(a.activePage.container))),o&&!k&&(k=f(n[n.length-1]),a.params.domCache&&(k[0]===l[0]&&(k=m.children(".navbar-inner.navbar-on-center:not(.cached)")),0===k.length&&(k=m.children('.navbar-inner[data-page="'+i.attr("data-page")+'"]'))),0!==k.length&&l[0]!==k[0]||(o=!1)),o&&(C&&l.insertBefore(k),l[0].f7RelatedPage=j[0],j[0].f7RelatedNavbar=l[0]),C&&j.insertBefore(i),d.pageInitCallback(a,{pageContainer:j[0],url:p,position:"left",navbarInnerContainer:o?l[0]:void 0,oldNavbarInnerContainer:o?k&&k[0]:void 0,context:r.context,query:b.query,fromPage:i&&i.length&&i[0].f7PageData,preloadOnly:u}),o&&d.navbarInitCallback(a,j[0],m[0],l[0],p,"right"),o&&l.hasClass("navbar-on-left")&&t&&d.router.prepareNavbar(l,k,"left"),u)return void(a.allowPageChange=!0);a.url=p,j[0].clientLeft,e(),d.params.pushState&&a.main&&(void 0===v&&(v=!0),!u&&history.state&&v&&history.back())}b=b||{},d.pluginHook("routerBack",a,b);var i,j,k,l,m,n,o,p=b.url,q=b.content,r={content:b.content},s=b.template,t=b.animatePages,u=b.preloadOnly,v=b.pushState,w=(b.ignoreCache,b.force),x=b.pageName,y=b.pageElement,z=f(a.container),A=f(a.pagesContainer),B=A.children(".page:not(.cached)"),C=!0;return void 0===t&&(t=a.params.animatePages),(d.params.template7Pages&&"string"==typeof q||s)&&(r=d.router.template7Render(a,b),r.content&&!q&&(q=r.content)),B.length>1&&!w?u?void(a.allowPageChange=!0):(a.url=a.history[a.history.length-2],p=a.url,j=f(B[B.length-2]),i=f(B[B.length-1]),a.params.dynamicNavbar&&(o=!0,n=z.children(".navbar").find(".navbar-inner:not(.cached)"),l=f(n[0]),k=f(n[1]),0!==l.length&&0!==k.length&&k[0]!==l[0]||(o=!1)),C=!1,void h()):w?p&&p===a.url||x&&a.activePage&&a.activePage.name===x?void(a.allowPageChange=!0):q?(g(),void h()):x&&a.params.domCache?(x&&(p="#"+x),j=f(z).find('.page[data-page="'+x+'"]'),j[0].f7PageData&&j[0].f7PageData.url&&(p=j[0].f7PageData.url),a.params.dynamicNavbar&&(l=f(z).children(".navbar").find('.navbar-inner[data-page="'+x+'"]'),0===l.length&&j[0].f7RelatedNavbar&&(l=f(j[0].f7RelatedNavbar)),0===l.length&&j[0].f7PageData&&(l=f(j[0].f7PageData.navbarInnerContainer))),void h()):y&&p?(j=f(y),a.params.dynamicNavbar&&(l=j.find(".navbar-inner").filter(function(a,b){return 0===f(b).parents(d.router._modalsSelector).length}),l.length>0&&(j.prepend(l),d.router._remove(j.find(".navbar").filter(function(a,b){return 0===f(b).parents(d.router._modalsSelector).length})))),void h()):void(a.allowPageChange=!0):(u||(a.url=a.history[a.history.length-2],p=a.url),q?(g(),void h()):x?(j=f(z).find('.page[data-page="'+x+'"]'),a.params.dynamicNavbar&&(l=f(z).children(".navbar").find('.navbar-inner[data-page="'+x+'"]'),0===l.length&&j[0].f7RelatedNavbar&&(l=f(j[0].f7RelatedNavbar)),0===l.length&&j[0].f7PageData&&(l=f(j[0].f7PageData.navbarInnerContainer))),void h()):p&&p in a.pageElementsCache?(j=a.pageElementsCache[p].page,l=a.pageElementsCache[p].navbarInner,void h()):void(a.allowPageChange=!0))},d.router.back=function(a,b){function c(c){d.router.preprocess(a,c,e,function(c){b.content=c,d.router._back(a,b)})}if(b=b||{},d.routerPreOptions&&(b=d.routerPreOptions(a,b)||{}),b.component&&d.componentLoader)try{d.componentLoader(a,b,function(b){d.router.load(a,b)})}catch(a){}else{if(d.router.preroute(a,b,!0))return!1;var e=b.url,g=b.content,h=b.pageName,i=b.pageElement;h&&h.indexOf("?")>0&&(b.query=f.parseUrlQuery(h),b.pageName=h=h.split("?")[0]);var j=b.force;if(!a.allowPageChange)return!1;if(a.allowPageChange=!1,d.xhr&&a.xhr&&a.xhr===d.xhr&&(d.xhr.abort(),d.xhr=!1),f(a.pagesContainer).find(".page:not(.cached)").length>1&&!j)return void d.router._back(a,b);if(j){if(!e&&g)return void c(g);if(!e&&h)return h&&(e="#"+h),void c();if(e&&i)return void c();if(e)return void d.get(b.url,a,b.ignoreCache,function(b,d){if(d)return void(a.allowPageChange=!0);c(b)})}else{if(e=a.history[a.history.length-2]||b.url,b.url||(b.url=e),!e)return void(a.allowPageChange=!0);if(0===e.indexOf("#")&&a.contentCache[e])return void c(a.contentCache[e]);if(0===e.indexOf("#")&&a.params.domCache)return h||(b.pageName=e.split("#")[1]),void c();if(e&&e in a.pageElementsCache)c();else if(0!==e.indexOf("#"))return void d.get(b.url,a,b.ignoreCache,function(b,d){if(d)return void(a.allowPageChange=!0);c(b)})}a.allowPageChange=!0}},d.router.afterBack=function(a,b,c){b=f(b),c=f(c),a.params.domCache&&a.initialPages.indexOf(b[0])>=0?b.removeClass("page-from-center-to-right").addClass("cached"):(d.pageRemoveCallback(a,b[0],"right"),d.router._remove(b)),c.removeClass("page-from-left-to-center page-on-left").addClass("page-on-center"),a.allowPageChange=!0;var e,g=a.history.pop();if(a.params.dynamicNavbar){var h=f(a.container).children(".navbar").find(".navbar-inner:not(.cached)"),i=f(b[0].f7RelatedNavbar||h[1]);a.params.domCache&&a.initialNavbars.indexOf(i[0])>=0?i.removeClass("navbar-from-center-to-right").addClass("cached"):(d.navbarRemoveCallback(a,b[0],void 0,i[0]),d.router._remove(i)),e=f(h[0]).removeClass("navbar-on-left navbar-from-left-to-center").addClass("navbar-on-center")}if(a.params.domCache&&f(a.container).find(".page.cached").each(function(){var b=f(this),c=b[0].f7PageData&&b[0].f7PageData.url;c&&a.history.indexOf(c)<0&&a.initialPages.indexOf(this)<0&&(d.pageRemoveCallback(a,b[0],"right"),b[0].f7RelatedNavbar&&a.params.dynamicNavbar&&d.navbarRemoveCallback(a,b[0],void 0,b[0].f7RelatedNavbar),d.router._remove(b),b[0].f7RelatedNavbar&&a.params.dynamicNavbar&&d.router._remove(b[0].f7RelatedNavbar))}),!a.params.domCache&&g&&g.indexOf("#")>-1&&g in a.contentCache&&-1===a.history.indexOf(g)&&(a.contentCache[g]=null,delete a.contentCache[g]),g&&g in a.pageElementsCache&&-1===a.history.indexOf(g)&&(a.pageElementsCache[g]=null,delete a.pageElementsCache[g]),g&&g in a.contextCache&&-1===a.history.indexOf(g)&&(a.contextCache[g]=null,delete a.contextCache[g]),d.params.pushState&&a.main&&d.pushStateClearQueue(),a.params.preloadPreviousPage)if(a.params.domCache&&a.history.length>1){var j,k,l=a.history[a.history.length-2];l&&a.pagesCache[l]?(j=f(a.container).find('.page[data-page="'+a.pagesCache[l]+'"]'),j.next(".page")[0]!==c[0]&&j.insertBefore(c),e&&(k=f(a.container).children(".navbar").find('.navbar-inner[data-page="'+a.pagesCache[l]+'"]'),k&&0!==k.length||(k=e.prev(".navbar-inner.cached")),k.next(".navbar-inner")[0]!==e[0]&&k.insertBefore(e))):(j=c.prev(".page.cached"),e&&(k=e.prev(".navbar-inner.cached"))),j&&j.length>0&&j.removeClass("cached page-on-right page-on-center").addClass("page-on-left"),k&&k.length>0&&k.removeClass("cached navbar-on-right navbar-on-center").addClass("navbar-on-left")}else d.router.back(a,{preloadOnly:!0})};var m=document.createElement("div");d.modalStack=[],d.modalStackClearQueue=function(){d.modalStack.length&&d.modalStack.shift()()},d.modal=function(a){a=a||{};var b="";if(d.params.modalTemplate)d._compiledTemplates.modal||(d._compiledTemplates.modal=g.compile(d.params.modalTemplate)),b=d._compiledTemplates.modal(a);else{var c="";if(a.buttons&&a.buttons.length>0)for(var e=0;e<a.buttons.length;e++)c+='<span class="modal-button'+(a.buttons[e].bold?" modal-button-bold":"")+'">'+a.buttons[e].text+"</span>";var h=a.title?'<div class="modal-title">'+a.title+"</div>":"",i=a.text?'<div class="modal-text">'+a.text+"</div>":"",j=a.afterText?a.afterText:"",k=a.buttons&&0!==a.buttons.length?"":"modal-no-buttons",l=a.verticalButtons?"modal-buttons-vertical":"",n=a.buttons&&a.buttons.length>0?'<div class="modal-buttons modal-buttons-'+a.buttons.length+" "+l+'">'+c+"</div>":"";b='<div class="modal '+k+" "+(a.cssClass||"")+'"><div class="modal-inner">'+(h+i+j)+"</div>"+n+"</div>"}m.innerHTML=b;var o=f(m).children();return d.root.append(o[0]),o.find(".modal-button").each(function(b,c){f(c).on("click",function(c){!1!==a.buttons[b].close&&d.closeModal(o),a.buttons[b].onClick&&a.buttons[b].onClick(o,c),a.onClick&&a.onClick(o,b)})}),d.openModal(o),o[0]},d.alert=function(a,b,c){return"function"==typeof b&&(c=arguments[1],b=void 0),d.modal({text:a||"",title:void 0===b?d.params.modalTitle:b,buttons:[{text:d.params.modalButtonOk,bold:!0,onClick:c}]})},d.confirm=function(a,b,c,e){return"function"==typeof b&&(e=arguments[2],c=arguments[1],b=void 0),d.modal({text:a||"",title:void 0===b?d.params.modalTitle:b,buttons:[{text:d.params.modalButtonCancel,onClick:e},{text:d.params.modalButtonOk,bold:!0,onClick:c}]})},d.prompt=function(a,b,c,e){return"function"==typeof b&&(e=arguments[2],c=arguments[1],b=void 0),d.modal({text:a||"",title:void 0===b?d.params.modalTitle:b,afterText:'<div class="input-field"><input type="text" class="modal-text-input"></div>',buttons:[{text:d.params.modalButtonCancel},{text:d.params.modalButtonOk,bold:!0}],onClick:function(a,b){0===b&&e&&e(f(a).find(".modal-text-input").val()),1===b&&c&&c(f(a).find(".modal-text-input").val())}})},d.modalLogin=function(a,b,c,e){return"function"==typeof b&&(e=arguments[2],c=arguments[1],b=void 0),d.modal({text:a||"",title:void 0===b?d.params.modalTitle:b,afterText:'<div class="input-field modal-input-double"><input type="text" name="modal-username" placeholder="'+d.params.modalUsernamePlaceholder+'" class="modal-text-input"></div><div class="input-field modal-input-double"><input type="password" name="modal-password" placeholder="'+d.params.modalPasswordPlaceholder+'" class="modal-text-input"></div>',
  buttons:[{text:d.params.modalButtonCancel},{text:d.params.modalButtonOk,bold:!0}],onClick:function(a,b){var d=f(a).find('.modal-text-input[name="modal-username"]').val(),g=f(a).find('.modal-text-input[name="modal-password"]').val();0===b&&e&&e(d,g),1===b&&c&&c(d,g)}})},d.modalPassword=function(a,b,c,e){return"function"==typeof b&&(e=arguments[2],c=arguments[1],b=void 0),d.modal({text:a||"",title:void 0===b?d.params.modalTitle:b,afterText:'<div class="input-field"><input type="password" name="modal-password" placeholder="'+d.params.modalPasswordPlaceholder+'" class="modal-text-input"></div>',buttons:[{text:d.params.modalButtonCancel},{text:d.params.modalButtonOk,bold:!0}],onClick:function(a,b){var d=f(a).find('.modal-text-input[name="modal-password"]').val();0===b&&e&&e(d),1===b&&c&&c(d)}})},d.showPreloader=function(a){return d.modal({title:a||d.params.modalPreloaderTitle,text:'<div class="preloader">'+(d.params.material?d.params.materialPreloaderHtml:"")+"</div>",cssClass:"modal-preloader"})},d.hidePreloader=function(){d.closeModal(".modal-preloader")},d.showIndicator=function(){f(".preloader-indicator-overlay").length>0||d.root.append('<div class="preloader-indicator-overlay"></div><div class="preloader-indicator-modal"><span class="preloader preloader-white">'+(d.params.material?d.params.materialPreloaderHtml:"")+"</span></div>")},d.hideIndicator=function(){f(".preloader-indicator-overlay, .preloader-indicator-modal").remove()},d.actions=function(a,b,c){var e,h,i,j=!1;1===arguments.length||2===arguments.length&&"boolean"==typeof arguments[1]?(b=arguments[0],c=arguments[1]):d.device.ios?d.device.ipad&&(j=!0):d.width>=768&&(j=!0),void 0===c&&(c=!0),b=b||[],b.length>0&&!Array.isArray(b[0])&&(b=[b]);var k;if(j){var l=d.params.modalActionsToPopoverTemplate||'<div class="popover actions-popover"><div class="popover-inner">{{#each this}}<div class="list-block"><ul>{{#each this}}{{#if label}}<li class="actions-popover-label {{#if color}}color-{{color}}{{/if}} {{#if bold}}actions-popover-bold{{/if}}">{{text}}</li>{{else}}<li><a href="#" class="item-link list-button {{#if color}}color-{{color}}{{/if}} {{#if bg}}bg-{{bg}}{{/if}} {{#if bold}}actions-popover-bold{{/if}} {{#if disabled}}disabled{{/if}}">{{text}}</a></li>{{/if}}{{/each}}</ul></div>{{/each}}</div></div>';d._compiledTemplates.actionsToPopover||(d._compiledTemplates.actionsToPopover=g.compile(l));var n=d._compiledTemplates.actionsToPopover(b);e=f(d.popover(n,a,!0,c)),h=".list-block ul",i=".list-button"}else{if(d.params.modalActionsTemplate)d._compiledTemplates.actions||(d._compiledTemplates.actions=g.compile(d.params.modalActionsTemplate)),k=d._compiledTemplates.actions(b);else{for(var o="",p=0;p<b.length;p++)for(var q=0;q<b[p].length;q++){0===q&&(o+='<div class="actions-modal-group">');var r=b[p][q],s=r.label?"actions-modal-label":"actions-modal-button";r.bold&&(s+=" actions-modal-button-bold"),r.color&&(s+=" color-"+r.color),r.bg&&(s+=" bg-"+r.bg),r.disabled&&(s+=" disabled"),o+='<div class="'+s+'">'+r.text+"</div>",q===b[p].length-1&&(o+="</div>")}k='<div class="actions-modal">'+o+"</div>"}m.innerHTML=k,e=f(m).children(),d.root.append(e[0]),h=".actions-modal-group",i=".actions-modal-button"}return e.find(h).each(function(a,c){var g=a;f(c).children().each(function(a,c){var h,k=a,l=b[g][k];!j&&f(c).is(i)&&(h=f(c)),j&&f(c).find(i).length>0&&(h=f(c).find(i)),h&&h.on("click",function(a){!1!==l.close&&d.closeModal(e),l.onClick&&l.onClick(e,a)})})}),j||d.openModal(e,c),e[0]},d.popover=function(a,b,c,e,g){function h(){a.css({left:"",top:""});var c,e,f,g=a.width(),h=a.height(),i=0;j?a.removeClass("popover-on-left popover-on-right popover-on-top popover-on-bottom").css({left:"",top:""}):(c=a.find(".popover-angle"),i=c.width()/2,c.removeClass("on-left on-right on-top on-bottom").css({left:"",top:""}));var k=b.outerWidth(),l=b.outerHeight(),m=b.offset(),n=m.left-d.left,o=m.top-d.top,p=b.parents(".page");p.length>0&&(o-=p[0].scrollTop);var q=0,r=0,s=0,t=j?"bottom":"top";if(j)if(h<d.height-o-l?(t="bottom",q=o):h<o?(q=o-h+l,t="top"):(t="bottom",q=o),q<=0?q=8:q+h>=d.height&&(q=d.height-h-8),r=n,r+g>=d.width-8&&(r=n+k-g-8),r<8&&(r=8),"top"===t&&a.addClass("popover-on-top"),"bottom"===t&&a.addClass("popover-on-bottom"),b.hasClass("floating-button-to-popover")&&!a.hasClass("modal-in")){a.addClass("popover-floating-button");var u=r+g/2-(n+k/2),v=q+h/2-(o+l/2);b.addClass("floating-button-to-popover-in").transform("translate3d("+u+"px, "+v+"px,0)").transitionEnd(function(a){b.hasClass("floating-button-to-popover-in")&&b.addClass("floating-button-to-popover-scale").transform("translate3d("+u+"px, "+v+"px,0) scale("+g/k+", "+h/l+")")}),a.once("popover:close",function(){b.removeClass("floating-button-to-popover-in floating-button-to-popover-scale").addClass("floating-button-to-popover-out").transform("").transitionEnd(function(a){b.removeClass("floating-button-to-popover-out")})}),a.once("popover:closed",function(){a.removeClass("popover-floating-button")})}else b.hasClass("floating-button-to-popover")&&a.hasClass("modal-in")&&(r=n,q=o);else h+i<o?q=o-h-i:h+i<d.height-o-l?(t="bottom",q=o+l+i):(t="middle",q=l/2+o-h/2,s=q,q<=0?q=5:q+h>=d.height&&(q=d.height-h-5),s-=q),"top"===t||"bottom"===t?(r=k/2+n-g/2,s=r,r<5&&(r=5),r+g>d.width&&(r=d.width-g-5),"top"===t&&c.addClass("on-bottom"),"bottom"===t&&c.addClass("on-top"),s-=r,e=g/2-i+s,e=Math.max(Math.min(e,g-2*i-13),13),c.css({left:e+"px"})):"middle"===t&&(r=n-g-i,c.addClass("on-right"),(r<5||r+g>d.width)&&(r<5&&(r=n+k+i),r+g>d.width&&(r=d.width-g-5),c.removeClass("on-right").addClass("on-left")),f=h/2-i+s,f=Math.max(Math.min(f,h-2*i-13),13),c.css({top:f+"px"}));a.css({top:q+"px",left:r+"px"})}if(void 0===c&&(c=!0),void 0===g&&(g=!0),void 0===e&&(e=!0),"string"==typeof a&&a.indexOf("<")>=0){var i=document.createElement("div");if(i.innerHTML=a.trim(),!(i.childNodes.length>0))return!1;a=i.childNodes[0],c&&a.classList.add("remove-on-close"),g||a.classList.add("ignore-close-by-outside"),d.root.append(a)}if(a=f(a),b=f(b),0===a.length||0===b.length)return!1;0===a.parents("body").length&&(c&&a.addClass("remove-on-close"),g||a.addClass.add("ignore-close-by-outside"),d.root.append(a[0])),0!==a.find(".popover-angle").length||d.params.material||a.append('<div class="popover-angle"></div>'),a.show();var j=d.params.material;return h(),d.onResize(h),a.on("popover:close",function(){d.offResize(h)}),d.openModal(a,e),a[0]},d.popup=function(a,b,c){if(void 0===b&&(b=!0),void 0===c&&(c=!0),"string"==typeof a&&a.indexOf("<")>=0){var e=document.createElement("div");if(e.innerHTML=a.trim(),!(e.childNodes.length>0))return!1;a=e.childNodes[0],b&&a.classList.add("remove-on-close"),d.root.append(a)}return a=f(a),0!==a.length&&(0===a.parents("body").length&&(b&&a.addClass("remove-on-close"),d.root.append(a[0])),a.show(),d.openModal(a,c),a[0])},d.pickerModal=function(a,b,c){if(void 0===b&&(b=!0),void 0===c&&(c=!0),"string"==typeof a&&a.indexOf("<")>=0){if(a=f(a),!(a.length>0))return!1;b&&a.addClass("remove-on-close"),d.root.append(a[0])}return a=f(a),0!==a.length&&(0===a.parents("body").length&&(b&&a.addClass("remove-on-close"),d.root.append(a[0])),f(".picker-modal.modal-in:not(.modal-out)").length>0&&!a.hasClass("modal-in")&&d.closeModal(".picker-modal.modal-in:not(.modal-out)"),a.show(),d.openModal(a,c),a[0])},d.loginScreen=function(a,b){return a||(a=".login-screen"),void 0===b&&(b=!0),a=f(a),0!==a.length&&(f(".login-screen.modal-in:not(.modal-out)").length>0&&!a.hasClass("modal-in")&&d.closeModal(".login-screen.modal-in:not(.modal-out)"),a.show(),d.openModal(a,b),a[0])},d.openModal=function(a,b){void 0===b&&(b=!0),a=f(a),a[b?"removeClass":"addClass"]("not-animated");var c=a.hasClass("modal"),e=a.hasClass("popover"),g=a.hasClass("popup"),h=a.hasClass("login-screen"),i=a.hasClass("picker-modal"),j=a.hasClass("actions-modal"),k="modal";if(e&&(k="popover"),g&&(k="popup"),h&&(k="loginscreen"),i&&(k="picker"),j&&(k="actions"),f(".modal.modal-in:not(.modal-out)").length&&d.params.modalStack&&c)return void d.modalStack.push(function(){d.openModal(a)});if(!0!==a.data("f7-modal-shown")){a.data("f7-modal-shown",!0);var l=a.parent();d.params.modalsMoveToRoot&&!l.is(d.root)&&(d.root.append(a),a.once(k+":closed",function(){l.append(a)})),a.once(k+":close",function(){a.removeData("f7-modal-shown")}),c&&(a.show(),a.css({marginTop:-Math.round(a.outerHeight()/2)+"px"}));var m;return h||i||(0!==f(".modal-overlay").length||g||d.root.append('<div class="modal-overlay"></div>'),0===f(".popup-overlay").length&&g&&d.root.append('<div class="popup-overlay"></div>'),m=f(g?".popup-overlay":".modal-overlay")),d.params.material&&i&&a.hasClass("picker-calendar")&&(0!==f(".picker-modal-overlay").length||g||d.root.append('<div class="picker-modal-overlay"></div>'),m=f(".picker-modal-overlay")),m&&m[b?"removeClass":"addClass"]("not-animated"),a[0].clientLeft,a.trigger("open "+k+":open"),i&&f("body").addClass("with-picker-modal"),a.find("."+d.params.viewClass).length>0&&(a.find(".page").each(function(){d.initPageWithCallback(this)}),a.find(".navbar").each(function(){d.initNavbarWithCallback(this)})),h||i||m.addClass("modal-overlay-visible"),d.params.material&&i&&m&&m.addClass("modal-overlay-visible"),b?a.removeClass("modal-out").addClass("modal-in").transitionEnd(function(b){a.hasClass("modal-out")?a.trigger("closed "+k+":closed"):a.trigger("opened "+k+":opened")}):(a.removeClass("modal-out").addClass("modal-in"),a.trigger("opened "+k+":opened")),!0}},d.closeModal=function(a,b){if(void 0===b&&(b=!0),void 0===(a=f(a||".modal-in"))||0!==a.length){a[b?"removeClass":"addClass"]("not-animated");var c=a.hasClass("modal"),e=a.hasClass("popover"),g=a.hasClass("popup"),h=a.hasClass("login-screen"),i=a.hasClass("picker-modal"),j=a.hasClass("actions-modal"),k="modal";e&&(k="popover"),g&&(k="popup"),h&&(k="loginscreen"),i&&(k="picker"),j&&(k="actions");var l=a.hasClass("remove-on-close");if(!e||l||!a.hasClass("ignore-close-by-outside")){var m,n=a.hasClass("keep-on-close");return g?m=f(".popup-overlay"):i&&d.params.material?m=f(".picker-modal-overlay"):i||(m=f(".modal-overlay")),g?a.length===f(".popup.modal-in").length&&m.removeClass("modal-overlay-visible"):m&&m.length>0&&m.removeClass("modal-overlay-visible"),m&&m[b?"removeClass":"addClass"]("not-animated"),a.trigger("close "+k+":close"),i&&(f("body").removeClass("with-picker-modal"),f("body").addClass("picker-modal-closing")),!e||d.params.material?(b?a.removeClass("modal-in").addClass("modal-out").transitionEnd(function(b){if(a.hasClass("modal-out"))a.trigger("closed "+k+":closed");else if(a.trigger("opened "+k+":opened"),e)return;i&&f("body").removeClass("picker-modal-closing"),g||h||i||e?(a.removeClass("modal-out").hide(),l&&a.length>0&&a.remove()):n||a.remove()}):(a.trigger("closed "+k+":closed"),a.removeClass("modal-in modal-out"),i&&f("body").removeClass("picker-modal-closing"),g||h||i||e?(a.hide(),l&&a.length>0&&a.remove()):n||a.remove()),c&&d.params.modalStack&&d.modalStackClearQueue()):(a.removeClass("modal-in modal-out not-animated").trigger("closed "+k+":closed").hide(),l&&a.remove()),!0}}},d.setProgressbar=function(a,b,c){if(a=f(a||d.root),0!==a.length){b&&(b=Math.min(Math.max(b,0),100));var e;if(e=a.hasClass("progressbar")?a:a.children(".progressbar"),0!==e.length&&!e.hasClass("progressbar-infinite"))return e[0].clientLeft,e.children("span").transform("translate3d("+(-100+b)+"%,0,0)"),void 0!==c?e.children("span").transition(c):e.children("span").transition(""),e[0]}},d.showProgressbar=function(a,b,c){if("number"==typeof a&&(a=d.root,b=arguments[0],c=arguments[1]),b&&"string"==typeof b&&parseFloat(b)!==1*b&&(c=b,b=void 0),a=f(a||d.root),0!==a.length){var e;return a.hasClass("progressbar")?e=a:(e=a.children(".progressbar:not(.progressbar-out), .progressbar-infinite:not(.progressbar-out)"),0===e.length&&(e=f(void 0!==b?'<span class="progressbar progressbar-in'+(c?" color-"+c:"")+'"><span></span></span>':'<span class="progressbar-infinite progressbar-in'+(c?" color-"+c:"")+'"></span>'),a.append(e))),b&&d.setProgressbar(a,b),e[0]}},d.hideProgressbar=function(a){if(a=f(a||d.root),0!==a.length){var b;b=a.hasClass("progressbar")?a:a.children(".progressbar, .progressbar-infinite"),0!==b.length&&b.hasClass("progressbar-in")&&!b.hasClass("progressbar-out")&&b.removeClass("progressbar-in").addClass("progressbar-out").animationEnd(function(){b.remove(),b=null})}},d.initPageProgressbar=function(a){a=f(a),a.find(".progressbar").each(function(){var a=f(this);0===a.children("span").length&&a.append("<span></span>"),a.attr("data-progress")&&d.setProgressbar(a,a.attr("data-progress"))})},d.allowPanelOpen=!0,d.openPanel=function(a,b){function c(){i.transitionEnd(function(a){f(a.target).is(i)?(e.hasClass("active")?e.trigger("opened panel:opened"):e.trigger("closed panel:closed"),h.css({display:""}),d.allowPanelOpen=!0):c()})}if(void 0===b&&(b=!0),!d.allowPanelOpen)return!1;var e=f(".panel-"+a);if(0===e.length||e.hasClass("active")||e.hasClass("panel-visible-by-breakpoint"))return!1;d.closePanel(),d.allowPanelOpen=!1;var g=e.hasClass("panel-reveal")?"reveal":"cover";e[b?"removeClass":"addClass"]("not-animated"),e.css({display:"block"}).addClass("active"),e.trigger("open panel:open");var h=f(".panel-overlay");h[b?"removeClass":"addClass"]("not-animated"),h.show(),e.find("."+d.params.viewClass).length>0&&d.sizeNavbars&&d.sizeNavbars(e.find("."+d.params.viewClass)[0]);var i=(e[0].clientLeft,"reveal"===g?f("."+d.params.viewsClass):e);return b?c():(e.trigger("opened panel:opened"),h.css({display:""}),d.allowPanelOpen=!0),f("body").addClass("with-panel-"+a+"-"+g),!0},d.closePanel=function(a){void 0===a&&(a=!0);var b=f(".panel.active");if(0===b.length||b.hasClass("panel-visible-by-breakpoint"))return!1;var c=b.hasClass("panel-reveal")?"reveal":"cover",e=b.hasClass("panel-left")?"left":"right";b[a?"removeClass":"addClass"]("not-animated"),b.removeClass("active"),f(".panel-overlay").removeClass("not-animated");var g="reveal"===c?f("."+d.params.viewsClass):b;b.trigger("close panel:close"),d.allowPanelOpen=!1,a?(g.transitionEnd(function(){b.hasClass("active")||(b.css({display:""}),b.trigger("closed panel:closed"),f("body").removeClass("panel-closing"),d.allowPanelOpen=!0)}),f("body").addClass("panel-closing").removeClass("with-panel-"+e+"-"+c)):(b.css({display:""}),b.trigger("closed panel:closed"),b.removeClass("not-animated"),f("body").removeClass("with-panel-"+e+"-"+c),d.allowPanelOpen=!0)},d.initPanelsBreakpoints=function(){function a(){d.params.panelLeftBreakpoint&&c.length>0&&(b=c.hasClass("panel-visible-by-breakpoint"),d.width>=d.params.panelLeftBreakpoint?b||(f("body").removeClass("with-panel-left-reveal with-panel-left-cover"),c.css("display","").addClass("panel-visible-by-breakpoint").removeClass("active"),c.trigger("open panel:open opened panel:opened"),g.css({"margin-left":c.width()+"px"}),d.allowPanelOpen=!0):b&&(c.css("display","").removeClass("panel-visible-by-breakpoint active"),c.trigger("close panel:close closed panel:closed"),g.css({"margin-left":""}),d.allowPanelOpen=!0)),d.params.panelRightBreakpoint&&e.length>0&&(b=e.hasClass("panel-visible-by-breakpoint"),d.width>=d.params.panelRightBreakpoint?b||(f("body").removeClass("with-panel-right-reveal with-panel-right-cover"),e.css("display","").addClass("panel-visible-by-breakpoint").removeClass("active"),e.trigger("open panel:open opened panel:opened"),g.css({"margin-right":e.width()+"px"}),d.allowPanelOpen=!0):b&&(e.css("display","").removeClass("panel-visible-by-breakpoint active"),e.trigger("close panel:close closed panel:closed"),g.css({"margin-right":""}),d.allowPanelOpen=!0))}var b,c=f(".panel-left"),e=f(".panel-right"),g=d.root.children(".views");d.onResize(a),a()},d.initSwipePanels=function(){function a(a){if(d.allowPanelOpen&&(d.params.swipePanel||d.params.swipePanelOnlyClose)&&!h&&!(f(".modal-in, .photo-browser-in").length>0)&&(d.params.swipePanelCloseOpposite||d.params.swipePanelOnlyClose||!(f(".panel.active").length>0)||e.hasClass("active"))&&!(a.target&&"input"===a.target.nodeName.toLowerCase()&&"range"===a.target.type||f(a.target).closest(".tabs-swipeable-wrap").length>0)){if(t.x="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,t.y="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY,d.params.swipePanelCloseOpposite||d.params.swipePanelOnlyClose){if(f(".panel.active").length>0)g=f(".panel.active").hasClass("panel-left")?"left":"right";else{if(d.params.swipePanelOnlyClose)return;g=d.params.swipePanel}if(!g)return}if(e=f(".panel.panel-"+g),o=e.hasClass("active"),d.params.swipePanelActiveArea&&!o){if("left"===g&&t.x>d.params.swipePanelActiveArea)return;if("right"===g&&t.x<d.width-d.params.swipePanelActiveArea)return}i=!1,h=!0,j=void 0,k=(new Date).getTime(),r=void 0}}function b(a){if(h&&!a.f7PreventPanelSwipe){var b="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,c="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY;if(void 0===j&&(j=!!(j||Math.abs(c-t.y)>Math.abs(b-t.x))),j)return void(h=!1);if(!r){if(r=b>t.x?"to-right":"to-left","both"===g){if(g=f(".panel.active").length>0?f(".panel.active").hasClass("panel-left")?"left":"right":"to-right"===r?"left":"right",d.params.swipePanelActiveArea>0){if("left"===g&&t.x>d.params.swipePanelActiveArea)return void(h=!1);if("right"===g&&t.x<d.width-d.params.swipePanelActiveArea)return void(h=!1)}e=f(".panel.panel-"+g)}if(e.hasClass("panel-visible-by-breakpoint"))return void(h=!1);if("left"===g&&"to-left"===r&&!e.hasClass("active")||"right"===g&&"to-right"===r&&!e.hasClass("active"))return void(h=!1)}if(d.params.swipePanelNoFollow)return(new Date).getTime()-k<300&&("to-left"===r&&("right"===g&&d.openPanel(g),"left"===g&&e.hasClass("active")&&d.closePanel()),"to-right"===r&&("left"===g&&d.openPanel(g),"right"===g&&e.hasClass("active")&&d.closePanel())),h=!1,void(i=!1);i||(q=e.hasClass("panel-cover")?"cover":"reveal",o||(e.show(),s.show()),p=e[0].offsetWidth,e.transition(0),e.find("."+d.params.viewClass).length>0&&d.sizeNavbars&&d.sizeNavbars(e.find("."+d.params.viewClass)[0])),i=!0,a.preventDefault();var v=o?0:-d.params.swipePanelThreshold;"right"===g&&(v=-v),l=b-t.x+v,"right"===g?"cover"===q?(m=l+(o?0:p),m<0&&(m=0),m>p&&(m=p)):(m=l-(o?p:0),m>0&&(m=0),m<-p&&(m=-p)):(m=l+(o?p:0),m<0&&(m=0),m>p&&(m=p)),"reveal"===q?(u.transform("translate3d("+m+"px,0,0)").transition(0),s.transform("translate3d("+m+"px,0,0)").transition(0),e.trigger("panel:swipe",{progress:Math.abs(m/p)}),d.pluginHook("swipePanelSetTransform",u[0],e[0],Math.abs(m/p))):("left"===g&&(m-=p),e.transform("translate3d("+m+"px,0,0)").transition(0),s.transition(0),n=1-Math.abs(m/p),s.css({opacity:n}),e.trigger("panel:swipe",{progress:Math.abs(m/p)}),d.pluginHook("swipePanelSetTransform",u[0],e[0],Math.abs(m/p)))}}function c(a){if(!h||!i)return h=!1,void(i=!1);h=!1,i=!1;var b,c=(new Date).getTime()-k,j=0===m||Math.abs(m)===p;if(b=o?"cover"===q?0===m?"reset":c<300&&Math.abs(m)>0?"swap":c>=300&&Math.abs(m)<p/2?"reset":"swap":m===-p?"reset":c<300&&Math.abs(m)>=0||c>=300&&Math.abs(m)<=p/2?"left"===g&&m===p?"reset":"swap":"reset":"cover"===q?0===m?"swap":c<300&&Math.abs(m)>0?"swap":c>=300&&Math.abs(m)<p/2?"swap":"reset":0===m?"reset":c<300&&Math.abs(m)>0||c>=300&&Math.abs(m)>=p/2?"swap":"reset","swap"===b&&(d.allowPanelOpen=!0,o?(d.closePanel(),j&&(e.css({display:""}),f("body").removeClass("panel-closing"))):d.openPanel(g),j&&(d.allowPanelOpen=!0)),"reset"===b)if(o)d.allowPanelOpen=!0,d.openPanel(g);else if(d.closePanel(),j)d.allowPanelOpen=!0,e.css({display:""});else{var l="reveal"===q?u:e;e.trigger("close panel:close"),f("body").addClass("panel-closing"),l.transitionEnd(function(){e.hasClass("active")||(e.trigger("close panel:closed"),e.css({display:""}),f("body").removeClass("panel-closing"),d.allowPanelOpen=!0)})}"reveal"===q&&(u.transition(""),u.transform("")),e.transition("").transform(""),s.css({display:""}).transform("").transition("").css("opacity","")}var e,g;if(d.params.swipePanel){if(e=f(".panel.panel-"+d.params.swipePanel),g=d.params.swipePanel,0===e.length&&"both"!==g)return}else{if(!d.params.swipePanelOnlyClose)return;if(0===f(".panel").length)return}var h,i,j,k,l,m,n,o,p,q,r,s=f(".panel-overlay"),t={},u=f("."+d.params.viewsClass),v=!("touchstart"!==d.touchEvents.start||!d.support.passiveListener)&&{passive:!0,capture:!1},w=!!d.support.passiveListener&&{passive:!1,capture:!1};f(document).on(d.touchEvents.start,a,v),f(document).on(d.touchEvents.move,b,w),f(document).on(d.touchEvents.end,c,v)},d.initImagesLazyLoad=function(a){function b(a){function c(){a.removeClass("lazy").addClass("lazy-loaded"),g?a.css("background-image","url("+h+")"):a.attr("src",h),d.params.imagesLazyLoadSequential&&(m=!1,l.length>0&&b(l.shift())),a.trigger("lazy-loaded"),d.params.onLazyLoaded&&d.params.onLazyLoaded(a)}function e(){a.removeClass("lazy").addClass("lazy-loaded"),g?a.css("background-image","url("+k+")"):a.attr("src",k),d.params.imagesLazyLoadSequential&&(m=!1,l.length>0&&b(l.shift())),a.trigger("lazy-error"),d.params.onLazyError&&d.params.onLazyError(a)}a=f(a);var g=a.attr("data-background"),h=g||a.attr("data-src");if(h){if(d.params.imagesLazyLoadSequential&&m)return void(l.indexOf(a[0])<0&&l.push(a[0]));m=!0;var i=new Image;i.onload=c,i.onerror=e,i.src=h,a.trigger("lazy-load"),d.params.onLazyLoad&&!a.hasClass("lazy-loaded")&&d.params.onLazyLoad(a)}}function c(){i=a.find(".lazy"),i.each(function(a,c){c=f(c),c.parents(".tab:not(.active)").length>0||e(c[0])&&b(c)})}function e(a){var b=a.getBoundingClientRect(),c=d.params.imagesLazyLoadThreshold||0;return b.top>=0-c&&b.left>=0-c&&b.top<=d.height+c&&b.left<=d.width+c}function g(b){var e=b?"off":"on";i[e]("lazy",c),i.parents(".tab")[e]("show",c),a[e]("lazy",c),j[e]("lazy",c),j[e]("scroll",c),d["on"===e?"onResize":"offResize"](c)}function h(){g(!0)}a=f(a);var i;if(a.hasClass("lazy")?(i=a,a=i.parents(".page")):i=a.find(".lazy"),0!==i.length){var j;if(a.hasClass("page-content")?(j=a,a=a.parents(".page")):j=a.find(".page-content"),0!==j.length){var k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEXCwsK592mkAAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==";"string"==typeof d.params.imagesLazyLoadPlaceholder&&(k=d.params.imagesLazyLoadPlaceholder),!1!==d.params.imagesLazyLoadPlaceholder&&i.each(function(){f(this).attr("data-src")&&!f(this).attr("src")&&f(this).attr("src",k)});var l=[],m=!1;a[0].f7DestroyImagesLazyLoad=h,g(),a.hasClass("page")&&a.once("page:beforeremove",h),c(),a.once("page:afteranimation",c)}}},d.destroyImagesLazyLoad=function(a){a=f(a),a.length>0&&a[0].f7DestroyImagesLazyLoad&&a[0].f7DestroyImagesLazyLoad()},d.reinitImagesLazyLoad=function(a){a=f(a),a.length>0&&a.trigger("lazy")},d.initPageMaterialPreloader=function(a){f(a).find(".preloader").each(function(){0===f(this).children().length&&f(this).html(d.params.materialPreloaderHtml)})};var n=function(a,b){var c={autoLayout:!0,newMessagesFirst:!1,scrollMessages:!0,scrollMessagesOnlyOnEdge:!1,messageTemplate:'{{#if day}}<div class="messages-date">{{day}} {{#if time}}, <span>{{time}}</span>{{/if}}</div>{{/if}}<div class="message message-{{type}} {{#if hasImage}}message-pic{{/if}} {{#if avatar}}message-with-avatar{{/if}} {{#if position}}message-appear-from-{{position}}{{/if}}">{{#if name}}<div class="message-name">{{name}}</div>{{/if}}<div class="message-text">{{text}}{{#if date}}<div class="message-date">{{date}}</div>{{/if}}</div>{{#if avatar}}<div class="message-avatar" style="background-image:url({{avatar}})"></div>{{/if}}{{#if label}}<div class="message-label">{{label}}</div>{{/if}}</div>'};b=b||{};for(var d in c)void 0!==b[d]&&null!==b[d]||(b[d]=c[d]);var e=this;if(e.params=b,e.container=f(a),0!==e.container.length)return e.params.autoLayout&&e.container.addClass("messages-auto-layout"),e.params.newMessagesFirst&&e.container.addClass("messages-new-first"),e.pageContainer=e.container.parents(".page").eq(0),e.pageContent=e.pageContainer.find(".page-content"),e.template=Template7.compile(e.params.messageTemplate),e.layout=function(){e.container.hasClass("messages-auto-layout")||e.container.addClass("messages-auto-layout"),e.container.find(".message").each(function(){var a=f(this);if(a.find(".message-text img").length>0){for(var b=a.find(".message-text")[0].childNodes,c=!0,d=0;d<b.length;d++)1===b[d].nodeType&&"img"!==b[d].nodeName.toLowerCase()&&(c=!1),3===b[d].nodeType&&""!==b[d].textContent.trim()&&(c=!1);c?a.addClass("message-pic"):a.removeClass("message-pic")}a.find(".message-avatar").length>0&&a.addClass("message-with-avatar")}),e.container.find(".message").each(function(){var a=f(this),b=a.hasClass("message-sent"),c=a.next(".message-"+(b?"sent":"received")),d=a.prev(".message-"+(b?"sent":"received"));0===c.length?a.addClass("message-last message-with-tail"):a.removeClass("message-last message-with-tail"),0===d.length?a.addClass("message-first"):a.removeClass("message-first"),d.length>0&&d.find(".message-name").length>0&&a.find(".message-name").length>0&&d.find(".message-name").text()!==a.find(".message-name").text()&&(d.addClass("message-last message-with-tail"),a.addClass("message-first"))})},e.appendMessage=function(a,b){return e.addMessage(a,"append",b)},e.prependMessage=function(a,b){return e.addMessage(a,"prepend",b)},e.addMessage=function(a,b,c){return e.addMessages([a],b,c)},e.addMessages=function(a,b,c){void 0===c&&(c=!0),void 0===b&&(b=e.params.newMessagesFirst?"prepend":"append");var d,f="";for(d=0;d<a.length;d++){var g=a[d]||{};g.type=g.type||"sent",g.text&&(g.hasImage=g.text.indexOf("<img")>=0,!1===g.onlyImage&&(g.hasImage=!1),c&&(g.position="append"===b?"bottom":"top"),f+=e.template(g))}var h=e.pageContent[0].scrollHeight,i=e.pageContent[0].offsetHeight,j=e.pageContent[0].scrollTop;if(e.container[b](f),e.params.autoLayout&&e.layout(),"prepend"===b&&(e.pageContent[0].scrollTop=j+(e.pageContent[0].scrollHeight-h)),e.params.scrollMessages&&"append"===b&&!e.params.newMessagesFirst||"prepend"===b&&e.params.newMessagesFirst)if(e.params.scrollMessagesOnlyOnEdge){var k=!1;e.params.newMessagesFirst?0===j&&(k=!0):j-(h-i)>=-10&&(k=!0),k&&e.scrollMessages(c?void 0:0)}else e.scrollMessages(c?void 0:0);var l=e.container.find(".message");if(1===a.length)return"append"===b?l[l.length-1]:l[0];var m=[];if("append"===b)for(d=l.length-a.length;d<l.length;d++)m.push(l[d]);else for(d=0;d<a.length;d++)m.push(l[d]);return m},e.removeMessage=function(a){return a=f(a),0!==a.length&&(a.remove(),e.params.autoLayout&&e.layout(),!0)},e.removeMessages=function(a){e.removeMessage(a)},e.clean=function(){e.container.html("")},e.scrollMessages=function(a,b){void 0===a&&(a=400);var c,d=e.pageContent[0].scrollTop;if(void 0!==b)c=b;else if((c=e.params.newMessagesFirst?0:e.pageContent[0].scrollHeight-e.pageContent[0].offsetHeight)===d)return;e.pageContent.scrollTop(c,a)},e.init=function(){e.params.messages?e.addMessages(e.params.messages,void 0,!1):(e.params.autoLayout&&e.layout(),e.scrollMessages(0))},e.destroy=function(){e=null},e.init(),e.container[0].f7Messages=e,e};d.messages=function(a,b){return new n(a,b)},d.initPageMessages=function(a){function b(){e.destroy(),a.off("page:beforeremove",b)}a=f(a);var c=a.find(".messages");if(0!==c.length&&c.hasClass("messages-init")){var e=d.messages(c,c.dataset());a.hasClass("page")&&a.on("page:beforeremove",b)}},d.swipeoutOpenedEl=void 0,d.allowSwipeout=!0,d.initSwipeout=function(a){function b(a){d.allowSwipeout&&(h=!1,g=!0,i=void 0,D.x="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,D.y="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY,j=(new Date).getTime())}function c(a){if(g){var b="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,c="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY;if(void 0===i&&(i=!!(i||Math.abs(c-D.y)>Math.abs(b-D.x))),i)return void(g=!1);if(!h){if(f(".list-block.sortable-opened").length>0)return;l=f(this),m=l.find(".swipeout-content"),n=l.find(".swipeout-actions-right"),o=l.find(".swipeout-actions-left"),p=q=u=v=y=x=null,B=o.hasClass("swipeout-actions-no-fold")||d.params.swipeoutActionsNoFold,C=n.hasClass("swipeout-actions-no-fold")||d.params.swipeoutActionsNoFold,o.length>0&&(p=o.outerWidth(),u=o.children("a"),x=o.find(".swipeout-overswipe")),n.length>0&&(q=n.outerWidth(),v=n.children("a"),y=n.find(".swipeout-overswipe")),s=l.hasClass("swipeout-opened"),s&&(t=l.find(".swipeout-actions-left.swipeout-actions-opened").length>0?"left":"right"),l.removeClass("transitioning"),d.params.swipeoutNoFollow||(l.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),l.removeClass("swipeout-opened"))}if(h=!0,a.preventDefault(),k=b-D.x,r=k,s&&("right"===t?r-=q:r+=p),r>0&&0===o.length||r<0&&0===n.length){if(!s)return g=h=!1,m.transform(""),v&&v.length>0&&v.transform(""),void(u&&u.length>0&&u.transform(""));r=0}r<0?w="to-left":r>0?w="to-right":w||(w="to-left");var e,j,E;if(a.f7PreventPanelSwipe=!0,d.params.swipeoutNoFollow)return s?("right"===t&&k>0&&d.swipeoutClose(l),"left"===t&&k<0&&d.swipeoutClose(l)):(k<0&&n.length>0&&d.swipeoutOpen(l,"right"),k>0&&o.length>0&&d.swipeoutOpen(l,"left")),g=!1,void(h=!1);z=!1,A=!1;var F;if(n.length>0)for(E=r/q,r<-q&&(r=-q-Math.pow(-r-q,.8),y.length>0&&(A=!0)),e=0;e<v.length;e++)void 0===v[e]._buttonOffset&&(v[e]._buttonOffset=v[e].offsetLeft),j=v[e]._buttonOffset,F=f(v[e]),y.length>0&&F.hasClass("swipeout-overswipe")&&(F.css({left:(A?-j:0)+"px"}),A?F.addClass("swipeout-overswipe-active"):F.removeClass("swipeout-overswipe-active")),F.transform("translate3d("+(r-j*(1+Math.max(E,-1)))+"px,0,0)");if(o.length>0)for(E=r/p,r>p&&(r=p+Math.pow(r-p,.8),x.length>0&&(z=!0)),e=0;e<u.length;e++)void 0===u[e]._buttonOffset&&(u[e]._buttonOffset=p-u[e].offsetLeft-u[e].offsetWidth),j=u[e]._buttonOffset,F=f(u[e]),x.length>0&&F.hasClass("swipeout-overswipe")&&(F.css({left:(z?j:0)+"px"}),z?F.addClass("swipeout-overswipe-active"):F.removeClass("swipeout-overswipe-active")),u.length>1&&F.css("z-index",u.length-e),F.transform("translate3d("+(r+j*(1-Math.min(E,1)))+"px,0,0)");m.transform("translate3d("+r+"px,0,0)")}}function e(a){if(!g||!h)return g=!1,void(h=!1);g=!1,h=!1;var b,c,e,i,t,x=(new Date).getTime()-j;if(e="to-left"===w?n:o,c="to-left"===w?q:p,b=x<300&&(k<-10&&"to-left"===w||k>10&&"to-right"===w)||x>=300&&Math.abs(r)>c/2?"open":"close",x<300&&(0===Math.abs(r)&&(b="close"),Math.abs(r)===c&&(b="open")),"open"===b){d.swipeoutOpenedEl=l,l.trigger("open swipeout:open"),l.addClass("swipeout-opened transitioning");var y="to-left"===w?-c:c;if(m.transform("translate3d("+y+"px,0,0)"),e.addClass("swipeout-actions-opened"),i="to-left"===w?v:u)for(t=0;t<i.length;t++)f(i[t]).transform("translate3d("+y+"px,0,0)");A&&n.find(".swipeout-overswipe")[0].click(),z&&o.find(".swipeout-overswipe")[0].click()}else l.trigger("close swipeout:close"),d.swipeoutOpenedEl=void 0,l.addClass("transitioning").removeClass("swipeout-opened"),m.transform(""),e.removeClass("swipeout-actions-opened");var B;if(u&&u.length>0&&u!==i)for(t=0;t<u.length;t++)B=u[t]._buttonOffset,void 0===B&&(u[t]._buttonOffset=p-u[t].offsetLeft-u[t].offsetWidth),f(u[t]).transform("translate3d("+B+"px,0,0)");if(v&&v.length>0&&v!==i)for(t=0;t<v.length;t++)B=v[t]._buttonOffset,void 0===B&&(v[t]._buttonOffset=v[t].offsetLeft),f(v[t]).transform("translate3d("+-B+"px,0,0)");m.transitionEnd(function(a){s&&"open"===b||closed&&"close"===b||(l.trigger("open"===b?"opened":"closed"),s&&"close"===b&&(n.length>0&&v.transform(""),o.length>0&&u.transform("")))})}var g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D={},E=!!d.support.passiveListener&&{passive:!1,capture:!1};f(document).on(d.touchEvents.start,function(a){if(d.swipeoutOpenedEl){var b=f(a.target);d.swipeoutOpenedEl.is(b[0])||b.parents(".swipeout").is(d.swipeoutOpenedEl)||b.hasClass("modal-in")||b.hasClass("modal-overlay")||b.hasClass("actions-modal")||b.parents(".actions-modal.modal-in, .modal.modal-in").length>0||d.swipeoutClose(d.swipeoutOpenedEl)}},E),a?(f(a).on(d.touchEvents.start,b,E),f(a).on(d.touchEvents.move,c,E),f(a).on(d.touchEvents.end,e,E)):(f(document).on(d.touchEvents.start,".list-block li.swipeout",b,E),
  f(document).on(d.touchEvents.move,".list-block li.swipeout",c,E),f(document).on(d.touchEvents.end,".list-block li.swipeout",e,E))},d.swipeoutOpen=function(a,b,c){if(a=f(a),2===arguments.length&&"function"==typeof arguments[1]&&(c=b),0!==a.length&&(a.length>1&&(a=f(a[0])),a.hasClass("swipeout")&&!a.hasClass("swipeout-opened"))){b||(b=a.find(".swipeout-actions-right").length>0?"right":"left");var e=a.find(".swipeout-actions-"+b);if(0!==e.length){a.trigger("open swipeout:open").addClass("swipeout-opened").removeClass("transitioning"),e.addClass("swipeout-actions-opened");var g,h=e.children("a"),i=e.outerWidth(),j="right"===b?-i:i;if(h.length>1){for(g=0;g<h.length;g++)"right"===b?f(h[g]).transform("translate3d("+-h[g].offsetLeft+"px,0,0)"):f(h[g]).css("z-index",h.length-g).transform("translate3d("+(i-h[g].offsetWidth-h[g].offsetLeft)+"px,0,0)");h[1].clientLeft}for(a.addClass("transitioning"),g=0;g<h.length;g++)f(h[g]).transform("translate3d("+j+"px,0,0)");a.find(".swipeout-content").transform("translate3d("+j+"px,0,0)").transitionEnd(function(){a.trigger("opened swipeout:opened"),c&&c.call(a[0])}),d.swipeoutOpenedEl=a}}},d.swipeoutClose=function(a,b){function c(){d.allowSwipeout=!0,a.hasClass("swipeout-opened")||(a.removeClass("transitioning"),h.transform(""),a.trigger("closed swipeout:closed"),b&&b.call(a[0]),j&&clearTimeout(j))}if(a=f(a),0!==a.length&&a.hasClass("swipeout-opened")){var e=a.find(".swipeout-actions-opened").hasClass("swipeout-actions-right")?"right":"left",g=a.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),h=g.children("a"),i=g.outerWidth();d.allowSwipeout=!1,a.trigger("close swipeout:close"),a.removeClass("swipeout-opened").addClass("transitioning");var j;a.find(".swipeout-content").transform("").transitionEnd(c),j=setTimeout(c,500);for(var k=0;k<h.length;k++)"right"===e?f(h[k]).transform("translate3d("+-h[k].offsetLeft+"px,0,0)"):f(h[k]).transform("translate3d("+(i-h[k].offsetWidth-h[k].offsetLeft)+"px,0,0)"),f(h[k]).css({left:"0px"}).removeClass("swipeout-overswipe-active");d.swipeoutOpenedEl&&d.swipeoutOpenedEl[0]===a[0]&&(d.swipeoutOpenedEl=void 0)}},d.swipeoutDelete=function(a,b){a=f(a),0!==a.length&&(a.length>1&&(a=f(a[0])),d.swipeoutOpenedEl=void 0,a.trigger("delete swipeout:delete"),a.css({height:a.outerHeight()+"px"}),a[0].clientLeft,a.css({height:"0px"}).addClass("deleting transitioning").transitionEnd(function(){if(a.trigger("deleted swipeout:deleted"),b&&b.call(a[0]),a.parents(".virtual-list").length>0){var c=a.parents(".virtual-list")[0].f7VirtualList,e=a[0].f7VirtualListIndex;c&&void 0!==e&&c.deleteItem(e)}else d.params.swipeoutRemoveWithTimeout?setTimeout(function(){a.remove()},0):a.remove()}),a.find(".swipeout-content").transform("translate3d(-100%,0,0)"))},d.sortableToggle=function(a){return a=f(a),0===a.length&&(a=f(".list-block.sortable")),a.toggleClass("sortable-opened"),a.hasClass("sortable-opened")?a.trigger("open sortable:open"):a.trigger("close sortable:close"),a},d.sortableOpen=function(a){return a=f(a),0===a.length&&(a=f(".list-block.sortable")),a.addClass("sortable-opened"),a.trigger("open sortable:open"),a},d.sortableClose=function(a){return a=f(a),0===a.length&&(a=f(".list-block.sortable")),a.removeClass("sortable-opened"),a.trigger("close sortable:close"),a},d.initSortable=function(){function a(a){g=!1,e=!0,h="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY,j=f(this).parent(),r=j.index(),l=j.parent().children("li"),q=j.parents(".sortable"),a.preventDefault(),d.allowPanelOpen=d.allowSwipeout=!1}function b(a){if(e&&j){var b=("touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,"touchmove"===a.type?a.targetTouches[0].pageY:a.pageY);g||(j.addClass("sorting"),q.addClass("sortable-sorting"),m=j[0].offsetTop,n=j.parent().height()-j[0].offsetTop-j.height(),k=j[0].offsetHeight),g=!0,a.preventDefault(),a.f7PreventPanelSwipe=!0,i=b-h;var c=i;c<-m&&(c=-m),c>n&&(c=n),j.transform("translate3d(0,"+c+"px,0)"),p=o=void 0,l.each(function(){var a=f(this);if(a[0]!==j[0]){var b=a[0].offsetTop,d=a.height(),e=j[0].offsetTop+c;e>=b-d/2&&j.index()<a.index()?(a.transform("translate3d(0, "+-k+"px,0)"),o=a,p=void 0):e<=b+d/2&&j.index()>a.index()?(a.transform("translate3d(0, "+k+"px,0)"),o=void 0,p||(p=a)):f(this).transform("translate3d(0, 0%,0)")}})}}function c(a){if(d.allowPanelOpen=d.allowSwipeout=!0,!e||!g)return e=!1,void(g=!1);a.preventDefault(),l.transform(""),j.removeClass("sorting"),q.removeClass("sortable-sorting");var b,c,f;o&&(j.insertAfter(o),j.trigger("sort sortable:sort",{startIndex:r,newIndex:j.index()})),p&&(j.insertBefore(p),j.trigger("sort sortable:sort",{startIndex:r,newIndex:j.index()})),(o||p)&&q.hasClass("virtual-list")&&(b=q[0].f7VirtualList,c=j[0].f7VirtualListIndex,f=p?p[0].f7VirtualListIndex:o[0].f7VirtualListIndex,b&&b.moveItem(c,f)),o=p=void 0,e=!1,g=!1}var e,g,h,i,j,k,l,m,n,o,p,q,r,s=!!d.support.passiveListener&&{passive:!1,capture:!1};f(document).on(d.touchEvents.start,".list-block.sortable .sortable-handler",a,s),d.support.touch?(f(document).on(d.touchEvents.move,".list-block.sortable .sortable-handler",b,s),f(document).on(d.touchEvents.end,".list-block.sortable .sortable-handler",c,s)):(f(document).on(d.touchEvents.move,b,s),f(document).on(d.touchEvents.end,c,s))},d.initSmartSelects=function(a){a=f(a);var b;b=a.is(".smart-select")?a:a.find(".smart-select"),0!==b.length&&b.each(function(){var a=f(this),b=a.find("select");if(0!==b.length){var c=b[0];if(0!==c.length){for(var d,e=[],g=0;g<c.length;g++)c[g].selected&&(d=c[g].dataset?c[g].dataset.displayAs:f(c[g]).data("display-as"),d&&void 0!==d?e.push(d):e.push(c[g].textContent.trim()));var h=a.find(".item-after");if(0===h.length)a.find(".item-inner").append('<div class="item-after">'+e.join(", ")+"</div>");else{var i=h.text();if(h.hasClass("smart-select-value"))for(g=0;g<c.length;g++)c[g].selected=c[g].textContent.trim()===i.trim();else h.text(e.join(", "))}b.on("change",function(){for(var b=[],d=0;d<c.length;d++)if(c[d].selected){var e=c[d].dataset?c[d].dataset.displayAs:f(c[d]).data("display-as");e&&void 0!==e?b.push(e):b.push(c[d].textContent.trim())}a.find(".item-after").text(b.join(", "))})}}})},d.smartSelectAddOption=function(a,b,c){a=f(a);var e=a.parents(".smart-select");void 0===c?a.append(b):f(b).insertBefore(a.find("option").eq(c)),d.initSmartSelects(e);var g=e.find("select").attr("name");f('.page.smart-select-page[data-select-name="'+g+'"]').length>0&&d.smartSelectOpen(e,!0)},d.smartSelectOpen=function(a,b){function c(b){var c=!0;(b.target===a[0]||f(b.target).parents(a[0]).length>0)&&(c=!1),f(b.target).parents(".picker-modal").length>0&&(c=!1),c&&d.closeModal(".smart-select-picker.modal-in")}function e(a){x.selectedOptions.length>=P?a.find('input[type="checkbox"]').each(function(){this.checked?f(this).parents("li").removeClass("disabled"):f(this).parents("li").addClass("disabled")}):a.find(".disabled").removeClass("disabled")}function h(b){if(b=f(b),t){var c=d.virtualList(b.find(".virtual-list"),{items:L,template:S,height:u||void 0,searchByItem:function(a,b,c){return!!(c.text&&c.text.toLowerCase().indexOf(a.trim().toLowerCase())>=0)}});b.once("popup"===k||"picker"===k?"closed":"pageBeforeRemove",function(){c&&c.destroy&&c.destroy()})}P&&e(b),p&&b.find('input[type="radio"][name="'+O+'"]:checked').parents("label").once("click",function(){"popup"===k?d.closeModal(da):"picker"===k?d.closeModal(ea):j.router.back()}),b.on("change",'input[name="'+O+'"]',function(){var c,g,h,i=this,l=i.value,m=[];if("checkbox"===i.type){for(var n=0;n<x.options.length;n++)c=x.options[n],c.value===l&&(c.selected=i.checked),c.selected&&(h=c.dataset?c.dataset.displayAs:f(c).data("display-as"),g=h&&void 0!==h?h:c.textContent,m.push(g.trim()));P&&e(b)}else c=a.find('option[value="'+l+'"]')[0],h=c.dataset?c.dataset.displayAs:f(c).data("display-as"),g=h&&void 0!==h?h:c.textContent,m=[g],x.value=l;y.trigger("change"),a.find(".item-after").text(m.join(", ")),p&&"radio"===N&&("popup"===k?d.closeModal(da):"picker"===k?d.closeModal(ea):j.router.back())})}function i(a){var b=a.detail.page;b.name===ba&&h(b.container)}if(a=f(a),0!==a.length){var j=a.parents("."+d.params.viewClass);if(0!==j.length){j=j[0].f7View;var k=a.attr("data-open-in")||d.params.smartSelectOpenIn;if("popup"===k){if(f(".popup.smart-select-popup").length>0)return}else if("picker"===k){if(f(".picker-modal.modal-in").length>0&&!b){if(a[0].f7SmartSelectPicker===f(".picker-modal.modal-in:not(.modal-out)")[0])return;d.closeModal(f(".picker-modal.modal-in:not(.modal-out)"))}}else if(!j)return;var l,m=a.dataset(),n=m.pageTitle||a.find(".item-title").text(),o=m.backText||d.params.smartSelectBackText;l="picker"===k?m.pickerCloseText||m.backText||d.params.smartSelectPickerCloseText:m.popupCloseText||m.backText||d.params.smartSelectPopupCloseText;var p=void 0!==m.backOnSelect?m.backOnSelect:d.params.smartSelectBackOnSelect,q=m.formTheme||d.params.smartSelectFormTheme,r=m.navbarTheme||d.params.smartSelectNavbarTheme,s=m.toolbarTheme||d.params.smartSelectToolbarTheme,t=m.virtualList,u=m.virtualListHeight,v=d.params.material,w=m.pickerHeight||d.params.smartSelectPickerHeight,x=a.find("select")[0],y=f(x),z=y.dataset();if(!(x.disabled||a.hasClass("disabled")||y.hasClass("disabled"))){for(var A,B,C,D,E,F,G,H,I,J,K,L=[],M=(new Date).getTime(),N=x.multiple?"checkbox":"radio",O=N+"-"+M,P=y.attr("maxlength"),Q=x.name,R=0;R<x.length;R++)A=f(x[R]),K=A.dataset(),C=K.optionImage||z.optionImage||m.optionImage,D=K.optionIcon||z.optionIcon||m.optionIcon,B=C||D||"checkbox"===N,v&&(B=C||D),I=K.optionColor,J=K.optionClass,A[0].disabled&&(J+=" disabled"),E=A.parent("optgroup")[0],F=E&&E.label,G=!1,E&&E!==H&&(G=!0,H=E,L.push({groupLabel:F,isLabel:G})),L.push({value:A[0].value,text:A[0].textContent.trim(),selected:A[0].selected,group:E,groupLabel:F,image:C,icon:D,color:I,className:J,disabled:A[0].disabled,inputType:N,id:M,hasMedia:B,checkbox:"checkbox"===N,inputName:O,material:d.params.material});d._compiledTemplates.smartSelectItem||(d._compiledTemplates.smartSelectItem=g.compile(d.params.smartSelectItemTemplate||'{{#if isLabel}}<li class="item-divider">{{groupLabel}}</li>{{else}}<li{{#if className}} class="{{className}}"{{/if}}><label class="label-{{inputType}} item-content"><input type="{{inputType}}" name="{{inputName}}" value="{{value}}" {{#if selected}}checked{{/if}}>{{#if material}}{{#if hasMedia}}<div class="item-media">{{#if icon}}<i class="icon {{icon}}"></i>{{/if}}{{#if image}}<img src="{{image}}">{{/if}}</div><div class="item-inner"><div class="item-title{{#if color}} color-{{color}}{{/if}}">{{text}}</div></div><div class="item-after"><i class="icon icon-form-{{inputType}}"></i></div>{{else}}<div class="item-media"><i class="icon icon-form-{{inputType}}"></i></div><div class="item-inner"><div class="item-title{{#if color}} color-{{color}}{{/if}}">{{text}}</div></div>{{/if}}{{else}}{{#if hasMedia}}<div class="item-media">{{#if checkbox}}<i class="icon icon-form-checkbox"></i>{{/if}}{{#if icon}}<i class="icon {{icon}}"></i>{{/if}}{{#if image}}<img src="{{image}}">{{/if}}</div>{{/if}}<div class="item-inner"><div class="item-title{{#if color}} color-{{color}}{{/if}}">{{text}}</div></div>{{/if}}</label></li>{{/if}}'));var S=d._compiledTemplates.smartSelectItem,T="";if(!t)for(var U=0;U<L.length;U++)T+=S(L[U]);var V,W,X="",Y="",Z="",$="";"picker"===k?(d._compiledTemplates.smartSelectToolbar||(d._compiledTemplates.smartSelectToolbar=g.compile(d.params.smartSelectToolbarTemplate||'<div class="toolbar {{#if toolbarTheme}}theme-{{toolbarTheme}}{{/if}}"><div class="toolbar-inner"><div class="left"></div><div class="right"><a href="#" class="link close-picker"><span>{{closeText}}</span></a></div></div></div>')),X=d._compiledTemplates.smartSelectToolbar({pageTitle:n,closeText:l,openIn:k,toolbarTheme:s,inPicker:"picker"===k})):(d._compiledTemplates.smartSelectNavbar||(d._compiledTemplates.smartSelectNavbar=g.compile(d.params.smartSelectNavbarTemplate||'<div class="navbar {{#if navbarTheme}}theme-{{navbarTheme}}{{/if}}"><div class="navbar-inner">{{leftTemplate}}<div class="center sliding">{{pageTitle}}</div></div></div>')),V=d._compiledTemplates.smartSelectNavbar({pageTitle:n,backText:o,closeText:l,openIn:k,navbarTheme:r,inPopup:"popup"===k,inPage:"page"===k,leftTemplate:"popup"===k?(d.params.smartSelectPopupCloseTemplate||(v?'<div class="left"><a href="#" class="link close-popup icon-only"><i class="icon icon-back"></i></a></div>':'<div class="left"><a href="#" class="link close-popup"><i class="icon icon-back"></i><span>{{closeText}}</span></a></div>')).replace(/{{closeText}}/g,l):(d.params.smartSelectBackTemplate||(v?'<div class="left"><a href="#" class="back link icon-only"><i class="icon icon-back"></i></a></div>':'<div class="left sliding"><a href="#" class="back link"><i class="icon icon-back"></i><span>{{backText}}</span></a></div>')).replace(/{{backText}}/g,o)}),"page"===k?(W="static",a.parents(".navbar-through").length>0&&(W="through"),a.parents(".navbar-fixed").length>0&&(W="fixed"),Z=a.parents(".page").hasClass("no-toolbar")?"no-toolbar":"",Y=a.parents(".page").hasClass("no-navbar")?"no-navbar":"navbar-"+W,$=a.parents(".page").hasClass("no-tabbar")?"no-tabbar":""):W="fixed");var _,aa,ba="smart-select-"+O,ca=void 0===a.data("searchbar")?d.params.smartSelectSearchbar:"true"===a.data("searchbar");ca&&(_=a.data("searchbar-placeholder")||"Search",aa=a.data("searchbar-cancel")||"Cancel");var da,ea,fa='<form class="searchbar searchbar-init" data-search-list=".smart-select-list-'+M+'" data-search-in=".item-title"><div class="searchbar-input"><input type="search" placeholder="'+_+'"><a href="#" class="searchbar-clear"></a></div>'+(v?"":'<a href="#" class="searchbar-cancel">'+aa+"</a>")+'</form><div class="searchbar-overlay"></div>',ga=("picker"!==k&&"through"===W?V:"")+'<div class="pages">  <div data-page="'+ba+'" data-select-name="'+Q+'" class="page smart-select-page '+Y+" "+Z+" "+$+'">'+("picker"!==k&&"fixed"===W?V:"")+(ca?fa:"")+'    <div class="page-content">'+("picker"!==k&&"static"===W?V:"")+'      <div class="list-block '+(t?"virtual-list":"")+" smart-select-list-"+M+" "+(q?"theme-"+q:"")+'">        <ul>'+(t?"":T)+"        </ul>      </div>    </div>  </div></div>";"popup"===k?(b?(da=f(".popup.smart-select-popup .view"),da.html(ga)):(da=d.popup('<div class="popup smart-select-popup smart-select-popup-'+O+'"><div class="view navbar-fixed">'+ga+"</div></div>"),da=f(da)),d.initPage(da.find(".page")),h(da)):"picker"===k?(b?(ea=f(".picker-modal.smart-select-picker .view"),ea.html(ga)):(ea=d.pickerModal('<div class="picker-modal smart-select-picker smart-select-picker-'+O+'"'+(w?' style="height:'+w+'"':"")+">"+X+'<div class="picker-modal-inner"><div class="view">'+ga+"</div></div></div>"),ea=f(ea),function(){var b=a.parents(".page-content");if(0!==b.length){var c,d=parseInt(b.css("padding-top"),10),e=parseInt(b.css("padding-bottom"),10),f=b[0].offsetHeight-d-ea.height(),g=b[0].scrollHeight-d-ea.height(),h=a.offset().top-d+a[0].offsetHeight;if(h>f){var i=b.scrollTop()+h-f;i+f>g&&(c=i+f-g+e,f===g&&(c=ea.height()),b.css({"padding-bottom":c+"px"})),b.scrollTop(i,300)}}}(),f("html").on("click",c),ea.once("picker:close",function(){a[0].f7SmartSelectPicker=void 0,f("html").off("click",c),a.parents(".page-content").css({paddingBottom:""})}),a[0].f7SmartSelectPicker=ea[0]),d.initPage(ea.find(".page")),h(ea)):(f(document).once("page:init",".smart-select-page",i),j.router.load({content:ga,reload:!!b||void 0}))}}}};var o=function(a,b){var c={cols:1,height:d.params.material?48:44,cache:!0,dynamicHeightBufferSize:1,showFilteredItemsOnly:!1,renderExternal:void 0,template:'<li><div class="item-content"><div class="item-inner"><div class="item-title">{{this}}</div></div></div></li>'};b=b||{};for(var e in c)void 0===b[e]&&(b[e]=c[e]);var h=this;h.listBlock=f(a),h.params=b,h.items=h.params.items,h.params.showFilteredItemsOnly&&(h.filteredItems=[]),h.params.template&&!h.params.renderItem&&("string"==typeof h.params.template?h.template=g.compile(h.params.template):"function"==typeof h.params.template&&(h.template=h.params.template)),h.pageContent=h.listBlock.parents(".page-content");var i;void 0!==h.params.updatableScroll?i=h.params.updatableScroll:(i=!0,d.device.ios&&d.device.osVersion.split(".")[0]<8&&(i=!1),h.params.updatableScroll=i),h.ul=h.params.ul?f(h.params.ul):h.listBlock.children("ul"),0===h.ul.length&&(h.listBlock.append("<ul></ul>"),h.ul=h.listBlock.children("ul")),h.domCache={},h.displayDomCache={},h.tempDomElement=document.createElement("ul"),h.lastRepaintY=null,h.fragment=document.createDocumentFragment(),h.filterItems=function(a,b){h.filteredItems=[];for(var c=(a[0],a[a.length-1],0);c<a.length;c++)h.filteredItems.push(h.items[a[c]]);void 0===b&&(b=!0),b&&(h.pageContent[0].scrollTop=0),h.update()},h.resetFilter=function(){h.params.showFilteredItemsOnly?h.filteredItems=[]:(h.filteredItems=null,delete h.filteredItems),h.update()};var j,k,l,m,n,o,p=0,q="function"==typeof h.params.height;return h.setListSize=function(){var a=h.filteredItems||h.items;if(j=h.pageContent[0].offsetHeight,q){o=0,h.heights=[];for(var b=0;b<a.length;b++){var c=h.params.height(a[b]);o+=c,h.heights.push(c)}}else o=Math.ceil(a.length/h.params.cols)*h.params.height,k=Math.ceil(j/h.params.height),l=h.params.rowsBefore||2*k,m=h.params.rowsAfter||k,n=k+l+m,p=l/2*h.params.height;i&&h.ul.css({height:o+"px"})},h.render=function(a,b){a&&(h.lastRepaintY=null);var c=-(h.listBlock[0].getBoundingClientRect().top-h.pageContent[0].getBoundingClientRect().top);if(void 0!==b&&(c=b),null===h.lastRepaintY||Math.abs(c-h.lastRepaintY)>p||!i&&h.pageContent[0].scrollTop+j>=h.pageContent[0].scrollHeight){h.lastRepaintY=c;var d,e,f=h.filteredItems||h.items,g=0,k=0;if(q){var m,r,s=0;for(p=j,m=0;m<h.heights.length;m++)r=h.heights[m],void 0===d&&(s+r>=c-2*j*h.params.dynamicHeightBufferSize?d=m:g+=r),void 0===e&&((s+r>=c+2*j*h.params.dynamicHeightBufferSize||m===h.heights.length-1)&&(e=m+1),k+=r),s+=r;e=Math.min(e,f.length)}else d=(parseInt(c/h.params.height)-l)*h.params.cols,d<0&&(d=0),e=Math.min(d+n*h.params.cols,f.length);var t,u=[];h.reachEnd=!1;for(var v=d;v<e;v++){var w,x;x=h.items.indexOf(f[v]),v===d&&(h.currentFromIndex=x),v===e-1&&(h.currentToIndex=x),h.filteredItems?h.items[x]===h.filteredItems[h.filteredItems.length-1]&&(h.reachEnd=!0):x===h.items.length-1&&(h.reachEnd=!0),h.params.renderExternal?u.push(f[v]):h.domCache[x]?(w=h.domCache[x],w.f7VirtualListIndex=x):(h.template&&!h.params.renderItem?h.tempDomElement.innerHTML=h.template(f[v],{index:x}).trim():h.params.renderItem?h.tempDomElement.innerHTML=h.params.renderItem(x,f[v]).trim():h.tempDomElement.innerHTML=f[v].toString().trim(),w=h.tempDomElement.childNodes[0],h.params.cache&&(h.domCache[x]=w),w.f7VirtualListIndex=x),v===d&&(t=q?g:v*h.params.height/h.params.cols),h.params.renderExternal||(w.style.top=t+"px",h.params.onItemBeforeInsert&&h.params.onItemBeforeInsert(h,w),h.fragment.appendChild(w))}i||(h.ul[0].style.height=q?k+"px":v*h.params.height/h.params.cols+"px"),h.params.renderExternal?f&&0===f.length&&(h.reachEnd=!0):(h.params.onBeforeClear&&h.params.onBeforeClear(h,h.fragment),h.ul[0].innerHTML="",h.params.onItemsBeforeInsert&&h.params.onItemsBeforeInsert(h,h.fragment),f&&0===f.length?(h.reachEnd=!0,h.params.emptyTemplate&&(h.ul[0].innerHTML=h.params.emptyTemplate)):h.ul[0].appendChild(h.fragment),h.params.onItemsAfterInsert&&h.params.onItemsAfterInsert(h,h.fragment)),void 0!==b&&a&&h.pageContent.scrollTop(b,0),h.params.renderExternal&&h.params.renderExternal(h,{fromIndex:d,toIndex:e,listHeight:o,topPosition:t,items:u})}},h.scrollToItem=function(a){if(a>h.items.length)return!1;var b,c=0;if(q)for(var d=0;d<a;d++)c+=h.heights[d];else c=a*h.params.height;return b=h.listBlock[0].offsetTop,h.render(!0,b+c-parseInt(h.pageContent.css("padding-top"),10)),!0},h.handleScroll=function(a){h.render()},h._isVisible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},h.handleResize=function(a){h._isVisible(h.listBlock[0])&&(h.setListSize(),h.render(!0))},h.attachEvents=function(a){var b=a?"off":"on";h.pageContent[b]("scroll",h.handleScroll),h.listBlock.parents(".tab").eq(0)[b]("tab:show",h.handleResize),h.listBlock.parents(".panel").eq(0)[b]("panel:open",h.handleResize),h.listBlock.parents(".popup").eq(0)[b]("popup:open",h.handleResize),d["on"===b?"onResize":"offResize"](h.handleResize)},h.init=function(){h.attachEvents(),h.setListSize(),h.render()},h.appendItems=function(a){for(var b=0;b<a.length;b++)h.items.push(a[b]);h.update()},h.appendItem=function(a){h.appendItems([a])},h.replaceAllItems=function(a){h.items=a,delete h.filteredItems,h.domCache={},h.update()},h.replaceItem=function(a,b){h.items[a]=b,h.params.cache&&delete h.domCache[a],h.update()},h.prependItems=function(a){for(var b=a.length-1;b>=0;b--)h.items.unshift(a[b]);if(h.params.cache){var c={};for(var d in h.domCache)c[parseInt(d,10)+a.length]=h.domCache[d];h.domCache=c}h.update()},h.prependItem=function(a){h.prependItems([a])},h.moveItem=function(a,b){if(a!==b){var c=h.items.splice(a,1)[0];if(b>=h.items.length?(h.items.push(c),b=h.items.length-1):h.items.splice(b,0,c),h.params.cache){var d={};for(var e in h.domCache){var f=parseInt(e,10),g=a<b?a:b,i=a<b?b:a,j=a<b?-1:1;(f<g||f>i)&&(d[f]=h.domCache[f]),f===g&&(d[i]=h.domCache[f]),f>g&&f<=i&&(d[f+j]=h.domCache[f])}h.domCache=d}h.update()}},h.insertItemBefore=function(a,b){if(0===a)return void h.prependItem(b);if(a>=h.items.length)return void h.appendItem(b);if(h.items.splice(a,0,b),h.params.cache){var c={};for(var d in h.domCache){var e=parseInt(d,10);e>=a&&(c[e+1]=h.domCache[e])}h.domCache=c}h.update()},h.deleteItems=function(a){for(var b,c=0,d=0;d<a.length;d++){var e=a[d];void 0!==b&&e>b&&(c=-d),e+=c,b=a[d];var f=h.items.splice(e,1)[0];if(h.filteredItems&&h.filteredItems.indexOf(f)>=0&&h.filteredItems.splice(h.filteredItems.indexOf(f),1),h.params.cache){var g={};for(var i in h.domCache){var j=parseInt(i,10);j===e?delete h.domCache[e]:parseInt(i,10)>e?g[j-1]=h.domCache[i]:g[j]=h.domCache[i]}h.domCache=g}}h.update()},h.deleteAllItems=function(){h.items=[],delete h.filteredItems,h.params.cache&&(h.domCache={}),h.update()},h.deleteItem=function(a){h.deleteItems([a])},h.clearCache=function(){h.domCache={}},h.update=function(){h.setListSize(),h.render(!0)},h.destroy=function(){h.attachEvents(!0),delete h.items,delete h.domCache},h.init(),h.listBlock[0].f7VirtualList=h,h};d.virtualList=function(a,b){return new o(a,b)},d.reinitVirtualList=function(a){var b=f(a),c=b.find(".virtual-list");if(0!==c.length)for(var d=0;d<c.length;d++){var e=c[d].f7VirtualList;e&&e.update()}},d.initPullToRefresh=function(a){function b(a){if(k){if("android"!==d.device.os)return;if("targetTouches"in a&&a.targetTouches.length>1)return}p=f(this),p.hasClass("refreshing")||(l=!1,v=!1,k=!0,m=void 0,s=void 0,"touchstart"===a.type&&(j=a.targetTouches[0].identifier),w.x="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,w.y="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY,o=(new Date).getTime())}function c(a){if(k){var b,c,e;if("touchmove"===a.type){if(j&&a.touches)for(var f=0;f<a.touches.length;f++)a.touches[f].identifier===j&&(e=a.touches[f]);e||(e=a.targetTouches[0]),b=e.pageX,c=e.pageY}else b=a.pageX,c=a.pageY;if(b&&c){if(void 0===m&&(m=!!(m||Math.abs(c-w.y)>Math.abs(b-w.x))),!m)return void(k=!1);if(r=p[0].scrollTop,void 0===s&&0!==r&&(s=!0),!l){if(p.removeClass("transitioning"),r>p[0].offsetHeight)return void(k=!1);u&&(t=p.attr("data-ptr-distance"),t.indexOf("%")>=0&&(t=p[0].offsetHeight*parseInt(t,10)/100)),z=p.hasClass("refreshing")?t:0,y=p[0].scrollHeight===p[0].offsetHeight||"ios"!==d.device.os}if(l=!0,!((n=c-w.y)>0&&r<=0||r<0))return v=!1,p.removeClass("pull-up pull-down"),void(x=!1);"ios"===d.device.os&&parseInt(d.device.osVersion.split(".")[0],10)>7&&0===r&&!s&&(y=!0),y&&(a.preventDefault(),q=Math.pow(n,.85)+z,p.transform("translate3d(0,"+q+"px,0)")),y&&Math.pow(n,.85)>t||!y&&n>=2*t?(x=!0,p.addClass("pull-up").removeClass("pull-down")):(x=!1,p.removeClass("pull-up").addClass("pull-down")),v||(p.trigger("pullstart ptr:pullstart"),v=!0),p.trigger("pullmove ptr:pullmove",{event:a,scrollTop:r,translate:q,touchesDiff:n})}}}function e(a){if(!("touchend"===a.type&&a.changedTouches&&a.changedTouches.length>0&&j&&a.changedTouches[0].identifier!==j)){if(!k||!l)return k=!1,void(l=!1);q&&(p.addClass("transitioning"),q=0),p.transform(""),x?(p.addClass("refreshing"),p.trigger("refresh ptr:refresh",{done:function(){d.pullToRefreshDone(p)}})):p.removeClass("pull-down"),k=!1,l=!1,v&&p.trigger("pullend ptr:pullend")}}function g(a){a.off(d.touchEvents.start,b,C),a.off(d.touchEvents.move,c,D),a.off(d.touchEvents.end,e,C)}function h(){g(i),A.off("page:beforeremove",h)}var i=f(a);if(i.hasClass("pull-to-refresh-content")||(i=i.find(".pull-to-refresh-content")),i&&0!==i.length){var j,k,l,m,n,o,p,q,r,s,t,u,v,w={},x=!1,y=!1,z=0,A=i.hasClass("page")?i:i.parents(".page"),B=!1;(A.find(".navbar").length>0||A.parents(".navbar-fixed, .navbar-through").length>0||A.hasClass("navbar-fixed")||A.hasClass("navbar-through"))&&(B=!0),A.hasClass("no-navbar")&&(B=!1),B||i.addClass("pull-to-refresh-no-navbar"),p=i,p.attr("data-ptr-distance")?u=!0:t=44;var C=!("touchstart"!==d.touchEvents.start||!d.support.passiveListener)&&{passive:!0,capture:!1},D=!!d.support.passiveListener&&{passive:!1,capture:!1};if(i.on(d.touchEvents.start,b,C),i.on(d.touchEvents.move,c,D),i.on(d.touchEvents.end,e,C),0!==A.length){for(var E=0;E<i.length;E++)i[E].f7DestroyPullToRefresh=g;A.on("page:beforeremove",h)}}},d.pullToRefreshDone=function(a){a=f(a),0===a.length&&(a=f(".pull-to-refresh-content.refreshing")),a.removeClass("refreshing").addClass("transitioning"),a.transitionEnd(function(){a.removeClass("transitioning pull-up pull-down"),a.trigger("refreshdone ptr:done")})},d.pullToRefreshTrigger=function(a){a=f(a),0===a.length&&(a=f(".pull-to-refresh-content")),a.hasClass("refreshing")||(a.addClass("transitioning refreshing"),a.trigger("refresh ptr:refresh",{done:function(){d.pullToRefreshDone(a)}}))},d.destroyPullToRefresh=function(a){a=f(a);var b=a.hasClass("pull-to-refresh-content")?a:a.find(".pull-to-refresh-content");0!==b.length&&b[0].f7DestroyPullToRefresh&&b[0].f7DestroyPullToRefresh(a)},d.attachInfiniteScroll=function(a){f(a).on("scroll",b)},d.detachInfiniteScroll=function(a){f(a).off("scroll",b)},d.initPageInfiniteScroll=function(a){function b(){d.detachInfiniteScroll(c),a.off("page:beforeremove",b)}a=f(a);var c=a.find(".infinite-scroll");0!==c.length&&(d.attachInfiniteScroll(c),a.on("page:beforeremove",b))},d.initPageScrollToolbars=function(a){function b(b){a.hasClass("page-on-left")||(n=c[0].scrollTop,r=c[0].scrollHeight,s=c[0].offsetHeight,t=n+s>=r-A,v=k.hasClass("navbar-hidden"),w=l.hasClass("toolbar-hidden"),x=j&&j.hasClass("toolbar-hidden"),t?d.params.showBarsOnPageScrollEnd&&(u="show"):u=m>n?d.params.showBarsOnPageScrollTop||n<=44?"show":"hide":n>44?"hide":"show","show"===u?(o&&e&&v&&(d.showNavbar(k),a.removeClass("no-navbar-by-scroll"),v=!1),p&&g&&w&&(d.showToolbar(l),a.removeClass("no-toolbar-by-scroll"),w=!1),q&&h&&x&&(d.showToolbar(j),a.removeClass("no-tabbar-by-scroll"),x=!1)):(o&&e&&!v&&(d.hideNavbar(k),a.addClass("no-navbar-by-scroll"),v=!0),p&&g&&!w&&(d.hideToolbar(l),a.addClass("no-toolbar-by-scroll"),w=!0),q&&h&&!x&&(d.hideToolbar(j),a.addClass("no-tabbar-by-scroll"),x=!0)),m=n)}a=f(a);var c=a.find(".page-content");if(0!==c.length){var e=(d.params.hideNavbarOnPageScroll||c.hasClass("hide-navbar-on-scroll")||c.hasClass("hide-bars-on-scroll"))&&!(c.hasClass("keep-navbar-on-scroll")||c.hasClass("keep-bars-on-scroll")),g=(d.params.hideToolbarOnPageScroll||c.hasClass("hide-toolbar-on-scroll")||c.hasClass("hide-bars-on-scroll"))&&!(c.hasClass("keep-toolbar-on-scroll")||c.hasClass("keep-bars-on-scroll")),h=(d.params.hideTabbarOnPageScroll||c.hasClass("hide-tabbar-on-scroll"))&&!c.hasClass("keep-tabbar-on-scroll");if(e||g||h){var i=c.parents("."+d.params.viewClass);if(0!==i.length){var j,k=i.find(".navbar"),l=i.find(".toolbar");h&&(j=i.find(".tabbar"),0===j.length&&(j=i.parents("."+d.params.viewsClass).find(".tabbar")));var m,n,o=k.length>0,p=l.length>0,q=j&&j.length>0;m=n=c[0].scrollTop;var r,s,t,u,v,w,x,y=p&&g?l[0].offsetHeight:0,z=q&&h?j[0].offsetHeight:0,A=z||y;c.on("scroll",b),c[0].f7ScrollToolbarsHandler=b}}}},d.destroyScrollToolbars=function(a){a=f(a);var b=a.find(".page-content");0!==b.length&&b[0].f7ScrollToolbarsHandler&&b.off("scroll",b[0].f7ScrollToolbarsHandler)},d.materialTabbarSetHighlight=function(a,b){f(a).each(function(){var a=f(this);if((b=b||a.find(".tab-link.active"))&&b.length>0){var c,e;a.hasClass("tabbar-scrollable")?(c=b[0].offsetWidth+"px",e=b[0].offsetLeft+"px"):(c=1/a.find(".tab-link").length*100+"%",e=100*(d.rtl?-b.index():b.index())+"%"),a.find(".tab-link-highlight").css({width:c}).transform("translate3d("+e+",0,0)")}})},d.initPageMaterialTabbar=function(a){function b(){d.materialTabbarSetHighlight(c)}a=f(a);var c=a.find(".tabbar");0===c.length&&a.hasClass("tabbar")&&(c=a),c.length>0&&(0===c.find(".tab-link-highlight").length&&c.find(".toolbar-inner").append('<span class="tab-link-highlight"></span>'),b(),d.onResize(b),a.once("page:beforeremove",function(){d.offResize(b)}))},d.initMaterialTabbar=function(a){return d.initPageMaterialTabbar(a)},d.showTab=function(a,b,c,e){var g=f(a);if(2===arguments.length&&"boolean"==typeof arguments[1]&&(a=arguments[0],c=arguments[1]),3===arguments.length&&"boolean"==typeof arguments[1]&&"boolean"==typeof arguments[2]&&(a=arguments[0],c=arguments[1],e=arguments[2]),void 0===c&&(c=!0),0===g.length)return!1;if(g.hasClass("active"))return e&&g.trigger("show tab:show"),!1;var h=g.parent(".tabs");if(0===h.length)return!1;d.allowSwipeout=!0;var i=h.parent().hasClass("tabs-animated-wrap");if(i){h.parent()[c?"removeClass":"addClass"]("not-animated");var j=100*(d.rtl?g.index():-g.index());h.transform("translate3d("+j+"%,0,0)")}var k,l=h.parent().hasClass("tabs-swipeable-wrap");l&&(k=h.parent()[0].swiper,k.activeIndex!==g.index()&&k.slideTo(g.index(),c?void 0:0,!1));var m=h.children(".tab.active").removeClass("active").trigger("hide tab:hide");if(g.addClass("active"),g.trigger("show tab:show"),!i&&!l&&g.find(".navbar").length>0){var n;n=g.hasClass(d.params.viewClass)?g[0]:g.parents("."+d.params.viewClass)[0],d.sizeNavbars(n)}if(b?b=f(b):(!(b=f("string"==typeof a?'.tab-link[href="'+a+'"]':'.tab-link[href="#'+g.attr("id")+'"]'))||b&&0===b.length)&&f("[data-tab]").each(function(){g.is(f(this).attr("data-tab"))&&(b=f(this))}),0!==b.length){var o;if(m&&m.length>0){var p=m.attr("id");p&&(o=f('.tab-link[href="#'+p+'"]')),(!o||o&&0===o.length)&&f("[data-tab]").each(function(){m.is(f(this).attr("data-tab"))&&(o=f(this))})}if(b&&b.length>0&&(b.addClass("active"),d.params.material)){var q=b.parents(".tabbar");q.length>0&&(0===q.find(".tab-link-highlight").length&&q.find(".toolbar-inner").append('<span class="tab-link-highlight"></span>'),d.materialTabbarSetHighlight(q,b))}return o&&o.length>0&&o.removeClass("active"),!0}},d.accordionToggle=function(a){a=f(a),0!==a.length&&(a.hasClass("accordion-item-expanded")?d.accordionClose(a):d.accordionOpen(a))},d.accordionOpen=function(a){a=f(a);var b=a.parents(".accordion-list").eq(0),c=a.children(".accordion-item-content");0===c.length&&(c=a.find(".accordion-item-content"));var e=b.length>0&&a.parent().children(".accordion-item-expanded");e.length>0&&d.accordionClose(e),c.css("height",c[0].scrollHeight+"px").transitionEnd(function(){a.hasClass("accordion-item-expanded")?(c.transition(0),c.css("height","auto"),c[0].clientLeft,c.transition(""),a.trigger("opened accordion:opened")):(c.css("height",""),a.trigger("closed accordion:closed"))}),a.trigger("open accordion:open"),a.addClass("accordion-item-expanded")},d.accordionClose=function(a){a=f(a);var b=a.children(".accordion-item-content");0===b.length&&(b=a.find(".accordion-item-content")),a.removeClass("accordion-item-expanded"),b.transition(0),b.css("height",b[0].scrollHeight+"px"),b[0].clientLeft,b.transition(""),
  b.css("height","").transitionEnd(function(){a.hasClass("accordion-item-expanded")?(b.transition(0),b.css("height","auto"),b[0].clientLeft,b.transition(""),a.trigger("opened accordion:opened")):(b.css("height",""),a.trigger("closed accordion:closed"))}),a.trigger("close accordion:close")},d.initFastClicks=function(){function a(a){var b,c=f(a),e=c.parents(d.params.activeStateElements);return c.is(d.params.activeStateElements)&&(b=c),e.length>0&&(b=b?b.add(e):e),b||c}function b(a){var b=a.parents(".page-content, .panel");return 0!==b.length&&("yes"!==b.prop("scrollHandlerSet")&&(b.on("scroll",function(){clearTimeout(M),clearTimeout(S)}),b.prop("scrollHandlerSet","yes")),!0)}function c(){L&&L.addClass("active-state")}function e(a){L&&(L.removeClass("active-state"),L=null)}function g(a){var b="input select textarea label".split(" ");return!!(a.nodeName&&b.indexOf(a.nodeName.toLowerCase())>=0)}function h(a){var b="button input textarea select".split(" ");return!(!document.activeElement||a===document.activeElement||document.activeElement===document.body||b.indexOf(a.nodeName.toLowerCase())>=0)}function i(a){var b=f(a);return!("input"===a.nodeName.toLowerCase()&&("file"===a.type||"range"===a.type)||"select"===a.nodeName.toLowerCase()&&d.device.android||b.hasClass("no-fastclick")||b.parents(".no-fastclick").length>0||d.params.fastClicksExclude&&b.is(d.params.fastClicksExclude))}function j(a){if(document.activeElement===a)return!1;var b=a.nodeName.toLowerCase(),c="button checkbox file image radio submit".split(" ");return!a.disabled&&!a.readOnly&&("textarea"===b||("select"===b?!d.device.android:"input"===b&&c.indexOf(a.type)<0||void 0))}function k(a){a=f(a);var b=!0;return(a.is("label")||a.parents("label").length>0)&&(b=!d.device.android&&!(!d.device.ios||!a.is("input"))),b}function l(b){a(b.target).addClass("active-state"),"which"in b&&3===b.which&&setTimeout(function(){f(".active-state").removeClass("active-state")},0),d.params.material&&d.params.materialRipple&&(A=b.pageX,B=b.pageY,r(b.target,b.pageX,b.pageY))}function m(a){f(".active-state").removeClass("active-state"),d.params.material&&d.params.materialRipple&&s()}function n(a){f(".active-state").removeClass("active-state"),d.params.material&&d.params.materialRipple&&t()}function o(a){var b=d.params.materialRippleElements,c=f(a);if(c.is(b))return!c.hasClass("no-ripple")&&c;if(c.parents(b).length>0){var e=c.parents(b).eq(0);return!e.hasClass("no-ripple")&&e}return!1}function p(a,b,c){if(c){var d=c[0].getBoundingClientRect(),e={x:a-d.left,y:b-d.top},g=d.height,h=d.width,i=Math.max(Math.pow(Math.pow(g,2)+Math.pow(h,2),.5),48);P=f('<div class="ripple-wave" style="width: '+i+"px; height: "+i+"px; margin-top:-"+i/2+"px; margin-left:-"+i/2+"px; left:"+e.x+"px; top:"+e.y+'px;"></div>'),c.prepend(P),P[0].clientLeft,R="translate3d("+(h/2-e.x)+"px, "+(g/2-e.y)+"px, 0) scale(1)",P.transform(R)}}function q(){if(P){var a=P,b=setTimeout(function(){a.remove()},400);P.addClass("ripple-wave-fill").transform(R.replace("scale(1)","scale(1.01)")).transitionEnd(function(){clearTimeout(b);var a=f(this).addClass("ripple-wave-out").transform(R.replace("scale(1)","scale(1.01)"));b=setTimeout(function(){a.remove()},700),setTimeout(function(){a.transitionEnd(function(){clearTimeout(b),f(this).remove()})},0)}),P=Q=void 0}}function r(a,c,d){if(!(Q=o(a))||0===Q.length)return void(Q=void 0);b(Q)?S=setTimeout(function(){p(A,B,Q)},80):p(A,B,Q)}function s(){clearTimeout(S),q()}function t(){P?q():Q&&!I?(clearTimeout(S),p(A,B,Q),setTimeout(q,0)):q()}function u(a){var b=a.changedTouches[0],c=document.createEvent("MouseEvents"),e="click";d.device.android&&"select"===D.nodeName.toLowerCase()&&(e="mousedown"),c.initMouseEvent(e,!0,!0,window,1,b.screenX,b.screenY,b.clientX,b.clientY,!1,!1,!1,!1,0,null),c.forwardedTouchEvent=!0,D.dispatchEvent(c)}function v(g){if(I=!1,J=!1,g.targetTouches.length>1)return L&&e(),!0;if(g.touches.length>1&&L&&e(),d.params.tapHold&&(K&&clearTimeout(K),K=setTimeout(function(){g&&g.touches&&g.touches.length>1||(J=!0,g.preventDefault(),f(g.target).trigger("taphold"))},d.params.tapHoldDelay)),O&&clearTimeout(O),!(N=i(g.target)))return E=!1,!0;if(d.device.ios||d.device.android&&"getSelection"in window){var j=window.getSelection();if(j.rangeCount&&j.focusNode!==document.body&&(!j.isCollapsed||document.activeElement===j.focusNode))return F=!0,!0;F=!1}d.device.android&&h(g.target)&&document.activeElement.blur(),E=!0,D=g.target,C=(new Date).getTime(),A=g.targetTouches[0].pageX,B=g.targetTouches[0].pageY,d.device.ios&&(G=void 0,f(D).parents().each(function(){var a=this;a.scrollHeight>a.offsetHeight&&!G&&(G=a,G.f7ScrollTop=G.scrollTop)})),g.timeStamp-H<d.params.fastClicksDelayBetweenClicks&&g.preventDefault(),d.params.activeState&&(L=a(D),b(L)?M=setTimeout(c,80):c()),d.params.material&&d.params.materialRipple&&r(D,A,B)}function w(a){if(E){var b=!1,c=d.params.fastClicksDistanceThreshold;if(c){var f=a.targetTouches[0].pageX,g=a.targetTouches[0].pageY;(Math.abs(f-A)>c||Math.abs(g-B)>c)&&(b=!0)}else b=!0;b&&(E=!1,D=null,I=!0,d.params.tapHold&&clearTimeout(K),d.params.activeState&&(clearTimeout(M),e()),d.params.material&&d.params.materialRipple&&s())}}function x(a){if(clearTimeout(M),clearTimeout(K),!E)return!F&&N&&(d.device.android&&!a.cancelable||a.preventDefault()),!0;if(document.activeElement===a.target)return d.params.activeState&&e(),d.params.material&&d.params.materialRipple&&t(),!0;if(F||a.preventDefault(),a.timeStamp-H<d.params.fastClicksDelayBetweenClicks)return setTimeout(e,0),!0;if(H=a.timeStamp,E=!1,d.device.ios&&G&&G.scrollTop!==G.f7ScrollTop)return!1;if(d.params.activeState&&(c(),setTimeout(e,0)),d.params.material&&d.params.materialRipple&&t(),j(D)){if(d.device.ios&&d.device.webView)return event.timeStamp-C>159?(D=null,!1):(D.focus(),!1);D.focus()}return document.activeElement&&D!==document.activeElement&&document.activeElement!==document.body&&"label"!==D.nodeName.toLowerCase()&&document.activeElement.blur(),a.preventDefault(),u(a),!1}function y(a){E=!1,D=null,clearTimeout(M),clearTimeout(K),d.params.activeState&&e(),d.params.material&&d.params.materialRipple&&t()}function z(a){var b=!1;return E?(D=null,E=!1,!0):"submit"===a.target.type&&0===a.detail||"file"===a.target.type||(D||g(a.target)||(b=!0),N||(b=!0),document.activeElement===D&&(b=!0),a.forwardedTouchEvent&&(b=!0),a.cancelable||(b=!0),d.params.tapHold&&d.params.tapHoldPreventClicks&&J&&(b=!1),b||(a.stopImmediatePropagation(),a.stopPropagation(),D?(k(D)||I)&&a.preventDefault():a.preventDefault(),D=null),O=setTimeout(function(){N=!1},d.device.ios||d.device.androidChrome?100:400),d.params.tapHold&&(K=setTimeout(function(){J=!1},d.device.ios||d.device.androidChrome?100:400)),b)}d.params.activeState&&f("html").addClass("watch-active-state"),d.device.ios&&d.device.webView&&window.addEventListener("touchstart",function(){});var A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S;d.support.touch?(document.addEventListener("click",z,!0),document.addEventListener("touchstart",v),document.addEventListener("touchmove",w),document.addEventListener("touchend",x),document.addEventListener("touchcancel",y)):d.params.activeState&&(document.addEventListener("mousedown",l),document.addEventListener("mousemove",m),document.addEventListener("mouseup",n)),d.params.material&&d.params.materialRipple&&document.addEventListener("contextmenu",function(a){L&&e(),t()})},d.initClickEvents=function(){function a(a){var b=f(this),c=f(a.target);if(!("a"===b[0].nodeName.toLowerCase()||b.parents("a").length>0||"a"===c[0].nodeName.toLowerCase()||c.parents("a").length>0)){var e;if(d.params.scrollTopOnNavbarClick&&b.is(".navbar .center")){var g=b.parents(".navbar");e=g.parents(".page-content"),0===e.length&&(g.parents(".page").length>0&&(e=g.parents(".page").find(".page-content")),0===e.length&&g.nextAll(".pages").length>0&&(e=g.nextAll(".pages").find(".page:not(.page-on-left):not(.page-on-right):not(.cached)").find(".page-content")))}d.params.scrollTopOnStatusbarClick&&b.is(".statusbar-overlay")&&(e=f(".popup.modal-in").length>0?f(".popup.modal-in").find(".page:not(.page-on-left):not(.page-on-right):not(.cached)").find(".page-content"):f(".panel.active").length>0?f(".panel.active").find(".page:not(.page-on-left):not(.page-on-right):not(.cached)").find(".page-content"):f(".views > .view.active").length>0?f(".views > .view.active").find(".page:not(.page-on-left):not(.page-on-right):not(.cached)").find(".page-content"):f(".views").find(".page:not(.page-on-left):not(.page-on-right):not(.cached)").find(".page-content")),e&&e.length>0&&(e.hasClass("tab")&&(e=e.parent(".tabs").children(".page-content.active")),e.length>0&&e.scrollTop(0,300))}}function b(a){var b=f(this),c=b.attr("href"),e="a"===b[0].nodeName.toLowerCase();if(e&&(b.is(d.params.externalLinks)||c&&c.indexOf("javascript:")>=0))return void(c&&"_system"===b.attr("target")&&(a.preventDefault(),window.open(c,"_system")));var i=b.dataset();if(b.hasClass("smart-select")&&d.smartSelectOpen&&d.smartSelectOpen(b),b.hasClass("open-panel")&&(1===f(".panel").length?f(".panel").hasClass("panel-left")?d.openPanel("left"):d.openPanel("right"):"right"===i.panel?d.openPanel("right"):d.openPanel("left")),b.hasClass("close-panel")&&d.closePanel(),b.hasClass("panel-overlay")&&(f(".panel.active").trigger("panel:overlay-click"),d.params.panelsCloseByOutside&&d.closePanel()),b.hasClass("open-popover")){var j;j=i.popover?i.popover:".popover",d.popover(j,b)}b.hasClass("close-popover")&&d.closeModal(".popover.modal-in");var k;b.hasClass("open-popup")&&(k=i.popup?i.popup:".popup",d.popup(k)),b.hasClass("close-popup")&&(k=i.popup?i.popup:".popup.modal-in",d.closeModal(k));var l;if(b.hasClass("open-login-screen")&&(l=i.loginScreen?i.loginScreen:".login-screen",d.loginScreen(l)),b.hasClass("close-login-screen")&&d.closeModal(".login-screen.modal-in"),b.hasClass("modal-overlay")&&(f(".modal.modal-in").length>0&&d.params.modalCloseByOutside&&d.closeModal(".modal.modal-in"),f(".actions-modal.modal-in").length>0&&d.params.actionsCloseByOutside&&d.closeModal(".actions-modal.modal-in"),f(".popover.modal-in").length>0&&d.params.popoverCloseByOutside&&d.closeModal(".popover.modal-in")),b.hasClass("popup-overlay")&&f(".popup.modal-in").length>0&&d.params.popupCloseByOutside&&d.closeModal(".popup.modal-in"),b.hasClass("picker-modal-overlay")&&f(".picker-modal.modal-in").length>0&&d.closeModal(".picker-modal.modal-in"),b.hasClass("close-picker")){var m=f(".picker-modal.modal-in");m.length>0?d.closeModal(m):(m=f(".popover.modal-in .picker-modal"),m.length>0&&d.closeModal(m.parents(".popover")))}if(b.hasClass("open-picker")){var n;n=i.picker?i.picker:".picker-modal",d.pickerModal(n,b)}var o;if(b.hasClass("tab-link")&&(o=!0,d.showTab(i.tab||b.attr("href"),b)),b.hasClass("swipeout-close")&&d.swipeoutClose(b.parents(".swipeout-opened")),b.hasClass("swipeout-delete"))if(i.confirm){var p=i.confirm,q=i.confirmTitle;q?d.confirm(p,q,function(){d.swipeoutDelete(b.parents(".swipeout"))},function(){i.closeOnCancel&&d.swipeoutClose(b.parents(".swipeout"))}):d.confirm(p,function(){d.swipeoutDelete(b.parents(".swipeout"))},function(){i.closeOnCancel&&d.swipeoutClose(b.parents(".swipeout"))})}else d.swipeoutDelete(b.parents(".swipeout"));if(b.hasClass("toggle-sortable")&&d.sortableToggle(i.sortable),b.hasClass("open-sortable")&&d.sortableOpen(i.sortable),b.hasClass("close-sortable")&&d.sortableClose(i.sortable),b.hasClass("accordion-item-toggle")||b.hasClass("item-link")&&b.parent().hasClass("accordion-item")){var r=b.parent(".accordion-item");0===r.length&&(r=b.parents(".accordion-item")),0===r.length&&(r=b.parents("li")),d.accordionToggle(r)}if(b.hasClass("floating-button")&&b.parent().hasClass("speed-dial")&&b.parent().toggleClass("speed-dial-opened"),b.hasClass("close-speed-dial")&&f(".speed-dial-opened").removeClass("speed-dial-opened"),(!d.params.ajaxLinks||b.is(d.params.ajaxLinks))&&e&&d.params.router){e&&a.preventDefault();var s=c&&c.length>0&&"#"!==c&&!o,t=i.template;if(s||b.hasClass("back")||t){var u;if(i.view?u=f(i.view)[0].f7View:(u=b.parents("."+d.params.viewClass)[0]&&b.parents("."+d.params.viewClass)[0].f7View)&&u.params.linksView&&("string"==typeof u.params.linksView?u=f(u.params.linksView)[0].f7View:u.params.linksView instanceof h&&(u=u.params.linksView)),u||d.mainView&&(u=d.mainView),!u)return;var v;if(t)c=void 0;else{if(c&&0===c.indexOf("#")&&"#"!==c){if(!u.params.domCache)return;v=c.split("#")[1]}if("#"===c&&!b.hasClass("back"))return}var w;void 0!==i.animatePages?w=i.animatePages:(b.hasClass("with-animation")&&(w=!0),b.hasClass("no-animation")&&(w=!1));var x={animatePages:w,ignoreCache:i.ignoreCache,force:i.force,reload:i.reload,reloadPrevious:i.reloadPrevious,pageName:v,pushState:i.pushState,url:c};if(d.params.template7Pages){x.contextName=i.contextName;var y=i.context;y&&(x.context=JSON.parse(y))}t&&t in g.templates&&(x.template=g.templates[t]),b.hasClass("back")?u.router.back(x):u.router.load(x)}}}function c(a){a.preventDefault()}if(f(document).on("click","a, .open-panel, .close-panel, .panel-overlay, .modal-overlay, .popup-overlay, .swipeout-delete, .swipeout-close, .close-popup, .open-popup, .open-popover, .open-login-screen, .close-login-screen .smart-select, .toggle-sortable, .open-sortable, .close-sortable, .accordion-item-toggle, .close-picker, .picker-modal-overlay",b),(d.params.scrollTopOnNavbarClick||d.params.scrollTopOnStatusbarClick)&&f(document).on("click",".statusbar-overlay, .navbar .center",a),d.support.touch&&!d.device.android){var e=!!d.support.passiveListener&&{passive:!1,capture:!1};f(document).on(d.params.fastClicks?"touchstart":"touchmove",".panel-overlay, .modal-overlay, .preloader-indicator-overlay, .popup-overlay, .searchbar-overlay",c,e)}};var p=[];d.getSize=function(){var a=d.root.offset();d.width=d.root[0].offsetWidth,d.height=d.root[0].offsetHeight,d.left=a.left,d.top=a.top},d.onResize=function(a){p.push(a)},d.offResize=function(a){for(var b=0;b<p.length;b++)p[b]===a&&p.splice(b,1)},d.resize=function(){c(),d.getSize(),d.sizeNavbars&&d.sizeNavbars();for(var a=0;a<p.length;a++)p[a]()},d.orientationchange=function(){d.device&&d.device.minimalUi&&(90!==window.orientation&&-90!==window.orientation||(document.body.scrollTop=0)),c()},d.initResize=function(){f(window).on("resize",d.resize),f(window).on("orientationchange",d.orientationchange),d.getSize()},d.formsData={},d.formStoreData=function(a,b){d.formsData[a]=b,d.ls["f7form-"+a]=JSON.stringify(b)},d.formDeleteData=function(a){d.formsData[a]&&(d.formsData[a]="",delete d.formsData[a]),d.ls["f7form-"+a]&&(d.ls["f7form-"+a]="",d.ls.removeItem("f7form-"+a))},d.formGetData=function(a){return d.ls["f7form-"+a]?JSON.parse(d.ls["f7form-"+a]):d.formsData[a]?d.formsData[a]:void 0},d.formToData=function(a){if(a=f(a),1!==a.length)return!1;var b={},c=["submit","image","button","file"],d=[];return a.find("input, select, textarea").each(function(){var e=f(this),g=e.attr("name"),h=e.attr("type"),i=this.nodeName.toLowerCase();if(!(c.indexOf(h)>=0)&&!(d.indexOf(g)>=0)&&g)if("select"===i&&e.prop("multiple"))d.push(g),b[g]=[],a.find('select[name="'+g+'"] option').each(function(){this.selected&&b[g].push(this.value)});else switch(h){case"checkbox":d.push(g),b[g]=[],a.find('input[name="'+g+'"]').each(function(){this.checked&&b[g].push(this.value)});break;case"radio":d.push(g),a.find('input[name="'+g+'"]').each(function(){this.checked&&(b[g]=this.value)});break;default:b[g]=e.val()}}),a.trigger("formToJSON formToData form:todata",{formData:b}),b},d.formToJSON=d.formToData,d.formFromData=function(a,b){if(a=f(a),1!==a.length)return!1;var c=["submit","image","button","file"],d=[];a.find("input, select, textarea").each(function(){var e=f(this),g=e.attr("name"),h=e.attr("type"),i=this.nodeName.toLowerCase();if(void 0!==b[g]&&null!==b[g]&&!(c.indexOf(h)>=0)&&!(d.indexOf(g)>=0)&&g){if("select"===i&&e.prop("multiple"))d.push(g),a.find('select[name="'+g+'"] option').each(function(){b[g].indexOf(this.value)>=0?this.selected=!0:this.selected=!1});else switch(h){case"checkbox":d.push(g),a.find('input[name="'+g+'"]').each(function(){b[g].indexOf(this.value)>=0?this.checked=!0:this.checked=!1});break;case"radio":d.push(g),a.find('input[name="'+g+'"]').each(function(){b[g]===this.value?this.checked=!0:this.checked=!1});break;default:e.val(b[g])}"select"!==i&&"input"!==i&&"textarea"!==i||e.trigger("change")}}),a.trigger("formFromJSON formFromData form:fromdata",{formData:b})},d.formFromJSON=d.formFromData,d.initFormsStorage=function(a){function b(){var a=f(this),b=a[0].id;if(b){var c=d.formToData(a);c&&(d.formStoreData(b,c),a.trigger("store form:storedata",{data:c}))}}function c(){e.off("change submit",b),a.off("page:beforeremove",c)}a=f(a);var e=a.find("form.store-data");0!==e.length&&(e.each(function(){var a=this.getAttribute("id");if(a){var b=d.formGetData(a);b&&d.formFromData(this,b)}}),e.on("change submit",b),a.on("page:beforeremove",c))},f(document).on("submit change","form.ajax-submit, form.ajax-submit-onchange",function(a){var b=f(this);if("change"!==a.type||b.hasClass("ajax-submit-onchange")){"submit"===a.type&&a.preventDefault();var c=(b.attr("method")||"GET").toUpperCase(),e=b.prop("enctype")||b.attr("enctype"),g=b.attr("action");if(g){var h;h="POST"===c?new FormData(b[0]):f.serializeObject(d.formToJSON(b[0]));var i=f.ajax({method:c,url:g,contentType:e,data:h,beforeSend:function(a){b.trigger("beforeSubmit form:beforesend",{data:h,xhr:a})},error:function(a){b.trigger("submitError form:error",{data:h,xhr:a})},success:function(a){b.trigger("submitted form:success",{data:a,xhr:i})}})}}}),d.resizeTextarea=function(a){if(a=f(a),a.hasClass("resizable")){a.css({height:""});var b=a[0].offsetHeight,c=b-a[0].clientHeight,d=a[0].scrollHeight;if(d+c>b){var e=d+c;a.css("height",e+"px")}}},d.resizableTextarea=function(a){function b(){clearTimeout(c),c=setTimeout(function(){d.resizeTextarea(a)},0)}if(a=f(a),0!==a.length){var c;return a[0].f7DestroyResizableTextarea=function(){a.off("change keydown keypress keyup paste cut",b)},a.on("change keydown keypress keyup paste cut",b)}},d.destroyResizableTextarea=function(a){a=f(a),a.length>0&&a.is("textarea")&&a[0].f7DestroyResizableTextarea?a[0].f7DestroyResizableTextarea():a.length>0&&a.find("textarea.resiable").each(function(){var a=this;a.f7DestroyResizableTextarea&&a.f7DestroyResizableTextarea()})},d.initPageResizableTextarea=function(a){a=f(a),a.find("textarea.resizable").each(function(){d.resizableTextarea(this)})},d.initPageMaterialInputs=function(a){a=f(a),a.find("textarea.resizable"),a.find(".item-input").each(function(){var a=f(this),b=["checkbox","button","submit","range","radio","image"];a.find("input, select, textarea").each(function(){var c=f(this);b.indexOf(c.attr("type"))<0&&(a.addClass("item-input-field"),""!==c.val().trim()&&c.parents(".item-input, .input-field").add(c.parents(".item-inner")).addClass("not-empty-state"))}),a.parents(".input-item, .inputs-list").length>0||a.parents(".list-block").eq(0).addClass("inputs-list")})},d.initMaterialWatchInputs=function(){function a(a){var b=f(this),c=b.attr("type");d.indexOf(c)>=0||b.add(b.parents(".item-input, .input-field")).add(b.parents(".item-inner").eq(0)).removeClass("not-empty-state").addClass("focus-state")}function b(a){var b=f(this),c=b.val(),e=b.attr("type");if(!(d.indexOf(e)>=0)){var g=b.add(b.parents(".item-input, .input-field")).add(b.parents(".item-inner").eq(0));g.removeClass("focus-state"),c&&""!==c.trim()?g.removeClass("focus-state").addClass("not-empty-state"):g.removeClass("not-empty-state")}}function c(a){var b=f(this),c=b.val(),e=b.attr("type");if(!(d.indexOf(e)>=0)){var g=b.add(b.parents(".item-input, .input-field")).add(b.parents(".item-inner").eq(0));0!==g.length&&(c&&"string"==typeof c&&""!==c.trim()||Array.isArray(c)&&c.length>0?g.addClass("not-empty-state"):g.removeClass("not-empty-state"))}}var d=["checkbox","button","submit","range","radio","image"];f(document).on("change","input, textarea, select",c,!0),f(document).on("focus","input, textarea, select",a,!0),f(document).on("blur","input, textarea, select",b,!0)},d.pushStateQueue=[],d.pushStateClearQueue=function(){if(0!==d.pushStateQueue.length){var a,b=d.pushStateQueue.pop();!0===d.params.pushStateNoAnimation&&(a=!1),"back"===b.action&&d.router.back(b.view,{animatePages:a}),"loadPage"===b.action&&d.router.load(b.view,{url:b.stateUrl,animatePages:a,pushState:!1}),"loadContent"===b.action&&d.router.load(b.view,{content:b.stateContent,animatePages:a,pushState:!1}),"loadPageName"===b.action&&d.router.load(b.view,{pageName:b.statePageName,url:b.stateUrl,animatePages:a,pushState:!1})}},d.initPushState=function(){function a(a){if(!b){var c=d.mainView;if(c){var e=a.state;if(e||(e={viewIndex:d.views.indexOf(c),url:c.history[0]}),!(e.viewIndex<0)){var f,g=d.views[e.viewIndex],h=e&&e.url||void 0,i=e&&e.content||void 0,j=e&&e.pageName||void 0;!0===d.params.pushStateNoAnimation&&(f=!1),h!==g.url&&(g.history.indexOf(h)>=0?g.allowPageChange?d.router.back(g,{url:void 0,animatePages:f,pushState:!1,preloadOnly:!1}):d.pushStateQueue.push({action:"back",view:g}):i?g.allowPageChange?d.router.load(g,{content:i,animatePages:f,pushState:!1}):d.pushStateQueue.unshift({action:"loadContent",stateContent:i,view:g}):j?g.allowPageChange?d.router.load(g,{pageName:j,url:h,animatePages:f,pushState:!1}):d.pushStateQueue.unshift({action:"loadPageName",statePageName:j,view:g}):g.allowPageChange?d.router.load(g,{url:h,animatePages:f,pushState:!1}):d.pushStateQueue.unshift({action:"loadPage",stateUrl:h,view:g}))}}}}var b=!0;f(window).on("load",function(){setTimeout(function(){b=!1},0)}),document.readyState&&"complete"===document.readyState&&(b=!1),f(window).on("popstate",a)},d.swiper=function(a,b){return new Swiper(a,b)},d.initPageSwiper=function(a){function b(b){function c(){b.destroy(),a.off("page:beforeremove",c)}a.on("page:beforeremove",c)}a=f(a);var c=a.find(".swiper-init, .tabs-swipeable-wrap");0!==c.length&&c.each(function(){var a,c,e=f(this);e.hasClass("tabs-swipeable-wrap")&&(e.addClass("swiper-container").children(".tabs").addClass("swiper-wrapper").children(".tab").addClass("swiper-slide"),a=e.children(".tabs").children(".tab.active").index()),c=e.data("swiper")?JSON.parse(e.data("swiper")):e.dataset(),void 0===c.initialSlide&&void 0!==a&&(c.initialSlide=a),e.hasClass("tabs-swipeable-wrap")&&(c.onSlideChangeStart=function(a){d.showTab(a.slides.eq(a.activeIndex))}),b(d.swiper(e[0],c))})},d.reinitPageSwiper=function(a){a=f(a);var b=a.find(".swiper-init, .tabs-swipeable-wrap");if(0!==b.length)for(var c=0;c<b.length;c++){var d=b[0].swiper;d&&d.update(!0)}};var q=function(a){var b=this,c={photos:[],initialSlide:0,spaceBetween:20,speed:300,zoom:!0,zoomMax:3,zoomMin:1,exposition:!0,expositionHideCaptions:!1,type:"standalone",navbar:!0,toolbar:!0,theme:"light",swipeToClose:!0,backLinkText:"Close",ofText:"of",loop:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingOnTransitionStart:!1,material:d.params.material,materialPreloaderSvg:d.params.materialPreloaderSvg,materialPreloaderHtml:d.params.materialPreloaderHtml};a=a||{},!a.backLinkText&&d.params.material&&(c.backLinkText="");for(var e in c)void 0===a[e]&&(a[e]=c[e]);a.maxZoom&&(a.zoomMax=a.maxZoom),a.minZoom&&(a.zoomMin=a.minZoom),b.params=a,b.params.iconsColorClass=b.params.iconsColor?"color-"+b.params.iconsColor:"dark"===b.params.theme?"color-white":"",b.params.preloaderColorClass="dark"===b.params.theme?"preloader-white":"";var h=b.params.photoTemplate||'<div class="photo-browser-slide swiper-slide"><span class="swiper-zoom-container"><img src="{{js "this.url || this"}}"></span></div>',i=b.params.lazyPhotoTemplate||'<div class="photo-browser-slide photo-browser-slide-lazy swiper-slide"><div class="preloader {{@root.preloaderColorClass}}">{{#if @root.material}}{{@root.materialPreloaderHtml}}{{/if}}</div><span class="swiper-zoom-container"><img data-src="{{js "this.url || this"}}" class="swiper-lazy"></span></div>',j=b.params.objectTemplate||'<div class="photo-browser-slide photo-browser-object-slide swiper-slide">{{js "this.html || this"}}</div>',k=b.params.captionTemplate||'<div class="photo-browser-caption" data-caption-index="{{@index}}">{{caption}}</div>',l=b.params.navbarTemplate||'<div class="navbar"><div class="navbar-inner"><div class="left sliding"><a href="#" class="link '+("popup"===a.type?"close-popup":"photo-browser-close-link")+' {{#unless backLinkText}}icon-only{{/unless}} {{js "this.type === \'page\' ? \'back\' : \'\'"}}"><i class="icon icon-back {{iconsColorClass}}"></i>{{#if backLinkText}}<span>{{backLinkText}}</span>{{/if}}</a></div><div class="center sliding"><span class="photo-browser-current"></span> <span class="photo-browser-of">{{ofText}}</span> <span class="photo-browser-total"></span></div><div class="right"></div></div></div>',m=b.params.toolbarTemplate||'<div class="toolbar tabbar"><div class="toolbar-inner"><a href="#" class="link photo-browser-prev"><i class="icon icon-prev {{iconsColorClass}}"></i></a><a href="#" class="link photo-browser-next"><i class="icon icon-next {{iconsColorClass}}"></i></a></div></div>',n=g.compile('<div class="photo-browser photo-browser-{{theme}}"><div class="view navbar-fixed toolbar-fixed">{{#unless material}}{{#if navbar}}'+l+'{{/if}}{{/unless}}<div class="page no-toolbar {{#unless navbar}}no-navbar{{/unless}} toolbar-fixed navbar-fixed" data-page="photo-browser-slides">{{#if material}}{{#if navbar}}'+l+"{{/if}}{{/if}}{{#if toolbar}}"+m+'{{/if}}<div class="photo-browser-captions photo-browser-captions-{{js "this.captionsTheme || this.theme"}}">{{#each photos}}{{#if caption}}'+k+"{{/if}}{{/each}}</div><div class=\"photo-browser-swiper-container swiper-container\"><div class=\"photo-browser-swiper-wrapper swiper-wrapper\">{{#each photos}}{{#js_compare \"this.html || ((typeof this === 'string' || this instanceof String) && (this.indexOf('<') >= 0 || this.indexOf('>') >= 0))\"}}"+j+"{{else}}{{#if @root.lazyLoading}}"+i+"{{else}}"+h+"{{/if}}{{/js_compare}}{{/each}}</div></div></div></div></div>")(b.params);b.activeIndex=b.params.initialSlide,b.openIndex=b.activeIndex,b.opened=!1,b.open=function(a){return void 0===a&&(a=b.activeIndex),a=parseInt(a,10),b.opened&&b.swiper?void b.swiper.slideTo(a):(b.opened=!0,b.openIndex=a,"standalone"===b.params.type&&d.root.append(n),"popup"===b.params.type&&(b.popup=d.popup('<div class="popup photo-browser-popup">'+n+"</div>"),f(b.popup).on("popup:closed",b.onPopupClose)),"page"===b.params.type?(f(document).once("page:beforeinit",b.onPageBeforeInit),f(document).once("page:beforeremove",b.onPageBeforeRemove),b.params.view||(b.params.view=d.mainView),void b.params.view.loadContent(n)):(b.layout(b.openIndex),void(b.params.onOpen&&b.params.onOpen(b))))},b.close=function(){b.opened=!1,b.swiperContainer&&0!==b.swiperContainer.length&&(b.params.onClose&&b.params.onClose(b),b.attachEvents(!0),"standalone"===b.params.type&&b.container.removeClass("photo-browser-in").addClass("photo-browser-out").animationEnd(function(){b.container.remove()}),b.swiper.destroy(),b.swiper=b.swiperContainer=b.swiperWrapper=b.slides=void 0)},b.onPopupClose=function(a){b.close(),f(b.popup).off("page:beforeinit",b.onPopupClose)},b.onPageBeforeInit=function(a){"photo-browser-slides"===a.detail.page.name&&(b.layout(b.openIndex),b.params.onOpen&&b.params.onOpen(b))},b.onPageBeforeRemove=function(a){"photo-browser-slides"===a.detail.page.name&&b.close()},b.onSliderTransitionStart=function(a){b.activeIndex=a.activeIndex;var c=a.activeIndex+1,d=a.slides.length;if(b.params.loop&&(d-=2,c-=a.loopedSlides,c<1&&(c=d+c),c>d&&(c-=d)),b.container.find(".photo-browser-current").text(c),b.container.find(".photo-browser-total").text(d),f(".photo-browser-prev, .photo-browser-next").removeClass("photo-browser-link-inactive"),a.isBeginning&&!b.params.loop&&f(".photo-browser-prev").addClass("photo-browser-link-inactive"),a.isEnd&&!b.params.loop&&f(".photo-browser-next").addClass("photo-browser-link-inactive"),b.captions.length>0){b.captionsContainer.find(".photo-browser-caption-active").removeClass("photo-browser-caption-active");var e=b.params.loop?a.slides.eq(a.activeIndex).attr("data-swiper-slide-index"):b.activeIndex;b.captionsContainer.find('[data-caption-index="'+e+'"]').addClass("photo-browser-caption-active")}var g=a.slides.eq(a.previousIndex).find("video");g.length>0&&"pause"in g[0]&&g[0].pause(),b.params.onTransitionStart&&b.params.onTransitionStart(a)},b.onSliderTransitionEnd=function(a){b.params.onTransitionEnd&&b.params.onTransitionEnd(a)},b.layout=function(a){"page"===b.params.type?b.container=f(".photo-browser-swiper-container").parents(".view"):b.container=f(".photo-browser"),"standalone"===b.params.type&&(b.container.addClass("photo-browser-in"),d.sizeNavbars(b.container)),b.swiperContainer=b.container.find(".photo-browser-swiper-container"),b.swiperWrapper=b.container.find(".photo-browser-swiper-wrapper"),b.slides=b.container.find(".photo-browser-slide"),b.captionsContainer=b.container.find(".photo-browser-captions"),b.captions=b.container.find(".photo-browser-caption");var c={nextButton:b.params.nextButton||".photo-browser-next",prevButton:b.params.prevButton||".photo-browser-prev",indexButton:b.params.indexButton,initialSlide:a,spaceBetween:b.params.spaceBetween,speed:b.params.speed,loop:b.params.loop,lazyLoading:b.params.lazyLoading,lazyLoadingInPrevNext:b.params.lazyLoadingInPrevNext,lazyLoadingOnTransitionStart:b.params.lazyLoadingOnTransitionStart,preloadImages:!b.params.lazyLoading,zoom:b.params.zoom,zoomMax:b.params.zoomMax,zoomMin:b.params.zoomMin,onTap:function(a,c){b.params.onTap&&b.params.onTap(a,c)},onClick:function(a,c){b.params.exposition&&b.toggleExposition(),b.params.onClick&&b.params.onClick(a,c)},onDoubleTap:function(a,c){b.params.onDoubleTap&&b.params.onDoubleTap(a,c)},onTransitionStart:function(a){b.onSliderTransitionStart(a)},onTransitionEnd:function(a){b.onSliderTransitionEnd(a)},onSlideChangeStart:b.params.onSlideChangeStart,onSlideChangeEnd:b.params.onSlideChangeEnd,onLazyImageLoad:function(a,c,d){b.params.onLazyImageLoad&&b.params.onLazyImageLoad(b,c,d)},onLazyImageReady:function(a,c,d){f(c).removeClass("photo-browser-slide-lazy"),b.params.onLazyImageReady&&b.params.onLazyImageReady(b,c,d)}};b.params.swipeToClose&&"page"!==b.params.type&&(c.onTouchStart=b.swipeCloseTouchStart,c.onTouchMoveOpposite=b.swipeCloseTouchMove,c.onTouchEnd=b.swipeCloseTouchEnd),b.swiper=d.swiper(b.swiperContainer,c),0===a&&b.onSliderTransitionStart(b.swiper),b.attachEvents()},b.attachEvents=function(a){var c=a?"off":"on";b.container.find(".photo-browser-close-link")[c]("click",b.close)},b.exposed=!1,b.toggleExposition=function(){b.container&&b.container.toggleClass("photo-browser-exposed"),b.params.expositionHideCaptions&&b.captionsContainer.toggleClass("photo-browser-captions-exposed"),b.exposed=!b.exposed},b.enableExposition=function(){b.container&&b.container.addClass("photo-browser-exposed"),b.params.expositionHideCaptions&&b.captionsContainer.addClass("photo-browser-captions-exposed"),b.exposed=!0},b.disableExposition=function(){b.container&&b.container.removeClass("photo-browser-exposed"),b.params.expositionHideCaptions&&b.captionsContainer.removeClass("photo-browser-captions-exposed"),b.exposed=!1};var o,p,q,r,s,t=!1,u=!0,v=!1;return b.swipeCloseTouchStart=function(a,b){u&&(t=!0)},b.swipeCloseTouchMove=function(a,c){if(t){v||(v=!0,p="touchmove"===c.type?c.targetTouches[0].pageY:c.pageY,r=b.swiper.slides.eq(b.swiper.activeIndex),s=(new Date).getTime()),c.preventDefault(),q="touchmove"===c.type?c.targetTouches[0].pageY:c.pageY,o=p-q;var d=1-Math.abs(o)/300;r.transform("translate3d(0,"+-o+"px,0)"),b.swiper.container.css("opacity",d).transition(0)}},b.swipeCloseTouchEnd=function(a,c){if(t=!1,!v)return void(v=!1);v=!1,u=!1;var e=Math.abs(o),f=(new Date).getTime()-s;if(f<300&&e>20||f>=300&&e>100)return void setTimeout(function(){"standalone"===b.params.type&&b.close(),"popup"===b.params.type&&d.closeModal(b.popup),b.params.onSwipeToClose&&b.params.onSwipeToClose(b),u=!0},0)
  ;0!==e?r.addClass("transitioning").transitionEnd(function(){u=!0,r.removeClass("transitioning")}):u=!0,b.swiper.container.css("opacity","").transition(""),r.transform("")},b};d.photoBrowser=function(a){return new q(a)};var r=function(a){function b(a){var b=h.input.val();h.params.source&&h.params.source(h,b,function(a){var c="",d=h.params.limit?Math.min(h.params.limit,a.length):a.length;h.items=a;var e,f;for(h.params.highlightMatches&&(b=b.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),f=new RegExp("("+b+")","i")),e=0;e<d;e++){var g="object"==typeof a[e]?a[e][h.params.valueProperty]:a[e],i="object"!=typeof a[e]?a[e]:a[e][h.params.textProperty];c+=h.dropdownItemTemplate({value:g,text:h.params.highlightMatches?i.replace(f,"<b>$1</b>"):i})}""===c&&""===b&&h.params.dropdownPlaceholderText&&(c+=h.dropdownPlaceholderTemplate({text:h.params.dropdownPlaceholderText})),h.dropdown.find("ul").html(c)})}function c(a){for(var b,c=f(this),d=0;d<h.items.length;d++){var e="object"==typeof h.items[d]?h.items[d][h.params.valueProperty]:h.items[d],g=c.attr("data-value");e!==g&&1*e!=1*g||(b=h.items[d])}h.params.updateInputValueOnSelect&&(h.input.val("object"==typeof b?b[h.params.valueProperty]:b),h.input.trigger("input change")),h.params.onChange&&h.params.onChange(h,b),h.close()}function e(a){var b=f(a.target);b.is(h.input[0])||h.dropdown&&b.parents(h.dropdown[0]).length>0||h.close()}var h=this,i={popupCloseText:"Close",backText:"Back",searchbarPlaceholderText:"Search...",searchbarCancelText:"Cancel",openWithAnimation:!0,autoFocus:!1,openIn:"page",backOnSelect:!1,notFoundText:"Nothing found",requestSourceOnOpen:!1,valueProperty:"id",textProperty:"text",highlightMatches:!0,updateInputValueOnSelect:!0,expandInput:!1,preloaderColor:!1,preloader:!1};a=a||{};for(var j in i)void 0===a[j]&&(a[j]=i[j]);h.params=a,h.params.opener&&(h.opener=f(h.params.opener));var k=h.params.view;if(!h.params.view&&h.opener&&h.opener.length){if(k=h.opener.parents("."+d.params.viewClass),0===k.length)return;k=k[0].f7View}if(!h.params.input||(h.input=f(h.params.input),0!==h.input.length||"dropdown"!==h.params.openIn)){h.value=h.params.value||[],h.id=(new Date).getTime(),h.inputType=h.params.multiple?"checkbox":"radio",h.inputName=h.inputType+"-"+h.id;var l=d.params.material;if(h.params.backOnSelect,"dropdown"!==h.params.openIn){h.itemTemplate=g.compile(h.params.itemTemplate||'<li><label class="label-{{inputType}} item-content"><input type="{{inputType}}" name="{{inputName}}" value="{{value}}" {{#if selected}}checked{{/if}}>{{#if material}}<div class="item-media"><i class="icon icon-form-{{inputType}}"></i></div><div class="item-inner"><div class="item-title">{{text}}</div></div>{{else}}{{#if checkbox}}<div class="item-media"><i class="icon icon-form-checkbox"></i></div>{{/if}}<div class="item-inner"><div class="item-title">{{text}}</div></div>{{/if}}</label></li>');var m=h.params.pageTitle||"";!m&&h.opener&&h.opener.length&&(m=h.opener.find(".item-title").text());var n,o,p="autocomplete-"+h.inputName,q=h.params.navbarTheme,r=h.params.formTheme,s="",t="";h.navbarTemplate=g.compile(h.params.navbarTemplate||'<div class="navbar no-shadow {{#if navbarTheme}}theme-{{navbarTheme}}{{/if}}"><div class="navbar-inner"><div class="left sliding">{{#if material}}<a href="#" class="link {{#if inPopup}}close-popup{{else}}back{{/if}} icon-only" {{#unless animated}}data-animate-pages="false"{{/unless}}><i class="icon icon-back"></i></a>{{else}}<a href="#" class="link {{#if inPopup}}close-popup{{else}}back{{/if}}" {{#unless animated}}data-animate-pages="false"{{/unless}}><i class="icon icon-back"></i>{{#if inPopup}}<span>{{popupCloseText}}</span>{{else}}<span>{{backText}}</span>{{/if}}</a>{{/if}}</div><div class="center sliding">{{pageTitle}}</div>{{#if preloader}}<div class="right"><div class="autocomplete-preloader preloader {{#if preloaderColor}}preloader-{{preloaderColor}}{{/if}}"></div></div>{{/if}}</div></div>'),n=h.navbarTemplate({pageTitle:m,backText:h.params.backText,popupCloseText:h.params.popupCloseText,openIn:h.params.openIn,navbarTheme:q,inPopup:"popup"===h.params.openIn,inPage:"page"===h.params.openIn,material:l,preloader:h.params.preloader,preloaderColor:h.params.preloaderColor,animated:h.params.openWithAnimation}),"page"===h.params.openIn?(o="static",h.opener?(h.opener.parents(".navbar-through").length>0&&(o="through"),h.opener.parents(".navbar-fixed").length>0&&(o="fixed"),t=h.opener.parents(".page").hasClass("no-toolbar")?"no-toolbar":"",s=h.opener.parents(".page").hasClass("no-navbar")?"no-navbar":"navbar-"+o):k.container&&((f(k.container).hasClass("navbar-through")||f(k.container).find(".navbar-through").length>0)&&(o="through"),(f(k.container).hasClass("navbar-fixed")||f(k.container).find(".navbar-fixed").length>0)&&(o="fixed"),t=f(k.activePage.container).hasClass("no-toolbar")?"no-toolbar":"",s=f(k.activePage.container).hasClass("no-navbar")?"no-navbar":"navbar-"+o)):o="fixed";var u='<form class="searchbar"><div class="searchbar-input"><input type="search" placeholder="'+h.params.searchbarPlaceholderText+'"><a href="#" class="searchbar-clear"></a></div>'+(l?"":'<a href="#" class="searchbar-cancel">'+h.params.searchbarCancelText+"</a>")+'</form><div class="searchbar-overlay"></div>',v=("through"===o?n:"")+'<div class="pages"><div data-page="'+p+'" class="page autocomplete-page '+s+" "+t+'">'+("fixed"===o?n:"")+u+'<div class="page-content">'+("static"===o?n:"")+'<div class="list-block autocomplete-found autocomplete-list-'+h.id+" "+(r?"theme-"+r:"")+'"><ul></ul></div><div class="list-block autocomplete-not-found"><ul><li class="item-content"><div class="item-inner"><div class="item-title">'+h.params.notFoundText+'</div></div></li></ul></div><div class="list-block autocomplete-values"><ul></ul></div></div></div></div>'}else h.dropdownItemTemplate=g.compile(h.params.dropdownItemTemplate||'<li><label class="{{#unless placeholder}}label-radio{{/unless}} item-content" data-value="{{value}}"><div class="item-inner"><div class="item-title">{{text}}</div></div></label></li>'),h.dropdownPlaceholderTemplate=g.compile(h.params.dropdownPlaceholderTemplate||'<li class="autocomplete-dropdown-placeholder"><div class="item-content"><div class="item-inner"><div class="item-title">{{text}}</div></div></label></li>'),h.dropdownTemplate=g.compile(h.params.dropdownTemplate||'<div class="autocomplete-dropdown"><div class="autocomplete-dropdown-inner"><div class="list-block"><ul></ul></div></div>{{#if preloader}}<div class="autocomplete-preloader preloader {{#if preloaderColor}}preloader-{{preloaderColor}}{{/if}}">{{#if material}}{{materialPreloaderHtml}}{{/if}}</div>{{/if}}</div>');return h.popup=void 0,h.dropdown=void 0,h.positionDropDown=function(){var a=h.input.parents(".list-block"),b=h.input.parents(".page-content"),c=(parseInt(b.css("padding-top"),10),parseInt(b.css("padding-top"),10)),d=a.length>0?a.offset().left-a.parent().offset().left:0,e=h.input.offset().left-(a.length>0?a.offset().left:0),f=h.input.offset().top-(b.offset().top-b[0].scrollTop),g=b[0].scrollHeight-c-(f+b[0].scrollTop)-h.input[0].offsetHeight;h.dropdown.css({left:(a.length>0?d:e)+"px",top:f+b[0].scrollTop+h.input[0].offsetHeight+"px",width:(a.length>0?a[0].offsetWidth:h.input[0].offsetWidth)+"px"}),h.dropdown.children(".autocomplete-dropdown-inner").css({maxHeight:g+"px",paddingLeft:a.length>0&&!h.params.expandInput?e-(l?16:15)+"px":""})},h.pageInit=function(a){function b(a){if(h.params.source){var b,c;h.params.source(h,a,function(d){var e="",f=h.params.limit?Math.min(h.params.limit,d.length):d.length;for(h.items=d,b=0;b<f;b++){var i=!1,j="object"==typeof d[b]?d[b][h.params.valueProperty]:d[b];for(c=0;c<h.value.length;c++){var k="object"==typeof h.value[c]?h.value[c][h.params.valueProperty]:h.value[c];k!==j&&1*k!=1*j||(i=!0)}e+=h.itemTemplate({value:j,text:"object"!=typeof d[b]?d[b]:d[b][h.params.textProperty],inputType:h.inputType,id:h.id,inputName:h.inputName,selected:i,checkbox:"checkbox"===h.inputType,material:l})}g.find(".autocomplete-found ul").html(e),0===d.length?0!==a.length?(g.find(".autocomplete-not-found").show(),g.find(".autocomplete-found, .autocomplete-values").hide()):(g.find(".autocomplete-values").show(),g.find(".autocomplete-found, .autocomplete-not-found").hide()):(g.find(".autocomplete-found").show(),g.find(".autocomplete-not-found, .autocomplete-values").hide())})}}function c(){var a,b="";for(a=0;a<h.value.length;a++)b+=h.itemTemplate({value:"object"==typeof h.value[a]?h.value[a][h.params.valueProperty]:h.value[a],text:"object"==typeof h.value[a]?h.value[a][h.params.textProperty]:h.value[a],inputType:h.inputType,id:h.id,inputName:h.inputName+"-checked",checkbox:"checkbox"===h.inputType,material:l,selected:!0});g.find(".autocomplete-values ul").html(b)}var e=a.detail.page;if(h.page=f(e.container),h.pageData=e,e.name===p){var g=f(e.container),i=d.searchbar(g.find(".searchbar"),{customSearch:!0,onSearch:function(a,c){0===c.query.length&&a.active?a.overlay.addClass("searchbar-overlay-active"):a.overlay.removeClass("searchbar-overlay-active"),b(c.query)}});h.searchbar=i,!h.params.multiple&&h.params.backOnSelect&&g.once("click",".list-block label",function(){"popup"===h.params.openIn?d.closeModal(h.popup):k.router.back({animatePages:h.params.openWithAnimation})}),g.on("change",'input[type="radio"], input[type="checkbox"]',function(){var a,b,d,e,g=this,i=g.value;if(f(g).parents("li").find(".item-title").text(),f(g).parents(".autocomplete-values").length>0){if("checkbox"===h.inputType&&!g.checked){for(a=0;a<h.value.length;a++)(e="string"==typeof h.value[a]?h.value[a]:h.value[a][h.params.valueProperty])!==i&&1*e!=1*i||h.value.splice(a,1);c(),h.params.onChange&&h.params.onChange(h,h.value)}}else{for(a=0;a<h.items.length;a++)(d="string"==typeof h.items[a]?h.items[a]:h.items[a][h.params.valueProperty])!==i&&1*d!=1*i||(b=h.items[a]);if("radio"===h.inputType)h.value=[b];else if(g.checked)h.value.push(b);else for(a=0;a<h.value.length;a++)(e="string"==typeof h.value[a]?h.value[a]:h.value[a][h.params.valueProperty])!==i&&1*e!=1*i||h.value.splice(a,1);c(),("radio"===h.inputType&&g.checked||"checkbox"===h.inputType)&&h.params.onChange&&h.params.onChange(h,h.value)}}),c(),h.params.requestSourceOnOpen&&b(""),h.params.onOpen&&h.params.onOpen(h)}},h.showPreloader=function(){"dropdown"===h.params.openIn?h.dropdown&&h.dropdown.find(".autocomplete-preloader").addClass("autocomplete-preloader-visible"):f(".autocomplete-preloader").addClass("autocomplete-preloader-visible")},h.hidePreloader=function(){"dropdown"===h.params.openIn?h.dropdown&&h.dropdown.find(".autocomplete-preloader").removeClass("autocomplete-preloader-visible"):f(".autocomplete-preloader").removeClass("autocomplete-preloader-visible")},h.autoFocus=function(a){var b=this;setTimeout(function(){f(b).find("input[type=search]").focus()},0)},h.open=function(){if(!h.opened)if(h.opened=!0,"dropdown"===h.params.openIn){h.dropdown||(h.dropdown=f(h.dropdownTemplate({preloader:h.params.preloader,preloaderColor:h.params.preloaderColor,material:l,materialPreloaderHtml:d.params.materialPreloaderHtml})),h.dropdown.on("click","label",c));var a=h.input.parents(".list-block");a.length&&h.input.parents(".item-content").length>0&&h.params.expandInput&&h.input.parents(".item-content").addClass("item-content-dropdown-expand"),h.positionDropDown(),h.input.parents(".page-content").append(h.dropdown),h.dropdown.addClass("autocomplete-dropdown-in"),h.input.trigger("input"),d.onResize(h.positionDropDown),h.params.onOpen&&h.params.onOpen(h)}else f(document).once("page:init",".autocomplete-page",h.pageInit),"popup"===h.params.openIn?(h.popup=d.popup('<div class="popup autocomplete-popup autocomplete-popup-'+h.inputName+'"><div class="view navbar-fixed">'+v+"</div></div>",!0,h.params.openWithAnimation),h.popup=f(h.popup),h.params.autoFocus&&(h.params.openWithAnimation?h.popup.once("popup:opened",h.autoFocus):h.autoFocus.bind(h.popup)()),h.popup.once("popup:closed",function(){h.popup=void 0,h.opened=!1,h.params.onClose&&h.params.onClose(h)})):(h.params.autoFocus&&f(document).once(h.params.openWithAnimation?"page:afteranimation":"page:init",".autocomplete-page",h.autoFocus),k.router.load({content:v,animatePages:h.params.openWithAnimation}),f(document).once("page:back",".autocomplete-page",function(){h.opened=!1,h.params.onClose&&h.params.onClose(h)}))},h.close=function(a){if(h.opened){if("dropdown"===h.params.openIn){if(a&&"blur"===a.type&&h.dropdown.find("label.active-state").length>0)return;h.dropdown.removeClass("autocomplete-dropdown-in").remove(),h.input.parents(".item-content-dropdown-expand").removeClass("item-content-dropdown-expand"),h.opened=!1,d.offResize(h.positionDropDown),h.params.onClose&&h.params.onClose(h)}"popup"===h.params.openIn&&h.popup&&d.closeModal(h.popup)}},h.initEvents=function(a){var c=a?"off":"on";"dropdown"!==h.params.openIn&&h.opener&&h.opener[c]("click",h.open),"dropdown"===h.params.openIn&&h.input&&(h.input[c]("focus",h.open),h.input[c]("input",b),d.device.android?f("html")[c]("click",e):h.input[c]("blur",h.close)),a&&h.dropdown&&(h.dropdown=null)},h.init=function(){h.initEvents()},h.destroy=function(){h.initEvents(!0),h=null},h.init(),h}};d.autocomplete=function(a){return new r(a)};var s=function(a){function b(){var a=!1;return j.params.convertToPopover||j.params.onlyInPopover?(!j.inline&&j.params.input&&(j.params.onlyInPopover?a=!0:d.device.ios?a=!!d.device.ipad:d.width>=768&&(a=!0)),a):a}function c(){return!!(j.opened&&j.container&&j.container.length>0&&j.container.parents(".popover").length>0)}function e(){if(j.opened)for(var a=0;a<j.cols.length;a++)j.cols[a].divider||(j.cols[a].calcSize(),j.cols[a].setValue(j.cols[a].value,0,!1))}function g(a){if(a.preventDefault(),!j.opened&&(j.open(),j.params.scrollToInput&&!b())){var c=j.input.parents(".page-content");if(0===c.length)return;var d,e=parseInt(c.css("padding-top"),10),f=parseInt(c.css("padding-bottom"),10),g=c[0].offsetHeight-e-j.container.height(),h=c[0].scrollHeight-e-j.container.height(),i=j.input.offset().top-e+j.input[0].offsetHeight;if(i>g){var k=c.scrollTop()+i-g;k+g>h&&(d=k+g-h+f,g===h&&(d=j.container.height()),c.css({"padding-bottom":d+"px"})),c.scrollTop(k,300)}}}function h(a){c()||(j.input&&j.input.length>0?a.target!==j.input[0]&&0===f(a.target).parents(".picker-modal").length&&j.close():0===f(a.target).parents(".picker-modal").length&&j.close())}function i(){j.opened=!1,j.input&&j.input.length>0&&(j.input.parents(".page-content").css({"padding-bottom":""}),d.params.material&&j.input.trigger("blur")),j.params.onClose&&j.params.onClose(j),j.container.find(".picker-items-col").each(function(){j.destroyPickerCol(this)})}var j=this,k={updateValuesOnMomentum:!1,updateValuesOnTouchmove:!0,rotateEffect:!1,momentumRatio:7,freeMode:!1,closeByOutsideClick:!0,scrollToInput:!0,inputReadOnly:!0,convertToPopover:!0,onlyInPopover:!1,toolbar:!0,toolbarCloseText:"Done",toolbarTemplate:'<div class="toolbar"><div class="toolbar-inner"><div class="left"></div><div class="right"><a href="#" class="link close-picker">{{closeText}}</a></div></div></div>'};a=a||{};for(var l in k)void 0===a[l]&&(a[l]=k[l]);j.params=a,j.cols=[],j.initialized=!1,j.inline=!!j.params.container;var m=d.device.ios||navigator.userAgent.toLowerCase().indexOf("safari")>=0&&navigator.userAgent.toLowerCase().indexOf("chrome")<0&&!d.device.android;return j.setValue=function(a,b){var c=0;if(0===j.cols.length)return j.value=a,void j.updateValue(a);for(var d=0;d<j.cols.length;d++)j.cols[d]&&!j.cols[d].divider&&(j.cols[d].setValue(a[c],b),c++)},j.updateValue=function(a){var b,c,d=a||[],e=[];if(0===j.cols.length)for(b=0;b<j.params.cols.length;b++)c=j.params.cols[b],void 0!==c.displayValues&&void 0!==c.values&&void 0!==c.values.indexOf(d[b])?e.push(c.displayValues[c.values.indexOf(d[b])]):e.push(d[b]);else for(b=0;b<j.cols.length;b++)j.cols[b].divider||(d.push(j.cols[b].value),e.push(j.cols[b].displayValue));d.indexOf(void 0)>=0||(j.value=d,j.displayValue=e,j.params.onChange&&j.params.onChange(j,j.value,j.displayValue),j.input&&j.input.length>0&&(f(j.input).val(j.params.formatValue?j.params.formatValue(j,j.value,j.displayValue):j.value.join(" ")),f(j.input).trigger("change")))},j.initPickerCol=function(a,b){function c(){t=f.requestAnimationFrame(function(){n.updateItems(void 0,void 0,0),c()})}function e(a){v||u||(a.preventDefault(),u=!0,w=x="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY,y=(new Date).getTime(),G=!0,A=C=f.getTranslate(n.wrapper[0],"y"))}function g(a){u&&(a.preventDefault(),G=!1,x="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY,v||(f.cancelAnimationFrame(t),v=!0,A=C=f.getTranslate(n.wrapper[0],"y"),n.wrapper.transition(0)),C=A+(x-w),B=void 0,C<r&&(C=r-Math.pow(r-C,.8),B="min"),C>s&&(C=s+Math.pow(C-s,.8),B="max"),n.wrapper.transform("translate3d(0,"+C+"px,0)"),n.updateItems(void 0,C,0,j.params.updateValuesOnTouchmove),E=C-D||C,F=(new Date).getTime(),D=C)}function h(a){if(!u||!v)return void(u=v=!1);u=v=!1,n.wrapper.transition(""),B&&("min"===B?n.wrapper.transform("translate3d(0,"+r+"px,0)"):n.wrapper.transform("translate3d(0,"+s+"px,0)")),z=(new Date).getTime();var b;z-y>300?b=C:(Math.abs(E/(z-F)),b=C+E*j.params.momentumRatio),b=Math.max(Math.min(b,s),r);var d=-Math.floor((b-s)/p);j.params.freeMode||(b=-d*p+s),n.wrapper.transform("translate3d(0,"+parseInt(b,10)+"px,0)"),n.updateItems(d,b,"",!0),j.params.updateValuesOnMomentum&&(c(),n.wrapper.transitionEnd(function(){f.cancelAnimationFrame(t)})),setTimeout(function(){G=!0},100)}function i(a){if(G){f.cancelAnimationFrame(t);var b=f(this).attr("data-picker-value");n.setValue(b)}}var k=f(a),l=k.index(),n=j.cols[l];if(!n.divider){n.container=k,n.wrapper=n.container.find(".picker-items-col-wrapper"),n.items=n.wrapper.find(".picker-item");var o,p,q,r,s;n.replaceValues=function(a,b){n.destroyEvents(),n.values=a,n.displayValues=b;var c=j.columnHTML(n,!0);n.wrapper.html(c),n.items=n.wrapper.find(".picker-item"),n.calcSize(),n.setValue(n.values[0],0,!0),n.initEvents()},n.calcSize=function(){j.params.rotateEffect&&(n.container.removeClass("picker-items-col-absolute"),n.width||n.container.css({width:""}));var a,b;a=0,b=n.container[0].offsetHeight,o=n.wrapper[0].offsetHeight,p=n.items[0].offsetHeight,q=p*n.items.length,r=b/2-q+p/2,s=b/2-p/2,n.width&&(a=n.width,parseInt(a,10)===a&&(a+="px"),n.container.css({width:a})),j.params.rotateEffect&&(n.width||(n.items.each(function(){var b=f(this).children("span");a=Math.max(a,b[0].offsetWidth)}),n.container.css({width:a+2+"px"})),n.container.addClass("picker-items-col-absolute"))},n.calcSize(),n.wrapper.transform("translate3d(0,"+s+"px,0)").transition(0);var t;n.setValue=function(a,b,d){void 0===b&&(b="");var e=n.wrapper.find('.picker-item[data-picker-value="'+a+'"]').index();if(void 0!==e&&-1!==e){var g=-e*p+s;n.wrapper.transition(b),n.wrapper.transform("translate3d(0,"+g+"px,0)"),j.params.updateValuesOnMomentum&&n.activeIndex&&n.activeIndex!==e&&(f.cancelAnimationFrame(t),n.wrapper.transitionEnd(function(){f.cancelAnimationFrame(t)}),c()),n.updateItems(e,g,b,d)}},n.updateItems=function(a,b,c,d){void 0===b&&(b=f.getTranslate(n.wrapper[0],"y")),void 0===a&&(a=-Math.round((b-s)/p)),a<0&&(a=0),a>=n.items.length&&(a=n.items.length-1);var e=n.activeIndex;n.activeIndex=a,n.wrapper.find(".picker-selected").removeClass("picker-selected"),n.items.transition(c);var g=n.items.eq(a).addClass("picker-selected").transform("");j.params.rotateEffect&&(Math.floor((b-s)/p),n.items.each(function(){var a=f(this),c=a.index()*p,d=s-b,e=c-d,g=e/p,h=Math.ceil(n.height/p/2)+1,i=-18*g;i>180&&(i=180),i<-180&&(i=-180),Math.abs(g)>h?a.addClass("picker-item-far"):a.removeClass("picker-item-far"),a.transform("translate3d(0, "+(-b+s)+"px, "+(m?-110:0)+"px) rotateX("+i+"deg)")})),(d||void 0===d)&&(n.value=g.attr("data-picker-value"),n.displayValue=n.displayValues?n.displayValues[a]:n.value,e!==a&&(n.onChange&&n.onChange(j,n.value,n.displayValue),j.updateValue()))},b&&n.updateItems(0,s,0);var u,v,w,x,y,z,A,B,C,D,E,F,G=!0;n.initEvents=function(a){var b=a?"off":"on",c=!!d.support.passiveListener&&{passive:!1,capture:!1};n.container[b](d.touchEvents.start,e,c),n.container[b](d.touchEvents.move,g,c),n.container[b](d.touchEvents.end,h,c),n.items[b]("click",i)},n.destroyEvents=function(){n.initEvents(!0)},n.container[0].f7DestroyPickerCol=function(){n.destroyEvents()},n.initEvents()}},j.destroyPickerCol=function(a){a=f(a),"f7DestroyPickerCol"in a[0]&&a[0].f7DestroyPickerCol()},d.onResize(e),j.columnHTML=function(a,b){var c="",d="";if(a.divider)d+='<div class="picker-items-col picker-items-col-divider '+(a.textAlign?"picker-items-col-"+a.textAlign:"")+" "+(a.cssClass||"")+'">'+a.content+"</div>";else{for(var e=0;e<a.values.length;e++)c+='<div class="picker-item" data-picker-value="'+a.values[e]+'"><span>'+(a.displayValues?a.displayValues[e]:a.values[e])+"</span></div>";d+='<div class="picker-items-col '+(a.textAlign?"picker-items-col-"+a.textAlign:"")+" "+(a.cssClass||"")+'"><div class="picker-items-col-wrapper">'+c+"</div></div>"}return b?c:d},j.layout=function(){var a,b="",c="";j.cols=[];var d="";for(a=0;a<j.params.cols.length;a++){var e=j.params.cols[a];d+=j.columnHTML(j.params.cols[a]),j.cols.push(e)}c="picker-modal picker-columns "+(j.params.cssClass||"")+(j.params.rotateEffect?" picker-3d":""),b='<div class="'+c+'">'+(j.params.toolbar?j.params.toolbarTemplate.replace(/{{closeText}}/g,j.params.toolbarCloseText):"")+'<div class="picker-modal-inner picker-items">'+d+'<div class="picker-center-highlight"></div></div></div>',j.pickerHTML=b},j.params.input&&(j.input=f(j.params.input),j.input.length>0&&(j.params.inputReadOnly&&j.input.prop("readOnly",!0),j.inline||j.input.on("click",g),j.params.inputReadOnly&&j.input.on("focus mousedown",function(a){a.preventDefault()}))),!j.inline&&j.params.closeByOutsideClick&&f("html").on("click",h),j.opened=!1,j.open=function(){var a=b();j.opened||(j.layout(),a?(j.pickerHTML='<div class="popover popover-picker-columns"><div class="popover-inner">'+j.pickerHTML+"</div></div>",j.popover=d.popover(j.pickerHTML,j.params.input,!0),j.container=f(j.popover).find(".picker-modal"),f(j.popover).on("popover:close",function(){i()})):j.inline?(j.container=f(j.pickerHTML),j.container.addClass("picker-modal-inline"),f(j.params.container).append(j.container)):(j.container=f(d.pickerModal(j.pickerHTML)),f(j.container).on("picker:close",function(){i()})),j.container[0].f7Picker=j,j.container.find(".picker-items-col").each(function(){var a=!0;(!j.initialized&&j.params.value||j.initialized&&j.value)&&(a=!1),j.initPickerCol(this,a)}),j.initialized?j.value&&j.setValue(j.value,0):j.value?j.setValue(j.value,0):j.params.value&&j.setValue(j.params.value,0),j.input&&j.input.length>0&&d.params.material&&j.input.trigger("focus")),j.opened=!0,j.initialized=!0,j.params.onOpen&&j.params.onOpen(j)},j.close=function(){if(j.opened&&!j.inline)return c()?void d.closeModal(j.popover):void d.closeModal(j.container)},j.destroy=function(){j.close(),j.params.input&&j.input.length>0&&j.input.off("click focus",g),f("html").off("click",h),d.offResize(e)},j.inline?j.open():!j.initialized&&j.params.value&&j.setValue(j.params.value),j};d.picker=function(a){return new s(a)};var t=function(a){function b(){var a=!1;return j.params.convertToPopover||j.params.onlyInPopover?(!j.inline&&j.params.input&&(j.params.onlyInPopover?a=!0:d.device.ios?a=!!d.device.ipad:d.width>=768&&(a=!0)),a):a}function c(){return!!(j.opened&&j.container&&j.container.length>0&&j.container.parents(".popover").length>0)}function e(a){a=new Date(a);var b=a.getFullYear(),c=a.getMonth(),d=c+1,e=a.getDate(),f=a.getDay();return j.params.dateFormat.replace(/yyyy/g,b).replace(/yy/g,(b+"").substring(2)).replace(/mm/g,d<10?"0"+d:d).replace(/m(\W+)/g,d+"$1").replace(/MM/g,j.params.monthNames[c]).replace(/M(\W+)/g,j.params.monthNamesShort[c]+"$1").replace(/dd/g,e<10?"0"+e:e).replace(/d(\W+)/g,e+"$1").replace(/DD/g,j.params.dayNames[f]).replace(/D(\W+)/g,j.params.dayNamesShort[f]+"$1")}function g(a){if(a.preventDefault(),!j.opened&&(j.open(),j.params.scrollToInput&&!b()&&!d.params.material)){var c=j.input.parents(".page-content");if(0===c.length)return;var e,f=parseInt(c.css("padding-top"),10),g=parseInt(c.css("padding-bottom"),10),h=c[0].offsetHeight-f-j.container.height(),i=c[0].scrollHeight-f-j.container.height(),k=j.input.offset().top-f+j.input[0].offsetHeight;if(k>h){var l=c.scrollTop()+k-h;l+h>i&&(e=l+h-i+g,h===i&&(e=j.container.height()),c.css({"padding-bottom":e+"px"})),c.scrollTop(l,300)}}}function h(a){c()||(j.input&&j.input.length>0?a.target!==j.input[0]&&0===f(a.target).parents(".picker-modal").length&&j.close():0===f(a.target).parents(".picker-modal").length&&j.close())}function i(){j.opened=!1,j.input&&j.input.length>0&&(j.input.parents(".page-content").css({"padding-bottom":""}),d.params.material&&j.input.trigger("blur")),j.params.onClose&&j.params.onClose(j),j.destroyCalendarEvents()}var j=this,k={monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDay:1,weekendDays:[0,6],multiple:!1,rangePicker:!1,dateFormat:"yyyy-mm-dd",direction:"horizontal",minDate:null,maxDate:null,disabled:null,events:null,rangesClasses:null,touchMove:!0,animate:!0,closeOnSelect:!1,monthPicker:!0,monthPickerTemplate:'<div class="picker-calendar-month-picker"><a href="#" class="link icon-only picker-calendar-prev-month"><i class="icon icon-prev"></i></a><span class="current-month-value"></span><a href="#" class="link icon-only picker-calendar-next-month"><i class="icon icon-next"></i></a></div>',yearPicker:!0,yearPickerTemplate:'<div class="picker-calendar-year-picker"><a href="#" class="link icon-only picker-calendar-prev-year"><i class="icon icon-prev"></i></a><span class="current-year-value"></span><a href="#" class="link icon-only picker-calendar-next-year"><i class="icon icon-next"></i></a></div>',weekHeader:!0,closeByOutsideClick:!0,scrollToInput:!0,inputReadOnly:!0,convertToPopover:!0,onlyInPopover:!1,toolbar:!0,toolbarCloseText:"Done",headerPlaceholder:"Select date",header:d.params.material,footer:d.params.material,toolbarTemplate:'<div class="toolbar"><div class="toolbar-inner">{{monthPicker}}{{yearPicker}}</div></div>',headerTemplate:'<div class="picker-header"><div class="picker-calendar-selected-date">{{placeholder}}</div></div>',footerTemplate:'<div class="picker-footer"><a href="#" class="button close-picker">{{closeText}}</a></div>'};a=a||{};for(var l in k)void 0===a[l]&&(a[l]=k[l]);j.params=a,j.initialized=!1,j.inline=!!j.params.container,j.isH="horizontal"===j.params.direction;var m=j.isH&&d.rtl?-1:1;return j.animating=!1,j.addValue=function(a){if(j.params.multiple){j.value||(j.value=[]);for(var b,c=0;c<j.value.length;c++)new Date(a).getTime()===new Date(j.value[c]).getTime()&&(b=c);void 0===b?j.value.push(a):j.value.splice(b,1),j.updateValue()}else j.params.rangePicker?(j.value||(j.value=[]),2!==j.value.length&&0!==j.value.length||(j.value=[]),j.value[0]!==a?j.value.push(a):j.value=[],j.value.sort(function(a,b){return a-b}),j.updateValue()):(j.value=[a],j.updateValue())},j.setValue=function(a){j.value=a,j.updateValue()},j.updateValue=function(a){var b,c;if(j.container&&j.container.length>0){j.wrapper.find(".picker-calendar-day-selected").removeClass("picker-calendar-day-selected");var g;if(j.params.rangePicker&&2===j.value.length)for(b=new Date(j.value[0]).getTime();b<=new Date(j.value[1]).getTime();b+=864e5)g=new Date(b),j.wrapper.find('.picker-calendar-day[data-date="'+g.getFullYear()+"-"+g.getMonth()+"-"+g.getDate()+'"]').addClass("picker-calendar-day-selected");else for(b=0;b<j.value.length;b++)g=new Date(j.value[b]),j.wrapper.find('.picker-calendar-day[data-date="'+g.getFullYear()+"-"+g.getMonth()+"-"+g.getDate()+'"]').addClass("picker-calendar-day-selected")}if(j.params.onChange&&j.params.onChange(j,j.value),j.input&&j.input.length>0||d.params.material&&j.params.header){if(j.params.formatValue)c=j.params.formatValue(j,j.value);else{for(c=[],b=0;b<j.value.length;b++)c.push(e(j.value[b]));c=c.join(j.params.rangePicker?" - ":", ")}d.params.material&&j.params.header&&j.container&&j.container.length>0&&j.container.find(".picker-calendar-selected-date").text(c),j.input&&j.input.length>0&&!a&&(f(j.input).val(c),f(j.input).trigger("change"))}},j.initCalendarEvents=function(){function a(a){h||g||(g=!0,i=n="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,k=n="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY,o=(new Date).getTime(),u=0,x=!0,w=void 0,q=r=j.monthsTranslate)}function b(a){if(g){if(l="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,n="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY,void 0===w&&(w=!!(w||Math.abs(n-k)>Math.abs(l-i))),j.isH&&w)return void(g=!1);if(a.preventDefault(),j.animating)return void(g=!1);x=!1,h||(h=!0,s=j.wrapper[0].offsetWidth,t=j.wrapper[0].offsetHeight,j.wrapper.transition(0)),v=j.isH?l-i:n-k,u=v/(j.isH?s:t),r=100*(j.monthsTranslate*m+u),j.wrapper.transform("translate3d("+(j.isH?r:0)+"%, "+(j.isH?0:r)+"%, 0)")}}function c(a){if(!g||!h)return void(g=h=!1);g=h=!1,p=(new Date).getTime(),p-o<300?Math.abs(v)<10?j.resetMonth():v>=10?d.rtl?j.nextMonth():j.prevMonth():d.rtl?j.prevMonth():j.nextMonth():u<=-.5?d.rtl?j.prevMonth():j.nextMonth():u>=.5?d.rtl?j.nextMonth():j.prevMonth():j.resetMonth(),setTimeout(function(){x=!0},100)}function e(a){if(x){var b=f(a.target).parents(".picker-calendar-day");if(0===b.length&&f(a.target).hasClass("picker-calendar-day")&&(b=f(a.target)),0!==b.length&&!b.hasClass("picker-calendar-day-disabled")){j.params.rangePicker||(b.hasClass("picker-calendar-day-next")&&j.nextMonth(),b.hasClass("picker-calendar-day-prev")&&j.prevMonth());var c=b.attr("data-year"),d=b.attr("data-month"),e=b.attr("data-day");j.params.onDayClick&&j.params.onDayClick(j,b[0],c,d,e),(!b.hasClass("picker-calendar-day-selected")||j.params.multiple||j.params.rangePicker)&&j.addValue(new Date(c,d,e,0,0,0)),j.params.closeOnSelect&&(j.params.rangePicker&&2===j.value.length||!j.params.rangePicker)&&j.close()}}}var g,h,i,k,l,n,o,p,q,r,s,t,u,v,w,x=!0;j.container.find(".picker-calendar-prev-month").on("click",j.prevMonth),j.container.find(".picker-calendar-next-month").on("click",j.nextMonth),j.container.find(".picker-calendar-prev-year").on("click",j.prevYear),j.container.find(".picker-calendar-next-year").on("click",j.nextYear),j.wrapper.on("click",e);var y=!("touchstart"!==d.touchEvents.start||!d.support.passiveListener)&&{passive:!0,capture:!1},z=!!d.support.passiveListener&&{passive:!1,capture:!1};j.params.touchMove&&(j.wrapper.on(d.touchEvents.start,a,y),j.wrapper.on(d.touchEvents.move,b,z),j.wrapper.on(d.touchEvents.end,c,y)),j.container[0].f7DestroyCalendarEvents=function(){j.container.find(".picker-calendar-prev-month").off("click",j.prevMonth),j.container.find(".picker-calendar-next-month").off("click",j.nextMonth),j.container.find(".picker-calendar-prev-year").off("click",j.prevYear),j.container.find(".picker-calendar-next-year").off("click",j.nextYear),j.wrapper.off("click",e),j.params.touchMove&&(j.wrapper.off(d.touchEvents.start,a,y),j.wrapper.off(d.touchEvents.move,b,z),j.wrapper.off(d.touchEvents.end,c,y))}},j.destroyCalendarEvents=function(a){"f7DestroyCalendarEvents"in j.container[0]&&j.container[0].f7DestroyCalendarEvents()},j.dateInRange=function(a,b){var c,d=!1;if(!b)return!1
  ;if(Array.isArray(b))for(c=0;c<b.length;c++)b[c].from||b[c].to?b[c].from&&b[c].to?a<=new Date(b[c].to).getTime()&&a>=new Date(b[c].from).getTime()&&(d=!0):b[c].from?a>=new Date(b[c].from).getTime()&&(d=!0):b[c].to&&a<=new Date(b[c].to).getTime()&&(d=!0):a===new Date(b[c]).getTime()&&(d=!0);else b.from||b.to?b.from&&b.to?a<=new Date(b.to).getTime()&&a>=new Date(b.from).getTime()&&(d=!0):b.from?a>=new Date(b.from).getTime()&&(d=!0):b.to&&a<=new Date(b.to).getTime()&&(d=!0):"function"==typeof b&&(d=b(new Date(a)));return d},j.daysInMonth=function(a){var b=new Date(a);return new Date(b.getFullYear(),b.getMonth()+1,0).getDate()},j.monthHTML=function(a,b){a=new Date(a);var c=a.getFullYear(),d=a.getMonth();a.getDate(),"next"===b&&(a=11===d?new Date(c+1,0):new Date(c,d+1,1)),"prev"===b&&(a=0===d?new Date(c-1,11):new Date(c,d-1,1)),"next"!==b&&"prev"!==b||(d=a.getMonth(),c=a.getFullYear());var e=j.daysInMonth(new Date(a.getFullYear(),a.getMonth()).getTime()-864e6),f=j.daysInMonth(a),g=new Date(a.getFullYear(),a.getMonth()).getDay();0===g&&(g=7);var h,i,k,l,m,n,o=[],p="",q=j.params.firstDay-1+0,r=(new Date).setHours(0,0,0,0),s=j.params.minDate?new Date(j.params.minDate).getTime():null,t=j.params.maxDate?new Date(j.params.maxDate).getTime():null;if(j.value&&j.value.length)for(i=0;i<j.value.length;i++)o.push(new Date(j.value[i]).setHours(0,0,0,0));for(i=1;i<=6;i++){var u="";for(k=1;k<=7;k++){var v=k;q++;var w=q-g,x=v-1+j.params.firstDay>6?v-1-7+j.params.firstDay:v-1+j.params.firstDay,y="";if(w<0?(w=e+w+1,y+=" picker-calendar-day-prev",h=new Date(d-1<0?c-1:c,d-1<0?11:d-1,w).getTime()):(w+=1,w>f?(w-=f,y+=" picker-calendar-day-next",h=new Date(d+1>11?c+1:c,d+1>11?0:d+1,w).getTime()):h=new Date(c,d,w).getTime()),h===r&&(y+=" picker-calendar-day-today"),j.params.rangePicker&&2===o.length?h>=o[0]&&h<=o[1]&&(y+=" picker-calendar-day-selected"):o.indexOf(h)>=0&&(y+=" picker-calendar-day-selected"),j.params.weekendDays.indexOf(x)>=0&&(y+=" picker-calendar-day-weekend"),n=!1,j.params.events&&j.dateInRange(h,j.params.events)&&(n=!0),n&&(y+=" picker-calendar-day-has-events"),j.params.rangesClasses)for(l=0;l<j.params.rangesClasses.length;l++)j.dateInRange(h,j.params.rangesClasses[l].range)&&(y+=" "+j.params.rangesClasses[l].cssClass);m=!1,(s&&h<s||t&&h>t)&&(m=!0),j.params.disabled&&j.dateInRange(h,j.params.disabled)&&(m=!0),m&&(y+=" picker-calendar-day-disabled"),h=new Date(h);var z=h.getFullYear(),A=h.getMonth();u+='<div data-year="'+z+'" data-month="'+A+'" data-day="'+w+'" class="picker-calendar-day'+y+'" data-date="'+z+"-"+A+"-"+w+'"><span>'+w+"</span></div>"}p+='<div class="picker-calendar-row">'+u+"</div>"}return p='<div class="picker-calendar-month" data-year="'+c+'" data-month="'+d+'">'+p+"</div>"},j.animating=!1,j.updateCurrentMonthYear=function(a){void 0===a?(j.currentMonth=parseInt(j.months.eq(1).attr("data-month"),10),j.currentYear=parseInt(j.months.eq(1).attr("data-year"),10)):(j.currentMonth=parseInt(j.months.eq("next"===a?j.months.length-1:0).attr("data-month"),10),j.currentYear=parseInt(j.months.eq("next"===a?j.months.length-1:0).attr("data-year"),10)),j.container.find(".current-month-value").text(j.params.monthNames[j.currentMonth]),j.container.find(".current-year-value").text(j.currentYear)},j.onMonthChangeStart=function(a){j.updateCurrentMonthYear(a),j.months.removeClass("picker-calendar-month-current picker-calendar-month-prev picker-calendar-month-next");var b="next"===a?j.months.length-1:0;j.months.eq(b).addClass("picker-calendar-month-current"),j.months.eq("next"===a?b-1:b+1).addClass("next"===a?"picker-calendar-month-prev":"picker-calendar-month-next"),j.params.onMonthYearChangeStart&&j.params.onMonthYearChangeStart(j,j.currentYear,j.currentMonth)},j.onMonthChangeEnd=function(a,b){j.animating=!1;var c,d,e;j.wrapper.find(".picker-calendar-month:not(.picker-calendar-month-prev):not(.picker-calendar-month-current):not(.picker-calendar-month-next)").remove(),void 0===a&&(a="next",b=!0),b?(j.wrapper.find(".picker-calendar-month-next, .picker-calendar-month-prev").remove(),d=j.monthHTML(new Date(j.currentYear,j.currentMonth),"prev"),c=j.monthHTML(new Date(j.currentYear,j.currentMonth),"next")):e=j.monthHTML(new Date(j.currentYear,j.currentMonth),a),("next"===a||b)&&j.wrapper.append(e||c),("prev"===a||b)&&j.wrapper.prepend(e||d),j.months=j.wrapper.find(".picker-calendar-month"),j.setMonthsTranslate(j.monthsTranslate),j.params.onMonthAdd&&j.params.onMonthAdd(j,"next"===a?j.months.eq(j.months.length-1)[0]:j.months.eq(0)[0]),j.params.onMonthYearChangeEnd&&j.params.onMonthYearChangeEnd(j,j.currentYear,j.currentMonth)},j.setMonthsTranslate=function(a){a=a||j.monthsTranslate||0,void 0===j.monthsTranslate&&(j.monthsTranslate=a),j.months.removeClass("picker-calendar-month-current picker-calendar-month-prev picker-calendar-month-next");var b=100*-(a+1)*m,c=100*-a*m,d=100*-(a-1)*m;j.months.eq(0).transform("translate3d("+(j.isH?b:0)+"%, "+(j.isH?0:b)+"%, 0)").addClass("picker-calendar-month-prev"),j.months.eq(1).transform("translate3d("+(j.isH?c:0)+"%, "+(j.isH?0:c)+"%, 0)").addClass("picker-calendar-month-current"),j.months.eq(2).transform("translate3d("+(j.isH?d:0)+"%, "+(j.isH?0:d)+"%, 0)").addClass("picker-calendar-month-next")},j.nextMonth=function(a){void 0!==a&&"object"!=typeof a||(a="",j.params.animate||(a=0));var b=parseInt(j.months.eq(j.months.length-1).attr("data-month"),10),c=parseInt(j.months.eq(j.months.length-1).attr("data-year"),10),d=new Date(c,b),e=d.getTime(),g=!j.animating;if(j.params.maxDate&&e>new Date(j.params.maxDate).getTime())return j.resetMonth();if(j.monthsTranslate--,b===j.currentMonth){var h=100*-j.monthsTranslate*m,i=f(j.monthHTML(e,"next")).transform("translate3d("+(j.isH?h:0)+"%, "+(j.isH?0:h)+"%, 0)").addClass("picker-calendar-month-next");j.wrapper.append(i[0]),j.months=j.wrapper.find(".picker-calendar-month"),j.params.onMonthAdd&&j.params.onMonthAdd(j,j.months.eq(j.months.length-1)[0])}j.animating=!0,j.onMonthChangeStart("next");var k=100*j.monthsTranslate*m;j.wrapper.transition(a).transform("translate3d("+(j.isH?k:0)+"%, "+(j.isH?0:k)+"%, 0)"),g&&j.wrapper.transitionEnd(function(){j.onMonthChangeEnd("next")}),j.params.animate||j.onMonthChangeEnd("next")},j.prevMonth=function(a){void 0!==a&&"object"!=typeof a||(a="",j.params.animate||(a=0));var b=parseInt(j.months.eq(0).attr("data-month"),10),c=parseInt(j.months.eq(0).attr("data-year"),10),d=new Date(c,b+1,-1),e=d.getTime(),g=!j.animating;if(j.params.minDate&&e<new Date(j.params.minDate).getTime())return j.resetMonth();if(j.monthsTranslate++,b===j.currentMonth){var h=100*-j.monthsTranslate*m,i=f(j.monthHTML(e,"prev")).transform("translate3d("+(j.isH?h:0)+"%, "+(j.isH?0:h)+"%, 0)").addClass("picker-calendar-month-prev");j.wrapper.prepend(i[0]),j.months=j.wrapper.find(".picker-calendar-month"),j.params.onMonthAdd&&j.params.onMonthAdd(j,j.months.eq(0)[0])}j.animating=!0,j.onMonthChangeStart("prev");var k=100*j.monthsTranslate*m;j.wrapper.transition(a).transform("translate3d("+(j.isH?k:0)+"%, "+(j.isH?0:k)+"%, 0)"),g&&j.wrapper.transitionEnd(function(){j.onMonthChangeEnd("prev")}),j.params.animate||j.onMonthChangeEnd("prev")},j.resetMonth=function(a){void 0===a&&(a="");var b=100*j.monthsTranslate*m;j.wrapper.transition(a).transform("translate3d("+(j.isH?b:0)+"%, "+(j.isH?0:b)+"%, 0)")},j.setYearMonth=function(a,b,c){void 0===a&&(a=j.currentYear),void 0===b&&(b=j.currentMonth),void 0!==c&&"object"!=typeof c||(c="",j.params.animate||(c=0));var d;if(d=a<j.currentYear?new Date(a,b+1,-1).getTime():new Date(a,b).getTime(),j.params.maxDate&&d>new Date(j.params.maxDate).getTime())return!1;if(j.params.minDate&&d<new Date(j.params.minDate).getTime())return!1;var e=new Date(j.currentYear,j.currentMonth).getTime(),f=d>e?"next":"prev",g=j.monthHTML(new Date(a,b));j.monthsTranslate=j.monthsTranslate||0;var h,i,k=j.monthsTranslate,l=!j.animating;d>e?(j.monthsTranslate--,j.animating||j.months.eq(j.months.length-1).remove(),j.wrapper.append(g),j.months=j.wrapper.find(".picker-calendar-month"),h=100*-(k-1)*m,j.months.eq(j.months.length-1).transform("translate3d("+(j.isH?h:0)+"%, "+(j.isH?0:h)+"%, 0)").addClass("picker-calendar-month-next")):(j.monthsTranslate++,j.animating||j.months.eq(0).remove(),j.wrapper.prepend(g),j.months=j.wrapper.find(".picker-calendar-month"),h=100*-(k+1)*m,j.months.eq(0).transform("translate3d("+(j.isH?h:0)+"%, "+(j.isH?0:h)+"%, 0)").addClass("picker-calendar-month-prev")),j.params.onMonthAdd&&j.params.onMonthAdd(j,"next"===f?j.months.eq(j.months.length-1)[0]:j.months.eq(0)[0]),j.animating=!0,j.onMonthChangeStart(f),i=100*j.monthsTranslate*m,j.wrapper.transition(c).transform("translate3d("+(j.isH?i:0)+"%, "+(j.isH?0:i)+"%, 0)"),l&&j.wrapper.transitionEnd(function(){j.onMonthChangeEnd(f,!0)}),j.params.animate||j.onMonthChangeEnd(f)},j.nextYear=function(){j.setYearMonth(j.currentYear+1)},j.prevYear=function(){j.setYearMonth(j.currentYear-1)},j.layout=function(){var a,b="",c="",d=j.value&&j.value.length?j.value[0]:(new Date).setHours(0,0,0,0),e=j.monthHTML(d,"prev"),f=j.monthHTML(d),g=j.monthHTML(d,"next"),h='<div class="picker-calendar-months"><div class="picker-calendar-months-wrapper">'+(e+f+g)+"</div></div>",i="";if(j.params.weekHeader){for(a=0;a<7;a++){var k=a+j.params.firstDay>6?a-7+j.params.firstDay:a+j.params.firstDay,l=j.params.dayNamesShort[k];i+='<div class="picker-calendar-week-day '+(j.params.weekendDays.indexOf(k)>=0?"picker-calendar-week-day-weekend":"")+'"> '+l+"</div>"}i='<div class="picker-calendar-week-days">'+i+"</div>"}c="picker-modal picker-calendar"+(j.params.rangePicker?" picker-calendar-range":"")+(j.params.cssClass?" "+j.params.cssClass:"");var m=j.params.toolbar?j.params.toolbarTemplate.replace(/{{closeText}}/g,j.params.toolbarCloseText):"";j.params.toolbar&&(m=j.params.toolbarTemplate.replace(/{{closeText}}/g,j.params.toolbarCloseText).replace(/{{monthPicker}}/g,j.params.monthPicker?j.params.monthPickerTemplate:"").replace(/{{yearPicker}}/g,j.params.yearPicker?j.params.yearPickerTemplate:"")),b='<div class="'+c+'">'+(j.params.header?j.params.headerTemplate.replace(/{{closeText}}/g,j.params.toolbarCloseText).replace(/{{placeholder}}/g,j.params.headerPlaceholder):"")+(j.params.footer?j.params.footerTemplate.replace(/{{closeText}}/g,j.params.toolbarCloseText):"")+m+'<div class="picker-modal-inner">'+i+h+"</div></div>",j.pickerHTML=b},j.params.input&&(j.input=f(j.params.input),j.input.length>0&&(j.params.inputReadOnly&&j.input.prop("readOnly",!0),j.inline||j.input.on("click",g),j.params.inputReadOnly&&j.input.on("focus mousedown",function(a){a.preventDefault()}))),!j.inline&&j.params.closeByOutsideClick&&f("html").on("click",h),j.opened=!1,j.open=function(){var a=b(),c=!1;j.opened||(j.value||j.params.value&&(j.value=j.params.value,c=!0),j.layout(),a?(j.pickerHTML='<div class="popover popover-picker-calendar"><div class="popover-inner">'+j.pickerHTML+"</div></div>",j.popover=d.popover(j.pickerHTML,j.params.input,!0),j.container=f(j.popover).find(".picker-modal"),f(j.popover).on("popover:close",function(){i()})):j.inline?(j.container=f(j.pickerHTML),j.container.addClass("picker-modal-inline"),f(j.params.container).append(j.container)):(j.container=f(d.pickerModal(j.pickerHTML)),f(j.container).on("picker:close",function(){i()})),j.container[0].f7Calendar=j,j.wrapper=j.container.find(".picker-calendar-months-wrapper"),j.months=j.wrapper.find(".picker-calendar-month"),j.updateCurrentMonthYear(),j.monthsTranslate=0,j.setMonthsTranslate(),j.initCalendarEvents(),c?j.updateValue():d.params.material&&j.value&&j.updateValue(!0),j.input&&j.input.length>0&&d.params.material&&j.input.trigger("focus")),j.opened=!0,j.initialized=!0,j.params.onMonthAdd&&j.months.each(function(){j.params.onMonthAdd(j,this)}),j.params.onOpen&&j.params.onOpen(j)},j.close=function(){if(j.opened&&!j.inline)return c()?void d.closeModal(j.popover):void d.closeModal(j.container)},j.destroy=function(){j.close(),j.params.input&&j.input.length>0&&j.input.off("click focus",g),f("html").off("click",h)},j.inline?j.open():!j.initialized&&j.params.value&&j.setValue(j.params.value),j};d.calendar=function(a){return new t(a)};var u;d.addNotification=function(a){if(a){void 0===a.media&&(a.media=d.params.notificationMedia),void 0===a.title&&(a.title=d.params.notificationTitle),void 0===a.subtitle&&(a.subtitle=d.params.notificationSubtitle),void 0===a.closeIcon&&(a.closeIcon=d.params.notificationCloseIcon),void 0===a.hold&&(a.hold=d.params.notificationHold),void 0===a.closeOnClick&&(a.closeOnClick=d.params.notificationCloseOnClick),void 0===a.button&&(a.button=d.params.notificationCloseButtonText&&{text:d.params.notificationCloseButtonText,close:!0}),u||(u=document.createElement("div")),a.material=d.params.material;var b=f(".notifications");0===b.length&&(d.root.append('<div class="notifications list-block'+(a.material?"":" media-list")+'"><ul></ul></div>'),b=f(".notifications"));var c=b.children("ul"),e=d.params.notificationTemplate||'{{#if custom}}<li>{{custom}}</li>{{else}}<li class="notification-item notification-hidden"><div class="item-content">{{#if material}}<div class="item-inner"><div class="item-title">{{js "this.message || this.title || this.subtitle"}}</div>{{#if ../button}}{{#button}}<div class="item-after"><a href="#" class="button {{#if color}}color-{{color}}{{/if}} {{#js_compare "this.close !== false"}}close-notification{{/js_compare}}">{{text}}</a></div>{{/button}}{{/if}}</div>{{else}}{{#if media}}<div class="item-media">{{media}}</div>{{/if}}<div class="item-inner"><div class="item-title-row">{{#if title}}<div class="item-title">{{title}}</div>{{/if}}{{#if closeIcon}}<div class="item-after"><a href="#" class="close-notification"><span></span></a></div>{{/if}}</div>{{#if subtitle}}<div class="item-subtitle">{{subtitle}}</div>{{/if}}{{#if message}}<div class="item-text">{{message}}</div></div>{{/if}}{{/if}}</div></li>{{/if}}';d._compiledTemplates.notification||(d._compiledTemplates.notification=g.compile(e)),u.innerHTML=d._compiledTemplates.notification(a);var h=f(u).children();h.on("click",function(b){var c=!1,e=f(b.target);a.material&&e.hasClass("button")&&a.button&&a.button.onClick&&a.button.onClick.call(e[0],b,h[0]),e.is(".close-notification")||f(b.target).parents(".close-notification").length>0?c=!0:(a.onClick&&a.onClick(b,h[0]),a.closeOnClick&&(c=!0)),c&&d.closeNotification(h[0],b)}),a.onClose&&h.data("f7NotificationOnClose",function(b){a.onClose(h[0],b)}),a.additionalClass&&h.addClass(a.additionalClass),a.hold&&setTimeout(function(){h.length>0&&d.closeNotification(h[0])},a.hold),d.params.material||d.closeNotification(c.children("li.notification-item:last-child")),c.append(h[0]),b.show();var i=h.outerHeight();return a.material?(b.transform("translate3d(0, "+i+"px, 0)"),b.transition(0),h[0].clientLeft,b.transform("translate3d(0, 0, 0)"),b.transition("")):(h.transform("translate3d(0,"+-i+"px,0)"),h.transition(0),h[0].clientLeft,h.transition(""),h.transform("translate3d(0,0px,0)")),b.transform("translate3d(0, 0,0)"),h.removeClass("notification-hidden"),h[0]}},d.closeNotification=function(a,b){if(a=f(a),0!==a.length&&!a.hasClass("notification-item-removing")){var c=f(".notifications"),d=a.outerHeight();a.css("height",d+"px").transition(0).addClass("notification-item-removing"),a[0].clientLeft,a.css({height:"0px",marginBottom:"0px"}).transition(""),a.data("f7NotificationOnClose")&&a.data("f7NotificationOnClose")(b),0===c.find(".notification-item:not(.notification-item-removing)").length&&c.transform(""),a.addClass("notification-hidden").transitionEnd(function(){a.remove(),0===c.find(".notification-item").length&&c.hide()})}},d.initDataTable=function(a){function b(){if(c.length>0&&d.length>0){var b=a.find("tbody .checkbox-cell input:checked").length;a[b>0?"addClass":"removeClass"]("data-table-has-checked"),d.find(".data-table-selected-count").text(b)}}a=f(a);var c=a.find(".data-table-header"),d=a.find(".data-table-header-selected");a.on("change",'.checkbox-cell input[type="checkbox"]',function(c){if(!c.detail||!c.detail._sentByF7DataTable){var d=f(this),e=d[0].checked;d.parents("thead").length>0?a.find("tbody tr")[e?"addClass":"removeClass"]("data-table-row-selected").find("input").prop("checked",e).trigger("change",{_sentByF7DataTable:!0}):(d.parents("tr")[e?"addClass":"removeClass"]("data-table-row-selected"),e?a.find('tbody .checkbox-cell input[type="checkbox"]:checked').length===a.find("tbody tr").length&&a.find('thead .checkbox-cell input[type="checkbox"]').prop("checked",!0).trigger("change",{_sentByF7DataTable:!0}):a.find('thead .checkbox-cell input[type="checkbox"]').prop("checked",!1)),b()}}),b(),a.find("thead .sortable-cell").on("click",function(){var b,c=f(this);c.hasClass("sortable-active")?(b=c.hasClass("sortable-desc")?"desc":"asc",c.removeClass("sortable-desc sortable-asc").addClass("sortable-"+("desc"===b?"asc":"desc"))):(a.find("thead .sortable-active").removeClass("sortable-active"),c.addClass("sortable-active"))}),a.hasClass("data-table-collapsible")&&a.find("tbody td:not(.checkbox-cell)").each(function(){var b=f(this).index(),c=f(this).attr("data-collapsible-title");c||""===c||f(this).attr("data-collapsible-title",a.find("thead th").eq(b).text())})},d.initPageDataTables=function(a){a=f(a);var b=a.find(".data-table-init");0===b.length&&a.hasClass("data-table-init")&&(b=a),b.each(function(){d.initDataTable(this)})},d.initTemplate7Templates=function(){window.Template7&&(Template7.templates=Template7.templates||d.params.templates||{},Template7.data=Template7.data||d.params.template7Data||{},Template7.cache=Template7.cache||{},d.templates=Template7.templates,d.template7Data=Template7.data,d.template7Cache=Template7.cache,d.params.precompileTemplates&&f('script[type="text/template7"]').each(function(){var a=f(this).attr("id");a&&(Template7.templates[a]=Template7.compile(f(this).html()))}))};var v=[];return d.initPlugins=function(){for(var a in d.plugins){var b=d.plugins[a](d,d.params[a]);b&&v.push(b)}},d.pluginHook=function(a){for(var b=0;b<v.length;b++)v[b].hooks&&a in v[b].hooks&&v[b].hooks[a](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},d.pluginPrevent=function(a){for(var b=!1,c=0;c<v.length;c++)v[c].prevents&&a in v[c].prevents&&v[c].prevents[a](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])&&(b=!0);return b},d.pluginProcess=function(a,b){for(var c=b,d=0;d<v.length;d++)v[d].preprocess&&a in v[d].preprocess&&(c=v[d].preprocess[a](b,arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]));return c},d.init=function(){d.initTemplate7Templates&&d.initTemplate7Templates(),d.initPlugins&&d.initPlugins(),d.getDeviceInfo&&d.getDeviceInfo(),d.initResize&&d.initResize(),d.initPanelsBreakpoints&&(d.params.panelLeftBreakpoint||d.params.panelRightBreakpoint)&&d.initPanelsBreakpoints(),d.initFastClicks&&d.params.fastClicks&&d.initFastClicks(),d.initClickEvents&&d.initClickEvents(),f(".page:not(.cached)").each(function(){d.initPageWithCallback(this)}),f(".navbar:not(.cached)").each(function(){d.initNavbarWithCallback(this)}),d.initPushState&&d.params.pushState&&d.initPushState(),d.initSwipeout&&d.params.swipeout&&d.initSwipeout(),d.initSortable&&d.params.sortable&&d.initSortable(),d.initSwipePanels&&(d.params.swipePanel||d.params.swipePanelOnlyClose)&&d.initSwipePanels(),d.params.material&&d.initMaterialWatchInputs&&d.initMaterialWatchInputs(),d.params.material&&f(".tabbar").each(function(a,b){0===f(b).parents(".page").length&&d.initMaterialTabbar(b)}),d.params.onAppInit&&d.params.onAppInit(),d.pluginHook("appInit")},d.params.init&&d.init(),d},Framework7.$=window.Dom7,Framework7.prototype.support=function(){return{touch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch),passiveListener:function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveListener",null,b)}catch(a){}return a}()}}(),Framework7.prototype.device=function(){var a={},b=navigator.userAgent,c=Dom7,d=b.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),e=b.match(/(Android);?[\s\/]+([\d.]+)?/),f=b.match(/(iPad).*OS\s([\d_]+)/),g=b.match(/(iPod)(.*OS\s([\d_]+))?/),h=!f&&b.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(a.ios=a.android=a.windows=a.iphone=a.ipod=a.ipad=a.androidChrome=!1,d&&(a.os="windows",a.osVersion=d[2],a.windows=!0),e&&!d&&(a.os="android",a.osVersion=e[2],a.android=!0,a.androidChrome=b.toLowerCase().indexOf("chrome")>=0),(f||h||g)&&(a.os="ios",a.ios=!0),h&&!g&&(a.osVersion=h[2].replace(/_/g,"."),a.iphone=!0),f&&(a.osVersion=f[2].replace(/_/g,"."),a.ipad=!0),g&&(a.osVersion=g[3]?g[3].replace(/_/g,"."):null,a.iphone=!0),a.ios&&a.osVersion&&b.indexOf("Version/")>=0&&"10"===a.osVersion.split(".")[0]&&(a.osVersion=b.toLowerCase().split("version/")[1].split(" ")[0]),a.webView=(h||f||g)&&b.match(/.*AppleWebKit(?!.*Safari)/i),a.os&&"ios"===a.os){var i=a.osVersion.split(".");a.minimalUi=!a.webView&&(g||h)&&(1*i[0]==7?1*i[1]>=1:1*i[0]>7)&&c('meta[name="viewport"]').length>0&&c('meta[name="viewport"]').attr("content").indexOf("minimal-ui")>=0}var j=c(window).width(),k=c(window).height();a.needsStatusBar=function(){return!(!a.webView||j*k!=screen.width*screen.height)},a.statusBar=a.needsStatusBar();var l=[];if(a.pixelRatio=window.devicePixelRatio||1,l.push("pixel-ratio-"+Math.floor(a.pixelRatio)),a.pixelRatio>=2&&l.push("retina"),a.os&&(l.push(a.os,a.os+"-"+a.osVersion.split(".")[0],a.os+"-"+a.osVersion.replace(/\./g,"-")),"ios"===a.os))for(var m=parseInt(a.osVersion.split(".")[0],10),n=m-1;n>=6;n--)l.push("ios-gt-"+n);return a.statusBar?l.push("with-statusbar-overlay"):c("html").removeClass("with-statusbar-overlay"),l.length>0&&c("html").addClass(l.join(" ")),a}(),Framework7.prototype.plugins={},window.Swiper=function(a,b){function c(a){return Math.floor(a)}function d(){var a=p.params.autoplay,c=p.slides.eq(p.activeIndex);c.attr("data-swiper-autoplay")&&(a=c.attr("data-swiper-autoplay")||p.params.autoplay),p.autoplayTimeoutId=setTimeout(function(){p.params.loop?(p.fixLoop(),p._slideNext(),p.emit("onAutoplay",p)):p.isEnd?b.autoplayStopOnLast?p.stopAutoplay():(p._slideTo(0),p.emit("onAutoplay",p)):(p._slideNext(),p.emit("onAutoplay",p))},a)}function e(a,b){var c=q(a.target);if(!c.is(b))if("string"==typeof b)c=c.parents(b);else if(b.nodeType){var d;return c.parents().each(function(a,c){c===b&&(d=b)}),d?b:void 0}if(0!==c.length)return c[0]}function f(a,b){b=b||{};var c=window.MutationObserver||window.WebkitMutationObserver,d=new c(function(a){a.forEach(function(a){p.onResize(!0),p.emit("onObserverUpdate",p,a)})});d.observe(a,{attributes:void 0===b.attributes||b.attributes,childList:void 0===b.childList||b.childList,characterData:void 0===b.characterData||b.characterData}),p.observers.push(d)}function g(a,b){a=q(a);var c,d,e,f=p.rtl?-1:1;c=a.attr("data-swiper-parallax")||"0",d=a.attr("data-swiper-parallax-x"),e=a.attr("data-swiper-parallax-y"),d||e?(d=d||"0",e=e||"0"):p.isHorizontal()?(d=c,e="0"):(e=c,d="0"),d=d.indexOf("%")>=0?parseInt(d,10)*b*f+"%":d*b*f+"px",e=e.indexOf("%")>=0?parseInt(e,10)*b+"%":e*b+"px",a.transform("translate3d("+d+", "+e+",0px)")}function h(a){return 0!==a.indexOf("on")&&(a=a[0]!==a[0].toUpperCase()?"on"+a[0].toUpperCase()+a.substring(1):"on"+a),a}if(!(this instanceof Swiper))return new Swiper(a,b);var i={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,zoom:!1,zoomMax:3,zoomMin:1,zoomToggle:!0,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,mousewheelEventsTarged:"container",hashnav:!1,hashnavWatchState:!1,history:!1,replaceState:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",normalizeSlideIndex:!0,allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",paginationClickableClass:"swiper-pagination-clickable",paginationModifierClass:"swiper-pagination-",lazyLoadingClass:"swiper-lazy",lazyStatusLoadingClass:"swiper-lazy-loading",lazyStatusLoadedClass:"swiper-lazy-loaded",lazyPreloaderClass:"swiper-lazy-preloader",notificationClass:"swiper-notification",preloaderClass:"preloader",zoomContainerClass:"swiper-zoom-container",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},j=b&&b.virtualTranslate;b=b||{};var k={};for(var l in b)if("object"!=typeof b[l]||null===b[l]||b[l].nodeType||b[l]===window||b[l]===document||"undefined"!=typeof Dom7&&b[l]instanceof Dom7||"undefined"!=typeof jQuery&&b[l]instanceof jQuery)k[l]=b[l];else{k[l]={};for(var m in b[l])k[l][m]=b[l][m]}for(var n in i)if(void 0===b[n])b[n]=i[n];else if("object"==typeof b[n])for(var o in i[n])void 0===b[n][o]&&(b[n][o]=i[n][o]);var p=this;p.params=b,p.originalParams=k,p.classNames=[];var q=q;if(void 0!==q&&"undefined"!=typeof Dom7&&(q=Dom7),(void 0!==q||(q="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7))&&(p.$=q,p.currentBreakpoint=void 0,p.getActiveBreakpoint=function(){if(!p.params.breakpoints)return!1;var a,b=!1,c=[];for(a in p.params.breakpoints)p.params.breakpoints.hasOwnProperty(a)&&c.push(a);c.sort(function(a,b){return parseInt(a,10)>parseInt(b,10)});for(var d=0;d<c.length;d++)(a=c[d])>=window.innerWidth&&!b&&(b=a);return b||"max"},p.setBreakpoint=function(){var a=p.getActiveBreakpoint();if(a&&p.currentBreakpoint!==a){var b=a in p.params.breakpoints?p.params.breakpoints[a]:p.originalParams,c=p.params.loop&&b.slidesPerView!==p.params.slidesPerView;for(var d in b)p.params[d]=b[d];p.currentBreakpoint=a,c&&p.destroyLoop&&p.reLoop(!0)}},p.params.breakpoints&&p.setBreakpoint(),p.container=q(a),0!==p.container.length)){if(p.container.length>1){var r=[];return p.container.each(function(){r.push(new Swiper(this,b))}),r}p.container[0].swiper=p,p.container.data("swiper",p),p.classNames.push(p.params.containerModifierClass+p.params.direction),p.params.freeMode&&p.classNames.push(p.params.containerModifierClass+"free-mode"),p.support.flexbox||(p.classNames.push(p.params.containerModifierClass+"no-flexbox"),p.params.slidesPerColumn=1),p.params.autoHeight&&p.classNames.push(p.params.containerModifierClass+"autoheight"),(p.params.parallax||p.params.watchSlidesVisibility)&&(p.params.watchSlidesProgress=!0),p.params.touchReleaseOnEdges&&(p.params.resistanceRatio=0),["cube","coverflow","flip"].indexOf(p.params.effect)>=0&&(p.support.transforms3d?(p.params.watchSlidesProgress=!0,p.classNames.push(p.params.containerModifierClass+"3d")):p.params.effect="slide"),"slide"!==p.params.effect&&p.classNames.push(p.params.containerModifierClass+p.params.effect),"cube"===p.params.effect&&(p.params.resistanceRatio=0,p.params.slidesPerView=1,p.params.slidesPerColumn=1,p.params.slidesPerGroup=1,p.params.centeredSlides=!1,p.params.spaceBetween=0,p.params.virtualTranslate=!0),"fade"!==p.params.effect&&"flip"!==p.params.effect||(p.params.slidesPerView=1,p.params.slidesPerColumn=1,p.params.slidesPerGroup=1,p.params.watchSlidesProgress=!0,p.params.spaceBetween=0,void 0===j&&(p.params.virtualTranslate=!0)),p.params.grabCursor&&p.support.touch&&(p.params.grabCursor=!1),p.wrapper=p.container.children("."+p.params.wrapperClass),p.params.pagination&&(p.paginationContainer=q(p.params.pagination),p.params.uniqueNavElements&&"string"==typeof p.params.pagination&&p.paginationContainer.length>1&&1===p.container.find(p.params.pagination).length&&(p.paginationContainer=p.container.find(p.params.pagination)),"bullets"===p.params.paginationType&&p.params.paginationClickable?p.paginationContainer.addClass(p.params.paginationModifierClass+"clickable"):p.params.paginationClickable=!1,p.paginationContainer.addClass(p.params.paginationModifierClass+p.params.paginationType)),(p.params.nextButton||p.params.prevButton)&&(p.params.nextButton&&(p.nextButton=q(p.params.nextButton),p.params.uniqueNavElements&&"string"==typeof p.params.nextButton&&p.nextButton.length>1&&1===p.container.find(p.params.nextButton).length&&(p.nextButton=p.container.find(p.params.nextButton))),p.params.prevButton&&(p.prevButton=q(p.params.prevButton),p.params.uniqueNavElements&&"string"==typeof p.params.prevButton&&p.prevButton.length>1&&1===p.container.find(p.params.prevButton).length&&(p.prevButton=p.container.find(p.params.prevButton)))),p.isHorizontal=function(){return"horizontal"===p.params.direction},p.rtl=p.isHorizontal()&&("rtl"===p.container[0].dir.toLowerCase()||"rtl"===p.container.css("direction")),p.rtl&&p.classNames.push(p.params.containerModifierClass+"rtl"),p.rtl&&(p.wrongRTL="-webkit-box"===p.wrapper.css("display")),p.params.slidesPerColumn>1&&p.classNames.push(p.params.containerModifierClass+"multirow"),p.device.android&&p.classNames.push(p.params.containerModifierClass+"android"),p.container.addClass(p.classNames.join(" ")),p.translate=0,p.progress=0,p.velocity=0,p.lockSwipeToNext=function(){p.params.allowSwipeToNext=!1,!1===p.params.allowSwipeToPrev&&p.params.grabCursor&&p.unsetGrabCursor()},p.lockSwipeToPrev=function(){p.params.allowSwipeToPrev=!1,!1===p.params.allowSwipeToNext&&p.params.grabCursor&&p.unsetGrabCursor()},p.lockSwipes=function(){p.params.allowSwipeToNext=p.params.allowSwipeToPrev=!1,p.params.grabCursor&&p.unsetGrabCursor()},p.unlockSwipeToNext=function(){p.params.allowSwipeToNext=!0,!0===p.params.allowSwipeToPrev&&p.params.grabCursor&&p.setGrabCursor()},p.unlockSwipeToPrev=function(){p.params.allowSwipeToPrev=!0,
  !0===p.params.allowSwipeToNext&&p.params.grabCursor&&p.setGrabCursor()},p.unlockSwipes=function(){p.params.allowSwipeToNext=p.params.allowSwipeToPrev=!0,p.params.grabCursor&&p.setGrabCursor()},p.setGrabCursor=function(a){p.container[0].style.cursor="move",p.container[0].style.cursor=a?"-webkit-grabbing":"-webkit-grab",p.container[0].style.cursor=a?"-moz-grabbin":"-moz-grab",p.container[0].style.cursor=a?"grabbing":"grab"},p.unsetGrabCursor=function(){p.container[0].style.cursor=""},p.params.grabCursor&&p.setGrabCursor(),p.imagesToLoad=[],p.imagesLoaded=0,p.loadImage=function(a,b,c,d,e,f){function g(){f&&f()}var h;a.complete&&e?g():b?(h=new window.Image,h.onload=g,h.onerror=g,d&&(h.sizes=d),c&&(h.srcset=c),b&&(h.src=b)):g()},p.preloadImages=function(){function a(){void 0!==p&&null!==p&&p&&(void 0!==p.imagesLoaded&&p.imagesLoaded++,p.imagesLoaded===p.imagesToLoad.length&&(p.params.updateOnImagesReady&&p.update(),p.emit("onImagesReady",p)))}p.imagesToLoad=p.container.find("img");for(var b=0;b<p.imagesToLoad.length;b++)p.loadImage(p.imagesToLoad[b],p.imagesToLoad[b].currentSrc||p.imagesToLoad[b].getAttribute("src"),p.imagesToLoad[b].srcset||p.imagesToLoad[b].getAttribute("srcset"),p.imagesToLoad[b].sizes||p.imagesToLoad[b].getAttribute("sizes"),!0,a)},p.autoplayTimeoutId=void 0,p.autoplaying=!1,p.autoplayPaused=!1,p.startAutoplay=function(){return void 0===p.autoplayTimeoutId&&!!p.params.autoplay&&!p.autoplaying&&(p.autoplaying=!0,p.emit("onAutoplayStart",p),void d())},p.stopAutoplay=function(a){p.autoplayTimeoutId&&(p.autoplayTimeoutId&&clearTimeout(p.autoplayTimeoutId),p.autoplaying=!1,p.autoplayTimeoutId=void 0,p.emit("onAutoplayStop",p))},p.pauseAutoplay=function(a){p.autoplayPaused||(p.autoplayTimeoutId&&clearTimeout(p.autoplayTimeoutId),p.autoplayPaused=!0,0===a?(p.autoplayPaused=!1,d()):p.wrapper.transitionEnd(function(){p&&(p.autoplayPaused=!1,p.autoplaying?d():p.stopAutoplay())}))},p.minTranslate=function(){return-p.snapGrid[0]},p.maxTranslate=function(){return-p.snapGrid[p.snapGrid.length-1]},p.updateAutoHeight=function(){var a,b=[],c=0;if("auto"!==p.params.slidesPerView&&p.params.slidesPerView>1)for(a=0;a<Math.ceil(p.params.slidesPerView);a++){var d=p.activeIndex+a;if(d>p.slides.length)break;b.push(p.slides.eq(d)[0])}else b.push(p.slides.eq(p.activeIndex)[0]);for(a=0;a<b.length;a++)if(void 0!==b[a]){var e=b[a].offsetHeight;c=e>c?e:c}c&&p.wrapper.css("height",c+"px")},p.updateContainerSize=function(){var a,b;a=void 0!==p.params.width?p.params.width:p.container[0].clientWidth,b=void 0!==p.params.height?p.params.height:p.container[0].clientHeight,0===a&&p.isHorizontal()||0===b&&!p.isHorizontal()||(a=a-parseInt(p.container.css("padding-left"),10)-parseInt(p.container.css("padding-right"),10),b=b-parseInt(p.container.css("padding-top"),10)-parseInt(p.container.css("padding-bottom"),10),p.width=a,p.height=b,p.size=p.isHorizontal()?p.width:p.height)},p.updateSlidesSize=function(){p.slides=p.wrapper.children("."+p.params.slideClass),p.snapGrid=[],p.slidesGrid=[],p.slidesSizesGrid=[];var a,b=p.params.spaceBetween,d=-p.params.slidesOffsetBefore,e=0,f=0;if(void 0!==p.size){"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*p.size),p.virtualSize=-b,p.rtl?p.slides.css({marginLeft:"",marginTop:""}):p.slides.css({marginRight:"",marginBottom:""});var g;p.params.slidesPerColumn>1&&(g=Math.floor(p.slides.length/p.params.slidesPerColumn)===p.slides.length/p.params.slidesPerColumn?p.slides.length:Math.ceil(p.slides.length/p.params.slidesPerColumn)*p.params.slidesPerColumn,"auto"!==p.params.slidesPerView&&"row"===p.params.slidesPerColumnFill&&(g=Math.max(g,p.params.slidesPerView*p.params.slidesPerColumn)));var h,i=p.params.slidesPerColumn,j=g/i,k=j-(p.params.slidesPerColumn*j-p.slides.length);for(a=0;a<p.slides.length;a++){h=0;var l=p.slides.eq(a);if(p.params.slidesPerColumn>1){var m,n,o;"column"===p.params.slidesPerColumnFill?(n=Math.floor(a/i),o=a-n*i,(n>k||n===k&&o===i-1)&&++o>=i&&(o=0,n++),m=n+o*g/i,l.css({"-webkit-box-ordinal-group":m,"-moz-box-ordinal-group":m,"-ms-flex-order":m,"-webkit-order":m,order:m})):(o=Math.floor(a/j),n=a-o*j),l.css("margin-"+(p.isHorizontal()?"top":"left"),0!==o&&p.params.spaceBetween&&p.params.spaceBetween+"px").attr("data-swiper-column",n).attr("data-swiper-row",o)}"none"!==l.css("display")&&("auto"===p.params.slidesPerView?(h=p.isHorizontal()?l.outerWidth(!0):l.outerHeight(!0),p.params.roundLengths&&(h=c(h))):(h=(p.size-(p.params.slidesPerView-1)*b)/p.params.slidesPerView,p.params.roundLengths&&(h=c(h)),p.isHorizontal()?p.slides[a].style.width=h+"px":p.slides[a].style.height=h+"px"),p.slides[a].swiperSlideSize=h,p.slidesSizesGrid.push(h),p.params.centeredSlides?(d=d+h/2+e/2+b,0===e&&0!==a&&(d=d-p.size/2-b),0===a&&(d=d-p.size/2-b),Math.abs(d)<.001&&(d=0),f%p.params.slidesPerGroup==0&&p.snapGrid.push(d),p.slidesGrid.push(d)):(f%p.params.slidesPerGroup==0&&p.snapGrid.push(d),p.slidesGrid.push(d),d=d+h+b),p.virtualSize+=h+b,e=h,f++)}p.virtualSize=Math.max(p.virtualSize,p.size)+p.params.slidesOffsetAfter;var q;if(p.rtl&&p.wrongRTL&&("slide"===p.params.effect||"coverflow"===p.params.effect)&&p.wrapper.css({width:p.virtualSize+p.params.spaceBetween+"px"}),p.support.flexbox&&!p.params.setWrapperSize||(p.isHorizontal()?p.wrapper.css({width:p.virtualSize+p.params.spaceBetween+"px"}):p.wrapper.css({height:p.virtualSize+p.params.spaceBetween+"px"})),p.params.slidesPerColumn>1&&(p.virtualSize=(h+p.params.spaceBetween)*g,p.virtualSize=Math.ceil(p.virtualSize/p.params.slidesPerColumn)-p.params.spaceBetween,p.isHorizontal()?p.wrapper.css({width:p.virtualSize+p.params.spaceBetween+"px"}):p.wrapper.css({height:p.virtualSize+p.params.spaceBetween+"px"}),p.params.centeredSlides)){for(q=[],a=0;a<p.snapGrid.length;a++)p.snapGrid[a]<p.virtualSize+p.snapGrid[0]&&q.push(p.snapGrid[a]);p.snapGrid=q}if(!p.params.centeredSlides){for(q=[],a=0;a<p.snapGrid.length;a++)p.snapGrid[a]<=p.virtualSize-p.size&&q.push(p.snapGrid[a]);p.snapGrid=q,Math.floor(p.virtualSize-p.size)-Math.floor(p.snapGrid[p.snapGrid.length-1])>1&&p.snapGrid.push(p.virtualSize-p.size)}0===p.snapGrid.length&&(p.snapGrid=[0]),0!==p.params.spaceBetween&&(p.isHorizontal()?p.rtl?p.slides.css({marginLeft:b+"px"}):p.slides.css({marginRight:b+"px"}):p.slides.css({marginBottom:b+"px"})),p.params.watchSlidesProgress&&p.updateSlidesOffset()}},p.updateSlidesOffset=function(){for(var a=0;a<p.slides.length;a++)p.slides[a].swiperSlideOffset=p.isHorizontal()?p.slides[a].offsetLeft:p.slides[a].offsetTop},p.currentSlidesPerView=function(){var a,b,c=1;if(p.params.centeredSlides){var d,e=p.slides[p.activeIndex].swiperSlideSize;for(a=p.activeIndex+1;a<p.slides.length;a++)p.slides[a]&&!d&&(e+=p.slides[a].swiperSlideSize,c++,e>p.size&&(d=!0));for(b=p.activeIndex-1;b>=0;b--)p.slides[b]&&!d&&(e+=p.slides[b].swiperSlideSize,c++,e>p.size&&(d=!0))}else for(a=p.activeIndex+1;a<p.slides.length;a++)p.slidesGrid[a]-p.slidesGrid[p.activeIndex]<p.size&&c++;return c},p.updateSlidesProgress=function(a){if(void 0===a&&(a=p.translate||0),0!==p.slides.length){void 0===p.slides[0].swiperSlideOffset&&p.updateSlidesOffset();var b=-a;p.rtl&&(b=a),p.slides.removeClass(p.params.slideVisibleClass);for(var c=0;c<p.slides.length;c++){var d=p.slides[c],e=(b+(p.params.centeredSlides?p.minTranslate():0)-d.swiperSlideOffset)/(d.swiperSlideSize+p.params.spaceBetween);if(p.params.watchSlidesVisibility){var f=-(b-d.swiperSlideOffset),g=f+p.slidesSizesGrid[c];(f>=0&&f<p.size||g>0&&g<=p.size||f<=0&&g>=p.size)&&p.slides.eq(c).addClass(p.params.slideVisibleClass)}d.progress=p.rtl?-e:e}}},p.updateProgress=function(a){void 0===a&&(a=p.translate||0);var b=p.maxTranslate()-p.minTranslate(),c=p.isBeginning,d=p.isEnd;0===b?(p.progress=0,p.isBeginning=p.isEnd=!0):(p.progress=(a-p.minTranslate())/b,p.isBeginning=p.progress<=0,p.isEnd=p.progress>=1),p.isBeginning&&!c&&p.emit("onReachBeginning",p),p.isEnd&&!d&&p.emit("onReachEnd",p),p.params.watchSlidesProgress&&p.updateSlidesProgress(a),p.emit("onProgress",p,p.progress)},p.updateActiveIndex=function(){var a,b,c,d=p.rtl?p.translate:-p.translate;for(b=0;b<p.slidesGrid.length;b++)void 0!==p.slidesGrid[b+1]?d>=p.slidesGrid[b]&&d<p.slidesGrid[b+1]-(p.slidesGrid[b+1]-p.slidesGrid[b])/2?a=b:d>=p.slidesGrid[b]&&d<p.slidesGrid[b+1]&&(a=b+1):d>=p.slidesGrid[b]&&(a=b);p.params.normalizeSlideIndex&&(a<0||void 0===a)&&(a=0),c=Math.floor(a/p.params.slidesPerGroup),c>=p.snapGrid.length&&(c=p.snapGrid.length-1),a!==p.activeIndex&&(p.snapIndex=c,p.previousIndex=p.activeIndex,p.activeIndex=a,p.updateClasses(),p.updateRealIndex())},p.updateRealIndex=function(){p.realIndex=parseInt(p.slides.eq(p.activeIndex).attr("data-swiper-slide-index")||p.activeIndex,10)},p.updateClasses=function(){p.slides.removeClass(p.params.slideActiveClass+" "+p.params.slideNextClass+" "+p.params.slidePrevClass+" "+p.params.slideDuplicateActiveClass+" "+p.params.slideDuplicateNextClass+" "+p.params.slideDuplicatePrevClass);var a=p.slides.eq(p.activeIndex);a.addClass(p.params.slideActiveClass),b.loop&&(a.hasClass(p.params.slideDuplicateClass)?p.wrapper.children("."+p.params.slideClass+":not(."+p.params.slideDuplicateClass+')[data-swiper-slide-index="'+p.realIndex+'"]').addClass(p.params.slideDuplicateActiveClass):p.wrapper.children("."+p.params.slideClass+"."+p.params.slideDuplicateClass+'[data-swiper-slide-index="'+p.realIndex+'"]').addClass(p.params.slideDuplicateActiveClass));var c=a.next("."+p.params.slideClass).addClass(p.params.slideNextClass);p.params.loop&&0===c.length&&(c=p.slides.eq(0),c.addClass(p.params.slideNextClass));var d=a.prev("."+p.params.slideClass).addClass(p.params.slidePrevClass);if(p.params.loop&&0===d.length&&(d=p.slides.eq(-1),d.addClass(p.params.slidePrevClass)),b.loop&&(c.hasClass(p.params.slideDuplicateClass)?p.wrapper.children("."+p.params.slideClass+":not(."+p.params.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(p.params.slideDuplicateNextClass):p.wrapper.children("."+p.params.slideClass+"."+p.params.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(p.params.slideDuplicateNextClass),d.hasClass(p.params.slideDuplicateClass)?p.wrapper.children("."+p.params.slideClass+":not(."+p.params.slideDuplicateClass+')[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addClass(p.params.slideDuplicatePrevClass):p.wrapper.children("."+p.params.slideClass+"."+p.params.slideDuplicateClass+'[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addClass(p.params.slideDuplicatePrevClass)),p.paginationContainer&&p.paginationContainer.length>0){var e,f=p.params.loop?Math.ceil((p.slides.length-2*p.loopedSlides)/p.params.slidesPerGroup):p.snapGrid.length;if(p.params.loop?(e=Math.ceil((p.activeIndex-p.loopedSlides)/p.params.slidesPerGroup),e>p.slides.length-1-2*p.loopedSlides&&(e-=p.slides.length-2*p.loopedSlides),e>f-1&&(e-=f),e<0&&"bullets"!==p.params.paginationType&&(e=f+e)):e=void 0!==p.snapIndex?p.snapIndex:p.activeIndex||0,"bullets"===p.params.paginationType&&p.bullets&&p.bullets.length>0&&(p.bullets.removeClass(p.params.bulletActiveClass),p.paginationContainer.length>1?p.bullets.each(function(){q(this).index()===e&&q(this).addClass(p.params.bulletActiveClass)}):p.bullets.eq(e).addClass(p.params.bulletActiveClass)),"fraction"===p.params.paginationType&&(p.paginationContainer.find("."+p.params.paginationCurrentClass).text(e+1),p.paginationContainer.find("."+p.params.paginationTotalClass).text(f)),"progress"===p.params.paginationType){var g=(e+1)/f,h=g,i=1;p.isHorizontal()||(i=g,h=1),p.paginationContainer.find("."+p.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+h+") scaleY("+i+")").transition(p.params.speed)}"custom"===p.params.paginationType&&p.params.paginationCustomRender&&(p.paginationContainer.html(p.params.paginationCustomRender(p,e+1,f)),p.emit("onPaginationRendered",p,p.paginationContainer[0]))}p.params.loop||(p.params.prevButton&&p.prevButton&&p.prevButton.length>0&&(p.isBeginning?(p.prevButton.addClass(p.params.buttonDisabledClass),p.params.a11y&&p.a11y&&p.a11y.disable(p.prevButton)):(p.prevButton.removeClass(p.params.buttonDisabledClass),p.params.a11y&&p.a11y&&p.a11y.enable(p.prevButton))),p.params.nextButton&&p.nextButton&&p.nextButton.length>0&&(p.isEnd?(p.nextButton.addClass(p.params.buttonDisabledClass),p.params.a11y&&p.a11y&&p.a11y.disable(p.nextButton)):(p.nextButton.removeClass(p.params.buttonDisabledClass),p.params.a11y&&p.a11y&&p.a11y.enable(p.nextButton))))},p.updatePagination=function(){if(p.params.pagination&&p.paginationContainer&&p.paginationContainer.length>0){var a="";if("bullets"===p.params.paginationType){for(var b=p.params.loop?Math.ceil((p.slides.length-2*p.loopedSlides)/p.params.slidesPerGroup):p.snapGrid.length,c=0;c<b;c++)p.params.paginationBulletRender?a+=p.params.paginationBulletRender(p,c,p.params.bulletClass):a+="<"+p.params.paginationElement+' class="'+p.params.bulletClass+'"></'+p.params.paginationElement+">";p.paginationContainer.html(a),p.bullets=p.paginationContainer.find("."+p.params.bulletClass),p.params.paginationClickable&&p.params.a11y&&p.a11y&&p.a11y.initPagination()}"fraction"===p.params.paginationType&&(a=p.params.paginationFractionRender?p.params.paginationFractionRender(p,p.params.paginationCurrentClass,p.params.paginationTotalClass):'<span class="'+p.params.paginationCurrentClass+'"></span> / <span class="'+p.params.paginationTotalClass+'"></span>',p.paginationContainer.html(a)),"progress"===p.params.paginationType&&(a=p.params.paginationProgressRender?p.params.paginationProgressRender(p,p.params.paginationProgressbarClass):'<span class="'+p.params.paginationProgressbarClass+'"></span>',p.paginationContainer.html(a)),"custom"!==p.params.paginationType&&p.emit("onPaginationRendered",p,p.paginationContainer[0])}},p.update=function(a){function b(){p.rtl,p.translate,c=Math.min(Math.max(p.translate,p.maxTranslate()),p.minTranslate()),p.setWrapperTranslate(c),p.updateActiveIndex(),p.updateClasses()}if(p){p.updateContainerSize(),p.updateSlidesSize(),p.updateProgress(),p.updatePagination(),p.updateClasses(),p.params.scrollbar&&p.scrollbar&&p.scrollbar.set();var c;a?(p.controller&&p.controller.spline&&(p.controller.spline=void 0),p.params.freeMode?(b(),p.params.autoHeight&&p.updateAutoHeight()):(("auto"===p.params.slidesPerView||p.params.slidesPerView>1)&&p.isEnd&&!p.params.centeredSlides?p.slideTo(p.slides.length-1,0,!1,!0):p.slideTo(p.activeIndex,0,!1,!0))||b()):p.params.autoHeight&&p.updateAutoHeight()}},p.onResize=function(a){p.params.onBeforeResize&&p.params.onBeforeResize(p),p.params.breakpoints&&p.setBreakpoint();var b=p.params.allowSwipeToPrev,c=p.params.allowSwipeToNext;p.params.allowSwipeToPrev=p.params.allowSwipeToNext=!0,p.updateContainerSize(),p.updateSlidesSize(),("auto"===p.params.slidesPerView||p.params.freeMode||a)&&p.updatePagination(),p.params.scrollbar&&p.scrollbar&&p.scrollbar.set(),p.controller&&p.controller.spline&&(p.controller.spline=void 0);var d=!1;if(p.params.freeMode){var e=Math.min(Math.max(p.translate,p.maxTranslate()),p.minTranslate());p.setWrapperTranslate(e),p.updateActiveIndex(),p.updateClasses(),p.params.autoHeight&&p.updateAutoHeight()}else p.updateClasses(),d=("auto"===p.params.slidesPerView||p.params.slidesPerView>1)&&p.isEnd&&!p.params.centeredSlides?p.slideTo(p.slides.length-1,0,!1,!0):p.slideTo(p.activeIndex,0,!1,!0);p.params.lazyLoading&&!d&&p.lazy&&p.lazy.load(),p.params.allowSwipeToPrev=b,p.params.allowSwipeToNext=c,p.params.onAfterResize&&p.params.onAfterResize(p)},p.touchEventsDesktop={start:"mousedown",move:"mousemove",end:"mouseup"},window.navigator.pointerEnabled?p.touchEventsDesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled&&(p.touchEventsDesktop={start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}),p.touchEvents={start:p.support.touch||!p.params.simulateTouch?"touchstart":p.touchEventsDesktop.start,move:p.support.touch||!p.params.simulateTouch?"touchmove":p.touchEventsDesktop.move,end:p.support.touch||!p.params.simulateTouch?"touchend":p.touchEventsDesktop.end},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===p.params.touchEventsTarget?p.container:p.wrapper).addClass("swiper-wp8-"+p.params.direction),p.initEvents=function(a){var c=a?"off":"on",d=a?"removeEventListener":"addEventListener",e="container"===p.params.touchEventsTarget?p.container[0]:p.wrapper[0],f=p.support.touch?e:document,g=!!p.params.nested;if(p.browser.ie)e[d](p.touchEvents.start,p.onTouchStart,!1),f[d](p.touchEvents.move,p.onTouchMove,g),f[d](p.touchEvents.end,p.onTouchEnd,!1);else{if(p.support.touch){var h=!("touchstart"!==p.touchEvents.start||!p.support.passiveListener||!p.params.passiveListeners)&&{passive:!0,capture:!1};e[d](p.touchEvents.start,p.onTouchStart,h),e[d](p.touchEvents.move,p.onTouchMove,g),e[d](p.touchEvents.end,p.onTouchEnd,h)}(b.simulateTouch&&!p.device.ios&&!p.device.android||b.simulateTouch&&!p.support.touch&&p.device.ios)&&(e[d]("mousedown",p.onTouchStart,!1),document[d]("mousemove",p.onTouchMove,g),document[d]("mouseup",p.onTouchEnd,!1))}window[d]("resize",p.onResize),p.params.nextButton&&p.nextButton&&p.nextButton.length>0&&(p.nextButton[c]("click",p.onClickNext),p.params.a11y&&p.a11y&&p.nextButton[c]("keydown",p.a11y.onEnterKey)),p.params.prevButton&&p.prevButton&&p.prevButton.length>0&&(p.prevButton[c]("click",p.onClickPrev),p.params.a11y&&p.a11y&&p.prevButton[c]("keydown",p.a11y.onEnterKey)),p.params.pagination&&p.params.paginationClickable&&(p.paginationContainer[c]("click","."+p.params.bulletClass,p.onClickIndex),p.params.a11y&&p.a11y&&p.paginationContainer[c]("keydown","."+p.params.bulletClass,p.a11y.onEnterKey)),(p.params.preventClicks||p.params.preventClicksPropagation)&&e[d]("click",p.preventClicks,!0)},p.attachEvents=function(){p.initEvents()},p.detachEvents=function(){p.initEvents(!0)},p.allowClick=!0,p.preventClicks=function(a){p.allowClick||(p.params.preventClicks&&a.preventDefault(),p.params.preventClicksPropagation&&p.animating&&(a.stopPropagation(),a.stopImmediatePropagation()))},p.onClickNext=function(a){a.preventDefault(),p.isEnd&&!p.params.loop||p.slideNext()},p.onClickPrev=function(a){a.preventDefault(),p.isBeginning&&!p.params.loop||p.slidePrev()},p.onClickIndex=function(a){a.preventDefault();var b=q(this).index()*p.params.slidesPerGroup;p.params.loop&&(b+=p.loopedSlides),p.slideTo(b)},p.updateClickedSlide=function(a){var b=e(a,"."+p.params.slideClass),c=!1;if(b)for(var d=0;d<p.slides.length;d++)p.slides[d]===b&&(c=!0);if(!b||!c)return p.clickedSlide=void 0,void(p.clickedIndex=void 0);if(p.clickedSlide=b,p.clickedIndex=q(b).index(),p.params.slideToClickedSlide&&void 0!==p.clickedIndex&&p.clickedIndex!==p.activeIndex){var f,g=p.clickedIndex,h="auto"===p.params.slidesPerView?p.currentSlidesPerView():p.params.slidesPerView;if(p.params.loop){if(p.animating)return;f=parseInt(q(p.clickedSlide).attr("data-swiper-slide-index"),10),p.params.centeredSlides?g<p.loopedSlides-h/2||g>p.slides.length-p.loopedSlides+h/2?(p.fixLoop(),g=p.wrapper.children("."+p.params.slideClass+'[data-swiper-slide-index="'+f+'"]:not(.'+p.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){p.slideTo(g)},0)):p.slideTo(g):g>p.slides.length-h?(p.fixLoop(),g=p.wrapper.children("."+p.params.slideClass+'[data-swiper-slide-index="'+f+'"]:not(.'+p.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){p.slideTo(g)},0)):p.slideTo(g)}else p.slideTo(g)}};var s,t,u,v,w,x,y,z,A,B,C="input, select, textarea, button, video",D=Date.now(),E=[];p.animating=!1,p.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var F,G;p.onTouchStart=function(a){if(a.originalEvent&&(a=a.originalEvent),(F="touchstart"===a.type)||!("which"in a)||3!==a.which){if(p.params.noSwiping&&e(a,"."+p.params.noSwipingClass))return void(p.allowClick=!0);if(!p.params.swipeHandler||e(a,p.params.swipeHandler)){var b=p.touches.currentX="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,c=p.touches.currentY="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY;if(!(p.device.ios&&p.params.iOSEdgeSwipeDetection&&b<=p.params.iOSEdgeSwipeThreshold)){if(s=!0,t=!1,u=!0,w=void 0,G=void 0,p.touches.startX=b,p.touches.startY=c,v=Date.now(),p.allowClick=!0,p.updateContainerSize(),p.swipeDirection=void 0,p.params.threshold>0&&(z=!1),"touchstart"!==a.type){var d=!0;q(a.target).is(C)&&(d=!1),document.activeElement&&q(document.activeElement).is(C)&&document.activeElement.blur(),d&&a.preventDefault()}p.emit("onTouchStart",p,a)}}}},p.onTouchMove=function(a){if(a.originalEvent&&(a=a.originalEvent),!F||"mousemove"!==a.type){if(a.preventedByNestedSwiper)return p.touches.startX="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,void(p.touches.startY="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY);if(p.params.onlyExternal)return p.allowClick=!1,void(s&&(p.touches.startX=p.touches.currentX="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,p.touches.startY=p.touches.currentY="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY,v=Date.now()));if(F&&p.params.touchReleaseOnEdges&&!p.params.loop)if(p.isHorizontal()){if(p.touches.currentX<p.touches.startX&&p.translate<=p.maxTranslate()||p.touches.currentX>p.touches.startX&&p.translate>=p.minTranslate())return}else if(p.touches.currentY<p.touches.startY&&p.translate<=p.maxTranslate()||p.touches.currentY>p.touches.startY&&p.translate>=p.minTranslate())return;if(F&&document.activeElement&&a.target===document.activeElement&&q(a.target).is(C))return t=!0,void(p.allowClick=!1);if(u&&p.emit("onTouchMove",p,a),!(a.targetTouches&&a.targetTouches.length>1)){if(p.touches.currentX="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,p.touches.currentY="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY,void 0===w){var c;p.isHorizontal()&&p.touches.currentY===p.touches.startY||!p.isHorizontal()&&p.touches.currentX===p.touches.startX?w=!1:(c=180*Math.atan2(Math.abs(p.touches.currentY-p.touches.startY),Math.abs(p.touches.currentX-p.touches.startX))/Math.PI,w=p.isHorizontal()?c>p.params.touchAngle:90-c>p.params.touchAngle)}if(w&&p.emit("onTouchMoveOpposite",p,a),void 0===G&&(p.touches.currentX===p.touches.startX&&p.touches.currentY===p.touches.startY||(G=!0)),s){if(w)return void(s=!1);if(G){p.allowClick=!1,p.emit("onSliderMove",p,a),a.preventDefault(),p.params.touchMoveStopPropagation&&!p.params.nested&&a.stopPropagation(),t||(b.loop&&p.fixLoop(),y=p.getWrapperTranslate(),p.setWrapperTransition(0),p.animating&&p.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),p.params.autoplay&&p.autoplaying&&(p.params.autoplayDisableOnInteraction?p.stopAutoplay():p.pauseAutoplay()),B=!1,!p.params.grabCursor||!0!==p.params.allowSwipeToNext&&!0!==p.params.allowSwipeToPrev||p.setGrabCursor(!0)),t=!0;var d=p.touches.diff=p.isHorizontal()?p.touches.currentX-p.touches.startX:p.touches.currentY-p.touches.startY;d*=p.params.touchRatio,p.rtl&&(d=-d),p.swipeDirection=d>0?"prev":"next",x=d+y;var e=!0;if(d>0&&x>p.minTranslate()?(e=!1,p.params.resistance&&(x=p.minTranslate()-1+Math.pow(-p.minTranslate()+y+d,p.params.resistanceRatio))):d<0&&x<p.maxTranslate()&&(e=!1,p.params.resistance&&(x=p.maxTranslate()+1-Math.pow(p.maxTranslate()-y-d,p.params.resistanceRatio))),e&&(a.preventedByNestedSwiper=!0),!p.params.allowSwipeToNext&&"next"===p.swipeDirection&&x<y&&(x=y),!p.params.allowSwipeToPrev&&"prev"===p.swipeDirection&&x>y&&(x=y),p.params.threshold>0){if(!(Math.abs(d)>p.params.threshold||z))return void(x=y);if(!z)return z=!0,p.touches.startX=p.touches.currentX,p.touches.startY=p.touches.currentY,x=y,void(p.touches.diff=p.isHorizontal()?p.touches.currentX-p.touches.startX:p.touches.currentY-p.touches.startY)}p.params.followFinger&&((p.params.freeMode||p.params.watchSlidesProgress)&&p.updateActiveIndex(),p.params.freeMode&&(0===E.length&&E.push({position:p.touches[p.isHorizontal()?"startX":"startY"],time:v}),E.push({position:p.touches[p.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),p.updateProgress(x),p.setWrapperTranslate(x))}}}}},p.onTouchEnd=function(a){if(a.originalEvent&&(a=a.originalEvent),u&&p.emit("onTouchEnd",p,a),u=!1,s){p.params.grabCursor&&t&&s&&(!0===p.params.allowSwipeToNext||!0===p.params.allowSwipeToPrev)&&p.setGrabCursor(!1);var b=Date.now(),c=b-v;if(p.allowClick&&(p.updateClickedSlide(a),p.emit("onTap",p,a),c<300&&b-D>300&&(A&&clearTimeout(A),A=setTimeout(function(){p&&(p.params.paginationHide&&p.paginationContainer.length>0&&!q(a.target).hasClass(p.params.bulletClass)&&p.paginationContainer.toggleClass(p.params.paginationHiddenClass),p.emit("onClick",p,a))},300)),c<300&&b-D<300&&(A&&clearTimeout(A),p.emit("onDoubleTap",p,a))),D=Date.now(),setTimeout(function(){p&&(p.allowClick=!0)},0),!s||!t||!p.swipeDirection||0===p.touches.diff||x===y)return void(s=t=!1);s=t=!1;var d;if(d=p.params.followFinger?p.rtl?p.translate:-p.translate:-x,p.params.freeMode){if(d<-p.minTranslate())return void p.slideTo(p.activeIndex);if(d>-p.maxTranslate())return void(p.slides.length<p.snapGrid.length?p.slideTo(p.snapGrid.length-1):p.slideTo(p.slides.length-1));if(p.params.freeModeMomentum){if(E.length>1){var e=E.pop(),f=E.pop(),g=e.position-f.position,h=e.time-f.time;p.velocity=g/h,p.velocity=p.velocity/2,Math.abs(p.velocity)<p.params.freeModeMinimumVelocity&&(p.velocity=0),(h>150||(new window.Date).getTime()-e.time>300)&&(p.velocity=0)}else p.velocity=0;p.velocity=p.velocity*p.params.freeModeMomentumVelocityRatio,E.length=0;var i=1e3*p.params.freeModeMomentumRatio,j=p.velocity*i,k=p.translate+j;p.rtl&&(k=-k);var l,m=!1,n=20*Math.abs(p.velocity)*p.params.freeModeMomentumBounceRatio;if(k<p.maxTranslate())p.params.freeModeMomentumBounce?(k+p.maxTranslate()<-n&&(k=p.maxTranslate()-n),l=p.maxTranslate(),m=!0,B=!0):k=p.maxTranslate();else if(k>p.minTranslate())p.params.freeModeMomentumBounce?(k-p.minTranslate()>n&&(k=p.minTranslate()+n),l=p.minTranslate(),m=!0,B=!0):k=p.minTranslate();else if(p.params.freeModeSticky){var o,r=0;for(r=0;r<p.snapGrid.length;r+=1)if(p.snapGrid[r]>-k){o=r;break}k=Math.abs(p.snapGrid[o]-k)<Math.abs(p.snapGrid[o-1]-k)||"next"===p.swipeDirection?p.snapGrid[o]:p.snapGrid[o-1],p.rtl||(k=-k)}if(0!==p.velocity)i=p.rtl?Math.abs((-k-p.translate)/p.velocity):Math.abs((k-p.translate)/p.velocity);else if(p.params.freeModeSticky)return void p.slideReset();p.params.freeModeMomentumBounce&&m?(p.updateProgress(l),p.setWrapperTransition(i),p.setWrapperTranslate(k),p.onTransitionStart(),p.animating=!0,p.wrapper.transitionEnd(function(){p&&B&&(p.emit("onMomentumBounce",p),p.setWrapperTransition(p.params.speed),p.setWrapperTranslate(l),p.wrapper.transitionEnd(function(){p&&p.onTransitionEnd()}))})):p.velocity?(p.updateProgress(k),p.setWrapperTransition(i),p.setWrapperTranslate(k),p.onTransitionStart(),p.animating||(p.animating=!0,p.wrapper.transitionEnd(function(){p&&p.onTransitionEnd()}))):p.updateProgress(k),p.updateActiveIndex()}return void((!p.params.freeModeMomentum||c>=p.params.longSwipesMs)&&(p.updateProgress(),p.updateActiveIndex()))}var w,z=0,C=p.slidesSizesGrid[0];for(w=0;w<p.slidesGrid.length;w+=p.params.slidesPerGroup)void 0!==p.slidesGrid[w+p.params.slidesPerGroup]?d>=p.slidesGrid[w]&&d<p.slidesGrid[w+p.params.slidesPerGroup]&&(z=w,C=p.slidesGrid[w+p.params.slidesPerGroup]-p.slidesGrid[w]):d>=p.slidesGrid[w]&&(z=w,C=p.slidesGrid[p.slidesGrid.length-1]-p.slidesGrid[p.slidesGrid.length-2]);var F=(d-p.slidesGrid[z])/C;if(c>p.params.longSwipesMs){if(!p.params.longSwipes)return void p.slideTo(p.activeIndex);"next"===p.swipeDirection&&(F>=p.params.longSwipesRatio?p.slideTo(z+p.params.slidesPerGroup):p.slideTo(z)),"prev"===p.swipeDirection&&(F>1-p.params.longSwipesRatio?p.slideTo(z+p.params.slidesPerGroup):p.slideTo(z))}else{if(!p.params.shortSwipes)return void p.slideTo(p.activeIndex);"next"===p.swipeDirection&&p.slideTo(z+p.params.slidesPerGroup),"prev"===p.swipeDirection&&p.slideTo(z)}}},p._slideTo=function(a,b){return p.slideTo(a,b,!0,!0)},p.slideTo=function(a,b,c,d){void 0===c&&(c=!0),void 0===a&&(a=0),a<0&&(a=0),p.snapIndex=Math.floor(a/p.params.slidesPerGroup),p.snapIndex>=p.snapGrid.length&&(p.snapIndex=p.snapGrid.length-1);var e=-p.snapGrid[p.snapIndex];if(p.params.autoplay&&p.autoplaying&&(d||!p.params.autoplayDisableOnInteraction?p.pauseAutoplay(b):p.stopAutoplay()),p.updateProgress(e),p.params.normalizeSlideIndex)for(var f=0;f<p.slidesGrid.length;f++)-Math.floor(100*e)>=Math.floor(100*p.slidesGrid[f])&&(a=f);return!(!p.params.allowSwipeToNext&&e<p.translate&&e<p.minTranslate()||!p.params.allowSwipeToPrev&&e>p.translate&&e>p.maxTranslate()&&(p.activeIndex||0)!==a||(void 0===b&&(b=p.params.speed),p.previousIndex=p.activeIndex||0,p.activeIndex=a,p.updateRealIndex(),p.rtl&&-e===p.translate||!p.rtl&&e===p.translate?(p.params.autoHeight&&p.updateAutoHeight(),p.updateClasses(),"slide"!==p.params.effect&&p.setWrapperTranslate(e),1):(p.updateClasses(),p.onTransitionStart(c),0===b||p.browser.lteIE9?(p.setWrapperTranslate(e),p.setWrapperTransition(0),p.onTransitionEnd(c)):(p.setWrapperTranslate(e),p.setWrapperTransition(b),p.animating||(p.animating=!0,p.wrapper.transitionEnd(function(){p&&p.onTransitionEnd(c)}))),0)))},p.onTransitionStart=function(a){void 0===a&&(a=!0),p.params.autoHeight&&p.updateAutoHeight(),p.lazy&&p.lazy.onTransitionStart(),a&&(p.emit("onTransitionStart",p),p.activeIndex!==p.previousIndex&&(p.emit("onSlideChangeStart",p),p.activeIndex>p.previousIndex?p.emit("onSlideNextStart",p):p.emit("onSlidePrevStart",p)))},p.onTransitionEnd=function(a){p.animating=!1,p.setWrapperTransition(0),void 0===a&&(a=!0),p.lazy&&p.lazy.onTransitionEnd(),a&&(p.emit("onTransitionEnd",p),p.activeIndex!==p.previousIndex&&(p.emit("onSlideChangeEnd",p),p.activeIndex>p.previousIndex?p.emit("onSlideNextEnd",p):p.emit("onSlidePrevEnd",p))),p.params.history&&p.history&&p.history.setHistory(p.params.history,p.activeIndex),p.params.hashnav&&p.hashnav&&p.hashnav.setHash()},p.slideNext=function(a,b,c){return p.params.loop?!p.animating&&(p.fixLoop(),p.container[0].clientLeft,p.slideTo(p.activeIndex+p.params.slidesPerGroup,b,a,c)):p.slideTo(p.activeIndex+p.params.slidesPerGroup,b,a,c)},p._slideNext=function(a){return p.slideNext(!0,a,!0)},p.slidePrev=function(a,b,c){return p.params.loop?!p.animating&&(p.fixLoop(),p.container[0].clientLeft,p.slideTo(p.activeIndex-1,b,a,c)):p.slideTo(p.activeIndex-1,b,a,c)},p._slidePrev=function(a){return p.slidePrev(!0,a,!0)},p.slideReset=function(a,b,c){return p.slideTo(p.activeIndex,b,a)},p.disableTouchControl=function(){return p.params.onlyExternal=!0,!0},p.enableTouchControl=function(){return p.params.onlyExternal=!1,!0},p.setWrapperTransition=function(a,b){p.wrapper.transition(a),"slide"!==p.params.effect&&p.effects[p.params.effect]&&p.effects[p.params.effect].setTransition(a),p.params.parallax&&p.parallax&&p.parallax.setTransition(a),p.params.scrollbar&&p.scrollbar&&p.scrollbar.setTransition(a),p.params.control&&p.controller&&p.controller.setTransition(a,b),p.emit("onSetTransition",p,a)},p.setWrapperTranslate=function(a,b,d){var e=0,f=0;p.isHorizontal()?e=p.rtl?-a:a:f=a,p.params.roundLengths&&(e=c(e),f=c(f)),p.params.virtualTranslate||(p.support.transforms3d?p.wrapper.transform("translate3d("+e+"px, "+f+"px, 0px)"):p.wrapper.transform("translate("+e+"px, "+f+"px)")),p.translate=p.isHorizontal()?e:f;var g,h=p.maxTranslate()-p.minTranslate();g=0===h?0:(a-p.minTranslate())/h,g!==p.progress&&p.updateProgress(a),b&&p.updateActiveIndex(),"slide"!==p.params.effect&&p.effects[p.params.effect]&&p.effects[p.params.effect].setTranslate(p.translate),p.params.parallax&&p.parallax&&p.parallax.setTranslate(p.translate),p.params.scrollbar&&p.scrollbar&&p.scrollbar.setTranslate(p.translate),p.params.control&&p.controller&&p.controller.setTranslate(p.translate,d),p.emit("onSetTranslate",p,p.translate)},p.getTranslate=function(a,b){var c,d,e,f;return void 0===b&&(b="x"),p.params.virtualTranslate?p.rtl?-p.translate:p.translate:(e=window.getComputedStyle(a,null),
  window.WebKitCSSMatrix?(d=e.transform||e.webkitTransform,d.split(",").length>6&&(d=d.split(", ").map(function(a){return a.replace(",",".")}).join(", ")),f=new window.WebKitCSSMatrix("none"===d?"":d)):(f=e.MozTransform||e.OTransform||e.MsTransform||e.msTransform||e.transform||e.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),c=f.toString().split(",")),"x"===b&&(d=window.WebKitCSSMatrix?f.m41:16===c.length?parseFloat(c[12]):parseFloat(c[4])),"y"===b&&(d=window.WebKitCSSMatrix?f.m42:16===c.length?parseFloat(c[13]):parseFloat(c[5])),p.rtl&&d&&(d=-d),d||0)},p.getWrapperTranslate=function(a){return void 0===a&&(a=p.isHorizontal()?"x":"y"),p.getTranslate(p.wrapper[0],a)},p.observers=[],p.initObservers=function(){if(p.params.observeParents)for(var a=p.container.parents(),b=0;b<a.length;b++)f(a[b]);f(p.container[0],{childList:!1}),f(p.wrapper[0],{attributes:!1})},p.disconnectObservers=function(){for(var a=0;a<p.observers.length;a++)p.observers[a].disconnect();p.observers=[]},p.createLoop=function(){p.wrapper.children("."+p.params.slideClass+"."+p.params.slideDuplicateClass).remove();var a=p.wrapper.children("."+p.params.slideClass);"auto"!==p.params.slidesPerView||p.params.loopedSlides||(p.params.loopedSlides=a.length),p.loopedSlides=parseInt(p.params.loopedSlides||p.params.slidesPerView,10),p.loopedSlides=p.loopedSlides+p.params.loopAdditionalSlides,p.loopedSlides>a.length&&(p.loopedSlides=a.length);var b,c=[],d=[];for(a.each(function(b,e){var f=q(this);b<p.loopedSlides&&d.push(e),b<a.length&&b>=a.length-p.loopedSlides&&c.push(e),f.attr("data-swiper-slide-index",b)}),b=0;b<d.length;b++)p.wrapper.append(q(d[b].cloneNode(!0)).addClass(p.params.slideDuplicateClass));for(b=c.length-1;b>=0;b--)p.wrapper.prepend(q(c[b].cloneNode(!0)).addClass(p.params.slideDuplicateClass))},p.destroyLoop=function(){p.wrapper.children("."+p.params.slideClass+"."+p.params.slideDuplicateClass).remove(),p.slides.removeAttr("data-swiper-slide-index")},p.reLoop=function(a){var b=p.activeIndex-p.loopedSlides;p.destroyLoop(),p.createLoop(),p.updateSlidesSize(),a&&p.slideTo(b+p.loopedSlides,0,!1)},p.fixLoop=function(){var a;p.activeIndex<p.loopedSlides?(a=p.slides.length-3*p.loopedSlides+p.activeIndex,a+=p.loopedSlides,p.slideTo(a,0,!1,!0)):("auto"===p.params.slidesPerView&&p.activeIndex>=2*p.loopedSlides||p.activeIndex>p.slides.length-2*p.params.slidesPerView)&&(a=-p.slides.length+p.activeIndex+p.loopedSlides,a+=p.loopedSlides,p.slideTo(a,0,!1,!0))},p.appendSlide=function(a){if(p.params.loop&&p.destroyLoop(),"object"==typeof a&&a.length)for(var b=0;b<a.length;b++)a[b]&&p.wrapper.append(a[b]);else p.wrapper.append(a);p.params.loop&&p.createLoop(),p.params.observer&&p.support.observer||p.update(!0)},p.prependSlide=function(a){p.params.loop&&p.destroyLoop();var b=p.activeIndex+1;if("object"==typeof a&&a.length){for(var c=0;c<a.length;c++)a[c]&&p.wrapper.prepend(a[c]);b=p.activeIndex+a.length}else p.wrapper.prepend(a);p.params.loop&&p.createLoop(),p.params.observer&&p.support.observer||p.update(!0),p.slideTo(b,0,!1)},p.removeSlide=function(a){p.params.loop&&(p.destroyLoop(),p.slides=p.wrapper.children("."+p.params.slideClass));var b,c=p.activeIndex;if("object"==typeof a&&a.length){for(var d=0;d<a.length;d++)b=a[d],p.slides[b]&&p.slides.eq(b).remove(),b<c&&c--;c=Math.max(c,0)}else b=a,p.slides[b]&&p.slides.eq(b).remove(),b<c&&c--,c=Math.max(c,0);p.params.loop&&p.createLoop(),p.params.observer&&p.support.observer||p.update(!0),p.params.loop?p.slideTo(c+p.loopedSlides,0,!1):p.slideTo(c,0,!1)},p.removeAllSlides=function(){for(var a=[],b=0;b<p.slides.length;b++)a.push(b);p.removeSlide(a)},p.effects={fade:{setTranslate:function(){for(var a=0;a<p.slides.length;a++){var b=p.slides.eq(a),c=b[0].swiperSlideOffset,d=-c;p.params.virtualTranslate||(d-=p.translate);var e=0;p.isHorizontal()||(e=d,d=0);var f=p.params.fade.crossFade?Math.max(1-Math.abs(b[0].progress),0):1+Math.min(Math.max(b[0].progress,-1),0);b.css({opacity:f}).transform("translate3d("+d+"px, "+e+"px, 0px)")}},setTransition:function(a){if(p.slides.transition(a),p.params.virtualTranslate&&0!==a){var b=!1;p.slides.transitionEnd(function(){if(!b&&p){b=!0,p.animating=!1;for(var a=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],c=0;c<a.length;c++)p.wrapper.trigger(a[c])}})}}},flip:{setTranslate:function(){for(var a=0;a<p.slides.length;a++){var b=p.slides.eq(a),c=b[0].progress;p.params.flip.limitRotation&&(c=Math.max(Math.min(b[0].progress,1),-1));var d=b[0].swiperSlideOffset,e=-180*c,f=e,g=0,h=-d,i=0;if(p.isHorizontal()?p.rtl&&(f=-f):(i=h,h=0,g=-f,f=0),b[0].style.zIndex=-Math.abs(Math.round(c))+p.slides.length,p.params.flip.slideShadows){var j=p.isHorizontal()?b.find(".swiper-slide-shadow-left"):b.find(".swiper-slide-shadow-top"),k=p.isHorizontal()?b.find(".swiper-slide-shadow-right"):b.find(".swiper-slide-shadow-bottom");0===j.length&&(j=q('<div class="swiper-slide-shadow-'+(p.isHorizontal()?"left":"top")+'"></div>'),b.append(j)),0===k.length&&(k=q('<div class="swiper-slide-shadow-'+(p.isHorizontal()?"right":"bottom")+'"></div>'),b.append(k)),j.length&&(j[0].style.opacity=Math.max(-c,0)),k.length&&(k[0].style.opacity=Math.max(c,0))}b.transform("translate3d("+h+"px, "+i+"px, 0px) rotateX("+g+"deg) rotateY("+f+"deg)")}},setTransition:function(a){if(p.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a),p.params.virtualTranslate&&0!==a){var b=!1;p.slides.eq(p.activeIndex).transitionEnd(function(){if(!b&&p&&q(this).hasClass(p.params.slideActiveClass)){b=!0,p.animating=!1;for(var a=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],c=0;c<a.length;c++)p.wrapper.trigger(a[c])}})}}},cube:{setTranslate:function(){var a,b=0;p.params.cube.shadow&&(p.isHorizontal()?(a=p.wrapper.find(".swiper-cube-shadow"),0===a.length&&(a=q('<div class="swiper-cube-shadow"></div>'),p.wrapper.append(a)),a.css({height:p.width+"px"})):(a=p.container.find(".swiper-cube-shadow"),0===a.length&&(a=q('<div class="swiper-cube-shadow"></div>'),p.container.append(a))));for(var c=0;c<p.slides.length;c++){var d=p.slides.eq(c),e=90*c,f=Math.floor(e/360);p.rtl&&(e=-e,f=Math.floor(-e/360));var g=Math.max(Math.min(d[0].progress,1),-1),h=0,i=0,j=0;c%4==0?(h=4*-f*p.size,j=0):(c-1)%4==0?(h=0,j=4*-f*p.size):(c-2)%4==0?(h=p.size+4*f*p.size,j=p.size):(c-3)%4==0&&(h=-p.size,j=3*p.size+4*p.size*f),p.rtl&&(h=-h),p.isHorizontal()||(i=h,h=0);var k="rotateX("+(p.isHorizontal()?0:-e)+"deg) rotateY("+(p.isHorizontal()?e:0)+"deg) translate3d("+h+"px, "+i+"px, "+j+"px)";if(g<=1&&g>-1&&(b=90*c+90*g,p.rtl&&(b=90*-c-90*g)),d.transform(k),p.params.cube.slideShadows){var l=p.isHorizontal()?d.find(".swiper-slide-shadow-left"):d.find(".swiper-slide-shadow-top"),m=p.isHorizontal()?d.find(".swiper-slide-shadow-right"):d.find(".swiper-slide-shadow-bottom");0===l.length&&(l=q('<div class="swiper-slide-shadow-'+(p.isHorizontal()?"left":"top")+'"></div>'),d.append(l)),0===m.length&&(m=q('<div class="swiper-slide-shadow-'+(p.isHorizontal()?"right":"bottom")+'"></div>'),d.append(m)),l.length&&(l[0].style.opacity=Math.max(-g,0)),m.length&&(m[0].style.opacity=Math.max(g,0))}}if(p.wrapper.css({"-webkit-transform-origin":"50% 50% -"+p.size/2+"px","-moz-transform-origin":"50% 50% -"+p.size/2+"px","-ms-transform-origin":"50% 50% -"+p.size/2+"px","transform-origin":"50% 50% -"+p.size/2+"px"}),p.params.cube.shadow)if(p.isHorizontal())a.transform("translate3d(0px, "+(p.width/2+p.params.cube.shadowOffset)+"px, "+-p.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+p.params.cube.shadowScale+")");else{var n=Math.abs(b)-90*Math.floor(Math.abs(b)/90),o=1.5-(Math.sin(2*n*Math.PI/360)/2+Math.cos(2*n*Math.PI/360)/2),r=p.params.cube.shadowScale,s=p.params.cube.shadowScale/o,t=p.params.cube.shadowOffset;a.transform("scale3d("+r+", 1, "+s+") translate3d(0px, "+(p.height/2+t)+"px, "+-p.height/2/s+"px) rotateX(-90deg)")}var u=p.isSafari||p.isUiWebView?-p.size/2:0;p.wrapper.transform("translate3d(0px,0,"+u+"px) rotateX("+(p.isHorizontal()?0:b)+"deg) rotateY("+(p.isHorizontal()?-b:0)+"deg)")},setTransition:function(a){p.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a),p.params.cube.shadow&&!p.isHorizontal()&&p.container.find(".swiper-cube-shadow").transition(a)}},coverflow:{setTranslate:function(){for(var a=p.translate,b=p.isHorizontal()?-a+p.width/2:-a+p.height/2,c=p.isHorizontal()?p.params.coverflow.rotate:-p.params.coverflow.rotate,d=p.params.coverflow.depth,e=0,f=p.slides.length;e<f;e++){var g=p.slides.eq(e),h=p.slidesSizesGrid[e],i=g[0].swiperSlideOffset,j=(b-i-h/2)/h*p.params.coverflow.modifier,k=p.isHorizontal()?c*j:0,l=p.isHorizontal()?0:c*j,m=-d*Math.abs(j),n=p.isHorizontal()?0:p.params.coverflow.stretch*j,o=p.isHorizontal()?p.params.coverflow.stretch*j:0;Math.abs(o)<.001&&(o=0),Math.abs(n)<.001&&(n=0),Math.abs(m)<.001&&(m=0),Math.abs(k)<.001&&(k=0),Math.abs(l)<.001&&(l=0);var r="translate3d("+o+"px,"+n+"px,"+m+"px)  rotateX("+l+"deg) rotateY("+k+"deg)";if(g.transform(r),g[0].style.zIndex=1-Math.abs(Math.round(j)),p.params.coverflow.slideShadows){var s=p.isHorizontal()?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),t=p.isHorizontal()?g.find(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom");0===s.length&&(s=q('<div class="swiper-slide-shadow-'+(p.isHorizontal()?"left":"top")+'"></div>'),g.append(s)),0===t.length&&(t=q('<div class="swiper-slide-shadow-'+(p.isHorizontal()?"right":"bottom")+'"></div>'),g.append(t)),s.length&&(s[0].style.opacity=j>0?j:0),t.length&&(t[0].style.opacity=-j>0?-j:0)}}p.browser.ie&&(p.wrapper[0].style.perspectiveOrigin=b+"px 50%")},setTransition:function(a){p.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a)}}},p.lazy={initialImageLoaded:!1,loadImageInSlide:function(a,b){if(void 0!==a&&(void 0===b&&(b=!0),0!==p.slides.length)){var c=p.slides.eq(a),d=c.find("."+p.params.lazyLoadingClass+":not(."+p.params.lazyStatusLoadedClass+"):not(."+p.params.lazyStatusLoadingClass+")");!c.hasClass(p.params.lazyLoadingClass)||c.hasClass(p.params.lazyStatusLoadedClass)||c.hasClass(p.params.lazyStatusLoadingClass)||(d=d.add(c[0])),0!==d.length&&d.each(function(){var a=q(this);a.addClass(p.params.lazyStatusLoadingClass);var d=a.attr("data-background"),e=a.attr("data-src"),f=a.attr("data-srcset"),g=a.attr("data-sizes");p.loadImage(a[0],e||d,f,g,!1,function(){if(void 0!==p&&null!==p&&p){if(d?(a.css("background-image",'url("'+d+'")'),a.removeAttr("data-background")):(f&&(a.attr("srcset",f),a.removeAttr("data-srcset")),g&&(a.attr("sizes",g),a.removeAttr("data-sizes")),e&&(a.attr("src",e),a.removeAttr("data-src"))),a.addClass(p.params.lazyStatusLoadedClass).removeClass(p.params.lazyStatusLoadingClass),c.find("."+p.params.lazyPreloaderClass+", ."+p.params.preloaderClass).remove(),p.params.loop&&b){var h=c.attr("data-swiper-slide-index");if(c.hasClass(p.params.slideDuplicateClass)){var i=p.wrapper.children('[data-swiper-slide-index="'+h+'"]:not(.'+p.params.slideDuplicateClass+")");p.lazy.loadImageInSlide(i.index(),!1)}else{var j=p.wrapper.children("."+p.params.slideDuplicateClass+'[data-swiper-slide-index="'+h+'"]');p.lazy.loadImageInSlide(j.index(),!1)}}p.emit("onLazyImageReady",p,c[0],a[0])}}),p.emit("onLazyImageLoad",p,c[0],a[0])})}},load:function(){var a,b=p.params.slidesPerView;if("auto"===b&&(b=0),p.lazy.initialImageLoaded||(p.lazy.initialImageLoaded=!0),p.params.watchSlidesVisibility)p.wrapper.children("."+p.params.slideVisibleClass).each(function(){p.lazy.loadImageInSlide(q(this).index())});else if(b>1)for(a=p.activeIndex;a<p.activeIndex+b;a++)p.slides[a]&&p.lazy.loadImageInSlide(a);else p.lazy.loadImageInSlide(p.activeIndex);if(p.params.lazyLoadingInPrevNext)if(b>1||p.params.lazyLoadingInPrevNextAmount&&p.params.lazyLoadingInPrevNextAmount>1){var c=p.params.lazyLoadingInPrevNextAmount,d=b,e=Math.min(p.activeIndex+d+Math.max(c,d),p.slides.length),f=Math.max(p.activeIndex-Math.max(d,c),0);for(a=p.activeIndex+b;a<e;a++)p.slides[a]&&p.lazy.loadImageInSlide(a);for(a=f;a<p.activeIndex;a++)p.slides[a]&&p.lazy.loadImageInSlide(a)}else{var g=p.wrapper.children("."+p.params.slideNextClass);g.length>0&&p.lazy.loadImageInSlide(g.index());var h=p.wrapper.children("."+p.params.slidePrevClass);h.length>0&&p.lazy.loadImageInSlide(h.index())}},onTransitionStart:function(){p.params.lazyLoading&&(p.params.lazyLoadingOnTransitionStart||!p.params.lazyLoadingOnTransitionStart&&!p.lazy.initialImageLoaded)&&p.lazy.load()},onTransitionEnd:function(){p.params.lazyLoading&&!p.params.lazyLoadingOnTransitionStart&&p.lazy.load()}},p.scrollbar={isTouched:!1,setDragPosition:function(a){var b=p.scrollbar,c=p.isHorizontal()?"touchstart"===a.type||"touchmove"===a.type?a.targetTouches[0].pageX:a.pageX||a.clientX:"touchstart"===a.type||"touchmove"===a.type?a.targetTouches[0].pageY:a.pageY||a.clientY,d=c-b.track.offset()[p.isHorizontal()?"left":"top"]-b.dragSize/2,e=-p.minTranslate()*b.moveDivider,f=-p.maxTranslate()*b.moveDivider;d<e?d=e:d>f&&(d=f),d=-d/b.moveDivider,p.updateProgress(d),p.setWrapperTranslate(d,!0)},dragStart:function(a){var b=p.scrollbar;b.isTouched=!0,a.preventDefault(),a.stopPropagation(),b.setDragPosition(a),clearTimeout(b.dragTimeout),b.track.transition(0),p.params.scrollbarHide&&b.track.css("opacity",1),p.wrapper.transition(100),b.drag.transition(100),p.emit("onScrollbarDragStart",p)},dragMove:function(a){var b=p.scrollbar;b.isTouched&&(a.preventDefault?a.preventDefault():a.returnValue=!1,b.setDragPosition(a),p.wrapper.transition(0),b.track.transition(0),b.drag.transition(0),p.emit("onScrollbarDragMove",p))},dragEnd:function(a){var b=p.scrollbar;b.isTouched&&(b.isTouched=!1,p.params.scrollbarHide&&(clearTimeout(b.dragTimeout),b.dragTimeout=setTimeout(function(){b.track.css("opacity",0),b.track.transition(400)},1e3)),p.emit("onScrollbarDragEnd",p),p.params.scrollbarSnapOnRelease&&p.slideReset())},draggableEvents:function(){return!1!==p.params.simulateTouch||p.support.touch?p.touchEvents:p.touchEventsDesktop}(),enableDraggable:function(){var a=p.scrollbar,b=p.support.touch?a.track:document;q(a.track).on(a.draggableEvents.start,a.dragStart),q(b).on(a.draggableEvents.move,a.dragMove),q(b).on(a.draggableEvents.end,a.dragEnd)},disableDraggable:function(){var a=p.scrollbar,b=p.support.touch?a.track:document;q(a.track).off(a.draggableEvents.start,a.dragStart),q(b).off(a.draggableEvents.move,a.dragMove),q(b).off(a.draggableEvents.end,a.dragEnd)},set:function(){if(p.params.scrollbar){var a=p.scrollbar;a.track=q(p.params.scrollbar),p.params.uniqueNavElements&&"string"==typeof p.params.scrollbar&&a.track.length>1&&1===p.container.find(p.params.scrollbar).length&&(a.track=p.container.find(p.params.scrollbar)),a.drag=a.track.find(".swiper-scrollbar-drag"),0===a.drag.length&&(a.drag=q('<div class="swiper-scrollbar-drag"></div>'),a.track.append(a.drag)),a.drag[0].style.width="",a.drag[0].style.height="",a.trackSize=p.isHorizontal()?a.track[0].offsetWidth:a.track[0].offsetHeight,a.divider=p.size/p.virtualSize,a.moveDivider=a.divider*(a.trackSize/p.size),a.dragSize=a.trackSize*a.divider,p.isHorizontal()?a.drag[0].style.width=a.dragSize+"px":a.drag[0].style.height=a.dragSize+"px",a.divider>=1?a.track[0].style.display="none":a.track[0].style.display="",p.params.scrollbarHide&&(a.track[0].style.opacity=0)}},setTranslate:function(){if(p.params.scrollbar){var a,b=p.scrollbar,c=(p.translate,b.dragSize);a=(b.trackSize-b.dragSize)*p.progress,p.rtl&&p.isHorizontal()?(a=-a,a>0?(c=b.dragSize-a,a=0):-a+b.dragSize>b.trackSize&&(c=b.trackSize+a)):a<0?(c=b.dragSize+a,a=0):a+b.dragSize>b.trackSize&&(c=b.trackSize-a),p.isHorizontal()?(p.support.transforms3d?b.drag.transform("translate3d("+a+"px, 0, 0)"):b.drag.transform("translateX("+a+"px)"),b.drag[0].style.width=c+"px"):(p.support.transforms3d?b.drag.transform("translate3d(0px, "+a+"px, 0)"):b.drag.transform("translateY("+a+"px)"),b.drag[0].style.height=c+"px"),p.params.scrollbarHide&&(clearTimeout(b.timeout),b.track[0].style.opacity=1,b.timeout=setTimeout(function(){b.track[0].style.opacity=0,b.track.transition(400)},1e3))}},setTransition:function(a){p.params.scrollbar&&p.scrollbar.drag.transition(a)}},p.controller={LinearSpline:function(a,b){var c=function(){var a,b,c;return function(d,e){for(b=-1,a=d.length;a-b>1;)d[c=a+b>>1]<=e?b=c:a=c;return a}}();this.x=a,this.y=b,this.lastIndex=a.length-1;var d,e;this.x.length,this.interpolate=function(a){return a?(e=c(this.x,a),d=e-1,(a-this.x[d])*(this.y[e]-this.y[d])/(this.x[e]-this.x[d])+this.y[d]):0}},getInterpolateFunction:function(a){p.controller.spline||(p.controller.spline=p.params.loop?new p.controller.LinearSpline(p.slidesGrid,a.slidesGrid):new p.controller.LinearSpline(p.snapGrid,a.snapGrid))},setTranslate:function(a,b){function c(b){a=b.rtl&&"horizontal"===b.params.direction?-p.translate:p.translate,"slide"===p.params.controlBy&&(p.controller.getInterpolateFunction(b),e=-p.controller.spline.interpolate(-a)),e&&"container"!==p.params.controlBy||(d=(b.maxTranslate()-b.minTranslate())/(p.maxTranslate()-p.minTranslate()),e=(a-p.minTranslate())*d+b.minTranslate()),p.params.controlInverse&&(e=b.maxTranslate()-e),b.updateProgress(e),b.setWrapperTranslate(e,!1,p),b.updateActiveIndex()}var d,e,f=p.params.control;if(Array.isArray(f))for(var g=0;g<f.length;g++)f[g]!==b&&f[g]instanceof Swiper&&c(f[g]);else f instanceof Swiper&&b!==f&&c(f)},setTransition:function(a,b){function c(b){b.setWrapperTransition(a,p),0!==a&&(b.onTransitionStart(),b.wrapper.transitionEnd(function(){e&&(b.params.loop&&"slide"===p.params.controlBy&&b.fixLoop(),b.onTransitionEnd())}))}var d,e=p.params.control;if(Array.isArray(e))for(d=0;d<e.length;d++)e[d]!==b&&e[d]instanceof Swiper&&c(e[d]);else e instanceof Swiper&&b!==e&&c(e)}},p.parallax={setTranslate:function(){p.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){g(this,p.progress)}),p.slides.each(function(){var a=q(this);a.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){g(this,Math.min(Math.max(a[0].progress,-1),1))})})},setTransition:function(a){void 0===a&&(a=p.params.speed),p.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var b=q(this),c=parseInt(b.attr("data-swiper-parallax-duration"),10)||a;0===a&&(c=0),b.transition(c)})}},p.zoom={scale:1,currentScale:1,isScaling:!1,gesture:{slide:void 0,slideWidth:void 0,slideHeight:void 0,image:void 0,imageWrap:void 0,zoomMax:p.params.zoomMax},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0},getDistanceBetweenTouches:function(a){if(a.targetTouches.length<2)return 1;var b=a.targetTouches[0].pageX,c=a.targetTouches[0].pageY,d=a.targetTouches[1].pageX,e=a.targetTouches[1].pageY;return Math.sqrt(Math.pow(d-b,2)+Math.pow(e-c,2))},onGestureStart:function(a){var b=p.zoom;if(!p.support.gestures){if("touchstart"!==a.type||"touchstart"===a.type&&a.targetTouches.length<2)return;b.gesture.scaleStart=b.getDistanceBetweenTouches(a)}if(!(b.gesture.slide&&b.gesture.slide.length||(b.gesture.slide=q(this),0===b.gesture.slide.length&&(b.gesture.slide=p.slides.eq(p.activeIndex)),b.gesture.image=b.gesture.slide.find("img, svg, canvas"),b.gesture.imageWrap=b.gesture.image.parent("."+p.params.zoomContainerClass),b.gesture.zoomMax=b.gesture.imageWrap.attr("data-swiper-zoom")||p.params.zoomMax,0!==b.gesture.imageWrap.length)))return void(b.gesture.image=void 0);b.gesture.image.transition(0),b.isScaling=!0},onGestureChange:function(a){var b=p.zoom;if(!p.support.gestures){if("touchmove"!==a.type||"touchmove"===a.type&&a.targetTouches.length<2)return;b.gesture.scaleMove=b.getDistanceBetweenTouches(a)}b.gesture.image&&0!==b.gesture.image.length&&(p.support.gestures?b.scale=a.scale*b.currentScale:b.scale=b.gesture.scaleMove/b.gesture.scaleStart*b.currentScale,b.scale>b.gesture.zoomMax&&(b.scale=b.gesture.zoomMax-1+Math.pow(b.scale-b.gesture.zoomMax+1,.5)),b.scale<p.params.zoomMin&&(b.scale=p.params.zoomMin+1-Math.pow(p.params.zoomMin-b.scale+1,.5)),b.gesture.image.transform("translate3d(0,0,0) scale("+b.scale+")"))},onGestureEnd:function(a){var b=p.zoom;!p.support.gestures&&("touchend"!==a.type||"touchend"===a.type&&a.changedTouches.length<2)||b.gesture.image&&0!==b.gesture.image.length&&(b.scale=Math.max(Math.min(b.scale,b.gesture.zoomMax),p.params.zoomMin),b.gesture.image.transition(p.params.speed).transform("translate3d(0,0,0) scale("+b.scale+")"),b.currentScale=b.scale,b.isScaling=!1,1===b.scale&&(b.gesture.slide=void 0))},onTouchStart:function(a,b){var c=a.zoom;c.gesture.image&&0!==c.gesture.image.length&&(c.image.isTouched||("android"===a.device.os&&b.preventDefault(),c.image.isTouched=!0,c.image.touchesStart.x="touchstart"===b.type?b.targetTouches[0].pageX:b.pageX,c.image.touchesStart.y="touchstart"===b.type?b.targetTouches[0].pageY:b.pageY))},onTouchMove:function(a){var b=p.zoom;if(b.gesture.image&&0!==b.gesture.image.length&&(p.allowClick=!1,b.image.isTouched&&b.gesture.slide)){b.image.isMoved||(b.image.width=b.gesture.image[0].offsetWidth,b.image.height=b.gesture.image[0].offsetHeight,b.image.startX=p.getTranslate(b.gesture.imageWrap[0],"x")||0,b.image.startY=p.getTranslate(b.gesture.imageWrap[0],"y")||0,b.gesture.slideWidth=b.gesture.slide[0].offsetWidth,b.gesture.slideHeight=b.gesture.slide[0].offsetHeight,b.gesture.imageWrap.transition(0),p.rtl&&(b.image.startX=-b.image.startX),p.rtl&&(b.image.startY=-b.image.startY));var c=b.image.width*b.scale,d=b.image.height*b.scale;if(!(c<b.gesture.slideWidth&&d<b.gesture.slideHeight)){if(b.image.minX=Math.min(b.gesture.slideWidth/2-c/2,0),b.image.maxX=-b.image.minX,b.image.minY=Math.min(b.gesture.slideHeight/2-d/2,0),b.image.maxY=-b.image.minY,b.image.touchesCurrent.x="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,b.image.touchesCurrent.y="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY,!b.image.isMoved&&!b.isScaling){if(p.isHorizontal()&&Math.floor(b.image.minX)===Math.floor(b.image.startX)&&b.image.touchesCurrent.x<b.image.touchesStart.x||Math.floor(b.image.maxX)===Math.floor(b.image.startX)&&b.image.touchesCurrent.x>b.image.touchesStart.x)return void(b.image.isTouched=!1);if(!p.isHorizontal()&&Math.floor(b.image.minY)===Math.floor(b.image.startY)&&b.image.touchesCurrent.y<b.image.touchesStart.y||Math.floor(b.image.maxY)===Math.floor(b.image.startY)&&b.image.touchesCurrent.y>b.image.touchesStart.y)return void(b.image.isTouched=!1)}a.preventDefault(),a.stopPropagation(),b.image.isMoved=!0,b.image.currentX=b.image.touchesCurrent.x-b.image.touchesStart.x+b.image.startX,b.image.currentY=b.image.touchesCurrent.y-b.image.touchesStart.y+b.image.startY,b.image.currentX<b.image.minX&&(b.image.currentX=b.image.minX+1-Math.pow(b.image.minX-b.image.currentX+1,.8)),b.image.currentX>b.image.maxX&&(b.image.currentX=b.image.maxX-1+Math.pow(b.image.currentX-b.image.maxX+1,.8)),b.image.currentY<b.image.minY&&(b.image.currentY=b.image.minY+1-Math.pow(b.image.minY-b.image.currentY+1,.8)),b.image.currentY>b.image.maxY&&(b.image.currentY=b.image.maxY-1+Math.pow(b.image.currentY-b.image.maxY+1,.8)),b.velocity.prevPositionX||(b.velocity.prevPositionX=b.image.touchesCurrent.x),b.velocity.prevPositionY||(b.velocity.prevPositionY=b.image.touchesCurrent.y),b.velocity.prevTime||(b.velocity.prevTime=Date.now()),b.velocity.x=(b.image.touchesCurrent.x-b.velocity.prevPositionX)/(Date.now()-b.velocity.prevTime)/2,b.velocity.y=(b.image.touchesCurrent.y-b.velocity.prevPositionY)/(Date.now()-b.velocity.prevTime)/2,Math.abs(b.image.touchesCurrent.x-b.velocity.prevPositionX)<2&&(b.velocity.x=0),Math.abs(b.image.touchesCurrent.y-b.velocity.prevPositionY)<2&&(b.velocity.y=0),b.velocity.prevPositionX=b.image.touchesCurrent.x,b.velocity.prevPositionY=b.image.touchesCurrent.y,b.velocity.prevTime=Date.now(),b.gesture.imageWrap.transform("translate3d("+b.image.currentX+"px, "+b.image.currentY+"px,0)")}}},onTouchEnd:function(a,b){var c=a.zoom;if(c.gesture.image&&0!==c.gesture.image.length){if(!c.image.isTouched||!c.image.isMoved)return c.image.isTouched=!1,void(c.image.isMoved=!1);c.image.isTouched=!1,c.image.isMoved=!1;var d=300,e=300,f=c.velocity.x*d,g=c.image.currentX+f,h=c.velocity.y*e,i=c.image.currentY+h;0!==c.velocity.x&&(d=Math.abs((g-c.image.currentX)/c.velocity.x)),0!==c.velocity.y&&(e=Math.abs((i-c.image.currentY)/c.velocity.y));var j=Math.max(d,e);c.image.currentX=g,c.image.currentY=i;var k=c.image.width*c.scale,l=c.image.height*c.scale;c.image.minX=Math.min(c.gesture.slideWidth/2-k/2,0),c.image.maxX=-c.image.minX,c.image.minY=Math.min(c.gesture.slideHeight/2-l/2,0),c.image.maxY=-c.image.minY,c.image.currentX=Math.max(Math.min(c.image.currentX,c.image.maxX),c.image.minX),c.image.currentY=Math.max(Math.min(c.image.currentY,c.image.maxY),c.image.minY),c.gesture.imageWrap.transition(j).transform("translate3d("+c.image.currentX+"px, "+c.image.currentY+"px,0)")}},onTransitionEnd:function(a){var b=a.zoom;b.gesture.slide&&a.previousIndex!==a.activeIndex&&(b.gesture.image.transform("translate3d(0,0,0) scale(1)"),b.gesture.imageWrap.transform("translate3d(0,0,0)"),b.gesture.slide=b.gesture.image=b.gesture.imageWrap=void 0,b.scale=b.currentScale=1)},toggleZoom:function(a,b){var c=a.zoom;if(c.gesture.slide||(c.gesture.slide=a.clickedSlide?q(a.clickedSlide):a.slides.eq(a.activeIndex),c.gesture.image=c.gesture.slide.find("img, svg, canvas"),c.gesture.imageWrap=c.gesture.image.parent("."+a.params.zoomContainerClass)),c.gesture.image&&0!==c.gesture.image.length){var d,e,f,g,h,i,j,k,l,m,n,o,p,r,s,t,u,v;void 0===c.image.touchesStart.x&&b?(d="touchend"===b.type?b.changedTouches[0].pageX:b.pageX,e="touchend"===b.type?b.changedTouches[0].pageY:b.pageY):(d=c.image.touchesStart.x,e=c.image.touchesStart.y),c.scale&&1!==c.scale?(c.scale=c.currentScale=1,c.gesture.imageWrap.transition(300).transform("translate3d(0,0,0)"),c.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"),c.gesture.slide=void 0):(c.scale=c.currentScale=c.gesture.imageWrap.attr("data-swiper-zoom")||a.params.zoomMax,b?(u=c.gesture.slide[0].offsetWidth,v=c.gesture.slide[0].offsetHeight,f=c.gesture.slide.offset().left,g=c.gesture.slide.offset().top,h=f+u/2-d,i=g+v/2-e,l=c.gesture.image[0].offsetWidth,m=c.gesture.image[0].offsetHeight,n=l*c.scale,o=m*c.scale,p=Math.min(u/2-n/2,0),r=Math.min(v/2-o/2,0),s=-p,t=-r,j=h*c.scale,k=i*c.scale,j<p&&(j=p),j>s&&(j=s),k<r&&(k=r),k>t&&(k=t)):(j=0,k=0),c.gesture.imageWrap.transition(300).transform("translate3d("+j+"px, "+k+"px,0)"),c.gesture.image.transition(300).transform("translate3d(0,0,0) scale("+c.scale+")"))}},attachEvents:function(a){var b=a?"off":"on";if(p.params.zoom){var c=(p.slides,!("touchstart"!==p.touchEvents.start||!p.support.passiveListener||!p.params.passiveListeners)&&{passive:!0,capture:!1});p.support.gestures?(p.slides[b]("gesturestart",p.zoom.onGestureStart,c),p.slides[b]("gesturechange",p.zoom.onGestureChange,c),p.slides[b]("gestureend",p.zoom.onGestureEnd,c)):"touchstart"===p.touchEvents.start&&(p.slides[b](p.touchEvents.start,p.zoom.onGestureStart,c),p.slides[b](p.touchEvents.move,p.zoom.onGestureChange,c),p.slides[b](p.touchEvents.end,p.zoom.onGestureEnd,c)),p[b]("touchStart",p.zoom.onTouchStart),p.slides.each(function(a,c){q(c).find("."+p.params.zoomContainerClass).length>0&&q(c)[b](p.touchEvents.move,p.zoom.onTouchMove)}),p[b]("touchEnd",p.zoom.onTouchEnd),p[b]("transitionEnd",p.zoom.onTransitionEnd),p.params.zoomToggle&&p.on("doubleTap",p.zoom.toggleZoom)}},init:function(){p.zoom.attachEvents()},destroy:function(){p.zoom.attachEvents(!0)}},p._plugins=[];for(var H in p.plugins){var I=p.plugins[H](p,p.params[H]);I&&p._plugins.push(I)}return p.callPlugins=function(a){for(var b=0;b<p._plugins.length;b++)a in p._plugins[b]&&p._plugins[b][a](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},p.emitterEventListeners={},p.emit=function(a){p.params[a]&&p.params[a](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var b;if(p.emitterEventListeners[a])for(b=0;b<p.emitterEventListeners[a].length;b++)p.emitterEventListeners[a][b](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);p.callPlugins&&p.callPlugins(a,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},p.on=function(a,b){return a=h(a),p.emitterEventListeners[a]||(p.emitterEventListeners[a]=[]),p.emitterEventListeners[a].push(b),p},p.off=function(a,b){var c;if(a=h(a),void 0===b)return p.emitterEventListeners[a]=[],p;if(p.emitterEventListeners[a]&&0!==p.emitterEventListeners[a].length){for(c=0;c<p.emitterEventListeners[a].length;c++)p.emitterEventListeners[a][c]===b&&p.emitterEventListeners[a].splice(c,1);return p}},p.once=function(a,b){a=h(a);var c=function(){b(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),p.off(a,c)};return p.on(a,c),p},p.a11y={makeFocusable:function(a){return a.attr("tabIndex","0"),a},addRole:function(a,b){return a.attr("role",b),a},addLabel:function(a,b){return a.attr("aria-label",b),a},disable:function(a){return a.attr("aria-disabled",!0),a},enable:function(a){return a.attr("aria-disabled",!1),a},onEnterKey:function(a){13===a.keyCode&&(q(a.target).is(p.params.nextButton)?(p.onClickNext(a),p.isEnd?p.a11y.notify(p.params.lastSlideMessage):p.a11y.notify(p.params.nextSlideMessage)):q(a.target).is(p.params.prevButton)&&(p.onClickPrev(a),p.isBeginning?p.a11y.notify(p.params.firstSlideMessage):p.a11y.notify(p.params.prevSlideMessage)),q(a.target).is("."+p.params.bulletClass)&&q(a.target)[0].click())},liveRegion:q('<span class="'+p.params.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>'),notify:function(a){var b=p.a11y.liveRegion;0!==b.length&&(b.html(""),b.html(a))},init:function(){p.params.nextButton&&p.nextButton&&p.nextButton.length>0&&(p.a11y.makeFocusable(p.nextButton),p.a11y.addRole(p.nextButton,"button"),p.a11y.addLabel(p.nextButton,p.params.nextSlideMessage)),p.params.prevButton&&p.prevButton&&p.prevButton.length>0&&(p.a11y.makeFocusable(p.prevButton),p.a11y.addRole(p.prevButton,"button"),p.a11y.addLabel(p.prevButton,p.params.prevSlideMessage)),q(p.container).append(p.a11y.liveRegion)},initPagination:function(){p.params.pagination&&p.params.paginationClickable&&p.bullets&&p.bullets.length&&p.bullets.each(function(){var a=q(this);p.a11y.makeFocusable(a),p.a11y.addRole(a,"button"),p.a11y.addLabel(a,p.params.paginationBulletMessage.replace(/{{index}}/,a.index()+1))})},destroy:function(){p.a11y.liveRegion&&p.a11y.liveRegion.length>0&&p.a11y.liveRegion.remove()}},p.init=function(){p.params.loop&&p.createLoop(),p.updateContainerSize(),p.updateSlidesSize(),p.updatePagination(),p.params.scrollbar&&p.scrollbar&&(p.scrollbar.set(),p.params.scrollbarDraggable&&p.scrollbar.enableDraggable()),"slide"!==p.params.effect&&p.effects[p.params.effect]&&(p.params.loop||p.updateProgress(),p.effects[p.params.effect].setTranslate()),p.params.loop?p.slideTo(p.params.initialSlide+p.loopedSlides,0,p.params.runCallbacksOnInit):(p.slideTo(p.params.initialSlide,0,p.params.runCallbacksOnInit),0===p.params.initialSlide&&(p.parallax&&p.params.parallax&&p.parallax.setTranslate(),p.lazy&&p.params.lazyLoading&&(p.lazy.load(),p.lazy.initialImageLoaded=!0))),p.attachEvents(),p.params.observer&&p.support.observer&&p.initObservers(),p.params.preloadImages&&!p.params.lazyLoading&&p.preloadImages(),p.params.zoom&&p.zoom&&p.zoom.init(),p.params.autoplay&&p.startAutoplay(),p.params.keyboardControl&&p.enableKeyboardControl&&p.enableKeyboardControl(),p.params.mousewheelControl&&p.enableMousewheelControl&&p.enableMousewheelControl(),
  p.params.hashnavReplaceState&&(p.params.replaceState=p.params.hashnavReplaceState),p.params.history&&p.history&&p.history.init(),p.params.hashnav&&p.hashnav&&p.hashnav.init(),p.params.a11y&&p.a11y&&p.a11y.init(),p.emit("onInit",p)},p.cleanupStyles=function(){p.container.removeClass(p.classNames.join(" ")).removeAttr("style"),p.wrapper.removeAttr("style"),p.slides&&p.slides.length&&p.slides.removeClass([p.params.slideVisibleClass,p.params.slideActiveClass,p.params.slideNextClass,p.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),p.paginationContainer&&p.paginationContainer.length&&p.paginationContainer.removeClass(p.params.paginationHiddenClass),p.bullets&&p.bullets.length&&p.bullets.removeClass(p.params.bulletActiveClass),p.params.prevButton&&q(p.params.prevButton).removeClass(p.params.buttonDisabledClass),p.params.nextButton&&q(p.params.nextButton).removeClass(p.params.buttonDisabledClass),p.params.scrollbar&&p.scrollbar&&(p.scrollbar.track&&p.scrollbar.track.length&&p.scrollbar.track.removeAttr("style"),p.scrollbar.drag&&p.scrollbar.drag.length&&p.scrollbar.drag.removeAttr("style"))},p.destroy=function(a,b){p.detachEvents(),p.stopAutoplay(),p.params.scrollbar&&p.scrollbar&&p.params.scrollbarDraggable&&p.scrollbar.disableDraggable(),p.params.loop&&p.destroyLoop(),b&&p.cleanupStyles(),p.disconnectObservers(),p.params.zoom&&p.zoom&&p.zoom.destroy(),p.params.keyboardControl&&p.disableKeyboardControl&&p.disableKeyboardControl(),p.params.mousewheelControl&&p.disableMousewheelControl&&p.disableMousewheelControl(),p.params.a11y&&p.a11y&&p.a11y.destroy(),p.params.history&&!p.params.replaceState&&window.removeEventListener("popstate",p.history.setHistoryPopState),p.params.hashnav&&p.hashnav&&p.hashnav.destroy(),p.emit("onDestroy"),!1!==a&&(p=null)},p.init(),p}},Swiper.prototype={isSafari:function(){var a=window.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent),isArray:function(a){return"[object Array]"===Object.prototype.toString.apply(a)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1,lteIE9:function(){var a=document.createElement("div");return a.innerHTML="\x3c!--[if lte IE 9]><i></i><![endif]--\x3e",1===a.getElementsByTagName("i").length}()},device:function(){var a=window.navigator.userAgent,b=a.match(/(Android);?[\s\/]+([\d.]+)?/),c=a.match(/(iPad).*OS\s([\d_]+)/),d=a.match(/(iPod)(.*OS\s([\d_]+))?/),e=!c&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/);return{ios:c||e||d,android:b}}(),support:{touch:window.Modernizr&&!0===Modernizr.touch||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&!0===Modernizr.csstransforms3d||function(){var a=document.createElement("div").style;return"webkitPerspective"in a||"MozPerspective"in a||"OPerspective"in a||"MsPerspective"in a||"perspective"in a}(),flexbox:function(){for(var a=document.createElement("div").style,b="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),c=0;c<b.length;c++)if(b[c]in a)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}(),passiveListener:function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveListener",null,b)}catch(a){}return a}(),gestures:function(){return"ongesturestart"in window}()},plugins:{}}}(),function(){function a(a,b){var c=document.getElementById(a).selectedIndex,d=document.getElementById(b);if(d){d.length=0,d.options[0]=new Option("Select State",""),d.selectedIndex=0;for(var f=e[c].split("|"),g=0;g<f.length;g++)d.options[d.length]=new Option(f[g],f[g])}}function b(b,c){var e=document.getElementById(b);e.length=0,e.options[0]=new Option("Select Country",""),e.selectedIndex=0;for(var f=0;f<d.length;f++)e.options[e.length]=new Option(d[f],d[f]);c&&(e.onchange=function(){a(b,c)})}function c(){j.length=0,j.selectedIndex=0,k.forEach(function(a,b,c){if(a.p===h.value){a.c.forEach(function(a,b,c){j.options[j.length]=new Option(a,a)})}})}var d=new Array("Afghanistan","Albania","Algeria","American Samoa","Angola","Anguilla","Antartica","Antigua and Barbuda","Argentina","Armenia","Aruba","Ashmore and Cartier Island","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","British Virgin Islands","Brunei","Bulgaria","Burkina Faso","Burma","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Central African Republic","Chad","Chile","China","Christmas Island","Clipperton Island","Cocos (Keeling) Islands","Colombia","Comoros","Congo, Democratic Republic of the","Congo, Republic of the","Cook Islands","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czeck Republic","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Europa Island","Falkland Islands (Islas Malvinas)","Faroe Islands","Fiji","Finland","France","French Guiana","French Polynesia","French Southern and Antarctic Lands","Gabon","Gambia, The","Gaza Strip","Georgia","Germany","Ghana","Gibraltar","Glorioso Islands","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guernsey","Guinea","Guinea-Bissau","Guyana","Haiti","Heard Island and McDonald Islands","Holy See (Vatican City)","Honduras","Hong Kong","Howland Island","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Ireland, Northern","Israel","Italy","Jamaica","Jan Mayen","Japan","Jarvis Island","Jersey","Johnston Atoll","Jordan","Juan de Nova Island","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macau","Macedonia, Former Yugoslav Republic of","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Man, Isle of","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Micronesia, Federated States of","Midway Islands","Moldova","Monaco","Mongolia","Montserrat","Morocco","Mozambique","Namibia","Nauru","Nepal","Netherlands","Netherlands Antilles","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcaim Islands","Poland","Portugal","Puerto Rico","Qatar","Reunion","Romainia","Russia","Rwanda","Saint Helena","Saint Kitts and Nevis","Saint Lucia","Saint Pierre and Miquelon","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Scotland","Senegal","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia and South Sandwich Islands","Spain","Spratly Islands","Sri Lanka","Sudan","Suriname","Svalbard","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Tobago","Toga","Tokelau","Tonga","Trinidad","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","Uruguay","USA","Uzbekistan","Vanuatu","Venezuela","Vietnam","Virgin Islands","Wales","Wallis and Futuna","West Bank","Western Sahara","Yemen","Yugoslavia","Zambia","Zimbabwe"),e=new Array;e[0]="",e[1]="Badakhshan|Badghis|Baghlan|Balkh|Bamian|Farah|Faryab|Ghazni|Ghowr|Helmand|Herat|Jowzjan|Kabol|Kandahar|Kapisa|Konar|Kondoz|Laghman|Lowgar|Nangarhar|Nimruz|Oruzgan|Paktia|Paktika|Parvan|Samangan|Sar-e Pol|Takhar|Vardak|Zabol",e[2]="Berat|Bulqize|Delvine|Devoll (Bilisht)|Diber (Peshkopi)|Durres|Elbasan|Fier|Gjirokaster|Gramsh|Has (Krume)|Kavaje|Kolonje (Erseke)|Korce|Kruje|Kucove|Kukes|Kurbin|Lezhe|Librazhd|Lushnje|Malesi e Madhe (Koplik)|Mallakaster (Ballsh)|Mat (Burrel)|Mirdite (Rreshen)|Peqin|Permet|Pogradec|Puke|Sarande|Shkoder|Skrapar (Corovode)|Tepelene|Tirane (Tirana)|Tirane (Tirana)|Tropoje (Bajram Curri)|Vlore",e[3]="Adrar|Ain Defla|Ain Temouchent|Alger|Annaba|Batna|Bechar|Bejaia|Biskra|Blida|Bordj Bou Arreridj|Bouira|Boumerdes|Chlef|Constantine|Djelfa|El Bayadh|El Oued|El Tarf|Ghardaia|Guelma|Illizi|Jijel|Khenchela|Laghouat|M'Sila|Mascara|Medea|Mila|Mostaganem|Naama|Oran|Ouargla|Oum el Bouaghi|Relizane|Saida|Setif|Sidi Bel Abbes|Skikda|Souk Ahras|Tamanghasset|Tebessa|Tiaret|Tindouf|Tipaza|Tissemsilt|Tizi Ouzou|Tlemcen",e[4]="Eastern|Manu'a|Rose Island|Swains Island|Western",e[5]="Andorra la Vella|Bengo|Benguela|Bie|Cabinda|Canillo|Cuando Cubango|Cuanza Norte|Cuanza Sul|Cunene|Encamp|Escaldes-Engordany|Huambo|Huila|La Massana|Luanda|Lunda Norte|Lunda Sul|Malanje|Moxico|Namibe|Ordino|Sant Julia de Loria|Uige|Zaire",e[6]="Anguilla",e[7]="Antartica",e[8]="Barbuda|Redonda|Saint George|Saint John|Saint Mary|Saint Paul|Saint Peter|Saint Philip",e[9]="Antartica e Islas del Atlantico Sur|Buenos Aires|Buenos Aires Capital Federal|Catamarca|Chaco|Chubut|Cordoba|Corrientes|Entre Rios|Formosa|Jujuy|La Pampa|La Rioja|Mendoza|Misiones|Neuquen|Rio Negro|Salta|San Juan|San Luis|Santa Cruz|Santa Fe|Santiago del Estero|Tierra del Fuego|Tucuman",e[10]="Aragatsotn|Ararat|Armavir|Geghark'unik'|Kotayk'|Lorri|Shirak|Syunik'|Tavush|Vayots' Dzor|Yerevan",e[11]="Aruba",e[12]="Ashmore and Cartier Island",e[13]="Australian Capital Territory|New South Wales|Northern Territory|Queensland|South Australia|Tasmania|Victoria|Western Australia",e[14]="Burgenland|Kaernten|Niederoesterreich|Oberoesterreich|Salzburg|Steiermark|Tirol|Vorarlberg|Wien",e[15]="Abseron Rayonu|Agcabadi Rayonu|Agdam Rayonu|Agdas Rayonu|Agstafa Rayonu|Agsu Rayonu|Ali Bayramli Sahari|Astara Rayonu|Baki Sahari|Balakan Rayonu|Barda Rayonu|Beylaqan Rayonu|Bilasuvar Rayonu|Cabrayil Rayonu|Calilabad Rayonu|Daskasan Rayonu|Davaci Rayonu|Fuzuli Rayonu|Gadabay Rayonu|Ganca Sahari|Goranboy Rayonu|Goycay Rayonu|Haciqabul Rayonu|Imisli Rayonu|Ismayilli Rayonu|Kalbacar Rayonu|Kurdamir Rayonu|Lacin Rayonu|Lankaran Rayonu|Lankaran Sahari|Lerik Rayonu|Masalli Rayonu|Mingacevir Sahari|Naftalan Sahari|Naxcivan Muxtar Respublikasi|Neftcala Rayonu|Oguz Rayonu|Qabala Rayonu|Qax Rayonu|Qazax Rayonu|Qobustan Rayonu|Quba Rayonu|Qubadli Rayonu|Qusar Rayonu|Saatli Rayonu|Sabirabad Rayonu|Saki Rayonu|Saki Sahari|Salyan Rayonu|Samaxi Rayonu|Samkir Rayonu|Samux Rayonu|Siyazan Rayonu|Sumqayit Sahari|Susa Rayonu|Susa Sahari|Tartar Rayonu|Tovuz Rayonu|Ucar Rayonu|Xacmaz Rayonu|Xankandi Sahari|Xanlar Rayonu|Xizi Rayonu|Xocali Rayonu|Xocavand Rayonu|Yardimli Rayonu|Yevlax Rayonu|Yevlax Sahari|Zangilan Rayonu|Zaqatala Rayonu|Zardab Rayonu",e[16]="Acklins and Crooked Islands|Bimini|Cat Island|Exuma|Freeport|Fresh Creek|Governor's Harbour|Green Turtle Cay|Harbour Island|High Rock|Inagua|Kemps Bay|Long Island|Marsh Harbour|Mayaguana|New Providence|Nicholls Town and Berry Islands|Ragged Island|Rock Sound|San Salvador and Rum Cay|Sandy Point",e[17]="Al Hadd|Al Manamah|Al Mintaqah al Gharbiyah|Al Mintaqah al Wusta|Al Mintaqah ash Shamaliyah|Al Muharraq|Ar Rifa' wa al Mintaqah al Janubiyah|Jidd Hafs|Juzur Hawar|Madinat 'Isa|Madinat Hamad|Sitrah",e[18]="Barguna|Barisal|Bhola|Jhalokati|Patuakhali|Pirojpur|Bandarban|Brahmanbaria|Chandpur|Chittagong|Comilla|Cox's Bazar|Feni|Khagrachari|Lakshmipur|Noakhali|Rangamati|Dhaka|Faridpur|Gazipur|Gopalganj|Jamalpur|Kishoreganj|Madaripur|Manikganj|Munshiganj|Mymensingh|Narayanganj|Narsingdi|Netrokona|Rajbari|Shariatpur|Sherpur|Tangail|Bagerhat|Chuadanga|Jessore|Jhenaidah|Khulna|Kushtia|Magura|Meherpur|Narail|Satkhira|Bogra|Dinajpur|Gaibandha|Jaipurhat|Kurigram|Lalmonirhat|Naogaon|Natore|Nawabganj|Nilphamari|Pabna|Panchagarh|Rajshahi|Rangpur|Sirajganj|Thakurgaon|Habiganj|Maulvi bazar|Sunamganj|Sylhet",e[19]="Bridgetown|Christ Church|Saint Andrew|Saint George|Saint James|Saint John|Saint Joseph|Saint Lucy|Saint Michael|Saint Peter|Saint Philip|Saint Thomas",e[20]="Brestskaya (Brest)|Homyel'skaya (Homyel')|Horad Minsk|Hrodzyenskaya (Hrodna)|Mahilyowskaya (Mahilyow)|Minskaya|Vitsyebskaya (Vitsyebsk)",e[21]="Antwerpen|Brabant Wallon|Brussels Capitol Region|Hainaut|Liege|Limburg|Luxembourg|Namur|Oost-Vlaanderen|Vlaams Brabant|West-Vlaanderen",e[22]="Belize|Cayo|Corozal|Orange Walk|Stann Creek|Toledo",e[23]="Alibori|Atakora|Atlantique|Borgou|Collines|Couffo|Donga|Littoral|Mono|Oueme|Plateau|Zou",e[24]="Devonshire|Hamilton|Hamilton|Paget|Pembroke|Saint George|Saint Georges|Sandys|Smiths|Southampton|Warwick",e[25]="Bumthang|Chhukha|Chirang|Daga|Geylegphug|Ha|Lhuntshi|Mongar|Paro|Pemagatsel|Punakha|Samchi|Samdrup Jongkhar|Shemgang|Tashigang|Thimphu|Tongsa|Wangdi Phodrang",e[26]="Beni|Chuquisaca|Cochabamba|La Paz|Oruro|Pando|Potosi|Santa Cruz|Tarija",e[27]="Federation of Bosnia and Herzegovina|Republika Srpska",e[28]="Central|Chobe|Francistown|Gaborone|Ghanzi|Kgalagadi|Kgatleng|Kweneng|Lobatse|Ngamiland|North-East|Selebi-Pikwe|South-East|Southern",e[29]="Acre|Alagoas|Amapa|Amazonas|Bahia|Ceara|Distrito Federal|Espirito Santo|Goias|Maranhao|Mato Grosso|Mato Grosso do Sul|Minas Gerais|Para|Paraiba|Parana|Pernambuco|Piaui|Rio de Janeiro|Rio Grande do Norte|Rio Grande do Sul|Rondonia|Roraima|Santa Catarina|Sao Paulo|Sergipe|Tocantins",e[30]="Anegada|Jost Van Dyke|Tortola|Virgin Gorda",e[31]="Belait|Brunei and Muara|Temburong|Tutong",e[32]="Blagoevgrad|Burgas|Dobrich|Gabrovo|Khaskovo|Kurdzhali|Kyustendil|Lovech|Montana|Pazardzhik|Pernik|Pleven|Plovdiv|Razgrad|Ruse|Shumen|Silistra|Sliven|Smolyan|Sofiya|Sofiya-Grad|Stara Zagora|Turgovishte|Varna|Veliko Turnovo|Vidin|Vratsa|Yambol",e[33]="Bale|Bam|Banwa|Bazega|Bougouriba|Boulgou|Boulkiemde|Comoe|Ganzourgou|Gnagna|Gourma|Houet|Ioba|Kadiogo|Kenedougou|Komandjari|Kompienga|Kossi|Koupelogo|Kouritenga|Kourweogo|Leraba|Loroum|Mouhoun|Nahouri|Namentenga|Naumbiel|Nayala|Oubritenga|Oudalan|Passore|Poni|Samentenga|Sanguie|Seno|Sissili|Soum|Sourou|Tapoa|Tuy|Yagha|Yatenga|Ziro|Zondomo|Zoundweogo",e[34]="Ayeyarwady|Bago|Chin State|Kachin State|Kayah State|Kayin State|Magway|Mandalay|Mon State|Rakhine State|Sagaing|Shan State|Tanintharyi|Yangon",e[35]="Bubanza|Bujumbura|Bururi|Cankuzo|Cibitoke|Gitega|Karuzi|Kayanza|Kirundo|Makamba|Muramvya|Muyinga|Mwaro|Ngozi|Rutana|Ruyigi",e[36]="Banteay Mean Cheay|Batdambang|Kampong Cham|Kampong Chhnang|Kampong Spoe|Kampong Thum|Kampot|Kandal|Kaoh Kong|Keb|Kracheh|Mondol Kiri|Otdar Mean Cheay|Pailin|Phnum Penh|Pouthisat|Preah Seihanu (Sihanoukville)|Preah Vihear|Prey Veng|Rotanah Kiri|Siem Reab|Stoeng Treng|Svay Rieng|Takev",e[37]="Adamaoua|Centre|Est|Extreme-Nord|Littoral|Nord|Nord-Ouest|Ouest|Sud|Sud-Ouest",e[38]="Alberta|British Columbia|Manitoba|New Brunswick|Newfoundland|Northwest Territories|Nova Scotia|Nunavut|Ontario|Prince Edward Island|Quebec|Saskatchewan|Yukon Territory",e[39]="Boa Vista|Brava|Maio|Mosteiros|Paul|Porto Novo|Praia|Ribeira Grande|Sal|Santa Catarina|Santa Cruz|Sao Domingos|Sao Filipe|Sao Nicolau|Sao Vicente|Tarrafal",e[40]="Creek|Eastern|Midland|South Town|Spot Bay|Stake Bay|West End|Western",e[41]="Bamingui-Bangoran|Bangui|Basse-Kotto|Gribingui|Haut-Mbomou|Haute-Kotto|Haute-Sangha|Kemo-Gribingui|Lobaye|Mbomou|Nana-Mambere|Ombella-Mpoko|Ouaka|Ouham|Ouham-Pende|Sangha|Vakaga",e[42]="Batha|Biltine|Borkou-Ennedi-Tibesti|Chari-Baguirmi|Guera|Kanem|Lac|Logone Occidental|Logone Oriental|Mayo-Kebbi|Moyen-Chari|Ouaddai|Salamat|Tandjile",e[43]="Aisen del General Carlos Ibanez del Campo|Antofagasta|Araucania|Atacama|Bio-Bio|Coquimbo|Libertador General Bernardo O'Higgins|Los Lagos|Magallanes y de la Antartica Chilena|Maule|Region Metropolitana (Santiago)|Tarapaca|Valparaiso",e[44]="Anhui|Beijing|Chongqing|Fujian|Gansu|Guangdong|Guangxi|Guizhou|Hainan|Hebei|Heilongjiang|Henan|Hubei|Hunan|Jiangsu|Jiangxi|Jilin|Liaoning|Nei Mongol|Ningxia|Qinghai|Shaanxi|Shandong|Shanghai|Shanxi|Sichuan|Tianjin|Xinjiang|Xizang (Tibet)|Yunnan|Zhejiang",e[45]="Christmas Island",e[46]="Clipperton Island",e[47]="Direction Island|Home Island|Horsburgh Island|North Keeling Island|South Island|West Island",e[48]="Amazonas|Antioquia|Arauca|Atlantico|Bolivar|Boyaca|Caldas|Caqueta|Casanare|Cauca|Cesar|Choco|Cordoba|Cundinamarca|Distrito Capital de Santa Fe de Bogota|Guainia|Guaviare|Huila|La Guajira|Magdalena|Meta|Narino|Norte de Santander|Putumayo|Quindio|Risaralda|San Andres y Providencia|Santander|Sucre|Tolima|Valle del Cauca|Vaupes|Vichada",e[49]="Anjouan (Nzwani)|Domoni|Fomboni|Grande Comore (Njazidja)|Moheli (Mwali)|Moroni|Moutsamoudou",e[50]="Bandundu|Bas-Congo|Equateur|Kasai-Occidental|Kasai-Oriental|Katanga|Kinshasa|Maniema|Nord-Kivu|Orientale|Sud-Kivu",e[51]="Bouenza|Brazzaville|Cuvette|Kouilou|Lekoumou|Likouala|Niari|Plateaux|Pool|Sangha",e[52]="Aitutaki|Atiu|Avarua|Mangaia|Manihiki|Manuae|Mauke|Mitiaro|Nassau Island|Palmerston|Penrhyn|Pukapuka|Rakahanga|Rarotonga|Suwarrow|Takutea",e[53]="Alajuela|Cartago|Guanacaste|Heredia|Limon|Puntarenas|San Jose",e[54]="Abengourou|Abidjan|Aboisso|Adiake'|Adzope|Agboville|Agnibilekrou|Ale'pe'|Bangolo|Beoumi|Biankouma|Bocanda|Bondoukou|Bongouanou|Bouafle|Bouake|Bouna|Boundiali|Dabakala|Dabon|Daloa|Danane|Daoukro|Dimbokro|Divo|Duekoue|Ferkessedougou|Gagnoa|Grand Bassam|Grand-Lahou|Guiglo|Issia|Jacqueville|Katiola|Korhogo|Lakota|Man|Mankono|Mbahiakro|Odienne|Oume|Sakassou|San-Pedro|Sassandra|Seguela|Sinfra|Soubre|Tabou|Tanda|Tiassale|Tiebissou|Tingrela|Touba|Toulepleu|Toumodi|Vavoua|Yamoussoukro|Zuenoula",e[55]="Bjelovarsko-Bilogorska Zupanija|Brodsko-Posavska Zupanija|Dubrovacko-Neretvanska Zupanija|Istarska Zupanija|Karlovacka Zupanija|Koprivnicko-Krizevacka Zupanija|Krapinsko-Zagorska Zupanija|Licko-Senjska Zupanija|Medimurska Zupanija|Osjecko-Baranjska Zupanija|Pozesko-Slavonska Zupanija|Primorsko-Goranska Zupanija|Sibensko-Kninska Zupanija|Sisacko-Moslavacka Zupanija|Splitsko-Dalmatinska Zupanija|Varazdinska Zupanija|Viroviticko-Podravska Zupanija|Vukovarsko-Srijemska Zupanija|Zadarska Zupanija|Zagreb|Zagrebacka Zupanija",e[56]="Camaguey|Ciego de Avila|Cienfuegos|Ciudad de La Habana|Granma|Guantanamo|Holguin|Isla de la Juventud|La Habana|Las Tunas|Matanzas|Pinar del Rio|Sancti Spiritus|Santiago de Cuba|Villa Clara",e[57]="Famagusta|Kyrenia|Larnaca|Limassol|Nicosia|Paphos",e[58]="Brnensky|Budejovicky|Jihlavsky|Karlovarsky|Kralovehradecky|Liberecky|Olomoucky|Ostravsky|Pardubicky|Plzensky|Praha|Stredocesky|Ustecky|Zlinsky",e[59]="Arhus|Bornholm|Fredericksberg|Frederiksborg|Fyn|Kobenhavn|Kobenhavns|Nordjylland|Ribe|Ringkobing|Roskilde|Sonderjylland|Storstrom|Vejle|Vestsjalland|Viborg",e[60]="'Ali Sabih|Dikhil|Djibouti|Obock|Tadjoura",e[61]="Saint Andrew|Saint David|Saint George|Saint John|Saint Joseph|Saint Luke|Saint Mark|Saint Patrick|Saint Paul|Saint Peter",e[62]="Azua|Baoruco|Barahona|Dajabon|Distrito Nacional|Duarte|El Seibo|Elias Pina|Espaillat|Hato Mayor|Independencia|La Altagracia|La Romana|La Vega|Maria Trinidad Sanchez|Monsenor Nouel|Monte Cristi|Monte Plata|Pedernales|Peravia|Puerto Plata|Salcedo|Samana|San Cristobal|San Juan|San Pedro de Macoris|Sanchez Ramirez|Santiago|Santiago Rodriguez|Valverde",e[63]="Azuay|Bolivar|Canar|Carchi|Chimborazo|Cotopaxi|El Oro|Esmeraldas|Galapagos|Guayas|Imbabura|Loja|Los Rios|Manabi|Morona-Santiago|Napo|Orellana|Pastaza|Pichincha|Sucumbios|Tungurahua|Zamora-Chinchipe",e[64]="Ad Daqahliyah|Al Bahr al Ahmar|Al Buhayrah|Al Fayyum|Al Gharbiyah|Al Iskandariyah|Al Isma'iliyah|Al Jizah|Al Minufiyah|Al Minya|Al Qahirah|Al Qalyubiyah|Al Wadi al Jadid|As Suways|Ash Sharqiyah|Aswan|Asyut|Bani Suwayf|Bur Sa'id|Dumyat|Janub Sina'|Kafr ash Shaykh|Matruh|Qina|Shamal Sina'|Suhaj",e[65]="Ahuachapan|Cabanas|Chalatenango|Cuscatlan|La Libertad|La Paz|La Union|Morazan|San Miguel|San Salvador|San Vicente|Santa Ana|Sonsonate|Usulutan",e[66]="Annobon|Bioko Norte|Bioko Sur|Centro Sur|Kie-Ntem|Litoral|Wele-Nzas",e[67]="Akale Guzay|Barka|Denkel|Hamasen|Sahil|Semhar|Senhit|Seraye",e[68]="Harjumaa (Tallinn)|Hiiumaa (Kardla)|Ida-Virumaa (Johvi)|Jarvamaa (Paide)|Jogevamaa (Jogeva)|Laane-Virumaa (Rakvere)|Laanemaa (Haapsalu)|Parnumaa (Parnu)|Polvamaa (Polva)|Raplamaa (Rapla)|Saaremaa (Kuessaare)|Tartumaa (Tartu)|Valgamaa (Valga)|Viljandimaa (Viljandi)|Vorumaa (Voru)",e[69]="Adis Abeba (Addis Ababa)|Afar|Amara|Dire Dawa|Gambela Hizboch|Hareri Hizb|Oromiya|Sumale|Tigray|YeDebub Biheroch Bihereseboch na Hizboch",e[70]="Europa Island",e[71]="Falkland Islands (Islas Malvinas)",e[72]="Bordoy|Eysturoy|Mykines|Sandoy|Skuvoy|Streymoy|Suduroy|Tvoroyri|Vagar",e[73]="Central|Eastern|Northern|Rotuma|Western",e[74]="Aland|Etela-Suomen Laani|Ita-Suomen Laani|Lansi-Suomen Laani|Lappi|Oulun Laani",e[75]="Alsace|Aquitaine|Auvergne|Basse-Normandie|Bourgogne|Bretagne|Centre|Champagne-Ardenne|Corse|Franche-Comte|Haute-Normandie|Ile-de-France|Languedoc-Roussillon|Limousin|Lorraine|Midi-Pyrenees|Nord-Pas-de-Calais|Pays de la Loire|Picardie|Poitou-Charentes|Provence-Alpes-Cote d'Azur|Rhone-Alpes",e[76]="French Guiana",e[77]="Archipel des Marquises|Archipel des Tuamotu|Archipel des Tubuai|Iles du Vent|Iles Sous-le-Vent",e[78]="Adelie Land|Ile Crozet|Iles Kerguelen|Iles Saint-Paul et Amsterdam",e[79]="Estuaire|Haut-Ogooue|Moyen-Ogooue|Ngounie|Nyanga|Ogooue-Ivindo|Ogooue-Lolo|Ogooue-Maritime|Woleu-Ntem",e[80]="Banjul|Central River|Lower River|North Bank|Upper River|Western",e[81]="Gaza Strip",e[82]="Abashis|Abkhazia or Ap'khazet'is Avtonomiuri Respublika (Sokhumi)|Adigenis|Ajaria or Acharis Avtonomiuri Respublika (Bat'umi)|Akhalgoris|Akhalk'alak'is|Akhalts'ikhis|Akhmetis|Ambrolauris|Aspindzis|Baghdat'is|Bolnisis|Borjomis|Ch'khorotsqus|Ch'okhatauris|Chiat'ura|Dedop'listsqaros|Dmanisis|Dushet'is|Gardabanis|Gori|Goris|Gurjaanis|Javis|K'arelis|K'ut'aisi|Kaspis|Kharagaulis|Khashuris|Khobis|Khonis|Lagodekhis|Lanch'khut'is|Lentekhis|Marneulis|Martvilis|Mestiis|Mts'khet'is|Ninotsmindis|Onis|Ozurget'is|P'ot'i|Qazbegis|Qvarlis|Rust'avi|Sach'kheris|Sagarejos|Samtrediis|Senakis|Sighnaghis|T'bilisi|T'elavis|T'erjolis|T'et'ritsqaros|T'ianet'is|Tqibuli|Ts'ageris|Tsalenjikhis|Tsalkis|Tsqaltubo|Vanis|Zestap'onis|Zugdidi|Zugdidis",e[83]="Baden-Wuerttemberg|Bayern|Berlin|Brandenburg|Bremen|Hamburg|Hessen|Mecklenburg-Vorpommern|Niedersachsen|Nordrhein-Westfalen|Rheinland-Pfalz|Saarland|Sachsen|Sachsen-Anhalt|Schleswig-Holstein|Thueringen",e[84]="Ashanti|Brong-Ahafo|Central|Eastern|Greater Accra|Northern|Upper East|Upper West|Volta|Western",e[85]="Gibraltar",e[86]="Ile du Lys|Ile Glorieuse",e[87]="Aitolia kai Akarnania|Akhaia|Argolis|Arkadhia|Arta|Attiki|Ayion Oros (Mt. Athos)|Dhodhekanisos|Drama|Evritania|Evros|Evvoia|Florina|Fokis|Fthiotis|Grevena|Ilia|Imathia|Ioannina|Irakleion|Kardhitsa|Kastoria|Kavala|Kefallinia|Kerkyra|Khalkidhiki|Khania|Khios|Kikladhes|Kilkis|Korinthia|Kozani|Lakonia|Larisa|Lasithi|Lesvos|Levkas|Magnisia|Messinia|Pella|Pieria|Preveza|Rethimni|Rodhopi|Samos|Serrai|Thesprotia|Thessaloniki|Trikala|Voiotia|Xanthi|Zakinthos",e[88]="Avannaa (Nordgronland)|Kitaa (Vestgronland)|Tunu (Ostgronland)",e[89]="Carriacou and Petit Martinique|Saint Andrew|Saint David|Saint George|Saint John|Saint Mark|Saint Patrick",e[90]="Basse-Terre|Grande-Terre|Iles de la Petite Terre|Iles des Saintes|Marie-Galante",e[91]="Guam",e[92]="Alta Verapaz|Baja Verapaz|Chimaltenango|Chiquimula|El Progreso|Escuintla|Guatemala|Huehuetenango|Izabal|Jalapa|Jutiapa|Peten|Quetzaltenango|Quiche|Retalhuleu|Sacatepequez|San Marcos|Santa Rosa|Solola|Suchitepequez|Totonicapan|Zacapa",e[93]="Castel|Forest|St. Andrew|St. Martin|St. Peter Port|St. Pierre du Bois|St. Sampson|St. Saviour|Torteval|Vale",e[94]="Beyla|Boffa|Boke|Conakry|Coyah|Dabola|Dalaba|Dinguiraye|Dubreka|Faranah|Forecariah|Fria|Gaoual|Gueckedou|Kankan|Kerouane|Kindia|Kissidougou|Koubia|Koundara|Kouroussa|Labe|Lelouma|Lola|Macenta|Mali|Mamou|Mandiana|Nzerekore|Pita|Siguiri|Telimele|Tougue|Yomou",e[95]="Bafata|Biombo|Bissau|Bolama-Bijagos|Cacheu|Gabu|Oio|Quinara|Tombali",e[96]="Barima-Waini|Cuyuni-Mazaruni|Demerara-Mahaica|East Berbice-Corentyne|Essequibo Islands-West Demerara|Mahaica-Berbice|Pomeroon-Supenaam|Potaro-Siparuni|Upper Demerara-Berbice|Upper Takutu-Upper Essequibo",e[97]="Artibonite|Centre|Grand'Anse|Nord|Nord-Est|Nord-Ouest|Ouest|Sud|Sud-Est",e[98]="Heard Island and McDonald Islands",e[99]="Holy See (Vatican City)",e[100]="Atlantida|Choluteca|Colon|Comayagua|Copan|Cortes|El Paraiso|Francisco Morazan|Gracias a Dios|Intibuca|Islas de la Bahia|La Paz|Lempira|Ocotepeque|Olancho|Santa Barbara|Valle|Yoro",e[101]="Hong Kong",e[102]="Howland Island",e[103]="Bacs-Kiskun|Baranya|Bekes|Bekescsaba|Borsod-Abauj-Zemplen|Budapest|Csongrad|Debrecen|Dunaujvaros|Eger|Fejer|Gyor|Gyor-Moson-Sopron|Hajdu-Bihar|Heves|Hodmezovasarhely|Jasz-Nagykun-Szolnok|Kaposvar|Kecskemet|Komarom-Esztergom|Miskolc|Nagykanizsa|Nograd|Nyiregyhaza|Pecs|Pest|Somogy|Sopron|Szabolcs-Szatmar-Bereg|Szeged|Szekesfehervar|Szolnok|Szombathely|Tatabanya|Tolna|Vas|Veszprem|Veszprem|Zala|Zalaegerszeg",e[104]="Akranes|Akureyri|Arnessysla|Austur-Bardhastrandarsysla|Austur-Hunavatnssysla|Austur-Skaftafellssysla|Borgarfjardharsysla|Dalasysla|Eyjafjardharsysla|Gullbringusysla|Hafnarfjordhur|Husavik|Isafjordhur|Keflavik|Kjosarsysla|Kopavogur|Myrasysla|Neskaupstadhur|Nordhur-Isafjardharsysla|Nordhur-Mulasys-la|Nordhur-Thingeyjarsysla|Olafsfjordhur|Rangarvallasysla|Reykjavik|Saudharkrokur|Seydhisfjordhur|Siglufjordhur|Skagafjardharsysla|Snaefellsnes-og Hnappadalssysla|Strandasysla|Sudhur-Mulasysla|Sudhur-Thingeyjarsysla|Vesttmannaeyjar|Vestur-Bardhastrandarsysla|Vestur-Hunavatnssysla|Vestur-Isafjardharsysla|Vestur-Skaftafellssysla",e[105]="Andaman and Nicobar Islands|Andhra Pradesh|Arunachal Pradesh|Assam|Bihar|Chandigarh|Chhattisgarh|Dadra and Nagar Haveli|Daman and Diu|Delhi|Goa|Gujarat|Haryana|Himachal Pradesh|Jammu and Kashmir|Jharkhand|Karnataka|Kerala|Lakshadweep|Madhya Pradesh|Maharashtra|Manipur|Meghalaya|Mizoram|Nagaland|Orissa|Pondicherry|Punjab|Rajasthan|Sikkim|Tamil Nadu|Tripura|Uttar Pradesh|Uttaranchal|West Bengal",e[106]="Aceh|Bali|Banten|Bengkulu|East Timor|Gorontalo|Irian Jaya|Jakarta Raya|Jambi|Jawa Barat|Jawa Tengah|Jawa Timur|Kalimantan Barat|Kalimantan Selatan|Kalimantan Tengah|Kalimantan Timur|Kepulauan Bangka Belitung|Lampung|Maluku|Maluku Utara|Nusa Tenggara Barat|Nusa Tenggara Timur|Riau|Sulawesi Selatan|Sulawesi Tengah|Sulawesi Tenggara|Sulawesi Utara|Sumatera Barat|Sumatera Selatan|Sumatera Utara|Yogyakarta",e[107]="Ardabil|Azarbayjan-e Gharbi|Azarbayjan-e Sharqi|Bushehr|Chahar Mahall va Bakhtiari|Esfahan|Fars|Gilan|Golestan|Hamadan|Hormozgan|Ilam|Kerman|Kermanshah|Khorasan|Khuzestan|Kohgiluyeh va Buyer Ahmad|Kordestan|Lorestan|Markazi|Mazandaran|Qazvin|Qom|Semnan|Sistan va Baluchestan|Tehran|Yazd|Zanjan",e[108]="Al Anbar|Al Basrah|Al Muthanna|Al Qadisiyah|An Najaf|Arbil|As Sulaymaniyah|At Ta'mim|Babil|Baghdad|Dahuk|Dhi Qar|Diyala|Karbala'|Maysan|Ninawa|Salah ad Din|Wasit",e[109]="Carlow|Cavan|Clare|Cork|Donegal|Dublin|Galway|Kerry|Kildare|Kilkenny|Laois|Leitrim|Limerick|Longford|Louth|Mayo|Meath|Monaghan|Offaly|Roscommon|Sligo|Tipperary|Waterford|Westmeath|Wexford|Wicklow",e[110]="Antrim|Ards|Armagh|Ballymena|Ballymoney|Banbridge|Belfast|Carrickfergus|Castlereagh|Coleraine|Cookstown|Craigavon|Derry|Down|Dungannon|Fermanagh|Larne|Limavady|Lisburn|Magherafelt|Moyle|Newry and Mourne|Newtownabbey|North Down|Omagh|Strabane",e[111]="Central|Haifa|Jerusalem|Northern|Southern|Tel Aviv",e[112]="Abruzzo|Basilicata|Calabria|Campania|Emilia-Romagna|Friuli-Venezia Giulia|Lazio|Liguria|Lombardia|Marche|Molise|Piemonte|Puglia|Sardegna|Sicilia|Toscana|Trentino-Alto Adige|Umbria|Valle d'Aosta|Veneto",e[113]="Clarendon|Hanover|Kingston|Manchester|Portland|Saint Andrew|Saint Ann|Saint Catherine|Saint Elizabeth|Saint James|Saint Mary|Saint Thomas|Trelawny|Westmoreland",e[114]="Jan Mayen",e[115]="Aichi|Akita|Aomori|Chiba|Ehime|Fukui|Fukuoka|Fukushima|Gifu|Gumma|Hiroshima|Hokkaido|Hyogo|Ibaraki|Ishikawa|Iwate|Kagawa|Kagoshima|Kanagawa|Kochi|Kumamoto|Kyoto|Mie|Miyagi|Miyazaki|Nagano|Nagasaki|Nara|Niigata|Oita|Okayama|Okinawa|Osaka|Saga|Saitama|Shiga|Shimane|Shizuoka|Tochigi|Tokushima|Tokyo|Tottori|Toyama|Wakayama|Yamagata|Yamaguchi|Yamanashi",e[116]="Jarvis Island",e[117]="Jersey",e[118]="Johnston Atoll",e[119]="'Amman|Ajlun|Al 'Aqabah|Al Balqa'|Al Karak|Al Mafraq|At Tafilah|Az Zarqa'|Irbid|Jarash|Ma'an|Madaba",e[120]="Juan de Nova Island",e[121]="Almaty|Aqmola|Aqtobe|Astana|Atyrau|Batys Qazaqstan|Bayqongyr|Mangghystau|Ongtustik Qazaqstan|Pavlodar|Qaraghandy|Qostanay|Qyzylorda|Shyghys Qazaqstan|Soltustik Qazaqstan|Zhambyl",e[122]="Central|Coast|Eastern|Nairobi Area|North Eastern|Nyanza|Rift Valley|Western",e[123]="Abaiang|Abemama|Aranuka|Arorae|Banaba|Banaba|Beru|Butaritari|Central Gilberts|Gilbert Islands|Kanton|Kiritimati|Kuria|Line Islands|Line Islands|Maiana|Makin|Marakei|Nikunau|Nonouti|Northern Gilberts|Onotoa|Phoenix Islands|Southern Gilberts|Tabiteuea|Tabuaeran|Tamana|Tarawa|Tarawa|Teraina",e[124]="Chagang-do (Chagang Province)|Hamgyong-bukto (North Hamgyong Province)|Hamgyong-namdo (South Hamgyong Province)|Hwanghae-bukto (North Hwanghae Province)|Hwanghae-namdo (South Hwanghae Province)|Kaesong-si (Kaesong City)|Kangwon-do (Kangwon Province)|Namp'o-si (Namp'o City)|P'yongan-bukto (North P'yongan Province)|P'yongan-namdo (South P'yongan Province)|P'yongyang-si (P'yongyang City)|Yanggang-do (Yanggang Province)",e[125]="Ch'ungch'ong-bukto|Ch'ungch'ong-namdo|Cheju-do|Cholla-bukto|Cholla-namdo|Inch'on-gwangyoksi|Kangwon-do|Kwangju-gwangyoksi|Kyonggi-do|Kyongsang-bukto|Kyongsang-namdo|Pusan-gwangyoksi|Soul-t'ukpyolsi|Taegu-gwangyoksi|Taejon-gwangyoksi|Ulsan-gwangyoksi",e[126]="Al 'Asimah|Al Ahmadi|Al Farwaniyah|Al Jahra'|Hawalli",e[127]="Batken Oblasty|Bishkek Shaary|Chuy Oblasty (Bishkek)|Jalal-Abad Oblasty|Naryn Oblasty|Osh Oblasty|Talas Oblasty|Ysyk-Kol Oblasty (Karakol)",e[128]="Attapu|Bokeo|Bolikhamxai|Champasak|Houaphan|Khammouan|Louangnamtha|Louangphabang|Oudomxai|Phongsali|Salavan|Savannakhet|Viangchan|Viangchan|Xaignabouli|Xaisomboun|Xekong|Xiangkhoang",e[129]="Aizkraukles Rajons|Aluksnes Rajons|Balvu Rajons|Bauskas Rajons|Cesu Rajons|Daugavpils|Daugavpils Rajons|Dobeles Rajons|Gulbenes Rajons|Jekabpils Rajons|Jelgava|Jelgavas Rajons|Jurmala|Kraslavas Rajons|Kuldigas Rajons|Leipaja|Liepajas Rajons|Limbazu Rajons|Ludzas Rajons|Madonas Rajons|Ogres Rajons|Preilu Rajons|Rezekne|Rezeknes Rajons|Riga|Rigas Rajons|Saldus Rajons|Talsu Rajons|Tukuma Rajons|Valkas Rajons|Valmieras Rajons|Ventspils|Ventspils Rajons",e[130]="Beyrouth|Ech Chimal|Ej Jnoub|El Bekaa|Jabal Loubnane",e[131]="Berea|Butha-Buthe|Leribe|Mafeteng|Maseru|Mohales Hoek|Mokhotlong|Qacha's Nek|Quthing|Thaba-Tseka",e[132]="Bomi|Bong|Grand Bassa|Grand Cape Mount|Grand Gedeh|Grand Kru|Lofa|Margibi|Maryland|Montserrado|Nimba|River Cess|Sinoe",e[133]="Ajdabiya|Al 'Aziziyah|Al Fatih|Al Jabal al Akhdar|Al Jufrah|Al Khums|Al Kufrah|An Nuqat al Khams|Ash Shati'|Awbari|Az Zawiyah|Banghazi|Darnah|Ghadamis|Gharyan|Misratah|Murzuq|Sabha|Sawfajjin|Surt|Tarabulus|Tarhunah|Tubruq|Yafran|Zlitan",e[134]="Balzers|Eschen|Gamprin|Mauren|Planken|Ruggell|Schaan|Schellenberg|Triesen|Triesenberg|Vaduz",
  e[135]="Akmenes Rajonas|Alytaus Rajonas|Alytus|Anyksciu Rajonas|Birstonas|Birzu Rajonas|Druskininkai|Ignalinos Rajonas|Jonavos Rajonas|Joniskio Rajonas|Jurbarko Rajonas|Kaisiadoriu Rajonas|Kaunas|Kauno Rajonas|Kedainiu Rajonas|Kelmes Rajonas|Klaipeda|Klaipedos Rajonas|Kretingos Rajonas|Kupiskio Rajonas|Lazdiju Rajonas|Marijampole|Marijampoles Rajonas|Mazeikiu Rajonas|Moletu Rajonas|Neringa Pakruojo Rajonas|Palanga|Panevezio Rajonas|Panevezys|Pasvalio Rajonas|Plunges Rajonas|Prienu Rajonas|Radviliskio Rajonas|Raseiniu Rajonas|Rokiskio Rajonas|Sakiu Rajonas|Salcininku Rajonas|Siauliai|Siauliu Rajonas|Silales Rajonas|Silutes Rajonas|Sirvintu Rajonas|Skuodo Rajonas|Svencioniu Rajonas|Taurages Rajonas|Telsiu Rajonas|Traku Rajonas|Ukmerges Rajonas|Utenos Rajonas|Varenos Rajonas|Vilkaviskio Rajonas|Vilniaus Rajonas|Vilnius|Zarasu Rajonas",e[136]="Diekirch|Grevenmacher|Luxembourg",e[137]="Macau",e[138]="Aracinovo|Bac|Belcista|Berovo|Bistrica|Bitola|Blatec|Bogdanci|Bogomila|Bogovinje|Bosilovo|Brvenica|Cair (Skopje)|Capari|Caska|Cegrane|Centar (Skopje)|Centar Zupa|Cesinovo|Cucer-Sandevo|Debar|Delcevo|Delogozdi|Demir Hisar|Demir Kapija|Dobrusevo|Dolna Banjica|Dolneni|Dorce Petrov (Skopje)|Drugovo|Dzepciste|Gazi Baba (Skopje)|Gevgelija|Gostivar|Gradsko|Ilinden|Izvor|Jegunovce|Kamenjane|Karbinci|Karpos (Skopje)|Kavadarci|Kicevo|Kisela Voda (Skopje)|Klecevce|Kocani|Konce|Kondovo|Konopiste|Kosel|Kratovo|Kriva Palanka|Krivogastani|Krusevo|Kuklis|Kukurecani|Kumanovo|Labunista|Lipkovo|Lozovo|Lukovo|Makedonska Kamenica|Makedonski Brod|Mavrovi Anovi|Meseista|Miravci|Mogila|Murtino|Negotino|Negotino-Poloska|Novaci|Novo Selo|Oblesevo|Ohrid|Orasac|Orizari|Oslomej|Pehcevo|Petrovec|Plasnia|Podares|Prilep|Probistip|Radovis|Rankovce|Resen|Rosoman|Rostusa|Samokov|Saraj|Sipkovica|Sopiste|Sopotnika|Srbinovo|Star Dojran|Staravina|Staro Nagoricane|Stip|Struga|Strumica|Studenicani|Suto Orizari (Skopje)|Sveti Nikole|Tearce|Tetovo|Topolcani|Valandovo|Vasilevo|Veles|Velesta|Vevcani|Vinica|Vitoliste|Vranestica|Vrapciste|Vratnica|Vrutok|Zajas|Zelenikovo|Zileno|Zitose|Zletovo|Zrnovci",e[139]="Antananarivo|Antsiranana|Fianarantsoa|Mahajanga|Toamasina|Toliara",e[140]="Balaka|Blantyre|Chikwawa|Chiradzulu|Chitipa|Dedza|Dowa|Karonga|Kasungu|Likoma|Lilongwe|Machinga (Kasupe)|Mangochi|Mchinji|Mulanje|Mwanza|Mzimba|Nkhata Bay|Nkhotakota|Nsanje|Ntcheu|Ntchisi|Phalombe|Rumphi|Salima|Thyolo|Zomba",e[141]="Johor|Kedah|Kelantan|Labuan|Melaka|Negeri Sembilan|Pahang|Perak|Perlis|Pulau Pinang|Sabah|Sarawak|Selangor|Terengganu|Wilayah Persekutuan",e[142]="Alifu|Baa|Dhaalu|Faafu|Gaafu Alifu|Gaafu Dhaalu|Gnaviyani|Haa Alifu|Haa Dhaalu|Kaafu|Laamu|Lhaviyani|Maale|Meemu|Noonu|Raa|Seenu|Shaviyani|Thaa|Vaavu",e[143]="Gao|Kayes|Kidal|Koulikoro|Mopti|Segou|Sikasso|Tombouctou",e[144]="Valletta",e[145]="Man, Isle of",e[146]="Ailinginae|Ailinglaplap|Ailuk|Arno|Aur|Bikar|Bikini|Bokak|Ebon|Enewetak|Erikub|Jabat|Jaluit|Jemo|Kili|Kwajalein|Lae|Lib|Likiep|Majuro|Maloelap|Mejit|Mili|Namorik|Namu|Rongelap|Rongrik|Toke|Ujae|Ujelang|Utirik|Wotho|Wotje",e[147]="Martinique",e[148]="Adrar|Assaba|Brakna|Dakhlet Nouadhibou|Gorgol|Guidimaka|Hodh Ech Chargui|Hodh El Gharbi|Inchiri|Nouakchott|Tagant|Tiris Zemmour|Trarza",e[149]="Agalega Islands|Black River|Cargados Carajos Shoals|Flacq|Grand Port|Moka|Pamplemousses|Plaines Wilhems|Port Louis|Riviere du Rempart|Rodrigues|Savanne",e[150]="Mayotte",e[151]="Aguascalientes|Baja California|Baja California Sur|Campeche|Chiapas|Chihuahua|Coahuila de Zaragoza|Colima|Distrito Federal|Durango|Guanajuato|Guerrero|Hidalgo|Jalisco|Mexico|Michoacan de Ocampo|Morelos|Nayarit|Nuevo Leon|Oaxaca|Puebla|Queretaro de Arteaga|Quintana Roo|San Luis Potosi|Sinaloa|Sonora|Tabasco|Tamaulipas|Tlaxcala|Veracruz-Llave|Yucatan|Zacatecas",e[152]="Chuuk (Truk)|Kosrae|Pohnpei|Yap",e[153]="Midway Islands",e[154]="Balti|Cahul|Chisinau|Chisinau|Dubasari|Edinet|Gagauzia|Lapusna|Orhei|Soroca|Tighina|Ungheni",e[155]="Fontvieille|La Condamine|Monaco-Ville|Monte-Carlo",e[156]="Arhangay|Bayan-Olgiy|Bayanhongor|Bulgan|Darhan|Dornod|Dornogovi|Dundgovi|Dzavhan|Erdenet|Govi-Altay|Hentiy|Hovd|Hovsgol|Omnogovi|Ovorhangay|Selenge|Suhbaatar|Tov|Ulaanbaatar|Uvs",e[157]="Saint Anthony|Saint Georges|Saint Peter's",e[158]="Agadir|Al Hoceima|Azilal|Ben Slimane|Beni Mellal|Boulemane|Casablanca|Chaouen|El Jadida|El Kelaa des Srarhna|Er Rachidia|Essaouira|Fes|Figuig|Guelmim|Ifrane|Kenitra|Khemisset|Khenifra|Khouribga|Laayoune|Larache|Marrakech|Meknes|Nador|Ouarzazate|Oujda|Rabat-Sale|Safi|Settat|Sidi Kacem|Tan-Tan|Tanger|Taounate|Taroudannt|Tata|Taza|Tetouan|Tiznit",e[159]="Cabo Delgado|Gaza|Inhambane|Manica|Maputo|Nampula|Niassa|Sofala|Tete|Zambezia",e[160]="Caprivi|Erongo|Hardap|Karas|Khomas|Kunene|Ohangwena|Okavango|Omaheke|Omusati|Oshana|Oshikoto|Otjozondjupa",e[161]="Aiwo|Anabar|Anetan|Anibare|Baiti|Boe|Buada|Denigomodu|Ewa|Ijuw|Meneng|Nibok|Uaboe|Yaren",e[162]="Bagmati|Bheri|Dhawalagiri|Gandaki|Janakpur|Karnali|Kosi|Lumbini|Mahakali|Mechi|Narayani|Rapti|Sagarmatha|Seti",e[163]="Drenthe|Flevoland|Friesland|Gelderland|Groningen|Limburg|Noord-Brabant|Noord-Holland|Overijssel|Utrecht|Zeeland|Zuid-Holland",e[164]="Netherlands Antilles",e[165]="Iles Loyaute|Nord|Sud",e[166]="Akaroa|Amuri|Ashburton|Bay of Islands|Bruce|Buller|Chatham Islands|Cheviot|Clifton|Clutha|Cook|Dannevirke|Egmont|Eketahuna|Ellesmere|Eltham|Eyre|Featherston|Franklin|Golden Bay|Great Barrier Island|Grey|Hauraki Plains|Hawera|Hawke's Bay|Heathcote|Hikurangi|Hobson|Hokianga|Horowhenua|Hurunui|Hutt|Inangahua|Inglewood|Kaikoura|Kairanga|Kiwitea|Lake|Mackenzie|Malvern|Manaia|Manawatu|Mangonui|Maniototo|Marlborough|Masterton|Matamata|Mount Herbert|Ohinemuri|Opotiki|Oroua|Otamatea|Otorohanga|Oxford|Pahiatua|Paparua|Patea|Piako|Pohangina|Raglan|Rangiora|Rangitikei|Rodney|Rotorua|Runanga|Saint Kilda|Silverpeaks|Southland|Stewart Island|Stratford|Strathallan|Taranaki|Taumarunui|Taupo|Tauranga|Thames-Coromandel|Tuapeka|Vincent|Waiapu|Waiheke|Waihemo|Waikato|Waikohu|Waimairi|Waimarino|Waimate|Waimate West|Waimea|Waipa|Waipawa|Waipukurau|Wairarapa South|Wairewa|Wairoa|Waitaki|Waitomo|Waitotara|Wallace|Wanganui|Waverley|Westland|Whakatane|Whangarei|Whangaroa|Woodville",e[167]="Atlantico Norte|Atlantico Sur|Boaco|Carazo|Chinandega|Chontales|Esteli|Granada|Jinotega|Leon|Madriz|Managua|Masaya|Matagalpa|Nueva Segovia|Rio San Juan|Rivas",e[168]="Agadez|Diffa|Dosso|Maradi|Niamey|Tahoua|Tillaberi|Zinder",e[169]="Abia|Abuja Federal Capital Territory|Adamawa|Akwa Ibom|Anambra|Bauchi|Bayelsa|Benue|Borno|Cross River|Delta|Ebonyi|Edo|Ekiti|Enugu|Gombe|Imo|Jigawa|Kaduna|Kano|Katsina|Kebbi|Kogi|Kwara|Lagos|Nassarawa|Niger|Ogun|Ondo|Osun|Oyo|Plateau|Rivers|Sokoto|Taraba|Yobe|Zamfara",e[170]="Niue",e[171]="Norfolk Island",e[172]="Northern Islands|Rota|Saipan|Tinian",e[173]="Akershus|Aust-Agder|Buskerud|Finnmark|Hedmark|Hordaland|More og Romsdal|Nord-Trondelag|Nordland|Oppland|Oslo|Ostfold|Rogaland|Sogn og Fjordane|Sor-Trondelag|Telemark|Troms|Vest-Agder|Vestfold",e[174]="Ad Dakhiliyah|Al Batinah|Al Wusta|Ash Sharqiyah|Az Zahirah|Masqat|Musandam|Zufar",e[175]="Balochistan|Federally Administered Tribal Areas|Islamabad Capital Territory|North-West Frontier Province|Punjab|Sindh",e[176]="Aimeliik|Airai|Angaur|Hatobohei|Kayangel|Koror|Melekeok|Ngaraard|Ngarchelong|Ngardmau|Ngatpang|Ngchesar|Ngeremlengui|Ngiwal|Palau Island|Peleliu|Sonsoral|Tobi",e[177]="Bocas del Toro|Chiriqui|Cocle|Colon|Darien|Herrera|Los Santos|Panama|San Blas|Veraguas",e[178]="Bougainville|Central|Chimbu|East New Britain|East Sepik|Eastern Highlands|Enga|Gulf|Madang|Manus|Milne Bay|Morobe|National Capital|New Ireland|Northern|Sandaun|Southern Highlands|West New Britain|Western|Western Highlands",e[179]="Alto Paraguay|Alto Parana|Amambay|Asuncion (city)|Boqueron|Caaguazu|Caazapa|Canindeyu|Central|Concepcion|Cordillera|Guaira|Itapua|Misiones|Neembucu|Paraguari|Presidente Hayes|San Pedro",e[180]="Amazonas|Ancash|Apurimac|Arequipa|Ayacucho|Cajamarca|Callao|Cusco|Huancavelica|Huanuco|Ica|Junin|La Libertad|Lambayeque|Lima|Loreto|Madre de Dios|Moquegua|Pasco|Piura|Puno|San Martin|Tacna|Tumbes|Ucayali",e[181]="Abra|Agusan del Norte|Agusan del Sur|Aklan|Albay|Angeles|Antique|Aurora|Bacolod|Bago|Baguio|Bais|Basilan|Basilan City|Bataan|Batanes|Batangas|Batangas City|Benguet|Bohol|Bukidnon|Bulacan|Butuan|Cabanatuan|Cadiz|Cagayan|Cagayan de Oro|Calbayog|Caloocan|Camarines Norte|Camarines Sur|Camiguin|Canlaon|Capiz|Catanduanes|Cavite|Cavite City|Cebu|Cebu City|Cotabato|Dagupan|Danao|Dapitan|Davao City Davao|Davao del Sur|Davao Oriental|Dipolog|Dumaguete|Eastern Samar|General Santos|Gingoog|Ifugao|Iligan|Ilocos Norte|Ilocos Sur|Iloilo|Iloilo City|Iriga|Isabela|Kalinga-Apayao|La Carlota|La Union|Laguna|Lanao del Norte|Lanao del Sur|Laoag|Lapu-Lapu|Legaspi|Leyte|Lipa|Lucena|Maguindanao|Mandaue|Manila|Marawi|Marinduque|Masbate|Mindoro Occidental|Mindoro Oriental|Misamis Occidental|Misamis Oriental|Mountain|Naga|Negros Occidental|Negros Oriental|North Cotabato|Northern Samar|Nueva Ecija|Nueva Vizcaya|Olongapo|Ormoc|Oroquieta|Ozamis|Pagadian|Palawan|Palayan|Pampanga|Pangasinan|Pasay|Puerto Princesa|Quezon|Quezon City|Quirino|Rizal|Romblon|Roxas|Samar|San Carlos (in Negros Occidental)|San Carlos (in Pangasinan)|San Jose|San Pablo|Silay|Siquijor|Sorsogon|South Cotabato|Southern Leyte|Sultan Kudarat|Sulu|Surigao|Surigao del Norte|Surigao del Sur|Tacloban|Tagaytay|Tagbilaran|Tangub|Tarlac|Tawitawi|Toledo|Trece Martires|Zambales|Zamboanga|Zamboanga del Norte|Zamboanga del Sur",e[182]="Pitcaim Islands",e[183]="Dolnoslaskie|Kujawsko-Pomorskie|Lodzkie|Lubelskie|Lubuskie|Malopolskie|Mazowieckie|Opolskie|Podkarpackie|Podlaskie|Pomorskie|Slaskie|Swietokrzyskie|Warminsko-Mazurskie|Wielkopolskie|Zachodniopomorskie",e[184]="Acores (Azores)|Aveiro|Beja|Braga|Braganca|Castelo Branco|Coimbra|Evora|Faro|Guarda|Leiria|Lisboa|Madeira|Portalegre|Porto|Santarem|Setubal|Viana do Castelo|Vila Real|Viseu",e[185]="Adjuntas|Aguada|Aguadilla|Aguas Buenas|Aibonito|Anasco|Arecibo|Arroyo|Barceloneta|Barranquitas|Bayamon|Cabo Rojo|Caguas|Camuy|Canovanas|Carolina|Catano|Cayey|Ceiba|Ciales|Cidra|Coamo|Comerio|Corozal|Culebra|Dorado|Fajardo|Florida|Guanica|Guayama|Guayanilla|Guaynabo|Gurabo|Hatillo|Hormigueros|Humacao|Isabela|Jayuya|Juana Diaz|Juncos|Lajas|Lares|Las Marias|Las Piedras|Loiza|Luquillo|Manati|Maricao|Maunabo|Mayaguez|Moca|Morovis|Naguabo|Naranjito|Orocovis|Patillas|Penuelas|Ponce|Quebradillas|Rincon|Rio Grande|Sabana Grande|Salinas|San German|San Juan|San Lorenzo|San Sebastian|Santa Isabel|Toa Alta|Toa Baja|Trujillo Alto|Utuado|Vega Alta|Vega Baja|Vieques|Villalba|Yabucoa|Yauco",e[186]="Ad Dawhah|Al Ghuwayriyah|Al Jumayliyah|Al Khawr|Al Wakrah|Ar Rayyan|Jarayan al Batinah|Madinat ash Shamal|Umm Salal",e[187]="Reunion",e[188]="Alba|Arad|Arges|Bacau|Bihor|Bistrita-Nasaud|Botosani|Braila|Brasov|Bucuresti|Buzau|Calarasi|Caras-Severin|Cluj|Constanta|Covasna|Dimbovita|Dolj|Galati|Giurgiu|Gorj|Harghita|Hunedoara|Ialomita|Iasi|Maramures|Mehedinti|Mures|Neamt|Olt|Prahova|Salaj|Satu Mare|Sibiu|Suceava|Teleorman|Timis|Tulcea|Vaslui|Vilcea|Vrancea",e[189]="Adygeya (Maykop)|Aginskiy Buryatskiy (Aginskoye)|Altay (Gorno-Altaysk)|Altayskiy (Barnaul)|Amurskaya (Blagoveshchensk)|Arkhangel'skaya|Astrakhanskaya|Bashkortostan (Ufa)|Belgorodskaya|Bryanskaya|Buryatiya (Ulan-Ude)|Chechnya (Groznyy)|Chelyabinskaya|Chitinskaya|Chukotskiy (Anadyr')|Chuvashiya (Cheboksary)|Dagestan (Makhachkala)|Evenkiyskiy (Tura)|Ingushetiya (Nazran')|Irkutskaya|Ivanovskaya|Kabardino-Balkariya (Nal'chik)|Kaliningradskaya|Kalmykiya (Elista)|Kaluzhskaya|Kamchatskaya (Petropavlovsk-Kamchatskiy)|Karachayevo-Cherkesiya (Cherkessk)|Kareliya (Petrozavodsk)|Kemerovskaya|Khabarovskiy|Khakasiya (Abakan)|Khanty-Mansiyskiy (Khanty-Mansiysk)|Kirovskaya|Komi (Syktyvkar)|Komi-Permyatskiy (Kudymkar)|Koryakskiy (Palana)|Kostromskaya|Krasnodarskiy|Krasnoyarskiy|Kurganskaya|Kurskaya|Leningradskaya|Lipetskaya|Magadanskaya|Mariy-El (Yoshkar-Ola)|Mordoviya (Saransk)|Moskovskaya|Moskva (Moscow)|Murmanskaya|Nenetskiy (Nar'yan-Mar)|Nizhegorodskaya|Novgorodskaya|Novosibirskaya|Omskaya|Orenburgskaya|Orlovskaya (Orel)|Penzenskaya|Permskaya|Primorskiy (Vladivostok)|Pskovskaya|Rostovskaya|Ryazanskaya|Sakha (Yakutsk)|Sakhalinskaya (Yuzhno-Sakhalinsk)|Samarskaya|Sankt-Peterburg (Saint Petersburg)|Saratovskaya|Severnaya Osetiya-Alaniya [North Ossetia] (Vladikavkaz)|Smolenskaya|Stavropol'skiy|Sverdlovskaya (Yekaterinburg)|Tambovskaya|Tatarstan (Kazan')|Taymyrskiy (Dudinka)|Tomskaya|Tul'skaya|Tverskaya|Tyumenskaya|Tyva (Kyzyl)|Udmurtiya (Izhevsk)|Ul'yanovskaya|Ust'-Ordynskiy Buryatskiy (Ust'-Ordynskiy)|Vladimirskaya|Volgogradskaya|Vologodskaya|Voronezhskaya|Yamalo-Nenetskiy (Salekhard)|Yaroslavskaya|Yevreyskaya",e[190]="Butare|Byumba|Cyangugu|Gikongoro|Gisenyi|Gitarama|Kibungo|Kibuye|Kigali Rurale|Kigali-ville|Ruhengeri|Umutara",e[191]="Ascension|Saint Helena|Tristan da Cunha",e[192]="Christ Church Nichola Town|Saint Anne Sandy Point|Saint George Basseterre|Saint George Gingerland|Saint James Windward|Saint John Capisterre|Saint John Figtree|Saint Mary Cayon|Saint Paul Capisterre|Saint Paul Charlestown|Saint Peter Basseterre|Saint Thomas Lowland|Saint Thomas Middle Island|Trinity Palmetto Point",e[193]="Anse-la-Raye|Castries|Choiseul|Dauphin|Dennery|Gros Islet|Laborie|Micoud|Praslin|Soufriere|Vieux Fort",e[194]="Miquelon|Saint Pierre",e[195]="Charlotte|Grenadines|Saint Andrew|Saint David|Saint George|Saint Patrick",e[196]="A'ana|Aiga-i-le-Tai|Atua|Fa'asaleleaga|Gaga'emauga|Gagaifomauga|Palauli|Satupa'itea|Tuamasaga|Va'a-o-Fonoti|Vaisigano",e[197]="Acquaviva|Borgo Maggiore|Chiesanuova|Domagnano|Faetano|Fiorentino|Monte Giardino|San Marino|Serravalle",e[198]="Principe|Sao Tome",e[199]="'Asir|Al Bahah|Al Hudud ash Shamaliyah|Al Jawf|Al Madinah|Al Qasim|Ar Riyad|Ash Sharqiyah (Eastern Province)|Ha'il|Jizan|Makkah|Najran|Tabuk";e[200]="Aberdeen City|Aberdeenshire|Angus|Argyll and Bute|City of Edinburgh|Clackmannanshire|Dumfries and Galloway|Dundee City|East Ayrshire|East Dunbartonshire|East Lothian|East Renfrewshire|Eilean Siar (Western Isles)|Falkirk|Fife|Glasgow City|Highland|Inverclyde|Midlothian|Moray|North Ayrshire|North Lanarkshire|Orkney Islands|Perth and Kinross|Renfrewshire|Shetland Islands|South Ayrshire|South Lanarkshire|Stirling|The Scottish Borders|West Dunbartonshire|West Lothian",e[201]="Dakar|Diourbel|Fatick|Kaolack|Kolda|Louga|Saint-Louis|Tambacounda|Thies|Ziguinchor",e[202]="Anse aux Pins|Anse Boileau|Anse Etoile|Anse Louis|Anse Royale|Baie Lazare|Baie Sainte Anne|Beau Vallon|Bel Air|Bel Ombre|Cascade|Glacis|Grand' Anse (on Mahe)|Grand' Anse (on Praslin)|La Digue|La Riviere Anglaise|Mont Buxton|Mont Fleuri|Plaisance|Pointe La Rue|Port Glaud|Saint Louis|Takamaka",e[203]="Eastern|Northern|Southern|Western",e[204]="Singapore",e[205]="Banskobystricky|Bratislavsky|Kosicky|Nitriansky|Presovsky|Trenciansky|Trnavsky|Zilinsky",e[206]="Ajdovscina|Beltinci|Bled|Bohinj|Borovnica|Bovec|Brda|Brezice|Brezovica|Cankova-Tisina|Celje|Cerklje na Gorenjskem|Cerknica|Cerkno|Crensovci|Crna na Koroskem|Crnomelj|Destrnik-Trnovska Vas|Divaca|Dobrepolje|Dobrova-Horjul-Polhov Gradec|Dol pri Ljubljani|Domzale|Dornava|Dravograd|Duplek|Gorenja Vas-Poljane|Gorisnica|Gornja Radgona|Gornji Grad|Gornji Petrovci|Grosuplje|Hodos Salovci|Hrastnik|Hrpelje-Kozina|Idrija|Ig|Ilirska Bistrica|Ivancna Gorica|Izola|Jesenice|Jursinci|Kamnik|Kanal|Kidricevo|Kobarid|Kobilje|Kocevje|Komen|Koper|Kozje|Kranj|Kranjska Gora|Krsko|Kungota|Kuzma|Lasko|Lenart|Lendava|Litija|Ljubljana|Ljubno|Ljutomer|Logatec|Loska Dolina|Loski Potok|Luce|Lukovica|Majsperk|Maribor|Medvode|Menges|Metlika|Mezica|Miren-Kostanjevica|Mislinja|Moravce|Moravske Toplice|Mozirje|Murska Sobota|Muta|Naklo|Nazarje|Nova Gorica|Novo Mesto|Odranci|Ormoz|Osilnica|Pesnica|Piran|Pivka|Podcetrtek|Podvelka-Ribnica|Postojna|Preddvor|Ptuj|Puconci|Race-Fram|Radece|Radenci|Radlje ob Dravi|Radovljica|Ravne-Prevalje|Ribnica|Rogasevci|Rogaska Slatina|Rogatec|Ruse|Semic|Sencur|Sentilj|Sentjernej|Sentjur pri Celju|Sevnica|Sezana|Skocjan|Skofja Loka|Skofljica|Slovenj Gradec|Slovenska Bistrica|Slovenske Konjice|Smarje pri Jelsah|Smartno ob Paki|Sostanj|Starse|Store|Sveti Jurij|Tolmin|Trbovlje|Trebnje|Trzic|Turnisce|Velenje|Velike Lasce|Videm|Vipava|Vitanje|Vodice|Vojnik|Vrhnika|Vuzenica|Zagorje ob Savi|Zalec|Zavrc|Zelezniki|Ziri|Zrece",e[207]="Bellona|Central|Choiseul (Lauru)|Guadalcanal|Honiara|Isabel|Makira|Malaita|Rennell|Temotu|Western",e[208]="Awdal|Bakool|Banaadir|Bari|Bay|Galguduud|Gedo|Hiiraan|Jubbada Dhexe|Jubbada Hoose|Mudug|Nugaal|Sanaag|Shabeellaha Dhexe|Shabeellaha Hoose|Sool|Togdheer|Woqooyi Galbeed",e[209]="Eastern Cape|Free State|Gauteng|KwaZulu-Natal|Mpumalanga|North-West|Northern Cape|Northern Province|Western Cape",e[210]="Bird Island|Bristol Island|Clerke Rocks|Montagu Island|Saunders Island|South Georgia|Southern Thule|Traversay Islands",e[211]="Andalucia|Aragon|Asturias|Baleares (Balearic Islands)|Canarias (Canary Islands)|Cantabria|Castilla y Leon|Castilla-La Mancha|Cataluna|Ceuta|Communidad Valencian|Extremadura|Galicia|Islas Chafarinas|La Rioja|Madrid|Melilla|Murcia|Navarra|Pais Vasco (Basque Country)|Penon de Alhucemas|Penon de Velez de la Gomera",e[212]="Spratly Islands",e[213]="Central|Eastern|North Central|North Eastern|North Western|Northern|Sabaragamuwa|Southern|Uva|Western",e[214]="A'ali an Nil|Al Bahr al Ahmar|Al Buhayrat|Al Jazirah|Al Khartum|Al Qadarif|Al Wahdah|An Nil al Abyad|An Nil al Azraq|Ash Shamaliyah|Bahr al Jabal|Gharb al Istiwa'iyah|Gharb Bahr al Ghazal|Gharb Darfur|Gharb Kurdufan|Janub Darfur|Janub Kurdufan|Junqali|Kassala|Nahr an Nil|Shamal Bahr al Ghazal|Shamal Darfur|Shamal Kurdufan|Sharq al Istiwa'iyah|Sinnar|Warab",e[215]="Brokopondo|Commewijne|Coronie|Marowijne|Nickerie|Para|Paramaribo|Saramacca|Sipaliwini|Wanica",e[216]="Barentsoya|Bjornoya|Edgeoya|Hopen|Kvitoya|Nordaustandet|Prins Karls Forland|Spitsbergen",e[217]="Hhohho|Lubombo|Manzini|Shiselweni",e[218]="Blekinge|Dalarnas|Gavleborgs|Gotlands|Hallands|Jamtlands|Jonkopings|Kalmar|Kronobergs|Norrbottens|Orebro|Ostergotlands|Skane|Sodermanlands|Stockholms|Uppsala|Varmlands|Vasterbottens|Vasternorrlands|Vastmanlands|Vastra Gotalands",e[219]="Aargau|Ausser-Rhoden|Basel-Landschaft|Basel-Stadt|Bern|Fribourg|Geneve|Glarus|Graubunden|Inner-Rhoden|Jura|Luzern|Neuchatel|Nidwalden|Obwalden|Sankt Gallen|Schaffhausen|Schwyz|Solothurn|Thurgau|Ticino|Uri|Valais|Vaud|Zug|Zurich",e[220]="Al Hasakah|Al Ladhiqiyah|Al Qunaytirah|Ar Raqqah|As Suwayda'|Dar'a|Dayr az Zawr|Dimashq|Halab|Hamah|Hims|Idlib|Rif Dimashq|Tartus",e[221]="Chang-hua|Chi-lung|Chia-i|Chia-i|Chung-hsing-hsin-ts'un|Hsin-chu|Hsin-chu|Hua-lien|I-lan|Kao-hsiung|Kao-hsiung|Miao-li|Nan-t'ou|P'eng-hu|P'ing-tung|T'ai-chung|T'ai-chung|T'ai-nan|T'ai-nan|T'ai-pei|T'ai-pei|T'ai-tung|T'ao-yuan|Yun-lin",e[222]="Viloyati Khatlon|Viloyati Leninobod|Viloyati Mukhtori Kuhistoni Badakhshon",e[223]="Arusha|Dar es Salaam|Dodoma|Iringa|Kagera|Kigoma|Kilimanjaro|Lindi|Mara|Mbeya|Morogoro|Mtwara|Mwanza|Pemba North|Pemba South|Pwani|Rukwa|Ruvuma|Shinyanga|Singida|Tabora|Tanga|Zanzibar Central/South|Zanzibar North|Zanzibar Urban/West",e[224]="Amnat Charoen|Ang Thong|Buriram|Chachoengsao|Chai Nat|Chaiyaphum|Chanthaburi|Chiang Mai|Chiang Rai|Chon Buri|Chumphon|Kalasin|Kamphaeng Phet|Kanchanaburi|Khon Kaen|Krabi|Krung Thep Mahanakhon (Bangkok)|Lampang|Lamphun|Loei|Lop Buri|Mae Hong Son|Maha Sarakham|Mukdahan|Nakhon Nayok|Nakhon Pathom|Nakhon Phanom|Nakhon Ratchasima|Nakhon Sawan|Nakhon Si Thammarat|Nan|Narathiwat|Nong Bua Lamphu|Nong Khai|Nonthaburi|Pathum Thani|Pattani|Phangnga|Phatthalung|Phayao|Phetchabun|Phetchaburi|Phichit|Phitsanulok|Phra Nakhon Si Ayutthaya|Phrae|Phuket|Prachin Buri|Prachuap Khiri Khan|Ranong|Ratchaburi|Rayong|Roi Et|Sa Kaeo|Sakon Nakhon|Samut Prakan|Samut Sakhon|Samut Songkhram|Sara Buri|Satun|Sing Buri|Sisaket|Songkhla|Sukhothai|Suphan Buri|Surat Thani|Surin|Tak|Trang|Trat|Ubon Ratchathani|Udon Thani|Uthai Thani|Uttaradit|Yala|Yasothon",e[225]="Tobago",e[226]="De La Kara|Des Plateaux|Des Savanes|Du Centre|Maritime",e[227]="Atafu|Fakaofo|Nukunonu",e[228]="Ha'apai|Tongatapu|Vava'u",e[229]="Arima|Caroni|Mayaro|Nariva|Port-of-Spain|Saint Andrew|Saint David|Saint George|Saint Patrick|San Fernando|Victoria",e[230]="Ariana|Beja|Ben Arous|Bizerte|El Kef|Gabes|Gafsa|Jendouba|Kairouan|Kasserine|Kebili|Mahdia|Medenine|Monastir|Nabeul|Sfax|Sidi Bou Zid|Siliana|Sousse|Tataouine|Tozeur|Tunis|Zaghouan",e[231]="Adana|Adiyaman|Afyon|Agri|Aksaray|Amasya|Ankara|Antalya|Ardahan|Artvin|Aydin|Balikesir|Bartin|Batman|Bayburt|Bilecik|Bingol|Bitlis|Bolu|Burdur|Bursa|Canakkale|Cankiri|Corum|Denizli|Diyarbakir|Duzce|Edirne|Elazig|Erzincan|Erzurum|Eskisehir|Gaziantep|Giresun|Gumushane|Hakkari|Hatay|Icel|Igdir|Isparta|Istanbul|Izmir|Kahramanmaras|Karabuk|Karaman|Kars|Kastamonu|Kayseri|Kilis|Kirikkale|Kirklareli|Kirsehir|Kocaeli|Konya|Kutahya|Malatya|Manisa|Mardin|Mugla|Mus|Nevsehir|Nigde|Ordu|Osmaniye|Rize|Sakarya|Samsun|Sanliurfa|Siirt|Sinop|Sirnak|Sivas|Tekirdag|Tokat|Trabzon|Tunceli|Usak|Van|Yalova|Yozgat|Zonguldak",e[232]="Ahal Welayaty|Balkan Welayaty|Dashhowuz Welayaty|Lebap Welayaty|Mary Welayaty",e[233]="Tuvalu",e[234]="Adjumani|Apac|Arua|Bugiri|Bundibugyo|Bushenyi|Busia|Gulu|Hoima|Iganga|Jinja|Kabale|Kabarole|Kalangala|Kampala|Kamuli|Kapchorwa|Kasese|Katakwi|Kibale|Kiboga|Kisoro|Kitgum|Kotido|Kumi|Lira|Luwero|Masaka|Masindi|Mbale|Mbarara|Moroto|Moyo|Mpigi|Mubende|Mukono|Nakasongola|Nebbi|Ntungamo|Pallisa|Rakai|Rukungiri|Sembabule|Soroti|Tororo",e[235]="Avtonomna Respublika Krym (Simferopol')|Cherkas'ka (Cherkasy)|Chernihivs'ka (Chernihiv)|Chernivets'ka (Chernivtsi)|Dnipropetrovs'ka (Dnipropetrovs'k)|Donets'ka (Donets'k)|Ivano-Frankivs'ka (Ivano-Frankivs'k)|Kharkivs'ka (Kharkiv)|Khersons'ka (Kherson)|Khmel'nyts'ka (Khmel'nyts'kyy)|Kirovohrads'ka (Kirovohrad)|Kyyiv|Kyyivs'ka (Kiev)|L'vivs'ka (L'viv)|Luhans'ka (Luhans'k)|Mykolayivs'ka (Mykolayiv)|Odes'ka (Odesa)|Poltavs'ka (Poltava)|Rivnens'ka (Rivne)|Sevastopol'|Sums'ka (Sumy)|Ternopil's'ka (Ternopil')|Vinnyts'ka (Vinnytsya)|Volyns'ka (Luts'k)|Zakarpats'ka (Uzhhorod)|Zaporiz'ka (Zaporizhzhya)|Zhytomyrs'ka (Zhytomyr)",e[236]="'Ajman|Abu Zaby (Abu Dhabi)|Al Fujayrah|Ash Shariqah (Sharjah)|Dubayy (Dubai)|Ra's al Khaymah|Umm al Qaywayn",e[237]="Barking and Dagenham|Barnet|Barnsley|Bath and North East Somerset|Bedfordshire|Bexley|Birmingham|Blackburn with Darwen|Blackpool|Bolton|Bournemouth|Bracknell Forest|Bradford|Brent|Brighton and Hove|Bromley|Buckinghamshire|Bury|Calderdale|Cambridgeshire|Camden|Cheshire|City of Bristol|City of Kingston upon Hull|City of London|Cornwall|Coventry|Croydon|Cumbria|Darlington|Derby|Derbyshire|Devon|Doncaster|Dorset|Dudley|Durham|Ealing|East Riding of Yorkshire|East Sussex|Enfield|Essex|Gateshead|Gloucestershire|Greenwich|Hackney|Halton|Hammersmith and Fulham|Hampshire|Haringey|Harrow|Hartlepool|Havering|Herefordshire|Hertfordshire|Hillingdon|Hounslow|Isle of Wight|Islington|Kensington and Chelsea|Kent|Kingston upon Thames|Kirklees|Knowsley|Lambeth|Lancashire|Leeds|Leicester|Leicestershire|Lewisham|Lincolnshire|Liverpool|Luton|Manchester|Medway|Merton|Middlesbrough|Milton Keynes|Newcastle upon Tyne|Newham|Norfolk|North East Lincolnshire|North Lincolnshire|North Somerset|North Tyneside|North Yorkshire|Northamptonshire|Northumberland|Nottingham|Nottinghamshire|Oldham|Oxfordshire|Peterborough|Plymouth|Poole|Portsmouth|Reading|Redbridge|Redcar and Cleveland|Richmond upon Thames|Rochdale|Rotherham|Rutland|Salford|Sandwell|Sefton|Sheffield|Shropshire|Slough|Solihull|Somerset|South Gloucestershire|South Tyneside|Southampton|Southend-on-Sea|Southwark|St. Helens|Staffordshire|Stockport|Stockton-on-Tees|Stoke-on-Trent|Suffolk|Sunderland|Surrey|Sutton|Swindon|Tameside|Telford and Wrekin|Thurrock|Torbay|Tower Hamlets|Trafford|Wakefield|Walsall|Waltham Forest|Wandsworth|Warrington|Warwickshire|West Berkshire|West Sussex|Westminster|Wigan|Wiltshire|Windsor and Maidenhead|Wirral|Wokingham|Wolverhampton|Worcestershire|York",e[238]="Artigas|Canelones|Cerro Largo|Colonia|Durazno|Flores|Florida|Lavalleja|Maldonado|Montevideo|Paysandu|Rio Negro|Rivera|Rocha|Salto|San Jose|Soriano|Tacuarembo|Treinta y Tres",e[239]="Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|District of Columbia|Florida|Georgia|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentucky|Louisiana|Maine|Maryland|Massachusetts|Michigan|Minnesota|Mississippi|Missouri|Montana|Nebraska|Nevada|New Hampshire|New Jersey|New Mexico|New York|North Carolina|North Dakota|Ohio|Oklahoma|Oregon|Pennsylvania|Rhode Island|South Carolina|South Dakota|Tennessee|Texas|Utah|Vermont|Virginia|Washington|West Virginia|Wisconsin|Wyoming",e[240]="Andijon Wiloyati|Bukhoro Wiloyati|Farghona Wiloyati|Jizzakh Wiloyati|Khorazm Wiloyati (Urganch)|Namangan Wiloyati|Nawoiy Wiloyati|Qashqadaryo Wiloyati (Qarshi)|Qoraqalpoghiston (Nukus)|Samarqand Wiloyati|Sirdaryo Wiloyati (Guliston)|Surkhondaryo Wiloyati (Termiz)|Toshkent Shahri|Toshkent Wiloyati",e[241]="Malampa|Penama|Sanma|Shefa|Tafea|Torba",e[242]="Amazonas|Anzoategui|Apure|Aragua|Barinas|Bolivar|Carabobo|Cojedes|Delta Amacuro|Dependencias Federales|Distrito Federal|Falcon|Guarico|Lara|Merida|Miranda|Monagas|Nueva Esparta|Portuguesa|Sucre|Tachira|Trujillo|Vargas|Yaracuy|Zulia",e[243]="An Giang|Ba Ria-Vung Tau|Bac Giang|Bac Kan|Bac Lieu|Bac Ninh|Ben Tre|Binh Dinh|Binh Duong|Binh Phuoc|Binh Thuan|Ca Mau|Can Tho|Cao Bang|Da Nang|Dac Lak|Dong Nai|Dong Thap|Gia Lai|Ha Giang|Ha Nam|Ha Noi|Ha Tay|Ha Tinh|Hai Duong|Hai Phong|Ho Chi Minh|Hoa Binh|Hung Yen|Khanh Hoa|Kien Giang|Kon Tum|Lai Chau|Lam Dong|Lang Son|Lao Cai|Long An|Nam Dinh|Nghe An|Ninh Binh|Ninh Thuan|Phu Tho|Phu Yen|Quang Binh|Quang Nam|Quang Ngai|Quang Ninh|Quang Tri|Soc Trang|Son La|Tay Ninh|Thai Binh|Thai Nguyen|Thanh Hoa|Thua Thien-Hue|Tien Giang|Tra Vinh|Tuyen Quang|Vinh Long|Vinh Phuc|Yen Bai",e[244]="Saint Croix|Saint John|Saint Thomas",e[245]="Blaenau Gwent|Bridgend|Caerphilly|Cardiff|Carmarthenshire|Ceredigion|Conwy|Denbighshire|Flintshire|Gwynedd|Isle of Anglesey|Merthyr Tydfil|Monmouthshire|Neath Port Talbot|Newport|Pembrokeshire|Powys|Rhondda Cynon Taff|Swansea|The Vale of Glamorgan|Torfaen|Wrexham",e[246]="Alo|Sigave|Wallis",e[247]="West Bank",e[248]="Western Sahara",e[249]="'Adan|'Ataq|Abyan|Al Bayda'|Al Hudaydah|Al Jawf|Al Mahrah|Al Mahwit|Dhamar|Hadhramawt|Hajjah|Ibb|Lahij|Ma'rib|Sa'dah|San'a'|Ta'izz",e[250]="Kosovo|Montenegro|Serbia|Vojvodina",e[251]="Central|Copperbelt|Eastern|Luapula|Lusaka|North-Western|Northern|Southern|Western",e[252]="Bulawayo|Harare|ManicalandMashonaland Central|Mashonaland East|Mashonaland West|Masvingo|Matabeleland North|Matabeleland South|Midlands";var f={data:[{p:"Beijing",c:["北京市"]},{p:"Tianjin",c:["天津市"]},{p:"Shanghai",c:["上海市"]},{p:"Chongqing",c:["重庆市"]},{p:"Hebei",c:["石家庄市","唐山市","秦皇岛市","邯郸市","邢台市","保定市","张家口市","承德市","沧州市","廊坊市","衡水市"]},{p:"Shaanxi",c:["太原市","大同市","阳泉市","长治市","晋城市","朔州市","晋中市","运城市","忻州市","临汾市","吕梁市"]},{p:"Nei Mongol",c:["呼和浩特市","包头市","乌海市","赤峰市","通辽市","鄂尔多斯市","呼伦贝尔市","巴彦淖尔市","乌兰察布市","兴安盟","锡林郭勒盟","阿拉善盟"]},{p:"Liaoning",c:["沈阳市","大连市","鞍山市","抚顺市","本溪市","丹东市","锦州市","营口市","阜新市","辽阳市","盘锦市","铁岭市","朝阳市","葫芦岛市"]},{p:"Jilin",c:["长春市","吉林市","四平市","辽源市","通化市","白山市","松原市","白城市","延边朝鲜族自治州"]},{p:"Heilongjiang",c:["哈尔滨市","齐齐哈尔市","鸡西市","鹤岗市","双鸭山市","大庆市","伊春市","佳木斯市","七台河市","牡丹江市","黑河市","绥化市","大兴安岭地区"]},{p:"Jiangsu",c:["南京市","无锡市","徐州市","常州市","苏州市","南通市","连云港市","淮安市","盐城市","扬州市","镇江市","泰州市","宿迁市"]},{p:"Zhejiang",c:["杭州市","宁波市","温州市","嘉兴市","湖州市","绍兴市","金华市","衢州市","舟山市","台州市","丽水市"]},{p:"Anhui",c:["合肥市","芜湖市","蚌埠市","淮南市","马鞍山市","淮北市","铜陵市","安庆市","黄山市","滁州市","阜阳市","宿州市","六安市","亳州市","池州市","宣城市"]},{p:"Fujian",c:["福州市","厦门市","莆田市","三明市","泉州市","漳州市","南平市","龙岩市","宁德市"]},{p:"Jiangxi",c:["南昌市","景德镇市","萍乡市","九江市","新余市","鹰潭市","赣州市","吉安市","宜春市","抚州市","上饶市"]},{p:"Shandong",c:["济南市","青岛市","淄博市","枣庄市","东营市","烟台市","潍坊市","济宁市","泰安市","威海市","日照市","莱芜市","临沂市","德州市","聊城市","滨州市","菏泽市"]},{p:"Henan",c:["郑州市","开封市","洛阳市","平顶山市","安阳市","鹤壁市","新乡市","焦作市","濮阳市","许昌市","漯河市","三门峡市","南阳市","商丘市","信阳市","周口市","驻马店市","省直辖县级行政区划"]},{p:"Hebei",c:["武汉市","黄石市","十堰市","宜昌市","襄阳市","鄂州市","荆门市","孝感市","荆州市","黄冈市","咸宁市","随州市","恩施土家族苗族自治州","省直辖县级行政区划"]},{p:"Hunan",c:["长沙市","株洲市","湘潭市","衡阳市","邵阳市","岳阳市","常德市","张家界市","益阳市","郴州市","永州市","怀化市","娄底市","湘西土家族苗族自治州"]},{p:"Guangdong",c:["广州市","韶关市","深圳市","珠海市","汕头市","佛山市","江门市","湛江市","茂名市","肇庆市","惠州市","梅州市","汕尾市","河源市","阳江市","清远市","东莞市","中山市","潮州市","揭阳市","云浮市"]},{p:"Guangxi",c:["南宁市","柳州市","桂林市","梧州市","北海市","防城港市","钦州市","贵港市","玉林市","百色市","贺州市","河池市","来宾市","崇左市"]},{p:"Hainan",c:["海口市","三亚市","省直辖县级行政区划"]},{p:"Sichuan",c:["成都市","自贡市","攀枝花市","泸州市","德阳市","绵阳市","广元市","遂宁市","内江市","乐山市","南充市","眉山市","宜宾市","广安市","达州市","雅安市","巴中市","资阳市","阿坝藏族羌族自治州","甘孜藏族自治州","凉山彝族自治州"]},{p:"Guizhou",c:["贵阳市","六盘水市","遵义市","安顺市","毕节市","铜仁市","黔西南布依族苗族自治州","黔东南苗族侗族自治州","黔南布依族苗族自治州"]},{p:"Yunnan",c:["昆明市","曲靖市","玉溪市","保山市","昭通市","丽江市","普洱市","临沧市","楚雄彝族自治州","红河哈尼族彝族自治州","文山壮族苗族自治州","西双版纳傣族自治州","大理白族自治州","德宏傣族景颇族自治州","怒江傈僳族自治州","迪庆藏族自治州"]},{p:"Xizang (Tibet)",c:["拉萨市","昌都地区","山南地区","日喀则地区","那曲地区","阿里地区","林芝地区"]},{p:"Shanxi",c:["西安市","铜川市","宝鸡市","咸阳市","渭南市","延安市","汉中市","榆林市","安康市","商洛市"]},{p:"Gansu",c:["兰州市","嘉峪关市","金昌市","白银市","天水市","武威市","张掖市","平凉市","酒泉市","庆阳市","定西市","陇南市","临夏回族自治州","甘南藏族自治州"]},{p:"Qinghai",c:["西宁市","海东地区","海北藏族自治州","黄南藏族自治州","海南藏族自治州","果洛藏族自治州","玉树藏族自治州","海西蒙古族藏族自治州"]},{p:"Ningxia",c:["银川市","石嘴山市","吴忠市","固原市","中卫市"]},{p:"Xinjiang",c:["乌鲁木齐市","克拉玛依市","吐鲁番地区","哈密地区","昌吉回族自治州","博尔塔拉蒙古自治州","巴音郭楞蒙古自治州","阿克苏地区","克孜勒苏柯尔克孜自治州","喀什地区","和田地区","伊犁哈萨克自治州","塔城地区","阿勒泰地区","自治区直辖县级行政区划"]}]};try{b("fromCountry","fromState")}catch(a){b("fromCountry")}var g=e[44].split("|"),h=document.getElementById("choiceState");h.length=0,h.options[0]=new Option("Select State",""),h.selectedIndex=0;for(var i=0;i<g.length;i++)h.options[h.length]=new Option(g[i],g[i]);var j=document.getElementById("choiceCity"),k=f.data;k.length;h.onclick=function(){if(""!==h.value){c();var a=h.options;Array.prototype.forEach.call(a,function(a){alert("above v.onclick"),a.onclick=function(){alert("in v.onclick"),alert(a.value),""!==h.value&&c()}})}}}(),window.Modernizr=function(a,b,c){function d(a){q.cssText=a}function e(a,b){return d(u.join(a+";")+(b||""))}function f(a,b){return typeof a===b}function g(a,b){return!!~(""+a).indexOf(b)}function h(a,b){for(var d in a){var e=a[d];if(!g(e,"-")&&q[e]!==c)return"pfx"!=b||e}return!1}function i(a,b,d){for(var e in a){var g=b[a[e]];if(g!==c)return!1===d?a[e]:f(g,"function")?g.bind(d||b):g}return!1}function j(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+w.join(d+" ")+d).split(" ");return f(b,"string")||f(b,"undefined")?h(e,b):(e=(a+" "+x.join(d+" ")+d).split(" "),i(e,b,c))}var k,l,m={},n=b.documentElement,o="modernizr",p=b.createElement(o),q=p.style,r=b.createElement("input"),s=":)",t={}.toString,u=" -webkit- -moz- -o- -ms- ".split(" "),v="Webkit Moz O ms",w=v.split(" "),x=v.toLowerCase().split(" "),y={svg:"http://www.w3.org/2000/svg"},z={},A={},B={},C=[],D=C.slice,E=function(a,c,d,e){var f,g,h,i,j=b.createElement("div"),k=b.body,l=k||b.createElement("body");if(parseInt(d,10))for(;d--;)h=b.createElement("div"),h.id=e?e[d]:o+(d+1),j.appendChild(h);return f=["&#173;",'<style id="s',o,'">',a,"</style>"].join(""),j.id=o,(k?j:l).innerHTML+=f,l.appendChild(j),k||(l.style.background="",l.style.overflow="hidden",i=n.style.overflow,n.style.overflow="hidden",n.appendChild(l)),g=c(j,a),k?j.parentNode.removeChild(j):(l.parentNode.removeChild(l),n.style.overflow=i),!!g},F=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b)&&c(b).matches||!1;var d;return E("@media "+b+" { #"+o+" { position: absolute; } }",function(b){d="absolute"==(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position}),d},G=function(){function a(a,e){e=e||b.createElement(d[a]||"div"),a="on"+a;var g=a in e;return g||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(a,""),g=f(e[a],"function"),f(e[a],"undefined")||(e[a]=c),e.removeAttribute(a))),e=null,g}var d={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return a
  }(),H={}.hasOwnProperty;l=f(H,"undefined")||f(H.call,"undefined")?function(a,b){return b in a&&f(a.constructor.prototype[b],"undefined")}:function(a,b){return H.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=D.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(D.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(D.call(arguments)))};return d}),z.flexbox=function(){return j("flexWrap")},z.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},z.canvastext=function(){return!!m.canvas&&!!f(b.createElement("canvas").getContext("2d").fillText,"function")},z.webgl=function(){return!!a.WebGLRenderingContext},z.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:E(["@media (",u.join("touch-enabled),("),o,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=9===a.offsetTop}),c},z.geolocation=function(){return"geolocation"in navigator},z.postmessage=function(){return!!a.postMessage},z.websqldatabase=function(){return!!a.openDatabase},z.indexedDB=function(){return!!j("indexedDB",a)},z.hashchange=function(){return G("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},z.history=function(){return!!a.history&&!!history.pushState},z.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},z.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},z.rgba=function(){return d("background-color:rgba(150,255,150,.5)"),g(q.backgroundColor,"rgba")},z.hsla=function(){return d("background-color:hsla(120,40%,100%,.5)"),g(q.backgroundColor,"rgba")||g(q.backgroundColor,"hsla")},z.multiplebgs=function(){return d("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(q.background)},z.backgroundsize=function(){return j("backgroundSize")},z.borderimage=function(){return j("borderImage")},z.borderradius=function(){return j("borderRadius")},z.boxshadow=function(){return j("boxShadow")},z.textshadow=function(){return""===b.createElement("div").style.textShadow},z.opacity=function(){return e("opacity:.55"),/^0.55$/.test(q.opacity)},z.cssanimations=function(){return j("animationName")},z.csscolumns=function(){return j("columnCount")},z.cssgradients=function(){var a="background-image:";return d((a+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+a)+u.join("linear-gradient(left top,#9f9, white);"+a)).slice(0,-a.length)),g(q.backgroundImage,"gradient")},z.cssreflections=function(){return j("boxReflect")},z.csstransforms=function(){return!!j("transform")},z.csstransforms3d=function(){var a=!!j("perspective");return a&&"webkitPerspective"in n.style&&E("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=9===b.offsetLeft&&3===b.offsetHeight}),a},z.csstransitions=function(){return j("transition")},z.fontface=function(){var a;return E('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&0===g.indexOf(d.split(" ")[0])}),a},z.generatedcontent=function(){var a;return E(["#",o,"{font:0/0 a}#",o,':after{content:"',s,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},z.video=function(){var a=b.createElement("video"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(a){}return c},z.audio=function(){var a=b.createElement("audio"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(a){}return c},z.localstorage=function(){try{return localStorage.setItem(o,o),localStorage.removeItem(o),!0}catch(a){return!1}},z.sessionstorage=function(){try{return sessionStorage.setItem(o,o),sessionStorage.removeItem(o),!0}catch(a){return!1}},z.webworkers=function(){return!!a.Worker},z.applicationcache=function(){return!!a.applicationCache},z.svg=function(){return!!b.createElementNS&&!!b.createElementNS(y.svg,"svg").createSVGRect},z.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==y.svg},z.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(t.call(b.createElementNS(y.svg,"animate")))},z.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(t.call(b.createElementNS(y.svg,"clipPath")))};for(var I in z)l(z,I)&&(k=I.toLowerCase(),m[k]=z[I](),C.push((m[k]?"":"no-")+k));return m.input||function(){m.input=function(c){for(var d=0,e=c.length;d<e;d++)B[c[d]]=c[d]in r;return B.list&&(B.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),B}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),m.inputtypes=function(a){for(var d,e,f,g=0,h=a.length;g<h;g++)r.setAttribute("type",e=a[g]),d="text"!==r.type,d&&(r.value=s,r.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&r.style.WebkitAppearance!==c?(n.appendChild(r),f=b.defaultView,d=f.getComputedStyle&&"textfield"!==f.getComputedStyle(r,null).WebkitAppearance&&0!==r.offsetHeight,n.removeChild(r)):/^(search|tel)$/.test(e)||(d=/^(url|email)$/.test(e)?r.checkValidity&&!1===r.checkValidity():r.value!=s)),A[a[g]]=!!d;return A}("search tel url email datetime date month week time datetime-local number range color".split(" "))}(),m.addTest=function(a,b){if("object"==typeof a)for(var d in a)l(a,d)&&m.addTest(d,a[d]);else{if(a=a.toLowerCase(),m[a]!==c)return m;b="function"==typeof b?b():b,n.className+=" "+(b?"":"no-")+a,m[a]=b}return m},d(""),p=r=null,function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=r.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=q[a[o]];return b||(b={},p++,a[o]=p,q[p]=b),b}function f(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():n.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||m.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;g<i;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function i(a){a||(a=b);var d=e(a);return r.shivCSS&&!j&&!d.hasCSS&&(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),k||h(a,d),a}var j,k,l=a.html5||{},m=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,n=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,o="_html5shiv",p=0,q={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",j="hidden"in a,k=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return void 0===a.cloneNode||void 0===a.createDocumentFragment||void 0===a.createElement}()}catch(a){j=!0,k=!0}}();var r={elements:l.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==l.shivCSS,supportsUnknownElements:k,shivMethods:!1!==l.shivMethods,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=r,i(b)}(this,b),m._version="2.8.3",m._prefixes=u,m._domPrefixes=x,m._cssomPrefixes=w,m.mq=F,m.hasEvent=G,m.testProp=function(a){return h([a])},m.testAllProps=j,m.testStyles=E,m.prefixed=function(a,b,c){return b?j(a,b,c):j(a,"pfx")},n.className=n.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+C.join(" "),m}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==q.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=r.shift();s=1,a?a.t?o(function(){("c"==a.t?m.injectCss:m.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):s=0}function i(a,c,d,e,f,i,j){function k(b){if(!n&&g(l.readyState)&&(t.r=n=1,!s&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&o(function(){v.removeChild(l)},50);for(var d in A[c])A[c].hasOwnProperty(d)&&A[c][d].onload()}}var j=j||m.errorTimeout,l=b.createElement(a),n=0,q=0,t={t:d,s:c,e:f,a:i,x:j};1===A[c]&&(q=1,A[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,q)},r.splice(e,0,t),"img"!=a&&(q||2===A[c]?(v.insertBefore(l,u?null:p),o(k,j)):A[c].push(l))}function j(a,b,c,d,f){return s=0,b=b||"j",e(a)?i("c"==b?x:w,a,b,this.i++,c,d,f):(r.splice(this.i++,0,a),1==r.length&&h()),this}function k(){var a=m;return a.loader={load:j,i:0},a}var l,m,n=b.documentElement,o=a.setTimeout,p=b.getElementsByTagName("script")[0],q={}.toString,r=[],s=0,t="MozAppearance"in n.style,u=t&&!!b.createRange().compareNode,v=u?n:p.parentNode,n=a.opera&&"[object Opera]"==q.call(a.opera),n=!!b.attachEvent&&!n,w=t?"object":n?"script":"img",x=n?"script":w,y=Array.isArray||function(a){return"[object Array]"==q.call(a)},z=[],A={},B={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}};m=function(a){function b(a){var b,c,d,a=a.split("!"),e=z.length,f=a.pop(),g=a.length,f={url:f,origUrl:f,prefixes:a};for(c=0;c<g;c++)d=a[c].split("="),(b=B[d.shift()])&&(f=b(f,d));for(c=0;c<e;c++)f=z[c](f);return f}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(A[i.url]?i.noexec=!0:A[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),A[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(l=function(){var a=[].slice.call(arguments);m.apply(this,a),n()}),g(a,l,b,0,j);else if(Object(a)===a)for(i in h=function(){var b,c=0;for(b in a)a.hasOwnProperty(b)&&c++;return c}(),a)a.hasOwnProperty(i)&&(!c&&!--h&&(d(l)?l=function(){var a=[].slice.call(arguments);m.apply(this,a),n()}:l[i]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),n()}}(m[i])),g(a[i],l,b,i,j))}else!c&&n()}var h,i,j=!!a.test,k=a.load||a.both,l=a.callback||f,m=l,n=a.complete||f;c(j?a.yep:a.nope,!!k),k&&c(k)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(y(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):y(j)?m(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},m.addPrefix=function(a,b){B[a]=b},m.addFilter=function(a){z.push(a)},m.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",l=function(){b.removeEventListener("DOMContentLoaded",l,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k,l,n=b.createElement("script"),e=e||m.errorTimeout;n.src=a;for(l in d)n.setAttribute(l,d[l]);c=j?h:c||f,n.onreadystatechange=n.onload=function(){!k&&g(n.readyState)&&(k=1,c(),n.onload=n.onreadystatechange=null)},o(function(){k||(k=1,c(1))},e),i?n.onload():p.parentNode.insertBefore(n,p)},a.yepnope.injectCss=function(a,c,d,e,g,i){var j,e=b.createElement("link"),c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(p.parentNode.insertBefore(e,p),o(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='&shy;<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},g=function(a){return a.replace(c.regex.minmaxwh,"").match(c.regex.other)};if(c.ajax=f,c.queue=d,c.unsupportedmq=g,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^\/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var h,i,j,k=a.document,l=k.documentElement,m=[],n=[],o=[],p={},q=k.getElementsByTagName("head")[0]||l,r=k.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=k.createElement("div"),c=k.body,d=l.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=k.createElement("body"),c.style.background="none"),l.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&l.insertBefore(c,l.firstChild),a=b.offsetWidth,f?l.removeChild(c):c.removeChild(b),l.style.fontSize=d,e&&(c.style.fontSize=e),a=j=parseFloat(a)},u=function(b){var c="clientWidth",d=l[c],e="CSS1Compat"===k.compatMode&&d||k.body[c]||d,f={},g=s[s.length-1],p=(new Date).getTime();if(b&&h&&30>p-h)return a.clearTimeout(i),void(i=a.setTimeout(u,30));h=p;for(var r in m)if(m.hasOwnProperty(r)){var v=m[r],w=v.minw,x=v.maxw,y=null===w,z=null===x;w&&(w=parseFloat(w)*(w.indexOf("em")>-1?j||t():1)),x&&(x=parseFloat(x)*(x.indexOf("em")>-1?j||t():1)),v.hasquery&&(y&&z||!(y||e>=w)||!(z||x>=e))||(f[v.media]||(f[v.media]=[]),f[v.media].push(n[v.rules]))}for(var A in o)o.hasOwnProperty(A)&&o[A]&&o[A].parentNode===q&&q.removeChild(o[A]);o.length=0;for(var B in f)if(f.hasOwnProperty(B)){var C=k.createElement("style"),D=f[B].join("\n");C.type="text/css",C.media=B,q.insertBefore(C,g.nextSibling),C.styleSheet?C.styleSheet.cssText=D:C.appendChild(k.createTextNode(D)),o.push(C)}},v=function(a,b,d){var e=a.replace(c.regex.comments,"").replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var h=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},i=!f&&d;b.length&&(b+="/"),i&&(f=1);for(var j=0;f>j;j++){var k,l,o,p;i?(k=d,n.push(h(a))):(k=e[j].match(c.regex.findStyles)&&RegExp.$1,n.push(RegExp.$2&&h(RegExp.$2))),o=k.split(","),p=o.length;for(var q=0;p>q;q++)l=o[q],g(l)||m.push({media:l.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:n.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),p[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!p[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(v(c.styleSheet.rawCssText,e,f),p[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!r||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}w()};x(),c.update=x,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this);