Skip to content

Instantly share code, notes, and snippets.

@chandanndeep
Created Nov 20, 2019
Embed
What would you like to do?
JD Builder
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.JDBPack=e():t.JDBPack=e()}(window,function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(t,e,n){"use strict";function i(t,e){return function(n){const i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}}n.d(e,"c",function(){return i}),n.d(e,"i",function(){return o}),n.d(e,"j",function(){return l}),n.d(e,"d",function(){return d}),n.d(e,"O",function(){return f}),n.d(e,"F",function(){return b}),n.d(e,"g",function(){return v}),n.d(e,"k",function(){return x}),n.d(e,"h",function(){return I}),n.d(e,"m",function(){return _}),n.d(e,"r",function(){return E}),n.d(e,"x",function(){return D}),n.d(e,"y",function(){return M}),n.d(e,"B",function(){return T}),n.d(e,"o",function(){return N}),n.d(e,"s",function(){return A}),n.d(e,"t",function(){return k}),n.d(e,"u",function(){return B}),n.d(e,"n",function(){return C}),n.d(e,"z",function(){return V}),n.d(e,"v",function(){return z}),n.d(e,"w",function(){return L}),n.d(e,"p",function(){return P}),n.d(e,"A",function(){return F}),n.d(e,"H",function(){return H}),n.d(e,"N",function(){return J}),n.d(e,"I",function(){return W}),n.d(e,"L",function(){return R}),n.d(e,"M",function(){return q}),n.d(e,"J",function(){return U}),n.d(e,"K",function(){return X}),n.d(e,"q",function(){return G}),n.d(e,"G",function(){return Y}),n.d(e,"b",function(){return K}),n.d(e,"f",function(){return Q}),n.d(e,"E",function(){return Z}),n.d(e,"P",function(){return tt}),n.d(e,"e",function(){return et}),n.d(e,"C",function(){return nt}),n.d(e,"l",function(){return it}),n.d(e,"D",function(){return rt}),n.d(e,"a",function(){return st});const r=Object.prototype,{hasOwnProperty:s}=r;function o(t,e){return s.call(t,e)}const a={},c=/([a-z\d])([A-Z])/g;function l(t){return t in a||(a[t]=t.replace(c,"$1-$2").toLowerCase()),a[t]}const u=/-(\w)/g;function d(t){return t.replace(u,h)}function h(t,e){return e?e.toUpperCase():""}function f(t){return t.length?h(0,t.charAt(0))+t.slice(1):""}const p=String.prototype,m=p.startsWith||function(t){return 0===this.lastIndexOf(t,0)};function b(t,e){return m.call(t,e)}const g=p.endsWith||function(t){return this.substr(-t.length)===t};function v(t,e){return g.call(t,e)}const j=Array.prototype,w=function(t,e){return~this.indexOf(t,e)},y=p.includes||w,O=j.includes||w;function x(t,e){return t&&(V(t)?y:O).call(t,e)}const $=j.findIndex||function(t){for(let e=0;e<this.length;e++)if(t.call(arguments[1],this[e],e,this))return e;return-1};function I(t,e){return $.call(t,e)}const{isArray:_}=Array;function E(t){return"function"==typeof t}function D(t){return null!==t&&"object"==typeof t}function M(t){return D(t)&&Object.getPrototypeOf(t)===r}function T(t){return D(t)&&t===t.window}function N(t){return D(t)&&9===t.nodeType}function A(t){return D(t)&&!!t.jquery}function k(t){return t instanceof Node||D(t)&&t.nodeType>=1}const{toString:S}=r;function B(t){return S.call(t).match(/^\[object (NodeList|HTMLCollection)\]$/)}function C(t){return"boolean"==typeof t}function V(t){return"string"==typeof t}function z(t){return"number"==typeof t}function L(t){return z(t)||V(t)&&!isNaN(t-parseFloat(t))}function P(t){return!(_(t)?t.length:D(t)&&Object.keys(t).length)}function F(t){return void 0===t}function H(t){return C(t)?t:"true"===t||"1"===t||""===t||"false"!==t&&"0"!==t&&t}function J(t){const e=Number(t);return!isNaN(e)&&e}function W(t){return parseFloat(t)||0}function R(t){return k(t)||T(t)||N(t)?t:B(t)||A(t)?t[0]:_(t)?R(t[0]):null}function q(t){return k(t)?[t]:B(t)?j.slice.call(t):_(t)?t.map(R).filter(Boolean):A(t)?t.toArray():[]}function U(t){return _(t)?t:V(t)?t.split(/,(?![^(]*\))/).map(t=>L(t)?J(t):H(t.trim())):[t]}function X(t){return t?v(t,"ms")?W(t):1e3*W(t):0}function G(t,e){return t===e||D(t)&&D(e)&&Object.keys(t).length===Object.keys(e).length&&Q(t,(t,n)=>t===e[n])}function Y(t,e,n){return t.replace(new RegExp(`${e}|${n}`,"mg"),t=>t===e?n:e)}const K=Object.assign||function(t,...e){t=Object(t);for(let n=0;n<e.length;n++){const i=e[n];if(null!==i)for(const e in i)o(i,e)&&(t[e]=i[e])}return t};function Q(t,e){for(const n in t)if(!1===e(t[n],n))return!1;return!0}function Z(t,e){return t.sort(({[e]:t=0},{[e]:n=0})=>t>n?1:n>t?-1:0)}function tt(t,e){const n=new Set;return t.filter(({[e]:t})=>!n.has(t)&&(n.add(t)||!0))}function et(t,e=0,n=1){return Math.min(Math.max(J(t)||0,e),n)}function nt(){}function it(t,e){return t.left<e.right&&t.right>e.left&&t.top<e.bottom&&t.bottom>e.top}function rt(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}const st={ratio(t,e,n){const i="width"===e?"height":"width";return{[i]:t[e]?Math.round(n*t[i]/t[e]):t[i],[e]:n}},contain(t,e){return Q(t=K({},t),(n,i)=>t=t[i]>e[i]?this.ratio(t,i,e[i]):t),t},cover(t,e){return Q(t=this.contain(t,e),(n,i)=>t=t[i]<e[i]?this.ratio(t,i,e[i]):t),t}}},function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return r}),n.d(e,"a",function(){return s});var i=n(0);const r="Promise"in window?window.Promise:c;class s{constructor(){this.promise=new r((t,e)=>{this.reject=e,this.resolve=t})}}const o=2,a="setImmediate"in window?t:setTimeout;function c(t){this.state=o,this.value=void 0,this.deferred=[];const e=this;try{t(t=>{e.resolve(t)},t=>{e.reject(t)})}catch(t){e.reject(t)}}c.reject=function(t){return new c((e,n)=>{n(t)})},c.resolve=function(t){return new c((e,n)=>{e(t)})},c.all=function(t){return new c((e,n)=>{const i=[];let r=0;function s(n){return function(s){i[n]=s,(r+=1)===t.length&&e(i)}}0===t.length&&e(i);for(let e=0;e<t.length;e+=1)c.resolve(t[e]).then(s(e),n)})},c.race=function(t){return new c((e,n)=>{for(let i=0;i<t.length;i+=1)c.resolve(t[i]).then(e,n)})};const l=c.prototype;l.resolve=function(t){const e=this;if(e.state===o){if(t===e)throw new TypeError("Promise settled with itself.");let n=!1;try{const r=t&&t.then;if(null!==t&&Object(i.x)(t)&&Object(i.r)(r))return void r.call(t,t=>{n||e.resolve(t),n=!0},t=>{n||e.reject(t),n=!0})}catch(t){return void(n||e.reject(t))}e.state=0,e.value=t,e.notify()}},l.reject=function(t){const e=this;if(e.state===o){if(t===e)throw new TypeError("Promise settled with itself.");e.state=1,e.value=t,e.notify()}},l.notify=function(){a(()=>{if(this.state!==o)for(;this.deferred.length;){const[t,e,n,r]=this.deferred.shift();try{0===this.state?Object(i.r)(t)?n(t.call(void 0,this.value)):n(this.value):1===this.state&&(Object(i.r)(e)?n(e.call(void 0,this.value)):r(this.value))}catch(t){r(t)}}})},l.then=function(t,e){return new c((n,i)=>{this.deferred.push([t,e,n,i]),this.notify()})},l.catch=function(t){return this.then(void 0,t)}}).call(this,n(3).setImmediate)},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function s(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new s(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new s(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(4),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(2))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,s,o,a,c=1,l={},u=!1,d=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick(function(){p(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((s=new MessageChannel).port1.onmessage=function(t){p(t.data)},i=function(t){s.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(t){var e=d.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(p,0,t)}:(o="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&p(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),i=function(e){t.postMessage(o+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return l[c]=r,i(c),c++},h.clearImmediate=f}function f(t){delete l[t]}function p(t){if(u)setTimeout(p,0,t);else{var e=l[t];if(e){u=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{f(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(2),n(5))},function(t,e){var n,i,r=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(t){n=s}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var c,l=[],u=!1,d=-1;function h(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&f())}function f(){if(!u){var t=a(h);u=!0;for(var e=l.length;e;){for(c=l,l=[];++d<e;)c&&c[d].run();d=-1,e=l.length}c=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"transition",function(){return Ht}),n.d(i,"Transition",function(){return Jt}),n.d(i,"animate",function(){return qt}),n.d(i,"Animation",function(){return Xt}),n.d(i,"attr",function(){return s}),n.d(i,"hasAttr",function(){return o}),n.d(i,"removeAttr",function(){return a}),n.d(i,"data",function(){return c}),n.d(i,"addClass",function(){return $t}),n.d(i,"removeClass",function(){return It}),n.d(i,"removeClasses",function(){return _t}),n.d(i,"replaceClass",function(){return Et}),n.d(i,"hasClass",function(){return Dt}),n.d(i,"toggleClass",function(){return Mt}),n.d(i,"positionAt",function(){return Yt}),n.d(i,"offset",function(){return Kt}),n.d(i,"position",function(){return Zt}),n.d(i,"height",function(){return te}),n.d(i,"width",function(){return ee}),n.d(i,"boxModelAdjust",function(){return ie}),n.d(i,"flipPosition",function(){return ae}),n.d(i,"isInView",function(){return ce}),n.d(i,"scrolledOver",function(){return le}),n.d(i,"scrollTop",function(){return ue}),n.d(i,"offsetPosition",function(){return de}),n.d(i,"toPx",function(){return he}),n.d(i,"ready",function(){return it}),n.d(i,"index",function(){return rt}),n.d(i,"getIndex",function(){return st}),n.d(i,"empty",function(){return ot}),n.d(i,"html",function(){return at}),n.d(i,"prepend",function(){return ct}),n.d(i,"append",function(){return lt}),n.d(i,"before",function(){return ut}),n.d(i,"after",function(){return dt}),n.d(i,"remove",function(){return ft}),n.d(i,"wrapAll",function(){return pt}),n.d(i,"wrapInner",function(){return mt}),n.d(i,"unwrap",function(){return bt}),n.d(i,"fragment",function(){return jt}),n.d(i,"apply",function(){return wt}),n.d(i,"$",function(){return yt}),n.d(i,"$$",function(){return Ot}),n.d(i,"isIE",function(){return q}),n.d(i,"isRtl",function(){return U}),n.d(i,"hasTouch",function(){return Y}),n.d(i,"pointerDown",function(){return K}),n.d(i,"pointerMove",function(){return Q}),n.d(i,"pointerUp",function(){return Z}),n.d(i,"pointerEnter",function(){return tt}),n.d(i,"pointerLeave",function(){return et}),n.d(i,"pointerCancel",function(){return nt}),n.d(i,"on",function(){return B}),n.d(i,"off",function(){return C}),n.d(i,"once",function(){return V}),n.d(i,"trigger",function(){return z}),n.d(i,"createEvent",function(){return L}),n.d(i,"toEventTargets",function(){return J}),n.d(i,"isTouch",function(){return W}),n.d(i,"getEventPos",function(){return R}),n.d(i,"fastdom",function(){return be}),n.d(i,"isVoidElement",function(){return M}),n.d(i,"isVisible",function(){return T}),n.d(i,"selInput",function(){return N}),n.d(i,"isInput",function(){return A}),n.d(i,"filter",function(){return k}),n.d(i,"within",function(){return S}),n.d(i,"bind",function(){return r.c}),n.d(i,"hasOwn",function(){return r.i}),n.d(i,"hyphenate",function(){return r.j}),n.d(i,"camelize",function(){return r.d}),n.d(i,"ucfirst",function(){return r.O}),n.d(i,"startsWith",function(){return r.F}),n.d(i,"endsWith",function(){return r.g}),n.d(i,"includes",function(){return r.k}),n.d(i,"findIndex",function(){return r.h}),n.d(i,"isArray",function(){return r.m}),n.d(i,"isFunction",function(){return r.r}),n.d(i,"isObject",function(){return r.x}),n.d(i,"isPlainObject",function(){return r.y}),n.d(i,"isWindow",function(){return r.B}),n.d(i,"isDocument",function(){return r.o}),n.d(i,"isJQuery",function(){return r.s}),n.d(i,"isNode",function(){return r.t}),n.d(i,"isNodeCollection",function(){return r.u}),n.d(i,"isBoolean",function(){return r.n}),n.d(i,"isString",function(){return r.z}),n.d(i,"isNumber",function(){return r.v}),n.d(i,"isNumeric",function(){return r.w}),n.d(i,"isEmpty",function(){return r.p}),n.d(i,"isUndefined",function(){return r.A}),n.d(i,"toBoolean",function(){return r.H}),n.d(i,"toNumber",function(){return r.N}),n.d(i,"toFloat",function(){return r.I}),n.d(i,"toNode",function(){return r.L}),n.d(i,"toNodes",function(){return r.M}),n.d(i,"toList",function(){return r.J}),n.d(i,"toMs",function(){return r.K}),n.d(i,"isEqual",function(){return r.q}),n.d(i,"swap",function(){return r.G}),n.d(i,"assign",function(){return r.b}),n.d(i,"each",function(){return r.f}),n.d(i,"sortBy",function(){return r.E}),n.d(i,"uniqueBy",function(){return r.P}),n.d(i,"clamp",function(){return r.e}),n.d(i,"noop",function(){return r.C}),n.d(i,"intersectRect",function(){return r.l}),n.d(i,"pointInRect",function(){return r.D}),n.d(i,"Dimensions",function(){return r.a}),n.d(i,"mergeOptions",function(){return xe}),n.d(i,"parseOptions",function(){return $e}),n.d(i,"Promise",function(){return l.b}),n.d(i,"Deferred",function(){return l.a}),n.d(i,"query",function(){return u}),n.d(i,"queryAll",function(){return d}),n.d(i,"find",function(){return f}),n.d(i,"findAll",function(){return p}),n.d(i,"matches",function(){return O}),n.d(i,"closest",function(){return $}),n.d(i,"parents",function(){return I}),n.d(i,"escape",function(){return E}),n.d(i,"css",function(){return St}),n.d(i,"getStyles",function(){return Bt}),n.d(i,"getStyle",function(){return Ct}),n.d(i,"getCssVar",function(){return zt}),n.d(i,"propName",function(){return Pt});var r=n(0);function s(t,e,n){if(Object(r.x)(e))for(const n in e)s(t,n,e[n]);else{if(Object(r.A)(n))return(t=Object(r.L)(t))&&t.getAttribute(e);Object(r.M)(t).forEach(t=>{Object(r.r)(n)&&(n=n.call(t,s(t,e))),null===n?a(t,e):t.setAttribute(e,n)})}}function o(t,e){return Object(r.M)(t).some(t=>t.hasAttribute(e))}function a(t,e){t=Object(r.M)(t),e.split(" ").forEach(e=>t.forEach(t=>t.hasAttribute(e)&&t.removeAttribute(e)))}function c(t,e){for(let n=0,i=[e,`data-${e}`];n<i.length;n++)if(o(t,i[n]))return s(t,i[n])}var l=n(1);function u(t,e){return Object(r.L)(t)||f(t,h(t,e))}function d(t,e){const n=Object(r.M)(t);return n.length&&n||p(t,h(t,e))}function h(t,e=document){return v(t)||Object(r.o)(e)?e:e.ownerDocument}function f(t,e){return Object(r.L)(m(t,e,"querySelector"))}function p(t,e){return Object(r.M)(m(t,e,"querySelectorAll"))}function m(t,e=document,n){if(!t||!Object(r.z)(t))return null;let i;v(t=t.replace(g,"$1 *"))&&(i=[],t=function(t){return t.match(j).map(t=>t.replace(/,$/,"").trim())}(t).map((t,n)=>{let r=e;if("!"===t[0]){const n=t.substr(1).trim().split(" ");r=$(e.parentNode,n[0]),t=n.slice(1).join(" ").trim()}if("-"===t[0]){const n=t.substr(1).trim().split(" "),i=(r||e).previousElementSibling;r=O(i,t.substr(1))?i:null,t=n.slice(1).join(" ")}return r?(r.id||(r.id=`jdb-${Date.now()}${n}`,i.push(()=>a(r,"id"))),`#${E(r.id)} ${t}`):null}).filter(Boolean).join(","),e=document);try{return e[n](t)}catch(t){return null}finally{i&&i.forEach(t=>t())}}const b=/(^|[^\\],)\s*[!>+~-]/,g=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g;function v(t){return Object(r.z)(t)&&t.match(b)}const j=/.*?[^\\](?:,|$)/g;const w=Element.prototype,y=w.matches||w.webkitMatchesSelector||w.msMatchesSelector;function O(t,e){return Object(r.M)(t).some(t=>y.call(t,e))}const x=w.closest||function(t){let e=this;do{if(O(e,t))return e;e=e.parentNode}while(e&&1===e.nodeType)};function $(t,e){return Object(r.F)(e,">")&&(e=e.slice(1)),Object(r.t)(t)?t.parentNode&&x.call(t,e):Object(r.M)(t).map(t=>$(t,e)).filter(Boolean)}function I(t,e){const n=[];let i=Object(r.L)(t).parentNode;for(;i&&1===i.nodeType;)O(i,e)&&n.push(i),i=i.parentNode;return n}const _=window.CSS&&CSS.escape||function(t){return t.replace(/([^\x7f-\uFFFF\w-])/g,t=>`\\${t}`)};function E(t){return Object(r.z)(t)?_.call(null,t):""}const D={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function M(t){return Object(r.M)(t).some(t=>D[t.tagName.toLowerCase()])}function T(t){return Object(r.M)(t).some(t=>t.offsetWidth||t.offsetHeight||t.getClientRects().length)}const N="input,select,textarea,button";function A(t){return Object(r.M)(t).some(t=>O(t,N))}function k(t,e){return Object(r.M)(t).filter(t=>O(t,e))}function S(t,e){return Object(r.z)(e)?O(t,e)||$(t,e):t===e||(Object(r.o)(e)?e.documentElement:Object(r.L)(e)).contains(Object(r.L)(t))}function B(...t){let[e,n,i,s,o]=P(t);return e=J(e),i&&(s=function(t,e,n){return i=>{t.forEach(t=>{const r=">"===e[0]?p(e,t).reverse().filter(t=>S(i.target,t))[0]:$(i.target,e);r&&(i.delegate=t,i.current=r,n.call(this,i))})}}(e,i,s)),s.length>1&&(s=function(t){return e=>Object(r.m)(e.detail)?t(...[e].concat(e.detail)):t(e)}(s)),n.split(" ").forEach(t=>e.forEach(e=>e.addEventListener(t,s,o))),()=>C(e,n,s,o)}function C(t,e,n,i=!1){t=J(t),e.split(" ").forEach(e=>t.forEach(t=>t.removeEventListener(e,n,i)))}function V(...t){const[e,n,i,r,s,o]=P(t),a=B(e,n,i,t=>{const e=!o||o(t);e&&(a(),r(t,e))},s);return a}function z(t,e,n){return J(t).reduce((t,i)=>t&&i.dispatchEvent(L(e,!0,!0,n)),!0)}function L(t,e=!0,n=!1,i){if(Object(r.z)(t)){const r=document.createEvent("CustomEvent");r.initCustomEvent(t,e,n,i),t=r}return t}function P(t){return Object(r.r)(t[2])&&t.splice(2,0,!1),t}function F(t){return t&&"addEventListener"in t}function H(t){return F(t)?t:Object(r.L)(t)}function J(t){return Object(r.m)(t)?t.map(H).filter(Boolean):Object(r.z)(t)?p(t):F(t)?[t]:Object(r.M)(t)}function W(t){return"touch"===t.pointerType||t.touches}function R(t,e="client"){const{touches:n,changedTouches:i}=t,{[`${e}X`]:r,[`${e}Y`]:s}=n&&n[0]||i&&i[0]||t;return{x:r,y:s}}const q=/msie|trident/i.test(window.navigator.userAgent),U="rtl"===s(document.documentElement,"dir"),X="ontouchstart"in window,G=window.PointerEvent,Y=X||window.DocumentTouch&&document instanceof DocumentTouch||navigator.maxTouchPoints,K=G?"pointerdown":X?"touchstart":"mousedown",Q=G?"pointermove":X?"touchmove":"mousemove",Z=G?"pointerup":X?"touchend":"mouseup",tt=G?"pointerenter":X?"":"mouseenter",et=G?"pointerleave":X?"":"mouseleave",nt=G?"pointercancel":"touchcancel";function it(t){if("loading"!==document.readyState)return void t();const e=B(document,"DOMContentLoaded",function(){e(),t()})}function rt(t,e){return e?Object(r.M)(t).indexOf(Object(r.L)(e)):Object(r.M)((t=Object(r.L)(t))&&t.parentNode.children).indexOf(t)}function st(t,e,n=0,i=!1){e=Object(r.M)(e);const{length:s}=e;return t=Object(r.w)(t)?Object(r.N)(t):"next"===t?n+1:"previous"===t?n-1:rt(e,t),i?Object(r.e)(t,0,s-1):(t%=s)<0?t+s:t}function ot(t){return(t=yt(t)).innerHTML="",t}function at(t,e){return t=yt(t),Object(r.A)(e)?t.innerHTML:lt(t.hasChildNodes()?ot(t):t,e)}function ct(t,e){return(t=yt(t)).hasChildNodes()?ht(e,e=>t.insertBefore(e,t.firstChild)):lt(t,e)}function lt(t,e){return t=yt(t),ht(e,e=>t.appendChild(e))}function ut(t,e){return t=yt(t),ht(e,e=>t.parentNode.insertBefore(e,t))}function dt(t,e){return t=yt(t),ht(e,e=>t.nextSibling?ut(t.nextSibling,e):lt(t.parentNode,e))}function ht(t,e){return(t=Object(r.z)(t)?jt(t):t)?"length"in t?Object(r.M)(t).map(e):e(t):null}function ft(t){Object(r.M)(t).map(t=>t.parentNode&&t.parentNode.removeChild(t))}function pt(t,e){for(e=Object(r.L)(ut(t,e));e.firstChild;)e=e.firstChild;return lt(e,t),e}function mt(t,e){return Object(r.M)(Object(r.M)(t).map(t=>t.hasChildNodes?pt(Object(r.M)(t.childNodes),e):lt(t,e)))}function bt(t){Object(r.M)(t).map(t=>t.parentNode).filter((t,e,n)=>n.indexOf(t)===e).forEach(t=>{ut(t,t.childNodes),ft(t)})}const gt=/^\s*<(\w+|!)[^>]*>/,vt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function jt(t){const e=vt.exec(t);if(e)return document.createElement(e[1]);const n=document.createElement("div");return gt.test(t)?n.insertAdjacentHTML("beforeend",t.trim()):n.textContent=t,n.childNodes.length>1?Object(r.M)(n.childNodes):n.firstChild}function wt(t,e){if(t&&1===t.nodeType)for(e(t),t=t.firstElementChild;t;)wt(t,e),t=t.nextElementSibling}function yt(t,e){return Object(r.z)(t)?xt(t)?Object(r.L)(jt(t)):f(t,e):Object(r.L)(t)}function Ot(t,e){return Object(r.z)(t)?xt(t)?Object(r.M)(jt(t)):p(t,e):Object(r.M)(t)}function xt(t){return"<"===t[0]||t.match(/^\s*</)}function $t(t,...e){Tt(t,e,"add")}function It(t,...e){Tt(t,e,"remove")}function _t(t,e){s(t,"class",t=>(t||"").replace(new RegExp(`\\b${e}\\b`,"g"),""))}function Et(t,...e){e[0]&&It(t,e[0]),e[1]&&$t(t,e[1])}function Dt(t,e){return e&&Object(r.M)(t).some(t=>t.classList.contains(e.split(" ")[0]))}function Mt(t,...e){if(!e.length)return;e=Nt(e);const n=Object(r.z)(e[e.length-1])?[]:e.pop();e=e.filter(Boolean),Object(r.M)(t).forEach(({classList:t})=>{for(let i=0;i<e.length;i++)At.Force?t.toggle(...[e[i]].concat(n)):t[(Object(r.A)(n)?!t.contains(e[i]):n)?"add":"remove"](e[i])})}function Tt(t,e,n){(e=Nt(e).filter(Boolean)).length&&Object(r.M)(t).forEach(({classList:t})=>{At.Multiple?t[n](...e):e.forEach(e=>t[n](e))})}function Nt(t){return t.reduce((t,e)=>t.concat.call(t,Object(r.z)(e)&&Object(r.k)(e," ")?e.trim().split(" "):e),[])}const At={get Multiple(){return this.get("_multiple")},get Force(){return this.get("_force")},get(t){if(!Object(r.i)(this,t)){const{classList:t}=document.createElement("_");t.add("a","b"),t.toggle("c",!1),this._multiple=t.contains("b"),this._force=!t.contains("c")}return this[t]}},kt={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function St(t,e,n){return Object(r.M)(t).map(t=>{if(Object(r.z)(e)){if(e=Pt(e),Object(r.A)(n))return Ct(t,e);n||Object(r.v)(n)?t.style[e]=Object(r.w)(n)&&!kt[e]?`${n}px`:n:t.style.removeProperty(e)}else{if(Object(r.m)(e)){const n=Bt(t);return e.reduce((t,e)=>(t[e]=n[Pt(e)],t),{})}Object(r.x)(e)&&Object(r.f)(e,(e,n)=>St(t,n,e))}return t})[0]}function Bt(t,e){return(t=Object(r.L)(t)).ownerDocument.defaultView.getComputedStyle(t,e)}function Ct(t,e,n){return Bt(t,n)[e]}const Vt={};function zt(t){const e=document.documentElement;if(!q)return Bt(e).getPropertyValue(`--jdb-${t}`);if(!(t in Vt)){const n=lt(e,document.createElement("div"));$t(n,`jdb-${t}`),Vt[t]=Ct(n,"content",":before").replace(/^["'](.*)["']$/,"$1"),ft(n)}return Vt[t]}const Lt={};function Pt(t){let e=Lt[t];return e||(e=Lt[t]=function(t){t=Object(r.j)(t);const{style:e}=document.documentElement;if(t in e)return t;let n,i=Ft.length;for(;i--;)if((n=`-${Ft[i]}-${t}`)in e)return n}(t)||t),e}const Ft=["webkit","moz","ms"];function Ht(t,e,n=400,i="linear"){return l.b.all(Object(r.M)(t).map(t=>new l.b((s,o)=>{for(const n in e){const e=St(t,n);""===e&&St(t,n,e)}const a=setTimeout(()=>z(t,"transitionend"),n);V(t,"transitionend transitioncanceled",({type:e})=>{clearTimeout(a),It(t,"jdb-transition"),St(t,{"transition-property":"","transition-duration":"","transition-timing-function":""}),"transitioncanceled"===e?o():s()},!1,({target:e})=>t===e),$t(t,"jdb-transition"),St(t,Object(r.b)({"transition-property":Object.keys(e).map(Pt).join(","),"transition-duration":`${n}ms`,"transition-timing-function":i},e))})))}const Jt={start:Ht,stop:t=>(z(t,"transitionend"),l.b.resolve()),cancel(t){z(t,"transitioncanceled")},inProgress:t=>Dt(t,"jdb-transition")},Wt="jdb-animation-",Rt="jdb-cancel-animation";function qt(t,e,n=200,i,s){return l.b.all(Object(r.M)(t).map(t=>new l.b((o,a)=>{if(Dt(t,Rt))return void requestAnimationFrame(()=>l.b.resolve().then(()=>qt(...arguments).then(o,a)));let c=`${e} ${Wt}${s?"leave":"enter"}`;function u(){St(t,"animationDuration",""),_t(t,`${Wt}\\S*`)}Object(r.F)(e,Wt)&&(i&&(c+=` jdb-transform-origin-${i}`),s&&(c+=` ${Wt}reverse`)),u(),V(t,"animationend animationcancel",({type:e})=>{let n=!1;"animationcancel"===e?(a(),u()):(o(),l.b.resolve().then(()=>{n=!0,u()})),requestAnimationFrame(()=>{n||($t(t,Rt),requestAnimationFrame(()=>It(t,Rt)))})},!1,({target:e})=>t===e),St(t,"animationDuration",`${n}ms`),$t(t,c)})))}const Ut=new RegExp(`${Wt}(enter|leave)`),Xt={in:(t,e,n,i)=>qt(t,e,n,i,!1),out:(t,e,n,i)=>qt(t,e,n,i,!0),inProgress:t=>Ut.test(s(t,"class")),cancel(t){z(t,"animationcancel")}},Gt={width:["x","left","right"],height:["y","top","bottom"]};function Yt(t,e,n,i,s,o,a,c){n=se(n),i=se(i);const l={element:n,target:i};if(!t||!e)return l;const u=Qt(t),d=Qt(e),h=d;if(re(h,n,u,-1),re(h,i,d,1),s=oe(s,u.width,u.height),o=oe(o,d.width,d.height),s.x+=o.x,s.y+=o.y,h.left+=s.x,h.top+=s.y,a){const e=[Qt(pe(t))];c&&e.unshift(Qt(c)),Object(r.f)(Gt,([t,o,c],f)=>{(!0===a||Object(r.k)(a,t))&&e.some(e=>{const r=n[t]===o?-u[f]:n[t]===c?u[f]:0,a=i[t]===o?d[f]:i[t]===c?-d[f]:0;if(h[o]<e[o]||h[o]+u[f]>e[c]){const e=u[f]/2,s="center"===i[t]?-d[f]/2:0;return"center"===n[t]&&(p(e,s)||p(-e,-s))||p(r,a)}function p(n,i){const r=h[o]+n+i-2*s[t];if(r>=e[o]&&r+u[f]<=e[c])return h[o]=r,["element","target"].forEach(e=>{l[e][t]=n?l[e][t]===Gt[f][1]?Gt[f][2]:Gt[f][1]:l[e][t]}),!0}})})}return Kt(t,h),l}function Kt(t,e){if(t=Object(r.L)(t),!e)return Qt(t);{const n=Kt(t),i=St(t,"position");["left","top"].forEach(s=>{if(s in e){const o=St(t,s);St(t,s,e[s]-n[s]+Object(r.I)("absolute"===i&&"auto"===o?Zt(t)[s]:o))}})}}function Qt(t){t=Object(r.L)(t);const{pageYOffset:e,pageXOffset:n}=pe(t);if(Object(r.B)(t)){const i=t.innerHeight,r=t.innerWidth;return{top:e,left:n,height:i,width:r,bottom:e+i,right:n+r}}let i,o;T(t)||"none"!==St(t,"display")||(i=s(t,"style"),o=s(t,"hidden"),s(t,{style:`${i||""};display:block !important;`,hidden:null}));const a=t.getBoundingClientRect();return Object(r.A)(i)||s(t,{style:i,hidden:o}),{height:a.height,width:a.width,top:a.top+e,left:a.left+n,bottom:a.bottom+e,right:a.right+n}}function Zt(t){const e=(t=Object(r.L)(t)).offsetParent||function(t){return me(t).documentElement}(t),n=Kt(e),{top:i,left:s}=["top","left"].reduce((i,s)=>{const o=Object(r.O)(s);return i[s]-=n[s]+Object(r.I)(St(t,`margin${o}`))+Object(r.I)(St(e,`border${o}Width`)),i},Kt(t));return{top:i,left:s}}const te=ne("height"),ee=ne("width");function ne(t){const e=Object(r.O)(t);return(n,i)=>{if(n=Object(r.L)(n),Object(r.A)(i)){if(Object(r.B)(n))return n[`inner${e}`];if(Object(r.o)(n)){const t=n.documentElement;return Math.max(t[`offset${e}`],t[`scroll${e}`])}return(i="auto"===(i=St(n,t))?n[`offset${e}`]:Object(r.I)(i)||0)-ie(t,n)}St(n,t,i||0===i?+i+ie(t,n)+"px":"")}}function ie(t,e,n="border-box"){return St(e,"boxSizing")===n?Gt[t].slice(1).map(r.O).reduce((t,n)=>t+Object(r.I)(St(e,`padding${n}`))+Object(r.I)(St(e,`border${n}Width`)),0):0}function re(t,e,n,i){Object(r.f)(Gt,([r,s,o],a)=>{e[r]===o?t[s]+=n[a]*i:"center"===e[r]&&(t[s]+=n[a]*i/2)})}function se(t){const e=/left|center|right/,n=/top|center|bottom/;return 1===(t=(t||"").split(" ")).length&&(t=e.test(t[0])?t.concat(["center"]):n.test(t[0])?["center"].concat(t):["center","center"]),{x:e.test(t[0])?t[0]:"center",y:n.test(t[1])?t[1]:"center"}}function oe(t,e,n){const[i,s]=(t||"").split(" ");return{x:i?Object(r.I)(i)*(Object(r.g)(i,"%")?e/100:1):0,y:s?Object(r.I)(s)*(Object(r.g)(s,"%")?n/100:1):0}}function ae(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return t}}function ce(t,e=0,n=0){if(!T(t))return!1;const i=pe(t=Object(r.L)(t)),s=t.getBoundingClientRect(),o={top:-e,left:-n,bottom:e+te(i),right:n+ee(i)};return Object(r.l)(s,o)||Object(r.D)({x:s.left,y:s.top},o)}function le(t,e=0){if(!T(t))return 0;const n=pe(t=Object(r.L)(t)),i=me(t),s=t.offsetHeight+e,[o]=de(t),a=te(n),c=a+Math.min(0,o-a),l=Math.max(0,a-(te(i)+e-(o+s)));return Object(r.e)((c+n.pageYOffset-o)/((c+(s-(l<a?l:0)))/100)/100)}function ue(t,e){if(t=Object(r.L)(t),Object(r.B)(t)||Object(r.o)(t)){const{scrollTo:n,pageXOffset:i}=pe(t);n(i,e)}else t.scrollTop=e}function de(t){const e=[0,0];do{if(e[0]+=t.offsetTop,e[1]+=t.offsetLeft,"fixed"===St(t,"position")){const n=pe(t);return e[0]+=n.pageYOffset,e[1]+=n.pageXOffset,e}}while(t=t.offsetParent);return e}function he(t,e="width",n=window){return Object(r.w)(t)?+t:Object(r.g)(t,"vh")?fe(te(pe(n)),t):Object(r.g)(t,"vw")?fe(ee(pe(n)),t):Object(r.g)(t,"%")?fe(Qt(n)[e],t):Object(r.I)(t)}function fe(t,e){return t*Object(r.I)(e)/100}function pe(t){return Object(r.B)(t)?t:me(t).defaultView}function me(t){return Object(r.L)(t).ownerDocument}const be={reads:[],writes:[],read(t){return this.reads.push(t),ge(),t},write(t){return this.writes.push(t),ge(),t},clear(t){return je(this.reads,t)||je(this.writes,t)},flush(){ve(this.reads),ve(this.writes.splice(0,this.writes.length)),this.scheduled=!1,(this.reads.length||this.writes.length)&&ge()}};function ge(){be.scheduled||(be.scheduled=!0,requestAnimationFrame(be.flush.bind(be)))}function ve(t){let e;for(;e=t.shift();)e()}function je(t,e){const n=t.indexOf(e);return!!~n&&!!t.splice(n,1)}const we={};function ye(t,e,n){return we.computed(Object(r.r)(t)?t.call(n,n):t,Object(r.r)(e)?e.call(n,n):e)}function Oe(t,e){return t=t&&!Object(r.m)(t)?[t]:t,e?t?t.concat(e):Object(r.m)(e)?e:[e]:t}function xe(t,e,n){const i={};if(Object(r.r)(e)&&(e=e.options),e.extends&&(t=xe(t,e.extends,n)),e.mixins)for(let i=0,r=e.mixins.length;i<r;i++)t=xe(t,e.mixins[i],n);for(const e in t)s(e);for(const n in e)Object(r.i)(t,n)||s(n);function s(s){i[s]=(we[s]||function(t,e){return Object(r.A)(e)?t:e})(t[s],e[s],n)}return i}function $e(t,e=[]){try{return t?Object(r.F)(t,"{")?JSON.parse(t):e.length&&!Object(r.k)(t,":")?{[e[0]]:t}:t.split(";").reduce((t,e)=>{const[n,i]=e.split(/:(.*)/);return n&&!Object(r.A)(i)&&(t[n.trim()]=i.trim()),t},{}):{}}catch(t){return{}}}we.events=we.created=we.beforeConnect=we.connected=we.beforeDisconnect=we.disconnected=we.destroy=Oe,we.args=function(t,e){return Oe(e||t)},we.update=function(t,e){return Object(r.E)(Oe(t,Object(r.r)(e)?{read:e}:e),"order")},we.props=function(t,e){return Object(r.m)(e)&&(e=e.reduce((t,e)=>(t[e]=String,t),{})),we.methods(t,e)},we.computed=we.methods=function(t,e){return e?t?Object(r.b)({},t,e):e:t},we.data=function(t,e,n){return n?ye(t,e,n):e?t?function(n){return ye(t,e,n)}:e:t};function Ie(t){return!(!Object(r.F)(t,"jdb-")&&!Object(r.F)(t,"data-jdb-"))&&Object(r.d)(t.replace("data-jdb-","").replace("jdb-",""))}const _e=function(t){this._init(t)};var Ee;_e.util=i,_e.data="__jdbpack__",_e.prefix="jdb-",_e.options={},function(t){const e=t.data;let n;function i(t,e){if(t)for(const n in t)t[n]._connected&&t[n]._callUpdate(e)}t.use=function(t){if(!t.installed)return t.call(null,this),t.installed=!0,this},t.mixin=function(e,n){(n=(Object(r.z)(n)?t.component(n):n)||this).options=xe(n.options,e)},t.extend=function(t){t=t||{};const e=function(t){this._init(t)};return(e.prototype=Object.create(this.prototype)).constructor=e,e.options=xe(this.options,t),e.super=this,e.extend=this.extend,e},t.update=function(t,n){(function t(e,n){e&&e!==document.body&&e.parentNode&&(t(e.parentNode,n),n(e.parentNode))})(t=t?Object(r.L)(t):document.body,t=>i(t[e],n)),wt(t,t=>i(t[e],n))},Object.defineProperty(t,"container",{get:()=>n||document.body,set(t){n=yt(t)}})}(_e),(Ee=_e).prototype._callHook=function(t){const e=this.$options[t];e&&e.forEach(t=>t.call(this))},Ee.prototype._callConnected=function(){this._connected||(this._data={},this._computeds={},this._initProps(),this._callHook("beforeConnect"),this._connected=!0,this._initEvents(),this._initObserver(),this._callHook("connected"),this._callUpdate())},Ee.prototype._callDisconnected=function(){this._connected&&(this._callHook("beforeDisconnect"),this._observer&&(this._observer.disconnect(),this._observer=null),this._unbindEvents(),this._callHook("disconnected"),this._connected=!1)},Ee.prototype._callUpdate=function(t="update"){const e=t.type||t;Object(r.k)(["update","resize"],e)&&this._callWatches();const n=this.$options.update,{reads:i,writes:s}=this._frames;n&&n.forEach(({read:t,write:n,events:o},a)=>{("update"===e||Object(r.k)(o,e))&&(t&&!Object(r.k)(be.reads,i[a])&&(i[a]=be.read(()=>{const i=this._connected&&t.call(this,this._data,e);!1===i&&n?be.clear(s[a]):Object(r.y)(i)&&Object(r.b)(this._data,i)})),n&&!Object(r.k)(be.writes,s[a])&&(s[a]=be.write(()=>this._connected&&n.call(this,this._data,e))))})},function(t){let e=0;function n(t,e){const n={},{args:i=[],props:s={},el:o}=t;if(!s)return n;for(const t in s){const e=Object(r.j)(t);let i=c(o,e);if(!Object(r.A)(i)){if(i=s[t]===Boolean&&""===i||a(s[t],i),"target"===e&&(!i||Object(r.F)(i,"_")))continue;n[t]=i}}const l=$e(c(o,e),i);for(const t in l){const e=Object(r.d)(t);void 0!==s[e]&&(n[e]=a(s[e],l[t]))}return n}function i(t,e,n){Object.defineProperty(t,e,{enumerable:!0,get(){const{_computeds:i,$props:s,$el:o}=t;return Object(r.i)(i,e)||(i[e]=(n.get||n).call(t,s,o)),i[e]},set(i){const{_computeds:s}=t;s[e]=n.set?n.set.call(t,i):i,Object(r.A)(s[e])&&delete s[e]}})}function s(t,e,n){Object(r.y)(e)||(e={name:n,handler:e});let{name:i,el:o,handler:a,capture:c,passive:l,delegate:u,filter:d,self:h}=e;var f;o=Object(r.r)(o)?o.call(t):o||t.$el,Object(r.m)(o)?o.forEach(i=>s(t,Object(r.b)({},e,{el:i}),n)):!o||d&&!d.call(t)||(f=Object(r.z)(a)?t[a]:Object(r.c)(a,t),a=(t=>Object(r.m)(t.detail)?f(...[t].concat(t.detail)):f(t)),h&&(a=function(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}(a)),t._events.push(B(o,i,u?Object(r.z)(u)?u:u.call(t):null,a,Object(r.n)(l)?{passive:l,capture:c}:c)))}function o(t,e){return t.every(t=>!t||!Object(r.i)(t,e))}function a(t,e){return t===Boolean?Object(r.H)(e):t===Number?Object(r.N)(e):"list"===t?Object(r.J)(e):t?t(e):e}t.prototype._init=function(t){(t=t||{}).data=function({data:t,el:e},{args:n,props:i={}}){if(t=Object(r.m)(t)?Object(r.p)(n)?void 0:t.slice(0,n.length).reduce((t,e,i)=>(Object(r.y)(e)?Object(r.b)(t,e):t[n[i]]=e,t),{}):t)for(const e in t)Object(r.A)(t[e])?delete t[e]:t[e]=i[e]?a(i[e],t[e]):t[e];return t}(t,this.constructor.options),this.$options=xe(this.constructor.options,t,this),this.$el=null,this.$props={},this._frames={reads:{},writes:{}},this._events=[],this._uid=e++,this._initData(),this._initMethods(),this._initComputeds(),this._callHook("created"),t.el&&this.$mount(t.el)},t.prototype._initData=function(){const{data:t={}}=this.$options;for(const e in t)this.$props[e]=this[e]=t[e]},t.prototype._initMethods=function(){const{methods:t}=this.$options;if(t)for(const e in t)this[e]=Object(r.c)(t[e],this)},t.prototype._initComputeds=function(){const{computed:t}=this.$options;if(this._computeds={},t)for(const e in t)i(this,e,t[e])},t.prototype._callWatches=function(){const{$options:{computed:t},_computeds:e}=this;for(const n in e){const i=e[n];delete e[n],t[n].watch&&!Object(r.q)(i,this[n])&&t[n].watch.call(this,this[n],i)}},t.prototype._initProps=function(t){let e;for(e in t=t||n(this.$options,this.$name))Object(r.A)(t[e])||(this.$props[e]=t[e]);const i=[this.$options.computed,this.$options.methods];for(e in this.$props)e in t&&o(i,e)&&(this[e]=this.$props[e])},t.prototype._initEvents=function(){const{events:t}=this.$options;t&&t.forEach(t=>{if(Object(r.i)(t,"handler"))s(this,t);else for(const e in t)s(this,t[e],e)})},t.prototype._unbindEvents=function(){this._events.forEach(t=>t()),this._events=[]},t.prototype._initObserver=function(){let{attrs:t,props:e,el:i}=this.$options;if(this._observer||!e||!1===t)return;t=Object(r.m)(t)?t:Object.keys(e),this._observer=new MutationObserver(()=>{const e=n(this.$options,this.$name);t.some(t=>!Object(r.A)(e[t])&&e[t]!==this.$props[t])&&this.$reset()});const s=t.map(t=>Object(r.j)(t)).concat(this.$name);this._observer.observe(i,{attributes:!0,attributeFilter:s.concat(s.map(t=>`data-${t}`))})}}(_e),function(t){const e=t.data,n={};t.component=function(e,i){if(!i)return Object(r.y)(n[e])&&(n[e]=t.extend(n[e])),n[e];t[e]=function(n,i){const s=t.component(e);return Object(r.y)(n)?new s({data:n}):s.options.functional?new s({data:[...arguments]}):n&&n.nodeType?o(n):Ot(n).map(o)[0];function o(n){const r=t.getComponent(n,e);if(r){if(!i)return r;r.$destroy()}return new s({el:n,data:i})}};const s=Object(r.y)(i)?Object(r.b)({},i):i.options;if(s.name=e,s.install&&s.install(t,s,e),t._initialized&&!s.functional){const n=Object(r.j)(e);be.read(()=>t[e](`[jdb-${n}],[data-jdb-${n}]`))}return n[e]=Object(r.y)(i)?s:i},t.getComponents=(t=>t&&t[e]||{}),t.getComponent=((e,n)=>t.getComponents(e)[n]),t.connect=(i=>{if(i[e])for(const t in i[e])i[e][t]._callConnected();for(let e=0;e<i.attributes.length;e++){const r=Ie(i.attributes[e].name);r&&r in n&&t[r](i)}}),t.disconnect=(t=>{for(const n in t[e])t[e][n]._callDisconnected()})}(_e),function(t){const e=t.data;t.prototype.$mount=function(t){const{name:n}=this.$options;t[e]||(t[e]={}),t[e][n]||(t[e][n]=this,this.$el=this.$options.el=this.$options.el||t,S(t,document)&&this._callConnected())},t.prototype.$emit=function(t){this._callUpdate(t)},t.prototype.$reset=function(){this._callDisconnected(),this._callConnected()},t.prototype.$destroy=function(t=!1){const{el:n,name:i}=this.$options;n&&this._callDisconnected(),this._callHook("destroy"),n&&n[e]&&(delete n[e][i],Object(r.p)(n[e])||delete n[e],t&&ft(this.$el))},t.prototype.$create=function(e,n,i){return t[e](n,i)},t.prototype.$update=t.update,t.prototype.$getComponent=t.getComponent;const n={};Object.defineProperties(t.prototype,{$container:Object.getOwnPropertyDescriptor(t,"container"),$name:{get(){const{name:e}=this.$options;return n[e]||(n[e]=t.prefix+Object(r.j)(e)),n[e]}}})}(_e);var De=_e,Me=function(t){let e;it(()=>{let e;t.update(),B(window,"load resize",()=>t.update(null,"resize")),B(document,"loadedmetadata load",({target:e})=>t.update(e,"resize"),!0),B(window,"scroll",n=>{if(e)return;e=!0,be.write(()=>e=!1);const{target:i}=n;t.update(1!==i.nodeType?document.body:i,n.type)},{passive:!0,capture:!0});let n=0;B(document,"animationstart",({target:t})=>{(St(t,"animationName")||"").match(/^uk-.*(left|right)/)&&(n++,St(document.body,"overflowX","hidden"),setTimeout(()=>{--n||St(document.body,"overflowX","")},Object(r.K)(St(t,"animationDuration"))+100))},!0)}),B(document,K,t=>{if(e&&e(),!W(t))return;const n=R(t),i="tagName"in t.target?t.target:t.target.parentNode;e=V(document,Z,t=>{const{x:e,y:r}=R(t);(i&&e&&Math.abs(n.x-e)>100||r&&Math.abs(n.y-r)>100)&&setTimeout(()=>{z(i,"swipe"),z(i,`swipe${function(t,e,n,i){return Math.abs(t-n)>=Math.abs(e-i)?t-n>0?"Left":"Right":e-i>0?"Up":"Down"}(n.x,n.y,e,r)}`)})})},{passive:!0})};var Te={connected(){!Dt(this.$el,this.$name)&&$t(this.$el,this.$name)}},Ne={mixins:[Te],props:{ukey:String},data:{ukey:""},methods:{init(){let t,e;St(this.$el,"position","relative"),St(this.$el,"width",document.body.clientWidth+"px"),setTimeout(()=>{[t,e]=de(this.$el);let n=parseInt(St(this.$el,"left"));0!==e&&St(this.$el,"left",n+(0-e)+"px")})}},connected(){this.init()},events:[{name:"load resize",el:window,handler(){this.init()}}]},Ae={props:{cols:String},data:{cols:""},methods:{init(){window.dispatchEvent(new Event("resize"))}},connected(){this.init()}},ke={props:{cls:Boolean,animation:"list",duration:Number,origin:String,transition:String,queued:Boolean},data:{cls:!1,animation:[!1],duration:200,origin:!1,transition:"linear",queued:!1,initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0}},computed:{hasAnimation:({animation:t})=>!!t[0],hasTransition({animation:t}){return this.hasAnimation&&!0===t[0]}},methods:{toggleElement(t,e,n){return new l.b(i=>{t=Object(r.M)(t);const s=t=>l.b.all(t.map(t=>this._toggleElement(t,e,n))),o=t.filter(t=>this.isToggled(t)),a=t.filter(t=>!Object(r.k)(o,t));let c;if(this.queued&&Object(r.A)(n)&&Object(r.A)(e)&&this.hasAnimation&&!(t.length<2)){const{body:t}=document,e=t.scrollTop,[n]=o,i=Xt.inProgress(n)&&Dt(n,"jdb-animation-leave")||Jt.inProgress(n)&&"0px"===n.style.height;c=s(o),i||(c=c.then(()=>{const n=s(a);return t.scrollTop=e,n}))}else c=s(a.concat(o));c.then(i,r.C)})},toggleNow(t,e){return new l.b(n=>l.b.all(Object(r.M)(t).map(t=>this._toggleElement(t,e,!1))).then(n,r.C))},isToggled(t){const e=Object(r.M)(t||this.$el);return this.cls?Dt(e,this.cls.split(" ")[0]):!o(e,"hidden")},updateAria(t){!1===this.cls&&s(t,"aria-hidden",!this.isToggled(t))},_toggleElement(t,e,n){if(e=Object(r.n)(e)?e:Xt.inProgress(t)?Dt(t,"jdb-animation-leave"):Jt.inProgress(t)?"0px"===t.style.height:!this.isToggled(t),!z(t,`before${e?"show":"hide"}`,[this]))return l.b.reject();const i=(Object(r.r)(n)?n:!1!==n&&this.hasAnimation?this.hasTransition?function({isToggled:t,duration:e,initProps:n,hideProps:i,transition:s,_toggle:o}){return(a,c)=>{const l=Jt.inProgress(a),u=a.hasChildNodes?Object(r.I)(St(a.firstElementChild,"marginTop"))+Object(r.I)(St(a.lastElementChild,"marginBottom")):0,d=T(a)?te(a)+(l?0:u):0;Jt.cancel(a),t(a)||o(a,!0),te(a,""),be.flush();const h=te(a)+(l?0:u);return te(a,d),(c?Jt.start(a,Object(r.b)({},n,{overflow:"hidden",height:h}),Math.round(e*(1-d/h)),s):Jt.start(a,i,Math.round(e*(d/h)),s).then(()=>o(a,!1))).then(()=>St(a,n))}}(this):function({animation:t,duration:e,origin:n,_toggle:i}){return(r,s)=>(Xt.cancel(r),s?(i(r,!0),Xt.in(r,t[0],e,n)):Xt.out(r,t[1]||t[0],e,n).then(()=>i(r,!1)))}(this):this._toggle)(t,e);z(t,e?"show":"hide",[this]);const s=()=>{z(t,e?"shown":"hidden",[this]),this.$update(t)};return i?i.then(s):l.b.resolve(s())},_toggle(t,e){if(!t)return;let n;e=Boolean(e),this.cls?(n=Object(r.k)(this.cls," ")||e!==Dt(t,this.cls))&&Mt(t,this.cls,Object(r.k)(this.cls," ")?void 0:e):(n=e===o(t,"hidden"))&&s(t,"hidden",e?null:""),Ot("[autofocus]",t).some(t=>T(t)?t.focus()||!0:t.blur()),this.updateAria(t),n&&this.$update(t)}}};var Se={mixins:[Te,ke],args:"animation",props:{close:String},data:{animation:[!0],selClose:".jdb-alert-close",duration:100,hideProps:Object(r.b)({opacity:0},ke.data.hideProps)},events:[{name:"click",delegate(){return this.selClose},handler(t){t.preventDefault(),this.close()}}],methods:{close(){this.toggleElement(this.$el).then(()=>this.$destroy(!0))}}},Be={mixins:[Te,ke],props:{targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,transition:String},data:{targets:"> *",active:!1,animation:[!0],collapsible:!0,multiple:!1,clsOpen:"jdb-active",toggle:"> .jdb-accordion-title",content:"> .jdb-accordion-content",transition:"ease"},computed:{items:({targets:t},e)=>Ot(t,e)},events:[{name:"click",delegate(){return`${this.targets} ${this.$props.toggle}`},handler(t){t.preventDefault(),this.toggle(rt(Ot(`${this.targets} ${this.$props.toggle}`,this.$el),t.current))}}],connected(){if(!1===this.active)return;const t=this.items[Number(this.active)];t&&!Dt(t,this.clsOpen)&&this.toggle(t,!1)},update(){this.items.forEach(t=>this._toggle(yt(this.content,t),Dt(t,this.clsOpen)));const t=!this.collapsible&&!Dt(this.items,this.clsOpen)&&this.items[0];t&&this.toggle(t,!1)},methods:{toggle(t,e){const n=st(t,this.items),i=k(this.items,`.${this.clsOpen}`);(t=this.items[n])&&[t].concat(!this.multiple&&!Object(r.k)(i,t)&&i||[]).forEach(n=>{const r=n===t,o=r&&!Dt(n,this.clsOpen);if(!o&&r&&!this.collapsible&&i.length<2)return;Mt(n,this.clsOpen,o);const a=n._wrapper?n._wrapper.firstElementChild:yt(this.content,n);n._wrapper||(n._wrapper=pt(a,"<div>"),s(n._wrapper,"hidden",o?"":null)),this._toggle(a,!0),this.toggleElement(n._wrapper,o,e).then(()=>{Dt(n,this.clsOpen)===o&&(o||this._toggle(a,!1),n._wrapper=null,bt(a))})})}}},Ce={mixins:[Te],extends:{mixins:[ke],args:"connect",props:{connect:String,toggle:String,active:Number,swiping:Boolean},data:{connect:"~.jdb-switcher",toggle:"> * > :first-child",active:0,swiping:!0,cls:"jdb-active",clsContainer:"jdb-switcher",attrItem:"jdb-switcher-item",queued:!0},computed:{connects:({connect:t},e)=>d(t,e),toggles:({toggle:t},e)=>Ot(t,e)},events:[{name:"click",delegate(){return`${this.toggle}:not(.jdb-disabled)`},handler(t){t.preventDefault(),this.show(Object(r.M)(this.$el.children).filter(e=>S(t.current,e))[0])}},{name:"click",el(){return this.connects},delegate(){return`[${this.attrItem}],[data-${this.attrItem}]`},handler(t){t.preventDefault(),this.show(c(t.current,this.attrItem))}},{name:"swipeRight swipeLeft",filter(){return this.swiping},el(){return this.connects},handler({type:t}){this.show(Object(r.g)(t,"Left")?"next":"previous")}}],update(){this.connects.forEach(t=>this.updateAria(t.children));const{children:t}=this.$el;this.show(k(t,`.${this.cls}`)[0]||t[this.active]||t[0])},methods:{index(){return!Object(r.p)(this.connects)&&rt(k(this.connects[0].children,`.${this.cls}`)[0])},show(t){const{children:e}=this.$el,{length:n}=e,i=this.index(),r=i>=0,o="previous"===t?-1:1;let a,c,l=st(t,e,i);for(let t=0;t<n;t++,l=(l+o+n)%n)if(!O(this.toggles[l],".jdb-disabled *, .jdb-disabled, [disabled]")){a=this.toggles[l],c=e[l];break}!c||i>=0&&Dt(c,this.cls)||i===l||(It(e,this.cls),$t(c,this.cls),s(this.toggles,"aria-expanded",!1),s(a,"aria-expanded",!0),this.connects.forEach(t=>{r?this.toggleElement([t.children[i],t.children[l]]):this.toggleNow(t.children[l])}))}}},props:{media:Boolean},data:{media:960,connect:"~.jdb-tab-contents",attrItem:"jdb-tab-item"},connected(){const t=Dt(this.$el,"jdb-tab-left")?"jdb-tab-left":!!Dt(this.$el,"jdb-tab-right")&&"jdb-tab-right";t&&this.$create("toggle",this.$el,{cls:t,mode:"media",media:this.media})}},Ve={mixins:[Te],props:{width:Number,height:Number},data:{automute:!0},update:{read(){const t=this.$el;if(!T(t))return!1;const{offsetHeight:e,offsetWidth:n}=t.parentNode;return{height:e,width:n}},write({height:t,width:e}){const n=this.$el,i=this.width||n.naturalWidth||n.videoWidth||n.clientWidth,s=this.height||n.naturalHeight||n.videoHeight||n.clientHeight;i&&s&&St(n,r.a.cover({width:i,height:s},{width:e+(e%2?1:0),height:t+(t%2?1:0)}))},events:["resize"]}};var ze={mixins:[{props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}},{name:"mouseenter",filter(){return this.autoplay&&this.pauseOnHover},handler(){this.isHovering=!0}},{name:"mouseleave",filter(){return this.autoplay&&this.pauseOnHover},handler(){this.isHovering=!1}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>!S(document.activeElement,this.$el)&&!this.isHovering&&!this.stack.length&&this.show("next"),this.autoplayInterval)},stopAutoplay(){this.interval&&clearInterval(this.interval)}}},{props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){["start","move","end"].forEach(t=>{const e=this[t];this[t]=(t=>{const n=R(t).x*(U?-1:1);this.prevPos=n!==this.pos?this.pos:this.prevPos,this.pos=n,e(t)})})},events:[{name:K,delegate(){return this.selSlides},handler(t){var e;!this.draggable||!W(t)&&(e=t.target,!e.children.length&&e.childNodes.length)||t.button>0||this.length<2||this.start(t)}},{name:"touchmove",passive:!1,handler:"move",delegate(){return this.selSlides}},{name:"dragstart",handler(t){t.preventDefault()}}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index;const t="touchmove"!==Q?B(document,Q,this.move,{passive:!1}):r.C;this.unbindMove=(()=>{t(),this.unbindMove=null}),B(window,"scroll",this.unbindMove),B(document,Z,this.end,!0),St(this.list,"userSelect","none")},move(t){if(!this.unbindMove)return;const e=this.pos-this.drag;if(0===e||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;St(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;const{slides:n}=this;let{prevIndex:i}=this,s=Math.abs(e),o=this.getIndex(i+this.dir,i),a=this._getDistance(i,o)||n[i].offsetWidth;for(;o!==i&&s>a;)this.drag-=a*this.dir,i=o,s-=a,o=this.getIndex(i+this.dir,i),a=this._getDistance(i,o)||n[i].offsetWidth;this.percent=s/a;const c=n[i],l=n[o],u=this.index!==o,d=i===o;let h;[this.index,this.prevIndex].filter(t=>!Object(r.k)([o,i],t)).forEach(t=>{z(n[t],"itemhidden",[this]),d&&(h=!0,this.prevIndex=i)}),(this.index===i&&this.prevIndex!==i||h)&&z(n[this.index],"itemshown",[this]),u&&(this.prevIndex=i,this.index=o,!d&&z(c,"beforeitemhide",[this]),z(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),c,!d&&l),u&&(!d&&z(c,"itemhide",[this]),z(l,"itemshow",[this]))},end(){if(C(window,"scroll",this.unbindMove),this.unbindMove&&this.unbindMove(),C(document,Z,this.end,!0),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(U?this.dir*(U?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}St(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}},{data:{selNav:!1},computed:{nav:({selNav:t},e)=>yt(t,e),selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return Ot(this.selNavItem,e)}},update:{write(){this.nav&&this.length!==this.nav.children.length&&at(this.nav,this.slides.map((t,e)=>`<li ${this.attrItem}="${e}"><a href="#"></a></li>`).join("")),Mt(Ot(this.selNavItem,this.$el).concat(this.nav),"jdb-hidden",!this.maxIndex),this.updateNav()},events:["resize"]},events:[{name:"click",delegate(){return this.selNavItem},handler(t){t.preventDefault(),this.show(c(t.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav(){const t=this.getValidIndex();this.navItems.forEach(e=>{const n=c(e,this.attrItem);Mt(e,this.clsActive,Object(r.N)(n)===t),Mt(e,"jdb-invisible",this.finite&&("previous"===n&&0===t||"next"===n&&t>=this.maxIndex))})}}}],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,stack:[],percent:0,clsActive:"jdb-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),computed:{duration:({velocity:t},e)=>Le(e.offsetWidth/t),length(){return this.slides.length},list:({selList:t},e)=>yt(t,e),maxIndex(){return this.length-1},selSlides:({selList:t})=>`${t} > *`,slides(){return Object(r.M)(this.list.children)}},events:{itemshown(){this.$update(this.list)}},methods:{show(t,e=!1){if(this.dragging||!this.length)return;const{stack:n}=this,i=e?0:n.length,r=()=>{n.splice(i,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1)return void(2===n.length&&this._transitioner.forward(Math.min(this.duration,200)));const s=this.index,o=Dt(this.slides,this.clsActive)&&this.slides[s],a=this.getIndex(t,this.index),c=this.slides[a];if(o===c)return void r();if(this.dir=function(t,e){return"next"===t?1:"previous"===t?-1:t<e?-1:1}(t,s),this.prevIndex=s,this.index=a,o&&z(o,"beforeitemhide",[this]),!z(c,"beforeitemshow",[this,o]))return this.index=this.prevIndex,void r();const u=this._show(o,c,e).then(()=>(o&&z(o,"itemhidden",[this]),z(c,"itemshown",[this]),new l.b(t=>{be.write(()=>{n.shift(),n.length?this.show(n.shift(),!0):this._transitioner=null,t()})})));return o&&z(o,"itemhide",[this]),z(c,"itemshow",[this]),u},getIndex(t=this.index,e=this.index){return Object(r.e)(st(t,this.slides,e,this.finite),0,this.maxIndex)},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,Object(r.b)({easing:n?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing},this.transitionOptions)),!n&&!t)return this._transitioner.translate(1),l.b.resolve();const{length:i}=this.stack;return this._transitioner[i>1?"forward":"show"](i>1?Math.min(this.duration,75+75/(i-1)):this.duration,this.percent)},_getDistance(t,e){return new this._getTransitioner(t,t!==e&&e).getDistance()},_translate(t,e=this.prevIndex,n=this.index){const i=this._getTransitioner(e!==n&&e,n);return i.translate(t),i},_getTransitioner(t=this.prevIndex,e=this.index,n=this.dir||1,i=this.transitionOptions){return new this.Transitioner(Object(r.v)(t)?this.slides[t]:t,Object(r.v)(e)?this.slides[e]:e,n*(U?-1:1),i)}}};function Le(t){return.5*t+300}var Pe={update:{write(){if(this.stack.length||this.dragging)return;const t=this.getValidIndex();delete this.index,It(this.slides,this.clsActive,this.clsActivated),this.show(t)},events:["resize"]}},Fe={slide:{show:t=>[{transform:Je(-100*t)},{transform:Je()}],percent:t=>He(t),translate:(t,e)=>[{transform:Je(-100*e*t)},{transform:Je(100*e*(1-t))}]}};function He(t){return Math.abs(St(t,"transform").split(",")[4]/t.offsetWidth)||0}function Je(t=0,e="%"){return`translateX(${t}${t?e:""})`}function We(t){return`scale3d(${t}, ${t}, 1)`}function Re(t,e,n){const i=Xe(t,e);return n?i-function(t,e){return Ge(e).width/2-Ge(t).width/2}(t,e):Math.min(i,qe(e))}function qe(t){return Math.max(0,Ue(t)-Ge(t).width)}function Ue(t){return Ke(t).reduce((t,e)=>Ge(e).width+t,0)}function Xe(t,e){return(Zt(t).left+(U?Ge(t).width-Ge(e).width:0))*(U?-1:1)}function Ge(t){return t.getBoundingClientRect()}function Ye(t,e,n){z(t,L(e,!1,!1,n))}function Ke(t){return Object(r.M)(t.children)}var Qe={mixins:[Te,ze,Pe],props:{center:Boolean,sets:Boolean,ukey:String},data:{center:!1,sets:!1,attrItem:"jdb-slider-item",selList:".jdb-slider-items",selNav:".jdb-slider-nav",clsContainer:"jdb-slider-container",ukey:"",Transitioner:function(t,e,n,{center:i,easing:s,list:o}){const a=new l.a,c=t?Re(t,o,i):Re(e,o,i)+Ge(e).width*n,u=e?Re(e,o,i):c+Ge(t).width*n*(U?-1:1);return{dir:n,show(e,i=0,c){const l=c?"linear":s;return e-=Math.round(e*Object(r.e)(i,-1,1)),this.translate(i),t&&this.updateTranslates(),i=t?i:Object(r.e)(i,0,1),Ye(this.getItemIn(),"itemin",{percent:i,duration:e,timing:l,dir:n}),t&&Ye(this.getItemIn(!0),"itemout",{percent:1-i,duration:e,timing:l,dir:n}),Jt.start(o,{transform:Je(-u*(U?-1:1),"px")},e,l).then(a.resolve,r.C),a.promise},stop:()=>Jt.stop(o),cancel(){Jt.cancel(o)},reset(){St(o,"transform","")},forward(t,e=this.percent()){return Jt.cancel(o),this.show(t,e,!0)},translate(e){const i=this.getDistance()*n*(U?-1:1);St(o,"transform",Je(Object(r.e)(i-i*e-u,-Ue(o),Ge(o).width)*(U?-1:1),"px")),this.updateTranslates(),t&&(e=Object(r.e)(e,-1,1),Ye(this.getItemIn(),"itemtranslatein",{percent:e,dir:n}),Ye(this.getItemIn(!0),"itemtranslateout",{percent:1-e,dir:n}))},percent:()=>Math.abs((St(o,"transform").split(",")[4]*(U?-1:1)+c)/(u-c)),getDistance:()=>Math.abs(u-c),getItemIn(e=!1){const i=this.getActives(),s=Object(r.E)(Ke(o),"offsetLeft"),a=rt(s,i[n*(e?-1:1)>0?i.length-1:0]);return~a&&s[a+(t&&!e?n:0)]},getActives(){const n=Re(t||e,o,i);return Object(r.E)(Ke(o).filter(t=>{const e=Xe(t,o);return e>=n&&e+Ge(t).width<=Ge(o).width+n}),"offsetLeft")},updateTranslates(){const t=this.getActives();Ke(o).forEach(n=>{const i=Object(r.k)(t,n);Ye(n,`itemtranslate${i?"in":"out"}`,{percent:i?1:0,dir:n.offsetLeft<=e.offsetLeft?1:-1})})}}}},computed:{avgWidth(){return Ue(this.list)/this.length},finite({finite:t}){return t||Ue(this.list)<Ge(this.list).width+Ke(this.list).reduce((t,e)=>Math.max(t,Ge(e).width),0)+this.center},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return this.sets[this.sets.length-1];St(this.slides,"order","");const t=qe(this.list);let e=this.length;for(;e--;)if(Xe(this.list.children[e],this.list)<t)return Math.min(e+1,this.length-1);return 0},sets({sets:t}){const e=Ge(this.list).width/(this.center?2:1);let n=0,i=e,s=0;return t=t&&this.slides.reduce((t,o,a)=>{const{width:c}=Ge(o);if(s+c>n&&(!this.center&&a>this.maxIndex&&(a=this.maxIndex),!Object(r.k)(t,a))){const r=this.slides[a+1];this.center&&r&&c<i-Ge(r).width/2?i-=c:(i=e,t.push(a),n=s+e+(this.center?c/2:0))}return s+=c,t},[]),!Object(r.p)(t)&&t},transitionOptions(){return{center:this.center,list:this.list}}},connected(){Mt(this.$el,this.clsContainer,!yt(`.${this.clsContainer}`,this.$el))},update:{write(){Ot(`[${this.attrItem}],[data-${this.attrItem}]`,this.$el).forEach(t=>{const e=c(t,this.attrItem);this.maxIndex&&Mt(t,"jdb-hidden",Object(r.w)(e)&&(this.sets&&!Object(r.k)(this.sets,Object(r.I)(e))||e>this.maxIndex))})},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!Object(r.k)(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let t=0;t<e;t++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault()}else this.duration=Le(this.avgWidth/this.velocity)*(Ge(this.dir<0||!this.slides[this.prevIndex]?this.slides[this.index]:this.slides[this.prevIndex]).width/this.avgWidth),this.reorder()},itemshow(){!Object(r.A)(this.prevIndex)&&$t(this._getTransitioner().getItemIn(),this.clsActive)},itemshown(){const t=this._getTransitioner(this.index).getActives();this.slides.forEach(e=>Mt(e,this.clsActive,Object(r.k)(t,e))),(!this.sets||Object(r.k)(this.sets,Object(r.I)(this.index)))&&this.slides.forEach(e=>Mt(e,this.clsActivated,Object(r.k)(t,e)))}},methods:{reorder(){if(St(this.slides,"order",""),this.finite)return;const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((e,n)=>St(e,"order",this.dir>0&&n<t?1:this.dir<0&&n>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let n=Ge(this.list).width/2-Ge(e).width/2,i=0;for(;n>0;){const e=this.getIndex(--i+t,t),r=this.slides[e];St(r,"order",e>t?-2:-1),n-=Ge(r).width}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let n;do{if(Object(r.k)(this.sets,t))return t;n=t,t=this.getIndex(t+this.dir,e)}while(t!==n);return t}}};function Ze(t,e,n){z(t,L(e,!1,!1,n))}var tn={mixins:[ze],props:{animation:String},data:{animation:"slide",clsActivated:"jdb-transition-active",Animations:Fe,Transitioner:function(t,e,n,{animation:i,easing:s}){const{percent:o,translate:a,show:c=r.C}=i,u=c(n),d=new l.a;return{dir:n,show(i,o=0,a){const c=a?"linear":s;return i-=Math.round(i*Object(r.e)(o,-1,1)),this.translate(o),Ze(e,"itemin",{percent:o,duration:i,timing:c,dir:n}),Ze(t,"itemout",{percent:1-o,duration:i,timing:c,dir:n}),l.b.all([Jt.start(e,u[1],i,c),Jt.start(t,u[0],i,c)]).then(()=>{this.reset(),d.resolve()},r.C),d.promise},stop:()=>Jt.stop([e,t]),cancel(){Jt.cancel([e,t])},reset(){for(const n in u[0])St([e,t],n,"")},forward(n,i=this.percent()){return Jt.cancel([e,t]),this.show(n,i,!0)},translate(i){this.reset();const r=a(i,n);St(e,r[1]),St(t,r[0]),Ze(e,"itemtranslatein",{percent:i,dir:n}),Ze(t,"itemtranslateout",{percent:1-i,dir:n})},percent:()=>o(t||e,e,n),getDistance:()=>t&&t.offsetWidth}}},computed:{animation:({animation:t,Animations:e})=>Object(r.b)(t in e?e[t]:e.slide,{name:t}),transitionOptions(){return{animation:this.animation}}},events:{"itemshow itemhide itemshown itemhidden"({target:t}){this.$update(t)},itemshow(){Object(r.v)(this.prevIndex)&&be.flush()},beforeitemshow({target:t}){$t(t,this.clsActive)},itemshown({target:t}){$t(t,this.clsActivated)},itemhidden({target:t}){It(t,this.clsActive,this.clsActivated)}}},en=Object(r.b)({},Fe,{fade:{show:()=>[{opacity:0,zIndex:0},{zIndex:-1}],percent:t=>1-St(t,"opacity"),translate:t=>[{opacity:1-t,zIndex:0},{zIndex:-1}]},scale:{show:()=>[{opacity:0,transform:We(1.5),zIndex:0},{zIndex:-1}],percent:t=>1-St(t,"opacity"),translate:t=>[{opacity:1-t,transform:We(1+.5*t),zIndex:0},{zIndex:-1}]},pull:{show:t=>t<0?[{transform:Je(30),zIndex:-1},{transform:Je(),zIndex:0}]:[{transform:Je(-100),zIndex:0},{transform:Je(),zIndex:-1}],percent:(t,e,n)=>n<0?1-He(e):He(t),translate:(t,e)=>e<0?[{transform:Je(30*t),zIndex:-1},{transform:Je(-100*(1-t)),zIndex:0}]:[{transform:Je(100*-t),zIndex:0},{transform:Je(30*(1-t)),zIndex:-1}]},push:{show:t=>t<0?[{transform:Je(100),zIndex:0},{transform:Je(),zIndex:-1}]:[{transform:Je(-30),zIndex:-1},{transform:Je(),zIndex:0}],percent:(t,e,n)=>n>0?1-He(e):He(t),translate:(t,e)=>e<0?[{transform:Je(100*t),zIndex:0},{transform:Je(-30*(1-t)),zIndex:-1}]:[{transform:Je(-30*t),zIndex:-1},{transform:Je(100*(1-t)),zIndex:0}]}}),nn={mixins:[Te,tn,Pe],props:{ratio:String,minHeight:Number,maxHeight:Number},data:{ratio:"16:9",minHeight:!1,maxHeight:!1,selList:".jdb-slideshow-items",attrItem:"jdb-slideshow-item",selNav:".jdb-slideshow-nav",Animations:en},update:{read(){let[t,e]=this.ratio.split(":").map(Number);return e=e*this.list.offsetWidth/t||0,this.minHeight&&(e=Math.max(this.minHeight,e)),this.maxHeight&&(e=Math.min(this.maxHeight,e)),{height:e-ie(this.list,"content-box")}},write({height:t}){St(this.list,"minHeight",t)},events:["resize"]}},rn={mixins:[Te],props:{type:String,speed:String,delay:String,infinite:Boolean,preview:Boolean},data:{type:"",speed:"",delay:"",infinite:!1,preview:!1},methods:{init(){let t=this.$el;It(t,"animated"),["bounce","flash","pulse","rubberBand","shake","swing","tada","wobble","jello","heartBeat","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInUpBig","flip","flipInX","flipInY","lightSpeedIn","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","slideInUp","slideInDown","slideInLeft","slideInRight","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","jackInTheBox","rollIn","slower","slow","fast","faster","infinite","delay-1s","delay-2s","delay-3s","delay-4s","delay-5s"].forEach(function(e){It(t,e)}),this.animate()},animate(){if("none"==this.type)return!1;ce(this.$el)&&!Dt(this.$el,"animated")&&(""!=this.type&&$t(this.$el,this.type),""!=this.speed&&$t(this.$el,this.speed),""!=this.delay&&$t(this.$el,this.delay),this.infinite&&$t(this.$el,"infinite"),""!=this.type&&$t(this.$el,"animated"))}},connected(){this.init()},events:[{name:"scroll resize",el:window,handler(){this.animate()}}]},sn={mixins:[Te],props:{before:String,after:String,texts:String,tag:String,link:String,animation:String,linkTargetBlank:Boolean,linkNoFollow:Boolean},data:{before:"",after:"",texts:"",tag:"h3",link:"",animation:"",linkTargetBlank:!1,linkNoFollow:!1},methods:{init(){ot(this.$el);var t="";if(""!=this.link&&(t+='<a href="'+this.link+'"'+(this.linkTargetBlank?' target="_blank"':"")+(this.linkNoFollow?' rel="nofollow"':"")+">"),t+="<"+this.tag+' class="cd-headline '+this.animation+'">',""!=this.before&&(t+="<span>"+decodeURI(this.before)+"</span>"),""!=this.texts){t+='<span class="cd-words-wrapper'+("letters type"==this.animation?" waiting":"")+'">';var e=!0;this.texts.split(",").forEach(function(n){t+="<b"+(e?' class="is-visible"':"")+">"+n+"</b>",e=!1}),t+="</span>"}""!=this.after&&(t+="<span>"+decodeURI(this.after)+"</span>"),t+="</"+this.tag+">",""!=this.link&&(t+="</a>"),lt(this.$el,t),$JDB(this.$el).children(".cd-headline").length?$JDB(this.$el).children(".cd-headline").JDAnimatedHeading():$JDB(this.$el).children("a").children(".cd-headline").JDAnimatedHeading()}},connected(){this.init()}},on={mixins:[Te],props:{ukey:String,selected:String},data:{ukey:"",selected:"*"},methods:{init(){try{$JDB(this.$el).justifiedGallery("destroy"),$JDB(this.$el).removeClass("jdb-justified-gallery"),$JDB(this.$el).isotope(),$JDB(this.$el).isotope("destroy")}catch(t){}var t=$JDB(this.$el).isotope({itemSelector:".jdb-gallery-item",layoutMode:"masonry",percentPosition:!0,masonry:{columnWidth:".jdb-gallery-item"}});$JDB(this.$el).siblings(".jdb-gallery-filters").children("[data-filter]").unbind("click").bind("click",function(){$JDB(this).siblings("button").removeClass("active"),$JDB(this).addClass("active");var e=$JDB(this).attr("data-filter");t.isotope({filter:e})}),""!=this.selected&&"*"!=this.selected&&void 0!==$JDB(this.$el).siblings(".jdb-gallery-filters").children('[data-filter=".jdb-gallery-item-'+this.selected.toLowerCase()+'"]')&&$JDB(this.$el).siblings(".jdb-gallery-filters").children('[data-filter=".jdb-gallery-item-'+this.selected.toLowerCase()+'"]').trigger("click")}},connected(){this.init()}},an={mixins:[Te],props:{ukey:String,rowHeight:Number,gridGap:Number},data:{ukey:"",rowHeight:200,gridGap:10},methods:{init(){try{$JDB(this.$el).justifiedGallery("destroy"),$JDB(this.$el).removeClass("jdb-justified-gallery"),$JDB(this.$el).isotope(),$JDB(this.$el).isotope("destroy"),$JDB(this.$el).removeClass("jdb-masonry-gallery")}catch(t){}var t=this.rowHeight,e=this.gridGap;$JDB(this.$el).justifiedGallery({rowHeight:t,margins:e})}},connected(){this.init()}},cn={mixins:[Te],props:{ukey:String},data:{ukey:""},methods:{init(){try{$JDB(this.$el).justifiedGallery("destroy"),$JDB(this.$el).isotope(),$JDB(this.$el).isotope("destroy")}catch(t){}$JDB(this.$el).removeClass("jdb-masonry-gallery"),$JDB(this.$el).removeClass("jdb-justified-gallery"),$JDB(this.$el).removeAttr("style"),$JDB(this.$el).children(".jdb-gallery-item").removeAttr("style")}},connected(){this.init()}},ln={mixins:[Te],props:{count:Number,size:Number,shape:String,color:String,opacity:Number,hover:Boolean,hoverMode:String,lines:Boolean,linesDistance:Number,linesColor:String,linesOpacity:Number,linesWidth:Number,moveSpeed:Number,moveDirection:String},data:{count:80,size:10,shape:"circle",color:"#ffffff",opacity:50,hover:!0,hoverMode:"repulse",lines:!0,linesDistance:150,linesColor:"#ffffff",linesOpacity:40,linesWidth:1,moveSpeed:12,moveDirection:"none"},methods:{init(){null===window.pJSDom&&(window.pJSDom=[]);var t=c(this.$el,"id");t+="-particle-bg",s(this.$el,"id",t);var e={particles:{number:{value:this.count,density:{enable:!0,value_area:800}},color:{value:this.color},shape:{type:this.shape,stroke:{width:0,color:"#000000"},polygon:{nb_sides:5},image:{src:"img/github.svg",width:100,height:100}},opacity:{value:this.opacity/100,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:this.size,random:!0,anim:{enable:!1,speed:80,size_min:.1,sync:!1}},line_linked:{enable:this.lines,distance:this.linesDistance,color:this.linesColor,opacity:this.linesOpacity/100,width:this.linesWidth},move:{enable:!0,speed:this.moveSpeed,direction:this.moveDirection,random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!1,mode:"repulse"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:this.linesDistance,line_linked:{opacity:this.linesOpacity/100}},bubble:{distance:800,size:1.5*this.size,duration:2,opacity:this.opacity/100*1.5,speed:3},repulse:{distance:400,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0};particlesJS(t,e)}},created(){if(!o(this.$el,"data-inpreview")){var t=this;setTimeout(function(){t.init()},200)}}},un={mixins:[Te],props:{count:Number,size:Number,shape:String,color:String,opacity:Number,hover:Boolean,hoverMode:String,lines:Boolean,linesDistance:Number,linesColor:String,linesOpacity:Number,linesWidth:Number,moveSpeed:Number,moveDirection:String},data:{count:80,size:10,shape:"circle",color:"#ffffff",opacity:50,hover:!0,hoverMode:"repulse",lines:!0,linesDistance:150,linesColor:"#ffffff",linesOpacity:40,linesWidth:1,moveSpeed:12,moveDirection:"none"},methods:{init(){St(this.$el,"height","300px"),new google.maps.Map(this.$el,{center:{lat:-34.397,lng:150.644},zoom:8})}},connected(){this.init()}},dn={mixins:[Te],props:{url:String,autoplay:Boolean,muted:Boolean,loop:Boolean,playsinline:Boolean},data:{url:"",autoplay:!1,muted:!1,loop:!1,playsinline:!1},methods:{init(){ot(this.$el);const t=document.createElement("video");t.autoplay=this.autoplay,t.loop=this.loop,t.muted=this.muted,t.setAttribute("playsinline",this.playsinline);const e=document.createElement("source");e.src=this.url,e.type="video/mp4",t.appendChild(e),this.$el.appendChild(t)}},connected(){this.init()}},hn={mixins:[Te],props:{label:String,value:Number,type:String,height:Number,position:String,displayLabels:Boolean,displayPercentageLabels:Boolean,striped:Boolean,animation:Boolean},data:{label:"",value:0,type:"default",height:30,position:"inside",displayLabels:!0,displayPercentageLabels:!0,striped:!1,animation:!1},methods:{init(){s(this.$el,"data-type",this.type),s(this.$el,"data-position",this.position);let t="none";if(this.striped&&(t=this.animation?"animated":"normal"),s(this.$el,"data-striped",t),St(this.$el,"height",this.height+"px"),"outside"==this.position&&(this.displayLabels||this.displayPercentageLabels)?St(this.$el,"margin-top",this.height+10+"px"):St(this.$el,"margin-top","0px"),St($JDB(".jdb-progressbar-progress",this.$el),"width",this.value+"%"),ft($JDB(".jdb-progressbar-labels",this.$el)),this.displayLabels||this.displayPercentageLabels){const t=document.createElement("div");if($t(t,"jdb-progressbar-labels"),"outside"==this.position?St(t,"width","100%"):(St(t,"width",this.value+"%"),St(t,"line-height",this.height+"px")),this.displayLabels){const e=document.createElement("span");e.textContent=this.label,$t(e,"jdb-label"),lt(t,e)}if(this.displayPercentageLabels){const e=document.createElement("span");e.textContent=this.value+"%",$t(e,"jdb-value"),lt(t,e)}lt(this.$el,t)}}},connected(){this.init()},events:[{name:"scroll resize",el:window,handler(){}}]},fn=function(){return(fn=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},pn=function(){function t(t,e,n){var i=this;this.target=t,this.endVal=e,this.options=n,this.version="2.0.4",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:""},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.count=function(t){i.startTime||(i.startTime=t);var e=t-i.startTime;i.remaining=i.duration-e,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(e,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(e,i.startVal,i.endVal-i.startVal,i.duration):i.countDown?i.frameVal=i.startVal-(i.startVal-i.endVal)*(e/i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(e/i.duration),i.countDown?i.frameVal=i.frameVal<i.endVal?i.endVal:i.frameVal:i.frameVal=i.frameVal>i.endVal?i.endVal:i.frameVal,i.frameVal=Math.round(i.frameVal*i.decimalMult)/i.decimalMult,i.printValue(i.frameVal),e<i.duration?i.rAF=requestAnimationFrame(i.count):null!==i.finalEndVal?i.update(i.finalEndVal):i.callback&&i.callback()},this.formatNumber=function(t){var e,n,r,s,o,a=t<0?"-":"";if(e=Math.abs(t).toFixed(i.options.decimalPlaces),r=(n=(e+="").split("."))[0],s=n.length>1?i.options.decimal+n[1]:"",i.options.useGrouping){o="";for(var c=0,l=r.length;c<l;++c)0!==c&&c%3==0&&(o=i.options.separator+o),o=r[l-c-1]+o;r=o}return i.options.numerals&&i.options.numerals.length&&(r=r.replace(/[0-9]/g,function(t){return i.options.numerals[+t]}),s=s.replace(/[0-9]/g,function(t){return i.options.numerals[+t]})),a+i.options.prefix+r+s+i.options.suffix},this.easeOutExpo=function(t,e,n,i){return n*(1-Math.pow(2,-10*t/i))*1024/1023+e},this.options=fn({},this.defaults,n),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.decimalMult=Math.pow(10,this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof t?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined"}return t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold){this.finalEndVal=t;var n=this.countDown?1:-1;this.endVal=t+n*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.callback=t,this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal||this.resetDuration(),this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e=this.formattingFn(t);"INPUT"===this.el.tagName?this.el.value=e:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=e:this.el.innerHTML=e},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: "+t,null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}(),mn={mixins:[Te],props:{start:Number,end:Number,separator:String,decimalPlaces:Number,duration:Number},data:{start:0,end:0,separator:"",decimalPlaces:0,duration:2e3,countup:null},methods:{init(){ot(this.$el),It(this.$el,"jdb-animation-done");const t=document.createElement("span");lt(this.$el,t);var e="";switch(this.separator){case"comma":e=",";break;case"dot":e="."}this.countup=new pn(t,this.end,{startVal:this.start,decimalPlaces:this.decimalPlaces,duration:this.duration/1e3,separator:e})},animate(){ce(this.$el)&&!Dt(this.$el,"jdb-animation-done")&&($t(this.$el,"jdb-animation-done"),this.countup.start())}},connected(){this.init(),this.animate()},events:[{name:"scroll resize",el:window,handler(){this.animate()}}]},bn={mixins:[Te],props:{date:String,after:String,redirect:String,wait:Number,preview:Boolean},data:{date:"",clsWrapper:".jdb-countdown-%unit%",after:"hide",redirect:"",wait:3e3,preview:!1},computed:{date:({date:t})=>Date.parse(t),days:({clsWrapper:t},e)=>yt(t.replace("%unit%","days"),e),hours:({clsWrapper:t},e)=>yt(t.replace("%unit%","hours"),e),minutes:({clsWrapper:t},e)=>yt(t.replace("%unit%","minutes"),e),seconds:({clsWrapper:t},e)=>yt(t.replace("%unit%","seconds"),e),units(){return["days","hours","minutes","seconds"].filter(t=>this[t])}},connected(){this.start(),this.check(),this.redirectionDone=!1},disconnected(){this.stop(),this.units.forEach(t=>ot(this[t]))},events:[{name:"visibilitychange",el:document,handler(){document.hidden?this.stop():this.start()}}],update:{write(){const t=gn(this.date);t.total<=0&&(this.stop(),t.days=t.hours=t.minutes=t.seconds=0),this.units.forEach(e=>{let n=String(Math.floor(t[e]));Math.floor(t[e]);n=n.length<2?`0${n}`:n;const i=this[e];i.textContent!==n&&((n=n.split("")).length!==i.children.length&&at(i,n.map(()=>"<span></span>").join("")),n.forEach((t,e)=>i.children[e].textContent=t)),null!==i.nextSibling&&at(i.nextSibling,c(i.nextSibling,"label"))})}},methods:{start(){this.stop(),this.date&&this.units.length&&(this.$emit(),this.timer=setInterval(()=>this.$emit(),1e3))},stop(){this.timer&&(clearInterval(this.timer),this.timer=null,this.check())},check(){gn(this.date).total<=0?("hide"!=this.after&&"hide+message"!=this.after||$t(yt(".jdb-countdown-inner",this.$el),"jdb-countdown-hide"),"message"!=this.after&&"hide+message"!=this.after||null!=yt(".jdb-countdown-message",this.$el)&&$t(yt(".jdb-countdown-message",this.$el),"jdb-countdown-show"),""==this.redirect||this.redirectionDone||(this.redirectionDone=!0,this.redirectTimer=setTimeout(()=>{this.preview||(window.location.href=decodeURIComponent(this.redirect))},this.wait))):(It(yt(".jdb-countdown-inner",this.$el),"jdb-countdown-hide"),null!=yt(".jdb-countdown-message",this.$el)&&It(yt(".jdb-countdown-message",this.$el),"jdb-countdown-show"),""!=this.redirect&&this.redirectTimer&&(this.redirectionDone=!1,clearInterval(this.redirectTimer),this.redirectTimer=null))}}};function gn(t){const e=t-Date.now();return{total:e,seconds:e/1e3%60,minutes:e/1e3/60%60,hours:e/1e3/60/60%24,days:e/1e3/60/60/24}}var vn={mixins:[Te],props:{ukey:String,moveSliderOnHover:Boolean,orientation:String,defaultOffset:Number,overlay:String},data:{ukey:"",moveSliderOnHover:!1,orientation:"horizontal",defaultOffset:70,overlay:"hover"},computed:{container(){return $JDB(this.$el)},beforeImg(){return this.container.children(".jdb-beforeafter-before")},afterImg(){return this.container.children(".jdb-beforeafter-after")},slider(){return this.container.children(".jdb-beforeafter-handle")}},methods:{beforeAfter(){var t=this.defaultOffset/100,e=this.orientation,n=this.moveSliderOnHover,i=this.container,r=this.beforeImg,s=this.afterImg,o=this.slider,a=function(t){var n,a,c,l=(n=t,a=r.width(),c=r.height(),{w:a+"px",h:c+"px",cw:n*a+"px",ch:n*c+"px"});o.css("vertical"===e?"top":"left","vertical"===e?l.ch:l.cw),o.css("vertical"===e?"left":"top","50%"),function(t){"vertical"===e?(r.css("clip","rect(0,"+t.w+","+t.ch+",0)"),s.css("clip","rect("+t.ch+","+t.w+","+t.h+",0)")):(r.css("clip","rect(0,"+t.cw+","+t.h+",0)"),s.css("clip","rect(0,"+t.w+","+t.h+","+t.cw+")")),i.css("height",t.h)}(l)},c=function(t,n){var i,r,s;return i="vertical"===e?(n-u)/h:(t-l)/d,r=0,s=1,Math.max(r,Math.min(s,i))};$JDB(window).unbind("resize.jdbbeforeafter").bind("resize.jdbbeforeafter",function(e){a(t)});var l=0,u=0,d=0,h=0,f=function(t){(t.distX>t.distY&&t.distX<-t.distY||t.distX<t.distY&&t.distX>-t.distY)&&"vertical"!==e?t.preventDefault():(t.distX<t.distY&&t.distX<-t.distY||t.distX>t.distY&&t.distX>-t.distY)&&"vertical"===e&&t.preventDefault(),i.addClass("active"),l=i.offset().left,u=i.offset().top,d=r.width(),h=r.height()},p=function(e){i.hasClass("active")&&(t=c(e.pageX,e.pageY),a(t))},m=function(){i.removeClass("active")},b=o;b.unbind("movestart").bind("movestart",f),b.unbind("move").bind("move",p),b.unbind("moveend").bind("moveend",m),n?(i.unbind("mouseenter").bind("mouseenter",f),i.unbind("mousemove").bind("mousemove",p),i.unbind("mouseleave").bind("mouseleave",m)):(i.unbind("mouseenter"),i.unbind("mousemove"),i.unbind("mouseleave")),o.unbind("touchmove").bind("touchmove",function(t){t.preventDefault()}),r.unbind("mousedown").bind("mousedown",function(t){t.preventDefault()}),s.unbind("mousedown").bind("mousedown",function(t){t.preventDefault()}),$JDB(window).trigger("resize.jdbbeforeafter"),r.unbind("load").bind("load",function(){$JDB(window).trigger("resize.jdbbeforeafter")})},init(){this.beforeAfter()}},connected(){this.init()}},jn={methods:{before(){try{beforePreviewCompile()}catch(t){}},after(){try{afterPreviewCompile()}catch(t){}}},connected(){"before"===c(this.$el,"event")?this.before():this.after()}};De.version="1.0.0",function(t){t.component("section",Ne),t.component("row",Ae),t.component("alert",Se),t.component("sliderContent",Ve),t.component("accordion",Be),t.component("tab",Ce),t.component("slider",Qe),t.component("slideshow",nn),t.component("animation",rn),t.component("animatedheading",sn),t.component("masonryGallery",on),t.component("justifyGallery",an),t.component("gridGallery",cn),t.component("particles",ln),t.component("gmap",un),t.component("video",dn),t.component("progressbar",hn),t.component("counter",mn),t.component("countdown",bn),t.component("beforeAfter",vn),t.component("preview",jn),t.use(Me)}(De);var wn=De;(function(t){const{connect:e,disconnect:n}=t;function i(){s(document.body,e),be.flush(),new MutationObserver(t=>t.forEach(r)).observe(document,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),t._initialized=!0}function r(i){const{target:r,type:a}=i;("attributes"!==a?function({addedNodes:t,removedNodes:i}){for(let n=0;n<t.length;n++)s(t[n],e);for(let t=0;t<i.length;t++)s(i[t],n);return!0}(i):function({target:e,attributeName:n}){if("href"===n)return!0;const i=Ie(n);if(!(i&&i in t))return;if(o(e,n))return t[i](e),!0;const r=t.getComponent(e,i);return r?(r.$destroy(),!0):void 0}(i))&&t.update(r)}function s(t,e){if(1===t.nodeType&&!o(t,"jdb-no-boot"))for(e(t),t=t.firstElementChild;t;){const n=t.nextElementSibling;s(t,e),t=n}}"MutationObserver"in window&&(document.body?i():new MutationObserver(function(){document.body&&(this.disconnect(),i())}).observe(document,{childList:!0,subtree:!0}))})(wn),wn.PARTICLES=[];e.default=wn}]).default});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment