Socket
Socket
Sign inDemoInstall

dom7

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom7 - npm Package Compare versions

Comparing version 1.6.3 to 1.6.4

4

CHANGELOG.md
# Change Log
## Dom7 v1.6.4 - Released on August 2, 2017
* Fixed issue with handling events without target (e.g. Cordova "resume" event)
* Fixed issue with Ajax post method throwing error with "multipart/form-data" content type
## Dom7 v1.6.3 - Released on May 30, 2017

@@ -4,0 +8,0 @@ * Added shortcut methods `click blur focus focusin focusout keyup keydown keypress submit change mousedown mousemove mouseup mouseenter mouseleave mouseout mouseover touchstart touchend touchmove resize scroll`

6

dist/dom7.min.js
/**
* Dom7 1.6.3
* Dom7 1.6.4
* Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API

@@ -12,5 +12,5 @@ * http://framework7.io/docs/dom.html

*
* Released on: May 30, 2017
* Released on: August 2, 2017
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Dom7=t()}(this,function(){"use strict";function e(e,t){var r=[],n=0;if(e&&!t&&e instanceof l)return e;if(e)if("string"==typeof e){var i,s,o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var a="div";for(0===o.indexOf("<li")&&(a="ul"),0===o.indexOf("<tr")&&(a="tbody"),0!==o.indexOf("<td")&&0!==o.indexOf("<th")||(a="tr"),0===o.indexOf("<tbody")&&(a="table"),0===o.indexOf("<option")&&(a="select"),s=document.createElement(a),s.innerHTML=o,n=0;n<s.childNodes.length;n+=1)r.push(s.childNodes[n])}else for(i=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||document).querySelectorAll(e.trim()):[document.getElementById(e.trim().split("#")[1])],n=0;n<i.length;n+=1)i[n]&&r.push(i[n])}else if(e.nodeType||e===window||e===document)r.push(e);else if(e.length>0&&e[0].nodeType)for(n=0;n<e.length;n+=1)r.push(e[n]);return new l(r)}function t(t){function r(r,n,i){var o=arguments;r&&e(document).trigger(r,n),i&&(i in s&&s[i](o[3],o[4],o[5],o[6]),t[i]&&t[i](o[3],o[4],o[5],o[6]))}var n={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},i=["beforeSend","error","complete","success","statusCode"];t.type&&(t.method=t.type);var s=m;p.each(s,function(e,t){i.indexOf(e)<0&&(n[e]=t)}),p.each(n,function(e,r){e in t||(t[e]=r)}),t.url||(t.url=window.location.toString());var o=t.url.indexOf("?")>=0?"&":"?",a=t.method.toUpperCase();if(("GET"===a||"HEAD"===a||"OPTIONS"===a||"DELETE"===a)&&t.data){var l;l="string"==typeof t.data?t.data.indexOf("?")>=0?t.data.split("?")[1]:t.data:p.serializeObject(t.data),l.length&&(t.url+=o+l,"?"===o&&(o="&"))}if("json"===t.dataType&&t.url.indexOf("callback=")>=0){var u,f="f7jsonp_"+(Date.now()+(v+=1)),h=t.url.split("callback="),c=h[0]+"callback="+f;if(h[1].indexOf("&")>=0){var d=h[1].split("&").filter(function(e){return e.indexOf("=")>0}).join("&");d.length>0&&(c+="&"+d)}var g=document.createElement("script");return g.type="text/javascript",g.onerror=function(){clearTimeout(u),r(void 0,void 0,"error",null,"scripterror"),r("ajaxComplete ajax:complete",{scripterror:!0},"complete",null,"scripterror")},g.src=c,window[f]=function(e){clearTimeout(u),r(void 0,void 0,"success",e),g.parentNode.removeChild(g),g=null,delete window[f]},document.querySelector("head").appendChild(g),void(t.timeout>0&&(u=setTimeout(function(){g.parentNode.removeChild(g),g=null,r(void 0,void 0,"error",null,"timeout")},t.timeout)))}"GET"!==a&&"HEAD"!==a&&"OPTIONS"!==a&&"DELETE"!==a||!1===t.cache&&(t.url+=o+"_nocache"+Date.now());var b=new XMLHttpRequest;b.requestUrl=t.url,b.requestParameters=t,b.open(a,t.url,t.async,t.user,t.password);var y=null;if(("POST"===a||"PUT"===a||"PATCH"===a)&&t.data)if(t.processData){var w=[ArrayBuffer,Blob,Document,FormData];if(w.indexOf(t.data.constructor)>=0)y=t.data;else{var x="---------------------------"+Date.now().toString(16);"multipart/form-data"===t.contentType?b.setRequestHeader("Content-Type","multipart/form-data; boundary="+x):b.setRequestHeader("Content-Type",t.contentType),y="";var E=p.serializeObject(t.data);if("multipart/form-data"===t.contentType){x="---------------------------"+Date.now().toString(16),E=E.split("&");for(var T=[],L=0;L<E.length;L+=1)T.push('Content-Disposition: form-data; name="'+_data[L].split("=")[0]+'"\r\n\r\n'+_data[L].split("=")[1]+"\r\n");y="--"+x+"\r\n"+T.join("--"+x+"\r\n")+"--"+x+"--\r\n"}else y=E}}else y=t.data;t.headers&&p.each(t.headers,function(e,t){b.setRequestHeader(e,t)}),void 0===t.crossDomain&&(t.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(t.url)&&RegExp.$2!==window.location.host),t.crossDomain||b.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.xhrFields&&p.each(t.xhrFields,function(e,t){b[e]=t});var S;return b.onload=function(e){if(S&&clearTimeout(S),b.status>=200&&b.status<300||0===b.status){var n;if("json"===t.dataType)try{n=JSON.parse(b.responseText),r("ajaxSuccess ajax:success",{xhr:b},"success",n,b.status,b)}catch(e){r("ajaxError ajax:error",{xhr:b,parseerror:!0},"error",b,"parseerror")}else n="text"===b.responseType||""===b.responseType?b.responseText:b.response,r("ajaxSuccess ajax:success",{xhr:b},"success",n,b.status,b)}else r("ajaxError ajax:error",{xhr:b},"error",b,b.status);t.statusCode&&(s.statusCode&&s.statusCode[b.status]&&s.statusCode[b.status](b),t.statusCode[b.status]&&t.statusCode[b.status](b)),r("ajaxComplete ajax:complete",{xhr:b},"complete",b,b.status)},b.onerror=function(e){S&&clearTimeout(S),r("ajaxError ajax:error",{xhr:b},"error",b,b.status),r("ajaxComplete ajax:complete",{xhr:b,error:!0},"complete",b,"error")},r("ajaxStart ajax:start",{xhr:b},"start",b),r(void 0,void 0,"beforeSend",b),t.timeout>0&&(b.onabort=function(){S&&clearTimeout(S)},S=setTimeout(function(){b.abort(),r("ajaxError ajax:error",{xhr:b,timeout:!0},"error",b,"timeout"),r("ajaxComplete ajax:complete",{xhr:b,timeout:!0},"complete",b,"timeout")},t.timeout)),b.send(y),b}function r(t){for(var r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];var i,s,o,a,l;if("function"==typeof r[1]){var u;u=r,i=u[0],o=u[1],a=u[2],l=u[3]}else{var f;f=r,i=f[0],s=f[1],o=f[2],a=f[3],l=f[4]}return[o,a].forEach(function(e){"string"==typeof e&&(l=e,e===o?o=void 0:a=void 0)}),l=l||("getJSON"===t?"json":void 0),e.ajax({url:i,method:"post"===t?"POST":"GET",data:s,success:o,error:a,dataType:l})}function n(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.unshift("get"),r.apply(this,e)}function i(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.unshift("post"),r.apply(this,e)}function s(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.unshift("getJSON"),r.apply(this,e)}function o(t,r){var n=this,i={props:e.extend({},t),params:e.extend({duration:300,easing:"swing"},r),elements:n,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(){i.frameId&&p.cancelAnimationFrame(i.frameId),i.animating=!1,i.elements.each(function(e,t){delete t.dom7AnimateInstance}),i.que=[]},done:function(e){if(i.animating=!1,i.elements.each(function(e,t){delete t.dom7AnimateInstance}),e&&e(n),i.que.length>0){var t=i.que.shift();i.animate(t[0],t[1])}},animate:function(e,t){function r(){o=(new Date).getTime();var c,d;h||(h=!0,t.begin&&t.begin(n)),null===l&&(l=o),t.progress&&t.progress(n,Math.max(Math.min((o-l)/t.duration,1),0),l+t.duration-o<0?0:l+t.duration-o,l),s.forEach(function(r){var n=r;a||n.done||Object.keys(e).forEach(function(r){if(!a&&!n.done){c=Math.max(Math.min((o-l)/t.duration,1),0),d=i.easingProgress(t.easing,c);var h=n[r],p=h.initialValue,m=h.finalValue,v=h.unit;n[r].currentValue=p+d*(m-p);var g=n[r].currentValue;if((m>p&&g>=m||m<p&&g<=m)&&(n.container.style[r]=m+v,f+=1,f===Object.keys(e).length&&(n.done=!0,u+=1),u===s.length&&(a=!0)),a)return void i.done(t.complete);n.container.style[r]=g+v}})}),a||(i.frameId=p.requestAnimationFrame(r))}if(i.animating)return i.que.push([e,t]),i;var s=[];i.elements.each(function(t,r){var n,o,a,l,u;r.dom7AnimateInstance||(i.elements[t].dom7AnimateInstance=i),s[t]={container:r},Object.keys(e).forEach(function(i){n=window.getComputedStyle(r,null).getPropertyValue(i).replace(",","."),o=parseFloat(n),a=n.replace(o,""),l=parseFloat(e[i]),u=e[i]+a,s[t][i]={initialFullValue:n,initialValue:o,unit:a,finalValue:l,finalFullValue:u,currentValue:o}})});var o,a,l=null,u=0,f=0,h=!1;return i.animating=!0,i.frameId=p.requestAnimationFrame(r),i}};if(0===i.elements.length)return n;for(var s,o=0;o<i.elements.length;o+=1)i.elements[o].dom7AnimateInstance?s=i.elements[o].dom7AnimateInstance:i.elements[o].dom7AnimateInstance=i;return s||(s=i),"stop"===t?s.stop():s.animate(i.props,i.params),n}function a(){for(var e=this,t=0;t<e.length;t+=1)e[t].dom7AnimateInstance&&e[t].dom7AnimateInstance.stop()}for(var l=function(e){for(var t=this,r=0;r<e.length;r+=1)t[r]=e[r];return t.length=e.length,this},u=[{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źẑżžẓẕƶȥɀⱬꝣ"}],f={},h=0;h<u.length;h+=1)for(var c=u[h].letters,d=0;d<c.length;d+=1)f[c[d]]=u[h].base;var p={parseUrlQuery:function(e){var t,r,n,i,s={},o=e||window.location.href;if("string"==typeof o&&o.length)for(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"",r=o.split("&").filter(function(e){return""!==e}),i=r.length,t=0;t<i;t+=1)n=r[t].replace(/#\S+/g,"").split("="),s[decodeURIComponent(n[0])]=void 0===n[1]?void 0:decodeURIComponent(n[1])||"";return s},isArray:function(e){return Array.isArray(e)},each:function(e,t){if("object"==typeof e&&t)if(Array.isArray(e)||e instanceof l){for(var r=0;r<e.length;r++)if(!1===t(r,e[r]))return}else for(var n in e)if(e.hasOwnProperty(n)&&!1===t(n,e[n]))return},unique:function(e){for(var t=[],r=0;r<e.length;r+=1)-1===t.indexOf(e[r])&&t.push(e[r]);return t},serializeObject:function(e,t){function r(e){if(t.length>0){for(var r="",n=0;n<t.length;n+=1)r+=0===n?t[n]:"["+encodeURIComponent(t[n])+"]";return r+"["+encodeURIComponent(e)+"]"}return encodeURIComponent(e)}function n(e){return encodeURIComponent(e)}if(void 0===t&&(t=[]),"string"==typeof e)return e;var i,s=[];for(var o in e)if(e.hasOwnProperty(o)){var a=void 0;if(Array.isArray(e[o])){a=[];for(var l=0;l<e[o].length;l+=1)Array.isArray(e[o][l])||"object"!=typeof e[o][l]?a.push(r(o)+"[]="+n(e[o][l])):(i=t.slice(),i.push(o),i.push(String(l)),a.push(p.serializeObject(e[o][l],i)));a.length>0&&s.push(a.join("&"))}else null===e[o]||""===e[o]?s.push(r(o)+"="):"object"==typeof e[o]?(i=t.slice(),i.push(o),""!==(a=p.serializeObject(e[o],i))&&s.push(a)):void 0!==e[o]&&""!==e[o]?s.push(r(o)+"="+n(e[o])):""===e[o]&&s.push(r(o))}return s.join("&")},toCamelCase:function(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})},dataset:function(t){return e(t).dataset()},getTranslate:function(e,t){void 0===t&&(t="x");var r,n,i,s=window.getComputedStyle(e,null);return window.WebKitCSSMatrix?(n=s.transform||s.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),i=new window.WebKitCSSMatrix("none"===n?"":n)):(i=s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),"x"===t&&(n=window.WebKitCSSMatrix?i.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(n=window.WebKitCSSMatrix?i.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),n||0},requestAnimationFrame:function(e){return window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,1e3/60)},cancelAnimationFrame:function(e){return window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(e):window.clearTimeout(e)},supportTouch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),removeDiacritics:function(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return f[e]||e})},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=Object(e[0]),n=1;n<e.length;n+=1){var i=e[n];if(void 0!==i&&null!==i)for(var s=Object.keys(Object(i)),o=0,a=s.length;o<a;o+=1){var l=s[o],u=Object.getOwnPropertyDescriptor(i,l);void 0!==u&&u.enumerable&&("object"==typeof r[l]&&"object"==typeof i[l]?p.extend(r[l],i[l]):r[l]=i[l])}}return r}};p.parseQuery=p.parseUrlQuery,p.param=p.serializeObject;var m={};e.ajaxSetup=function(e){e.type&&!e.method&&(e.method=e.type),p.each(e,function(e,t){m[e]=t})};for(var v=0,g={scrollTo:function(e,t,r,n,i){return void 0===n&&(n="swing"),4===arguments.length&&"function"==typeof n&&(i=n,n=void 0),this.each(function(){function s(e){void 0===e&&(e=(new Date).getTime()),null===b&&(b=e);var t,l=Math.max(Math.min((e-b)/r,1),0),u="linear"===n?l:.5-Math.cos(l*Math.PI)/2;if(v&&(c=o+u*(f-o)),g&&(d=a+u*(h-a)),v&&f>o&&c>=f&&(m.scrollTop=f,t=!0),v&&f<o&&c<=f&&(m.scrollTop=f,t=!0),g&&h>a&&d>=h&&(m.scrollLeft=h,t=!0),g&&h<a&&d<=h&&(m.scrollLeft=h,t=!0),t)return void(i&&i());v&&(m.scrollTop=c),g&&(m.scrollLeft=d),p.requestAnimationFrame(s)}var o,a,l,u,f,h,c,d,m=this,v=t>0||0===t,g=e>0||0===e;if(void 0===n&&(n="swing"),v&&(o=m.scrollTop,r||(m.scrollTop=t)),g&&(a=m.scrollLeft,r||(m.scrollLeft=e)),r){v&&(l=m.scrollHeight-m.offsetHeight,f=Math.max(Math.min(t,l),0)),g&&(u=m.scrollWidth-m.offsetWidth,h=Math.max(Math.min(e,u),0));var b=null;v&&f===o&&(v=!1),g&&h===a&&(g=!1),p.requestAnimationFrame(s)}})},scrollTop:function(e,t,r,n){3===arguments.length&&"function"==typeof r&&(n=r,r=void 0);var i=this;return void 0===e?i.length>0?i[0].scrollTop:null:i.scrollTo(void 0,e,t,r,n)},scrollLeft:function(e,t,r,n){3===arguments.length&&"function"==typeof r&&(n=r,r=void 0);var i=this;return void 0===e?i.length>0?i[0].scrollLeft:null:i.scrollTo(e,void 0,t,r,n)}},b=({addClass:function(e){var t=this;if(void 0===e)return this;for(var r=e.split(" "),n=0;n<r.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==t[i].classList&&t[i].classList.add(r[n]);return this},removeClass:function(e){for(var t=this,r=e.split(" "),n=0;n<r.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==t[i].classList&&t[i].classList.remove(r[n]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=this,r=e.split(" "),n=0;n<r.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==t[i].classList&&t[i].classList.toggle(r[n]);return this},attr:function(e,t){var r=arguments,n=this;if(1!==arguments.length||"string"!=typeof e){for(var i=0;i<this.length;i+=1)if(2===r.length)n[i].setAttribute(e,t);else for(var s in e)n[i][s]=e[s],n[i].setAttribute(s,e[s]);return this}if(this[0])return this[0].getAttribute(e)},removeAttr:function(e){for(var t=this,r=0;r<this.length;r+=1)t[r].removeAttribute(e);return this},prop:function(e,t){var r=arguments,n=this;if(1!==arguments.length||"string"!=typeof e){for(var i=0;i<this.length;i+=1)if(2===r.length)n[i][e]=t;else for(var s in e)n[i][s]=e[s];return this}if(this[0])return this[0][e]},data:function(e,t){var r,n=this;if(void 0!==t){for(var i=0;i<this.length;i+=1)r=n[i],r.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 s=r.getAttribute("data-"+e);if(s)return s}else;},removeData:function(e){for(var t=this,r=0;r<this.length;r+=1){var n=t[r];n.dom7ElementDataStorage&&n.dom7ElementDataStorage[e]&&(n.dom7ElementDataStorage[e]=null,delete n.dom7ElementDataStorage[e])}},dataset:function(){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 n=0;n<e.attributes.length;n+=1){var i=e.attributes[n];i.name.indexOf("data-")>=0&&(t[p.toCamelCase(i.name.split("data-")[1])]=i.value)}for(var s in t)"false"===t[s]?t[s]=!1:"true"===t[s]?t[s]=!0:parseFloat(t[s])===1*t[s]&&(t[s]*=1);return t}},val:function(e){var t=this;{if(void 0!==e){for(var r=0;r<this.length;r+=1)t[r].value=e;return this}if(this[0]){if(this[0].multiple&&"select"===this[0].nodeName.toLowerCase()){for(var n=[],i=0;i<this[0].selectedOptions.length;i+=1)n.push(t[0].selectedOptions[i].value);return n}return this[0].value}}},transform:function(e){for(var t=this,r=0;r<this.length;r+=1){var n=t[r].style;n.webkitTransform=e,n.transform=e}return this},transition:function(e){var t=this;"string"!=typeof e&&(e+="ms");for(var r=0;r<this.length;r+=1){var n=t[r].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this},on:function(){function t(t){var r=t.target,n=t.target.dom7EventData||[];if(n.unshift(t),e(r).is(o))a.apply(r,n);else for(var i=e(r).parents(),s=0;s<i.length;s+=1)e(i[s]).is(o)&&a.apply(i[s],n)}function r(e){var t=e.target.dom7EventData||[];t.unshift(e),a.apply(this,t)}for(var n=this,i=[],s=arguments.length;s--;)i[s]=arguments[s];var o,a,l=i[0],u=!1;"function"==typeof i[1]?(o=!1,a=i[1],u=i[2]):(o=i[1],a=i[2],u=i[3]);for(var f,h=l.split(" "),c=0;c<this.length;c+=1){var d=n[c];if(o)for(f=0;f<h.length;f+=1)d.dom7LiveListeners||(d.dom7LiveListeners=[]),d.dom7LiveListeners.push({type:l,listener:a,proxyListener:t}),d.addEventListener(h[f],t,u);else for(f=0;f<h.length;f+=1)d.dom7Listeners||(d.dom7Listeners=[]),d.dom7Listeners.push({type:l,listener:a,proxyListener:r}),d.addEventListener(h[f],r,u)}return this},off:function(){for(var e=this,t=[],r=arguments.length;r--;)t[r]=arguments[r];var n,i,s=t[0],o=!1;"function"==typeof t[1]?(n=!1,i=t[1],o=t[2]):(n=t[1],i=t[2],o=t[3]);for(var a=s.split(" "),l=0;l<a.length;l+=1)for(var u=0;u<this.length;u+=1){var f=e[u];if(n){if(f.dom7LiveListeners)for(var h=0;h<f.dom7LiveListeners.length;h+=1)i?f.dom7LiveListeners[h].listener===i&&f.removeEventListener(a[l],f.dom7LiveListeners[h].proxyListener,o):f.dom7Listeners[h].type===a[l]&&f.removeEventListener(a[l],f.dom7LiveListeners[h].proxyListener,o)}else if(f.dom7Listeners)for(var c=0;c<f.dom7Listeners.length;c+=1)i?f.dom7Listeners[c].listener===i&&f.removeEventListener(a[l],f.dom7Listeners[c].proxyListener,o):f.dom7Listeners[c].type===a[l]&&f.removeEventListener(a[l],f.dom7Listeners[c].proxyListener,o)}return this},once:function(e,t,r,n){function i(o){var a=o.target.dom7EventData||[];r.apply(this,a),s.off(e,t,i,n)}var s=this;return"function"==typeof t&&(r=arguments[1],n=arguments[2],t=!1),s.on(e,t,i,n)},trigger:function(){for(var e=this,t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var n=t[0].split(" "),i=t[1],s=0;s<n.length;s+=1)for(var o=0;o<this.length;o+=1){var a=void 0;try{a=new CustomEvent(n[s],{detail:i,bubbles:!0,cancelable:!0})}catch(e){a=document.createEvent("Event"),a.initEvent(n[s],!0,!0),a.detail=i}e[o].dom7EventData=t.filter(function(e,t){return t>0}),e[o].dispatchEvent(a),e[o].dom7EventData=[],delete e[o].dom7EventData}return this},transitionEnd:function(e){function t(s){if(s.target===this)for(e.call(this,s),r=0;r<n.length;r+=1)i.off(n[r],t)}var r,n=["webkitTransitionEnd","transitionend"],i=this;if(e)for(r=0;r<n.length;r+=1)i.on(n[r],t);return this},animationEnd:function(e){function t(s){for(e(s),r=0;r<n.length;r+=1)i.off(n[r],t)}var r,n=["webkitAnimationEnd","animationend"],i=this;if(e)for(r=0;r<n.length;r+=1)i.on(n[r],t);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){if(this.length>0){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},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){if(this.length>0){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},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),r=document.body,n=e.clientTop||r.clientTop||0,i=e.clientLeft||r.clientLeft||0,s=e===window?window.scrollY:e.scrollTop,o=e===window?window.scrollX:e.scrollLeft;return{top:t.top+s-n,left:t.left+o-i}}return null},hide:function(){for(var e=this,t=0;t<this.length;t+=1)e[t].style.display="none";return this},show:function(){for(var e=this,t=0;t<this.length;t+=1)e[t].style.display="block";return this},styles:function(){if(this[0])return window.getComputedStyle(this[0],null)},css:function(e,t){var r,n=this;if(1===arguments.length){if("string"!=typeof e){for(r=0;r<this.length;r+=1)for(var i in e)n[r].style[i]=e[i];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(r=0;r<this.length;r+=1)n[r].style[e]=t;return this}return this},each:function(e){var t=this;if(!e)return this;for(var r=0;r<this.length;r+=1)if(!1===e.call(t[r],r,t[r]))return t;return this},filter:function(e){for(var t=[],r=this,n=0;n<r.length;n+=1)e.call(r[n],n,r[n])&&t.push(r[n]);return new l(t)},html:function(e){var t=this;if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var r=0;r<this.length;r+=1)t[r].innerHTML=e;return this},text:function(e){var t=this;if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var r=0;r<this.length;r+=1)t[r].textContent=e;return this},is:function(t){var r,n,i=this[0];if(!i||void 0===t)return!1;if("string"==typeof t){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(r=e(t),n=0;n<r.length;n+=1)if(r[n]===i)return!0;return!1}if(t===document)return i===document;if(t===window)return i===window;if(t.nodeType||t instanceof l){for(r=t.nodeType?[t]:t,n=0;n<r.length;n+=1)if(r[n]===i)return!0;return!1}return!1},indexOf:function(e){for(var t=this,r=0;r<this.length;r+=1)if(t[r]===e)return r},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,r=this.length;return e>r-1?new l([]):e<0?(t=r+e,new l(t<0?[]:[this[t]])):new l([this[e]])},append:function(){for(var e=this,t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var n,i=0;i<t.length;i+=1){n=t[i];for(var s=0;s<this.length;s+=1)if("string"==typeof n){var o=document.createElement("div");for(o.innerHTML=n;o.firstChild;)e[s].appendChild(o.firstChild)}else if(n instanceof l)for(var a=0;a<n.length;a+=1)e[s].appendChild(n[a]);else e[s].appendChild(n)}return this},appendTo:function(t){return e(t).append(this),this},prepend:function(e){var t,r,n=this;for(t=0;t<this.length;t+=1)if("string"==typeof e){var i=document.createElement("div");for(i.innerHTML=e,r=i.childNodes.length-1;r>=0;r-=1)n[t].insertBefore(i.childNodes[r],n[t].childNodes[0])}else if(e instanceof l)for(r=0;r<e.length;r+=1)n[t].insertBefore(e[r],n[t].childNodes[0]);else n[t].insertBefore(e,n[t].childNodes[0]);return this},prependTo:function(t){return e(t).prepend(this),this},insertBefore:function(t){for(var r=this,n=e(t),i=0;i<this.length;i+=1)if(1===n.length)n[0].parentNode.insertBefore(r[i],n[0]);else if(n.length>1)for(var s=0;s<n.length;s+=1)n[s].parentNode.insertBefore(r[i].cloneNode(!0),n[s])},insertAfter:function(t){for(var r=this,n=e(t),i=0;i<this.length;i+=1)if(1===n.length)n[0].parentNode.insertBefore(r[i],n[0].nextSibling);else if(n.length>1)for(var s=0;s<n.length;s+=1)n[s].parentNode.insertBefore(r[i].cloneNode(!0),n[s].nextSibling)},next:function(t){return new l(this.length>0?t?this[0].nextElementSibling&&e(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(t){var r=[],n=this[0];if(!n)return new l([]);for(;n.nextElementSibling;){var i=n.nextElementSibling;t?e(i).is(t)&&r.push(i):r.push(i),n=i}return new l(r)},prev:function(t){if(this.length>0){var r=this[0];return new l(t?r.previousElementSibling&&e(r.previousElementSibling).is(t)?[r.previousElementSibling]:[]:r.previousElementSibling?[r.previousElementSibling]:[])}return new l([])},prevAll:function(t){var r=[],n=this[0];if(!n)return new l([]);for(;n.previousElementSibling;){var i=n.previousElementSibling;t?e(i).is(t)&&r.push(i):r.push(i),n=i}return new l(r)},siblings:function(e){return this.nextAll(e).add(this.prevAll(e))},parent:function(t){for(var r=this,n=[],i=0;i<this.length;i+=1)null!==r[i].parentNode&&(t?e(r[i].parentNode).is(t)&&n.push(r[i].parentNode):n.push(r[i].parentNode));return e(p.unique(n))},parents:function(t){for(var r=this,n=[],i=0;i<this.length;i+=1)for(var s=r[i].parentNode;s;)t?e(s).is(t)&&n.push(s):n.push(s),s=s.parentNode;return e(p.unique(n))},closest:function(e){var t=this;return void 0===e?new l([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=this,r=[],n=0;n<this.length;n+=1)for(var i=t[n].querySelectorAll(e),s=0;s<i.length;s+=1)r.push(i[s]);return new l(r)},children:function(t){for(var r=this,n=[],i=0;i<this.length;i+=1)for(var s=r[i].childNodes,o=0;o<s.length;o+=1)t?1===s[o].nodeType&&e(s[o]).is(t)&&n.push(s[o]):1===s[o].nodeType&&n.push(s[o]);return new l(p.unique(n))},remove:function(){for(var e=this,t=0;t<this.length;t+=1)e[t].parentNode&&e[t].parentNode.removeChild(e[t]);return this},detach:function(){return this.remove()},add:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n,i,s=this;for(n=0;n<t.length;n+=1){var o=e(t[n]);for(i=0;i<o.length;i+=1)s[s.length]=o[i],s.length+=1}return s},empty:function(){for(var e=this,t=0;t<this.length;t+=1){var r=e[t];if(1===r.nodeType){for(var n=0;n<r.childNodes.length;n+=1)r.childNodes[n].parentNode&&r.childNodes[n].parentNode.removeChild(r.childNodes[n]);r.textContent=""}}return this}}),y="click blur focus focusin focusout keyup keydown keypress submit change mousedown mousemove mouseup mouseenter mouseleave mouseout mouseover touchstart touchend touchmove resize scroll".split(" "),w="resize scroll".split(" "),x=0;x<y.length;x+=1)!function(t){b[t]=function(r,n,i){var s=this;if(void 0===r){for(var o=0;o<this.length;o+=1)w.indexOf(t)<0&&(t in s[o]?s[o][t]():e(s[o]).trigger(t));return this}return this.on(t,r,n,i)}}(y[x]);return function(){return Object.keys(p).forEach(function(t){e[t]=p[t]}),Object.keys(b).forEach(function(e){l.prototype[e]=b[e]}),Object.keys(g).forEach(function(e){l.prototype[e]=g[e]}),l.prototype.animate=o,l.prototype.stop=a,e.ajax=t,e.get=n,e.post=i,e.getJSON=s,e.fn=l.prototype,e}()});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Dom7=t()}(this,function(){"use strict";function e(e,t){var r=[],n=0;if(e&&!t&&e instanceof l)return e;if(e)if("string"==typeof e){var i,s,o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var a="div";for(0===o.indexOf("<li")&&(a="ul"),0===o.indexOf("<tr")&&(a="tbody"),0!==o.indexOf("<td")&&0!==o.indexOf("<th")||(a="tr"),0===o.indexOf("<tbody")&&(a="table"),0===o.indexOf("<option")&&(a="select"),s=document.createElement(a),s.innerHTML=o,n=0;n<s.childNodes.length;n+=1)r.push(s.childNodes[n])}else for(i=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||document).querySelectorAll(e.trim()):[document.getElementById(e.trim().split("#")[1])],n=0;n<i.length;n+=1)i[n]&&r.push(i[n])}else if(e.nodeType||e===window||e===document)r.push(e);else if(e.length>0&&e[0].nodeType)for(n=0;n<e.length;n+=1)r.push(e[n]);return new l(r)}function t(t){function r(r,n,i){var o=arguments;r&&e(document).trigger(r,n),i&&(i in s&&s[i](o[3],o[4],o[5],o[6]),t[i]&&t[i](o[3],o[4],o[5],o[6]))}var n={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},i=["beforeSend","error","complete","success","statusCode"];t.type&&(t.method=t.type);var s=m;p.each(s,function(e,t){i.indexOf(e)<0&&(n[e]=t)}),p.each(n,function(e,r){e in t||(t[e]=r)}),t.url||(t.url=window.location.toString());var o=t.url.indexOf("?")>=0?"&":"?",a=t.method.toUpperCase();if(("GET"===a||"HEAD"===a||"OPTIONS"===a||"DELETE"===a)&&t.data){var l;l="string"==typeof t.data?t.data.indexOf("?")>=0?t.data.split("?")[1]:t.data:p.serializeObject(t.data),l.length&&(t.url+=o+l,"?"===o&&(o="&"))}if("json"===t.dataType&&t.url.indexOf("callback=")>=0){var u,f="f7jsonp_"+(Date.now()+(v+=1)),h=t.url.split("callback="),c=h[0]+"callback="+f;if(h[1].indexOf("&")>=0){var d=h[1].split("&").filter(function(e){return e.indexOf("=")>0}).join("&");d.length>0&&(c+="&"+d)}var g=document.createElement("script");return g.type="text/javascript",g.onerror=function(){clearTimeout(u),r(void 0,void 0,"error",null,"scripterror"),r("ajaxComplete ajax:complete",{scripterror:!0},"complete",null,"scripterror")},g.src=c,window[f]=function(e){clearTimeout(u),r(void 0,void 0,"success",e),g.parentNode.removeChild(g),g=null,delete window[f]},document.querySelector("head").appendChild(g),void(t.timeout>0&&(u=setTimeout(function(){g.parentNode.removeChild(g),g=null,r(void 0,void 0,"error",null,"timeout")},t.timeout)))}"GET"!==a&&"HEAD"!==a&&"OPTIONS"!==a&&"DELETE"!==a||!1===t.cache&&(t.url+=o+"_nocache"+Date.now());var b=new XMLHttpRequest;b.requestUrl=t.url,b.requestParameters=t,b.open(a,t.url,t.async,t.user,t.password);var y=null;if(("POST"===a||"PUT"===a||"PATCH"===a)&&t.data)if(t.processData){var w=[ArrayBuffer,Blob,Document,FormData];if(w.indexOf(t.data.constructor)>=0)y=t.data;else{var x="---------------------------"+Date.now().toString(16);"multipart/form-data"===t.contentType?b.setRequestHeader("Content-Type","multipart/form-data; boundary="+x):b.setRequestHeader("Content-Type",t.contentType),y="";var E=p.serializeObject(t.data);if("multipart/form-data"===t.contentType){E=E.split("&");for(var T=[],L=0;L<E.length;L+=1)T.push('Content-Disposition: form-data; name="'+E[L].split("=")[0]+'"\r\n\r\n'+E[L].split("=")[1]+"\r\n");y="--"+x+"\r\n"+T.join("--"+x+"\r\n")+"--"+x+"--\r\n"}else y=E}}else y=t.data;t.headers&&p.each(t.headers,function(e,t){b.setRequestHeader(e,t)}),void 0===t.crossDomain&&(t.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(t.url)&&RegExp.$2!==window.location.host),t.crossDomain||b.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.xhrFields&&p.each(t.xhrFields,function(e,t){b[e]=t});var S;return b.onload=function(e){if(S&&clearTimeout(S),b.status>=200&&b.status<300||0===b.status){var n;if("json"===t.dataType)try{n=JSON.parse(b.responseText),r("ajaxSuccess ajax:success",{xhr:b},"success",n,b.status,b)}catch(e){r("ajaxError ajax:error",{xhr:b,parseerror:!0},"error",b,"parseerror")}else n="text"===b.responseType||""===b.responseType?b.responseText:b.response,r("ajaxSuccess ajax:success",{xhr:b},"success",n,b.status,b)}else r("ajaxError ajax:error",{xhr:b},"error",b,b.status);t.statusCode&&(s.statusCode&&s.statusCode[b.status]&&s.statusCode[b.status](b),t.statusCode[b.status]&&t.statusCode[b.status](b)),r("ajaxComplete ajax:complete",{xhr:b},"complete",b,b.status)},b.onerror=function(e){S&&clearTimeout(S),r("ajaxError ajax:error",{xhr:b},"error",b,b.status),r("ajaxComplete ajax:complete",{xhr:b,error:!0},"complete",b,"error")},r("ajaxStart ajax:start",{xhr:b},"start",b),r(void 0,void 0,"beforeSend",b),t.timeout>0&&(b.onabort=function(){S&&clearTimeout(S)},S=setTimeout(function(){b.abort(),r("ajaxError ajax:error",{xhr:b,timeout:!0},"error",b,"timeout"),r("ajaxComplete ajax:complete",{xhr:b,timeout:!0},"complete",b,"timeout")},t.timeout)),b.send(y),b}function r(t){for(var r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];var i,s,o,a,l;if("function"==typeof r[1]){var u;u=r,i=u[0],o=u[1],a=u[2],l=u[3]}else{var f;f=r,i=f[0],s=f[1],o=f[2],a=f[3],l=f[4]}return[o,a].forEach(function(e){"string"==typeof e&&(l=e,e===o?o=void 0:a=void 0)}),l=l||("getJSON"===t?"json":void 0),e.ajax({url:i,method:"post"===t?"POST":"GET",data:s,success:o,error:a,dataType:l})}function n(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.unshift("get"),r.apply(this,e)}function i(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.unshift("post"),r.apply(this,e)}function s(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.unshift("getJSON"),r.apply(this,e)}function o(t,r){var n=this,i={props:e.extend({},t),params:e.extend({duration:300,easing:"swing"},r),elements:n,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(){i.frameId&&p.cancelAnimationFrame(i.frameId),i.animating=!1,i.elements.each(function(e,t){delete t.dom7AnimateInstance}),i.que=[]},done:function(e){if(i.animating=!1,i.elements.each(function(e,t){delete t.dom7AnimateInstance}),e&&e(n),i.que.length>0){var t=i.que.shift();i.animate(t[0],t[1])}},animate:function(e,t){function r(){o=(new Date).getTime();var c,d;h||(h=!0,t.begin&&t.begin(n)),null===l&&(l=o),t.progress&&t.progress(n,Math.max(Math.min((o-l)/t.duration,1),0),l+t.duration-o<0?0:l+t.duration-o,l),s.forEach(function(r){var n=r;a||n.done||Object.keys(e).forEach(function(r){if(!a&&!n.done){c=Math.max(Math.min((o-l)/t.duration,1),0),d=i.easingProgress(t.easing,c);var h=n[r],p=h.initialValue,m=h.finalValue,v=h.unit;n[r].currentValue=p+d*(m-p);var g=n[r].currentValue;if((m>p&&g>=m||m<p&&g<=m)&&(n.container.style[r]=m+v,f+=1,f===Object.keys(e).length&&(n.done=!0,u+=1),u===s.length&&(a=!0)),a)return void i.done(t.complete);n.container.style[r]=g+v}})}),a||(i.frameId=p.requestAnimationFrame(r))}if(i.animating)return i.que.push([e,t]),i;var s=[];i.elements.each(function(t,r){var n,o,a,l,u;r.dom7AnimateInstance||(i.elements[t].dom7AnimateInstance=i),s[t]={container:r},Object.keys(e).forEach(function(i){n=window.getComputedStyle(r,null).getPropertyValue(i).replace(",","."),o=parseFloat(n),a=n.replace(o,""),l=parseFloat(e[i]),u=e[i]+a,s[t][i]={initialFullValue:n,initialValue:o,unit:a,finalValue:l,finalFullValue:u,currentValue:o}})});var o,a,l=null,u=0,f=0,h=!1;return i.animating=!0,i.frameId=p.requestAnimationFrame(r),i}};if(0===i.elements.length)return n;for(var s,o=0;o<i.elements.length;o+=1)i.elements[o].dom7AnimateInstance?s=i.elements[o].dom7AnimateInstance:i.elements[o].dom7AnimateInstance=i;return s||(s=i),"stop"===t?s.stop():s.animate(i.props,i.params),n}function a(){for(var e=this,t=0;t<e.length;t+=1)e[t].dom7AnimateInstance&&e[t].dom7AnimateInstance.stop()}for(var l=function(e){for(var t=this,r=0;r<e.length;r+=1)t[r]=e[r];return t.length=e.length,this},u=[{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źẑżžẓẕƶȥɀⱬꝣ"}],f={},h=0;h<u.length;h+=1)for(var c=u[h].letters,d=0;d<c.length;d+=1)f[c[d]]=u[h].base;var p={parseUrlQuery:function(e){var t,r,n,i,s={},o=e||window.location.href;if("string"==typeof o&&o.length)for(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"",r=o.split("&").filter(function(e){return""!==e}),i=r.length,t=0;t<i;t+=1)n=r[t].replace(/#\S+/g,"").split("="),s[decodeURIComponent(n[0])]=void 0===n[1]?void 0:decodeURIComponent(n[1])||"";return s},isArray:function(e){return Array.isArray(e)},each:function(e,t){if("object"==typeof e&&t)if(Array.isArray(e)||e instanceof l){for(var r=0;r<e.length;r++)if(!1===t(r,e[r]))return}else for(var n in e)if(e.hasOwnProperty(n)&&!1===t(n,e[n]))return},unique:function(e){for(var t=[],r=0;r<e.length;r+=1)-1===t.indexOf(e[r])&&t.push(e[r]);return t},serializeObject:function(e,t){function r(e){if(t.length>0){for(var r="",n=0;n<t.length;n+=1)r+=0===n?t[n]:"["+encodeURIComponent(t[n])+"]";return r+"["+encodeURIComponent(e)+"]"}return encodeURIComponent(e)}function n(e){return encodeURIComponent(e)}if(void 0===t&&(t=[]),"string"==typeof e)return e;var i,s=[];for(var o in e)if(e.hasOwnProperty(o)){var a=void 0;if(Array.isArray(e[o])){a=[];for(var l=0;l<e[o].length;l+=1)Array.isArray(e[o][l])||"object"!=typeof e[o][l]?a.push(r(o)+"[]="+n(e[o][l])):(i=t.slice(),i.push(o),i.push(String(l)),a.push(p.serializeObject(e[o][l],i)));a.length>0&&s.push(a.join("&"))}else null===e[o]||""===e[o]?s.push(r(o)+"="):"object"==typeof e[o]?(i=t.slice(),i.push(o),""!==(a=p.serializeObject(e[o],i))&&s.push(a)):void 0!==e[o]&&""!==e[o]?s.push(r(o)+"="+n(e[o])):""===e[o]&&s.push(r(o))}return s.join("&")},toCamelCase:function(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})},dataset:function(t){return e(t).dataset()},getTranslate:function(e,t){void 0===t&&(t="x");var r,n,i,s=window.getComputedStyle(e,null);return window.WebKitCSSMatrix?(n=s.transform||s.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),i=new window.WebKitCSSMatrix("none"===n?"":n)):(i=s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),"x"===t&&(n=window.WebKitCSSMatrix?i.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(n=window.WebKitCSSMatrix?i.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),n||0},requestAnimationFrame:function(e){return window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,1e3/60)},cancelAnimationFrame:function(e){return window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(e):window.clearTimeout(e)},supportTouch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),removeDiacritics:function(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return f[e]||e})},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=Object(e[0]),n=1;n<e.length;n+=1){var i=e[n];if(void 0!==i&&null!==i)for(var s=Object.keys(Object(i)),o=0,a=s.length;o<a;o+=1){var l=s[o],u=Object.getOwnPropertyDescriptor(i,l);void 0!==u&&u.enumerable&&("object"==typeof r[l]&&"object"==typeof i[l]?p.extend(r[l],i[l]):r[l]=i[l])}}return r}};p.parseQuery=p.parseUrlQuery,p.param=p.serializeObject;var m={};e.ajaxSetup=function(e){e.type&&!e.method&&(e.method=e.type),p.each(e,function(e,t){m[e]=t})};for(var v=0,g={scrollTo:function(e,t,r,n,i){return void 0===n&&(n="swing"),4===arguments.length&&"function"==typeof n&&(i=n,n=void 0),this.each(function(){function s(e){void 0===e&&(e=(new Date).getTime()),null===b&&(b=e);var t,l=Math.max(Math.min((e-b)/r,1),0),u="linear"===n?l:.5-Math.cos(l*Math.PI)/2;if(v&&(c=o+u*(f-o)),g&&(d=a+u*(h-a)),v&&f>o&&c>=f&&(m.scrollTop=f,t=!0),v&&f<o&&c<=f&&(m.scrollTop=f,t=!0),g&&h>a&&d>=h&&(m.scrollLeft=h,t=!0),g&&h<a&&d<=h&&(m.scrollLeft=h,t=!0),t)return void(i&&i());v&&(m.scrollTop=c),g&&(m.scrollLeft=d),p.requestAnimationFrame(s)}var o,a,l,u,f,h,c,d,m=this,v=t>0||0===t,g=e>0||0===e;if(void 0===n&&(n="swing"),v&&(o=m.scrollTop,r||(m.scrollTop=t)),g&&(a=m.scrollLeft,r||(m.scrollLeft=e)),r){v&&(l=m.scrollHeight-m.offsetHeight,f=Math.max(Math.min(t,l),0)),g&&(u=m.scrollWidth-m.offsetWidth,h=Math.max(Math.min(e,u),0));var b=null;v&&f===o&&(v=!1),g&&h===a&&(g=!1),p.requestAnimationFrame(s)}})},scrollTop:function(e,t,r,n){3===arguments.length&&"function"==typeof r&&(n=r,r=void 0);var i=this;return void 0===e?i.length>0?i[0].scrollTop:null:i.scrollTo(void 0,e,t,r,n)},scrollLeft:function(e,t,r,n){3===arguments.length&&"function"==typeof r&&(n=r,r=void 0);var i=this;return void 0===e?i.length>0?i[0].scrollLeft:null:i.scrollTo(e,void 0,t,r,n)}},b=({addClass:function(e){var t=this;if(void 0===e)return this;for(var r=e.split(" "),n=0;n<r.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==t[i].classList&&t[i].classList.add(r[n]);return this},removeClass:function(e){for(var t=this,r=e.split(" "),n=0;n<r.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==t[i].classList&&t[i].classList.remove(r[n]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=this,r=e.split(" "),n=0;n<r.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==t[i].classList&&t[i].classList.toggle(r[n]);return this},attr:function(e,t){var r=arguments,n=this;if(1!==arguments.length||"string"!=typeof e){for(var i=0;i<this.length;i+=1)if(2===r.length)n[i].setAttribute(e,t);else for(var s in e)n[i][s]=e[s],n[i].setAttribute(s,e[s]);return this}if(this[0])return this[0].getAttribute(e)},removeAttr:function(e){for(var t=this,r=0;r<this.length;r+=1)t[r].removeAttribute(e);return this},prop:function(e,t){var r=arguments,n=this;if(1!==arguments.length||"string"!=typeof e){for(var i=0;i<this.length;i+=1)if(2===r.length)n[i][e]=t;else for(var s in e)n[i][s]=e[s];return this}if(this[0])return this[0][e]},data:function(e,t){var r,n=this;if(void 0!==t){for(var i=0;i<this.length;i+=1)r=n[i],r.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 s=r.getAttribute("data-"+e);if(s)return s}else;},removeData:function(e){for(var t=this,r=0;r<this.length;r+=1){var n=t[r];n.dom7ElementDataStorage&&n.dom7ElementDataStorage[e]&&(n.dom7ElementDataStorage[e]=null,delete n.dom7ElementDataStorage[e])}},dataset:function(){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 n=0;n<e.attributes.length;n+=1){var i=e.attributes[n];i.name.indexOf("data-")>=0&&(t[p.toCamelCase(i.name.split("data-")[1])]=i.value)}for(var s in t)"false"===t[s]?t[s]=!1:"true"===t[s]?t[s]=!0:parseFloat(t[s])===1*t[s]&&(t[s]*=1);return t}},val:function(e){var t=this;{if(void 0!==e){for(var r=0;r<this.length;r+=1)t[r].value=e;return this}if(this[0]){if(this[0].multiple&&"select"===this[0].nodeName.toLowerCase()){for(var n=[],i=0;i<this[0].selectedOptions.length;i+=1)n.push(t[0].selectedOptions[i].value);return n}return this[0].value}}},transform:function(e){for(var t=this,r=0;r<this.length;r+=1){var n=t[r].style;n.webkitTransform=e,n.transform=e}return this},transition:function(e){var t=this;"string"!=typeof e&&(e+="ms");for(var r=0;r<this.length;r+=1){var n=t[r].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this},on:function(){function t(t){var r=t.target;if(r){var n=t.target.dom7EventData||[];if(n.unshift(t),e(r).is(o))a.apply(r,n);else for(var i=e(r).parents(),s=0;s<i.length;s+=1)e(i[s]).is(o)&&a.apply(i[s],n)}}function r(e){var t=e&&e.target?e.target.dom7EventData||[]:[];t.unshift(e),a.apply(this,t)}for(var n=this,i=[],s=arguments.length;s--;)i[s]=arguments[s];var o,a,l=i[0],u=!1;"function"==typeof i[1]?(o=!1,a=i[1],u=i[2]):(o=i[1],a=i[2],u=i[3]);for(var f,h=l.split(" "),c=0;c<this.length;c+=1){var d=n[c];if(o)for(f=0;f<h.length;f+=1)d.dom7LiveListeners||(d.dom7LiveListeners=[]),d.dom7LiveListeners.push({type:l,listener:a,proxyListener:t}),d.addEventListener(h[f],t,u);else for(f=0;f<h.length;f+=1)d.dom7Listeners||(d.dom7Listeners=[]),d.dom7Listeners.push({type:l,listener:a,proxyListener:r}),d.addEventListener(h[f],r,u)}return this},off:function(){for(var e=this,t=[],r=arguments.length;r--;)t[r]=arguments[r];var n,i,s=t[0],o=!1;"function"==typeof t[1]?(n=!1,i=t[1],o=t[2]):(n=t[1],i=t[2],o=t[3]);for(var a=s.split(" "),l=0;l<a.length;l+=1)for(var u=0;u<this.length;u+=1){var f=e[u];if(n){if(f.dom7LiveListeners)for(var h=0;h<f.dom7LiveListeners.length;h+=1)i?f.dom7LiveListeners[h].listener===i&&f.removeEventListener(a[l],f.dom7LiveListeners[h].proxyListener,o):f.dom7Listeners[h].type===a[l]&&f.removeEventListener(a[l],f.dom7LiveListeners[h].proxyListener,o)}else if(f.dom7Listeners)for(var c=0;c<f.dom7Listeners.length;c+=1)i?f.dom7Listeners[c].listener===i&&f.removeEventListener(a[l],f.dom7Listeners[c].proxyListener,o):f.dom7Listeners[c].type===a[l]&&f.removeEventListener(a[l],f.dom7Listeners[c].proxyListener,o)}return this},once:function(e,t,r,n){function i(o){var a=o.target.dom7EventData||[];r.apply(this,a),s.off(e,t,i,n)}var s=this;return"function"==typeof t&&(r=arguments[1],n=arguments[2],t=!1),s.on(e,t,i,n)},trigger:function(){for(var e=this,t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var n=t[0].split(" "),i=t[1],s=0;s<n.length;s+=1)for(var o=0;o<this.length;o+=1){var a=void 0;try{a=new CustomEvent(n[s],{detail:i,bubbles:!0,cancelable:!0})}catch(e){a=document.createEvent("Event"),a.initEvent(n[s],!0,!0),a.detail=i}e[o].dom7EventData=t.filter(function(e,t){return t>0}),e[o].dispatchEvent(a),e[o].dom7EventData=[],delete e[o].dom7EventData}return this},transitionEnd:function(e){function t(s){if(s.target===this)for(e.call(this,s),r=0;r<n.length;r+=1)i.off(n[r],t)}var r,n=["webkitTransitionEnd","transitionend"],i=this;if(e)for(r=0;r<n.length;r+=1)i.on(n[r],t);return this},animationEnd:function(e){function t(s){for(e(s),r=0;r<n.length;r+=1)i.off(n[r],t)}var r,n=["webkitAnimationEnd","animationend"],i=this;if(e)for(r=0;r<n.length;r+=1)i.on(n[r],t);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){if(this.length>0){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},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){if(this.length>0){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},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),r=document.body,n=e.clientTop||r.clientTop||0,i=e.clientLeft||r.clientLeft||0,s=e===window?window.scrollY:e.scrollTop,o=e===window?window.scrollX:e.scrollLeft;return{top:t.top+s-n,left:t.left+o-i}}return null},hide:function(){for(var e=this,t=0;t<this.length;t+=1)e[t].style.display="none";return this},show:function(){for(var e=this,t=0;t<this.length;t+=1)e[t].style.display="block";return this},styles:function(){if(this[0])return window.getComputedStyle(this[0],null)},css:function(e,t){var r,n=this;if(1===arguments.length){if("string"!=typeof e){for(r=0;r<this.length;r+=1)for(var i in e)n[r].style[i]=e[i];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(r=0;r<this.length;r+=1)n[r].style[e]=t;return this}return this},each:function(e){var t=this;if(!e)return this;for(var r=0;r<this.length;r+=1)if(!1===e.call(t[r],r,t[r]))return t;return this},filter:function(e){for(var t=[],r=this,n=0;n<r.length;n+=1)e.call(r[n],n,r[n])&&t.push(r[n]);return new l(t)},html:function(e){var t=this;if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var r=0;r<this.length;r+=1)t[r].innerHTML=e;return this},text:function(e){var t=this;if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var r=0;r<this.length;r+=1)t[r].textContent=e;return this},is:function(t){var r,n,i=this[0];if(!i||void 0===t)return!1;if("string"==typeof t){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(r=e(t),n=0;n<r.length;n+=1)if(r[n]===i)return!0;return!1}if(t===document)return i===document;if(t===window)return i===window;if(t.nodeType||t instanceof l){for(r=t.nodeType?[t]:t,n=0;n<r.length;n+=1)if(r[n]===i)return!0;return!1}return!1},indexOf:function(e){for(var t=this,r=0;r<this.length;r+=1)if(t[r]===e)return r},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,r=this.length;return e>r-1?new l([]):e<0?(t=r+e,new l(t<0?[]:[this[t]])):new l([this[e]])},append:function(){for(var e=this,t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var n,i=0;i<t.length;i+=1){n=t[i];for(var s=0;s<this.length;s+=1)if("string"==typeof n){var o=document.createElement("div");for(o.innerHTML=n;o.firstChild;)e[s].appendChild(o.firstChild)}else if(n instanceof l)for(var a=0;a<n.length;a+=1)e[s].appendChild(n[a]);else e[s].appendChild(n)}return this},appendTo:function(t){return e(t).append(this),this},prepend:function(e){var t,r,n=this;for(t=0;t<this.length;t+=1)if("string"==typeof e){var i=document.createElement("div");for(i.innerHTML=e,r=i.childNodes.length-1;r>=0;r-=1)n[t].insertBefore(i.childNodes[r],n[t].childNodes[0])}else if(e instanceof l)for(r=0;r<e.length;r+=1)n[t].insertBefore(e[r],n[t].childNodes[0]);else n[t].insertBefore(e,n[t].childNodes[0]);return this},prependTo:function(t){return e(t).prepend(this),this},insertBefore:function(t){for(var r=this,n=e(t),i=0;i<this.length;i+=1)if(1===n.length)n[0].parentNode.insertBefore(r[i],n[0]);else if(n.length>1)for(var s=0;s<n.length;s+=1)n[s].parentNode.insertBefore(r[i].cloneNode(!0),n[s])},insertAfter:function(t){for(var r=this,n=e(t),i=0;i<this.length;i+=1)if(1===n.length)n[0].parentNode.insertBefore(r[i],n[0].nextSibling);else if(n.length>1)for(var s=0;s<n.length;s+=1)n[s].parentNode.insertBefore(r[i].cloneNode(!0),n[s].nextSibling)},next:function(t){return new l(this.length>0?t?this[0].nextElementSibling&&e(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(t){var r=[],n=this[0];if(!n)return new l([]);for(;n.nextElementSibling;){var i=n.nextElementSibling;t?e(i).is(t)&&r.push(i):r.push(i),n=i}return new l(r)},prev:function(t){if(this.length>0){var r=this[0];return new l(t?r.previousElementSibling&&e(r.previousElementSibling).is(t)?[r.previousElementSibling]:[]:r.previousElementSibling?[r.previousElementSibling]:[])}return new l([])},prevAll:function(t){var r=[],n=this[0];if(!n)return new l([]);for(;n.previousElementSibling;){var i=n.previousElementSibling;t?e(i).is(t)&&r.push(i):r.push(i),n=i}return new l(r)},siblings:function(e){return this.nextAll(e).add(this.prevAll(e))},parent:function(t){for(var r=this,n=[],i=0;i<this.length;i+=1)null!==r[i].parentNode&&(t?e(r[i].parentNode).is(t)&&n.push(r[i].parentNode):n.push(r[i].parentNode));return e(p.unique(n))},parents:function(t){for(var r=this,n=[],i=0;i<this.length;i+=1)for(var s=r[i].parentNode;s;)t?e(s).is(t)&&n.push(s):n.push(s),s=s.parentNode;return e(p.unique(n))},closest:function(e){var t=this;return void 0===e?new l([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=this,r=[],n=0;n<this.length;n+=1)for(var i=t[n].querySelectorAll(e),s=0;s<i.length;s+=1)r.push(i[s]);return new l(r)},children:function(t){for(var r=this,n=[],i=0;i<this.length;i+=1)for(var s=r[i].childNodes,o=0;o<s.length;o+=1)t?1===s[o].nodeType&&e(s[o]).is(t)&&n.push(s[o]):1===s[o].nodeType&&n.push(s[o]);return new l(p.unique(n))},remove:function(){for(var e=this,t=0;t<this.length;t+=1)e[t].parentNode&&e[t].parentNode.removeChild(e[t]);return this},detach:function(){return this.remove()},add:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n,i,s=this;for(n=0;n<t.length;n+=1){var o=e(t[n]);for(i=0;i<o.length;i+=1)s[s.length]=o[i],s.length+=1}return s},empty:function(){for(var e=this,t=0;t<this.length;t+=1){var r=e[t];if(1===r.nodeType){for(var n=0;n<r.childNodes.length;n+=1)r.childNodes[n].parentNode&&r.childNodes[n].parentNode.removeChild(r.childNodes[n]);r.textContent=""}}return this}}),y="click blur focus focusin focusout keyup keydown keypress submit change mousedown mousemove mouseup mouseenter mouseleave mouseout mouseover touchstart touchend touchmove resize scroll".split(" "),w="resize scroll".split(" "),x=0;x<y.length;x+=1)!function(t){b[t]=function(r,n,i){var s=this;if(void 0===r){for(var o=0;o<this.length;o+=1)w.indexOf(t)<0&&(t in s[o]?s[o][t]():e(s[o]).trigger(t));return this}return this.on(t,r,n,i)}}(y[x]);return function(){return Object.keys(p).forEach(function(t){e[t]=p[t]}),Object.keys(b).forEach(function(e){l.prototype[e]=b[e]}),Object.keys(g).forEach(function(e){l.prototype[e]=g[e]}),l.prototype.animate=o,l.prototype.stop=a,e.ajax=t,e.get=n,e.post=i,e.getJSON=s,e.fn=l.prototype,e}()});
//# sourceMappingURL=dom7.min.js.map
/**
* Dom7 1.6.3
* Dom7 1.6.4
* Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API

@@ -12,3 +12,3 @@ * http://framework7.io/docs/dom.html

*
* Released on: May 30, 2017
* Released on: August 2, 2017
*/

@@ -532,4 +532,4 @@ class Dom7 {

if (options.contentType === 'multipart\/form-data') {
xhr.setRequestHeader('Content-Type', `multipart\/form-data; boundary=${boundary}`);
if (options.contentType === 'multipart/form-data') {
xhr.setRequestHeader('Content-Type', `multipart/form-data; boundary=${boundary}`);
} else {

@@ -540,8 +540,7 @@ xhr.setRequestHeader('Content-Type', options.contentType);

let data = Utils.serializeObject(options.data);
if (options.contentType === 'multipart\/form-data') {
boundary = `---------------------------${Date.now().toString(16)}`;
if (options.contentType === 'multipart/form-data') {
data = data.split('&');
const newData = [];
for (let i = 0; i < data.length; i += 1) {
newData.push('Content-Disposition: form-data; name="' + _data[i].split('=')[0] + '"\r\n\r\n' + _data[i].split('=')[1] + '\r\n');
newData.push(`Content-Disposition: form-data; name="${data[i].split('=')[0]}"\r\n\r\n${data[i].split('=')[1]}\r\n`);
}

@@ -986,2 +985,3 @@ postData = `--${boundary}\r\n${newData.join(`--${boundary}\r\n`)}--${boundary}--\r\n`;

const target = e.target;
if (!target) return;
const eventData = e.target.dom7EventData || [];

@@ -998,3 +998,3 @@ eventData.unshift(e);

function handleEvent(e) {
const eventData = e.target.dom7EventData || [];
const eventData = e && e.target ? e.target.dom7EventData || [] : [];
eventData.unshift(e);

@@ -1001,0 +1001,0 @@ listener.apply(this, eventData);

{
"name": "dom7",
"version": "1.6.3",
"version": "1.6.4",
"description": "Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API",

@@ -5,0 +5,0 @@ "main": "dist/dom7.js",

@@ -38,2 +38,2 @@ <a href="https://www.patreon.com/vladimirkharlampidi"><img src="https://cdn.framework7.io/i/support-badge.png" height="20"></a>

1. dist/dom7.js
1. dist/dom7.min.js
2. dist/dom7.min.js

@@ -161,4 +161,4 @@ import $ from './$';

if (options.contentType === 'multipart\/form-data') {
xhr.setRequestHeader('Content-Type', `multipart\/form-data; boundary=${boundary}`);
if (options.contentType === 'multipart/form-data') {
xhr.setRequestHeader('Content-Type', `multipart/form-data; boundary=${boundary}`);
} else {

@@ -169,8 +169,7 @@ xhr.setRequestHeader('Content-Type', options.contentType);

let data = Utils.serializeObject(options.data);
if (options.contentType === 'multipart\/form-data') {
boundary = `---------------------------${Date.now().toString(16)}`;
if (options.contentType === 'multipart/form-data') {
data = data.split('&');
const newData = [];
for (let i = 0; i < data.length; i += 1) {
newData.push('Content-Disposition: form-data; name="' + _data[i].split('=')[0] + '"\r\n\r\n' + _data[i].split('=')[1] + '\r\n');
newData.push(`Content-Disposition: form-data; name="${data[i].split('=')[0]}"\r\n\r\n${data[i].split('=')[1]}\r\n`);
}

@@ -177,0 +176,0 @@ postData = `--${boundary}\r\n${newData.join(`--${boundary}\r\n`)}--${boundary}--\r\n`;

@@ -205,2 +205,3 @@ import Dom7 from './dom7-class';

const target = e.target;
if (!target) return;
const eventData = e.target.dom7EventData || [];

@@ -217,3 +218,3 @@ eventData.unshift(e);

function handleEvent(e) {
const eventData = e.target.dom7EventData || [];
const eventData = e && e.target ? e.target.dom7EventData || [] : [];
eventData.unshift(e);

@@ -220,0 +221,0 @@ listener.apply(this, eventData);

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc