framework7
Version:
Full featured mobile HTML framework for building iOS & Android apps
12 lines • 179 kB
JavaScript
/**
* Framework7 3.6.0
* Full featured mobile HTML framework for building iOS & Android apps
* http://framework7.io/
*
* Copyright 2014-2018 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: December 7, 2018
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Framework7=t()}(this,function(){"use strict";var t7ctx;t7ctx="undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;var Template7Context=t7ctx,Template7Utils={quoteSingleRexExp:new RegExp("'","g"),quoteDoubleRexExp:new RegExp('"',"g"),isFunction:function(e){return"function"==typeof e},escape:function(e){return void 0!==Template7Context&&Template7Context.escape?Template7Context.escape(e):e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},helperToSlices:function(e){var t,r,a,n=Template7Utils.quoteDoubleRexExp,o=Template7Utils.quoteSingleRexExp,i=e.replace(/[{}#}]/g,"").trim().split(" "),s=[];for(r=0;r<i.length;r+=1){var l=i[r],c=void 0,u=void 0;if(0===r)s.push(l);else if(0===l.indexOf('"')||0===l.indexOf("'"))if(c=0===l.indexOf('"')?n:o,u=0===l.indexOf('"')?'"':"'",2===l.match(c).length)s.push(l);else{for(t=0,a=r+1;a<i.length;a+=1)if(l+=" "+i[a],0<=i[a].indexOf(u)){t=a,s.push(l);break}t&&(r=t)}else if(0<l.indexOf("=")){var p=l.split("="),d=p[0],f=p[1];if(c||(c=0===f.indexOf('"')?n:o,u=0===f.indexOf('"')?'"':"'"),2!==f.match(c).length){for(t=0,a=r+1;a<i.length;a+=1)if(f+=" "+i[a],0<=i[a].indexOf(u)){t=a;break}t&&(r=t)}var h=[d,f.replace(c,"")];s.push(h)}else s.push(l)}return s},stringToBlocks:function(e){var t,r,a=[];if(!e)return[];var n=e.split(/({{[^{^}]*}})/);for(t=0;t<n.length;t+=1){var o=n[t];if(""!==o)if(o.indexOf("{{")<0)a.push({type:"plain",content:o});else{if(0<=o.indexOf("{/"))continue;if((o=o.replace(/{{([#/])*([ ])*/,"{{$1").replace(/([ ])*}}/,"}}")).indexOf("{#")<0&&o.indexOf(" ")<0&&o.indexOf("else")<0){a.push({type:"variable",contextName:o.replace(/[{}]/g,"")});continue}var i=Template7Utils.helperToSlices(o),s=i[0],l=">"===s,c=[],u={};for(r=1;r<i.length;r+=1){var p=i[r];Array.isArray(p)?u[p[0]]="false"!==p[1]&&p[1]:c.push(p)}if(0<=o.indexOf("{#")){var d="",f="",h=0,v=void 0,m=!1,g=!1,b=0;for(r=t+1;r<n.length;r+=1)if(0<=n[r].indexOf("{{#")&&(b+=1),0<=n[r].indexOf("{{/")&&(b-=1),0<=n[r].indexOf("{{#"+s))d+=n[r],g&&(f+=n[r]),h+=1;else if(0<=n[r].indexOf("{{/"+s)){if(!(0<h)){v=r,m=!0;break}h-=1,d+=n[r],g&&(f+=n[r])}else 0<=n[r].indexOf("else")&&0===b?g=!0:(g||(d+=n[r]),g&&(f+=n[r]));m&&(v&&(t=v),"raw"===s?a.push({type:"plain",content:d}):a.push({type:"helper",helperName:s,contextName:c,content:d,inverseContent:f,hash:u}))}else 0<o.indexOf(" ")&&(l&&(s="_partial",c[0]&&(0===c[0].indexOf("[")?c[0]=c[0].replace(/[[\]]/g,""):c[0]='"'+c[0].replace(/"|'/g,"")+'"')),a.push({type:"helper",helperName:s,contextName:c,hash:u}))}}return a},parseJsVariable:function(e,r,a){return e.split(/([+ \-*/^])/g).map(function(e){if(e.indexOf(r)<0)return e;if(!a)return JSON.stringify("");var t=a;return 0<=e.indexOf(r+".")&&e.split(r+".")[1].split(".").forEach(function(e){t=e in t?t[e]:void 0}),"string"==typeof t&&(t=JSON.stringify(t)),void 0===t&&(t="undefined"),t}).join("")},parseJsParents:function(e,a){return e.split(/([+ \-*^])/g).map(function(e){if(e.indexOf("../")<0)return e;if(!a||0===a.length)return JSON.stringify("");var t=e.split("../").length-1,r=t>a.length?a[a.length-1]:a[t-1];return e.replace(/..\//g,"").split(".").forEach(function(e){r=r[e]?r[e]:"undefined"}),JSON.stringify(r)}).join("")},getCompileVar:function(e,t,r){void 0===r&&(r="data_1");var a,n,o=t,i=0;a=0===e.indexOf("../")?(i=e.split("../").length-1,o="ctx_"+(1<=(n=o.split("_")[1]-i)?n:1),e.split("../")[i].split(".")):0===e.indexOf("@global")?(o="Template7.global",e.split("@global.")[1].split(".")):0===e.indexOf("@root")?(o="root",e.split("@root.")[1].split(".")):e.split(".");for(var s=0;s<a.length;s+=1){var l=a[s];if(0===l.indexOf("@")){var c=r.split("_")[1];0<i&&(c=n),0<s?o+="[(data_"+c+" && data_"+c+"."+l.replace("@","")+")]":o="(data_"+c+" && data_"+c+"."+l.replace("@","")+")"}else(Number.isFinite?Number.isFinite(l):Template7Context.isFinite(l))?o+="["+l+"]":"this"===l||0<=l.indexOf("this.")||0<=l.indexOf("this[")||0<=l.indexOf("this(")?o=l.replace("this",t):o+="."+l}return o},getCompiledArguments:function(e,t,r){for(var a=[],n=0;n<e.length;n+=1)/^['"]/.test(e[n])?a.push(e[n]):/^(true|false|\d+)$/.test(e[n])?a.push(e[n]):a.push(Template7Utils.getCompileVar(e[n],t,r));return a.join(", ")}},Template7Helpers={_partial:function(e,t){var r=this,a=Template7Class.partials[e];return!a||a&&!a.template?"":(a.compiled||(a.compiled=new Template7Class(a.template).compile()),Object.keys(t.hash).forEach(function(e){r[e]=t.hash[e]}),a.compiled(r,t.data,t.root))},escape:function(e){if("string"!=typeof e)throw new Error('Template7: Passed context to "escape" helper should be a string');return Template7Utils.escape(e)},if:function(e,t){var r=e;return Template7Utils.isFunction(r)&&(r=r.call(this)),r?t.fn(this,t.data):t.inverse(this,t.data)},unless:function(e,t){var r=e;return Template7Utils.isFunction(r)&&(r=r.call(this)),r?t.inverse(this,t.data):t.fn(this,t.data)},each:function(e,t){var r=e,a="",n=0;if(Template7Utils.isFunction(r)&&(r=r.call(this)),Array.isArray(r)){for(t.hash.reverse&&(r=r.reverse()),n=0;n<r.length;n+=1)a+=t.fn(r[n],{first:0===n,last:n===r.length-1,index:n});t.hash.reverse&&(r=r.reverse())}else for(var o in r)n+=1,a+=t.fn(r[o],{key:o});return 0<n?a:t.inverse(this)},with:function(e,t){var r=e;return Template7Utils.isFunction(r)&&(r=e.call(this)),t.fn(r)},join:function(e,t){var r=e;return Template7Utils.isFunction(r)&&(r=r.call(this)),r.join(t.hash.delimiter||t.hash.delimeter)},js:function js(expression,options){var data=options.data,func,execute=expression;return"index first last key".split(" ").forEach(function(e){if(void 0!==data[e]){var t=new RegExp("this.@"+e,"g"),r=new RegExp("@"+e,"g");execute=execute.replace(t,JSON.stringify(data[e])).replace(r,JSON.stringify(data[e]))}}),options.root&&0<=execute.indexOf("@root")&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),0<=execute.indexOf("@global")&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),0<=execute.indexOf("../")&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=0<=execute.indexOf("return")?"(function(){"+execute+"})":"(function(){return ("+execute+")})",eval(func).call(this)},js_if:function js_if(expression,options){var data=options.data,func,execute=expression;"index first last key".split(" ").forEach(function(e){if(void 0!==data[e]){var t=new RegExp("this.@"+e,"g"),r=new RegExp("@"+e,"g");execute=execute.replace(t,JSON.stringify(data[e])).replace(r,JSON.stringify(data[e]))}}),options.root&&0<=execute.indexOf("@root")&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),0<=execute.indexOf("@global")&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),0<=execute.indexOf("../")&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=0<=execute.indexOf("return")?"(function(){"+execute+"})":"(function(){return ("+execute+")})";var condition=eval(func).call(this);return condition?options.fn(this,options.data):options.inverse(this,options.data)}};Template7Helpers.js_compare=Template7Helpers.js_if;var Template7Options={},Template7Partials={},Template7Class=function(e){this.template=e},staticAccessors={options:{configurable:!0},partials:{configurable:!0},helpers:{configurable:!0}};function Template7(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=e[0],a=e[1];if(2!==e.length)return new Template7Class(r);var n=new Template7Class(r),o=n.compile()(a);return n=null,o}Template7Class.prototype.compile=function compile(template,depth){void 0===template&&(template=this.template),void 0===depth&&(depth=1);var t=this;if(t.compiled)return t.compiled;if("string"!=typeof template)throw new Error("Template7: Template must be a string");var stringToBlocks=Template7Utils.stringToBlocks,getCompileVar=Template7Utils.getCompileVar,getCompiledArguments=Template7Utils.getCompiledArguments,blocks=stringToBlocks(template),ctx="ctx_"+depth,data="data_"+depth;if(0===blocks.length)return function(){return""};function getCompileFn(e,r){return e.content?t.compile(e.content,r):function(){return""}}function getCompileInverse(e,r){return e.inverseContent?t.compile(e.inverseContent,r):function(){return""}}var resultString="",i;for(resultString+=1===depth?"(function ("+ctx+", "+data+", root) {\n":"(function ("+ctx+", "+data+") {\n",1===depth&&(resultString+="function isArray(arr){return Array.isArray(arr);}\n",resultString+="function isFunction(func){return (typeof func === 'function');}\n",resultString+='function c(val, ctx) {if (typeof val !== "undefined" && val !== null) {if (isFunction(val)) {return val.call(ctx);} else return val;} else return "";}\n',resultString+="root = root || ctx_1 || {};\n"),resultString+="var r = '';\n",i=0;i<blocks.length;i+=1){var block=blocks[i];if("plain"!==block.type){var variable=void 0,compiledArguments=void 0;if("variable"===block.type&&(variable=getCompileVar(block.contextName,ctx,data),resultString+="r += c("+variable+", "+ctx+");"),"helper"===block.type){var parents=void 0;if("ctx_1"!==ctx){for(var level=ctx.split("_")[1],parentsString="ctx_"+(level-1),j=level-2;1<=j;j-=1)parentsString+=", ctx_"+j;parents="["+parentsString+"]"}else parents="["+ctx+"]";var dynamicHelper=void 0;if(0===block.helperName.indexOf("[")&&(block.helperName=getCompileVar(block.helperName.replace(/[[\]]/g,""),ctx,data),dynamicHelper=!0),dynamicHelper||block.helperName in Template7Helpers)compiledArguments=getCompiledArguments(block.contextName,ctx,data),resultString+="r += (Template7Helpers"+(dynamicHelper?"["+block.helperName+"]":"."+block.helperName)+").call("+ctx+", "+(compiledArguments&&compiledArguments+", ")+"{hash:"+JSON.stringify(block.hash)+", data: "+data+" || {}, fn: "+getCompileFn(block,depth+1)+", inverse: "+getCompileInverse(block,depth+1)+", root: root, parents: "+parents+"});";else{if(0<block.contextName.length)throw new Error('Template7: Missing helper: "'+block.helperName+'"');variable=getCompileVar(block.helperName,ctx,data),resultString+="if ("+variable+") {",resultString+="if (isArray("+variable+")) {",resultString+="r += (Template7Helpers.each).call("+ctx+", "+variable+", {hash:"+JSON.stringify(block.hash)+", data: "+data+" || {}, fn: "+getCompileFn(block,depth+1)+", inverse: "+getCompileInverse(block,depth+1)+", root: root, parents: "+parents+"});",resultString+="}else {",resultString+="r += (Template7Helpers.with).call("+ctx+", "+variable+", {hash:"+JSON.stringify(block.hash)+", data: "+data+" || {}, fn: "+getCompileFn(block,depth+1)+", inverse: "+getCompileInverse(block,depth+1)+", root: root, parents: "+parents+"});",resultString+="}}"}}}else resultString+="r +='"+block.content.replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/'/g,"\\'")+"';"}return resultString+="\nreturn r;})",1===depth?(t.compiled=eval(resultString),t.compiled):resultString},staticAccessors.options.get=function(){return Template7Options},staticAccessors.partials.get=function(){return Template7Partials},staticAccessors.helpers.get=function(){return Template7Helpers},Object.defineProperties(Template7Class,staticAccessors),Template7.registerHelper=function(e,t){Template7Class.helpers[e]=t},Template7.unregisterHelper=function(e){Template7Class.helpers[e]=void 0,delete Template7Class.helpers[e]},Template7.registerPartial=function(e,t){Template7Class.partials[e]={template:t}},Template7.unregisterPartial=function(e){Template7Class.partials[e]&&(Template7Class.partials[e]=void 0,delete Template7Class.partials[e])},Template7.compile=function(e,t){return new Template7Class(e,t).compile()},Template7.options=Template7Class.options,Template7.helpers=Template7Class.helpers,Template7.partials=Template7Class.partials;var doc="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,win="undefined"==typeof window?{document:doc,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,Dom7=function(e){for(var t=0;t<e.length;t+=1)this[t]=e[t];return this.length=e.length,this};function $(e,t){var r=[],a=0;if(e&&!t&&e instanceof Dom7)return e;if(e)if("string"==typeof e){var n,o,i=e.trim();if(0<=i.indexOf("<")&&0<=i.indexOf(">")){var s="div";for(0===i.indexOf("<li")&&(s="ul"),0===i.indexOf("<tr")&&(s="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(s="tr"),0===i.indexOf("<tbody")&&(s="table"),0===i.indexOf("<option")&&(s="select"),(o=doc.createElement(s)).innerHTML=i,a=0;a<o.childNodes.length;a+=1)r.push(o.childNodes[a])}else for(n=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||doc).querySelectorAll(e.trim()):[doc.getElementById(e.trim().split("#")[1])],a=0;a<n.length;a+=1)n[a]&&r.push(n[a])}else if(e.nodeType||e===win||e===doc)r.push(e);else if(0<e.length&&e[0].nodeType)for(a=0;a<e.length;a+=1)r.push(e[a]);return new Dom7(r)}function unique(e){for(var t=[],r=0;r<e.length;r+=1)-1===t.indexOf(e[r])&&t.push(e[r]);return t}function toCamelCase(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function requestAnimationFrame(e){return win.requestAnimationFrame?win.requestAnimationFrame(e):win.webkitRequestAnimationFrame?win.webkitRequestAnimationFrame(e):win.setTimeout(e,1e3/60)}function cancelAnimationFrame(e){return win.cancelAnimationFrame?win.cancelAnimationFrame(e):win.webkitCancelAnimationFrame?win.webkitCancelAnimationFrame(e):win.clearTimeout(e)}function addClass(e){if(void 0===e)return this;for(var t=e.split(" "),r=0;r<t.length;r+=1)for(var a=0;a<this.length;a+=1)void 0!==this[a]&&void 0!==this[a].classList&&this[a].classList.add(t[r]);return this}function removeClass(e){for(var t=e.split(" "),r=0;r<t.length;r+=1)for(var a=0;a<this.length;a+=1)void 0!==this[a]&&void 0!==this[a].classList&&this[a].classList.remove(t[r]);return this}function hasClass(e){return!!this[0]&&this[0].classList.contains(e)}function toggleClass(e){for(var t=e.split(" "),r=0;r<t.length;r+=1)for(var a=0;a<this.length;a+=1)void 0!==this[a]&&void 0!==this[a].classList&&this[a].classList.toggle(t[r]);return this}function attr(e,t){var r=arguments;if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var a=0;a<this.length;a+=1)if(2===r.length)this[a].setAttribute(e,t);else for(var n in e)this[a][n]=e[n],this[a].setAttribute(n,e[n]);return this}function removeAttr(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function prop(e,t){var r=arguments;if(1!==arguments.length||"string"!=typeof e){for(var a=0;a<this.length;a+=1)if(2===r.length)this[a][e]=t;else for(var n in e)this[a][n]=e[n];return this}if(this[0])return this[0][e]}function data(e,t){var r;if(void 0!==t){for(var a=0;a<this.length;a+=1)(r=this[a]).dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[e]=t;return this}if(r=this[0]){if(r.dom7ElementDataStorage&&e in r.dom7ElementDataStorage)return r.dom7ElementDataStorage[e];var n=r.getAttribute("data-"+e);return n||void 0}}function removeData(e){for(var t=0;t<this.length;t+=1){var r=this[t];r.dom7ElementDataStorage&&r.dom7ElementDataStorage[e]&&(r.dom7ElementDataStorage[e]=null,delete r.dom7ElementDataStorage[e])}}function dataset(){var e=this[0];if(e){var t={};if(e.dataset)for(var r in e.dataset)t[r]=e.dataset[r];else for(var a=0;a<e.attributes.length;a+=1){var n=e.attributes[a];0<=n.name.indexOf("data-")&&(t[toCamelCase(n.name.split("data-")[1])]=n.value)}for(var o in t)"false"===t[o]?t[o]=!1:"true"===t[o]?t[o]=!0:parseFloat(t[o])===1*t[o]&&(t[o]*=1);return t}}function val(e){var t=this;if(void 0!==e){for(var r=0;r<t.length;r+=1){var a=t[r];if(Array.isArray(e)&&a.multiple&&"select"===a.nodeName.toLowerCase())for(var n=0;n<a.options.length;n+=1)a.options[n].selected=0<=e.indexOf(a.options[n].value);else a.value=e}return t}if(t[0]){if(t[0].multiple&&"select"===t[0].nodeName.toLowerCase()){for(var o=[],i=0;i<t[0].selectedOptions.length;i+=1)o.push(t[0].selectedOptions[i].value);return o}return t[0].value}}function transform(e){for(var t=0;t<this.length;t+=1){var r=this[t].style;r.webkitTransform=e,r.transform=e}return this}function transition(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var r=this[t].style;r.webkitTransitionDuration=e,r.transitionDuration=e}return this}function on(){for(var e,t=[],r=arguments.length;r--;)t[r]=arguments[r];var a=t[0],o=t[1],i=t[2],n=t[3];function s(e){var t=e.target;if(t){var r=e.target.dom7EventData||[];if(r.indexOf(e)<0&&r.unshift(e),$(t).is(o))i.apply(t,r);else for(var a=$(t).parents(),n=0;n<a.length;n+=1)$(a[n]).is(o)&&i.apply(a[n],r)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(a=(e=t)[0],i=e[1],n=e[2],o=void 0),n||(n=!1);for(var c,u=a.split(" "),p=0;p<this.length;p+=1){var d=this[p];if(o)for(c=0;c<u.length;c+=1){var f=u[c];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[f]||(d.dom7LiveListeners[f]=[]),d.dom7LiveListeners[f].push({listener:i,proxyListener:s}),d.addEventListener(f,s,n)}else for(c=0;c<u.length;c+=1){var h=u[c];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:l}),d.addEventListener(h,l,n)}}return this}function off(){for(var e,t=[],r=arguments.length;r--;)t[r]=arguments[r];var a=t[0],n=t[1],o=t[2],i=t[3];"function"==typeof t[1]&&(a=(e=t)[0],o=e[1],i=e[2],n=void 0),i||(i=!1);for(var s=a.split(" "),l=0;l<s.length;l+=1)for(var c=s[l],u=0;u<this.length;u+=1){var p=this[u],d=void 0;if(!n&&p.dom7Listeners?d=p.dom7Listeners[c]:n&&p.dom7LiveListeners&&(d=p.dom7LiveListeners[c]),d&&d.length)for(var f=d.length-1;0<=f;f-=1){var h=d[f];o&&h.listener===o?(p.removeEventListener(c,h.proxyListener,i),d.splice(f,1)):o||(p.removeEventListener(c,h.proxyListener,i),d.splice(f,1))}}return this}function once(){for(var e,t=[],r=arguments.length;r--;)t[r]=arguments[r];var a=this,n=t[0],o=t[1],i=t[2],s=t[3];return"function"==typeof t[1]&&(n=(e=t)[0],i=e[1],s=e[2],o=void 0),a.on(n,o,function e(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];i.apply(this,t),a.off(n,o,e,s)},s)}function trigger(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=e[0].split(" "),a=e[1],n=0;n<r.length;n+=1)for(var o=r[n],i=0;i<this.length;i+=1){var s=this[i],l=void 0;try{l=new win.CustomEvent(o,{detail:a,bubbles:!0,cancelable:!0})}catch(e){(l=doc.createEvent("Event")).initEvent(o,!0,!0),l.detail=a}s.dom7EventData=e.filter(function(e,t){return 0<t}),s.dispatchEvent(l),s.dom7EventData=[],delete s.dom7EventData}return this}function transitionEnd(t){var r,a=["webkitTransitionEnd","transitionend"],n=this;function o(e){if(e.target===this)for(t.call(this,e),r=0;r<a.length;r+=1)n.off(a[r],o)}if(t)for(r=0;r<a.length;r+=1)n.on(a[r],o);return this}function animationEnd(t){var r,a=["webkitAnimationEnd","animationend"],n=this;function o(e){if(e.target===this)for(t.call(this,e),r=0;r<a.length;r+=1)n.off(a[r],o)}if(t)for(r=0;r<a.length;r+=1)n.on(a[r],o);return this}function width(){return this[0]===win?win.innerWidth:0<this.length?parseFloat(this.css("width")):null}function outerWidth(e){if(0<this.length){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function height(){return this[0]===win?win.innerHeight:0<this.length?parseFloat(this.css("height")):null}function outerHeight(e){if(0<this.length){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function offset(){if(0<this.length){var e=this[0],t=e.getBoundingClientRect(),r=doc.body,a=e.clientTop||r.clientTop||0,n=e.clientLeft||r.clientLeft||0,o=e===win?win.scrollY:e.scrollTop,i=e===win?win.scrollX:e.scrollLeft;return{top:t.top+o-a,left:t.left+i-n}}return null}function hide(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function show(){for(var e=0;e<this.length;e+=1){var t=this[e];"none"===t.style.display&&(t.style.display=""),"none"===win.getComputedStyle(t,null).getPropertyValue("display")&&(t.style.display="block")}return this}function styles(){return this[0]?win.getComputedStyle(this[0],null):{}}function css(e,t){var r;if(1===arguments.length){if("string"!=typeof e){for(r=0;r<this.length;r+=1)for(var a in e)this[r].style[a]=e[a];return this}if(this[0])return win.getComputedStyle(this[0],null).getPropertyValue(e)}if(2!==arguments.length||"string"!=typeof e)return this;for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}function toArray(){for(var e=[],t=0;t<this.length;t+=1)e.push(this[t]);return e}function each(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this}function forEach(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],this[t],t))return this;return this}function filter(e){for(var t=[],r=0;r<this.length;r+=1)e.call(this[r],r,this[r])&&t.push(this[r]);return new Dom7(t)}function map(e){for(var t=[],r=0;r<this.length;r+=1)t.push(e.call(this[r],r,this[r]));return new Dom7(t)}function html(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function text(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function is(e){var t,r,a=this[0];if(!a||void 0===e)return!1;if("string"==typeof e){if(a.matches)return a.matches(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);for(t=$(e),r=0;r<t.length;r+=1)if(t[r]===a)return!0;return!1}if(e===doc)return a===doc;if(e===win)return a===win;if(e.nodeType||e instanceof Dom7){for(t=e.nodeType?[e]:e,r=0;r<t.length;r+=1)if(t[r]===a)return!0;return!1}return!1}function indexOf(e){for(var t=0;t<this.length;t+=1)if(this[t]===e)return t;return-1}function index(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}}function eq(e){if(void 0===e)return this;var t,r=this.length;return new Dom7(r-1<e?[]:e<0?(t=r+e)<0?[]:[this[t]]:[this[e]])}function append(){for(var e,t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var a=0;a<t.length;a+=1){e=t[a];for(var n=0;n<this.length;n+=1)if("string"==typeof e){var o=doc.createElement("div");for(o.innerHTML=e;o.firstChild;)this[n].appendChild(o.firstChild)}else if(e instanceof Dom7)for(var i=0;i<e.length;i+=1)this[n].appendChild(e[i]);else this[n].appendChild(e)}return this}function appendTo(e){return $(e).append(this),this}function prepend(e){var t,r;for(t=0;t<this.length;t+=1)if("string"==typeof e){var a=doc.createElement("div");for(a.innerHTML=e,r=a.childNodes.length-1;0<=r;r-=1)this[t].insertBefore(a.childNodes[r],this[t].childNodes[0])}else if(e instanceof Dom7)for(r=0;r<e.length;r+=1)this[t].insertBefore(e[r],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function prependTo(e){return $(e).prepend(this),this}function insertBefore(e){for(var t=$(e),r=0;r<this.length;r+=1)if(1===t.length)t[0].parentNode.insertBefore(this[r],t[0]);else if(1<t.length)for(var a=0;a<t.length;a+=1)t[a].parentNode.insertBefore(this[r].cloneNode(!0),t[a])}function insertAfter(e){for(var t=$(e),r=0;r<this.length;r+=1)if(1===t.length)t[0].parentNode.insertBefore(this[r],t[0].nextSibling);else if(1<t.length)for(var a=0;a<t.length;a+=1)t[a].parentNode.insertBefore(this[r].cloneNode(!0),t[a].nextSibling)}function next(e){return 0<this.length?e?this[0].nextElementSibling&&$(this[0].nextElementSibling).is(e)?new Dom7([this[0].nextElementSibling]):new Dom7([]):this[0].nextElementSibling?new Dom7([this[0].nextElementSibling]):new Dom7([]):new Dom7([])}function nextAll(e){var t=[],r=this[0];if(!r)return new Dom7([]);for(;r.nextElementSibling;){var a=r.nextElementSibling;e?$(a).is(e)&&t.push(a):t.push(a),r=a}return new Dom7(t)}function prev(e){if(0<this.length){var t=this[0];return e?t.previousElementSibling&&$(t.previousElementSibling).is(e)?new Dom7([t.previousElementSibling]):new Dom7([]):t.previousElementSibling?new Dom7([t.previousElementSibling]):new Dom7([])}return new Dom7([])}function prevAll(e){var t=[],r=this[0];if(!r)return new Dom7([]);for(;r.previousElementSibling;){var a=r.previousElementSibling;e?$(a).is(e)&&t.push(a):t.push(a),r=a}return new Dom7(t)}function siblings(e){return this.nextAll(e).add(this.prevAll(e))}function parent(e){for(var t=[],r=0;r<this.length;r+=1)null!==this[r].parentNode&&(e?$(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return $(unique(t))}function parents(e){for(var t=[],r=0;r<this.length;r+=1)for(var a=this[r].parentNode;a;)e?$(a).is(e)&&t.push(a):t.push(a),a=a.parentNode;return $(unique(t))}function closest(e){var t=this;return void 0===e?new Dom7([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function find(e){for(var t=[],r=0;r<this.length;r+=1)for(var a=this[r].querySelectorAll(e),n=0;n<a.length;n+=1)t.push(a[n]);return new Dom7(t)}function children(e){for(var t=[],r=0;r<this.length;r+=1)for(var a=this[r].childNodes,n=0;n<a.length;n+=1)e?1===a[n].nodeType&&$(a[n]).is(e)&&t.push(a[n]):1===a[n].nodeType&&t.push(a[n]);return new Dom7(unique(t))}function remove(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function detach(){return this.remove()}function add(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r,a;for(r=0;r<e.length;r+=1){var n=$(e[r]);for(a=0;a<n.length;a+=1)this[this.length]=n[a],this.length+=1}return this}function empty(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var r=0;r<t.childNodes.length;r+=1)t.childNodes[r].parentNode&&t.childNodes[r].parentNode.removeChild(t.childNodes[r]);t.textContent=""}}return this}$.fn=Dom7.prototype,$.Class=Dom7,$.Dom7=Dom7;var Methods=Object.freeze({addClass:addClass,removeClass:removeClass,hasClass:hasClass,toggleClass:toggleClass,attr:attr,removeAttr:removeAttr,prop:prop,data:data,removeData:removeData,dataset:dataset,val:val,transform:transform,transition:transition,on:on,off:off,once:once,trigger:trigger,transitionEnd:transitionEnd,animationEnd:animationEnd,width:width,outerWidth:outerWidth,height:height,outerHeight:outerHeight,offset:offset,hide:hide,show:show,styles:styles,css:css,toArray:toArray,each:each,forEach:forEach,filter:filter,map:map,html:html,text:text,is:is,indexOf:indexOf,index:index,eq:eq,append:append,appendTo:appendTo,prepend:prepend,prependTo:prependTo,insertBefore:insertBefore,insertAfter:insertAfter,next:next,nextAll:nextAll,prev:prev,prevAll:prevAll,siblings:siblings,parent:parent,parents:parents,closest:closest,find:find,children:children,remove:remove,detach:detach,add:add,empty:empty});function scrollTo(){for(var e,t=[],r=arguments.length;r--;)t[r]=arguments[r];var a=t[0],n=t[1],v=t[2],m=t[3],g=t[4];return 4===t.length&&"function"==typeof m&&(g=m,a=(e=t)[0],n=e[1],v=e[2],g=e[3],m=e[4]),void 0===m&&(m="swing"),this.each(function(){var o,i,e,t,s,l,c,u,p=this,d=0<n||0===n,f=0<a||0===a;if(void 0===m&&(m="swing"),d&&(o=p.scrollTop,v||(p.scrollTop=n)),f&&(i=p.scrollLeft,v||(p.scrollLeft=a)),v){d&&(e=p.scrollHeight-p.offsetHeight,s=Math.max(Math.min(n,e),0)),f&&(t=p.scrollWidth-p.offsetWidth,l=Math.max(Math.min(a,t),0));var h=null;d&&s===o&&(d=!1),f&&l===i&&(f=!1),requestAnimationFrame(function e(t){void 0===t&&(t=(new Date).getTime()),null===h&&(h=t);var r,a=Math.max(Math.min((t-h)/v,1),0),n="linear"===m?a:.5-Math.cos(a*Math.PI)/2;d&&(c=o+n*(s-o)),f&&(u=i+n*(l-i)),d&&o<s&&s<=c&&(p.scrollTop=s,r=!0),d&&s<o&&c<=s&&(p.scrollTop=s,r=!0),f&&i<l&&l<=u&&(p.scrollLeft=l,r=!0),f&&l<i&&u<=l&&(p.scrollLeft=l,r=!0),r?g&&g():(d&&(p.scrollTop=c),f&&(p.scrollLeft=u),requestAnimationFrame(e))})}})}function scrollTop(){for(var e,t=[],r=arguments.length;r--;)t[r]=arguments[r];var a=t[0],n=t[1],o=t[2],i=t[3];3===t.length&&"function"==typeof o&&(a=(e=t)[0],n=e[1],i=e[2],o=e[3]);return void 0===a?0<this.length?this[0].scrollTop:null:this.scrollTo(void 0,a,n,o,i)}function scrollLeft(){for(var e,t=[],r=arguments.length;r--;)t[r]=arguments[r];var a=t[0],n=t[1],o=t[2],i=t[3];3===t.length&&"function"==typeof o&&(a=(e=t)[0],n=e[1],i=e[2],o=e[3]);return void 0===a?0<this.length?this[0].scrollLeft:null:this.scrollTo(a,void 0,n,o,i)}var Scroll=Object.freeze({scrollTo:scrollTo,scrollTop:scrollTop,scrollLeft:scrollLeft});function animate(e,t){var r,a=this,g={props:Object.assign({},e),params:Object.assign({duration:300,easing:"swing"},t),elements:a,animating:!1,que:[],easingProgress:function(e,t){return"swing"===e?.5-Math.cos(t*Math.PI)/2:"function"==typeof e?e(t):t},stop:function(){g.frameId&&cancelAnimationFrame(g.frameId),g.animating=!1,g.elements.each(function(e,t){delete t.dom7AnimateInstance}),g.que=[]},done:function(e){if(g.animating=!1,g.elements.each(function(e,t){delete t.dom7AnimateInstance}),e&&e(a),0<g.que.length){var t=g.que.shift();g.animate(t[0],t[1])}},animate:function(c,u){if(g.animating)return g.que.push([c,u]),g;var p=[];g.elements.each(function(t,r){var a,n,o,i,s;r.dom7AnimateInstance||(g.elements[t].dom7AnimateInstance=g),p[t]={container:r},Object.keys(c).forEach(function(e){a=win.getComputedStyle(r,null).getPropertyValue(e).replace(",","."),n=parseFloat(a),o=a.replace(n,""),i=parseFloat(c[e]),s=c[e]+o,p[t][e]={initialFullValue:a,initialValue:n,unit:o,finalValue:i,finalFullValue:s,currentValue:n}})});var d,f,h=null,v=0,m=0,t=!1;return g.animating=!0,g.frameId=requestAnimationFrame(function e(){var s,l;d=(new Date).getTime(),t||(t=!0,u.begin&&u.begin(a)),null===h&&(h=d),u.progress&&u.progress(a,Math.max(Math.min((d-h)/u.duration,1),0),h+u.duration-d<0?0:h+u.duration-d,h),p.forEach(function(e){var i=e;f||i.done||Object.keys(c).forEach(function(e){if(!f&&!i.done){s=Math.max(Math.min((d-h)/u.duration,1),0),l=g.easingProgress(u.easing,s);var t=i[e],r=t.initialValue,a=t.finalValue,n=t.unit;i[e].currentValue=r+l*(a-r);var o=i[e].currentValue;(r<a&&a<=o||a<r&&o<=a)&&(i.container.style[e]=a+n,(m+=1)===Object.keys(c).length&&(i.done=!0,v+=1),v===p.length&&(f=!0)),f?g.done(u.complete):i.container.style[e]=o+n}})}),f||(g.frameId=requestAnimationFrame(e))}),g}};if(0===g.elements.length)return a;for(var n=0;n<g.elements.length;n+=1)g.elements[n].dom7AnimateInstance?r=g.elements[n].dom7AnimateInstance:g.elements[n].dom7AnimateInstance=g;return r||(r=g),"stop"===e?r.stop():r.animate(g.props,g.params),a}function stop(){for(var e=0;e<this.length;e+=1)this[e].dom7AnimateInstance&&this[e].dom7AnimateInstance.stop()}var Animate=Object.freeze({animate:animate,stop:stop}),noTrigger="resize scroll".split(" ");function eventShortcut(e){for(var t,r=[],a=arguments.length-1;0<a--;)r[a]=arguments[a+1];if(void 0!==r[0])return(t=this).on.apply(t,[e].concat(r));for(var n=0;n<this.length;n+=1)noTrigger.indexOf(e)<0&&(e in this[n]?this[n][e]():$(this[n]).trigger(e));return this}function click(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["click"].concat(e))}function blur(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["blur"].concat(e))}function focus(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["focus"].concat(e))}function focusin(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["focusin"].concat(e))}function focusout(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["focusout"].concat(e))}function keyup(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["keyup"].concat(e))}function keydown(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["keydown"].concat(e))}function keypress(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["keypress"].concat(e))}function submit(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["submit"].concat(e))}function change(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["change"].concat(e))}function mousedown(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mousedown"].concat(e))}function mousemove(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mousemove"].concat(e))}function mouseup(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mouseup"].concat(e))}function mouseenter(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mouseenter"].concat(e))}function mouseleave(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mouseleave"].concat(e))}function mouseout(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mouseout"].concat(e))}function mouseover(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mouseover"].concat(e))}function touchstart(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["touchstart"].concat(e))}function touchend(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["touchend"].concat(e))}function touchmove(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["touchmove"].concat(e))}function resize(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["resize"].concat(e))}function scroll(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["scroll"].concat(e))}var eventShortcuts=Object.freeze({click:click,blur:blur,focus:focus,focusin:focusin,focusout:focusout,keyup:keyup,keydown:keydown,keypress:keypress,submit:submit,change:change,mousedown:mousedown,mousemove:mousemove,mouseup:mouseup,mouseenter:mouseenter,mouseleave:mouseleave,mouseout:mouseout,mouseover:mouseover,touchstart:touchstart,touchend:touchend,touchmove:touchmove,resize:resize,scroll:scroll});[Methods,Scroll,Animate,eventShortcuts].forEach(function(t){Object.keys(t).forEach(function(e){$.fn[e]=t[e]})});var NEWTON_ITERATIONS=4,NEWTON_MIN_SLOPE=.001,SUBDIVISION_PRECISION=1e-7,SUBDIVISION_MAX_ITERATIONS=10,kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1),float32ArraySupported="function"==typeof Float32Array;function A(e,t){return 1-3*t+3*e}function B(e,t){return 3*t-6*e}function C(e){return 3*e}function calcBezier(e,t,r){return((A(t,r)*e+B(t,r))*e+C(t))*e}function getSlope(e,t,r){return 3*A(t,r)*e*e+2*B(t,r)*e+C(t)}function binarySubdivide(e,t,r,a,n){for(var o,i,s=0;0<(o=calcBezier(i=t+(r-t)/2,a,n)-e)?r=i:t=i,Math.abs(o)>SUBDIVISION_PRECISION&&++s<SUBDIVISION_MAX_ITERATIONS;);return i}function newtonRaphsonIterate(e,t,r,a){for(var n=0;n<NEWTON_ITERATIONS;++n){var o=getSlope(t,r,a);if(0===o)return t;t-=(calcBezier(t,r,a)-e)/o}return t}function bezier(i,t,s,r){if(!(0<=i&&i<=1&&0<=s&&s<=1))throw new Error("bezier x values must be in [0, 1] range");var l=float32ArraySupported?new Float32Array(kSplineTableSize):new Array(kSplineTableSize);if(i!==t||s!==r)for(var e=0;e<kSplineTableSize;++e)l[e]=calcBezier(e*kSampleStepSize,i,s);return function(e){return i===t&&s===r?e:0===e?0:1===e?1:calcBezier(function(e){for(var t=0,r=1,a=kSplineTableSize-1;r!==a&&l[r]<=e;++r)t+=kSampleStepSize;var n=t+(e-l[--r])/(l[r+1]-l[r])*kSampleStepSize,o=getSlope(n,i,s);return NEWTON_MIN_SLOPE<=o?newtonRaphsonIterate(e,n,i,s):0===o?n:binarySubdivide(e,t,t+kSampleStepSize,i,s)}(e),t,r)}}for(var defaultDiacriticsRemovalap=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],diacriticsMap={},i=0;i<defaultDiacriticsRemovalap.length;i+=1)for(var letters=defaultDiacriticsRemovalap[i].letters,j=0;j<letters.length;j+=1)diacriticsMap[letters[j]]=defaultDiacriticsRemovalap[i].base;var createPromise=function(e){var r,a,n=!1,o=!1,i={then:void 0,catch:void 0},t={then:function(e){return n?e.apply(void 0,r):i.then=e,t},catch:function(e){return o?e.apply(void 0,a):i.catch=e,t}};return e(function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];n=!0,i.then?i.then.apply(i,e):r=e},function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o=!0,i.catch?i.catch.apply(i,e):a=e}),t},uniqueNumber=1,Utils={uniqueNumber:function(){return uniqueNumber+=1},id:function(e,t){void 0===e&&(e="xxxxxxxxxx"),void 0===t&&(t="0123456789abcdef");var r=t.length;return e.replace(/x/g,function(){return t[Math.floor(Math.random()*r)]})},mdPreloaderContent:'\n <span class="preloader-inner">\n <span class="preloader-inner-gap"></span>\n <span class="preloader-inner-left">\n <span class="preloader-inner-half-circle"></span>\n </span>\n <span class="preloader-inner-right">\n <span class="preloader-inner-half-circle"></span>\n </span>\n </span>\n '.trim(),eventNameToColonCase:function(e){var r;return e.split("").map(function(e,t){return e.match(/[A-Z]/)&&0!==t&&!r?(r=!0,":"+e.toLowerCase()):e.toLowerCase()}).join("")},deleteProps:function(e){var t=e;Object.keys(t).forEach(function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})},bezier:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return bezier.apply(void 0,e)},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},nextFrame:function(e){return Utils.requestAnimationFrame(function(){Utils.requestAnimationFrame(e)})},now:function(){return Date.now()},promise:function(e){return win.Promise?new Promise(e):createPromise(e)},requestAnimationFrame:function(e){return win.requestAnimationFrame?win.requestAnimationFrame(e):win.webkitRequestAnimationFrame?win.webkitRequestAnimationFrame(e):win.setTimeout(e,1e3/60)},cancelAnimationFrame:function(e){return win.cancelAnimationFrame?win.cancelAnimationFrame(e):win.webkitCancelAnimationFrame?win.webkitCancelAnimationFrame(e):win.clearTimeout(e)},removeDiacritics:function(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return diacriticsMap[e]||e})},parseUrlQuery:function(e){var t,r,a,n,o={},i=e||win.location.href;if("string"==typeof i&&i.length)for(n=(r=(i=-1<i.indexOf("?")?i.replace(/\S*\?/,""):"").split("&").filter(function(e){return""!==e})).length,t=0;t<n;t+=1)a=r[t].replace(/#\S+/g,"").split("="),o[decodeURIComponent(a[0])]=void 0===a[1]?void 0:decodeURIComponent(a.slice(1).join("="))||"";return o},getTranslate:function(e,t){var r,a,n;void 0===t&&(t="x");var o=win.getComputedStyle(e,null);return win.WebKitCSSMatrix?(6<(a=o.transform||o.webkitTransform).split(",").length&&(a=a.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),n=new win.WebKitCSSMatrix("none"===a?"":a)):r=(n=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(a=win.WebKitCSSMatrix?n.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(a=win.WebKitCSSMatrix?n.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),a||0},serializeObject:function(a,n){if(void 0===n&&(n=[]),"string"==typeof a)return a;var o,i=[];function s(e){if(0<n.length){for(var t="",r=0;r<n.length;r+=1)t+=0===r?n[r]:"["+encodeURIComponent(n[r])+"]";return t+"["+encodeURIComponent(e)+"]"}return encodeURIComponent(e)}function l(e){return encodeURIComponent(e)}return Object.keys(a).forEach(function(e){var t;if(Array.isArray(a[e])){t=[];for(var r=0;r<a[e].length;r+=1)Array.isArray(a[e][r])||"object"!=typeof a[e][r]?t.push(s(e)+"[]="+l(a[e][r])):((o=n.slice()).push(e),o.push(String(r)),t.push(Utils.serializeObject(a[e][r],o)));0<t.length&&i.push(t.join("&"))}else null===a[e]||""===a[e]?i.push(s(e)+"="):"object"==typeof a[e]?((o=n.slice()).push(e),""!==(t=Utils.serializeObject(a[e],o))&&i.push(t)):void 0!==a[e]&&""!==a[e]?i.push(s(e)+"="+l(a[e])):""===a[e]&&i.push(s(e))}),i.join("&")},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},merge:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=e[0];e.splice(0,1);for(var a=e,n=0;n<a.length;n+=1){var o=e[n];if(null!=o)for(var i=Object.keys(Object(o)),s=0,l=i.length;s<l;s+=1){var c=i[s],u=Object.getOwnPropertyDescriptor(o,c);void 0!==u&&u.enumerable&&(r[c]=o[c])}}return r},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r,a,n=!0;a=("boolean"==typeof e[0]?(n=e[0],r=e[1],e.splice(0,2)):(r=e[0],e.splice(0,1)),e);for(var o=0;o<a.length;o+=1){var i=e[o];if(null!=i)for(var s=Object.keys(Object(i)),l=0,c=s.length;l<c;l+=1){var u=s[l],p=Object.getOwnPropertyDescriptor(i,u);void 0!==p&&p.enumerable&&(n?Utils.isObject(r[u])&&Utils.isObject(i[u])?Utils.extend(r[u],i[u]):!Utils.isObject(r[u])&&Utils.isObject(i[u])?(r[u]={},Utils.extend(r[u],i[u])):r[u]=i[u]:r[u]=i[u])}}return r}},Device=function(){var e=win.navigator.platform,t=win.navigator.userAgent,r={ios:!1,android:!1,androidChrome:!1,desktop:!1,windowsPhone:!1,iphone:!1,iphoneX:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!win.cordova&&!win.phonegap),phonegap:!(!win.cordova&&!win.phonegap)},a=win.screen.width,n=win.screen.height,o=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),i=t.match(/(Android);?[\s\/]+([\d.]+)?/),s=t.match(/(iPad).*OS\s([\d_]+)/),l=t.match(/(iPod)(.*OS\s([\d_]+))?/),c=!s&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u=c&&(375===a&&812===n||414===a&&896===n),p=0<=t.indexOf("MSIE ")||0<=t.indexOf("Trident/"),d=0<=t.indexOf("Edge/"),f=0<=t.indexOf("Gecko/")&&0<=t.indexOf("Firefox/"),h="MacIntel"===e,v="Win32"===e;if(r.ie=p,r.edge=d,r.firefox=f,o&&(r.os="windows",r.osVersion=o[2],r.windowsPhone=!0),i&&!v&&(r.os="android",r.osVersion=i[2],r.android=!0,r.androidChrome=0<=t.toLowerCase().indexOf("chrome")),(s||c||l)&&(r.os="ios",r.ios=!0),c&&!l&&(r.osVersion=c[2].replace(/_/g,"."),r.iphone=!0,r.iphoneX=u),s&&(r.osVersion=s[2].replace(/_/g,"."),r.ipad=!0),l&&(r.osVersion=l[3]?l[3].replace(/_/g,"."):null,r.iphone=!0),r.ios&&r.osVersion&&0<=t.indexOf("Version/")&&"10"===r.osVersion.split(".")[0]&&(r.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),r.webView=!(!(c||s||l)||!t.match(/.*AppleWebKit(?!.*Safari)/i)&&!win.navigator.standalone)||win.matchMedia&&win.matchMedia("(display-mode: standalone)").matches,r.webview=r.webView,r.standalone=r.webView,r.desktop=!(r.os||r.android||r.webView),r.desktop&&(r.macos=h,r.windows=v),r.os&&"ios"===r.os){var m=r.osVersion.split("."),g=doc.querySelector('meta[name="viewport"]');r.minimalUi=!r.webView&&(l||c)&&(1*m[0]==7?1<=1*m[1]:7<1*m[0])&&g&&0<=g.getAttribute("content").indexOf("minimal-ui")}return r.needsStatusbarOverlay=function(){return!(!(r.webView||r.android&&r.cordova)||win.innerWidth*win.innerHeight!=win.screen.width*win.screen.height)&&(!r.iphoneX||90!==win.orientation&&-90!==win.orientation)},r.statusbar=r.needsStatusbarOverlay(),r.pixelRatio=win.devicePixelRatio||1,r}(),Framework7Class=function(e,t){void 0===e&&(e={}),void 0===t&&(t=[]);var r=this;r.params=e,r.eventsParents=t,r.eventsListeners={},r.params&&r.params.on&&Object.keys(r.params.on).forEach(function(e){r.on(e,r.params.on[e])})},staticAccessors$1={components:{configurable:!0}};function ConstructorMethods(e){void 0===e&&(e={});var o=e.defaultSelector,r=e.constructor,a=e.domProp,n=e.app,t=e.addMethods,i={create:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return n?new(Function.prototype.bind.apply(r,[null].concat([n],e))):new(Function.prototype.bind.apply(r,[null].concat(e)))},get:function(e){if(void 0===e&&(e=o),e instanceof r)return e;var t=$(e);return 0!==t.length?t[0][a]:void 0},destroy:function(e){var t=i.get(e);if(t&&t.destroy)return t.destroy()}};return t&&Array.isArray(t)&&t.forEach(function(n){i[n]=function(e){void 0===e&&(e=o);for(var t=[],r=arguments.length-1;0<r--;)t[r]=arguments[r+1];var a=i.get(e);if(a&&a[n])return a[n].apply(a,t)}}),i}function ModalMethods(e){void 0===e&&(e={});var n=e.defaultSelector,o=e.constructor,i=e.app;return Utils.extend(ConstructorMethods({defaultSelector:n,constructor:o,app:i,domProp:"f7Modal"}),{open:function(e,t){var r=$(e),a=r[0].f7Modal;return a||(a=new o(i,{el:r})),a.open(t)},close:function(e,t){void 0===e&&(e=n);var r=$(e);if(0!==r.length){var a=r[0].f7Modal;return a||(a=new o(i,{el:r})),a.close(t)}}})}Framework7Class.prototype.on=function(e,t,r){var a=this;if("function"!=typeof t)return a;var n=r?"unshift":"push";return e.split(" ").forEach(function(e){a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][n](t)}),a},Framework7Class.prototype.once=function(a,n,e){var o=this;if("function"!=typeof n)return o;return o.on(a,function e(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];n.apply(o,t),o.off(a,e)},e)},Framework7Class.prototype.off=function(e,a){var n=this;return n.eventsListeners&&e.split(" ").forEach(function(r){void 0===a?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach(function(e,t){e===a&&n.eventsListeners[r].splice(t,1)})}),n},Framework7Class.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r,a,n,o,i=this;if(!i.eventsListeners)return i;o="string"==typeof e[0]||Array.isArray(e[0])?(r=e[0],a=e.slice(1,e.length),(n=i).eventsParents):(r=e[0].events,a=e[0].data,n=e[0].context||i,e[0].local?[]:e[0].parents||i.eventsParents);var s=Array.isArray(r)?r:r.split(" "),l=s.map(function(e){return e.replace("local::","")}),c=s.filter(function(e){return e.indexOf("local::")<0});return l.forEach(function(e){if(i.eventsListeners&&i.eventsListeners[e]){var t=[];i.eventsListeners[e].forEach(function(e){t.push(e)}),t.forEach(function(e){e.apply(n,a)})}}),o&&0<o.length&&o.forEach(function(e){e.emit.apply(e,[c].concat(a))}),i},Framework7Class.prototype.useModuleParams=function(e,t){if(e.params){var r={};Object.keys(e.params).forEach(function(e){void 0!==t[e]&&(r[e]=Utils.extend({},t[e]))}),Utils.ex