ceri-side-nav
Version:
a touch enabled, responsive side-nav
1 lines • 41.4 kB
JavaScript
(function(e){function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}var t={};return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e['default']}:function(){return e};return n.d(t,'a',t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p='/',n(n.s=13)})([function(e){var n,t,i,a,d,s,o=[].slice,r={}.hasOwnProperty;i=Array.isArray,d=function(e){return'object'==typeof e},a=function(e){return'function'==typeof e},s=function(e){return d(e)&&'[object Object]'===Object.prototype.toString.call(e)},n=function(e,n){return Array.prototype.push.apply(e,n)},t=0,e.exports={getID:function(){return t++},noop:function(){},assign:Object.assign||function(){var e,n,t,i,a,d,s;if(d=arguments[0],a=2<=arguments.length?o.call(arguments,1):[],d=Object(d),null!=a)for(e=0,t=a.length;e<t;e++)for(n in i=a[e],i)r.call(i,n)&&(s=i[n],d[n]=s);return d},merge:function(){var e,n,t,i,a,d,s,l;if(s=arguments[0],d=2<=arguments.length?o.call(arguments,1):[],s=Object(s),null!=d){for(i=[],e=0,t=d.length;e<t;e++)a=d[e],i.push(function(){var e;for(n in e=[],a)r.call(a,n)&&(l=a[n],e.push(null==s[n]?s[n]=l:s[n]));return e}());return i}},concat:n,identity:function(e){return e},arrayize:function(e){return i(e)?e:null==e?[]:[e]},isString:function(e){return'string'==typeof e||e instanceof String},isArray:i,isObject:d,isPlainObject:s,isFunction:a,isElement:function(e){return'object'==typeof HTMLElement?e instanceof HTMLElement:null!=e&&1===(null!=e.nodeType)&&'string'==typeof(null!=e.nodeName)},camelize:function(e){return e.replace(/-(\w)/g,function(e,n){return n?n.toUpperCase():''})},capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},hyphenate:function(e){return e.replace(/([^-])([A-Z])/g,'$1-$2').toLowerCase()},clone:function(e){var n,t,a;if(s(e)){for(t in n={},e)r.call(e,t)&&(a=e[t],n[t]=a);return n}return i(e)?e.slice():e},rebind:function(e){var n,t,s,o,r,l,p,c,u,h,f,m;for(c=Object.getPrototypeOf(e);!c.hasOwnProperty('_isCeriProto');)c=Object.getPrototypeOf(c);for(u=e._rebind,h=[],(n=0,r=u.length);n<r;n++)o=u[n],e.hasOwnProperty(o)?h.push(void 0):(l=c[o],p={},Object.defineProperty(e,o,{__proto__:null,value:p}),h.push(function(){var n;for(t in n=[],l)f=l[t],a(f)?n.push(p[t]=f.bind(e)):i(f)?n.push(p[t]=f.slice()):d(f)&&null!=f?(p[t]={},n.push(function(){var e;for(s in e=[],f)m=f[s],e.push(p[s]=m);return e}())):n.push(p[t]=f);return n}()));return h}}},function(e,n,t){var a,i,d;d=t(0),a=d.arrayize,i=d.isObject,e.exports={apply:function(e,n,t){var d,s,i,o,r,l,p,c,u,h,f,m,_,g;for(t=a(t),h={},u=[],(s=0,l=t.length);s<l;s++)f=t[s],h[f.source]=f.setup(e.prototype),null!=f.finisher&&u.push(f.finisher);for(_=n.sort(function(e,n){return(n._prio||0)-(e._prio||0)}),i=0,p=_.length;i<p;i++)for(o in m=_[i],h)g=h[o],null!=m[o]&&g.iterate(m[o]);for(o in h)g=h[o],'function'==typeof g.end&&g.end();for(r=0,c=u.length;r<c;r++)d=u[r],d(e);return e},copy:function(e){return null==e.target&&(e.target=e.source),e.setup=function(n){var t,a,d,s,o;if(e.target)null==(s=n[e.target])&&((e.source===e.target||!i(a=n[e.source]))&&(a={}),s=n[e.target]=a);else if(s=n,null!=n[e.source])for(t in d=n[e.source],d)o=d[t],null==n[t]&&(n[t]=o);return{iterate:function(e){var n;for(t in n=[],e)o=e[t],n.push(null==s[t]?s[t]=o:s[t]);return n}}},e},concat:function(e){return null==e.target&&(e.target=e.source),e.setup=function(n){var t;return t=[],{iterate:function(e){return t=t.concat(a(e))},end:function(){return e.last?n[e.target]=t.concat(a(n[e.source])):n[e.target]=a(n[e.source]).concat(t)}}},e}}},function(e,n,t){var i,a,d,s,r,o,l,p,c,u;u=t(0),c=u.noop,p=u.isString,r=u.isArray,l=u.isObject,o=u.isFunction,a=u.clone,d=u.getID,i=u.assign,window.__ceriDeps=null,s=0,e.exports={_name:'computed',_prio:900,_v:1,_mergers:t(1).copy({source:'computed'}),_rebind:'$computed',mixins:[t(6)],methods:{$computed:{init:function(e){var n;return null!=e.parentPath&&null!=e.name&&(e.path=e.parentPath+'.'+e.name),e.path?this.$path.toNameAndParent(e):(e.id=d(),e.path='__computed.'+e.id,e.parent=this.__computed,e.name=e.id),this.$watch.parse(e),e=this.$watch.init(e),e.__init__||(e.__init__=!0,e.isComputed=!0,e.deps=function(n){return e.deps[n.id]=!0,e.ascs.push(n),e},e.ascs=[],e.nullTaints=function(){var n,t,i,a;for(a=e.ascs,n=0,t=a.length;n<t;n++)i=a[n],e!==i&&i._taints&&i.nullTaints();return e._taints=null},e.getTaints=function(n){var a,i,d,t,s;if(null==(t=e._taints)&&(t=e._taints=e.cDeps.reduce(function(e,n){return n._gettingTaints?(e[n.id]||(e[n.id]=!0,e._taints.push(n.taint)),e):(n._gettingTaints=!0,e=n.getTaints(e),n._gettingTaints=!1,e)},{_taints:[e.taint]})._taints),null!=n){for(s=n._taints,a=0,i=t.length;a<i;a++)d=t[a],n[d.id]||(n[d.id]=!0,s.push(d));return n}return t},e.instance=this,e.taint=function(){return e.dirty=!0,function(){var n,t,i,a,d,s,o,r;if(0<e.cbs.length||!1===e.lazy){for(i=e.instance,s=e.value,d=e.parent[e.name],o=e.cbs,r=[],(t=0,a=o.length);t<a;t++)n=o[t],r.push(n.call(i,d,s,e));return r}}},e.taint.id=e.id,e.notify=function(){var n,t,i,a,d;for(a=e.getTaints().map(function(){return function(e){return e()}}(this)),d=[],(t=0,i=a.length);t<i;t++)n=a[t],d.push(n());return d},e.notify.owner=e,e.setter=null==e.set?c:e.set.bind(this),e.get=e.get.bind(this),e.oldVal=null,e.getter=function(){var n,t,i,a,d,s,o;if(e.dirty){if(i=e.instance,e.dirty=!1,s=window.__ceriDeps,o=window.__ceriActiveInstance,window.__ceriDeps=e.deps,window.__ceriActiveInstance=e.master?null:i,e.oldVal=e.value,e.value=e.get(),window.__ceriDeps=s,window.__ceriActiveInstance=o,!l(e.value)&&!r(e.value)&&e.oldVal!==e.value)for(d=e.cDeps,t=0,a=d.length;t<a;t++)n=d[t],n.dirty||null==e.deps[n.id]||n.notify();i.$watch.processNewValue(e)}return e.checkComputed(),e.value},n=function(){var n,t,i,a;if(Object.defineProperty(e.parent,e.name,{get:e.getter,set:e.setter}),0<e.cbs.length||!1===e.lazy)return this.$nextTick(e.notify);for(n in e.dirty=!0,t=this.$watch.__w,i=[],t)if(a=t[n],~n.indexOf(e.path)&&n!==e.path){e.cbs.push(c),this.$nextTick(e.notify);break}else i.push(void 0);return i},this.$computed.__deferredInits&&!e.noWait?this.$computed.__deferredInits.push(n):n.call(this)),e},getNotifyCb:function(e){return(!1,null!=(e=this.$watch.getObj(e))&&null!=e.notify)?e.notify:(!1,c)},orWatch:function(e,n){return p(e)?this.$watch.path({path:e,cbs:n}):this.$computed.init({get:e,cbs:n})},parseAndInit:function(e,n){return e=l(e)?a(e):{get:e},this.$computed.init(i(e,n))},setup:function(e,n){var t,i,a;for(t in null==n&&(n=this),i=[],e)a=e[t],i.push(this.$computed.parseAndInit(a,{parent:n,name:t,path:t}));return i}}},created:function(){return this.$computed.__deferredInits=[],this.__computed={},this.$computed.setup(this.computed)},connectedCallback:function(){return this.$nextTick(function(){var e,n,t,i,a;for(e=this.$computed.__deferredInits,this.$computed.__deferredInits=!1,a=[],(t=0,i=e.length);t<i;t++)n=e[t],a.push(n.call(this));return a})}}},function(e,n,t){var i;i=t(0).isString,e.exports={_name:'parseElement',_v:1,_rebind:'$parseElement',methods:{$parseElement:{byObj:function(e){return e.el=this.$parseElement.byString(e.el)},byString:function(e){var n;return i(e)?(n='this'===e?this:this[e],null==n&&(n=document.querySelector(e)),n):null==e?this:e}}}}},function(e,n,t){var i,a,d,s,r,p,l,o,c,u,h;u=t(0),p=u.isString,r=u.isFunction,s=u.isArray,i=u.arrayize,o=u.noop,d=u.clone,c=requestAnimationFrame,a=cancelAnimationFrame,l=function(n,t){return a(n.lastRequest),n.lastRequest=c(function(){var e,i,a,d,s;for(d=n.cbs,s=[],(i=0,a=d.length);i<a;i++)e=d[i],s.push(e(t));return s})},h=function(e,n,t){var a,i;return null==(a=null==(i=e.__ceriEventListener)?void 0:i[n])?(null==e.__ceriEventListener&&(e.__ceriEventListener={}),a=e.__ceriEventListener[n]={},a.lastRequest=null,a.cbs=[t],a.listener=l.bind(null,a)):a.cbs.push(t),1===a.cbs.length&&e.addEventListener(n,a.listener),function(){var d;if(~(d=a.cbs.indexOf(t))&&(a.cbs.splice(d,1),0===a.cbs.length))return e.removeEventListener(n,a.listener)}},e.exports={_name:'events',_v:1,_prio:700,_mergers:[t(1).concat({source:'events'}),t(1).copy({source:'_evLookup'})],mixins:[t(2),t(3),t(12),t(7)],_evLookup:{},methods:{$once:function(e){return e.once=!0,this.$on(e)},$on:function(t){var e,n,a,d,s,o;if(t._cbs=e=[],t.toggle)p(t.toggle)||(t.toggle=t.value),d=this.$path.toNameAndParent({path:t.toggle}),e.push(function(){return d.parent[d.name]=!d.parent[d.name]});else for(s=i(t.cbs),n=0,a=s.length;n<a;n++)o=s[n],this.$parseFunction(o,function(n,t){var i;if(t&&~(i=e.indexOf(t))&&e.splice(i,1),n&&r(n))return e.push(n)});return t.cb=function(n,a){var e,d,s,o,r,l,c,u,h,f,m,_;if(!(t.self&&a.target!==n)&&!(t.notPrevented&&a.defaultPrevented)&&(!t.keyCode||~t.keyCode.indexOf(a.keyCode))){if(t.outside&&null!=a.target)for(_=a.target;null!=_;){if(_===this)return;_=_.parentElement}if(t.inside&&null!=a.target){for(_=a.target,s=!1;null!=_;){if(_===n){s=!0;break}_=_.parentElement}if(!s)return}if(null==(h=t.defer)||!h.delay)for(m=t._cbs,c=0,l=m.length;c<l;c++)u=m[c],u.call(this,a);else if(t.defer.canceled&&(clearTimeout(t.defer.timeout),t.defer.canceled=!1),e=p(t.defer.delay)&&this.$path.getValue(t.defer.delay)||t.defer.delay,1<e){if(t.defer.cancel)for(t.defer.canceler=[],f=i(t.defer.cancel),(o=0,r=f.length);o<r;o++)d=f[o],t.defer.canceler.push(this.$once({el:t.el,event:d,cbs:function(){return t.defer.canceled=!0}}));t.defer.timeout=setTimeout(function(e){return function(){var i,d,s,o,r,n,l,p;if(t.defer.canceler){for(l=t.defer.canceler,o=0,d=l.length;o<d;o++)i=l[o],i();t.defer.canceler=null}if(!t.defer.canceled)for(p=t._cbs,r=0,s=p.length;r<s;r++)n=p[r],n.call(e,a);return t.defer.canceled=!1}}(this),e)}if(t.prevent&&a.preventDefault(),t.stop&&a.stopPropagation(),t.once)return t.deactivate()}},null==this._evLookup[t.event]?t.activate=function(){var e,n;return n=this.$parseElement.byString(t.el),e=t.cb.bind(this,n),t.throttled?t.deactivate=h(n,t.event,e):(n.addEventListener(t.event,e,t.capture),t.deactivate=function(){return n.removeEventListener(t.event,e)})}:t=this._evLookup[t.event].call(this,t),this.$parseActive(t)},$emit:function(e){var n;return null==e.el&&(e.el=this),n=document.createEvent('CustomEvent'),n.initCustomEvent(e.name,!1,!1,e.detail),e.el.dispatchEvent(n)}},connectedCallback:function(){var e,n,t,i,a,l,o,c,u,h;if(this._isFirstConnect){for(o=this.events,c=[],(t=0,a=o.length);t<a;t++)n=o[t],c.push(function(){var t;for(i in t=[],n)u=n[i],null==u.cbs?p(u)||r(u)||s(u)?t.push(this.$on({cbs:u,event:i})):t.push(function(){var n;for(e in n=[],u)h=u[e],l=d(h),null==l.el&&(l.el=e),l.event=i,n.push(this.$on(l));return n}.call(this)):(l=d(u),l.event=i,t.push(this.$on(l)));return t}.call(this));return c}}}},function(e,n,t){var i,a,d,s,r;s=t(0),d=s.isString,i=s.isArray,a=s.isFunction,r=function(e,n){return e.reduce(function(e,n,t){return e.push(e[t][n]),e},[n])},e.exports={_name:'path',_v:1,_rebind:'$path',methods:{$path:{toValue:function(e){return null==e.value&&(e.parent&&e.name?e.value=e.parent[e.name]:(null==e.obj&&(e.obj=this),e.value=r(e.path.split('.'),e.obj).pop())),e},getValue:function(e){return this.$path.toValue({path:e}).value},resolveValue:function(e){var n;return d(e)&&(e=this.$path.getValue(n=e),null==e&&('this'===n||'@'===n)&&(e=this)),e},resolveMultiple:function(e,n){var t,i,a,d;for(a=[],t=0,i=n.length;t<i;t++)d=n[t],e[d]?a.push(e[d]=this.$path.resolveValue(e[d])):a.push(void 0);return a},setValue:function(e){if(null!=e.value)return this.$path.toNameAndParent(e),e.parent[e.name]=e.value},toNameAndParent:function(e){var n;return e.name&&e.parent?e:(n=e.path.split('.'),null==e.obj&&(e.obj=this),e.name=n.pop(),e.parent=r(n,e.obj).pop(),e)}}}}},function(e,n,t){var i,a,d,s,r,o,l,p,c,u,h,f,m,_={}.hasOwnProperty;f=t(0),i=f.arrayize,u=f.isString,l=f.isArray,p=f.isObject,c=f.isPlainObject,d=f.clone,r=f.getID,s=f.concat,a=f.assign,h=t(1),m='__watch__',o='__instances__',e.exports={_name:'watch',_prio:1e3,_v:1,_mergers:[h.copy({source:'watch',target:'_watch'}),h.concat({source:'data'})],_rebind:'$watch',mixins:[t(5),t(7)],methods:{$watch:{__w:{},getObj:function(e){var n,t,i;if(null!=e.path){if(!(t=this.$watch.__w[e.path])&&null!=(i=this.__parents))for(n=i.length;!t&&n;)t=i[--n].$watch.__w[e.path];return t}return null},setObj:function(e){var n;return e=(n=this.$watch).sharedInit(e),null!=e.path&&(n.__w[e.path]=e),e},notify:function(e){var n,t;return(n=this.$watch.getObj({path:e}))||(n=null==(t=this.__parent)?void 0:t.$watch.getObj({path:e}))?n.notify(n.value):void 0},parseCbs:function(e,n){return e[n]=i(e[n]).map(this.$parseFunction.bind(this))},parse:function(e,n){return p(e)?n&&(e=d(e)):e={cbs:e},e.__parsed__||(this.$watch.parseCbs(e,'cbs'),!1!==e.initial&&(e.initial?this.$watch.parseCbs(e,'initial'):e.initial=e.cbs.slice()),e.__parsed__=!0),e},merge:function(e,n){if(s(e.cbs,n.cbs),n.initial&&(e.initial?s(e.initial,n.initial):e.initial=n.initial),null!=n.parent&&(e.parent=n.parent,e.__init__&&this.$watch.setupParent(e)),n.hasOwnProperty('value')&&n.value!==e.value)return e.parent[e.name]=n.value},getConfig:function(e){var n,t,i,a;if(!e.__configured__&&null!=e.path&&null!=(i=null==(t=this._watch)?void 0:t[e.path]))return a=this.$watch,n=a.parse(i,!0),a.merge(e,n),e.__configured__=!0},init:function(e){var n,t;return t=this.$watch,n=t.getObj(e),(null==n?void 0:n.__init__)?(t.merge(n,e),n):(t.getConfig(e),n?(t.merge(n,e),t.sharedInit(n)):t.setObj(e))},sharedInit:function(e){return e.__sInit__||(e.__sInit__=!0,e.cDeps=[],e._taints=null,e.id=r(),e.instance=this,e.checkComputed=function(){var n,t,i;if(null!=(t=window.__ceriDeps)&&null==t[e.id]&&(null===(n=window.__ceriActiveInstance)||(i=e.instance)===n||null!=n.__parents&&~n.__parents.indexOf(i)))return e.cDeps.push(t(e)),e.nullTaints()}),e},setupParent:function(e){var n,t,i,a,d,s,o;return s=e.parent,i=e.name,e.oldParent!==s&&(null!=(d=e.watchArr)&&(~(t=d.indexOf(e))&&d.splice(t,1),delete e.watchArr),e.oldParent=s,(null==(n=Object.getOwnPropertyDescriptor(s,i))||!n.get)&&Object.defineProperty(s,i,{configurable:!0,enumerable:!0,get:function(){var e,n,t,i;for(i=o.objs,e=0,n=i.length;e<n;e++)t=i[e],t.checkComputed();return o.value},set:function(e){var n,t,i,a,d;for(o.value=e,a=o.objs,d=[],(n=0,t=a.length);n<t;n++)i=a[n],i.oldVal=i.value,i.value=e,i.instance.$watch.processNewValue(i),d.push(i.notify(e,i.oldVal));return d}})),e.watchArr||(s._isCeri?o={objs:[e],value:e.value}:(null==(o=s[m])&&(o={},a={},a[m]={value:o},s.__proto__=Object.create(s.__proto__,a)),o=null==o[i]?o[i]={objs:[],value:e.value}:o[i],o.objs.push(e)),e.watchArr=o.objs),e},path:function(e){var n,t,i,a,d;if(null!=e.parentPath&&null!=e.name&&(e.path=e.parentPath+'.'+e.name),this.$path.toNameAndParent(e),this.$watch.parse(e),!e.parent){if(null!=(a=this.$watch.getObj(e)))return this.$watch.merge(a,e),void 0;this.$watch.setObj(e)}else if(e=this.$watch.init(e),e.__init__||(e.__init__=!0,null==e.value&&(e.value=e.parent[e.name]),e.nullTaints=function(){return e._taints=null},e.notify=function(n,t){var i,a,d,s,o,r,l,p;for(null==(p=e._taints)&&(p=e._taints=e.cDeps.reduce(function(e,n){return n.getTaints(e,!0)},{_taints:[]})._taints),r=p.map(function(){return function(e){return e()}}(this)),(a=0,s=r.length);a<s;a++)i=r[a],i();for(l=e.cbs,d=0,o=l.length;d<o;d++)i=l[d],i.call(e.instance,n,t,e)},this.$watch.setupParent(e),this.$watch.processNewValue(e)),e.initial){if(null!=e.value)for(d=e.initial,t=0,i=d.length;t<i;t++)n=d[t],n.call(this,e.value);else e.dirty&&e.notify(e.value);e.initial=!1}return e},processNewValue:function(e){var n,t,i,a,d,s,o,r;if(n=e.value,d=e.parent,t=function(e){return null!=e&&p(e)&&!l(e)&&(null==e||!e._isCeri)},t(n)){for(i in n)_.call(n,i)&&(r=n[i],this.$watch.path({parent:n,name:i,value:r,parentPath:e.path}));if(e.oldVal&&t(e.oldVal)){for(i in s=e.oldVal,o=[],s)_.call(s,i)&&(r=s[i],n.hasOwnProperty(i)?o.push(void 0):null==(a=this.$watch.getObj({path:e.path+'.'+i}))?o.push(void 0):o.push(a.notify(null,r)));return o}}}}},created:function(){var e,n,t,i,d,s,o,r,l;for(s=this.data,o=[],(n=0,i=s.length);n<i;n++)e=s[n],d=e.call(this),o.push(function(){var e;for(t in e=[],d)r=d[t],null!=(l=this[t])&&c(r)&&c(l)&&(r=a(l,r)),e.push(this.$watch.path({parent:this,name:t,value:r,path:t}));return e}.call(this));return o}}},function(e,n,t){var i,a,d,s,o=[].slice;s=t(0),d=s.isString,a=s.isFunction,i=s.concat,e.exports={_name:'parseFunction',_v:1,mixins:[t(5),t(2)],methods:{$parseFunction:function(e,n){var t,s,r,l,p,c;return a(e)?a(n)?n.call(this,e):e:d(e)?(c=e.replace(')','').split('('),p=c.shift(),(l=0<c.length)&&(t=c[0].split(','),r=function(e){return function(){var n,a;return n=1<=arguments.length?o.call(arguments,0):[],a=t.map(function(e){return function(n){var t;return(t=n.replace(/[\"']/g,''),t!==n)?t:isNaN(t)?'true'===t||'false'!==t&&e.$path.resolveValue(n):+t}}(this)),null!=n&&i(a,n),e.apply(this,a)}}),a(n)?this.$computed.orWatch(p,function(){var e,t,d;return t=arguments[0],e=2<=arguments.length?o.call(arguments,1):[],l&&null!=t&&a(t)&&(t=r.call(this,t)),d=[t],null!=e&&i(d,e),n.apply(this,d)}):(s=this.$path.resolveValue(p),a(s)?l?r.call(this,s):s:null)):void 0}}}},function(e,n,t){var i;i=t(0).isString,e.exports={_name:'$setAttribute',_v:1,methods:{$setAttribute:function(e,n,t){return i(e)&&(t=n,n=e,e=this),null!=t&&!1!==t&&(i(t)||!isNaN(t))?!0===t?e.setAttribute(n,''):e.setAttribute(n,t):e.removeAttribute(n),{then:this.$nextTick}}}}},function(e,n,t){var a,d,i,s,o,r,l,p;l=['Webkit','Moz','ms'],p=t(0),a=p.camelize,d=p.capitalize,s=p.isArray,o=p.isFunction,i=p.clone,r=p.isObject,e.exports={_name:'style',_v:1,_rebind:'$style',_prio:700,_mergers:[t(1).concat({source:'initStyle'}),t(1).concat({source:'computedStyle'})],_attrLookup:{style:{"#":function(e){return this.$computed.orWatch(e.value,function(n){return this.$style.set(e.el,n)})}}},mixins:[t(3)],methods:{$style:{normalize:function(e,n){var t,i,s,o;if(null==n&&(n=this),e=a(e),n=this.$parseElement.byString(n),null!=n.style[e])return e;for(e=d(e),t=0,i=l.length;t<i;t++)if(s=l[t],o=s+e,null!=n.style[o])return o;return null},normalizeObj:function(e,n){var t,i,a,d,s;for(t in d={},a=this.$style.normalize,e)s=e[t],i=a(t,n),i&&(d[i]=s);return d},setNormalized:function(e,n){var t,i,a;for(t in e=this.$parseElement.byString(e),i=[],n)a=n[t],s(a)&&null!=a[0]?i.push(e.style[t]=a.join('')):i.push(e.style[t]=a);return i},set:function(e,n){return null==n&&(n=e,e=this),this.$style.setNormalized(e,this.$style.normalizeObj(n,e))}}},connectedCallback:function(){var e,n,t,a,i,d,o,l,p,c,u,h;if(this._isFirstConnect){for(p=this.initStyle,a=0,o=p.length;a<o;a++)for(t in i=p[a],r(i[Object.keys(i)[0]])||(i={this:i}),i)h=i[t],this.$style.set(t,h);for(c=this.computedStyle,u=[],(d=0,l=c.length);d<l;d++)n=c[d],u.push(function(){var i;for(t in i=[],n)e=n[t],i.push(this.$computed.parseAndInit(e,{cbs:function(e,n){return this.$style.set(e,n)}.bind(this,t)}));return i}.call(this));return u}}}},function(e,n,t){var i,a,d,r,s,o=Math.pow;a=t(0).isArray,i={linear:function(){return function(e){return e}},pow:function(e){return null==e&&(e=2),function(n){return o(n,e)}},sin:function(){return function(e){return Math.sin((e+3)*Math.PI/2)+1}},exp:function(){return function(e){return Math.exp(e)}},circ:function(){return function(e){return 1-Math.sqrt(1-o(e,2))}},back:function(e){return null==e&&(e=1.70158),function(n){return o(n,2)*((e+1)*n-e)}}},r=function(e,n,t,i){var a,d,s,o;for(a in s=[],n)(o=n[a],!(null!=i&&~i.indexOf(a)))&&(d=o[0]+t*(o[1]-o[0]),o[2]&&(d+=o[2]),null==e[a]?s.push(a+'('+d+')'):e[a]=d);if(0<s.length)return e.transform=s.join(' ')},d=function(e,n){var t,i,a;if(n){for(t in i=[],n)a=n[t],i.push(e[t]=a);return i}},s=function(e){return function(n){var t,i,a,d,o,l,p,c,s,u;if(!e.stopped){if(c=e.el.style,null==e.start)if(e.el.__ceriAnimation=e,e._percent)e.start=n-e._percent*e.duration;else{if(e.start=n,e.preserve){for(s={},l=e.preserve,(i=0,d=l.length);i<d;i++)a=l[i],s[a]=c[a];e.preserve=s}if(e.init)for(a in p=e.init,p)u=p[a],c[a]=u}return o=(n-e.start)/e.duration,t=1<o?1:0<o?e.easing(o):0,r(c,e.style,t),1===t?('function'==typeof e.stop&&e.stop({reset:!0}),'function'==typeof e.done?e.done(e):void 0):requestAnimationFrame(e.next)}}},e.exports={_name:'animate',_v:1,methods:{$cancelLastandAnimate:function(e){var n,t;return t=this.$animations,0<(n=t.length)&&(e=this.$cancelAnimation(t[n-1],e)),this.$animate(e)},$cancelAnimation:function(e,n){return null==n&&(n={}),null==(null==e?void 0:e.stop)?n:e.stop(n)},$animate:function(e){var n,t,i,a,o,l,p,c;if(null!=e.done&&(e.done=e.done.bind(this)),null==e.el&&(e.el=this),!1===e.animate){if(p=[],o=e.el.style,e.init)for(t in i=e.init,i)c=i[t],o[t]=c;return r(o,e.style,1,e.preserve),'function'==typeof e.done?e.done():void 0}if(e.style){if(n=s(e),null==e.duration&&(e.duration=300),null==e.easing&&(e.easing=this.$ease('in','linear')),e.next=requestAnimationFrame.bind(null,n),e._percent&&null!=e._preserve&&(e.preserve=e._preserve),null!=e._style)for(t in a=e._style,a)c=a[t],l=c.slice(0).reverse(),3===l.length&&l.push(l.shift()),e.style[t]=l;e.stop=function(n){return function(t){var i;return e.stopped||(e.stopped=!0,n.$animations.splice(n.$animations.indexOf(e),1),e.el.__ceriAnimation=null,null!=t&&(t.reset?d(e.el.style,e.preserve):(i=Math.min(1,(performance.now()-e.start)/e.duration),t._preserve=e.preserve,t._percent=1-i,t._value=e.easing(i),t._style=e.style))),t}}(this),e.toEnd=function(){if(!e.stopped)return e.start=-1e9},e.delay?setTimeout(e.next,e.delay):n(performance.now()),this.$animations.push(e)}return e},$ease:function(e,n,t){var a;return a=i[n](t),'in'===e?a:'inOut'===e?function(e){return 0.5>e?0.5*a(2*e):0.5+(1-a(1-2*(e-0.5)))}:'out'===e?function(e){return 1-a(1-e)}:void 0}},data:function(){return{$animations:[]}},destroy:function(){var e,n,t,i,a;for(i=this.$animations,a=[],(n=0,t=i.length);n<t;n++)e=i[n],a.push(e.stop());return a}}},function(e,n,t){var i,a,d,s,o=[].slice;s=t(0),d=s.isString,a=s.clone,i=s.camelize,e.exports={_name:'directives',_v:1,_prio:800,_mergers:[t(1).concat({source:'directives'}),t(1).copy({source:'_attrLookup'})],mixins:[t(8),t(3),t(4),t(2)],_attrLookup:{text:{":":function(e){return this.$computed.orWatch(e.value,function(n){return e.el.innerText=n})},"#":function(e){return e.el.textContent=e.value}},ref:{"#":function(e){return this[e.value]=e.el}}},methods:{$directive:function(e){var n,t;if(this.$parseElement.byObj(e),null!=(t=this._attrLookup[e.name])&&null!=t[e.type])return t[e.type].call(this,e);switch(e.type){case'$':return n=function(e,n,t){return e[n]=t}.bind(this,e.el,i(e.name)),this.$computed.orWatch(e.value,[n]);case':':return n=this.$setAttribute.bind(this,e.el,e.name),this.$computed.orWatch(e.value,[n]);case'@':if(null==e.cbs&&(e.cbs=[e.value]),null==e.event&&(e.event=e.name),e.event&&0<e.cbs.length)return this.$on(e);break;case'~':return null==this[e.name]&&(this[e.name]=function(t){return function(){var a,i,d,s;for(d=t[e.name]._cbs,s=[],(a=0,i=d.length);a<i;a++)n=d[a],s.push(n.apply(null,arguments));return s}}(this)),n=e.event?function(n,t,i){return n.dispatchEvent(t,i)}.bind(null,e.el,e.value):function(){var e,n,t;return n=arguments[0],t=arguments[1],e=3<=arguments.length?o.call(arguments,2):[],n[t].apply(null,e)}.bind(null,e.el,e.value),this[e.name]._cbs.push(n);default:return this.$setAttribute(e.el,e.name,e.value);}}},connectedCallback:function(){var e,n,t,i,d,s,o,r;if(this._isFirstConnect){for(s=this.directives,o=[],(n=0,i=s.length);n<i;n++)e=s[n],o.push(function(){var n;for(t in n=[],e)r=e[t],d=a(r),null==d.el&&(d.el=t),null==d.activate?n.push(this.$directive(d)):(d.activated=!1,n.push(this.$computed.orWatch(d.activate,function(e){if(e&&!d.activated)return this.$directive(d),d.activated=!0})));return n}.call(this));return o}}}},function(e,n,t){var i,a,d;d=t(0),a=d.noop,i=d.isString,e.exports={_name:'parseActive',_prio:1e4,_v:1,mixins:[t(2)],methods:{$parseActive:function(e){var n,t,i,d;return d=!1,i=a,n=function(n){return function(){var t;if(d)return i(),t=e.activate.call(n),e.wasActivated=!0,i=function(){var d;return t.call(n),e.destroy&&(d=n.__activeToDestroy.indexOf(t),-1<d&&n.__activeToDestroy.splice(d,1)),t=a},e.destroy&&n.__activeToDestroy.push(i),i}}(this),t=function(t){return function(){return d=!0,e.delay?t.$nextTick(n):n()}}(this),e.active?this.$computed.orWatch(e.active,function(e,n){if(e!==n)return e?t():(d=!1,i())}):t()}},connectedCallback:function(){if(this._isFirstConnect)return this.__activeToDestroy=[]},destroy:function(){var e,n,t,i,a;for(i=this.__activeToDestroy,a=[],(n=0,t=i.length);n<t;n++)e=i[n],a.push(e());return a}}},function(e,n,t){e.exports=t(14)},function(e,n,t){window.ceri||(window.ceri={}),window.ceri['side-nav']=t(15)},function(e,n,t){(function(){var n;n=t(16),e.exports=n({mixins:[t(19),t(9),t(10),t(11),t(20),t(22),t(24),t(26)],props:{opacity:{type:Number,default:0.5},right:{type:Boolean,cbs:['setParentMargin',function(e){return e?(this.style.right=0,this.style.left=null):(this.style.right=null,this.style.left=null)}]},target:{type:String},fixed:{type:Boolean,cbs:'processFixed',delay:!0},fixedScreenSize:{type:Number,default:992,cbs:'processFixed'},zIndex:{type:Number,default:1e3,cbs:function(e,n){var t;return t=this.style,t.zIndex&&t.zIndex!==n?void 0:t.zIndex=e}}},data:function(){return{isFixed:null,keepOpen:!0,dhZIndex:null}},overlay:{zIndex:'zIndex',active:'dismissable',animate:'toggleAnimate',delay:!0,onClose:function(){return this.style.zIndex=this.zIndex,this.dhZIndex=this.zIndex-1,this.hide.call(this)},onOpen:function(e){return this.style.zIndex=e+2,this.dhZIndex=e+1}},draghandle:{__parentElement:{active:function(){return!this.isFixed},initStyle:{position:'absolute',top:0,bottom:0},style:function(){return{zIndex:this.dhZIndex,width:this.open?null:'20px',left:!this.right||this.open?0:null,right:this.right||this.open?0:null}},onClick:function(){if(this.open)return this.hide()},onFirstMove:function(e){var n;return this.open||(this.style.transform='translateX('+100*this.fac+'%)',this._attach()),e.wasOpened=this.open,n=this.offsetWidth*this.fac,this.right?(e.shouldShow=function(e){return 0>e},e.shouldHide=function(e){return e>n}):(e.shouldShow=function(e){return 0<e},e.shouldHide=function(e){return e<n})},onMove:function(e,n){var t;return t=2*e.x+this.offsetWidth*this.fac*!n.wasOpened,n.shouldShow(t)?(this._setOpen(),this.style.transform=null,n.move=0):n.shouldHide(t)?(this._setClose(),this.style.transform='translateX('+100*this.fac+'%)',n.move=-this.offsetWidth):(this.style.transform='translateX('+t+'px)',n.move=t)},onEnd:function(e,n){if(this.open&&0>n.move)return this.animation=this.enter({_percent:1-n.move/this.offsetWidth*this.fac});return!this.open&&n.move>-this.offsetWidth?this.animation=this.leave({_percent:n.move/this.offsetWidth*this.fac,done:this._detach}):void 0}}},events:{click:{this:{active:'dismissable',notPrevented:!0,prevent:!0,cbs:['toggle']},_target:{active:function(){return null!=this._target&&!this.isFixed},notPrevented:!0,prevent:!0,cbs:['toggle'],destroy:!0}},resize:{window:{el:window,active:'fixed',throttled:!0,destroy:!0,cbs:'processFixed'}}},directives:{_target:{type:'#',name:'if',activate:'_target',value:'isFixed',not:!0}},initStyle:{position:'fixed',height:'100%'},computedStyle:{this:function(){return{willChange:this.isFixed?null:'transform'}}},computed:{_target:function(){return this.target?document.querySelector(this.target):null},fac:function(){return 2*this.right-1},dismissable:function(){return this.openingOrOpen&&!this.isFixed}},methods:{makeFixed:function(e){if(e!==this.isFixed)return this.isFixed=e,this.$emit({name:'fixed',detail:e})},setParentMargin:function(){var e,n,t,i,a,d;if(this.parentElement){for(d=this.isFixed?this.offsetWidth+'px':null,i=this.parentElement.children,a=[],(n=0,t=i.length);n<t;n++)e=i[n],e===this?a.push(void 0):a.push(this.$style.set(e,{marginLeft:this.right?null:d,marginRight:this.right?d:null}));return a}},processFixed:function(){var e;if(this.fixed){if(e=this.isFixed,this.makeFixed(window.innerWidth>this.fixedScreenSize),e!==this.isFixed)return this.wasOpened=this.open,this.isFixed?(this.show(!1),this.setParentMargin()):(this.setParentMargin(),this.hide(!1));}else if(this.makeFixed(!1),this.setParentMargin(),!this.openingOrOpen||!this.wasOpened)return this.hide(!1)},enter:function(e){return e.style={translateX:[100*this.fac,0,'%']},this.$animate(e)},leave:function(e){return e.style={translateX:[0,100*this.fac,'%']},this.$animate(e)},beforeToggle:function(){return!this.isFixed},onHide:function(){return this.wasOpened=!1}}})}).call(this)},function(e,n,t){var i;i=t(17),e.exports=function(n,t){var a,d,e,s;null==t&&(t=n,n=HTMLElement);try{if('define'!==window.customElements.define.name)throw new Error('polyfill detected - fallback to ES5 class');a=class extends n{constructor(){return super(),this._crCb&&this._crCb.forEach((e)=>{e.call(this)}),this}}}catch(e){d=e,a=t.constructor=function(e){var t,a,i,d;if(e=n.call(e||this),e._crCb)for(d=e._crCb,a=0,i=d.length;a<i;a++)t=d[a],t.call(e);return e}}for(e in a.prototype=Object.create(n.prototype),t)s=t[e],a.prototype[e]=s;return i(a)}},function(e,n,t){var i,a,d,s,r,o;o=t(0),s=o.isObject,d=o.isFunction,a=o.isArray,r=o.rebind,i=o.getID,e.exports=function(e){var n,a,d,s,o;return d=e.prototype,d._isCeriProto=!0,d.$nextTick=t(18),d._inherit=function(){var e,n,t;return e=Object.create(this),r(e),e.__parents=n=(null==(t=this.__parents)?void 0:t.slice())||[],n.push(this),e},null!=d.mixins&&(s=function(e){var n,t,i,a,d,o;for(n=[],t=0,a=e.length;t<a;t++)o=e[t],null!=o.mixins&&(n=s(o.mixins).concat(n));for(i=0,d=n.length;i<d;i++)o=n[i],~e.indexOf(o)||e.push(o);return e},s(d.mixins),n=t(1),n.apply(e,d.mixins,n.concat({source:'_mergers',target:'mergers'})),o=d.mergers,delete d.mergers,o.push(n.copy({source:'methods',target:!1})),o.push(n.concat({source:'_rebind'})),a=function(e,t){var i;return i=n.concat({source:e,target:t,last:!0}),i.finisher=function(n){return n.prototype[e]=function(){var e,n,i,a,d;for(a=this[t],d=[],(n=0,i=a.length);n<i;n++)e=a[n],d.push(e.apply(this,arguments));return d}},o.push(i)},a('disconnectedCallback','_dCb'),a('attributeChangedCallback','_acCb'),a('adoptedCallback','_aCb'),o.push(n.concat({source:'connectedCallback',target:'_cCb',last:!0,finisher:function(e){return e.prototype.connectedCallback=function(){var e,n,t,i;for(i=this._cCb,n=0,t=i.length;n<t;n++)e=i[n],e.apply(this,arguments);return this._isFirstConnect=!1}}})),a('destroy','_deCb'),o.push({source:'created',setup:function(e){return e._crCb=[function(){return this._isCeri=!0,this._isFirstConnect=!0,this._ceriID=i(),r(this)}],{iterate:function(n){return e._crCb.push(n)},end:function(){if(null!=e.created)return e._crCb.push(e.created)}}}}),n.apply(e,d.mixins,o),'function'==typeof d._registerTests&&d._registerTests(e)),e}},function(e){var n,t,i,a,d;'undefined'!=typeof MessageChannel&&null!==MessageChannel?(i=new MessageChannel,d={},a=0,n=function(e){return d[++a]=e,a},t=function(e){return d[e](),delete d[e]},i.port1.onmessage=function(e){var n;return n=e.data,t(n)},e.exports=function(e){return i.port2.postMessage(n(e.bind(this)))}):e.exports=function(e){return setTimeout(e.bind(this),0)}},function(e,n,t){var i,a,d,s,o;o=t(0),i=o.arrayize,s=o.hyphenate,a=o.camelize,d=o.clone,e.exports={_name:'props',_v:1,_prio:900,_mergers:t(1).copy({source:'props',finisher:function(e){var n,t,a,d,o;for(a in n=i(e.prototype.observedAttributes),d=e.prototype.props,d)o=d[a],t=s(a),~n.indexOf(t)||n.push(t);return Object.defineProperty(e,'observedAttributes',{value:n})}}),mixins:[t(6),t(8)],attributeChangedCallback:function(e,n,t){var i,d,s;if((i=a(e),null!=(d=this.props[i]))&&(s=d.type===Number&&null!=t?+t:d.type===Boolean?null!=t:t,null!=d.name&&(i=d.name),this[i]!==s))return this[i]=s},created:function(){var e,n,t,a,o;for(e in null==this.props&&(this.props={}),t=this.props,a=[],t)o=t[e],null==o.type?(o={type:o,name:e},this.props[e]=o):null==o.name&&(o.name=e),o.type===Boolean&&null==o['default']&&(o['default']=!1),n=d(o),n.parent=this,n.value=this[n.name],n.cbs=i(n.cbs).concat([this.$setAttribute.bind(this,this,s(n.name))]),null==n.path&&(n.path=n.name),null==n.initial&&(n.initial=!1),a.push(this.$watch.path(n));return a},connectedCallback:function(){if(this._isFirstConnect)return this.$nextTick(function(){var e,n,t,i,a;for(e in t=this.props,i=[],t)a=t[e],null==a['default']?i.push(void 0):(n=a.name?a.name:e,i.push(null==this[n]?this[n]=a['default']:this[n]));return i})}}},function(e,n,t){e.exports={_name:'open',_v:1,mixins:[t(2),t(4),t(21)],events:{popstate:{active:function(){return this.onBody&&this.openingOrOpen},cbs:function(){return this.hide(!1)}},click:{el:document.documentElement,outside:!0,cbs:'hide',active:function(){return this.openingOrOpen&&!this.keepOpen},delay:!0,destroy:!0},keyup:{el:document.documentElement,notPrevented:!0,destroy:!0,keyCode:[27],active:function(){return this.openingOrOpen&&!this.keepOpen},cbs:'hide'}},props:{open:{type:Boolean},keepOpen:{type:Boolean}},data:function(){return{isOpen:null,opening:!1,closing:!1,openingOrOpen:!1,toggleAnimate:!0}},methods:{_attach:function(){if(!this.parentElement)if(this.onBody){if(this.parentElement!==document.body)return document.body.appendChild(this);}else if(this.parentElement!==this.__parentElement)return this.__parentElement.replaceChild(this,this.__placeholder)},_detach:function(){if(this.parentElement)if(this.onBody){if(this.parentElement===document.body)return this.remove();}else if(this.parentElement===this.__parentElement)return this.__parentElement.replaceChild(this.__placeholder,this)},_setOpen:function(){return this.closing=!1,this.opening=!1,this.isOpen=!0,this.open=!0,this.openingOrOpen=!0,this.$emit({name:'toggle',detail:!0}),'function'==typeof this.onOpen?this.onOpen():void 0},_setClose:function(){return this.closing=!1,this.opening=!1,this.isOpen=!1,this.open=!1,this.openingOrOpen=!1,this.$emit({name:'toggle',detail:!1}),'function'==typeof this.onClose?this.onClose():void 0},show:function(e){if(!this.openingOrOpen)return this._attach(),this.toggleAnimate=e=!1!==e,this.opening=!0,this.openingOrOpen=!0,this.closing=!1,'function'==typeof this.onShow&&this.onShow(e),this.$animate&&null!=this.enter?this.animation=this.enter(this.$cancelAnimation(this.animation,{animate:e,done:this._setOpen})):this.setOpen(this)},hide:function(e){var n;if(!this.closing&&this.openingOrOpen)return this.toggleAnimate=e=!1!==e,this.closing=!0,this.openingOrOpen=!1,'function'==typeof this.onHide&&this.onHide(e),n=function(){return this._setClose(),this._detach()},this.$animate&&null!=this.leave?this.animation=this.leave(this.$cancelAnimation(this.animation,{animate:e,done:n})):n.call(this)},toggle:function(e){return null==this.beforeToggle||this.beforeToggle(e)?this.isOpen?this.hide(e):this.show(e):void 0}},watch:{open:function(e){if(null==this.isOpen)return e?this.toggle(!1):this.isOpen=e;return e===this.isOpen?void 0:this.toggle()}},connectedCallback:function(){if(this._isFirstConnect)return this.__parentElement=this.parentElement,this.__placeholder=document.createComment('#open'),this.__parentElement.replaceChild(this.__placeholder,this)},disconnectedCallback:function(){if(this.isOpen)return this.toggle(!1)}}},function(e,n,t){var a;a=[],window.onpopstate=function(n){var e,t,i,d;for(d=[],e=0,t=a.length;e<t;e++)i=a[e],d.push(i.cb.call(i['this'],window,n));return d},e.exports={_name:'@popstate',_v:1,mixins:[t(4)],_evLookup:{popstate:function(e){return e['this']=this,e.activate=function(){return a.push(e),function(){return a.splice(a.indexOf(e),1)}},e}}}},function(e,n,t){var i,a,d,r,l,p,c,o,u,h,f,m,s;f=t(0),u=f.noop,o=f.isString,a=f.clone,h=document.createElement('div'),m=h.style,m.position='fixed',m.top='-10px',m.left=0,m.right=0,m.height='120vh',m.willChange='opacity',s=[],d=function(n){var e;if(!n.defaultPrevented&&('click'===n.type||27===n.which)&&null!=(e=c())&&!e.keepOpen)return e.close(),n.preventDefault()},h.addEventListener('click',d),c=function(e){return null==e&&(e=1),s[s.length-e]},i=function(){return document.body.appendChild(h),document.addEventListener('keyup',d)},l=function(){return document.body.removeChild(h),document.removeEventListener('keyup',d)},r=document.documentElement,p=function(e,n,t){var a,d,s,o;return null==n?(n={opacity:0,done:l,allowScroll:!0},e.open&&i()):null!=(d=n.animation)&&'function'==typeof d.stop&&d.stop(),e.open?(a=e.durationIn||300,s=n,o=e):(a=e.durationOut||200,s=e,o=n),m=r.style,o.allowScroll?(m.overflow=null,m.marginRight=null):(m.marginRight=t().width-r.clientWidth+'px',m.overflow='hidden'),o.animation={animate:e.animate,el:h,style:{opacity:[s.opacity,o.opacity]},init:{backgroundColor:o.color||'black',zIndex:o.zIndex},duration:a,done:o.done},o.animation},e.exports={mixins:[t(10),t(23),t(5),t(12)],methods:{$overlay:function(e){return null==e&&(e=a(this.overlay)||{}),e.activate=function(){var n,t,i,a,d,o;for(n in i={zIndex:995,opacity:0.5,keepOpen:!1,animate:!0},i)d=i[n],e[n]=null==(o=e[n])?d:this.$path.resolveValue(o);return e.open=!0,t=c(),s.push(e),e.close=function(n){return function(){var t,i;if(e.close=u,!!e.open)return e.open=!1,null!=(i=n.$path.resolveValue(e.onClose))&&i.call(n),t=s.indexOf(e),t===s.length-1?n.$animate(p(s.pop(),c(),n.getViewportSize)):s.splice(t,1)}}(this),e.cancel=function(){var n;return null==(n=e.animation)?void 0:'function'==typeof n.toEnd?n.toEnd():void 0},null!=t&&(e.zIndex=Math.max(e.zIndex,t.zIndex+5)),null!=(a=this.$path.resolveValue(e.onOpen))&&a.call(this,e.zIndex),this.$animate(p(e,t,this.getViewportSize)),e.close},this.$parseActive(e)}},connectedCallback:function(){if(this._isFirstConnect&&this.overlay)return this.$overlay(a(this.overlay))}}},function(e){e.exports={methods:{getViewportSize:function(){var n,t;return null==window.innerWidth?(n='client',t=document.documentElement||document.body):(t=window,n='inner'),{width:t[n+'Width'],height:t[n+'Height']}}}}},function(e,n,t){e.exports={_name:'#if',_v:1,mixins:[t(11),t(25)],_attrLookup:{if:{"#":function(e){var n,t,i;return t=document.createComment('#if'),i=e.el.parentElement,n=function(n){return function(){return n.$if({value:e.value,anchor:t,els:[e.el],not:e.not})}}(this),i?(i.insertBefore(t,e.el.nextSibling),n()):this.$structure?this.$structure.beforeInsert.push(function(i){var a,d;return a=i.indexOf(e.el),-1<a?(d=this.$path.getValue(e.value),d?i.splice(a,0,t):i[a]=t):this.$structure.afterInsert.push(function(){return e.el.parentElement.insertBefore(t,e.el.nextSibling)}),this.$structure.afterInsert.push(n)}):(!1,null)}}}}},function(e,n,t){var i;i=t(0).isFunction,e.exports={_name:'if',_v:1,mixins:['parseFunction'],methods:{$if:function(e){var n,t,a,d,s,o;return o=i(e.els)?e.els:e.template,d=e.elseTemplate,t=o?null:e.els,n=function(n){var t,a,i,d,s;if(null!=n){for(d=e.parent||e.anchor.parentElement,s=[],(a=0,i=n.length);a<i;a++)t=n[a],t.parentElement===d?s.push(void 0):s.push(d.insertBefore(t,e.anchor));return s}},s=function(e){var n,t,i,a;if(null!=e){for(a=[],t=0,i=e.length;t<i;t++)n=e[t],a.push(n.remove());return a}},a=d?null:e['else'],this.$computed.orWatch(e.value,function(r){var l;if(l=!r!=!e.not,l){if(null==o?t&&n(t):(this.$parseFunction(o,function(e){var a;if(a=t,t=null!=e&&i(e)?e.call(this):[],!0===l)return n(t),s(a)}),o=null),a)return s(a);}else if(null==d?a&&n(a):(this.$parseFunction(d,function(e){var t;if(t=a,a=null!=e&&i(e)?e.call(this):[],!1===l)return n(a),s(t)}),d=null),t)return s(t)})}}}},function(e,n,t){var i,a,d,s,r,o,l,p,c;p=t(0),o=p.isString,i=p.clone,r=function(e,n,t,i,a){return{el:e,event:n,stop:i,prevent:!i,notPrevented:!0,cbs:[a],throttle:t}},a=document.documentElement,c=function(n,t,i,s){var e,o;return null!=s.changedTouches&&(s=s.changedTouches[0],e=!0),n.start={x:s.clientX,y:s.clientY},n.firstMove=!0,null!=(o=n.onStart)&&o.call(this,n),n._moveRemover=this.$on(r(a,t+'move',!0,e,l.bind(this,n))),this.$once(r(a,t+i,!1,e,d.bind(this,n)))},s=function(n,t){return{x:t.clientX-n.x,y:t.clientY-n.y,start:n}},l=function(n,t){var e,i;return null!=t.changedTouches&&(t=t.changedTouches[0]),n.secondMove=n.firstMove,n.firstMove&&null!=(e=n.onFirstMove)&&e.call(this,n,t),null!=(i=n.onMove)&&i.call(this,s(n.start,t),n,t),n.firstMove=!1},d=function(n,t){var e,i,a;return('function'==typeof n._moveRemover&&n._moveRemover(),n._moveRemover=null,n.firstMove)?null==(e=n.onClick)?void 0:e.call(this,n):(null!=(i=n.onEnd)&&i.call(this,s(n.start,t),n),n.secondMove)?null==(a=n.onClick)?void 0:a.call(this,n):void 0},e.exports={_name:'draghandle',_v:1,mixins:[t(4),t(3),t(9)],methods:{$draghandle:function(e){return null==e.handle&&(e.handle=document.createElement('div')),e.activate=function(){var n;return n=this.$parseElement.byString(e.el),e.wasActivated||(null!=e.initStyle&&this.$style.set(e.handle,e.initStyle),null!=e.style&&this.$computed.orWatch(e.style,this.$style.set.bind(this,e.handle)),this.$on(r(e.handle,'touchstart',!1,!0,c.bind(this,e,'touch','end'))),this.$on(r(e.handle,'mousedown',!1,!1,c.bind(this,e,'mouse','up'))),this.$path.resolveMultiple(e,['onStart','onFirstMove','onMove','onEnd','onClick'])),n.appendChild(e.handle),function(){return n.removeChild(e.handle)}},this.$parseActive(e)}},connectedCallback:function(){var e,n,t,a;if(this._isFirstConnect&&this.draghandle){for(e in n=this.draghandle,t=[],n)a=n[e],a=i(a),null==a.el&&(a.el=e),t.push(this.$draghandle(a));return t}}}}]);