1
0
Fork 0
mirror of synced 2024-05-17 10:53:15 +12:00
budibase/packages/server/builder/bundle.js
2019-07-15 06:59:46 +01:00

3 lines
749 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(){"use strict";function e(){}function t(e,t){for(const n in t)e[n]=t[n];return e}function n(e){return e()}function r(){return Object.create(null)}function i(e){e.forEach(n)}function o(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(e,t,n){const r=t.subscribe(n);e.$$.on_destroy.push(r.unsubscribe?()=>r.unsubscribe():r)}function l(e,t,n){if(e){const r=c(e,t,n);return e[0](r)}}function c(e,n,r){return e[1]?t({},t(n.$$scope.ctx,e[1](r?r(n):{}))):n.$$scope.ctx}function u(e,n,r,i){return e[1]?t({},t(n.$$scope.changed||{},e[1](i?i(r):{}))):n.$$scope.changed||{}}function h(e,t){e.appendChild(t)}function f(e,t,n){e.insertBefore(t,n||null)}function d(e){e.parentNode.removeChild(e)}function p(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function g(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function v(){return m(" ")}function y(){return m("")}function x(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function w(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function b(e,t){t=""+t,e.data!==t&&(e.data=t)}function _(e,t,n){e.style.setProperty(t,n)}function $(e,t){for(let n=0;n<e.options.length;n+=1){const r=e.options[n];if(r.__value===t)return void(r.selected=!0)}}function k(e,t){for(let n=0;n<e.options.length;n+=1){const r=e.options[n];r.selected=~t.indexOf(r.__value)}}let A;function E(e){A=e}function j(e){(function(){if(!A)throw new Error("Function called outside component initialization");return A})().$$.on_mount.push(e)}function I(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(e=>e(t))}const T=[],S=[],M=[],C=[],O=Promise.resolve();let D=!1;function N(e){M.push(e)}function P(e){C.push(e)}function R(){const e=new Set;do{for(;T.length;){const e=T.shift();E(e),L(e.$$)}for(;S.length;)S.pop()();for(let t=0;t<M.length;t+=1){const n=M[t];e.has(n)||(n(),e.add(n))}M.length=0}while(T.length);for(;C.length;)C.pop()();D=!1}function L(e){e.fragment&&(e.update(e.dirty),i(e.before_update),e.fragment.p(e.dirty,e.ctx),e.dirty=null,e.after_update.forEach(N))}const F=new Set;let z;function B(){z={r:0,c:[],p:z}}function H(){z.r||i(z.c),z=z.p}function V(e,t){e&&e.i&&(F.delete(e),e.i(t))}function W(e,t,n,r){if(e&&e.o){if(F.has(e))return;F.add(e),z.c.push(()=>{F.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}}function U(e,n){const r=n.token={};function i(e,i,o,a){if(n.token!==r)return;n.resolved=o&&{[o]:a};const s=t(t({},n.ctx),n.resolved),l=e&&(n.current=e)(s);n.block&&(n.blocks?n.blocks.forEach((e,t)=>{t!==i&&e&&(B(),W(e,1,1,()=>{n.blocks[t]=null}),H())}):n.block.d(1),l.c(),V(l,1),l.m(n.mount(),n.anchor),R()),n.block=l,n.blocks&&(n.blocks[i]=l)}if((o=e)&&"object"==typeof o&&"function"==typeof o.then){if(e.then(e=>{i(n.then,1,n.value,e)},e=>{i(n.catch,2,n.error,e)}),n.current!==n.pending)return i(n.pending,0),!0}else{if(n.current!==n.then)return i(n.then,1,n.value,e),!0;n.resolved={[n.value]:e}}var o}function Y(e,t,n){-1!==e.$$.props.indexOf(t)&&(e.$$.bound[t]=n,n(e.$$.ctx[t]))}function q(e,t,r){const{fragment:a,on_mount:s,on_destroy:l,after_update:c}=e.$$;a.m(t,r),N(()=>{const t=s.map(n).filter(o);l?l.push(...t):i(t),e.$$.on_mount=[]}),c.forEach(N)}function Q(e,t){e.$$.fragment&&(i(e.$$.on_destroy),e.$$.fragment.d(t),e.$$.on_destroy=e.$$.fragment=null,e.$$.ctx={})}function K(e,t){e.$$.dirty||(T.push(e),D||(D=!0,O.then(R)),e.$$.dirty=r()),e.$$.dirty[t]=!0}function J(t,n,o,a,s,l){const c=A;E(t);const u=n.props||{},h=t.$$={fragment:null,ctx:null,props:l,update:e,not_equal:s,bound:r(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:r(),dirty:null};let f=!1;var d;h.ctx=o?o(t,u,(e,n)=>{h.ctx&&s(h.ctx[e],h.ctx[e]=n)&&(h.bound[e]&&h.bound[e](n),f&&K(t,e))}):u,h.update(),f=!0,i(h.before_update),h.fragment=a(h.ctx),n.target&&(n.hydrate?h.fragment.l((d=n.target,Array.from(d.childNodes))):h.fragment.c(),n.intro&&V(t.$$.fragment),q(t,n.target,n.anchor),R()),E(c)}class G{$destroy(){Q(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(){}}function Z(e){var t,n,r,i;const o=e.$$slots.default,a=l(o,e,null);return{c(){t=g("button"),a&&a.c(),w(t,"class",n=e.color+" "+e.className+" "+e.borderClass+" "+(e.grouped?"grouped":"")+" svelte-7rfkdx"),w(t,"style",e.style),i=x(t,"click",e.click_handler)},l(e){a&&a.l(button_nodes)},m(e,n){f(e,t,n),a&&a.m(t,null),r=!0},p(e,i){a&&a.p&&e.$$scope&&a.p(u(o,i,e,null),c(o,i,null)),(!r||e.color||e.className||e.borderClass||e.grouped)&&n!==(n=i.color+" "+i.className+" "+i.borderClass+" "+(i.grouped?"grouped":"")+" svelte-7rfkdx")&&w(t,"class",n),r&&!e.style||w(t,"style",i.style)},i(e){r||(V(a,e),r=!0)},o(e){W(a,e),r=!1},d(e){e&&d(t),a&&a.d(e),i()}}}function X(e,t,n){let r,{color:i="primary",className:o="",style:a="",groupPosition:s="",grouped:l=!1}=t,{$$slots:c={},$$scope:u}=t;return e.$set=(e=>{"color"in e&&n("color",i=e.color),"className"in e&&n("className",o=e.className),"style"in e&&n("style",a=e.style),"groupPosition"in e&&n("groupPosition",s=e.groupPosition),"grouped"in e&&n("grouped",l=e.grouped),"$$scope"in e&&n("$$scope",u=e.$$scope)}),e.$$.update=((e={grouped:1})=>{e.grouped&&n("borderClass",r=l?"":"border-normal")}),{color:i,className:o,style:a,groupPosition:s,grouped:l,borderClass:r,click_handler:function(t){I(e,t)},$$slots:c,$$scope:u}}class ee extends G{constructor(e){super(),J(this,e,X,Z,a,["color","className","style","groupPosition","grouped"])}}var te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ne(e,t){return e(t={exports:{}},t.exports),t.exports}var re=ne(function(e,t){(function(){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function i(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function o(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function a(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function s(e,t){return!(null==e||!e.length)&&-1<m(e,t,0)}function l(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function c(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function u(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function h(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function f(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function d(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function p(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function g(e,t,n,r){var i=e.length;for(n+=r?1:-1;r?n--:++n<i;)if(t(e[n],n,e))return n;return-1}function m(e,t,n){if(t==t)e:{--n;for(var r=e.length;++n<r;)if(e[n]===t){e=n;break e}e=-1}else e=g(e,y,n);return e}function v(e,t,n,r){--n;for(var i=e.length;++n<i;)if(r(e[n],t))return n;return-1}function y(e){return e!=e}function x(e,t){var n=null==e?0:e.length;return n?$(e,t)/n:F}function w(e){return function(t){return null==t?R:t[e]}}function b(e){return function(t){return null==e?R:e[t]}}function _(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function $(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==R&&(n=n===R?o:n+o)}return n}function k(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function A(e){return function(t){return e(t)}}function E(e,t){return c(t,function(t){return e[t]})}function j(e,t){return e.has(t)}function I(e,t){for(var n=-1,r=e.length;++n<r&&-1<m(t,e[n],0););return n}function T(e,t){for(var n=e.length;n--&&-1<m(t,e[n],0););return n}function S(e){return"\\"+Ce[e]}function M(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function C(e,t){return function(n){return e(t(n))}}function O(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&"__lodash_placeholder__"!==a||(e[n]="__lodash_placeholder__",o[i++]=n)}return o}function D(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function N(e){if(je.test(e)){for(var t=Ae.lastIndex=0;Ae.test(e);)++t;e=t}else e=Ke(e);return e}function P(e){return je.test(e)?e.match(Ae)||[]:e.split("")}var R,L=1/0,F=NaN,z=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],B=/\b__p\+='';/g,H=/\b(__p\+=)''\+/g,V=/(__e\(.*?\)|\b__t\))\+'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,Y=RegExp(W.source),q=RegExp(U.source),Q=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(ee.source),re=/^\s+|\s+$/g,ie=/^\s+/,oe=/\s+$/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,we=/['\n\r\u2028\u2029\\]/g,be="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",_e="(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])"+be,$e=RegExp("[']","g"),ke=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),Ae=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])"+be,"g"),Ee=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['](?:D|LL|M|RE|S|T|VE))?|\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",_e].join("|"),"g"),je=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Te="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseInt setTimeout".split(" "),Se={};Se["[object Float32Array]"]=Se["[object Float64Array]"]=Se["[object Int8Array]"]=Se["[object Int16Array]"]=Se["[object Int32Array]"]=Se["[object Uint8Array]"]=Se["[object Uint8ClampedArray]"]=Se["[object Uint16Array]"]=Se["[object Uint32Array]"]=!0,Se["[object Arguments]"]=Se["[object Array]"]=Se["[object ArrayBuffer]"]=Se["[object Boolean]"]=Se["[object DataView]"]=Se["[object Date]"]=Se["[object Error]"]=Se["[object Function]"]=Se["[object Map]"]=Se["[object Number]"]=Se["[object Object]"]=Se["[object RegExp]"]=Se["[object Set]"]=Se["[object String]"]=Se["[object WeakMap]"]=!1;var Me={};Me["[object Arguments]"]=Me["[object Array]"]=Me["[object ArrayBuffer]"]=Me["[object DataView]"]=Me["[object Boolean]"]=Me["[object Date]"]=Me["[object Float32Array]"]=Me["[object Float64Array]"]=Me["[object Int8Array]"]=Me["[object Int16Array]"]=Me["[object Int32Array]"]=Me["[object Map]"]=Me["[object Number]"]=Me["[object Object]"]=Me["[object RegExp]"]=Me["[object Set]"]=Me["[object String]"]=Me["[object Symbol]"]=Me["[object Uint8Array]"]=Me["[object Uint8ClampedArray]"]=Me["[object Uint16Array]"]=Me["[object Uint32Array]"]=!0,Me["[object Error]"]=Me["[object Function]"]=Me["[object WeakMap]"]=!1;var Ce={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Oe=parseFloat,De=parseInt,Ne="object"==typeof te&&te&&te.Object===Object&&te,Pe="object"==typeof self&&self&&self.Object===Object&&self,Re=Ne||Pe||Function("return this")(),Le=t&&!t.nodeType&&t,Fe=Le&&e&&!e.nodeType&&e,ze=Fe&&Fe.exports===Le,Be=ze&&Ne.process,He=function(){try{var e=Fe&&Fe.f&&Fe.f("util").types;return e||Be&&Be.binding&&Be.binding("util")}catch(e){}}(),Ve=He&&He.isArrayBuffer,We=He&&He.isDate,Ue=He&&He.isMap,Ye=He&&He.isRegExp,qe=He&&He.isSet,Qe=He&&He.isTypedArray,Ke=w("length"),Je=b({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ge=b({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),Ze=b({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Xe=function e(t){function b(e){if(Vr(e)&&!Ma(e)&&!(e instanceof _e)){if(e instanceof be)return e;if(Mi.call(e,"__wrapped__"))return gr(e)}return new be(e)}function te(){}function be(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=R}function _e(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ae(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ne;++t<n;)this.add(e[t])}function Le(e){this.size=(this.__data__=new Ce(e)).size}function Fe(e,t){var n,r=Ma(e),i=!r&&Sa(e),o=!r&&!i&&Oa(e),a=!r&&!i&&!o&&La(e),s=(i=(r=r||i||o||a)?k(e.length,Ai):[]).length;for(n in e)!t&&!Mi.call(e,n)||r&&("length"==n||o&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||tr(n,s))||i.push(n);return i}function Be(e){var t=e.length;return t?e[Bt(0,t-1)]:R}function He(e,t,n){(n===R||Nr(e[t],n))&&(n!==R||t in e)||rt(e,t,n)}function Ke(e,t,n){var r=e[t];Mi.call(e,t)&&Nr(r,n)&&(n!==R||t in e)||rt(e,t,n)}function et(e,t){for(var n=e.length;n--;)if(Nr(e[n][0],t))return n;return-1}function tt(e,t,n,r){return So(e,function(e,i,o){t(r,e,n(e),o)}),r}function nt(e,t){return e&&mn(t,ri(t),e)}function rt(e,t,n){"__proto__"==t&&Ki?Ki(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function it(e,t){for(var n=-1,r=t.length,i=yi(r),o=null==e;++n<r;)i[n]=o?R:ti(e,t[n]);return i}function ot(e,t,n){return e==e&&(n!==R&&(e=e<=n?e:n),t!==R&&(e=e>=t?e:t)),e}function at(e,t,n,r,o,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==R)return s;if(!Hr(e))return e;if(r=Ma(e)){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Mi.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return gn(e,s)}else{var h=Bo(e),f="[object Function]"==h||"[object GeneratorFunction]"==h;if(Oa(e))return cn(e,l);if("[object Object]"==h||"[object Arguments]"==h||f&&!o){if(s=c||f?{}:Xn(e),!l)return c?function(e,t){return mn(e,zo(e),t)}(e,function(e,t){return e&&mn(t,ii(t),e)}(s,e)):function(e,t){return mn(e,Fo(e),t)}(e,nt(s,e))}else{if(!Me[h])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return un(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return t=n?un(e.buffer):e.buffer,new e.constructor(t,e.byteOffset,e.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return hn(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return(t=new e.constructor(e.source,fe.exec(e))).lastIndex=e.lastIndex,t;case"[object Set]":return new r;case"[object Symbol]":return jo?$i(jo.call(e)):{}}}(e,h,l)}}if(a||(a=new Le),o=a.get(e))return o;a.set(e,s),Ra(e)?e.forEach(function(r){s.add(at(r,t,n,r,e,a))}):Na(e)&&e.forEach(function(r,i){s.set(i,at(r,t,n,i,e,a))});c=u?c?Un:Wn:c?ii:ri;var d=r?R:c(e);return i(d||e,function(r,i){d&&(r=e[i=r]),Ke(s,i,at(r,t,n,i,e,a))}),s}function st(e,t,n){var r=n.length;if(null==e)return!r;for(e=$i(e);r--;){var i=n[r],o=t[i],a=e[i];if(a===R&&!(i in e)||!o(a))return!1}return!0}function lt(e,t,n){if("function"!=typeof e)throw new Ei("Expected a function");return Wo(function(){e.apply(R,n)},t)}function ct(e,t,n,r){var i=-1,o=s,a=!0,u=e.length,h=[],f=t.length;if(!u)return h;n&&(t=c(t,A(n))),r?(o=l,a=!1):200<=t.length&&(o=j,a=!1,t=new Pe(t));e:for(;++i<u;){var d=e[i],p=null==n?d:n(d);d=r||0!==d?d:0;if(a&&p==p){for(var g=f;g--;)if(t[g]===p)continue e;h.push(d)}else o(t,p,r)||h.push(d)}return h}function ut(e,t){var n=!0;return So(e,function(e,r,i){return n=!!t(e,r,i)}),n}function ht(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(s===R?a==a&&!qr(a):n(a,s)))var s=a,l=o}return l}function ft(e,t){var n=[];return So(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function dt(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=er),i||(i=[]);++o<a;){var s=e[o];0<t&&n(s)?1<t?dt(s,t-1,n,r,i):u(i,s):r||(i[i.length]=s)}return i}function pt(e,t){return e&&Co(e,t,ri)}function gt(e,t){return e&&Oo(e,t,ri)}function mt(e,t){return a(t,function(t){return Fr(e[t])})}function vt(e,t){for(var n=0,r=(t=sn(t,e)).length;null!=e&&n<r;)e=e[fr(t[n++])];return n&&n==r?e:R}function yt(e,t,n){return t=t(e),Ma(e)?t:u(t,n(e))}function xt(e){if(null==e)e=e===R?"[object Undefined]":"[object Null]";else if(Qi&&Qi in $i(e)){var t=Mi.call(e,Qi),n=e[Qi];try{e[Qi]=R;var r=!0}catch(e){}var i=Di.call(e);r&&(t?e[Qi]=n:delete e[Qi]),e=i}else e=Di.call(e);return e}function wt(e,t){return e>t}function bt(e,t){return null!=e&&Mi.call(e,t)}function _t(e,t){return null!=e&&t in $i(e)}function $t(e,t,n){for(var r=n?l:s,i=e[0].length,o=e.length,a=o,u=yi(o),h=1/0,f=[];a--;){var d=e[a];a&&t&&(d=c(d,A(t))),h=so(d.length,h),u[a]=!n&&(t||120<=i&&120<=d.length)?new Pe(a&&d):R}d=e[0];var p=-1,g=u[0];e:for(;++p<i&&f.length<h;){var m=d[p],v=t?t(m):m;m=n||0!==m?m:0;if(g?!j(g,v):!r(f,v,n)){for(a=o;--a;){var y=u[a];if(y?!j(y,v):!r(e[a],v,n))continue e}g&&g.push(v),f.push(m)}}return f}function kt(e,t,r){return null==(t=null==(e=2>(t=sn(t,e)).length?e:vt(e,Ut(t,0,-1)))?e:e[fr(wr(t))])?R:n(t,e,r)}function At(e){return Vr(e)&&"[object Arguments]"==xt(e)}function Et(e,t,n,r,i){if(e===t)t=!0;else if(null==e||null==t||!Vr(e)&&!Vr(t))t=e!=e&&t!=t;else e:{var o,a,s=Ma(e),l=Ma(t),c="[object Object]"==(o="[object Arguments]"==(o=s?"[object Array]":Bo(e))?"[object Object]":o);l="[object Object]"==(a="[object Arguments]"==(a=l?"[object Array]":Bo(t))?"[object Object]":a);if((a=o==a)&&Oa(e)){if(!Oa(t)){t=!1;break e}s=!0,c=!1}if(a&&!c)i||(i=new Le),t=s||La(e)?Hn(e,t,n,r,Et,i):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!o(new zi(e),new zi(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return Nr(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=M;case"[object Set]":if(s||(s=D),e.size!=t.size&&!(1&r))break;return(n=a.get(e))?n==t:(r|=2,a.set(e,t),t=Hn(s(e),s(t),r,i,o,a),a.delete(e),t);case"[object Symbol]":if(jo)return jo.call(e)==jo.call(t)}return!1}(e,t,o,n,r,Et,i);else{if(!(1&n)&&(s=c&&Mi.call(e,"__wrapped__"),o=l&&Mi.call(t,"__wrapped__"),s||o)){e=s?e.value():e,t=o?t.value():t,i||(i=new Le),t=Et(e,t,n,r,i);break e}if(a)t:if(i||(i=new Le),s=1&n,o=Wn(e),l=o.length,a=Wn(t).length,l==a||s){for(c=l;c--;){var u=o[c];if(!(s?u in t:Mi.call(t,u))){t=!1;break t}}if((a=i.get(e))&&i.get(t))t=a==t;else{a=!0,i.set(e,t),i.set(t,e);for(var h=s;++c<l;){var f=e[u=o[c]],d=t[u];if(r)var p=s?r(d,f,u,t,e,i):r(f,d,u,e,t,i);if(p===R?f!==d&&!Et(f,d,n,r,i):!p){a=!1;break}h||(h="constructor"==u)}a&&!h&&((n=e.constructor)!=(r=t.constructor)&&"constructor"in e&&"constructor"in t&&!("function"==typeof n&&n instanceof n&&"function"==typeof r&&r instanceof r)&&(a=!1)),i.delete(e),i.delete(t),t=a}}else t=!1;else t=!1}}return t}function jt(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=$i(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(c===R&&!(l in e))return!1}else{if(s=new Le,r)var h=r(c,u,l,e,t,s);if(h===R?!Et(u,c,3,r,s):!h)return!1}}return!0}function It(e){return!(!Hr(e)||Oi&&Oi in e)&&(Fr(e)?Ri:ge).test(dr(e))}function Tt(e){return"function"==typeof e?e:null==e?hi:"object"==typeof e?Ma(e)?Dt(e[0],e[1]):Ot(e):gi(e)}function St(e){if(!or(e))return oo(e);var t,n=[];for(t in $i(e))Mi.call(e,t)&&"constructor"!=t&&n.push(t);return n}function Mt(e,t){return e<t}function Ct(e,t){var n=-1,r=Pr(e)?yi(e.length):[];return So(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function Ot(e){var t=Jn(e);return 1==t.length&&t[0][2]?ar(t[0][0],t[0][1]):function(n){return n===e||jt(n,e,t)}}function Dt(e,t){return rr(e)&&t==t&&!Hr(t)?ar(fr(e),t):function(n){var r=ti(n,e);return r===R&&r===t?ni(n,e):Et(t,r,3)}}function Nt(e,t,n,r,i){e!==t&&Co(t,function(o,a){if(i||(i=new Le),Hr(o)){var s=i,l=lr(e,a),c=lr(t,a);if(p=s.get(c))He(e,a,p);else{var u=(p=r?r(l,c,a+"",e,t,s):R)===R;if(u){var h=Ma(c),f=!h&&Oa(c),d=!h&&!f&&La(c),p=c;h||f||d?Ma(l)?p=l:Rr(l)?p=gn(l):f?(u=!1,p=cn(c,!0)):d?(u=!1,p=hn(c,!0)):p=[]:Ur(c)||Sa(c)?(p=l,Sa(l)?p=Xr(l):Hr(l)&&!Fr(l)||(p=Xn(c))):u=!1}u&&(s.set(c,p),Nt(p,c,n,r,s),s.delete(c)),He(e,a,p)}}else(s=r?r(lr(e,a),o,a+"",e,t,i):R)===R&&(s=o),He(e,a,s)},ii)}function Pt(e,t){var n=e.length;if(n)return tr(t+=0>t?n:0,n)?e[t]:R}function Rt(e,t,n){var r=-1;return t=c(t.length?t:[hi],A(Qn())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].c;return e}(e=Ct(e,function(e){return{a:c(t,function(t){return t(e)}),b:++r,c:e}}),function(e,t){var r;e:{r=-1;for(var i=e.a,o=t.a,a=i.length,s=n.length;++r<a;){var l=fn(i[r],o[r]);if(l){r=r>=s?l:l*("desc"==n[r]?-1:1);break e}}r=e.b-t.b}return r})}function Lt(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=vt(e,a);n(s,a)&&Wt(o,sn(a,e),s)}return o}function Ft(e,t,n,r){var i=r?v:m,o=-1,a=t.length,s=e;for(e===t&&(t=gn(t)),n&&(s=c(e,A(n)));++o<a;){var l=0,u=t[o];for(u=n?n(u):u;-1<(l=i(s,u,l,r));)s!==e&&Ui.call(s,l,1),Ui.call(e,l,1)}return e}function zt(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;tr(i)?Ui.call(e,i,1):Xt(e,i)}}}function Bt(e,t){return e+eo(uo()*(t-e+1))}function Ht(e,t){var n="";if(!e||1>t||9007199254740991<t)return n;do{t%2&&(n+=e),(t=eo(t/2))&&(e+=e)}while(t);return n}function Vt(e,t){return Uo(sr(e,t,hi),e+"")}function Wt(e,t,n,r){if(!Hr(e))return e;for(var i=-1,o=(t=sn(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=fr(t[i]),c=n;if(i!=a){var u=s[l];(c=r?r(u,l,s):R)===R&&(c=Hr(u)?u:tr(t[i+1])?[]:{})}Ke(s,l,c),s=s[l]}return e}function Ut(e,t,n){var r=-1,i=e.length;for(0>t&&(t=-t>i?0:i+t),0>(n=n>i?i:n)&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0,n=yi(i);++r<i;)n[r]=e[r+t];return n}function Yt(e,t){var n;return So(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function qt(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&2147483647>=i){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!qr(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Qt(e,t,hi,n)}function Qt(e,t,n,r){t=n(t);for(var i=0,o=null==e?0:e.length,a=t!=t,s=null===t,l=qr(t),c=t===R;i<o;){var u=eo((i+o)/2),h=n(e[u]),f=h!==R,d=null===h,p=h==h,g=qr(h);(a?r||p:c?p&&(r||f):s?p&&f&&(r||!d):l?p&&f&&!d&&(r||!g):!d&&!g&&(r?h<=t:h<t))?i=u+1:o=u}return so(o,4294967294)}function Kt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Nr(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function Jt(e){return"number"==typeof e?e:qr(e)?F:+e}function Gt(e){if("string"==typeof e)return e;if(Ma(e))return c(e,Gt)+"";if(qr(e))return Io?Io.call(e):"";var t=e+"";return"0"==t&&1/e==-L?"-0":t}function Zt(e,t,n){var r=-1,i=s,o=e.length,a=!0,c=[],u=c;if(n)a=!1,i=l;else if(200<=o){if(i=t?null:Ro(e))return D(i);a=!1,i=j,u=new Pe}else u=t?[]:c;e:for(;++r<o;){var h=e[r],f=t?t(h):h;h=n||0!==h?h:0;if(a&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),c.push(h)}else i(u,f,n)||(u!==c&&u.push(f),c.push(h))}return c}function Xt(e,t){return null==(e=2>(t=sn(t,e)).length?e:vt(e,Ut(t,0,-1)))||delete e[fr(wr(t))]}function en(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Ut(e,r?0:o,r?o+1:i):Ut(e,r?o+1:0,r?i:o)}function tn(e,t){var n=e;return n instanceof _e&&(n=n.value()),h(t,function(e,t){return t.func.apply(t.thisArg,u([e],t.args))},n)}function nn(e,t,n){var r=e.length;if(2>r)return r?Zt(e[0]):[];for(var i=-1,o=yi(r);++i<r;)for(var a=e[i],s=-1;++s<r;)s!=i&&(o[i]=ct(o[i]||a,e[s],t,n));return Zt(dt(o,1),t,n)}function rn(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;)n(a,e[r],r<o?t[r]:R);return a}function on(e){return Rr(e)?e:[]}function an(e){return"function"==typeof e?e:hi}function sn(e,t){return Ma(e)?e:rr(e,t)?[e]:Yo(ei(e))}function ln(e,t,n){var r=e.length;return n=n===R?r:n,!t&&n>=r?e:Ut(e,t,n)}function cn(e,t){if(t)return e.slice();var n=e.length;n=Bi?Bi(n):new e.constructor(n);return e.copy(n),n}function un(e){var t=new e.constructor(e.byteLength);return new zi(t).set(new zi(e)),t}function hn(e,t){return new e.constructor(t?un(e.buffer):e.buffer,e.byteOffset,e.length)}function fn(e,t){if(e!==t){var n=e!==R,r=null===e,i=e==e,o=qr(e),a=t!==R,s=null===t,l=t==t,c=qr(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}function dn(e,t,n,r){var i=-1,o=e.length,a=n.length,s=-1,l=t.length,c=ao(o-a,0),u=yi(l+c);for(r=!r;++s<l;)u[s]=t[s];for(;++i<a;)(r||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}function pn(e,t,n,r){var i=-1,o=e.length,a=-1,s=n.length,l=-1,c=t.length,u=ao(o-s,0),h=yi(u+c);for(r=!r;++i<u;)h[i]=e[i];for(u=i;++l<c;)h[u+l]=t[l];for(;++a<s;)(r||i<o)&&(h[u+n[a]]=e[i++]);return h}function gn(e,t){var n=-1,r=e.length;for(t||(t=yi(r));++n<r;)t[n]=e[n];return t}function mn(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):R;l===R&&(l=e[s]),i?rt(n,s,l):Ke(n,s,l)}return n}function vn(e,t){return function(n,i){var o=Ma(n)?r:tt,a=t?t():{};return o(n,e,Qn(i,2),a)}}function yn(e){return Vt(function(t,n){var r=-1,i=n.length,o=1<i?n[i-1]:R,a=2<i?n[2]:R;o=3<e.length&&"function"==typeof o?(i--,o):R;for(a&&nr(n[0],n[1],a)&&(o=3>i?R:o,i=1),t=$i(t);++r<i;)(a=n[r])&&e(t,a,r,o);return t})}function xn(e,t){return function(n,r){if(null==n)return n;if(!Pr(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=$i(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function wn(e){return function(t,n,r){for(var i=-1,o=$i(t),a=(r=r(t)).length;a--;){var s=r[e?a:++i];if(!1===n(o[s],s,o))break}return t}}function bn(e){return function(t){t=ei(t);var n=je.test(t)?P(t):R,r=n?n[0]:t.charAt(0);return t=n?ln(n,1).join(""):t.slice(1),r[e]()+t}}function _n(e){return function(t){return h(ci(li(t).replace($e,"")),e,"")}}function $n(e){return function(){switch((t=arguments).length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var t,n=To(e.prototype);return Hr(t=e.apply(n,t))?t:n}}function kn(e,t,r){var i=$n(e);return function o(){for(var a=arguments.length,s=yi(a),l=a,c=qn(o);l--;)s[l]=arguments[l];return(a-=(l=3>a&&s[0]!==c&&s[a-1]!==c?[]:O(s,c)).length)<r?Nn(e,t,jn,o.placeholder,R,s,l,R,R,r-a):n(this&&this!==Re&&this instanceof o?i:e,this,s)}}function An(e){return function(t,n,r){var i=$i(t);if(!Pr(t)){var o=Qn(n,3);t=ri(t),n=function(e){return o(i[e],e,i)}}return-1<(n=e(t,n,r))?i[o?t[n]:n]:R}}function En(e){return Vn(function(t){var n=t.length,r=n,i=be.prototype.thru;for(e&&t.reverse();r--;){if("function"!=typeof(a=t[r]))throw new Ei("Expected a function");if(i&&!o&&"wrapper"==Yn(a))var o=new be([],!0)}for(r=o?r:n;++r<n;){var a,s="wrapper"==(i=Yn(a=t[r]))?Lo(a):R;o=s&&ir(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?o[Yn(s[0])].apply(o,s[3]):1==a.length&&ir(a)?o[i]():o.thru(a)}return function(){var e=(i=arguments)[0];if(o&&1==i.length&&Ma(e))return o.plant(e).value();for(var r=0,i=n?t[r].apply(this,i):e;++r<n;)i=t[r].call(this,i);return i}})}function jn(e,t,n,r,i,o,a,s,l,c){var u=128&t,h=1&t,f=2&t,d=24&t,p=512&t,g=f?R:$n(e);return function m(){for(var v=arguments.length,y=yi(v),x=v;x--;)y[x]=arguments[x];if(d){var w,b=qn(m);for(x=y.length,w=0;x--;)y[x]===b&&++w}if(r&&(y=dn(y,r,i,d)),o&&(y=pn(y,o,a,d)),v-=w,d&&v<c)return b=O(y,b),Nn(e,t,jn,m.placeholder,n,y,b,s,l,c-v);if(b=h?n:this,x=f?b[e]:e,v=y.length,s){w=y.length;for(var _=so(s.length,w),$=gn(y);_--;){var k=s[_];y[_]=tr(k,w)?$[k]:R}}else p&&1<v&&y.reverse();return u&&l<v&&(y.length=l),this&&this!==Re&&this instanceof m&&(x=g||$n(x)),x.apply(b,y)}}function In(e,t){return function(n,r){return function(e,t,n){var r={};return pt(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r))}}function Tn(e,t){return function(n,r){var i;if(n===R&&r===R)return t;if(n!==R&&(i=n),r!==R){if(i===R)return r;"string"==typeof n||"string"==typeof r?(n=Gt(n),r=Gt(r)):(n=Jt(n),r=Jt(r)),i=e(n,r)}return i}}function Sn(e){return Vn(function(t){return t=c(t,A(Qn())),Vt(function(r){var i=this;return e(t,function(e){return n(e,i,r)})})})}function Mn(e,t){var n=(t=t===R?" ":Gt(t)).length;return 2>n?n?Ht(t,e):t:(n=Ht(t,Xi(e/N(t))),je.test(t)?ln(P(n),0,e).join(""):n.slice(0,e))}function Cn(e,t,r,i){var o=1&t,a=$n(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,h=yi(u+l),f=this&&this!==Re&&this instanceof t?a:e;++c<u;)h[c]=i[c];for(;l--;)h[c++]=arguments[++s];return n(f,o?r:this,h)}}function On(e){return function(t,n,r){r&&"number"!=typeof r&&nr(t,n,r)&&(n=r=R),t=Kr(t),n===R?(n=t,t=0):n=Kr(n),r=r===R?t<n?1:-1:Kr(r);var i=-1;n=ao(Xi((n-t)/(r||1)),0);for(var o=yi(n);n--;)o[e?n:++i]=t,t+=r;return o}}function Dn(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Zr(t),n=Zr(n)),e(t,n)}}function Nn(e,t,n,r,i,o,a,s,l,c){var u=8&t;return 4&(t=(t|(u?32:64))&~(u?64:32))||(t&=-4),i=[e,t,i,u?o:R,u?a:R,o=u?R:o,a=u?R:a,s,l,c],n=n.apply(R,i),ir(e)&&Vo(n,i),n.placeholder=r,cr(n,e,t)}function Pn(e){var t=_i[e];return function(e,n){if(e=Zr(e),(n=null==n?0:so(Jr(n),292))&&ro(e)){var r=(ei(e)+"e").split("e");return+((r=(ei(r=t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}function Rn(e){return function(t){var n=Bo(t);return"[object Map]"==n?M(t):"[object Set]"==n?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return c(t,function(t){return[t,e[t]]})}(t,e(t))}}function Ln(e,t,n,r,i,o,a,s){var l=2&t;if(!l&&"function"!=typeof e)throw new Ei("Expected a function");var c=r?r.length:0;if(c||(t&=-97,r=i=R),a=a===R?a:ao(Jr(a),0),s=s===R?s:Jr(s),c-=i?i.length:0,64&t){var u=r,h=i;r=i=R}var f=l?R:Lo(e);return o=[e,t,n,r,i,u,h,o,a,s],f&&(t=(n=o[1])|(e=f[1]),r=128==e&&8==n||128==e&&256==n&&o[7].length<=f[8]||384==e&&f[7].length<=f[8]&&8==n,131>t||r)&&(1&e&&(o[2]=f[2],t|=1&n?0:4),(n=f[3])&&(r=o[3],o[3]=r?dn(r,n,f[4]):n,o[4]=r?O(o[3],"__lodash_placeholder__"):f[4]),(n=f[5])&&(r=o[5],o[5]=r?pn(r,n,f[6]):n,o[6]=r?O(o[5],"__lodash_placeholder__"):f[6]),(n=f[7])&&(o[7]=n),128&e&&(o[8]=null==o[8]?f[8]:so(o[8],f[8])),null==o[9]&&(o[9]=f[9]),o[0]=f[0],o[1]=t),e=o[0],t=o[1],n=o[2],r=o[3],i=o[4],!(s=o[9]=o[9]===R?l?0:e.length:ao(o[9]-c,0))&&24&t&&(t&=-25),cr((f?Do:Vo)(t&&1!=t?8==t||16==t?kn(e,t,s):32!=t&&33!=t||i.length?jn.apply(R,o):Cn(e,t,n,r):function(e,t,n){var r=1&t,i=$n(e);return function t(){return(this&&this!==Re&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n),o),e,t)}function Fn(e,t,n,r){return e===R||Nr(e,Ii[n])&&!Mi.call(r,n)?t:e}function zn(e,t,n,r,i,o){return Hr(e)&&Hr(t)&&(o.set(t,e),Nt(e,t,R,zn,o),o.delete(t)),e}function Bn(e){return Ur(e)?R:e}function Hn(e,t,n,r,i,o){var a=1&n,s=e.length;if(s!=(l=t.length)&&!(a&&l>s))return!1;if((l=o.get(e))&&o.get(t))return l==t;var l=-1,c=!0,u=2&n?new Pe:R;for(o.set(e,t),o.set(t,e);++l<s;){var h=e[l],f=t[l];if(r)var p=a?r(f,h,l,t,e,o):r(h,f,l,e,t,o);if(p!==R){if(p)continue;c=!1;break}if(u){if(!d(t,function(e,t){if(!j(u,t)&&(h===e||i(h,e,n,r,o)))return u.push(t)})){c=!1;break}}else if(h!==f&&!i(h,f,n,r,o)){c=!1;break}}return o.delete(e),o.delete(t),c}function Vn(e){return Uo(sr(e,R,yr),e+"")}function Wn(e){return yt(e,ri,Fo)}function Un(e){return yt(e,ii,zo)}function Yn(e){for(var t=e.name+"",n=wo[t],r=Mi.call(wo,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function qn(e){return(Mi.call(b,"placeholder")?b:e).placeholder}function Qn(){var e=(e=b.iteratee||fi)===fi?Tt:e;return arguments.length?e(arguments[0],arguments[1]):e}function Kn(e,t){var n=e.__data__,r=typeof t;return("string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function Jn(e){for(var t=ri(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,i==i&&!Hr(i)]}return t}function Gn(e,t){var n=null==e?R:e[t];return It(n)?n:R}function Zn(e,t,n){for(var r=-1,i=(t=sn(t,e)).length,o=!1;++r<i;){var a=fr(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Br(i)&&tr(a,i)&&(Ma(e)||Sa(e))}function Xn(e){return"function"!=typeof e.constructor||or(e)?{}:To(Hi(e))}function er(e){return Ma(e)||Sa(e)||!!(Yi&&e&&e[Yi])}function tr(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&-1<e&&0==e%1&&e<t}function nr(e,t,n){if(!Hr(n))return!1;var r=typeof t;return!!("number"==r?Pr(n)&&tr(t,n.length):"string"==r&&t in n)&&Nr(n[t],e)}function rr(e,t){if(Ma(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!qr(e))||Z.test(e)||!G.test(e)||null!=t&&e in $i(t)}function ir(e){var t=Yn(e),n=b[t];return"function"==typeof n&&t in _e.prototype&&(e===n||!!(t=Lo(n))&&e===t[0])}function or(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ii)}function ar(e,t){return function(n){return null!=n&&n[e]===t&&(t!==R||e in $i(n))}}function sr(e,t,r){return t=ao(t===R?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=ao(i.length-t,0),s=yi(a);++o<a;)s[o]=i[t+o];for(o=-1,a=yi(t+1);++o<t;)a[o]=i[o];return a[t]=r(s),n(e,this,a)}}function lr(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function cr(e,t,n){var r=t+"";t=Uo;var i,o=pr;return n=o(i=(i=r.match(se))?i[1].split(le):[],n),(o=n.length)&&(n[i=o-1]=(1<o?"& ":"")+n[i],n=n.join(2<o?", ":" "),r=r.replace(ae,"{\n/* [wrapped with "+n+"] */\n")),t(e,r)}function ur(e){var t=0,n=0;return function(){var r=lo(),i=16-(r-n);if(n=r,0<i){if(800<=++t)return arguments[0]}else t=0;return e.apply(R,arguments)}}function hr(e,t){var n=-1,r=(i=e.length)-1;for(t=t===R?i:t;++n<t;){var i,o=e[i=Bt(n,r)];e[i]=e[n],e[n]=o}return e.length=t,e}function fr(e){if("string"==typeof e||qr(e))return e;var t=e+"";return"0"==t&&1/e==-L?"-0":t}function dr(e){if(null!=e){try{return Si.call(e)}catch(e){}return e+""}return""}function pr(e,t){return i(z,function(n){var r="_."+n[0];t&n[1]&&!s(e,r)&&e.push(r)}),e.sort()}function gr(e){if(e instanceof _e)return e.clone();var t=new be(e.__wrapped__,e.__chain__);return t.__actions__=gn(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function mr(e,t,n){var r=null==e?0:e.length;return r?(0>(n=null==n?0:Jr(n))&&(n=ao(r+n,0)),g(e,Qn(t,3),n)):-1}function vr(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==R&&(i=Jr(n),i=0>n?ao(r+i,0):so(i,r-1)),g(e,Qn(t,3),i,!0)}function yr(e){return null!=e&&e.length?dt(e,1):[]}function xr(e){return e&&e.length?e[0]:R}function wr(e){var t=null==e?0:e.length;return t?e[t-1]:R}function br(e,t){return e&&e.length&&t&&t.length?Ft(e,t):e}function _r(e){return null==e?e:ho.call(e)}function $r(e){if(!e||!e.length)return[];var t=0;return e=a(e,function(e){if(Rr(e))return t=ao(e.length,t),!0}),k(t,function(t){return c(e,w(t))})}function kr(e,t){if(!e||!e.length)return[];var r=$r(e);return null==t?r:c(r,function(e){return n(t,R,e)})}function Ar(e){return(e=b(e)).__chain__=!0,e}function Er(e,t){return t(e)}function jr(e,t){return(Ma(e)?i:So)(e,Qn(t,3))}function Ir(e,t){return(Ma(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:Mo)(e,Qn(t,3))}function Tr(e,t){return(Ma(e)?c:Ct)(e,Qn(t,3))}function Sr(e,t,n){return t=n?R:t,t=e&&null==t?e.length:t,Ln(e,128,R,R,R,R,t)}function Mr(e,t){var n;if("function"!=typeof t)throw new Ei("Expected a function");return e=Jr(e),function(){return 0<--e&&(n=t.apply(this,arguments)),1>=e&&(t=R),n}}function Cr(e,t,n){function r(t){var n=l,r=c;return l=c=R,p=t,h=e.apply(r,n)}function i(e){var n=e-d;return e-=p,d===R||n>=t||0>n||m&&e>=u}function o(){var e=xa();if(i(e))return a(e);var n,r=Wo;n=e-p,e=t-(e-d),n=m?so(e,u-n):e,f=r(o,n)}function a(e){return f=R,v&&l?r(e):(l=c=R,h)}function s(){var e=xa(),n=i(e);if(l=arguments,c=this,d=e,n){if(f===R)return p=e=d,f=Wo(o,t),g?r(e):h;if(m)return Po(f),f=Wo(o,t),r(d)}return f===R&&(f=Wo(o,t)),h}var l,c,u,h,f,d,p=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new Ei("Expected a function");return t=Zr(t)||0,Hr(n)&&(g=!!n.leading,u=(m="maxWait"in n)?ao(Zr(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),s.cancel=function(){f!==R&&Po(f),p=0,l=d=c=f=R},s.flush=function(){return f===R?h:a(xa())},s}function Or(e,t){function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;return o.has(i)?o.get(i):(r=e.apply(this,r),n.cache=o.set(i,r)||o,r)}if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ei("Expected a function");return n.cache=new(Or.Cache||Ne),n}function Dr(e){if("function"!=typeof e)throw new Ei("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Nr(e,t){return e===t||e!=e&&t!=t}function Pr(e){return null!=e&&Br(e.length)&&!Fr(e)}function Rr(e){return Vr(e)&&Pr(e)}function Lr(e){if(!Vr(e))return!1;var t=xt(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ur(e)}function Fr(e){return!!Hr(e)&&("[object Function]"==(e=xt(e))||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e)}function zr(e){return"number"==typeof e&&e==Jr(e)}function Br(e){return"number"==typeof e&&-1<e&&0==e%1&&9007199254740991>=e}function Hr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Vr(e){return null!=e&&"object"==typeof e}function Wr(e){return"number"==typeof e||Vr(e)&&"[object Number]"==xt(e)}function Ur(e){return!(!Vr(e)||"[object Object]"!=xt(e))&&(null===(e=Hi(e))||"function"==typeof(e=Mi.call(e,"constructor")&&e.constructor)&&e instanceof e&&Si.call(e)==Ni)}function Yr(e){return"string"==typeof e||!Ma(e)&&Vr(e)&&"[object String]"==xt(e)}function qr(e){return"symbol"==typeof e||Vr(e)&&"[object Symbol]"==xt(e)}function Qr(e){if(!e)return[];if(Pr(e))return Yr(e)?P(e):gn(e);if(qi&&e[qi]){e=e[qi]();for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}return("[object Map]"==(t=Bo(e))?M:"[object Set]"==t?D:ai)(e)}function Kr(e){return e?(e=Zr(e))===L||e===-L?1.7976931348623157e308*(0>e?-1:1):e==e?e:0:0===e?e:0}function Jr(e){var t=(e=Kr(e))%1;return e==e?t?e-t:e:0}function Gr(e){return e?ot(Jr(e),0,4294967295):0}function Zr(e){if("number"==typeof e)return e;if(qr(e))return F;if(Hr(e)&&(e=Hr(e="function"==typeof e.valueOf?e.valueOf():e)?e+"":e),"string"!=typeof e)return 0===e?e:+e;e=e.replace(re,"");var t=pe.test(e);return t||me.test(e)?De(e.slice(2),t?2:8):de.test(e)?F:+e}function Xr(e){return mn(e,ii(e))}function ei(e){return null==e?"":Gt(e)}function ti(e,t,n){return(e=null==e?R:vt(e,t))===R?n:e}function ni(e,t){return null!=e&&Zn(e,t,_t)}function ri(e){return Pr(e)?Fe(e):St(e)}function ii(e){if(Pr(e))e=Fe(e,!0);else if(Hr(e)){var t,n=or(e),r=[];for(t in e)("constructor"!=t||!n&&Mi.call(e,t))&&r.push(t);e=r}else{if(t=[],null!=e)for(n in $i(e))t.push(n);e=t}return e}function oi(e,t){if(null==e)return{};var n=c(Un(e),function(e){return[e]});return t=Qn(t),Lt(e,n,function(e,n){return t(e,n[0])})}function ai(e){return null==e?[]:E(e,ri(e))}function si(e){return us(ei(e).toLowerCase())}function li(e){return(e=ei(e))&&e.replace(ye,Je).replace(ke,"")}function ci(e,t,n){return e=ei(e),(t=n?R:t)===R?Ie.test(e)?e.match(Ee)||[]:e.match(ce)||[]:e.match(t)||[]}function ui(e){return function(){return e}}function hi(e){return e}function fi(e){return Tt("function"==typeof e?e:at(e,1))}function di(e,t,n){var r=ri(t),o=mt(t,r);null!=n||Hr(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=mt(t,ri(t)));var a=!(Hr(n)&&"chain"in n&&!n.chain),s=Fr(e);return i(o,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=gn(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,u([this.value()],arguments))})}),e}function pi(){}function gi(e){return rr(e)?w(fr(e)):function(e){return function(t){return vt(t,e)}}(e)}function mi(){return[]}function vi(){return!1}var yi=(t=null==t?Re:Xe.defaults(Re.Object(),t,Xe.pick(Re,Te))).Array,xi=t.Date,wi=t.Error,bi=t.Function,_i=t.Math,$i=t.Object,ki=t.RegExp,Ai=t.String,Ei=t.TypeError,ji=yi.prototype,Ii=$i.prototype,Ti=t["__core-js_shared__"],Si=bi.prototype.toString,Mi=Ii.hasOwnProperty,Ci=0,Oi=function(){var e=/[^.]+$/.exec(Ti&&Ti.keys&&Ti.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Di=Ii.toString,Ni=Si.call($i),Pi=Re._,Ri=ki("^"+Si.call(Mi).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Li=ze?t.Buffer:R,Fi=t.Symbol,zi=t.Uint8Array,Bi=Li?Li.g:R,Hi=C($i.getPrototypeOf,$i),Vi=$i.create,Wi=Ii.propertyIsEnumerable,Ui=ji.splice,Yi=Fi?Fi.isConcatSpreadable:R,qi=Fi?Fi.iterator:R,Qi=Fi?Fi.toStringTag:R,Ki=function(){try{var e=Gn($i,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ji=t.clearTimeout!==Re.clearTimeout&&t.clearTimeout,Gi=xi&&xi.now!==Re.Date.now&&xi.now,Zi=t.setTimeout!==Re.setTimeout&&t.setTimeout,Xi=_i.ceil,eo=_i.floor,to=$i.getOwnPropertySymbols,no=Li?Li.isBuffer:R,ro=t.isFinite,io=ji.join,oo=C($i.keys,$i),ao=_i.max,so=_i.min,lo=xi.now,co=t.parseInt,uo=_i.random,ho=ji.reverse,fo=Gn(t,"DataView"),po=Gn(t,"Map"),go=Gn(t,"Promise"),mo=Gn(t,"Set"),vo=Gn(t,"WeakMap"),yo=Gn($i,"create"),xo=vo&&new vo,wo={},bo=dr(fo),_o=dr(po),$o=dr(go),ko=dr(mo),Ao=dr(vo),Eo=Fi?Fi.prototype:R,jo=Eo?Eo.valueOf:R,Io=Eo?Eo.toString:R,To=function(){function e(){}return function(t){return Hr(t)?Vi?Vi(t):(e.prototype=t,t=new e,e.prototype=R,t):{}}}();b.templateSettings={escape:Q,evaluate:K,interpolate:J,variable:"",imports:{_:b}},b.prototype=te.prototype,b.prototype.constructor=b,be.prototype=To(te.prototype),be.prototype.constructor=be,_e.prototype=To(te.prototype),_e.prototype.constructor=_e,Ae.prototype.clear=function(){this.__data__=yo?yo(null):{},this.size=0},Ae.prototype.delete=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e},Ae.prototype.get=function(e){var t=this.__data__;return yo?"__lodash_hash_undefined__"===(e=t[e])?R:e:Mi.call(t,e)?t[e]:R},Ae.prototype.has=function(e){var t=this.__data__;return yo?t[e]!==R:Mi.call(t,e)},Ae.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yo&&t===R?"__lodash_hash_undefined__":t,this},Ce.prototype.clear=function(){this.__data__=[],this.size=0},Ce.prototype.delete=function(e){var t=this.__data__;return!(0>(e=et(t,e))||(e==t.length-1?t.pop():Ui.call(t,e,1),--this.size,0))},Ce.prototype.get=function(e){var t=this.__data__;return 0>(e=et(t,e))?R:t[e][1]},Ce.prototype.has=function(e){return-1<et(this.__data__,e)},Ce.prototype.set=function(e,t){var n=this.__data__,r=et(n,e);return 0>r?(++this.size,n.push([e,t])):n[r][1]=t,this},Ne.prototype.clear=function(){this.size=0,this.__data__={hash:new Ae,map:new(po||Ce),string:new Ae}},Ne.prototype.delete=function(e){return e=Kn(this,e).delete(e),this.size-=e?1:0,e},Ne.prototype.get=function(e){return Kn(this,e).get(e)},Ne.prototype.has=function(e){return Kn(this,e).has(e)},Ne.prototype.set=function(e,t){var n=Kn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Pe.prototype.add=Pe.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Pe.prototype.has=function(e){return this.__data__.has(e)},Le.prototype.clear=function(){this.__data__=new Ce,this.size=0},Le.prototype.delete=function(e){var t=this.__data__;return e=t.delete(e),this.size=t.size,e},Le.prototype.get=function(e){return this.__data__.get(e)},Le.prototype.has=function(e){return this.__data__.has(e)},Le.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ce){var r=n.__data__;if(!po||199>r.length)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ne(r)}return n.set(e,t),this.size=n.size,this};var So=xn(pt),Mo=xn(gt,!0),Co=wn(),Oo=wn(!0),Do=xo?function(e,t){return xo.set(e,t),e}:hi,No=Ki?function(e,t){return Ki(e,"toString",{configurable:!0,enumerable:!1,value:ui(t),writable:!0})}:hi,Po=Ji||function(e){return Re.clearTimeout(e)},Ro=mo&&1/D(new mo([,-0]))[1]==L?function(e){return new mo(e)}:pi,Lo=xo?function(e){return xo.get(e)}:pi,Fo=to?function(e){return null==e?[]:(e=$i(e),a(to(e),function(t){return Wi.call(e,t)}))}:mi,zo=to?function(e){for(var t=[];e;)u(t,Fo(e)),e=Hi(e);return t}:mi,Bo=xt;(fo&&"[object DataView]"!=Bo(new fo(new ArrayBuffer(1)))||po&&"[object Map]"!=Bo(new po)||go&&"[object Promise]"!=Bo(go.resolve())||mo&&"[object Set]"!=Bo(new mo)||vo&&"[object WeakMap]"!=Bo(new vo))&&(Bo=function(e){var t=xt(e);if(e=(e="[object Object]"==t?e.constructor:R)?dr(e):"")switch(e){case bo:return"[object DataView]";case _o:return"[object Map]";case $o:return"[object Promise]";case ko:return"[object Set]";case Ao:return"[object WeakMap]"}return t});var Ho=Ti?Fr:vi,Vo=ur(Do),Wo=Zi||function(e,t){return Re.setTimeout(e,t)},Uo=ur(No),Yo=function(e){var t=(e=Or(e,function(e){return 500===t.size&&t.clear(),e})).cache;return e}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(X,function(e,n,r,i){t.push(r?i.replace(ue,"$1"):n||e)}),t}),qo=Vt(function(e,t){return Rr(e)?ct(e,dt(t,1,Rr,!0)):[]}),Qo=Vt(function(e,t){var n=wr(t);return Rr(n)&&(n=R),Rr(e)?ct(e,dt(t,1,Rr,!0),Qn(n,2)):[]}),Ko=Vt(function(e,t){var n=wr(t);return Rr(n)&&(n=R),Rr(e)?ct(e,dt(t,1,Rr,!0),R,n):[]}),Jo=Vt(function(e){var t=c(e,on);return t.length&&t[0]===e[0]?$t(t):[]}),Go=Vt(function(e){var t=wr(e),n=c(e,on);return t===wr(n)?t=R:n.pop(),n.length&&n[0]===e[0]?$t(n,Qn(t,2)):[]}),Zo=Vt(function(e){var t=wr(e),n=c(e,on);return(t="function"==typeof t?t:R)&&n.pop(),n.length&&n[0]===e[0]?$t(n,R,t):[]}),Xo=Vt(br),ea=Vn(function(e,t){var n=null==e?0:e.length,r=it(e,t);return zt(e,c(t,function(e){return tr(e,n)?+e:e}).sort(fn)),r}),ta=Vt(function(e){return Zt(dt(e,1,Rr,!0))}),na=Vt(function(e){var t=wr(e);return Rr(t)&&(t=R),Zt(dt(e,1,Rr,!0),Qn(t,2))}),ra=Vt(function(e){var t="function"==typeof(t=wr(e))?t:R;return Zt(dt(e,1,Rr,!0),R,t)}),ia=Vt(function(e,t){return Rr(e)?ct(e,t):[]}),oa=Vt(function(e){return nn(a(e,Rr))}),aa=Vt(function(e){var t=wr(e);return Rr(t)&&(t=R),nn(a(e,Rr),Qn(t,2))}),sa=Vt(function(e){var t="function"==typeof(t=wr(e))?t:R;return nn(a(e,Rr),R,t)}),la=Vt($r),ca=Vt(function(e){var t="function"==typeof(t=1<(t=e.length)?e[t-1]:R)?(e.pop(),t):R;return kr(e,t)}),ua=Vn(function(e){function t(t){return it(t,e)}var n=e.length,r=n?e[0]:0,i=this.__wrapped__;return!(1<n||this.__actions__.length)&&i instanceof _e&&tr(r)?((i=i.slice(r,+r+(n?1:0))).__actions__.push({func:Er,args:[t],thisArg:R}),new be(i,this.__chain__).thru(function(e){return n&&!e.length&&e.push(R),e})):this.thru(t)}),ha=vn(function(e,t,n){Mi.call(e,n)?++e[n]:rt(e,n,1)}),fa=An(mr),da=An(vr),pa=vn(function(e,t,n){Mi.call(e,n)?e[n].push(t):rt(e,n,[t])}),ga=Vt(function(e,t,r){var i=-1,o="function"==typeof t,a=Pr(e)?yi(e.length):[];return So(e,function(e){a[++i]=o?n(t,e,r):kt(e,t,r)}),a}),ma=vn(function(e,t,n){rt(e,n,t)}),va=vn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ya=Vt(function(e,t){if(null==e)return[];var n=t.length;return 1<n&&nr(e,t[0],t[1])?t=[]:2<n&&nr(t[0],t[1],t[2])&&(t=[t[0]]),Rt(e,dt(t,1),[])}),xa=Gi||function(){return Re.Date.now()},wa=Vt(function(e,t,n){var r=1;if(n.length){var i=O(n,qn(wa));r=32|r}return Ln(e,r,t,n,i)}),ba=Vt(function(e,t,n){var r=3;if(n.length){var i=O(n,qn(ba));r=32|r}return Ln(t,r,e,n,i)}),_a=Vt(function(e,t){return lt(e,1,t)}),$a=Vt(function(e,t,n){return lt(e,Zr(t)||0,n)});Or.Cache=Ne;var ka=Vt(function(e,t){var r=(t=1==t.length&&Ma(t[0])?c(t[0],A(Qn())):c(dt(t,1),A(Qn()))).length;return Vt(function(i){for(var o=-1,a=so(i.length,r);++o<a;)i[o]=t[o].call(this,i[o]);return n(e,this,i)})}),Aa=Vt(function(e,t){return Ln(e,32,R,t,O(t,qn(Aa)))}),Ea=Vt(function(e,t){return Ln(e,64,R,t,O(t,qn(Ea)))}),ja=Vn(function(e,t){return Ln(e,256,R,R,R,t)}),Ia=Dn(wt),Ta=Dn(function(e,t){return e>=t}),Sa=At(function(){return arguments}())?At:function(e){return Vr(e)&&Mi.call(e,"callee")&&!Wi.call(e,"callee")},Ma=yi.isArray,Ca=Ve?A(Ve):function(e){return Vr(e)&&"[object ArrayBuffer]"==xt(e)},Oa=no||vi,Da=We?A(We):function(e){return Vr(e)&&"[object Date]"==xt(e)},Na=Ue?A(Ue):function(e){return Vr(e)&&"[object Map]"==Bo(e)},Pa=Ye?A(Ye):function(e){return Vr(e)&&"[object RegExp]"==xt(e)},Ra=qe?A(qe):function(e){return Vr(e)&&"[object Set]"==Bo(e)},La=Qe?A(Qe):function(e){return Vr(e)&&Br(e.length)&&!!Se[xt(e)]},Fa=Dn(Mt),za=Dn(function(e,t){return e<=t}),Ba=yn(function(e,t){if(or(t)||Pr(t))mn(t,ri(t),e);else for(var n in t)Mi.call(t,n)&&Ke(e,n,t[n])}),Ha=yn(function(e,t){mn(t,ii(t),e)}),Va=yn(function(e,t,n,r){mn(t,ii(t),e,r)}),Wa=yn(function(e,t,n,r){mn(t,ri(t),e,r)}),Ua=Vn(it),Ya=Vt(function(e,t){e=$i(e);var n=-1,r=t.length;for((i=2<r?t[2]:R)&&nr(t[0],t[1],i)&&(r=1);++n<r;)for(var i,o=ii(i=t[n]),a=-1,s=o.length;++a<s;){var l=o[a],c=e[l];(c===R||Nr(c,Ii[l])&&!Mi.call(e,l))&&(e[l]=i[l])}return e}),qa=Vt(function(e){return e.push(R,zn),n(Za,R,e)}),Qa=In(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Di.call(t)),e[t]=n},ui(hi)),Ka=In(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Di.call(t)),Mi.call(e,t)?e[t].push(n):e[t]=[n]},Qn),Ja=Vt(kt),Ga=yn(function(e,t,n){Nt(e,t,n)}),Za=yn(function(e,t,n,r){Nt(e,t,n,r)}),Xa=Vn(function(e,t){var n={};if(null==e)return n;var r=!1;t=c(t,function(t){return t=sn(t,e),r||(r=1<t.length),t}),mn(e,Un(e),n),r&&(n=at(n,7,Bn));for(var i=t.length;i--;)Xt(n,t[i]);return n}),es=Vn(function(e,t){return null==e?{}:function(e,t){return Lt(e,t,function(t,n){return ni(e,n)})}(e,t)}),ts=Rn(ri),ns=Rn(ii),rs=_n(function(e,t,n){return t=t.toLowerCase(),e+(n?si(t):t)}),is=_n(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),os=_n(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),as=bn("toLowerCase"),ss=_n(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),ls=_n(function(e,t,n){return e+(n?" ":"")+us(t)}),cs=_n(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),us=bn("toUpperCase"),hs=Vt(function(e,t){try{return n(e,R,t)}catch(e){return Lr(e)?e:new wi(e)}}),fs=Vn(function(e,t){return i(t,function(t){t=fr(t),rt(e,t,wa(e[t],e))}),e}),ds=En(),ps=En(!0),gs=Vt(function(e,t){return function(n){return kt(n,e,t)}}),ms=Vt(function(e,t){return function(n){return kt(e,n,t)}}),vs=Sn(c),ys=Sn(o),xs=Sn(d),ws=On(),bs=On(!0),_s=Tn(function(e,t){return e+t},0),$s=Pn("ceil"),ks=Tn(function(e,t){return e/t},1),As=Pn("floor"),Es=Tn(function(e,t){return e*t},1),js=Pn("round"),Is=Tn(function(e,t){return e-t},0);return b.after=function(e,t){if("function"!=typeof t)throw new Ei("Expected a function");return e=Jr(e),function(){if(1>--e)return t.apply(this,arguments)}},b.ary=Sr,b.assign=Ba,b.assignIn=Ha,b.assignInWith=Va,b.assignWith=Wa,b.at=Ua,b.before=Mr,b.bind=wa,b.bindAll=fs,b.bindKey=ba,b.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ma(e)?e:[e]},b.chain=Ar,b.chunk=function(e,t,n){if(t=(n?nr(e,t,n):t===R)?1:ao(Jr(t),0),!(n=null==e?0:e.length)||1>t)return[];for(var r=0,i=0,o=yi(Xi(n/t));r<n;)o[i++]=Ut(e,r,r+=t);return o},b.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},b.concat=function(){var e=arguments.length;if(!e)return[];for(var t=yi(e-1),n=arguments[0];e--;)t[e-1]=arguments[e];return u(Ma(n)?gn(n):[n],dt(t,1))},b.cond=function(e){var t=null==e?0:e.length,r=Qn();return e=t?c(e,function(e){if("function"!=typeof e[1])throw new Ei("Expected a function");return[r(e[0]),e[1]]}):[],Vt(function(r){for(var i=-1;++i<t;){var o=e[i];if(n(o[0],this,r))return n(o[1],this,r)}})},b.conforms=function(e){return function(e){var t=ri(e);return function(n){return st(n,e,t)}}(at(e,1))},b.constant=ui,b.countBy=ha,b.create=function(e,t){var n=To(e);return null==t?n:nt(n,t)},b.curry=function e(t,n,r){return(t=Ln(t,8,R,R,R,R,R,n=r?R:n)).placeholder=e.placeholder,t},b.curryRight=function e(t,n,r){return(t=Ln(t,16,R,R,R,R,R,n=r?R:n)).placeholder=e.placeholder,t},b.debounce=Cr,b.defaults=Ya,b.defaultsDeep=qa,b.defer=_a,b.delay=$a,b.difference=qo,b.differenceBy=Qo,b.differenceWith=Ko,b.drop=function(e,t,n){var r=null==e?0:e.length;return r?Ut(e,0>(t=n||t===R?1:Jr(t))?0:t,r):[]},b.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Ut(e,0,0>(t=r-(t=n||t===R?1:Jr(t)))?0:t):[]},b.dropRightWhile=function(e,t){return e&&e.length?en(e,Qn(t,3),!0,!0):[]},b.dropWhile=function(e,t){return e&&e.length?en(e,Qn(t,3),!0):[]},b.fill=function(e,t,n,r){var i=null==e?0:e.length;if(!i)return[];for(n&&"number"!=typeof n&&nr(e,t,n)&&(n=0,r=i),i=e.length,0>(n=Jr(n))&&(n=-n>i?0:i+n),0>(r=r===R||r>i?i:Jr(r))&&(r+=i),r=n>r?0:Gr(r);n<r;)e[n++]=t;return e},b.filter=function(e,t){return(Ma(e)?a:ft)(e,Qn(t,3))},b.flatMap=function(e,t){return dt(Tr(e,t),1)},b.flatMapDeep=function(e,t){return dt(Tr(e,t),L)},b.flatMapDepth=function(e,t,n){return n=n===R?1:Jr(n),dt(Tr(e,t),n)},b.flatten=yr,b.flattenDeep=function(e){return null!=e&&e.length?dt(e,L):[]},b.flattenDepth=function(e,t){return null!=e&&e.length?dt(e,t=t===R?1:Jr(t)):[]},b.flip=function(e){return Ln(e,512)},b.flow=ds,b.flowRight=ps,b.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},b.functions=function(e){return null==e?[]:mt(e,ri(e))},b.functionsIn=function(e){return null==e?[]:mt(e,ii(e))},b.groupBy=pa,b.initial=function(e){return null!=e&&e.length?Ut(e,0,-1):[]},b.intersection=Jo,b.intersectionBy=Go,b.intersectionWith=Zo,b.invert=Qa,b.invertBy=Ka,b.invokeMap=ga,b.iteratee=fi,b.keyBy=ma,b.keys=ri,b.keysIn=ii,b.map=Tr,b.mapKeys=function(e,t){var n={};return t=Qn(t,3),pt(e,function(e,r,i){rt(n,t(e,r,i),e)}),n},b.mapValues=function(e,t){var n={};return t=Qn(t,3),pt(e,function(e,r,i){rt(n,r,t(e,r,i))}),n},b.matches=function(e){return Ot(at(e,1))},b.matchesProperty=function(e,t){return Dt(e,at(t,1))},b.memoize=Or,b.merge=Ga,b.mergeWith=Za,b.method=gs,b.methodOf=ms,b.mixin=di,b.negate=Dr,b.nthArg=function(e){return e=Jr(e),Vt(function(t){return Pt(t,e)})},b.omit=Xa,b.omitBy=function(e,t){return oi(e,Dr(Qn(t)))},b.once=function(e){return Mr(2,e)},b.orderBy=function(e,t,n,r){return null==e?[]:(Ma(t)||(t=null==t?[]:[t]),Ma(n=r?R:n)||(n=null==n?[]:[n]),Rt(e,t,n))},b.over=vs,b.overArgs=ka,b.overEvery=ys,b.overSome=xs,b.partial=Aa,b.partialRight=Ea,b.partition=va,b.pick=es,b.pickBy=oi,b.property=gi,b.propertyOf=function(e){return function(t){return null==e?R:vt(e,t)}},b.pull=Xo,b.pullAll=br,b.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Ft(e,t,Qn(n,2)):e},b.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Ft(e,t,R,n):e},b.pullAt=ea,b.range=ws,b.rangeRight=bs,b.rearg=ja,b.reject=function(e,t){return(Ma(e)?a:ft)(e,Dr(Qn(t,3)))},b.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Qn(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return zt(e,i),n},b.rest=function(e,t){if("function"!=typeof e)throw new Ei("Expected a function");return Vt(e,t=t===R?t:Jr(t))},b.reverse=_r,b.sampleSize=function(e,t,n){return t=(n?nr(e,t,n):t===R)?1:Jr(t),(Ma(e)?function(e,t){return hr(gn(e),ot(t,0,e.length))}:function(e,t){var n=ai(e);return hr(n,ot(t,0,n.length))})(e,t)},b.set=function(e,t,n){return null==e?e:Wt(e,t,n)},b.setWith=function(e,t,n,r){return r="function"==typeof r?r:R,null==e?e:Wt(e,t,n,r)},b.shuffle=function(e){return(Ma(e)?function(e){return hr(gn(e))}:function(e){return hr(ai(e))})(e)},b.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&nr(e,t,n)?(t=0,n=r):(t=null==t?0:Jr(t),n=n===R?r:Jr(n)),Ut(e,t,n)):[]},b.sortBy=ya,b.sortedUniq=function(e){return e&&e.length?Kt(e):[]},b.sortedUniqBy=function(e,t){return e&&e.length?Kt(e,Qn(t,2)):[]},b.split=function(e,t,n){return n&&"number"!=typeof n&&nr(e,t,n)&&(t=n=R),(n=n===R?4294967295:n>>>0)?(e=ei(e))&&("string"==typeof t||null!=t&&!Pa(t))&&(!(t=Gt(t))&&je.test(e))?ln(P(e),0,n):e.split(t,n):[]},b.spread=function(e,t){if("function"!=typeof e)throw new Ei("Expected a function");return t=null==t?0:ao(Jr(t),0),Vt(function(r){var i=r[t];return r=ln(r,0,t),i&&u(r,i),n(e,this,r)})},b.tail=function(e){var t=null==e?0:e.length;return t?Ut(e,1,t):[]},b.take=function(e,t,n){return e&&e.length?Ut(e,0,0>(t=n||t===R?1:Jr(t))?0:t):[]},b.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ut(e,0>(t=r-(t=n||t===R?1:Jr(t)))?0:t,r):[]},b.takeRightWhile=function(e,t){return e&&e.length?en(e,Qn(t,3),!1,!0):[]},b.takeWhile=function(e,t){return e&&e.length?en(e,Qn(t,3)):[]},b.tap=function(e,t){return t(e),e},b.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ei("Expected a function");return Hr(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Cr(e,t,{leading:r,maxWait:t,trailing:i})},b.thru=Er,b.toArray=Qr,b.toPairs=ts,b.toPairsIn=ns,b.toPath=function(e){return Ma(e)?c(e,fr):qr(e)?[e]:gn(Yo(ei(e)))},b.toPlainObject=Xr,b.transform=function(e,t,n){var r=Ma(e),o=r||Oa(e)||La(e);if(t=Qn(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:Hr(e)&&Fr(a)?To(Hi(e)):{}}return(o?i:pt)(e,function(e,r,i){return t(n,e,r,i)}),n},b.unary=function(e){return Sr(e,1)},b.union=ta,b.unionBy=na,b.unionWith=ra,b.uniq=function(e){return e&&e.length?Zt(e):[]},b.uniqBy=function(e,t){return e&&e.length?Zt(e,Qn(t,2)):[]},b.uniqWith=function(e,t){return t="function"==typeof t?t:R,e&&e.length?Zt(e,R,t):[]},b.unset=function(e,t){return null==e||Xt(e,t)},b.unzip=$r,b.unzipWith=kr,b.update=function(e,t,n){return null==e?e:Wt(e,t,an(n)(vt(e,t)),void 0)},b.updateWith=function(e,t,n,r){return r="function"==typeof r?r:R,null!=e&&(e=Wt(e,t,an(n)(vt(e,t)),r)),e},b.values=ai,b.valuesIn=function(e){return null==e?[]:E(e,ii(e))},b.without=ia,b.words=ci,b.wrap=function(e,t){return Aa(an(t),e)},b.xor=oa,b.xorBy=aa,b.xorWith=sa,b.zip=la,b.zipObject=function(e,t){return rn(e||[],t||[],Ke)},b.zipObjectDeep=function(e,t){return rn(e||[],t||[],Wt)},b.zipWith=ca,b.entries=ts,b.entriesIn=ns,b.extend=Ha,b.extendWith=Va,di(b,b),b.add=_s,b.attempt=hs,b.camelCase=rs,b.capitalize=si,b.ceil=$s,b.clamp=function(e,t,n){return n===R&&(n=t,t=R),n!==R&&(n=(n=Zr(n))==n?n:0),t!==R&&(t=(t=Zr(t))==t?t:0),ot(Zr(e),t,n)},b.clone=function(e){return at(e,4)},b.cloneDeep=function(e){return at(e,5)},b.cloneDeepWith=function(e,t){return at(e,5,t="function"==typeof t?t:R)},b.cloneWith=function(e,t){return at(e,4,t="function"==typeof t?t:R)},b.conformsTo=function(e,t){return null==t||st(e,t,ri(t))},b.deburr=li,b.defaultTo=function(e,t){return null==e||e!=e?t:e},b.divide=ks,b.endsWith=function(e,t,n){e=ei(e),t=Gt(t);var r=e.length;r=n=n===R?r:ot(Jr(n),0,r);return 0<=(n-=t.length)&&e.slice(n,r)==t},b.eq=Nr,b.escape=function(e){return(e=ei(e))&&q.test(e)?e.replace(U,Ge):e},b.escapeRegExp=function(e){return(e=ei(e))&&ne.test(e)?e.replace(ee,"\\$&"):e},b.every=function(e,t,n){var r=Ma(e)?o:ut;return n&&nr(e,t,n)&&(t=R),r(e,Qn(t,3))},b.find=fa,b.findIndex=mr,b.findKey=function(e,t){return p(e,Qn(t,3),pt)},b.findLast=da,b.findLastIndex=vr,b.findLastKey=function(e,t){return p(e,Qn(t,3),gt)},b.floor=As,b.forEach=jr,b.forEachRight=Ir,b.forIn=function(e,t){return null==e?e:Co(e,Qn(t,3),ii)},b.forInRight=function(e,t){return null==e?e:Oo(e,Qn(t,3),ii)},b.forOwn=function(e,t){return e&&pt(e,Qn(t,3))},b.forOwnRight=function(e,t){return e&&gt(e,Qn(t,3))},b.get=ti,b.gt=Ia,b.gte=Ta,b.has=function(e,t){return null!=e&&Zn(e,t,bt)},b.hasIn=ni,b.head=xr,b.identity=hi,b.includes=function(e,t,n,r){return e=Pr(e)?e:ai(e),n=n&&!r?Jr(n):0,r=e.length,0>n&&(n=ao(r+n,0)),Yr(e)?n<=r&&-1<e.indexOf(t,n):!!r&&-1<m(e,t,n)},b.indexOf=function(e,t,n){var r=null==e?0:e.length;return r?(0>(n=null==n?0:Jr(n))&&(n=ao(r+n,0)),m(e,t,n)):-1},b.inRange=function(e,t,n){return t=Kr(t),n===R?(n=t,t=0):n=Kr(n),(e=Zr(e))>=so(t,n)&&e<ao(t,n)},b.invoke=Ja,b.isArguments=Sa,b.isArray=Ma,b.isArrayBuffer=Ca,b.isArrayLike=Pr,b.isArrayLikeObject=Rr,b.isBoolean=function(e){return!0===e||!1===e||Vr(e)&&"[object Boolean]"==xt(e)},b.isBuffer=Oa,b.isDate=Da,b.isElement=function(e){return Vr(e)&&1===e.nodeType&&!Ur(e)},b.isEmpty=function(e){if(null==e)return!0;if(Pr(e)&&(Ma(e)||"string"==typeof e||"function"==typeof e.splice||Oa(e)||La(e)||Sa(e)))return!e.length;var t=Bo(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(or(e))return!St(e).length;for(var n in e)if(Mi.call(e,n))return!1;return!0},b.isEqual=function(e,t){return Et(e,t)},b.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:R)?n(e,t):R;return r===R?Et(e,t,R,n):!!r},b.isError=Lr,b.isFinite=function(e){return"number"==typeof e&&ro(e)},b.isFunction=Fr,b.isInteger=zr,b.isLength=Br,b.isMap=Na,b.isMatch=function(e,t){return e===t||jt(e,t,Jn(t))},b.isMatchWith=function(e,t,n){return n="function"==typeof n?n:R,jt(e,t,Jn(t),n)},b.isNaN=function(e){return Wr(e)&&e!=+e},b.isNative=function(e){if(Ho(e))throw new wi("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return It(e)},b.isNil=function(e){return null==e},b.isNull=function(e){return null===e},b.isNumber=Wr,b.isObject=Hr,b.isObjectLike=Vr,b.isPlainObject=Ur,b.isRegExp=Pa,b.isSafeInteger=function(e){return zr(e)&&-9007199254740991<=e&&9007199254740991>=e},b.isSet=Ra,b.isString=Yr,b.isSymbol=qr,b.isTypedArray=La,b.isUndefined=function(e){return e===R},b.isWeakMap=function(e){return Vr(e)&&"[object WeakMap]"==Bo(e)},b.isWeakSet=function(e){return Vr(e)&&"[object WeakSet]"==xt(e)},b.join=function(e,t){return null==e?"":io.call(e,t)},b.kebabCase=is,b.last=wr,b.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;if(n!==R&&(i=0>(i=Jr(n))?ao(r+i,0):so(i,r-1)),t==t){for(n=i+1;n--&&e[n]!==t;);e=n}else e=g(e,y,i,!0);return e},b.lowerCase=os,b.lowerFirst=as,b.lt=Fa,b.lte=za,b.max=function(e){return e&&e.length?ht(e,hi,wt):R},b.maxBy=function(e,t){return e&&e.length?ht(e,Qn(t,2),wt):R},b.mean=function(e){return x(e,hi)},b.meanBy=function(e,t){return x(e,Qn(t,2))},b.min=function(e){return e&&e.length?ht(e,hi,Mt):R},b.minBy=function(e,t){return e&&e.length?ht(e,Qn(t,2),Mt):R},b.stubArray=mi,b.stubFalse=vi,b.stubObject=function(){return{}},b.stubString=function(){return""},b.stubTrue=function(){return!0},b.multiply=Es,b.nth=function(e,t){return e&&e.length?Pt(e,Jr(t)):R},b.noConflict=function(){return Re._===this&&(Re._=Pi),this},b.noop=pi,b.now=xa,b.pad=function(e,t,n){e=ei(e);var r=(t=Jr(t))?N(e):0;return!t||r>=t?e:Mn(eo(t=(t-r)/2),n)+e+Mn(Xi(t),n)},b.padEnd=function(e,t,n){e=ei(e);var r=(t=Jr(t))?N(e):0;return t&&r<t?e+Mn(t-r,n):e},b.padStart=function(e,t,n){e=ei(e);var r=(t=Jr(t))?N(e):0;return t&&r<t?Mn(t-r,n)+e:e},b.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),co(ei(e).replace(ie,""),t||0)},b.random=function(e,t,n){if(n&&"boolean"!=typeof n&&nr(e,t,n)&&(t=n=R),n===R&&("boolean"==typeof t?(n=t,t=R):"boolean"==typeof e&&(n=e,e=R)),e===R&&t===R?(e=0,t=1):(e=Kr(e),t===R?(t=e,e=0):t=Kr(t)),e>t){var r=e;e=t,t=r}return n||e%1||t%1?(n=uo(),so(e+n*(t-e+Oe("1e-"+((n+"").length-1))),t)):Bt(e,t)},b.reduce=function(e,t,n){var r=Ma(e)?h:_,i=3>arguments.length;return r(e,Qn(t,4),n,i,So)},b.reduceRight=function(e,t,n){var r=Ma(e)?f:_,i=3>arguments.length;return r(e,Qn(t,4),n,i,Mo)},b.repeat=function(e,t,n){return t=(n?nr(e,t,n):t===R)?1:Jr(t),Ht(ei(e),t)},b.replace=function(){var e=arguments,t=ei(e[0]);return 3>e.length?t:t.replace(e[1],e[2])},b.result=function(e,t,n){var r=-1,i=(t=sn(t,e)).length;for(i||(i=1,e=R);++r<i;){var o=null==e?R:e[fr(t[r])];o===R&&(r=i,o=n),e=Fr(o)?o.call(e):o}return e},b.round=js,b.runInContext=e,b.sample=function(e){return(Ma(e)?Be:function(e){return Be(ai(e))})(e)},b.size=function(e){if(null==e)return 0;if(Pr(e))return Yr(e)?N(e):e.length;var t=Bo(e);return"[object Map]"==t||"[object Set]"==t?e.size:St(e).length},b.snakeCase=ss,b.some=function(e,t,n){var r=Ma(e)?d:Yt;return n&&nr(e,t,n)&&(t=R),r(e,Qn(t,3))},b.sortedIndex=function(e,t){return qt(e,t)},b.sortedIndexBy=function(e,t,n){return Qt(e,t,Qn(n,2))},b.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=qt(e,t);if(r<n&&Nr(e[r],t))return r}return-1},b.sortedLastIndex=function(e,t){return qt(e,t,!0)},b.sortedLastIndexBy=function(e,t,n){return Qt(e,t,Qn(n,2),!0)},b.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=qt(e,t,!0)-1;if(Nr(e[n],t))return n}return-1},b.startCase=ls,b.startsWith=function(e,t,n){return e=ei(e),n=null==n?0:ot(Jr(n),0,e.length),t=Gt(t),e.slice(n,n+t.length)==t},b.subtract=Is,b.sum=function(e){return e&&e.length?$(e,hi):0},b.sumBy=function(e,t){return e&&e.length?$(e,Qn(t,2)):0},b.template=function(e,t,n){var r=b.templateSettings;n&&nr(e,t,n)&&(t=R),e=ei(e),t=Va({},t,r,Fn);var i,o,a=ri(n=Va({},t.imports,r.imports,Fn)),s=E(n,a),l=0;n=t.interpolate||xe;var c="__p+='";n=ki((t.escape||xe).source+"|"+n.source+"|"+(n===J?he:xe).source+"|"+(t.evaluate||xe).source+"|$","g");var u=Mi.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"";if(e.replace(n,function(t,n,r,a,s,u){return r||(r=a),c+=e.slice(l,u).replace(we,S),n&&(i=!0,c+="'+__e("+n+")+'"),s&&(o=!0,c+="';"+s+";\n__p+='"),r&&(c+="'+((__t=("+r+"))==null?'':__t)+'"),l=u+t.length,t}),c+="';",(t=Mi.call(t,"variable")&&t.variable)||(c="with(obj){"+c+"}"),c=(o?c.replace(B,""):c).replace(H,"$1").replace(V,"$1;"),c="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(i?",__e=_.escape":"")+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}",(t=hs(function(){return bi(a,u+"return "+c).apply(R,s)})).source=c,Lr(t))throw t;return t},b.times=function(e,t){if(1>(e=Jr(e))||9007199254740991<e)return[];var n=4294967295,r=so(e,4294967295);for(e-=4294967295,r=k(r,t=Qn(t));++n<e;)t(n);return r},b.toFinite=Kr,b.toInteger=Jr,b.toLength=Gr,b.toLower=function(e){return ei(e).toLowerCase()},b.toNumber=Zr,b.toSafeInteger=function(e){return e?ot(Jr(e),-9007199254740991,9007199254740991):0===e?e:0},b.toString=ei,b.toUpper=function(e){return ei(e).toUpperCase()},b.trim=function(e,t,n){return(e=ei(e))&&(n||t===R)?e.replace(re,""):e&&(t=Gt(t))?ln(e=P(e),t=I(e,n=P(t)),n=T(e,n)+1).join(""):e},b.trimEnd=function(e,t,n){return(e=ei(e))&&(n||t===R)?e.replace(oe,""):e&&(t=Gt(t))?ln(e=P(e),0,t=T(e,P(t))+1).join(""):e},b.trimStart=function(e,t,n){return(e=ei(e))&&(n||t===R)?e.replace(ie,""):e&&(t=Gt(t))?ln(e=P(e),t=I(e,P(t))).join(""):e},b.truncate=function(e,t){var n=30,r="...";if(Hr(t)){var i="separator"in t?t.separator:i;n="length"in t?Jr(t.length):n,r="omission"in t?Gt(t.omission):r}var o=(e=ei(e)).length;if(je.test(e)){var a=P(e);o=a.length}if(n>=o)return e;if(1>(o=n-N(r)))return r;if(n=a?ln(a,0,o).join(""):e.slice(0,o),i===R)return n+r;if(a&&(o+=n.length-o),Pa(i)){if(e.slice(o).search(i)){var s=n;for(i.global||(i=ki(i.source,ei(fe.exec(i))+"g")),i.lastIndex=0;a=i.exec(s);)var l=a.index;n=n.slice(0,l===R?o:l)}}else e.indexOf(Gt(i),o)!=o&&(-1<(i=n.lastIndexOf(i))&&(n=n.slice(0,i)));return n+r},b.unescape=function(e){return(e=ei(e))&&Y.test(e)?e.replace(W,Ze):e},b.uniqueId=function(e){var t=++Ci;return ei(e)+t},b.upperCase=cs,b.upperFirst=us,b.each=jr,b.eachRight=Ir,b.first=xr,di(b,function(){var e={};return pt(b,function(t,n){Mi.call(b.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),b.VERSION="4.17.14",i("bind bindKey curry curryRight partial partialRight".split(" "),function(e){b[e].placeholder=b}),i(["drop","take"],function(e,t){_e.prototype[e]=function(n){n=n===R?1:ao(Jr(n),0);var r=this.__filtered__&&!t?new _e(this):this.clone();return r.__filtered__?r.__takeCount__=so(n,r.__takeCount__):r.__views__.push({size:so(n,4294967295),type:e+(0>r.__dir__?"Right":"")}),r},_e.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),i(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;_e.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qn(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),i(["head","last"],function(e,t){var n="take"+(t?"Right":"");_e.prototype[e]=function(){return this[n](1).value()[0]}}),i(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");_e.prototype[e]=function(){return this.__filtered__?new _e(this):this[n](1)}}),_e.prototype.compact=function(){return this.filter(hi)},_e.prototype.find=function(e){return this.filter(e).head()},_e.prototype.findLast=function(e){return this.reverse().find(e)},_e.prototype.invokeMap=Vt(function(e,t){return"function"==typeof e?new _e(this):this.map(function(n){return kt(n,e,t)})}),_e.prototype.reject=function(e){return this.filter(Dr(Qn(e)))},_e.prototype.slice=function(e,t){e=Jr(e);var n=this;return n.__filtered__&&(0<e||0>t)?new _e(n):(0>e?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==R&&(n=0>(t=Jr(t))?n.dropRight(-t):n.take(t-e)),n)},_e.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},_e.prototype.toArray=function(){return this.take(4294967295)},pt(_e.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=b[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(b.prototype[t]=function(){function t(e){return e=i.apply(b,u([e],s)),r&&f?e[0]:e}var a=this.__wrapped__,s=r?[1]:arguments,l=a instanceof _e,c=s[0],h=l||Ma(a);h&&n&&"function"==typeof c&&1!=c.length&&(l=h=!1);var f=this.__chain__,d=!!this.__actions__.length;c=o&&!f,l=l&&!d;return!o&&h?(a=l?a:new _e(this),(a=e.apply(a,s)).__actions__.push({func:Er,args:[t],thisArg:R}),new be(a,f)):c&&l?e.apply(this,s):(a=this.thru(t),c?r?a.value()[0]:a.value():a)})}),i("pop push shift sort splice unshift".split(" "),function(e){var t=ji[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);b.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ma(i)?i:[],e)}return this[n](function(n){return t.apply(Ma(n)?n:[],e)})}}),pt(_e.prototype,function(e,t){var n=b[t];if(n){var r=n.name+"";Mi.call(wo,r)||(wo[r]=[]),wo[r].push({name:t,func:n})}}),wo[jn(R,2).name]=[{name:"wrapper",func:R}],_e.prototype.clone=function(){var e=new _e(this.__wrapped__);return e.__actions__=gn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=gn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=gn(this.__views__),e},_e.prototype.reverse=function(){if(this.__filtered__){var e=new _e(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},_e.prototype.value=function(){var e,t=this.__wrapped__.value(),n=this.__dir__,r=Ma(t),i=0>n,o=r?t.length:0;e=o;for(var a=this.__views__,s=0,l=-1,c=a.length;++l<c;){var u=a[l],h=u.size;switch(u.type){case"drop":s+=h;break;case"dropRight":e-=h;break;case"take":e=so(e,s+h);break;case"takeRight":s=ao(s,e-h)}}if(a=(e={start:s,end:e}).start,e=(s=e.end)-a,a=i?s:a-1,l=(s=this.__iteratees__).length,c=0,u=so(e,this.__takeCount__),!r||!i&&o==e&&u==e)return tn(t,this.__actions__);r=[];e:for(;e--&&c<u;){for(i=-1,o=t[a+=n];++i<l;){h=(f=s[i]).type;var f=(0,f.iteratee)(o);if(2==h)o=f;else if(!f){if(1==h)continue e;break e}}r[c++]=o}return r},b.prototype.at=ua,b.prototype.chain=function(){return Ar(this)},b.prototype.commit=function(){return new be(this.value(),this.__chain__)},b.prototype.next=function(){this.__values__===R&&(this.__values__=Qr(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?R:this.__values__[this.__index__++]}},b.prototype.plant=function(e){for(var t,n=this;n instanceof te;){var r=gr(n);r.__index__=0,r.__values__=R,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},b.prototype.reverse=function(){var e=this.__wrapped__;return e instanceof _e?(this.__actions__.length&&(e=new _e(this)),(e=e.reverse()).__actions__.push({func:Er,args:[_r],thisArg:R}),new be(e,this.__chain__)):this.thru(_r)},b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=function(){return tn(this.__wrapped__,this.__actions__)},b.prototype.first=b.prototype.head,qi&&(b.prototype[qi]=function(){return this}),b}();Fe?((Fe.exports=Xe)._=Xe,Le._=Xe):Re._=Xe}).call(te)}),ie=ne(function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var i in n){var o=n[i];e.call(r,o)?r[o].push(i):r[o]=[i]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}}),oe=(ie.aliasToReal,ie.aryMethod,ie.aryRearg,ie.iterateeAry,ie.iterateeRearg,ie.methodRearg,ie.methodSpread,ie.mutate,ie.realToAlias,ie.remap,ie.skipFixed,ie.skipRearg,{}),ae=Array.prototype.push;function se(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function le(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function ce(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=t.apply(void 0,r);return e.apply(void 0,r),i}}}var ue=function e(t,n,r,i){var o="function"==typeof n,a=n===Object(n);if(a&&(i=r,r=n,n=void 0),null==r)throw new TypeError;i||(i={});var s={cap:!("cap"in i)||i.cap,curry:!("curry"in i)||i.curry,fixed:!("fixed"in i)||i.fixed,immutable:!("immutable"in i)||i.immutable,rearg:!("rearg"in i)||i.rearg},l=o?r:oe,c="curry"in i&&i.curry,u="fixed"in i&&i.fixed,h="rearg"in i&&i.rearg,f=o?r.runInContext():void 0,d=o?r:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},p=d.ary,g=d.assign,m=d.clone,v=d.curry,y=d.forEach,x=d.isArray,w=d.isError,b=d.isFunction,_=d.isWeakMap,$=d.keys,k=d.rearg,A=d.toInteger,E=d.toPath,j=$(ie.aryMethod),I={castArray:function(e){return function(){var t=arguments[0];return x(t)?e(le(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[0],n=arguments[1],r=e(t,n),i=r.length;return s.cap&&"number"==typeof n?(n=n>2?n-2:1,i&&i<=n?r:se(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!b(n))return e(n,Object(t));var r=[];return y($(t),function(e){b(t[e])&&r.push([e,n.prototype[e]])}),e(n,Object(t)),y(r,function(e){var t=e[1];b(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]}),n}},nthArg:function(e){return function(t){var n=t<0?1:A(t)+1;return v(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return v(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),i)}}};function T(e,t){if(s.cap){var n=ie.iterateeRearg[e];if(n)return function(e,t){return D(e,function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(k(se(e,n),t),n)})}(t,n);var r=!o&&ie.iterateeAry[e];if(r)return function(e,t){return D(e,function(e){return"function"==typeof e?se(e,t):e})}(t,r)}return t}function S(e,t,n){if(s.fixed&&(u||!ie.skipFixed[e])){var r=ie.methodSpread[e],i=r&&r.start;return void 0===i?p(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var o=i[t],a=i.slice(0,t);return o&&ae.apply(a,o),t!=r&&ae.apply(a,i.slice(t+1)),e.apply(this,a)}}(t,i)}return t}function M(e,t,n){return s.rearg&&n>1&&(h||!ie.skipRearg[e])?k(t,ie.methodRearg[e]||ie.aryRearg[n]):t}function C(e,t){for(var n=-1,r=(t=E(t)).length,i=r-1,o=m(Object(e)),a=o;null!=a&&++n<r;){var s=t[n],l=a[s];null==l||b(l)||w(l)||_(l)||(a[s]=m(n==i?l:Object(l))),a=a[s]}return o}function O(t,n){var r=ie.aliasToReal[t]||t,a=ie.remap[r]||r,s=i;return function(t){var i=o?f:d,l=o?f[a]:n,c=g(g({},s),t);return e(i,r,l,c)}}function D(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var i=s.rearg?0:n-1;return r[i]=t(r[i]),e.apply(void 0,r)}}function N(e,t,n){var r,i=ie.aliasToReal[e]||e,o=t,a=I[i];return a?o=a(t):s.immutable&&(ie.mutate.array[i]?o=ce(t,le):ie.mutate.object[i]?o=ce(t,function(e){return function(t){return e({},t)}}(t)):ie.mutate.set[i]&&(o=ce(t,C))),y(j,function(e){return y(ie.aryMethod[e],function(t){if(i==t){var n=ie.methodSpread[i],a=n&&n.afterRearg;return r=a?S(i,M(i,o,e),e):M(i,S(i,o,e),e),r=T(i,r),l=r,u=e,r=c||s.curry&&u>1?v(l,u):l,!1}var l,u}),!r}),r||(r=o),r==t&&(r=c?v(r,1):function(){return t.apply(this,arguments)}),r.convert=O(i,t),r.placeholder=t.placeholder=n,r}if(!a)return N(n,r,l);var P=r,R=[];return y(j,function(e){y(ie.aryMethod[e],function(e){var t=P[ie.remap[e]||e];t&&R.push([e,N(e,t,P)])})}),y($(P),function(e){var t=P[e];if("function"==typeof t){for(var n=R.length;n--;)if(R[n][0]==e)return;t.convert=O(e,t),R.push([e,t])}}),y(R,function(e){P[e[0]]=e[1]}),P.convert=function(e){return P.runInContext.convert(e)(void 0)},P.placeholder=P,y($(P),function(e){y(ie.realToAlias[e]||[],function(t){P[t]=P[e]})}),P},he=re.runInContext(),fe=ue(he,he),de=fe.union,pe=fe.reduce,ge=fe.isUndefined,me=fe.cloneDeep,ve=fe.split,ye=fe.some,xe=fe.map,we=fe.filter,be=fe.isEmpty,_e=fe.countBy,$e=fe.includes,ke=fe.last,Ae=fe.find,Ee=fe.constant,je=fe.take,Ie=fe.first,Te=fe.intersection,Se=fe.mapValues,Me=fe.isNull,Ce=fe.has,Oe=fe.isNumber,De=fe.isString,Ne=fe.isBoolean,Pe=(fe.isDate,fe.isArray,fe.isObject,fe.clone),Re=fe.values,Le=fe.keyBy,Fe=fe.keys,ze=(fe.orderBy,fe.concat),Be=(fe.reverse,fe.difference),He=(fe.merge,fe.flatten),Ve=fe.each,We=(fe.pull,fe.join),Ue=fe.defaultCase,Ye=fe.uniqBy,qe=fe.every,Qe=fe.uniqWith,Ke=(fe.isFunction,fe.groupBy),Je=(fe.differenceBy,fe.intersectionBy,fe.isEqual,fe.max),Ge=fe.sortBy,Ze=fe.assign,Xe=1;var et,tt,nt,rt={nextValue:function(){return(Xe=(9301*Xe+49297)%233280)/233280},seed:function(e){Xe=e}},it="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function ot(){nt=!1}function at(e){if(e){if(e!==et){if(e.length!==it.length)throw new Error("Custom alphabet for shortid must be "+it.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter(function(e,t,n){return t!==n.lastIndexOf(e)});if(t.length)throw new Error("Custom alphabet for shortid must be "+it.length+" unique characters. These characters were not unique: "+t.join(", "));et=e,ot()}}else et!==it&&(et=it,ot())}function st(){return nt||(nt=function(){et||at(it);for(var e,t=et.split(""),n=[],r=rt.nextValue();t.length>0;)r=rt.nextValue(),e=Math.floor(r*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}var lt={get:function(){return et||it},characters:function(e){return at(e),et},seed:function(e){rt.seed(e),tt!==e&&(ot(),tt=e)},lookup:function(e){return st()[e]},shuffled:st},ct="object"==typeof window&&(window.crypto||window.msCrypto),ut=ct&&ct.getRandomValues?function(e){return ct.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n<e;n++)t.push(Math.floor(256*Math.random()));return t},ht=function(e,t,n){var r=(2<<Math.log(t.length-1)/Math.LN2)-1,i=Math.ceil(1.6*r*n/t.length);n=+n;for(var o="";;)for(var a=e(i),s=0;s<i;s++){var l=a[s]&r;if(t[l]&&(o+=t[l]).length===n)return o}};var ft,dt,pt=function(e){for(var t,n=0,r="";!t;)r+=ht(ut,lt.get(),1),t=e<Math.pow(16,n+1),n++;return r},gt=1459707606518,mt=6;var vt=function(e){var t="",n=Math.floor(.001*(Date.now()-gt));return n===dt?ft++:(ft=0,dt=n),t+=pt(mt),t+=pt(e),ft>0&&(t+=pt(ft)),t+=pt(n)};var yt=function(e){return!(!e||"string"!=typeof e||e.length<6||new RegExp("[^"+lt.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e))},xt=ne(function(e){var t=0;function n(){return vt(t)}e.exports=n,e.exports.generate=n,e.exports.seed=function(t){return lt.seed(t),e.exports},e.exports.worker=function(n){return t=n,e.exports},e.exports.characters=function(e){return void 0!==e&&lt.characters(e),lt.shuffled()},e.exports.isValid=yt}),wt=(xt.generate,xt.seed,xt.worker,xt.characters,xt.isValid,xt.generate),bt=ne(function(e,t){(function(){var n,r=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="__lodash_hash_undefined__",s=500,l="__lodash_placeholder__",c=1,u=2,h=4,f=1,d=2,p=1,g=2,m=4,v=8,y=16,x=32,w=64,b=128,_=256,$=512,k=30,A="...",E=800,j=16,I=1,T=2,S=1/0,M=9007199254740991,C=1.7976931348623157e308,O=NaN,D=4294967295,N=D-1,P=D>>>1,R=[["ary",b],["bind",p],["bindKey",g],["curry",v],["curryRight",y],["flip",$],["partial",x],["partialRight",w],["rearg",_]],L="[object Arguments]",F="[object Array]",z="[object AsyncFunction]",B="[object Boolean]",H="[object Date]",V="[object DOMException]",W="[object Error]",U="[object Function]",Y="[object GeneratorFunction]",q="[object Map]",Q="[object Number]",K="[object Null]",J="[object Object]",G="[object Proxy]",Z="[object RegExp]",X="[object Set]",ee="[object String]",ne="[object Symbol]",re="[object Undefined]",ie="[object WeakMap]",oe="[object WeakSet]",ae="[object ArrayBuffer]",se="[object DataView]",le="[object Float32Array]",ce="[object Float64Array]",ue="[object Int8Array]",he="[object Int16Array]",fe="[object Int32Array]",de="[object Uint8Array]",pe="[object Uint8ClampedArray]",ge="[object Uint16Array]",me="[object Uint32Array]",ve=/\b__p \+= '';/g,ye=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,we=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,_e=RegExp(we.source),$e=RegExp(be.source),ke=/<%-([\s\S]+?)%>/g,Ae=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g,je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ie=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Se=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(Se.source),Ce=/^\s+|\s+$/g,Oe=/^\s+/,De=/\s+$/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pe=/\{\n\/\* \[wrapped with (.+)\] \*/,Re=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fe=/\\(\\)?/g,ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Be=/\w*$/,He=/^[-+]0x[0-9a-f]+$/i,Ve=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ue=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,Ke=/['\n\r\u2028\u2029\\]/g,Je="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ge="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ze="[\\ud800-\\udfff]",Xe="["+Ge+"]",et="["+Je+"]",tt="\\d+",nt="[\\u2700-\\u27bf]",rt="[a-z\\xdf-\\xf6\\xf8-\\xff]",it="[^\\ud800-\\udfff"+Ge+tt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ot="\\ud83c[\\udffb-\\udfff]",at="[^\\ud800-\\udfff]",st="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",ct="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ut="(?:"+rt+"|"+it+")",ht="(?:"+ct+"|"+it+")",ft="(?:"+et+"|"+ot+")"+"?",dt="[\\ufe0e\\ufe0f]?"+ft+("(?:\\u200d(?:"+[at,st,lt].join("|")+")[\\ufe0e\\ufe0f]?"+ft+")*"),pt="(?:"+[nt,st,lt].join("|")+")"+dt,gt="(?:"+[at+et+"?",et,st,lt,Ze].join("|")+")",mt=RegExp("[']","g"),vt=RegExp(et,"g"),yt=RegExp(ot+"(?="+ot+")|"+gt+dt,"g"),xt=RegExp([ct+"?"+rt+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[Xe,ct,"$"].join("|")+")",ht+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[Xe,ct+ut,"$"].join("|")+")",ct+"?"+ut+"+(?:['](?:d|ll|m|re|s|t|ve))?",ct+"+(?:['](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tt,pt].join("|"),"g"),wt=RegExp("[\\u200d\\ud800-\\udfff"+Je+"\\ufe0e\\ufe0f]"),bt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_t=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$t=-1,kt={};kt[le]=kt[ce]=kt[ue]=kt[he]=kt[fe]=kt[de]=kt[pe]=kt[ge]=kt[me]=!0,kt[L]=kt[F]=kt[ae]=kt[B]=kt[se]=kt[H]=kt[W]=kt[U]=kt[q]=kt[Q]=kt[J]=kt[Z]=kt[X]=kt[ee]=kt[ie]=!1;var At={};At[L]=At[F]=At[ae]=At[se]=At[B]=At[H]=At[le]=At[ce]=At[ue]=At[he]=At[fe]=At[q]=At[Q]=At[J]=At[Z]=At[X]=At[ee]=At[ne]=At[de]=At[pe]=At[ge]=At[me]=!0,At[W]=At[U]=At[ie]=!1;var Et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jt=parseFloat,It=parseInt,Tt="object"==typeof te&&te&&te.Object===Object&&te,St="object"==typeof self&&self&&self.Object===Object&&self,Mt=Tt||St||Function("return this")(),Ct=t&&!t.nodeType&&t,Ot=Ct&&e&&!e.nodeType&&e,Dt=Ot&&Ot.exports===Ct,Nt=Dt&&Tt.process,Pt=function(){try{var e=Ot&&Ot.require&&Ot.require("util").types;return e||Nt&&Nt.binding&&Nt.binding("util")}catch(e){}}(),Rt=Pt&&Pt.isArrayBuffer,Lt=Pt&&Pt.isDate,Ft=Pt&&Pt.isMap,zt=Pt&&Pt.isRegExp,Bt=Pt&&Pt.isSet,Ht=Pt&&Pt.isTypedArray;function Vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Wt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Yt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function qt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Qt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Kt(e,t){return!!(null==e?0:e.length)&&an(e,t,0)>-1}function Jt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Gt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Zt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Xt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function en(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function tn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var nn=un("length");function rn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function on(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function an(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):on(e,ln,n)}function sn(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function ln(e){return e!=e}function cn(e,t){var n=null==e?0:e.length;return n?dn(e,t)/n:O}function un(e){return function(t){return null==t?n:t[e]}}function hn(e){return function(t){return null==e?n:e[t]}}function fn(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function dn(e,t){for(var r,i=-1,o=e.length;++i<o;){var a=t(e[i]);a!==n&&(r=r===n?a:r+a)}return r}function pn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function gn(e){return function(t){return e(t)}}function mn(e,t){return Gt(t,function(t){return e[t]})}function vn(e,t){return e.has(t)}function yn(e,t){for(var n=-1,r=e.length;++n<r&&an(t,e[n],0)>-1;);return n}function xn(e,t){for(var n=e.length;n--&&an(t,e[n],0)>-1;);return n}var wn=hn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),bn=hn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function _n(e){return"\\"+Et[e]}function $n(e){return wt.test(e)}function kn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function An(e,t){return function(n){return e(t(n))}}function En(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==l||(e[n]=l,o[i++]=n)}return o}function jn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function In(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Tn(e){return $n(e)?function(e){var t=yt.lastIndex=0;for(;yt.test(e);)++t;return t}(e):nn(e)}function Sn(e){return $n(e)?function(e){return e.match(yt)||[]}(e):function(e){return e.split("")}(e)}var Mn=hn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Cn=function e(t){var te,Je=(t=null==t?Mt:Cn.defaults(Mt.Object(),t,Cn.pick(Mt,_t))).Array,Ge=t.Date,Ze=t.Error,Xe=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,it=t.TypeError,ot=Je.prototype,at=Xe.prototype,st=tt.prototype,lt=t["__core-js_shared__"],ct=at.toString,ut=st.hasOwnProperty,ht=0,ft=(te=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||""))?"Symbol(src)_1."+te:"",dt=st.toString,pt=ct.call(tt),gt=Mt._,yt=nt("^"+ct.call(ut).replace(Se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=Dt?t.Buffer:n,Et=t.Symbol,Tt=t.Uint8Array,St=wt?wt.allocUnsafe:n,Ct=An(tt.getPrototypeOf,tt),Ot=tt.create,Nt=st.propertyIsEnumerable,Pt=ot.splice,nn=Et?Et.isConcatSpreadable:n,hn=Et?Et.iterator:n,On=Et?Et.toStringTag:n,Dn=function(){try{var e=Fo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Nn=t.clearTimeout!==Mt.clearTimeout&&t.clearTimeout,Pn=Ge&&Ge.now!==Mt.Date.now&&Ge.now,Rn=t.setTimeout!==Mt.setTimeout&&t.setTimeout,Ln=et.ceil,Fn=et.floor,zn=tt.getOwnPropertySymbols,Bn=wt?wt.isBuffer:n,Hn=t.isFinite,Vn=ot.join,Wn=An(tt.keys,tt),Un=et.max,Yn=et.min,qn=Ge.now,Qn=t.parseInt,Kn=et.random,Jn=ot.reverse,Gn=Fo(t,"DataView"),Zn=Fo(t,"Map"),Xn=Fo(t,"Promise"),er=Fo(t,"Set"),tr=Fo(t,"WeakMap"),nr=Fo(tt,"create"),rr=tr&&new tr,ir={},or=ha(Gn),ar=ha(Zn),sr=ha(Xn),lr=ha(er),cr=ha(tr),ur=Et?Et.prototype:n,hr=ur?ur.valueOf:n,fr=ur?ur.toString:n;function dr(e){if(Is(e)&&!vs(e)&&!(e instanceof vr)){if(e instanceof mr)return e;if(ut.call(e,"__wrapped__"))return fa(e)}return new mr(e)}var pr=function(){function e(){}return function(t){if(!js(t))return{};if(Ot)return Ot(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function gr(){}function mr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=D,this.__views__=[]}function yr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function wr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function br(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new wr;++t<n;)this.add(e[t])}function _r(e){var t=this.__data__=new xr(e);this.size=t.size}function $r(e,t){var n=vs(e),r=!n&&ms(e),i=!n&&!r&&bs(e),o=!n&&!r&&!i&&Ps(e),a=n||r||i||o,s=a?pn(e.length,rt):[],l=s.length;for(var c in e)!t&&!ut.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Yo(c,l))||s.push(c);return s}function kr(e){var t=e.length;return t?e[bi(0,t-1)]:n}function Ar(e,t){return la(no(e),Dr(t,0,e.length))}function Er(e){return la(no(e))}function jr(e,t,r){(r===n||ds(e[t],r))&&(r!==n||t in e)||Cr(e,t,r)}function Ir(e,t,r){var i=e[t];ut.call(e,t)&&ds(i,r)&&(r!==n||t in e)||Cr(e,t,r)}function Tr(e,t){for(var n=e.length;n--;)if(ds(e[n][0],t))return n;return-1}function Sr(e,t,n,r){return Fr(e,function(e,i,o){t(r,e,n(e),o)}),r}function Mr(e,t){return e&&ro(t,il(t),e)}function Cr(e,t,n){"__proto__"==t&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Or(e,t){for(var r=-1,i=t.length,o=Je(i),a=null==e;++r<i;)o[r]=a?n:Xs(e,t[r]);return o}function Dr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function Nr(e,t,r,i,o,a){var s,l=t&c,f=t&u,d=t&h;if(r&&(s=o?r(e,i,o,a):r(e)),s!==n)return s;if(!js(e))return e;var p=vs(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ut.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return no(e,s)}else{var g=Ho(e),m=g==U||g==Y;if(bs(e))return Ji(e,l);if(g==J||g==L||m&&!o){if(s=f||m?{}:Wo(e),!l)return f?function(e,t){return ro(e,Bo(e),t)}(e,function(e,t){return e&&ro(t,ol(t),e)}(s,e)):function(e,t){return ro(e,zo(e),t)}(e,Mr(s,e))}else{if(!At[g])return o?e:{};s=function(e,t,n){var r,i,o,a=e.constructor;switch(t){case ae:return Gi(e);case B:case H:return new a(+e);case se:return function(e,t){var n=t?Gi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case le:case ce:case ue:case he:case fe:case de:case pe:case ge:case me:return Zi(e,n);case q:return new a;case Q:case ee:return new a(e);case Z:return(o=new(i=e).constructor(i.source,Be.exec(i))).lastIndex=i.lastIndex,o;case X:return new a;case ne:return r=e,hr?tt(hr.call(r)):{}}}(e,g,l)}}a||(a=new _r);var v=a.get(e);if(v)return v;a.set(e,s),Os(e)?e.forEach(function(n){s.add(Nr(n,t,r,n,e,a))}):Ts(e)&&e.forEach(function(n,i){s.set(i,Nr(n,t,r,i,e,a))});var y=p?n:(d?f?Co:Mo:f?ol:il)(e);return Ut(y||e,function(n,i){y&&(n=e[i=n]),Ir(s,i,Nr(n,t,r,i,e,a))}),s}function Pr(e,t,r){var i=r.length;if(null==e)return!i;for(e=tt(e);i--;){var o=r[i],a=t[o],s=e[o];if(s===n&&!(o in e)||!a(s))return!1}return!0}function Rr(e,t,r){if("function"!=typeof e)throw new it(o);return ia(function(){e.apply(n,r)},t)}function Lr(e,t,n,i){var o=-1,a=Kt,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=Gt(t,gn(n))),i?(a=Jt,s=!1):t.length>=r&&(a=vn,s=!1,t=new br(t));e:for(;++o<l;){var h=e[o],f=null==n?h:n(h);if(h=i||0!==h?h:0,s&&f==f){for(var d=u;d--;)if(t[d]===f)continue e;c.push(h)}else a(t,f,i)||c.push(h)}return c}dr.templateSettings={escape:ke,evaluate:Ae,interpolate:Ee,variable:"",imports:{_:dr}},dr.prototype=gr.prototype,dr.prototype.constructor=dr,mr.prototype=pr(gr.prototype),mr.prototype.constructor=mr,vr.prototype=pr(gr.prototype),vr.prototype.constructor=vr,yr.prototype.clear=function(){this.__data__=nr?nr(null):{},this.size=0},yr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},yr.prototype.get=function(e){var t=this.__data__;if(nr){var r=t[e];return r===a?n:r}return ut.call(t,e)?t[e]:n},yr.prototype.has=function(e){var t=this.__data__;return nr?t[e]!==n:ut.call(t,e)},yr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nr&&t===n?a:t,this},xr.prototype.clear=function(){this.__data__=[],this.size=0},xr.prototype.delete=function(e){var t=this.__data__,n=Tr(t,e);return!(n<0||(n==t.length-1?t.pop():Pt.call(t,n,1),--this.size,0))},xr.prototype.get=function(e){var t=this.__data__,r=Tr(t,e);return r<0?n:t[r][1]},xr.prototype.has=function(e){return Tr(this.__data__,e)>-1},xr.prototype.set=function(e,t){var n=this.__data__,r=Tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Zn||xr),string:new yr}},wr.prototype.delete=function(e){var t=Ro(this,e).delete(e);return this.size-=t?1:0,t},wr.prototype.get=function(e){return Ro(this,e).get(e)},wr.prototype.has=function(e){return Ro(this,e).has(e)},wr.prototype.set=function(e,t){var n=Ro(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},br.prototype.add=br.prototype.push=function(e){return this.__data__.set(e,a),this},br.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.clear=function(){this.__data__=new xr,this.size=0},_r.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_r.prototype.get=function(e){return this.__data__.get(e)},_r.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xr){var i=n.__data__;if(!Zn||i.length<r-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new wr(i)}return n.set(e,t),this.size=n.size,this};var Fr=ao(qr),zr=ao(Qr,!0);function Br(e,t){var n=!0;return Fr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function Hr(e,t,r){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(l===n?s==s&&!Ns(s):r(s,l)))var l=s,c=a}return c}function Vr(e,t){var n=[];return Fr(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Wr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Uo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Wr(s,t-1,n,r,i):Zt(i,s):r||(i[i.length]=s)}return i}var Ur=so(),Yr=so(!0);function qr(e,t){return e&&Ur(e,t,il)}function Qr(e,t){return e&&Yr(e,t,il)}function Kr(e,t){return Qt(t,function(t){return ks(e[t])})}function Jr(e,t){for(var r=0,i=(t=Yi(t,e)).length;null!=e&&r<i;)e=e[ua(t[r++])];return r&&r==i?e:n}function Gr(e,t,n){var r=t(e);return vs(e)?r:Zt(r,n(e))}function Zr(e){return null==e?e===n?re:K:On&&On in tt(e)?function(e){var t=ut.call(e,On),r=e[On];try{e[On]=n;var i=!0}catch(e){}var o=dt.call(e);return i&&(t?e[On]=r:delete e[On]),o}(e):function(e){return dt.call(e)}(e)}function Xr(e,t){return e>t}function ei(e,t){return null!=e&&ut.call(e,t)}function ti(e,t){return null!=e&&t in tt(e)}function ni(e,t,r){for(var i=r?Jt:Kt,o=e[0].length,a=e.length,s=a,l=Je(a),c=1/0,u=[];s--;){var h=e[s];s&&t&&(h=Gt(h,gn(t))),c=Yn(h.length,c),l[s]=!r&&(t||o>=120&&h.length>=120)?new br(s&&h):n}h=e[0];var f=-1,d=l[0];e:for(;++f<o&&u.length<c;){var p=h[f],g=t?t(p):p;if(p=r||0!==p?p:0,!(d?vn(d,g):i(u,g,r))){for(s=a;--s;){var m=l[s];if(!(m?vn(m,g):i(e[s],g,r)))continue e}d&&d.push(g),u.push(p)}}return u}function ri(e,t,r){var i=null==(e=ta(e,t=Yi(t,e)))?e:e[ua($a(t))];return null==i?n:Vt(i,e,r)}function ii(e){return Is(e)&&Zr(e)==L}function oi(e,t,r,i,o){return e===t||(null==e||null==t||!Is(e)&&!Is(t)?e!=e&&t!=t:function(e,t,r,i,o,a){var s=vs(e),l=vs(t),c=s?F:Ho(e),u=l?F:Ho(t),h=(c=c==L?J:c)==J,p=(u=u==L?J:u)==J,g=c==u;if(g&&bs(e)){if(!bs(t))return!1;s=!0,h=!1}if(g&&!h)return a||(a=new _r),s||Ps(e)?To(e,t,r,i,o,a):function(e,t,n,r,i,o,a){switch(n){case se:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ae:return!(e.byteLength!=t.byteLength||!o(new Tt(e),new Tt(t)));case B:case H:case Q:return ds(+e,+t);case W:return e.name==t.name&&e.message==t.message;case Z:case ee:return e==t+"";case q:var s=kn;case X:var l=r&f;if(s||(s=jn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=d,a.set(e,t);var u=To(s(e),s(t),r,i,o,a);return a.delete(e),u;case ne:if(hr)return hr.call(e)==hr.call(t)}return!1}(e,t,c,r,i,o,a);if(!(r&f)){var m=h&&ut.call(e,"__wrapped__"),v=p&&ut.call(t,"__wrapped__");if(m||v){var y=m?e.value():e,x=v?t.value():t;return a||(a=new _r),o(y,x,r,i,a)}}return!!g&&(a||(a=new _r),function(e,t,r,i,o,a){var s=r&f,l=Mo(e),c=l.length,u=Mo(t).length;if(c!=u&&!s)return!1;for(var h=c;h--;){var d=l[h];if(!(s?d in t:ut.call(t,d)))return!1}var p=a.get(e);if(p&&a.get(t))return p==t;var g=!0;a.set(e,t),a.set(t,e);for(var m=s;++h<c;){d=l[h];var v=e[d],y=t[d];if(i)var x=s?i(y,v,d,t,e,a):i(v,y,d,e,t,a);if(!(x===n?v===y||o(v,y,r,i,a):x)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var w=e.constructor,b=t.constructor;w!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b)&&(g=!1)}return a.delete(e),a.delete(t),g}(e,t,r,i,o,a))}(e,t,r,i,oi,o))}function ai(e,t,r,i){var o=r.length,a=o,s=!i;if(null==e)return!a;for(e=tt(e);o--;){var l=r[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=r[o])[0],u=e[c],h=l[1];if(s&&l[2]){if(u===n&&!(c in e))return!1}else{var p=new _r;if(i)var g=i(u,h,c,e,t,p);if(!(g===n?oi(h,u,f|d,i,p):g))return!1}}return!0}function si(e){return!(!js(e)||(t=e,ft&&ft in t))&&(ks(e)?yt:We).test(ha(e));var t}function li(e){return"function"==typeof e?e:null==e?Sl:"object"==typeof e?vs(e)?pi(e[0],e[1]):di(e):Fl(e)}function ci(e){if(!Go(e))return Wn(e);var t=[];for(var n in tt(e))ut.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ui(e){if(!js(e))return function(e){var t=[];if(null!=e)for(var n in tt(e))t.push(n);return t}(e);var t=Go(e),n=[];for(var r in e)("constructor"!=r||!t&&ut.call(e,r))&&n.push(r);return n}function hi(e,t){return e<t}function fi(e,t){var n=-1,r=xs(e)?Je(e.length):[];return Fr(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function di(e){var t=Lo(e);return 1==t.length&&t[0][2]?Xo(t[0][0],t[0][1]):function(n){return n===e||ai(n,e,t)}}function pi(e,t){return Qo(e)&&Zo(t)?Xo(ua(e),t):function(r){var i=Xs(r,e);return i===n&&i===t?el(r,e):oi(t,i,f|d)}}function gi(e,t,r,i,o){e!==t&&Ur(t,function(a,s){if(o||(o=new _r),js(a))!function(e,t,r,i,o,a,s){var l=na(e,r),c=na(t,r),u=s.get(c);if(u)jr(e,r,u);else{var h=a?a(l,c,r+"",e,t,s):n,f=h===n;if(f){var d=vs(c),p=!d&&bs(c),g=!d&&!p&&Ps(c);h=c,d||p||g?vs(l)?h=l:ws(l)?h=no(l):p?(f=!1,h=Ji(c,!0)):g?(f=!1,h=Zi(c,!0)):h=[]:Ms(c)||ms(c)?(h=l,ms(l)?h=Ws(l):js(l)&&!ks(l)||(h=Wo(c))):f=!1}f&&(s.set(c,h),o(h,c,i,a,s),s.delete(c)),jr(e,r,h)}}(e,t,s,r,gi,i,o);else{var l=i?i(na(e,s),a,s+"",e,t,o):n;l===n&&(l=a),jr(e,s,l)}},ol)}function mi(e,t){var r=e.length;if(r)return Yo(t+=t<0?r:0,r)?e[t]:n}function vi(e,t,n){var r=-1;return t=Gt(t.length?t:[Sl],gn(Po())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(fi(e,function(e,n,i){return{criteria:Gt(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Xi(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function yi(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Jr(e,a);n(s,a)&&Ei(o,Yi(a,e),s)}return o}function xi(e,t,n,r){var i=r?sn:an,o=-1,a=t.length,s=e;for(e===t&&(t=no(t)),n&&(s=Gt(e,gn(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&Pt.call(s,l,1),Pt.call(e,l,1);return e}function wi(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Yo(i)?Pt.call(e,i,1):Li(e,i)}}return e}function bi(e,t){return e+Fn(Kn()*(t-e+1))}function _i(e,t){var n="";if(!e||t<1||t>M)return n;do{t%2&&(n+=e),(t=Fn(t/2))&&(e+=e)}while(t);return n}function $i(e,t){return oa(ea(e,t,Sl),e+"")}function ki(e){return kr(dl(e))}function Ai(e,t){var n=dl(e);return la(n,Dr(t,0,n.length))}function Ei(e,t,r,i){if(!js(e))return e;for(var o=-1,a=(t=Yi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var c=ua(t[o]),u=r;if(o!=s){var h=l[c];(u=i?i(h,c,l):n)===n&&(u=js(h)?h:Yo(t[o+1])?[]:{})}Ir(l,c,u),l=l[c]}return e}var ji=rr?function(e,t){return rr.set(e,t),e}:Sl,Ii=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:jl(t),writable:!0})}:Sl;function Ti(e){return la(dl(e))}function Si(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Je(i);++r<i;)o[r]=e[r+t];return o}function Mi(e,t){var n;return Fr(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function Ci(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=P){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Ns(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Oi(e,t,Sl,n)}function Oi(e,t,r,i){t=r(t);for(var o=0,a=null==e?0:e.length,s=t!=t,l=null===t,c=Ns(t),u=t===n;o<a;){var h=Fn((o+a)/2),f=r(e[h]),d=f!==n,p=null===f,g=f==f,m=Ns(f);if(s)var v=i||g;else v=u?g&&(i||d):l?g&&d&&(i||!p):c?g&&d&&!p&&(i||!m):!p&&!m&&(i?f<=t:f<t);v?o=h+1:a=h}return Yn(a,N)}function Di(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ds(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function Ni(e){return"number"==typeof e?e:Ns(e)?O:+e}function Pi(e){if("string"==typeof e)return e;if(vs(e))return Gt(e,Pi)+"";if(Ns(e))return fr?fr.call(e):"";var t=e+"";return"0"==t&&1/e==-S?"-0":t}function Ri(e,t,n){var i=-1,o=Kt,a=e.length,s=!0,l=[],c=l;if(n)s=!1,o=Jt;else if(a>=r){var u=t?null:$o(e);if(u)return jn(u);s=!1,o=vn,c=new br}else c=t?[]:l;e:for(;++i<a;){var h=e[i],f=t?t(h):h;if(h=n||0!==h?h:0,s&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),l.push(h)}else o(c,f,n)||(c!==l&&c.push(f),l.push(h))}return l}function Li(e,t){return null==(e=ta(e,t=Yi(t,e)))||delete e[ua($a(t))]}function Fi(e,t,n,r){return Ei(e,t,n(Jr(e,t)),r)}function zi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Si(e,r?0:o,r?o+1:i):Si(e,r?o+1:0,r?i:o)}function Bi(e,t){var n=e;return n instanceof vr&&(n=n.value()),Xt(t,function(e,t){return t.func.apply(t.thisArg,Zt([e],t.args))},n)}function Hi(e,t,n){var r=e.length;if(r<2)return r?Ri(e[0]):[];for(var i=-1,o=Je(r);++i<r;)for(var a=e[i],s=-1;++s<r;)s!=i&&(o[i]=Lr(o[i]||a,e[s],t,n));return Ri(Wr(o,1),t,n)}function Vi(e,t,r){for(var i=-1,o=e.length,a=t.length,s={};++i<o;){var l=i<a?t[i]:n;r(s,e[i],l)}return s}function Wi(e){return ws(e)?e:[]}function Ui(e){return"function"==typeof e?e:Sl}function Yi(e,t){return vs(e)?e:Qo(e,t)?[e]:ca(Us(e))}var qi=$i;function Qi(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:Si(e,t,r)}var Ki=Nn||function(e){return Mt.clearTimeout(e)};function Ji(e,t){if(t)return e.slice();var n=e.length,r=St?St(n):new e.constructor(n);return e.copy(r),r}function Gi(e){var t=new e.constructor(e.byteLength);return new Tt(t).set(new Tt(e)),t}function Zi(e,t){var n=t?Gi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Xi(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,a=Ns(e),s=t!==n,l=null===t,c=t==t,u=Ns(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!u&&e<t||u&&r&&o&&!i&&!a||l&&r&&o||!s&&o||!c)return-1}return 0}function eo(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,l=t.length,c=Un(o-a,0),u=Je(l+c),h=!r;++s<l;)u[s]=t[s];for(;++i<a;)(h||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}function to(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,l=-1,c=t.length,u=Un(o-s,0),h=Je(u+c),f=!r;++i<u;)h[i]=e[i];for(var d=i;++l<c;)h[d+l]=t[l];for(;++a<s;)(f||i<o)&&(h[d+n[a]]=e[i++]);return h}function no(e,t){var n=-1,r=e.length;for(t||(t=Je(r));++n<r;)t[n]=e[n];return t}function ro(e,t,r,i){var o=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=i?i(r[l],e[l],l,r,e):n;c===n&&(c=e[l]),o?Cr(r,l,c):Ir(r,l,c)}return r}function io(e,t){return function(n,r){var i=vs(n)?Wt:Sr,o=t?t():{};return i(n,e,Po(r,2),o)}}function oo(e){return $i(function(t,r){var i=-1,o=r.length,a=o>1?r[o-1]:n,s=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,s&&qo(r[0],r[1],s)&&(a=o<3?n:a,o=1),t=tt(t);++i<o;){var l=r[i];l&&e(t,l,i,a)}return t})}function ao(e,t){return function(n,r){if(null==n)return n;if(!xs(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=tt(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function so(e){return function(t,n,r){for(var i=-1,o=tt(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function lo(e){return function(t){var r=$n(t=Us(t))?Sn(t):n,i=r?r[0]:t.charAt(0),o=r?Qi(r,1).join(""):t.slice(1);return i[e]()+o}}function co(e){return function(t){return Xt(kl(ml(t).replace(mt,"")),e,"")}}function uo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=pr(e.prototype),r=e.apply(n,t);return js(r)?r:n}}function ho(e){return function(t,r,i){var o=tt(t);if(!xs(t)){var a=Po(r,3);t=il(t),r=function(e){return a(o[e],e,o)}}var s=e(t,r,i);return s>-1?o[a?t[s]:s]:n}}function fo(e){return So(function(t){var r=t.length,i=r,a=mr.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new it(o);if(a&&!l&&"wrapper"==Do(s))var l=new mr([],!0)}for(i=l?i:r;++i<r;){var c=Do(s=t[i]),u="wrapper"==c?Oo(s):n;l=u&&Ko(u[0])&&u[1]==(b|v|x|_)&&!u[4].length&&1==u[9]?l[Do(u[0])].apply(l,u[3]):1==s.length&&Ko(s)?l[c]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&vs(n))return l.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}})}function po(e,t,r,i,o,a,s,l,c,u){var h=t&b,f=t&p,d=t&g,m=t&(v|y),x=t&$,w=d?n:uo(e);return function p(){for(var g=arguments.length,v=Je(g),y=g;y--;)v[y]=arguments[y];if(m)var b=No(p),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(v,b);if(i&&(v=eo(v,i,o,m)),a&&(v=to(v,a,s,m)),g-=_,m&&g<u){var $=En(v,b);return bo(e,t,po,p.placeholder,r,v,$,l,c,u-g)}var k=f?r:this,A=d?k[e]:e;return g=v.length,l?v=function(e,t){for(var r=e.length,i=Yn(t.length,r),o=no(e);i--;){var a=t[i];e[i]=Yo(a,r)?o[a]:n}return e}(v,l):x&&g>1&&v.reverse(),h&&c<g&&(v.length=c),this&&this!==Mt&&this instanceof p&&(A=w||uo(A)),A.apply(k,v)}}function go(e,t){return function(n,r){return function(e,t,n,r){return qr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function mo(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=Pi(r),i=Pi(i)):(r=Ni(r),i=Ni(i)),o=e(r,i)}return o}}function vo(e){return So(function(t){return t=Gt(t,gn(Po())),$i(function(n){var r=this;return e(t,function(e){return Vt(e,r,n)})})})}function yo(e,t){var r=(t=t===n?" ":Pi(t)).length;if(r<2)return r?_i(t,e):t;var i=_i(t,Ln(e/Tn(t)));return $n(t)?Qi(Sn(i),0,e).join(""):i.slice(0,e)}function xo(e){return function(t,r,i){return i&&"number"!=typeof i&&qo(t,r,i)&&(r=i=n),t=zs(t),r===n?(r=t,t=0):r=zs(r),function(e,t,n,r){for(var i=-1,o=Un(Ln((t-e)/(n||1)),0),a=Je(o);o--;)a[r?o:++i]=e,e+=n;return a}(t,r,i=i===n?t<r?1:-1:zs(i),e)}}function wo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Vs(t),n=Vs(n)),e(t,n)}}function bo(e,t,r,i,o,a,s,l,c,u){var h=t&v;t|=h?x:w,(t&=~(h?w:x))&m||(t&=~(p|g));var f=[e,t,o,h?a:n,h?s:n,h?n:a,h?n:s,l,c,u],d=r.apply(n,f);return Ko(e)&&ra(d,f),d.placeholder=i,aa(d,e,t)}function _o(e){var t=et[e];return function(e,n){if(e=Vs(e),(n=null==n?0:Yn(Bs(n),292))&&Hn(e)){var r=(Us(e)+"e").split("e");return+((r=(Us(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var $o=er&&1/jn(new er([,-0]))[1]==S?function(e){return new er(e)}:Nl;function ko(e){return function(t){var n=Ho(t);return n==q?kn(t):n==X?In(t):function(e,t){return Gt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Ao(e,t,r,i,a,s,c,u){var h=t&g;if(!h&&"function"!=typeof e)throw new it(o);var f=i?i.length:0;if(f||(t&=~(x|w),i=a=n),c=c===n?c:Un(Bs(c),0),u=u===n?u:Bs(u),f-=a?a.length:0,t&w){var d=i,$=a;i=a=n}var k=h?n:Oo(e),A=[e,t,r,i,a,d,$,s,c,u];if(k&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<(p|g|b),a=r==b&&n==v||r==b&&n==_&&e[7].length<=t[8]||r==(b|_)&&t[7].length<=t[8]&&n==v;if(!o&&!a)return e;r&p&&(e[2]=t[2],i|=n&p?0:m);var s=t[3];if(s){var c=e[3];e[3]=c?eo(c,s,t[4]):s,e[4]=c?En(e[3],l):t[4]}(s=t[5])&&(c=e[5],e[5]=c?to(c,s,t[6]):s,e[6]=c?En(e[5],l):t[6]),(s=t[7])&&(e[7]=s),r&b&&(e[8]=null==e[8]?t[8]:Yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(A,k),e=A[0],t=A[1],r=A[2],i=A[3],a=A[4],!(u=A[9]=A[9]===n?h?0:e.length:Un(A[9]-f,0))&&t&(v|y)&&(t&=~(v|y)),t&&t!=p)E=t==v||t==y?function(e,t,r){var i=uo(e);return function o(){for(var a=arguments.length,s=Je(a),l=a,c=No(o);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:En(s,c);return(a-=u.length)<r?bo(e,t,po,o.placeholder,n,s,u,n,n,r-a):Vt(this&&this!==Mt&&this instanceof o?i:e,this,s)}}(e,t,u):t!=x&&t!=(p|x)||a.length?po.apply(n,A):function(e,t,n,r){var i=t&p,o=uo(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=r.length,u=Je(c+s),h=this&&this!==Mt&&this instanceof t?o:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++a];return Vt(h,i?n:this,u)}}(e,t,r,i);else var E=function(e,t,n){var r=t&p,i=uo(e);return function t(){return(this&&this!==Mt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return aa((k?ji:ra)(E,A),e,t)}function Eo(e,t,r,i){return e===n||ds(e,st[r])&&!ut.call(i,r)?t:e}function jo(e,t,r,i,o,a){return js(e)&&js(t)&&(a.set(t,e),gi(e,t,n,jo,a),a.delete(t)),e}function Io(e){return Ms(e)?n:e}function To(e,t,r,i,o,a){var s=r&f,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var h=-1,p=!0,g=r&d?new br:n;for(a.set(e,t),a.set(t,e);++h<l;){var m=e[h],v=t[h];if(i)var y=s?i(v,m,h,t,e,a):i(m,v,h,e,t,a);if(y!==n){if(y)continue;p=!1;break}if(g){if(!tn(t,function(e,t){if(!vn(g,t)&&(m===e||o(m,e,r,i,a)))return g.push(t)})){p=!1;break}}else if(m!==v&&!o(m,v,r,i,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function So(e){return oa(ea(e,n,ya),e+"")}function Mo(e){return Gr(e,il,zo)}function Co(e){return Gr(e,ol,Bo)}var Oo=rr?function(e){return rr.get(e)}:Nl;function Do(e){for(var t=e.name+"",n=ir[t],r=ut.call(ir,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function No(e){return(ut.call(dr,"placeholder")?dr:e).placeholder}function Po(){var e=dr.iteratee||Ml;return e=e===Ml?li:e,arguments.length?e(arguments[0],arguments[1]):e}function Ro(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Lo(e){for(var t=il(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Zo(i)]}return t}function Fo(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return si(r)?r:n}var zo=zn?function(e){return null==e?[]:(e=tt(e),Qt(zn(e),function(t){return Nt.call(e,t)}))}:Hl,Bo=zn?function(e){for(var t=[];e;)Zt(t,zo(e)),e=Ct(e);return t}:Hl,Ho=Zr;function Vo(e,t,n){for(var r=-1,i=(t=Yi(t,e)).length,o=!1;++r<i;){var a=ua(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Es(i)&&Yo(a,i)&&(vs(e)||ms(e))}function Wo(e){return"function"!=typeof e.constructor||Go(e)?{}:pr(Ct(e))}function Uo(e){return vs(e)||ms(e)||!!(nn&&e&&e[nn])}function Yo(e,t){var n=typeof e;return!!(t=null==t?M:t)&&("number"==n||"symbol"!=n&&Ye.test(e))&&e>-1&&e%1==0&&e<t}function qo(e,t,n){if(!js(n))return!1;var r=typeof t;return!!("number"==r?xs(n)&&Yo(t,n.length):"string"==r&&t in n)&&ds(n[t],e)}function Qo(e,t){if(vs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ns(e))||Ie.test(e)||!je.test(e)||null!=t&&e in tt(t)}function Ko(e){var t=Do(e),n=dr[t];if("function"!=typeof n||!(t in vr.prototype))return!1;if(e===n)return!0;var r=Oo(n);return!!r&&e===r[0]}(Gn&&Ho(new Gn(new ArrayBuffer(1)))!=se||Zn&&Ho(new Zn)!=q||Xn&&"[object Promise]"!=Ho(Xn.resolve())||er&&Ho(new er)!=X||tr&&Ho(new tr)!=ie)&&(Ho=function(e){var t=Zr(e),r=t==J?e.constructor:n,i=r?ha(r):"";if(i)switch(i){case or:return se;case ar:return q;case sr:return"[object Promise]";case lr:return X;case cr:return ie}return t});var Jo=lt?ks:Vl;function Go(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||st)}function Zo(e){return e==e&&!js(e)}function Xo(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in tt(r))}}function ea(e,t,r){return t=Un(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Un(n.length-t,0),a=Je(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Je(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),Vt(e,this,s)}}function ta(e,t){return t.length<2?e:Jr(e,Si(t,0,-1))}function na(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ra=sa(ji),ia=Rn||function(e,t){return Mt.setTimeout(e,t)},oa=sa(Ii);function aa(e,t,n){var r=t+"";return oa(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ne,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ut(R,function(n){var r="_."+n[0];t&n[1]&&!Kt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Pe);return t?t[1].split(Re):[]}(r),n)))}function sa(e){var t=0,r=0;return function(){var i=qn(),o=j-(i-r);if(r=i,o>0){if(++t>=E)return arguments[0]}else t=0;return e.apply(n,arguments)}}function la(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r<t;){var a=bi(r,o),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var ca=function(e){var t=ss(e,function(e){return n.size===s&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Te,function(e,n,r,i){t.push(r?i.replace(Fe,"$1"):n||e)}),t});function ua(e){if("string"==typeof e||Ns(e))return e;var t=e+"";return"0"==t&&1/e==-S?"-0":t}function ha(e){if(null!=e){try{return ct.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function fa(e){if(e instanceof vr)return e.clone();var t=new mr(e.__wrapped__,e.__chain__);return t.__actions__=no(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var da=$i(function(e,t){return ws(e)?Lr(e,Wr(t,1,ws,!0)):[]}),pa=$i(function(e,t){var r=$a(t);return ws(r)&&(r=n),ws(e)?Lr(e,Wr(t,1,ws,!0),Po(r,2)):[]}),ga=$i(function(e,t){var r=$a(t);return ws(r)&&(r=n),ws(e)?Lr(e,Wr(t,1,ws,!0),n,r):[]});function ma(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Bs(n);return i<0&&(i=Un(r+i,0)),on(e,Po(t,3),i)}function va(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==n&&(o=Bs(r),o=r<0?Un(i+o,0):Yn(o,i-1)),on(e,Po(t,3),o,!0)}function ya(e){return null!=e&&e.length?Wr(e,1):[]}function xa(e){return e&&e.length?e[0]:n}var wa=$i(function(e){var t=Gt(e,Wi);return t.length&&t[0]===e[0]?ni(t):[]}),ba=$i(function(e){var t=$a(e),r=Gt(e,Wi);return t===$a(r)?t=n:r.pop(),r.length&&r[0]===e[0]?ni(r,Po(t,2)):[]}),_a=$i(function(e){var t=$a(e),r=Gt(e,Wi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?ni(r,n,t):[]});function $a(e){var t=null==e?0:e.length;return t?e[t-1]:n}var ka=$i(Aa);function Aa(e,t){return e&&e.length&&t&&t.length?xi(e,t):e}var Ea=So(function(e,t){var n=null==e?0:e.length,r=Or(e,t);return wi(e,Gt(t,function(e){return Yo(e,n)?+e:e}).sort(Xi)),r});function ja(e){return null==e?e:Jn.call(e)}var Ia=$i(function(e){return Ri(Wr(e,1,ws,!0))}),Ta=$i(function(e){var t=$a(e);return ws(t)&&(t=n),Ri(Wr(e,1,ws,!0),Po(t,2))}),Sa=$i(function(e){var t=$a(e);return t="function"==typeof t?t:n,Ri(Wr(e,1,ws,!0),n,t)});function Ma(e){if(!e||!e.length)return[];var t=0;return e=Qt(e,function(e){if(ws(e))return t=Un(e.length,t),!0}),pn(t,function(t){return Gt(e,un(t))})}function Ca(e,t){if(!e||!e.length)return[];var r=Ma(e);return null==t?r:Gt(r,function(e){return Vt(t,n,e)})}var Oa=$i(function(e,t){return ws(e)?Lr(e,t):[]}),Da=$i(function(e){return Hi(Qt(e,ws))}),Na=$i(function(e){var t=$a(e);return ws(t)&&(t=n),Hi(Qt(e,ws),Po(t,2))}),Pa=$i(function(e){var t=$a(e);return t="function"==typeof t?t:n,Hi(Qt(e,ws),n,t)}),Ra=$i(Ma);var La=$i(function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,Ca(e,r)});function Fa(e){var t=dr(e);return t.__chain__=!0,t}function za(e,t){return t(e)}var Ba=So(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return Or(t,e)};return!(t>1||this.__actions__.length)&&i instanceof vr&&Yo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:za,args:[o],thisArg:n}),new mr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e})):this.thru(o)});var Ha=io(function(e,t,n){ut.call(e,n)?++e[n]:Cr(e,n,1)});var Va=ho(ma),Wa=ho(va);function Ua(e,t){return(vs(e)?Ut:Fr)(e,Po(t,3))}function Ya(e,t){return(vs(e)?Yt:zr)(e,Po(t,3))}var qa=io(function(e,t,n){ut.call(e,n)?e[n].push(t):Cr(e,n,[t])});var Qa=$i(function(e,t,n){var r=-1,i="function"==typeof t,o=xs(e)?Je(e.length):[];return Fr(e,function(e){o[++r]=i?Vt(t,e,n):ri(e,t,n)}),o}),Ka=io(function(e,t,n){Cr(e,n,t)});function Ja(e,t){return(vs(e)?Gt:fi)(e,Po(t,3))}var Ga=io(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Za=$i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&qo(e,t[0],t[1])?t=[]:n>2&&qo(t[0],t[1],t[2])&&(t=[t[0]]),vi(e,Wr(t,1),[])}),Xa=Pn||function(){return Mt.Date.now()};function es(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Ao(e,b,n,n,n,n,t)}function ts(e,t){var r;if("function"!=typeof t)throw new it(o);return e=Bs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var ns=$i(function(e,t,n){var r=p;if(n.length){var i=En(n,No(ns));r|=x}return Ao(e,r,t,n,i)}),rs=$i(function(e,t,n){var r=p|g;if(n.length){var i=En(n,No(rs));r|=x}return Ao(t,r,e,n,i)});function is(e,t,r){var i,a,s,l,c,u,h=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new it(o);function g(t){var r=i,o=a;return i=a=n,h=t,l=e.apply(o,r)}function m(e){var r=e-u;return u===n||r>=t||r<0||d&&e-h>=s}function v(){var e=Xa();if(m(e))return y(e);c=ia(v,function(e){var n=t-(e-u);return d?Yn(n,s-(e-h)):n}(e))}function y(e){return c=n,p&&i?g(e):(i=a=n,l)}function x(){var e=Xa(),r=m(e);if(i=arguments,a=this,u=e,r){if(c===n)return function(e){return h=e,c=ia(v,t),f?g(e):l}(u);if(d)return Ki(c),c=ia(v,t),g(u)}return c===n&&(c=ia(v,t)),l}return t=Vs(t)||0,js(r)&&(f=!!r.leading,s=(d="maxWait"in r)?Un(Vs(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p),x.cancel=function(){c!==n&&Ki(c),h=0,i=u=a=c=n},x.flush=function(){return c===n?l:y(Xa())},x}var os=$i(function(e,t){return Rr(e,1,t)}),as=$i(function(e,t,n){return Rr(e,Vs(t)||0,n)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ss.Cache||wr),n}function ls(e){if("function"!=typeof e)throw new it(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=wr;var cs=qi(function(e,t){var n=(t=1==t.length&&vs(t[0])?Gt(t[0],gn(Po())):Gt(Wr(t,1),gn(Po()))).length;return $i(function(r){for(var i=-1,o=Yn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Vt(e,this,r)})}),us=$i(function(e,t){var r=En(t,No(us));return Ao(e,x,n,t,r)}),hs=$i(function(e,t){var r=En(t,No(hs));return Ao(e,w,n,t,r)}),fs=So(function(e,t){return Ao(e,_,n,n,n,t)});function ds(e,t){return e===t||e!=e&&t!=t}var ps=wo(Xr),gs=wo(function(e,t){return e>=t}),ms=ii(function(){return arguments}())?ii:function(e){return Is(e)&&ut.call(e,"callee")&&!Nt.call(e,"callee")},vs=Je.isArray,ys=Rt?gn(Rt):function(e){return Is(e)&&Zr(e)==ae};function xs(e){return null!=e&&Es(e.length)&&!ks(e)}function ws(e){return Is(e)&&xs(e)}var bs=Bn||Vl,_s=Lt?gn(Lt):function(e){return Is(e)&&Zr(e)==H};function $s(e){if(!Is(e))return!1;var t=Zr(e);return t==W||t==V||"string"==typeof e.message&&"string"==typeof e.name&&!Ms(e)}function ks(e){if(!js(e))return!1;var t=Zr(e);return t==U||t==Y||t==z||t==G}function As(e){return"number"==typeof e&&e==Bs(e)}function Es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=M}function js(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Is(e){return null!=e&&"object"==typeof e}var Ts=Ft?gn(Ft):function(e){return Is(e)&&Ho(e)==q};function Ss(e){return"number"==typeof e||Is(e)&&Zr(e)==Q}function Ms(e){if(!Is(e)||Zr(e)!=J)return!1;var t=Ct(e);if(null===t)return!0;var n=ut.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==pt}var Cs=zt?gn(zt):function(e){return Is(e)&&Zr(e)==Z};var Os=Bt?gn(Bt):function(e){return Is(e)&&Ho(e)==X};function Ds(e){return"string"==typeof e||!vs(e)&&Is(e)&&Zr(e)==ee}function Ns(e){return"symbol"==typeof e||Is(e)&&Zr(e)==ne}var Ps=Ht?gn(Ht):function(e){return Is(e)&&Es(e.length)&&!!kt[Zr(e)]};var Rs=wo(hi),Ls=wo(function(e,t){return e<=t});function Fs(e){if(!e)return[];if(xs(e))return Ds(e)?Sn(e):no(e);if(hn&&e[hn])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[hn]());var t=Ho(e);return(t==q?kn:t==X?jn:dl)(e)}function zs(e){return e?(e=Vs(e))===S||e===-S?(e<0?-1:1)*C:e==e?e:0:0===e?e:0}function Bs(e){var t=zs(e),n=t%1;return t==t?n?t-n:t:0}function Hs(e){return e?Dr(Bs(e),0,D):0}function Vs(e){if("number"==typeof e)return e;if(Ns(e))return O;if(js(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=js(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ce,"");var n=Ve.test(e);return n||Ue.test(e)?It(e.slice(2),n?2:8):He.test(e)?O:+e}function Ws(e){return ro(e,ol(e))}function Us(e){return null==e?"":Pi(e)}var Ys=oo(function(e,t){if(Go(t)||xs(t))ro(t,il(t),e);else for(var n in t)ut.call(t,n)&&Ir(e,n,t[n])}),qs=oo(function(e,t){ro(t,ol(t),e)}),Qs=oo(function(e,t,n,r){ro(t,ol(t),e,r)}),Ks=oo(function(e,t,n,r){ro(t,il(t),e,r)}),Js=So(Or);var Gs=$i(function(e,t){e=tt(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&qo(t[0],t[1],o)&&(i=1);++r<i;)for(var a=t[r],s=ol(a),l=-1,c=s.length;++l<c;){var u=s[l],h=e[u];(h===n||ds(h,st[u])&&!ut.call(e,u))&&(e[u]=a[u])}return e}),Zs=$i(function(e){return e.push(n,jo),Vt(sl,n,e)});function Xs(e,t,r){var i=null==e?n:Jr(e,t);return i===n?r:i}function el(e,t){return null!=e&&Vo(e,t,ti)}var tl=go(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dt.call(t)),e[t]=n},jl(Sl)),nl=go(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dt.call(t)),ut.call(e,t)?e[t].push(n):e[t]=[n]},Po),rl=$i(ri);function il(e){return xs(e)?$r(e):ci(e)}function ol(e){return xs(e)?$r(e,!0):ui(e)}var al=oo(function(e,t,n){gi(e,t,n)}),sl=oo(function(e,t,n,r){gi(e,t,n,r)}),ll=So(function(e,t){var n={};if(null==e)return n;var r=!1;t=Gt(t,function(t){return t=Yi(t,e),r||(r=t.length>1),t}),ro(e,Co(e),n),r&&(n=Nr(n,c|u|h,Io));for(var i=t.length;i--;)Li(n,t[i]);return n});var cl=So(function(e,t){return null==e?{}:function(e,t){return yi(e,t,function(t,n){return el(e,n)})}(e,t)});function ul(e,t){if(null==e)return{};var n=Gt(Co(e),function(e){return[e]});return t=Po(t),yi(e,n,function(e,n){return t(e,n[0])})}var hl=ko(il),fl=ko(ol);function dl(e){return null==e?[]:mn(e,il(e))}var pl=co(function(e,t,n){return t=t.toLowerCase(),e+(n?gl(t):t)});function gl(e){return $l(Us(e).toLowerCase())}function ml(e){return(e=Us(e))&&e.replace(qe,wn).replace(vt,"")}var vl=co(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),yl=co(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),xl=lo("toLowerCase");var wl=co(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var bl=co(function(e,t,n){return e+(n?" ":"")+$l(t)});var _l=co(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$l=lo("toUpperCase");function kl(e,t,r){return e=Us(e),(t=r?n:t)===n?function(e){return bt.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(Le)||[]}(e):e.match(t)||[]}var Al=$i(function(e,t){try{return Vt(e,n,t)}catch(e){return $s(e)?e:new Ze(e)}}),El=So(function(e,t){return Ut(t,function(t){t=ua(t),Cr(e,t,ns(e[t],e))}),e});function jl(e){return function(){return e}}var Il=fo(),Tl=fo(!0);function Sl(e){return e}function Ml(e){return li("function"==typeof e?e:Nr(e,c))}var Cl=$i(function(e,t){return function(n){return ri(n,e,t)}}),Ol=$i(function(e,t){return function(n){return ri(e,n,t)}});function Dl(e,t,n){var r=il(t),i=Kr(t,r);null!=n||js(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Kr(t,il(t)));var o=!(js(n)&&"chain"in n&&!n.chain),a=ks(e);return Ut(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=no(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Zt([this.value()],arguments))})}),e}function Nl(){}var Pl=vo(Gt),Rl=vo(qt),Ll=vo(tn);function Fl(e){return Qo(e)?un(ua(e)):function(e){return function(t){return Jr(t,e)}}(e)}var zl=xo(),Bl=xo(!0);function Hl(){return[]}function Vl(){return!1}var Wl=mo(function(e,t){return e+t},0),Ul=_o("ceil"),Yl=mo(function(e,t){return e/t},1),ql=_o("floor");var Ql,Kl=mo(function(e,t){return e*t},1),Jl=_o("round"),Gl=mo(function(e,t){return e-t},0);return dr.after=function(e,t){if("function"!=typeof t)throw new it(o);return e=Bs(e),function(){if(--e<1)return t.apply(this,arguments)}},dr.ary=es,dr.assign=Ys,dr.assignIn=qs,dr.assignInWith=Qs,dr.assignWith=Ks,dr.at=Js,dr.before=ts,dr.bind=ns,dr.bindAll=El,dr.bindKey=rs,dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return vs(e)?e:[e]},dr.chain=Fa,dr.chunk=function(e,t,r){t=(r?qo(e,t,r):t===n)?1:Un(Bs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=Je(Ln(i/t));o<i;)s[a++]=Si(e,o,o+=t);return s},dr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},dr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Je(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Zt(vs(n)?no(n):[n],Wr(t,1))},dr.cond=function(e){var t=null==e?0:e.length,n=Po();return e=t?Gt(e,function(e){if("function"!=typeof e[1])throw new it(o);return[n(e[0]),e[1]]}):[],$i(function(n){for(var r=-1;++r<t;){var i=e[r];if(Vt(i[0],this,n))return Vt(i[1],this,n)}})},dr.conforms=function(e){return function(e){var t=il(e);return function(n){return Pr(n,e,t)}}(Nr(e,c))},dr.constant=jl,dr.countBy=Ha,dr.create=function(e,t){var n=pr(e);return null==t?n:Mr(n,t)},dr.curry=function e(t,r,i){var o=Ao(t,v,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},dr.curryRight=function e(t,r,i){var o=Ao(t,y,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},dr.debounce=is,dr.defaults=Gs,dr.defaultsDeep=Zs,dr.defer=os,dr.delay=as,dr.difference=da,dr.differenceBy=pa,dr.differenceWith=ga,dr.drop=function(e,t,r){var i=null==e?0:e.length;return i?Si(e,(t=r||t===n?1:Bs(t))<0?0:t,i):[]},dr.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?Si(e,0,(t=i-(t=r||t===n?1:Bs(t)))<0?0:t):[]},dr.dropRightWhile=function(e,t){return e&&e.length?zi(e,Po(t,3),!0,!0):[]},dr.dropWhile=function(e,t){return e&&e.length?zi(e,Po(t,3),!0):[]},dr.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&qo(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=Bs(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:Bs(i))<0&&(i+=o),i=r>i?0:Hs(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},dr.filter=function(e,t){return(vs(e)?Qt:Vr)(e,Po(t,3))},dr.flatMap=function(e,t){return Wr(Ja(e,t),1)},dr.flatMapDeep=function(e,t){return Wr(Ja(e,t),S)},dr.flatMapDepth=function(e,t,r){return r=r===n?1:Bs(r),Wr(Ja(e,t),r)},dr.flatten=ya,dr.flattenDeep=function(e){return null!=e&&e.length?Wr(e,S):[]},dr.flattenDepth=function(e,t){return null!=e&&e.length?Wr(e,t=t===n?1:Bs(t)):[]},dr.flip=function(e){return Ao(e,$)},dr.flow=Il,dr.flowRight=Tl,dr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},dr.functions=function(e){return null==e?[]:Kr(e,il(e))},dr.functionsIn=function(e){return null==e?[]:Kr(e,ol(e))},dr.groupBy=qa,dr.initial=function(e){return null!=e&&e.length?Si(e,0,-1):[]},dr.intersection=wa,dr.intersectionBy=ba,dr.intersectionWith=_a,dr.invert=tl,dr.invertBy=nl,dr.invokeMap=Qa,dr.iteratee=Ml,dr.keyBy=Ka,dr.keys=il,dr.keysIn=ol,dr.map=Ja,dr.mapKeys=function(e,t){var n={};return t=Po(t,3),qr(e,function(e,r,i){Cr(n,t(e,r,i),e)}),n},dr.mapValues=function(e,t){var n={};return t=Po(t,3),qr(e,function(e,r,i){Cr(n,r,t(e,r,i))}),n},dr.matches=function(e){return di(Nr(e,c))},dr.matchesProperty=function(e,t){return pi(e,Nr(t,c))},dr.memoize=ss,dr.merge=al,dr.mergeWith=sl,dr.method=Cl,dr.methodOf=Ol,dr.mixin=Dl,dr.negate=ls,dr.nthArg=function(e){return e=Bs(e),$i(function(t){return mi(t,e)})},dr.omit=ll,dr.omitBy=function(e,t){return ul(e,ls(Po(t)))},dr.once=function(e){return ts(2,e)},dr.orderBy=function(e,t,r,i){return null==e?[]:(vs(t)||(t=null==t?[]:[t]),vs(r=i?n:r)||(r=null==r?[]:[r]),vi(e,t,r))},dr.over=Pl,dr.overArgs=cs,dr.overEvery=Rl,dr.overSome=Ll,dr.partial=us,dr.partialRight=hs,dr.partition=Ga,dr.pick=cl,dr.pickBy=ul,dr.property=Fl,dr.propertyOf=function(e){return function(t){return null==e?n:Jr(e,t)}},dr.pull=ka,dr.pullAll=Aa,dr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?xi(e,t,Po(n,2)):e},dr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?xi(e,t,n,r):e},dr.pullAt=Ea,dr.range=zl,dr.rangeRight=Bl,dr.rearg=fs,dr.reject=function(e,t){return(vs(e)?Qt:Vr)(e,ls(Po(t,3)))},dr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Po(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return wi(e,i),n},dr.rest=function(e,t){if("function"!=typeof e)throw new it(o);return $i(e,t=t===n?t:Bs(t))},dr.reverse=ja,dr.sampleSize=function(e,t,r){return t=(r?qo(e,t,r):t===n)?1:Bs(t),(vs(e)?Ar:Ai)(e,t)},dr.set=function(e,t,n){return null==e?e:Ei(e,t,n)},dr.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Ei(e,t,r,i)},dr.shuffle=function(e){return(vs(e)?Er:Ti)(e)},dr.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&qo(e,t,r)?(t=0,r=i):(t=null==t?0:Bs(t),r=r===n?i:Bs(r)),Si(e,t,r)):[]},dr.sortBy=Za,dr.sortedUniq=function(e){return e&&e.length?Di(e):[]},dr.sortedUniqBy=function(e,t){return e&&e.length?Di(e,Po(t,2)):[]},dr.split=function(e,t,r){return r&&"number"!=typeof r&&qo(e,t,r)&&(t=r=n),(r=r===n?D:r>>>0)?(e=Us(e))&&("string"==typeof t||null!=t&&!Cs(t))&&!(t=Pi(t))&&$n(e)?Qi(Sn(e),0,r):e.split(t,r):[]},dr.spread=function(e,t){if("function"!=typeof e)throw new it(o);return t=null==t?0:Un(Bs(t),0),$i(function(n){var r=n[t],i=Qi(n,0,t);return r&&Zt(i,r),Vt(e,this,i)})},dr.tail=function(e){var t=null==e?0:e.length;return t?Si(e,1,t):[]},dr.take=function(e,t,r){return e&&e.length?Si(e,0,(t=r||t===n?1:Bs(t))<0?0:t):[]},dr.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?Si(e,(t=i-(t=r||t===n?1:Bs(t)))<0?0:t,i):[]},dr.takeRightWhile=function(e,t){return e&&e.length?zi(e,Po(t,3),!1,!0):[]},dr.takeWhile=function(e,t){return e&&e.length?zi(e,Po(t,3)):[]},dr.tap=function(e,t){return t(e),e},dr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new it(o);return js(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),is(e,t,{leading:r,maxWait:t,trailing:i})},dr.thru=za,dr.toArray=Fs,dr.toPairs=hl,dr.toPairsIn=fl,dr.toPath=function(e){return vs(e)?Gt(e,ua):Ns(e)?[e]:no(ca(Us(e)))},dr.toPlainObject=Ws,dr.transform=function(e,t,n){var r=vs(e),i=r||bs(e)||Ps(e);if(t=Po(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:js(e)&&ks(o)?pr(Ct(e)):{}}return(i?Ut:qr)(e,function(e,r,i){return t(n,e,r,i)}),n},dr.unary=function(e){return es(e,1)},dr.union=Ia,dr.unionBy=Ta,dr.unionWith=Sa,dr.uniq=function(e){return e&&e.length?Ri(e):[]},dr.uniqBy=function(e,t){return e&&e.length?Ri(e,Po(t,2)):[]},dr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?Ri(e,n,t):[]},dr.unset=function(e,t){return null==e||Li(e,t)},dr.unzip=Ma,dr.unzipWith=Ca,dr.update=function(e,t,n){return null==e?e:Fi(e,t,Ui(n))},dr.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Fi(e,t,Ui(r),i)},dr.values=dl,dr.valuesIn=function(e){return null==e?[]:mn(e,ol(e))},dr.without=Oa,dr.words=kl,dr.wrap=function(e,t){return us(Ui(t),e)},dr.xor=Da,dr.xorBy=Na,dr.xorWith=Pa,dr.zip=Ra,dr.zipObject=function(e,t){return Vi(e||[],t||[],Ir)},dr.zipObjectDeep=function(e,t){return Vi(e||[],t||[],Ei)},dr.zipWith=La,dr.entries=hl,dr.entriesIn=fl,dr.extend=qs,dr.extendWith=Qs,Dl(dr,dr),dr.add=Wl,dr.attempt=Al,dr.camelCase=pl,dr.capitalize=gl,dr.ceil=Ul,dr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=Vs(r))==r?r:0),t!==n&&(t=(t=Vs(t))==t?t:0),Dr(Vs(e),t,r)},dr.clone=function(e){return Nr(e,h)},dr.cloneDeep=function(e){return Nr(e,c|h)},dr.cloneDeepWith=function(e,t){return Nr(e,c|h,t="function"==typeof t?t:n)},dr.cloneWith=function(e,t){return Nr(e,h,t="function"==typeof t?t:n)},dr.conformsTo=function(e,t){return null==t||Pr(e,t,il(t))},dr.deburr=ml,dr.defaultTo=function(e,t){return null==e||e!=e?t:e},dr.divide=Yl,dr.endsWith=function(e,t,r){e=Us(e),t=Pi(t);var i=e.length,o=r=r===n?i:Dr(Bs(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},dr.eq=ds,dr.escape=function(e){return(e=Us(e))&&$e.test(e)?e.replace(be,bn):e},dr.escapeRegExp=function(e){return(e=Us(e))&&Me.test(e)?e.replace(Se,"\\$&"):e},dr.every=function(e,t,r){var i=vs(e)?qt:Br;return r&&qo(e,t,r)&&(t=n),i(e,Po(t,3))},dr.find=Va,dr.findIndex=ma,dr.findKey=function(e,t){return rn(e,Po(t,3),qr)},dr.findLast=Wa,dr.findLastIndex=va,dr.findLastKey=function(e,t){return rn(e,Po(t,3),Qr)},dr.floor=ql,dr.forEach=Ua,dr.forEachRight=Ya,dr.forIn=function(e,t){return null==e?e:Ur(e,Po(t,3),ol)},dr.forInRight=function(e,t){return null==e?e:Yr(e,Po(t,3),ol)},dr.forOwn=function(e,t){return e&&qr(e,Po(t,3))},dr.forOwnRight=function(e,t){return e&&Qr(e,Po(t,3))},dr.get=Xs,dr.gt=ps,dr.gte=gs,dr.has=function(e,t){return null!=e&&Vo(e,t,ei)},dr.hasIn=el,dr.head=xa,dr.identity=Sl,dr.includes=function(e,t,n,r){e=xs(e)?e:dl(e),n=n&&!r?Bs(n):0;var i=e.length;return n<0&&(n=Un(i+n,0)),Ds(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&an(e,t,n)>-1},dr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Bs(n);return i<0&&(i=Un(r+i,0)),an(e,t,i)},dr.inRange=function(e,t,r){return t=zs(t),r===n?(r=t,t=0):r=zs(r),function(e,t,n){return e>=Yn(t,n)&&e<Un(t,n)}(e=Vs(e),t,r)},dr.invoke=rl,dr.isArguments=ms,dr.isArray=vs,dr.isArrayBuffer=ys,dr.isArrayLike=xs,dr.isArrayLikeObject=ws,dr.isBoolean=function(e){return!0===e||!1===e||Is(e)&&Zr(e)==B},dr.isBuffer=bs,dr.isDate=_s,dr.isElement=function(e){return Is(e)&&1===e.nodeType&&!Ms(e)},dr.isEmpty=function(e){if(null==e)return!0;if(xs(e)&&(vs(e)||"string"==typeof e||"function"==typeof e.splice||bs(e)||Ps(e)||ms(e)))return!e.length;var t=Ho(e);if(t==q||t==X)return!e.size;if(Go(e))return!ci(e).length;for(var n in e)if(ut.call(e,n))return!1;return!0},dr.isEqual=function(e,t){return oi(e,t)},dr.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?oi(e,t,n,r):!!i},dr.isError=$s,dr.isFinite=function(e){return"number"==typeof e&&Hn(e)},dr.isFunction=ks,dr.isInteger=As,dr.isLength=Es,dr.isMap=Ts,dr.isMatch=function(e,t){return e===t||ai(e,t,Lo(t))},dr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,ai(e,t,Lo(t),r)},dr.isNaN=function(e){return Ss(e)&&e!=+e},dr.isNative=function(e){if(Jo(e))throw new Ze(i);return si(e)},dr.isNil=function(e){return null==e},dr.isNull=function(e){return null===e},dr.isNumber=Ss,dr.isObject=js,dr.isObjectLike=Is,dr.isPlainObject=Ms,dr.isRegExp=Cs,dr.isSafeInteger=function(e){return As(e)&&e>=-M&&e<=M},dr.isSet=Os,dr.isString=Ds,dr.isSymbol=Ns,dr.isTypedArray=Ps,dr.isUndefined=function(e){return e===n},dr.isWeakMap=function(e){return Is(e)&&Ho(e)==ie},dr.isWeakSet=function(e){return Is(e)&&Zr(e)==oe},dr.join=function(e,t){return null==e?"":Vn.call(e,t)},dr.kebabCase=vl,dr.last=$a,dr.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=Bs(r))<0?Un(i+o,0):Yn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):on(e,ln,o,!0)},dr.lowerCase=yl,dr.lowerFirst=xl,dr.lt=Rs,dr.lte=Ls,dr.max=function(e){return e&&e.length?Hr(e,Sl,Xr):n},dr.maxBy=function(e,t){return e&&e.length?Hr(e,Po(t,2),Xr):n},dr.mean=function(e){return cn(e,Sl)},dr.meanBy=function(e,t){return cn(e,Po(t,2))},dr.min=function(e){return e&&e.length?Hr(e,Sl,hi):n},dr.minBy=function(e,t){return e&&e.length?Hr(e,Po(t,2),hi):n},dr.stubArray=Hl,dr.stubFalse=Vl,dr.stubObject=function(){return{}},dr.stubString=function(){return""},dr.stubTrue=function(){return!0},dr.multiply=Kl,dr.nth=function(e,t){return e&&e.length?mi(e,Bs(t)):n},dr.noConflict=function(){return Mt._===this&&(Mt._=gt),this},dr.noop=Nl,dr.now=Xa,dr.pad=function(e,t,n){e=Us(e);var r=(t=Bs(t))?Tn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return yo(Fn(i),n)+e+yo(Ln(i),n)},dr.padEnd=function(e,t,n){e=Us(e);var r=(t=Bs(t))?Tn(e):0;return t&&r<t?e+yo(t-r,n):e},dr.padStart=function(e,t,n){e=Us(e);var r=(t=Bs(t))?Tn(e):0;return t&&r<t?yo(t-r,n)+e:e},dr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Qn(Us(e).replace(Oe,""),t||0)},dr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&qo(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=zs(e),t===n?(t=e,e=0):t=zs(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=Kn();return Yn(e+o*(t-e+jt("1e-"+((o+"").length-1))),t)}return bi(e,t)},dr.reduce=function(e,t,n){var r=vs(e)?Xt:fn,i=arguments.length<3;return r(e,Po(t,4),n,i,Fr)},dr.reduceRight=function(e,t,n){var r=vs(e)?en:fn,i=arguments.length<3;return r(e,Po(t,4),n,i,zr)},dr.repeat=function(e,t,r){return t=(r?qo(e,t,r):t===n)?1:Bs(t),_i(Us(e),t)},dr.replace=function(){var e=arguments,t=Us(e[0]);return e.length<3?t:t.replace(e[1],e[2])},dr.result=function(e,t,r){var i=-1,o=(t=Yi(t,e)).length;for(o||(o=1,e=n);++i<o;){var a=null==e?n:e[ua(t[i])];a===n&&(i=o,a=r),e=ks(a)?a.call(e):a}return e},dr.round=Jl,dr.runInContext=e,dr.sample=function(e){return(vs(e)?kr:ki)(e)},dr.size=function(e){if(null==e)return 0;if(xs(e))return Ds(e)?Tn(e):e.length;var t=Ho(e);return t==q||t==X?e.size:ci(e).length},dr.snakeCase=wl,dr.some=function(e,t,r){var i=vs(e)?tn:Mi;return r&&qo(e,t,r)&&(t=n),i(e,Po(t,3))},dr.sortedIndex=function(e,t){return Ci(e,t)},dr.sortedIndexBy=function(e,t,n){return Oi(e,t,Po(n,2))},dr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Ci(e,t);if(r<n&&ds(e[r],t))return r}return-1},dr.sortedLastIndex=function(e,t){return Ci(e,t,!0)},dr.sortedLastIndexBy=function(e,t,n){return Oi(e,t,Po(n,2),!0)},dr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Ci(e,t,!0)-1;if(ds(e[n],t))return n}return-1},dr.startCase=bl,dr.startsWith=function(e,t,n){return e=Us(e),n=null==n?0:Dr(Bs(n),0,e.length),t=Pi(t),e.slice(n,n+t.length)==t},dr.subtract=Gl,dr.sum=function(e){return e&&e.length?dn(e,Sl):0},dr.sumBy=function(e,t){return e&&e.length?dn(e,Po(t,2)):0},dr.template=function(e,t,r){var i=dr.templateSettings;r&&qo(e,t,r)&&(t=n),e=Us(e),t=Qs({},t,i,Eo);var o,a,s=Qs({},t.imports,i.imports,Eo),l=il(s),c=mn(s,l),u=0,h=t.interpolate||Qe,f="__p += '",d=nt((t.escape||Qe).source+"|"+h.source+"|"+(h===Ee?ze:Qe).source+"|"+(t.evaluate||Qe).source+"|$","g"),p="//# sourceURL="+(ut.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++$t+"]")+"\n";e.replace(d,function(t,n,r,i,s,l){return r||(r=i),f+=e.slice(u,l).replace(Ke,_n),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),f+="';\n";var g=ut.call(t,"variable")&&t.variable;g||(f="with (obj) {\n"+f+"\n}\n"),f=(a?f.replace(ve,""):f).replace(ye,"$1").replace(xe,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Al(function(){return Xe(l,p+"return "+f).apply(n,c)});if(m.source=f,$s(m))throw m;return m},dr.times=function(e,t){if((e=Bs(e))<1||e>M)return[];var n=D,r=Yn(e,D);t=Po(t),e-=D;for(var i=pn(r,t);++n<e;)t(n);return i},dr.toFinite=zs,dr.toInteger=Bs,dr.toLength=Hs,dr.toLower=function(e){return Us(e).toLowerCase()},dr.toNumber=Vs,dr.toSafeInteger=function(e){return e?Dr(Bs(e),-M,M):0===e?e:0},dr.toString=Us,dr.toUpper=function(e){return Us(e).toUpperCase()},dr.trim=function(e,t,r){if((e=Us(e))&&(r||t===n))return e.replace(Ce,"");if(!e||!(t=Pi(t)))return e;var i=Sn(e),o=Sn(t);return Qi(i,yn(i,o),xn(i,o)+1).join("")},dr.trimEnd=function(e,t,r){if((e=Us(e))&&(r||t===n))return e.replace(De,"");if(!e||!(t=Pi(t)))return e;var i=Sn(e);return Qi(i,0,xn(i,Sn(t))+1).join("")},dr.trimStart=function(e,t,r){if((e=Us(e))&&(r||t===n))return e.replace(Oe,"");if(!e||!(t=Pi(t)))return e;var i=Sn(e);return Qi(i,yn(i,Sn(t))).join("")},dr.truncate=function(e,t){var r=k,i=A;if(js(t)){var o="separator"in t?t.separator:o;r="length"in t?Bs(t.length):r,i="omission"in t?Pi(t.omission):i}var a=(e=Us(e)).length;if($n(e)){var s=Sn(e);a=s.length}if(r>=a)return e;var l=r-Tn(i);if(l<1)return i;var c=s?Qi(s,0,l).join(""):e.slice(0,l);if(o===n)return c+i;if(s&&(l+=c.length-l),Cs(o)){if(e.slice(l).search(o)){var u,h=c;for(o.global||(o=nt(o.source,Us(Be.exec(o))+"g")),o.lastIndex=0;u=o.exec(h);)var f=u.index;c=c.slice(0,f===n?l:f)}}else if(e.indexOf(Pi(o),l)!=l){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},dr.unescape=function(e){return(e=Us(e))&&_e.test(e)?e.replace(we,Mn):e},dr.uniqueId=function(e){var t=++ht;return Us(e)+t},dr.upperCase=_l,dr.upperFirst=$l,dr.each=Ua,dr.eachRight=Ya,dr.first=xa,Dl(dr,(Ql={},qr(dr,function(e,t){ut.call(dr.prototype,t)||(Ql[t]=e)}),Ql),{chain:!1}),dr.VERSION="4.17.14",Ut(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){dr[e].placeholder=dr}),Ut(["drop","take"],function(e,t){vr.prototype[e]=function(r){r=r===n?1:Un(Bs(r),0);var i=this.__filtered__&&!t?new vr(this):this.clone();return i.__filtered__?i.__takeCount__=Yn(r,i.__takeCount__):i.__views__.push({size:Yn(r,D),type:e+(i.__dir__<0?"Right":"")}),i},vr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Ut(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==I||3==n;vr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Po(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ut(["head","last"],function(e,t){var n="take"+(t?"Right":"");vr.prototype[e]=function(){return this[n](1).value()[0]}}),Ut(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");vr.prototype[e]=function(){return this.__filtered__?new vr(this):this[n](1)}}),vr.prototype.compact=function(){return this.filter(Sl)},vr.prototype.find=function(e){return this.filter(e).head()},vr.prototype.findLast=function(e){return this.reverse().find(e)},vr.prototype.invokeMap=$i(function(e,t){return"function"==typeof e?new vr(this):this.map(function(n){return ri(n,e,t)})}),vr.prototype.reject=function(e){return this.filter(ls(Po(e)))},vr.prototype.slice=function(e,t){e=Bs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new vr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=Bs(t))<0?r.dropRight(-t):r.take(t-e)),r)},vr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vr.prototype.toArray=function(){return this.take(D)},qr(vr.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=dr[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(dr.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof vr,c=s[0],u=l||vs(t),h=function(e){var t=o.apply(dr,Zt([e],s));return i&&f?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,d=!!this.__actions__.length,p=a&&!f,g=l&&!d;if(!a&&u){t=g?t:new vr(this);var m=e.apply(t,s);return m.__actions__.push({func:za,args:[h],thisArg:n}),new mr(m,f)}return p&&g?e.apply(this,s):(m=this.thru(h),p?i?m.value()[0]:m.value():m)})}),Ut(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);dr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(vs(i)?i:[],e)}return this[n](function(n){return t.apply(vs(n)?n:[],e)})}}),qr(vr.prototype,function(e,t){var n=dr[t];if(n){var r=n.name+"";ut.call(ir,r)||(ir[r]=[]),ir[r].push({name:t,func:n})}}),ir[po(n,g).name]=[{name:"wrapper",func:n}],vr.prototype.clone=function(){var e=new vr(this.__wrapped__);return e.__actions__=no(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=no(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=no(this.__views__),e},vr.prototype.reverse=function(){if(this.__filtered__){var e=new vr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=vs(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Yn(t,e+a);break;case"takeRight":e=Un(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,h=u.length,f=0,d=Yn(l,this.__takeCount__);if(!n||!r&&i==l&&d==l)return Bi(e,this.__actions__);var p=[];e:for(;l--&&f<d;){for(var g=-1,m=e[c+=t];++g<h;){var v=u[g],y=v.iteratee,x=v.type,w=y(m);if(x==T)m=w;else if(!w){if(x==I)continue e;break e}}p[f++]=m}return p},dr.prototype.at=Ba,dr.prototype.chain=function(){return Fa(this)},dr.prototype.commit=function(){return new mr(this.value(),this.__chain__)},dr.prototype.next=function(){this.__values__===n&&(this.__values__=Fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},dr.prototype.plant=function(e){for(var t,r=this;r instanceof gr;){var i=fa(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vr){var t=e;return this.__actions__.length&&(t=new vr(this)),(t=t.reverse()).__actions__.push({func:za,args:[ja],thisArg:n}),new mr(t,this.__chain__)}return this.thru(ja)},dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=function(){return Bi(this.__wrapped__,this.__actions__)},dr.prototype.first=dr.prototype.head,hn&&(dr.prototype[hn]=function(){return this}),dr}();Ot?((Ot.exports=Cn)._=Cn,Ct._=Cn):Mt._=Cn}).call(te)}),_t=bt.toNumber,$t=bt.flow,kt=bt.isArray,At=bt.join,Et=bt.replace,jt=bt.trim,It=bt.dropRight,Tt=bt.takeRight,St=bt.head,Mt=bt.isUndefined,Ct=bt.isNull,Ot=bt.isNaN,Dt=bt.reduce,Nt=bt.isEmpty,Pt=bt.constant,Rt=bt.tail,Lt=bt.includes,Ft=bt.startsWith,zt=bt.findIndex,Bt=bt.isInteger,Ht=bt.isDate,Vt=bt.isString,Wt=bt.split,Ut=(bt.clone,bt.keys),Yt=(bt.isFunction,bt.merge),qt=bt.has,Qt=bt.isBoolean,Kt=bt.isNumber,Jt=bt.isObjectLike,Gt=bt.assign,Zt=(bt.some,bt.each),Xt=bt.find,en=(bt.orderBy,bt.union,bt.cloneDeep,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),tn=new Map,nn=new Map;function rn(e){return new Function("context","tempVars","const sandbox = $nxCompileToSandbox(context, tempVars)\n try { with (sandbox) { return "+e+" } } catch (err) {\n if (!(err instanceof TypeError)) throw err\n }\n $nxClearSandbox()")}function on(e){return new Function("context","tempVars","const sandbox = $nxCompileToSandbox(context, tempVars)\n with (sandbox) { "+e+" }\n $nxClearSandbox()")}var an=/(?:[^\|]|\|\|)+/g,sn=/(?:[^&]|&&)+/g,ln=/\S+/g;var cn=new Map,un=new Map;function hn(e){if("string"!=typeof e)throw new TypeError("First argument must be a string.");var t=cn.get(e);return t||(t=function(e){var t=e.match(an);if(1===t.length)return rn(t[0]);for(var n={exec:rn(t[0]),filters:[]},r=1;r<t.length;r++){var i=t[r].match(ln),o=i.shift(),a=tn.get(o);if(!a)throw new Error("There is no filter named: "+o+".");n.filters.push({effect:a,argExpressions:i.map(rn)})}return n}(e),cn.set(e,t)),"function"==typeof t?t:function(e,n){for(var r=t.exec(e,n),i=0,o=t.filters;i<o.length;i+=1){var a=o[i],s=a.argExpressions.map(dn,e);r=a.effect.apply(a,[r].concat(s))}return r}}function fn(e){if("string"!=typeof e)throw new TypeError("First argument must be a string.");var t=un.get(e);if(t||(t=function(e){var t=e.match(sn);if(1===t.length)return on(t[0]);for(var n={exec:on(t[0]),limiters:[]},r=1;r<t.length;r++){var i=t[r].match(ln),o=i.shift(),a=nn.get(o);if(!a)throw new Error("There is no limiter named: "+o+".");n.limiters.push({effect:a,argExpressions:i.map(rn)})}return n}(e),un.set(e,t)),"function"==typeof t)return t;var n={};return function(e,r){var i=0;function o(){if(Object.assign(n,r),i<t.limiters.length){var a=t.limiters[i++],s=a.argExpressions.map(dn,e);a.effect.apply(a,[o,n].concat(s))}else t.exec(e,r)}o()}}function dn(e){return e(this)}var pn,gn,mn={has:xn},vn={has:xn,get:function(e,t){return t in pn?pn[t]:e[t]}},yn=new Set;function xn(e,t){return!yn.has(t)||t in e}"undefined"!=typeof window?gn=window:void 0!==en?gn=en:"undefined"!=typeof self&&(gn=self),gn.$nxCompileToSandbox=function(e,t){if(t)return pn=t,new Proxy(e,vn);return new Proxy(e,mn)},gn.$nxClearSandbox=function(){pn=void 0};ne(function(e,t){!function(){var t,n,r,i,o,a,s,l,c,u,h,f,d,p,g,m,v,y,x,w,b,_,$,k,A,E,j=function(e){var t=new j.Builder;return t.pipeline.add(j.trimmer,j.stopWordFilter,j.stemmer),t.searchPipeline.add(j.stemmer),e.call(t,t),t.build()};j.version="2.3.6",j.utils={},j.utils.warn=(t=this,function(e){t.console&&console.warn&&console.warn(e)}),j.utils.asString=function(e){return null==e?"":e.toString()},j.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r<n.length;r++){var i=n[r],o=e[i];if(Array.isArray(o))t[i]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[i]=o}}return t},j.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},j.FieldRef.joiner="/",j.FieldRef.fromString=function(e){var t=e.indexOf(j.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),r=e.slice(t+1);return new j.FieldRef(r,n,e)},j.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+j.FieldRef.joiner+this.docRef),this._stringValue},j.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},j.Set.complete={intersect:function(e){return e},union:function(e){return e},contains:function(){return!0}},j.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},j.Set.prototype.contains=function(e){return!!this.elements[e]},j.Set.prototype.intersect=function(e){var t,n,r,i=[];if(e===j.Set.complete)return this;if(e===j.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),r=Object.keys(t.elements);for(var o=0;o<r.length;o++){var a=r[o];a in n.elements&&i.push(a)}return new j.Set(i)},j.Set.prototype.union=function(e){return e===j.Set.complete?j.Set.complete:e===j.Set.empty?this:new j.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},j.idf=function(e,t){var n=0;for(var r in e)"_index"!=r&&(n+=Object.keys(e[r]).length);var i=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(i))},j.Token=function(e,t){this.str=e||"",this.metadata=t||{}},j.Token.prototype.toString=function(){return this.str},j.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},j.Token.prototype.clone=function(e){return e=e||function(e){return e},new j.Token(e(this.str,this.metadata),this.metadata)},j.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map(function(e){return new j.Token(j.utils.asString(e).toLowerCase(),j.utils.clone(t))});for(var n=e.toString().trim().toLowerCase(),r=n.length,i=[],o=0,a=0;o<=r;o++){var s=o-a;if(n.charAt(o).match(j.tokenizer.separator)||o==r){if(s>0){var l=j.utils.clone(t)||{};l.position=[a,s],l.index=i.length,i.push(new j.Token(n.slice(a,o),l))}a=o+1}}return i},j.tokenizer.separator=/[\s\-]+/,j.Pipeline=function(){this._stack=[]},j.Pipeline.registeredFunctions=Object.create(null),j.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&j.utils.warn("Overwriting existing registered function: "+t),e.label=t,j.Pipeline.registeredFunctions[e.label]=e},j.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||j.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},j.Pipeline.load=function(e){var t=new j.Pipeline;return e.forEach(function(e){var n=j.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)}),t},j.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){j.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},j.Pipeline.prototype.after=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},j.Pipeline.prototype.before=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},j.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},j.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var r=this._stack[n],i=[],o=0;o<e.length;o++){var a=r(e[o],o,e);if(void 0!==a&&""!==a)if(Array.isArray(a))for(var s=0;s<a.length;s++)i.push(a[s]);else i.push(a)}e=i}return e},j.Pipeline.prototype.runString=function(e,t){var n=new j.Token(e,t);return this.run([n]).map(function(e){return e.toString()})},j.Pipeline.prototype.reset=function(){this._stack=[]},j.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return j.Pipeline.warnIfFunctionNotRegistered(e),e.label})},j.Vector=function(e){this._magnitude=0,this.elements=e||[]},j.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,r=n-t,i=Math.floor(r/2),o=this.elements[2*i];r>1&&(o<e&&(t=i),o>e&&(n=i),o!=e);)r=n-t,i=t+Math.floor(r/2),o=this.elements[2*i];return o==e?2*i:o>e?2*i:o<e?2*(i+1):void 0},j.Vector.prototype.insert=function(e,t){this.upsert(e,t,function(){throw"duplicate index"})},j.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var r=this.positionForIndex(e);this.elements[r]==e?this.elements[r+1]=n(this.elements[r+1],t):this.elements.splice(r,0,e,t)},j.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var r=this.elements[n];e+=r*r}return this._magnitude=Math.sqrt(e)},j.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,r=e.elements,i=n.length,o=r.length,a=0,s=0,l=0,c=0;l<i&&c<o;)(a=n[l])<(s=r[c])?l+=2:a>s?c+=2:a==s&&(t+=n[l+1]*r[c+1],l+=2,c+=2);return t},j.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},j.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},j.Vector.prototype.toJSON=function(){return this.elements},j.stemmer=(n={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},r={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},i="[aeiouy]",o="[^aeiou][^aeiouy]*",a=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),s=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),l=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),c=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),u=/^(.+?)(ss|i)es$/,h=/^(.+?)([^s])s$/,f=/^(.+?)eed$/,d=/^(.+?)(ed|ing)$/,p=/.$/,g=/(at|bl|iz)$/,m=new RegExp("([^aeiouylsz])\\1$"),v=new RegExp("^"+o+i+"[^aeiouwxy]$"),y=/^(.+?[^aeiou])y$/,x=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,w=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,b=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,_=/^(.+?)(s|t)(ion)$/,$=/^(.+?)e$/,k=/ll$/,A=new RegExp("^"+o+i+"[^aeiouwxy]$"),E=function(e){var t,i,o,E,j,I,T;if(e.length<3)return e;if("y"==(o=e.substr(0,1))&&(e=o.toUpperCase()+e.substr(1)),j=h,(E=u).test(e)?e=e.replace(E,"$1$2"):j.test(e)&&(e=e.replace(j,"$1$2")),j=d,(E=f).test(e)){var S=E.exec(e);(E=a).test(S[1])&&(E=p,e=e.replace(E,""))}else if(j.test(e)){t=(S=j.exec(e))[1],(j=c).test(t)&&(I=m,T=v,(j=g).test(e=t)?e+="e":I.test(e)?(E=p,e=e.replace(E,"")):T.test(e)&&(e+="e"))}if((E=y).test(e)&&(e=(t=(S=E.exec(e))[1])+"i"),(E=x).test(e)&&(t=(S=E.exec(e))[1],i=S[2],(E=a).test(t)&&(e=t+n[i])),(E=w).test(e)&&(t=(S=E.exec(e))[1],i=S[2],(E=a).test(t)&&(e=t+r[i])),j=_,(E=b).test(e))t=(S=E.exec(e))[1],(E=s).test(t)&&(e=t);else if(j.test(e)){t=(S=j.exec(e))[1]+S[2],(j=s).test(t)&&(e=t)}return(E=$).test(e)&&(t=(S=E.exec(e))[1],j=l,I=A,((E=s).test(t)||j.test(t)&&!I.test(t))&&(e=t)),j=s,(E=k).test(e)&&j.test(e)&&(E=p,e=e.replace(E,"")),"y"==o&&(e=o.toLowerCase()+e.substr(1)),e},function(e){return e.update(E)}),j.Pipeline.registerFunction(j.stemmer,"stemmer"),j.generateStopWordFilter=function(e){var t=e.reduce(function(e,t){return e[t]=t,e},{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},j.stopWordFilter=j.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),j.Pipeline.registerFunction(j.stopWordFilter,"stopWordFilter"),j.trimmer=function(e){return e.update(function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")})},j.Pipeline.registerFunction(j.trimmer,"trimmer"),j.TokenSet=function(){this.final=!1,this.edges={},this.id=j.TokenSet._nextId,j.TokenSet._nextId+=1},j.TokenSet._nextId=1,j.TokenSet.fromArray=function(e){for(var t=new j.TokenSet.Builder,n=0,r=e.length;n<r;n++)t.insert(e[n]);return t.finish(),t.root},j.TokenSet.fromClause=function(e){return"editDistance"in e?j.TokenSet.fromFuzzyString(e.term,e.editDistance):j.TokenSet.fromString(e.term)},j.TokenSet.fromFuzzyString=function(e,t){for(var n=new j.TokenSet,r=[{node:n,editsRemaining:t,str:e}];r.length;){var i=r.pop();if(i.str.length>0){var o,a=i.str.charAt(0);a in i.node.edges?o=i.node.edges[a]:(o=new j.TokenSet,i.node.edges[a]=o),1==i.str.length&&(o.final=!0),r.push({node:o,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var s=i.node.edges["*"];else{s=new j.TokenSet;i.node.edges["*"]=s}if(0==i.str.length&&(s.final=!0),r.push({node:s,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&r.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var l=i.node.edges["*"];else{l=new j.TokenSet;i.node.edges["*"]=l}1==i.str.length&&(l.final=!0),r.push({node:l,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var c,u=i.str.charAt(0),h=i.str.charAt(1);h in i.node.edges?c=i.node.edges[h]:(c=new j.TokenSet,i.node.edges[h]=c),1==i.str.length&&(c.final=!0),r.push({node:c,editsRemaining:i.editsRemaining-1,str:u+i.str.slice(2)})}}}return n},j.TokenSet.fromString=function(e){for(var t=new j.TokenSet,n=t,r=0,i=e.length;r<i;r++){var o=e[r],a=r==i-1;if("*"==o)t.edges[o]=t,t.final=a;else{var s=new j.TokenSet;s.final=a,t.edges[o]=s,t=s}}return n},j.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),r=Object.keys(n.node.edges),i=r.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<i;o++){var a=r[o];t.push({prefix:n.prefix.concat(a),node:n.node.edges[a]})}}return e},j.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,r=0;r<n;r++){var i=t[r];e=e+i+this.edges[i].id}return e},j.TokenSet.prototype.intersect=function(e){for(var t=new j.TokenSet,n=void 0,r=[{qNode:e,output:t,node:this}];r.length;){n=r.pop();for(var i=Object.keys(n.qNode.edges),o=i.length,a=Object.keys(n.node.edges),s=a.length,l=0;l<o;l++)for(var c=i[l],u=0;u<s;u++){var h=a[u];if(h==c||"*"==c){var f=n.node.edges[h],d=n.qNode.edges[c],p=f.final&&d.final,g=void 0;h in n.output.edges?(g=n.output.edges[h]).final=g.final||p:((g=new j.TokenSet).final=p,n.output.edges[h]=g),r.push({qNode:d,output:g,node:f})}}}return t},j.TokenSet.Builder=function(){this.previousWord="",this.root=new j.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},j.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<e.length&&r<this.previousWord.length&&e[r]==this.previousWord[r];r++)n++;this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(r=n;r<e.length;r++){var i=new j.TokenSet,o=e[r];t.edges[o]=i,this.uncheckedNodes.push({parent:t,char:o,child:i}),t=i}t.final=!0,this.previousWord=e},j.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},j.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},j.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},j.Index.prototype.search=function(e){return this.query(function(t){new j.QueryParser(e,t).parse()})},j.Index.prototype.query=function(e){for(var t=new j.Query(this.fields),n=Object.create(null),r=Object.create(null),i=Object.create(null),o=Object.create(null),a=Object.create(null),s=0;s<this.fields.length;s++)r[this.fields[s]]=new j.Vector;e.call(t,t);for(s=0;s<t.clauses.length;s++){var l=t.clauses[s],c=null,u=j.Set.complete;c=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var h=0;h<c.length;h++){var f=c[h];l.term=f;var d=j.TokenSet.fromClause(l),p=this.tokenSet.intersect(d).toArray();if(0===p.length&&l.presence===j.Query.presence.REQUIRED){for(var g=0;g<l.fields.length;g++){o[C=l.fields[g]]=j.Set.empty}break}for(var m=0;m<p.length;m++){var v=p[m],y=this.invertedIndex[v],x=y._index;for(g=0;g<l.fields.length;g++){var w=y[C=l.fields[g]],b=Object.keys(w),_=v+"/"+C,$=new j.Set(b);if(l.presence==j.Query.presence.REQUIRED&&(u=u.union($),void 0===o[C]&&(o[C]=j.Set.complete)),l.presence!=j.Query.presence.PROHIBITED){if(r[C].upsert(x,l.boost,function(e,t){return e+t}),!i[_]){for(var k=0;k<b.length;k++){var A,E=b[k],I=new j.FieldRef(E,C),T=w[E];void 0===(A=n[I])?n[I]=new j.MatchData(v,C,T):A.add(v,C,T)}i[_]=!0}}else void 0===a[C]&&(a[C]=j.Set.empty),a[C]=a[C].union($)}}}if(l.presence===j.Query.presence.REQUIRED)for(g=0;g<l.fields.length;g++){o[C=l.fields[g]]=o[C].intersect(u)}}var S=j.Set.complete,M=j.Set.empty;for(s=0;s<this.fields.length;s++){var C;o[C=this.fields[s]]&&(S=S.intersect(o[C])),a[C]&&(M=M.union(a[C]))}var O=Object.keys(n),D=[],N=Object.create(null);if(t.isNegated()){O=Object.keys(this.fieldVectors);for(s=0;s<O.length;s++){I=O[s];var P=j.FieldRef.fromString(I);n[I]=new j.MatchData}}for(s=0;s<O.length;s++){var R=(P=j.FieldRef.fromString(O[s])).docRef;if(S.contains(R)&&!M.contains(R)){var L,F=this.fieldVectors[P],z=r[P.fieldName].similarity(F);if(void 0!==(L=N[R]))L.score+=z,L.matchData.combine(n[P]);else{var B={ref:R,score:z,matchData:n[P]};N[R]=B,D.push(B)}}}return D.sort(function(e,t){return t.score-e.score})},j.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map(function(e){return[e,this.invertedIndex[e]]},this),t=Object.keys(this.fieldVectors).map(function(e){return[e,this.fieldVectors[e].toJSON()]},this);return{version:j.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},j.Index.load=function(e){var t={},n={},r=e.fieldVectors,i=Object.create(null),o=e.invertedIndex,a=new j.TokenSet.Builder,s=j.Pipeline.load(e.pipeline);e.version!=j.version&&j.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+j.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<r.length;l++){var c=(h=r[l])[0],u=h[1];n[c]=new j.Vector(u)}for(l=0;l<o.length;l++){var h,f=(h=o[l])[0],d=h[1];a.insert(f),i[f]=d}return a.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=i,t.tokenSet=a.root,t.pipeline=s,new j.Index(t)},j.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=j.tokenizer,this.pipeline=new j.Pipeline,this.searchPipeline=new j.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},j.Builder.prototype.ref=function(e){this._ref=e},j.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},j.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},j.Builder.prototype.k1=function(e){this._k1=e},j.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var i=0;i<r.length;i++){var o=r[i],a=this._fields[o].extractor,s=a?a(e):e[o],l=this.tokenizer(s,{fields:[o]}),c=this.pipeline.run(l),u=new j.FieldRef(n,o),h=Object.create(null);this.fieldTermFrequencies[u]=h,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var f=0;f<c.length;f++){var d=c[f];if(null==h[d]&&(h[d]=0),h[d]+=1,null==this.invertedIndex[d]){var p=Object.create(null);p._index=this.termIndex,this.termIndex+=1;for(var g=0;g<r.length;g++)p[r[g]]=Object.create(null);this.invertedIndex[d]=p}null==this.invertedIndex[d][o][n]&&(this.invertedIndex[d][o][n]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var v=this.metadataWhitelist[m],y=d.metadata[v];null==this.invertedIndex[d][o][n][v]&&(this.invertedIndex[d][o][n][v]=[]),this.invertedIndex[d][o][n][v].push(y)}}}},j.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},r={},i=0;i<t;i++){var o=j.FieldRef.fromString(e[i]),a=o.fieldName;r[a]||(r[a]=0),r[a]+=1,n[a]||(n[a]=0),n[a]+=this.fieldLengths[o]}var s=Object.keys(this._fields);for(i=0;i<s.length;i++){var l=s[i];n[l]=n[l]/r[l]}this.averageFieldLength=n},j.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,r=Object.create(null),i=0;i<n;i++){for(var o=j.FieldRef.fromString(t[i]),a=o.fieldName,s=this.fieldLengths[o],l=new j.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),h=u.length,f=this._fields[a].boost||1,d=this._documents[o.docRef].boost||1,p=0;p<h;p++){var g,m,v,y=u[p],x=c[y],w=this.invertedIndex[y]._index;void 0===r[y]?(g=j.idf(this.invertedIndex[y],this.documentCount),r[y]=g):g=r[y],m=g*((this._k1+1)*x)/(this._k1*(1-this._b+this._b*(s/this.averageFieldLength[a]))+x),m*=f,m*=d,v=Math.round(1e3*m)/1e3,l.insert(w,v)}e[o]=l}this.fieldVectors=e},j.Builder.prototype.createTokenSet=function(){this.tokenSet=j.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},j.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new j.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},j.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},j.MatchData=function(e,t,n){for(var r=Object.create(null),i=Object.keys(n||{}),o=0;o<i.length;o++){var a=i[o];r[a]=n[a].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=r)},j.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var r=t[n],i=Object.keys(e.metadata[r]);null==this.metadata[r]&&(this.metadata[r]=Object.create(null));for(var o=0;o<i.length;o++){var a=i[o],s=Object.keys(e.metadata[r][a]);null==this.metadata[r][a]&&(this.metadata[r][a]=Object.create(null));for(var l=0;l<s.length;l++){var c=s[l];null==this.metadata[r][a][c]?this.metadata[r][a][c]=e.metadata[r][a][c]:this.metadata[r][a][c]=this.metadata[r][a][c].concat(e.metadata[r][a][c])}}}},j.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},j.Query=function(e){this.clauses=[],this.allFields=e},j.Query.wildcard=new String("*"),j.Query.wildcard.NONE=0,j.Query.wildcard.LEADING=1,j.Query.wildcard.TRAILING=2,j.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},j.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=j.Query.wildcard.NONE),e.wildcard&j.Query.wildcard.LEADING&&e.term.charAt(0)!=j.Query.wildcard&&(e.term="*"+e.term),e.wildcard&j.Query.wildcard.TRAILING&&e.term.slice(-1)!=j.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=j.Query.presence.OPTIONAL),this.clauses.push(e),this},j.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=j.Query.presence.PROHIBITED)return!1;return!0},j.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach(function(e){this.term(e,j.utils.clone(t))},this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},j.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},j.QueryParseError.prototype=new Error,j.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},j.QueryLexer.prototype.run=function(){for(var e=j.QueryLexer.lexText;e;)e=e(this)},j.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,r=0;r<this.escapeCharPositions.length;r++)n=this.escapeCharPositions[r],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},j.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},j.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},j.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return j.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},j.QueryLexer.prototype.width=function(){return this.pos-this.start},j.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},j.QueryLexer.prototype.backup=function(){this.pos-=1},j.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=j.QueryLexer.EOS&&this.backup()},j.QueryLexer.prototype.more=function(){return this.pos<this.length},j.QueryLexer.EOS="EOS",j.QueryLexer.FIELD="FIELD",j.QueryLexer.TERM="TERM",j.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",j.QueryLexer.BOOST="BOOST",j.QueryLexer.PRESENCE="PRESENCE",j.QueryLexer.lexField=function(e){return e.backup(),e.emit(j.QueryLexer.FIELD),e.ignore(),j.QueryLexer.lexText},j.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(j.QueryLexer.TERM)),e.ignore(),e.more())return j.QueryLexer.lexText},j.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.EDIT_DISTANCE),j.QueryLexer.lexText},j.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.BOOST),j.QueryLexer.lexText},j.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(j.QueryLexer.TERM)},j.QueryLexer.termSeparator=j.tokenizer.separator,j.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==j.QueryLexer.EOS)return j.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return j.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if(t.match(j.QueryLexer.termSeparator))return j.QueryLexer.lexTerm}else e.escapeCharacter()}},j.QueryParser=function(e,t){this.lexer=new j.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},j.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=j.QueryParser.parseClause;e;)e=e(this);return this.query},j.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},j.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},j.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},j.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case j.QueryLexer.PRESENCE:return j.QueryParser.parsePresence;case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new j.QueryParseError(n,t.start,t.end)}},j.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=j.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=j.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new j.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new j.QueryParseError(n,t.start,t.end)}switch(r.type){case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new j.QueryParseError(n,r.start,r.end)}}},j.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map(function(e){return"'"+e+"'"}).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new j.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var i=e.peekLexeme();if(null==i){r="expecting term, found nothing";throw new j.QueryParseError(r,t.start,t.end)}switch(i.type){case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:r="expecting term, found '"+i.type+"'";throw new j.QueryParseError(r,i.start,i.end)}}},j.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new j.QueryParseError(r,n.start,n.end)}else e.nextClause()}},j.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new j.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+i.type+"'";throw new j.QueryParseError(r,i.start,i.end)}else e.nextClause()}},j.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new j.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+i.type+"'";throw new j.QueryParseError(r,i.start,i.end)}else e.nextClause()}},e.exports=j}()});var wn=[],bn=[],_n="undefined"!=typeof Uint8Array?Uint8Array:Array,$n=!1;function kn(){$n=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)wn[t]=e[t],bn[e.charCodeAt(t)]=t;bn["-".charCodeAt(0)]=62,bn["_".charCodeAt(0)]=63}function An(e,t,n){for(var r,i,o=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(wn[(i=r)>>18&63]+wn[i>>12&63]+wn[i>>6&63]+wn[63&i]);return o.join("")}function En(e){var t;$n||kn();for(var n=e.length,r=n%3,i="",o=[],a=0,s=n-r;a<s;a+=16383)o.push(An(e,a,a+16383>s?s:a+16383));return 1===r?(t=e[n-1],i+=wn[t>>2],i+=wn[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=wn[t>>10],i+=wn[t>>4&63],i+=wn[t<<2&63],i+="="),o.push(i),o.join("")}function jn(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,h=n?i-1:0,f=n?-1:1,d=e[t+h];for(h+=f,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+h],h+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)}function In(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,h=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?f/l:f*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+d]=255&a,d+=p,a/=256,c-=8);e[n+d-p]|=128*g}var Tn={}.toString,Sn=Array.isArray||function(e){return"[object Array]"==Tn.call(e)};Dn.TYPED_ARRAY_SUPPORT=void 0===en.TYPED_ARRAY_SUPPORT||en.TYPED_ARRAY_SUPPORT;var Mn=Cn();function Cn(){return Dn.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function On(e,t){if(Cn()<t)throw new RangeError("Invalid typed array length");return Dn.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Dn.prototype:(null===e&&(e=new Dn(t)),e.length=t),e}function Dn(e,t,n){if(!(Dn.TYPED_ARRAY_SUPPORT||this instanceof Dn))return new Dn(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Rn(this,e)}return Nn(this,e,t,n)}function Nn(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);Dn.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Dn.prototype:e=Ln(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!Dn.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Bn(t,n),i=(e=On(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(zn(t)){var n=0|Fn(t.length);return 0===(e=On(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?On(e,0):Ln(e,t);if("Buffer"===t.type&&Sn(t.data))return Ln(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Pn(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Rn(e,t){if(Pn(t),e=On(e,t<0?0:0|Fn(t)),!Dn.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function Ln(e,t){var n=t.length<0?0:0|Fn(t.length);e=On(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Fn(e){if(e>=Cn())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Cn().toString(16)+" bytes");return 0|e}function zn(e){return!(null==e||!e._isBuffer)}function Bn(e,t){if(zn(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return dr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return pr(e).length;default:if(r)return dr(e).length;t=(""+t).toLowerCase(),r=!0}}function Hn(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Vn(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=Dn.from(t,r)),zn(t))return 0===t.length?-1:Wn(e,t,n,r,i);if("number"==typeof t)return t&=255,Dn.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Wn(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Wn(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;f<l;f++)if(c(e,o+f)!==c(t,f)){h=!1;break}if(h)return o}return-1}function Un(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function Yn(e,t,n,r){return gr(dr(t,e.length-n),e,n,r)}function qn(e,t,n,r){return gr(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Qn(e,t,n,r){return qn(e,t,n,r)}function Kn(e,t,n,r){return gr(pr(t),e,n,r)}function Jn(e,t,n,r){return gr(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Gn(e,t,n){return 0===t&&n===e.length?En(e):En(e.slice(t,n))}function Zn(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(e){var t=e.length;if(t<=Xn)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Xn));return n}(r)}Dn.poolSize=8192,Dn._augment=function(e){return e.__proto__=Dn.prototype,e},Dn.from=function(e,t,n){return Nn(null,e,t,n)},Dn.TYPED_ARRAY_SUPPORT&&(Dn.prototype.__proto__=Uint8Array.prototype,Dn.__proto__=Uint8Array),Dn.alloc=function(e,t,n){return function(e,t,n,r){return Pn(t),t<=0?On(e,t):void 0!==n?"string"==typeof r?On(e,t).fill(n,r):On(e,t).fill(n):On(e,t)}(null,e,t,n)},Dn.allocUnsafe=function(e){return Rn(null,e)},Dn.allocUnsafeSlow=function(e){return Rn(null,e)},Dn.isBuffer=mr,Dn.compare=function(e,t){if(!zn(e)||!zn(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},Dn.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Dn.concat=function(e,t){if(!Sn(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Dn.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Dn.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!zn(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},Dn.byteLength=Bn,Dn.prototype._isBuffer=!0,Dn.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Hn(this,t,t+1);return this},Dn.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Hn(this,t,t+3),Hn(this,t+1,t+2);return this},Dn.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Hn(this,t,t+7),Hn(this,t+1,t+6),Hn(this,t+2,t+5),Hn(this,t+3,t+4);return this},Dn.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Zn(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return nr(this,t,n);case"utf8":case"utf-8":return Zn(this,t,n);case"ascii":return er(this,t,n);case"latin1":case"binary":return tr(this,t,n);case"base64":return Gn(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rr(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},Dn.prototype.equals=function(e){if(!zn(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Dn.compare(this,e)},Dn.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Dn.prototype.compare=function(e,t,n,r,i){if(!zn(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),u=0;u<s;++u)if(l[u]!==c[u]){o=l[u],a=c[u];break}return o<a?-1:a<o?1:0},Dn.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},Dn.prototype.indexOf=function(e,t,n){return Vn(this,e,t,n,!0)},Dn.prototype.lastIndexOf=function(e,t,n){return Vn(this,e,t,n,!1)},Dn.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Un(this,e,t,n);case"utf8":case"utf-8":return Yn(this,e,t,n);case"ascii":return qn(this,e,t,n);case"latin1":case"binary":return Qn(this,e,t,n);case"base64":return Kn(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jn(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Dn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Xn=4096;function er(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function tr(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function nr(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=fr(e[o]);return i}function rr(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function ir(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function or(e,t,n,r,i,o){if(!zn(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function ar(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function sr(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function lr(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function cr(e,t,n,r,i){return i||lr(e,0,n,4),In(e,t,n,r,23,4),n+4}function ur(e,t,n,r,i){return i||lr(e,0,n,8),In(e,t,n,r,52,8),n+8}Dn.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),Dn.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=Dn.prototype;else{var i=t-e;n=new Dn(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},Dn.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||ir(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},Dn.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||ir(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},Dn.prototype.readUInt8=function(e,t){return t||ir(e,1,this.length),this[e]},Dn.prototype.readUInt16LE=function(e,t){return t||ir(e,2,this.length),this[e]|this[e+1]<<8},Dn.prototype.readUInt16BE=function(e,t){return t||ir(e,2,this.length),this[e]<<8|this[e+1]},Dn.prototype.readUInt32LE=function(e,t){return t||ir(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Dn.prototype.readUInt32BE=function(e,t){return t||ir(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Dn.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||ir(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},Dn.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||ir(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Dn.prototype.readInt8=function(e,t){return t||ir(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Dn.prototype.readInt16LE=function(e,t){t||ir(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Dn.prototype.readInt16BE=function(e,t){t||ir(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Dn.prototype.readInt32LE=function(e,t){return t||ir(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Dn.prototype.readInt32BE=function(e,t){return t||ir(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Dn.prototype.readFloatLE=function(e,t){return t||ir(e,4,this.length),jn(this,e,!0,23,4)},Dn.prototype.readFloatBE=function(e,t){return t||ir(e,4,this.length),jn(this,e,!1,23,4)},Dn.prototype.readDoubleLE=function(e,t){return t||ir(e,8,this.length),jn(this,e,!0,52,8)},Dn.prototype.readDoubleBE=function(e,t){return t||ir(e,8,this.length),jn(this,e,!1,52,8)},Dn.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||or(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},Dn.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||or(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},Dn.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||or(this,e,t,1,255,0),Dn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Dn.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||or(this,e,t,2,65535,0),Dn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ar(this,e,t,!0),t+2},Dn.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||or(this,e,t,2,65535,0),Dn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ar(this,e,t,!1),t+2},Dn.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||or(this,e,t,4,4294967295,0),Dn.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):sr(this,e,t,!0),t+4},Dn.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||or(this,e,t,4,4294967295,0),Dn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):sr(this,e,t,!1),t+4},Dn.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);or(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},Dn.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);or(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},Dn.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||or(this,e,t,1,127,-128),Dn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Dn.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||or(this,e,t,2,32767,-32768),Dn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ar(this,e,t,!0),t+2},Dn.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||or(this,e,t,2,32767,-32768),Dn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ar(this,e,t,!1),t+2},Dn.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||or(this,e,t,4,2147483647,-2147483648),Dn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):sr(this,e,t,!0),t+4},Dn.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||or(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Dn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):sr(this,e,t,!1),t+4},Dn.prototype.writeFloatLE=function(e,t,n){return cr(this,e,t,!0,n)},Dn.prototype.writeFloatBE=function(e,t,n){return cr(this,e,t,!1,n)},Dn.prototype.writeDoubleLE=function(e,t,n){return ur(this,e,t,!0,n)},Dn.prototype.writeDoubleBE=function(e,t,n){return ur(this,e,t,!1,n)},Dn.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!Dn.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},Dn.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Dn.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=zn(e)?e:dr(new Dn(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var hr=/[^+\/0-9A-Za-z-_]/g;function fr(e){return e<16?"0"+e.toString(16):e.toString(16)}function dr(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function pr(e){return function(e){var t,n,r,i,o,a;$n||kn();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new _n(3*s/4-o),r=o>0?s-4:s;var l=0;for(t=0,n=0;t<r;t+=4,n+=3)i=bn[e.charCodeAt(t)]<<18|bn[e.charCodeAt(t+1)]<<12|bn[e.charCodeAt(t+2)]<<6|bn[e.charCodeAt(t+3)],a[l++]=i>>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=bn[e.charCodeAt(t)]<<2|bn[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=bn[e.charCodeAt(t)]<<10|bn[e.charCodeAt(t+1)]<<4|bn[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(hr,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function gr(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function mr(e){return null!=e&&(!!e._isBuffer||vr(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&vr(e.slice(0,0))}(e))}function vr(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var yr=Object.freeze({INSPECT_MAX_BYTES:50,kMaxLength:Mn,Buffer:Dn,SlowBuffer:function(e){return+e!=e&&(e=0),Dn.alloc(+e)},isBuffer:mr});ne(function(e,t){var n=yr.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function i(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=yr:(r(yr,t),t.Buffer=i),i.prototype=Object.create(n.prototype),r(n,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return yr.SlowBuffer(e)}}).Buffer;const xr=e=>de(["onBegin","onComplete","onError"])(e),wr=()=>xr([]),br={recordApi:{save:xr(["onInvalid","onRecordUpdated","onRecordCreated"]),delete:wr(),getContext:wr(),getNew:wr(),load:wr(),validate:wr(),uploadFile:wr(),downloadFile:wr()},indexApi:{buildIndex:wr(),listItems:wr(),delete:wr(),aggregates:wr()},collectionApi:{getAllowedRecordTypes:wr(),initialise:wr(),delete:wr()},authApi:{authenticate:wr(),authenticateTemporaryAccess:wr(),createTemporaryAccess:wr(),createUser:wr(),enableUser:wr(),disableUser:wr(),loadAccessLevels:wr(),getNewAccessLevel:wr(),getNewUser:wr(),getNewUserAuth:wr(),getUsers:wr(),saveAccessLevels:wr(),isAuthorized:wr(),changeMyPassword:wr(),setPasswordFromTemporaryCode:wr(),scorePassword:wr(),isValidPassword:wr(),validateUser:wr(),validateAccessLevels:wr(),setUserAccessLevels:wr()},templateApi:{saveApplicationHierarchy:wr(),saveActionsAndTriggers:wr()},actionsApi:{execute:wr()}},_r=[],$r=(e,t,n)=>`${e}:${t}:${n}`;for(const e in br)for(const t in br[e])br[e][t]=pe((n,r)=>(n[r]=$r(e,t,r),n),{})(br[e][t]);for(const e in br)for(const t in br[e])for(const n in br[e][t])_r.push(br[e][t][n]);const kr=br,Ar=_r;class Er extends Error{constructor(e){super(e),this.httpStatusCode=400}}class jr extends Error{constructor(e){super(e),this.httpStatusCode=401}}class Ir extends Error{constructor(e){super(e),this.httpStatusCode=404}}const Tr=async(e,t,n,r,i,...o)=>{if(Cr(e,t),!n(e))return void Mr(e,r,t);const a=Date.now(),s=()=>Date.now()-a;try{await e.publish(t.onBegin,r);const n=await i(...o);return await Nr(e,r,t,s,n),n}catch(n){throw await Dr(e,r,t,s,n),n}},Sr=(e,t,n,r,i,...o)=>{if(Cr(e,t),!n(e))return void Mr(e,r,t);const a=Date.now(),s=()=>Date.now()-a;try{e.publish(t.onBegin,r);const n=i(...o);return Nr(e,r,t,s,n),n}catch(n){throw Dr(e,r,t,s,n),n}},Mr=(e,t,n)=>{const r=new jr(`Unauthorized: ${n}`);throw Dr(e,t,n,()=>0,r),r},Cr=(e,t,n)=>{const r=wt();ge(e.calls)&&(e.calls=(()=>({seedCallId:ge(n)?r:n,threadCallId:r,stack:[]}))()),e.calls.stack.push({namespace:t,callId:r})},Or=e=>{e.calls.stack.pop(),0===e.calls.stack.length&&delete e.calls},Dr=async(e,t,n,r,i)=>{const o=me(t);o.error=i,o.elapsed=r(),await e.publish(n.onError,o),Or(e)},Nr=async(e,t,n,r,i)=>{const o=me(t);return o.result=i,o.elapsed=r(),await e.publish(n.onComplete,o),Or(e),i},Pr=async(e,t,n,r,i=0)=>{try{const o={timeout:await e.getEpochTime()+n,key:t,totalTimeout:n};return await e.datastore.createFile(t,Rr(o.totalTimeout,o.timeout)),o}catch(o){if(i==r)return zr;const a=Lr(t,await e.datastore.loadFile(t));if(await e.getEpochTime()<a.timeout)return zr;try{await e.datastore.deleteFile(t)}catch(e){}return await Hr(),await Pr(e,t,n,r,i+1)}},Rr=(e,t)=>`${e}:${t.toString()}`,Lr=(e,t)=>Wr(t,[ve(":"),t=>({totalTimeout:new Number(t[0]),timeout:new Number(t[1]),key:e})]),Fr=async(e,t)=>{if(await e.getEpochTime()<t.timeout-10)try{await e.datastore.deleteFile(t.key)}catch(e){}},zr="no lock",Br=e=>e===zr,Hr=()=>new Promise(e=>setTimeout(e,10)),Vr=(...e)=>t=>$t(e)(t),Wr=(e,t)=>Vr(...t)(e),Ur=e=>jt(e,"/"),Yr=(...e)=>{const t=1===e.length&kt(e[0])?e[0]:e;return(e=>Et(`/${Ur(e)}`,"//","/"))(At(t,"/"))},qr=Vr(Ur,e=>Wt(e,"/")),Qr=Vr(qr,It,e=>Yr(...e)),Kr=Vr(qr,Tt,St),Jr=Yr("/.config","fields.json"),Gr=Yr("/.config","templates.json"),Zr=Yr("/.config","appDefinition.json"),Xr=e=>Yr("/.config","dir",...qr(e),"dir.idx"),ei=Vr(Qr,Xr),ti=(e,t,n)=>Mt(e)?Mt(n)?void 0:n():t(),ni=e=>t=>!e(t),ri=ni(Mt),ii=ni(Ct),oi=ni(Ot),ai=(...e)=>t=>Dt(e,(e,n)=>(Ct(e)||1==e)&&n(t),null),si=(...e)=>t=>Dt(e,(e,n)=>1==e||n(t),null),li=(e,t)=>e.trim().toLowerCase()===t.trim().toLowerCase(),ci=ai(ri,ii,oi),ui=ni(ci),hi=e=>ui(e)||Nt(e),fi=e=>t=>ci(t)?t:e(),di=(e,t)=>n=>ci(n)?e(n):t,pi=e=>t=>!ye(e)(t),gi=e=>t=>pi(t=>!e(t))(t),mi=e=>!Nt(e),vi=ai(kt,mi),yi=ai(Vt,mi),xi=e=>(t,...n)=>{try{return t.apply(null,...n)}catch(t){return e()}},wi=e=>async(t,...n)=>{try{return await t.apply(null,...n)}catch(t){return await e()}},bi=xi(()=>{}),_i=wi(async()=>{}),$i=e=>{try{return e(),!1}catch(e){return!0}},ki=e=>!$i(e),Ai=e=>xi(Pt(e)),Ei=Ai(void 0),ji=(...e)=>t=>{if(!Nt(e))return!0===(()=>St(e)[0](t))()?(()=>St(e)[1](t))():ji(...Rt(e))(t)},Ii=(...e)=>t=>Lt(e,t),Ti=Pt(!0),Si=e=>{let t,n,r,i=0;if(0==e.length)return i;for(t=0,r=e.length;t<r;t++)i=(i<<5)-i+(n=e.charCodeAt(t)),i|=0;return i<0?`n${(-1*i).toString()}`:i.toString()},Mi=e=>Bt(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=0-Number.MAX_SAFE_INTEGER,Ci=e=>Ct(e)?null:Ht(e)?e:new Date(e),Oi=e=>Ct(e)?null:"true"===e||!0===e,Di=e=>Ct(e)?null:_t(e),Ni=e=>kt(e)&&gi(Vt)(e),Pi=async e=>new Promise(t=>setTimeout(t,e)),Ri=async(e,t,n,...r)=>{try{return await e(...r)}catch(i){if(t>1)return await Pi(n).then(async()=>await Ri(e,t-1,n,...r));throw i}};var Li={ifExists:ti,getOrDefault:(e,t)=>ti(e,()=>e,()=>t),isDefined:ri,isNonNull:ii,isNotNaN:oi,allTrue:ai,isSomething:ci,mapIfSomethingOrDefault:di,mapIfSomethingOrBlank:e=>di(e,""),configFolder:"/.config",fieldDefinitions:Jr,isNothing:ui,not:ni,switchCase:ji,defaultCase:Ti,StartsWith:e=>t=>Ft(t,e),contains:e=>t=>zt(t,t=>t===e)>-1,templateDefinitions:Gr,handleErrorWith:Ai,handleErrorWithUndefined:Ei,tryOr:xi,tryOrIgnore:bi,tryAwaitOr:wi,tryAwaitOrIgnore:_i,dirIndex:Xr,keySep:"/",$:Wr,$$:Vr,getDirFomKey:Qr,getFileFromKey:Kr,splitKey:qr,somethingOrDefault:(e,t)=>fi(Pt(t))(e),getIndexKeyFromFileKey:ei,joinKey:Yr,somethingOrGetDefault:fi,appDefinitionFile:Zr,isValue:e=>t=>e===t,all:gi,isOneOf:Ii,memberMatches:(e,t)=>n=>t(n[e]),defineError:(e,t)=>{try{return e()}catch(e){throw e.message=`${t} : ${e.message}`,e}},anyTrue:si,isNonEmptyArray:vi,causesException:$i,executesWithoutException:ki,none:pi,getHashCode:Si,awEx:async e=>{try{return[void 0,await e]}catch(e){return[e,void 0]}},apiWrapper:Tr,events:kr,eventsList:Ar,isNothingOrEmpty:hi,isSafeInteger:Mi,toNumber:_t,toDate:Ci,toBool:Oi,isArrayOfString:Ni,getLock:Pr,NO_LOCK:zr,isNolock:Br,insensitiveEquals:li,pause:Pi,retry:Ri};const Fi=(e,t,n)=>({field:e,error:t,isValid:n}),zi=(e,t)=>({...e,item:t}),Bi=e=>t=>Wr(e,[xe(Hi(t)),we(ci)]),Hi=e=>t=>t.isValid(e)?null:zi(t,e),Vi={reference:"reference",ancestor:"ancestor"},Wi=[Fi("map","index has no map function",e=>yi(e.map)),Fi("map","index's map function does not compile",e=>!yi(e.map)||ki(()=>(e=>fn(e.map))(e))),Fi("filter","index's filter function does not compile",e=>!yi(e.filter)||ki(()=>(e=>hn(e.filter))(e))),Fi("name","must declare a name for index",e=>yi(e.name)),Fi("name","there is a duplicate named index on this node",e=>be(e.name)||1===_e("name")(e.parent().indexes)[e.name]),Fi("indexType","reference index may only exist on a record node",e=>ro(e.parent())||e.indexType!==Vi.reference),Fi("indexType",`index type must be one of: ${At(", ",Ut(Vi))}`,e=>$e(e.indexType)(Ut(Vi)))],Ui=(e,t=!0)=>{if(ci(e.getFlattenedHierarchy)&&t)return e.getFlattenedHierarchy();const n=(e,t)=>{if(t.push(e),!(e.children&&0!==e.children.length||e.indexes&&0!==e.indexes.length||e.aggregateGroups&&0!==e.aggregateGroups.length))return t;const r=e=>t=>de(t)(e||[]),i=Wr([],[r(e.children),r(e.indexes),r(e.aggregateGroups)]);for(const e of i)n(e,t);return t};return e.getFlattenedHierarchy=(()=>n(e,[])),e.getFlattenedHierarchy()},Yi=e=>t=>Wr(e,[Ui,Ae(e=>new RegExp(`${e.pathRegx()}$`).test(t))]),qi=e=>t=>ji([e=>ui(e.parent()),Ee(!1)],[t=>e(t.parent()),Ee(!0)],[Ti,t=>qi(e)(t.parent())])(t),Qi=(e,t)=>Wr(e,[Ui,Ae(e=>e.nodeKey()===t||io(e)&&e.collectionNodeKey()===t)]),Ki=(e,t)=>{const n=Yi(e)(t);return ui(n)?Qi(e,t):n},Ji=(e,t)=>ci(Yi(e)(t)),Gi=e=>t=>qi(t=>t.nodeKey()===e)(t),Zi=e=>t=>Gi(t.nodeKey())(e),Xi=e=>t=>Zi(t)(e),eo=e=>Wr(e,[ve("-"),Ie,parseInt]),to=e=>t=>0===e.allowedRecordNodeIds.length||$e(t)(e.allowedRecordNodeIds),no=e=>t=>to(e)(t.nodeId),ro=e=>ci(e)&&"record"===e.type,io=e=>ro(e)&&!e.isSingle,oo=e=>ci(e)&&"index"===e.type,ao=e=>ci(e)&&"aggregateGroup"===e.type,so=e=>ci(e)&&e.isRoot(),lo=qi(ro),co=e=>oo(e)&&so(e.parent()),uo=e=>oo(e)&&e.indexType===Vi.reference,ho=e=>oo(e)&&e.indexType===Vi.ancestor,fo=e=>t=>"reference"===t.type&&Te(t.typeOptions.reverseIndexNodeKeys)([e.nodeKey()]).length>0;var po={getLastPartInKey:e=>ke(qr(e)),getNodesInPath:e=>t=>Wr(e,[Ui,we(e=>new RegExp(`${e.pathRegx()}`).test(t))]),getExactNodeForPath:Yi,hasMatchingAncestor:qi,getNode:Qi,getNodeByKeyOrNodeKey:Ki,isNode:Ji,getActualKeyOfParent:(e,t)=>Wr(t,[qr,je(qr(e).length),e=>Yr(...e)]),getParentKey:e=>Wr(e,[qr,je(qr(e).length-1),Yr]),isKeyAncestorOf:Gi,hasNoMatchingAncestors:e=>t=>!qi(e)(t),findField:(e,t)=>Ae(e=>e.name==t)(e.fields),isAncestor:Zi,isDecendant:Xi,getRecordNodeId:e=>Wr(e,[qr,ke,eo]),getRecordNodeIdFromId:eo,getRecordNodeById:(e,t)=>Wr(e,[Ui,Ae(e=>ro(e)&&e.nodeId===eo(t))]),recordNodeIdIsAllowed:to,recordNodeIsAllowed:no,getAllowedRecordNodesForIndex:(e,t)=>{const n=Wr(e,[Ui,we(ro)]);return co(t)?Wr(n,[we(no(t))]):ho(t)?Wr(n,[we(Xi(t.parent())),we(no(t))]):uo(t)?Wr(n,[we(e=>ye(fo(t))(e.fields))]):void 0},getNodeFromNodeKeyHash:e=>t=>Wr(e,[Ui,Ae(e=>Si(e.nodeKey())===t)]),isRecord:ro,isCollectionRecord:io,isIndex:oo,isaggregateGroup:ao,isShardedIndex:e=>oo(e)&&yi(e.getShardName),isRoot:so,isDecendantOfARecord:lo,isGlobalIndex:co,isReferenceIndex:uo,isAncestorIndex:ho,fieldReversesReferenceToNode:e=>t=>"reference"===t.type&&Te(t.typeOptions.reverseIndexNodeKeys)(xe(e=>e.nodeKey())(e.indexes)).length>0,fieldReversesReferenceToIndex:fo,getFlattenedHierarchy:Ui};const go=(e,t)=>(n,r)=>qt(r,n.name)?mo(e,t)(r[n.name]):t[n.getUndefinedValue](),mo=(e,t)=>n=>{const r=e(n);return r.success?r.value:t.default()},vo=(e,t)=>n=>{const r=ge(n)||ge(n.getInitialValue)?"default":n.getInitialValue;return qt(t,r)?t[r]():mo(e,t)(r)},yo=e=>Yt({value:Ee,null:Ee(null)},e),xo=e=>async(t,n,r)=>{const i=n[t.name],o=async e=>await e.isValid(i,t.typeOptions,r)?"":e.getMessage(i,t.typeOptions),a=[];for(const t of e){const e=await o(t);mi(e)&&a.push(e)}return a},wo=Se(e=>e.defaultValue),bo=(e,t)=>({isValid:e,getMessage:t}),_o=e=>({success:!1,value:e}),$o=e=>({success:!0,value:e}),ko=(e,t,n,r,i,o,a)=>({getNew:vo(t,n),safeParseField:go(t,n),safeParseValue:mo(t,n),tryParse:t,name:e,getDefaultOptions:()=>wo(me(r)),optionDefinitions:r,validateTypeConstraints:xo(i),sampleValue:o,stringify:e=>null==e?"":a(e),getDefaultValue:n.default}),Ao=yo({default:Pt(null)}),Eo=ji([Vt,$o],[Ct,$o],[Ti,e=>$o(e.toString())]),jo={maxLength:{defaultValue:null,isValid:e=>null===e||Mi(e)&&e>0,requirementDescription:"max length must be null (no limit) or a greater than zero integer",parse:Di},values:{defaultValue:null,isValid:e=>null===e||Ni(e)&&e.length>0&&e.length<1e4,requirementDescription:"'values' must be null (no values) or an arry of at least one string",parse:e=>e},allowDeclaredValuesOnly:{defaultValue:!1,isValid:Qt,requirementDescription:"allowDeclaredValuesOnly must be true or false",parse:Oi}},Io=[bo(async(e,t)=>null===e||null===t.maxLength||e.length<=t.maxLength,(e,t)=>`value exceeds maximum length of ${t.maxLength}`),bo(async(e,t)=>null===e||!1===t.allowDeclaredValuesOnly||Lt(t.values,e),e=>`"${e}" does not exist in the list of allowed values`)];var To=ko("string",Eo,Ao,jo,Io,"abcde",e=>e);const So=yo({default:Pt(null)}),Mo=ji([Qt,$o],[Ct,$o],[Ii("true","1","yes","on"),()=>$o(!0)],[Ii("false","0","no","off"),()=>$o(!1)],[Ti,_o]),Co={allowNulls:{defaultValue:!0,isValid:Qt,requirementDescription:"must be a true or false",parse:Oi}},Oo=[bo(async(e,t)=>!0===t.allowNulls||null!==e,()=>"field cannot be null")];var Do=ko("bool",Mo,So,Co,Oo,!0,JSON.stringify);const No=yo({default:Pt(null)}),Po=ji([Kt,$o],[Vt,e=>{const t=Number(e);return isNaN(t)?_o(e):$o(t)}],[Ct,$o],[Ti,_o]),Ro={maxValue:{defaultValue:Number.MAX_SAFE_INTEGER,isValid:Mi,requirementDescription:"must be a valid integer",parse:Di},minValue:{defaultValue:0-Number.MAX_SAFE_INTEGER,isValid:Mi,requirementDescription:"must be a valid integer",parse:Di},decimalPlaces:{defaultValue:0,isValid:e=>Mi(e)&&e>=0,requirementDescription:"must be a positive integer",parse:Di}},Lo=[bo(async(e,t)=>null===e||null===t.minValue||e>=t.minValue,(e,t)=>`value (${e.toString()}) must be greater than or equal to ${t.minValue}`),bo(async(e,t)=>null===e||null===t.maxValue||e<=t.maxValue,(e,t)=>`value (${e.toString()}) must be less than or equal to ${t.minValue} options`),bo(async(e,t)=>null===e||t.decimalPlaces>=(e=>{const t=e.toString().split(".");return 1===t.length?0:t[1].length})(e),(e,t)=>`value (${e.toString()}) must have ${t.decimalPlaces} decimal places or less`)];var Fo=ko("number",Po,No,Ro,Lo,1,e=>e.toString());const zo=yo({default:Pt(null),now:()=>new Date}),Bo=e=>e instanceof Date&&!isNaN(e),Ho=ji([Ht,$o],[Vt,e=>ji([Bo,$o],[Ti,_o])(new Date(e))],[Ct,$o],[Ti,_o]),Vo={maxValue:{defaultValue:new Date(3250368e7),isValid:Ht,requirementDescription:"must be a valid date",parse:Ci},minValue:{defaultValue:new Date(-8520336e6),isValid:Ht,requirementDescription:"must be a valid date",parse:Ci}},Wo=[bo(async(e,t)=>null===e||null===t.minValue||e>=t.minValue,(e,t)=>`value (${e.toString()}) must be greater than or equal to ${t.minValue}`),bo(async(e,t)=>null===e||null===t.maxValue||e<=t.maxValue,(e,t)=>`value (${e.toString()}) must be less than or equal to ${t.minValue} options`)];var Uo=ko("datetime",Ho,zo,Vo,Wo,new Date(1984,4,1),e=>JSON.stringify(e).replace(new RegExp('"',"g"),""));const Yo=e=>Vr(xe(t=>e.safeParseValue(t)),$o),qo={maxLength:{defaultValue:1e4,isValid:Mi,requirementDescription:"must be a positive integer",parse:Di},minLength:{defaultValue:0,isValid:e=>Mi(e)&&e>=0,requirementDescription:"must be a positive integer",parse:Di}},Qo=[bo(async(e,t)=>null===e||e.length>=t.minLength,(e,t)=>`must choose ${t.minLength} or more options`),bo(async(e,t)=>null===e||e.length<=t.maxLength,(e,t)=>`cannot choose more than ${t.maxLength} options`)];var Ko=e=>ko((e=>`array<${e}>`)(e.name),(e=>ji([kt,Yo(e)],[Ti,_o]))(e),(()=>yo({default:Pt([])}))(),qo,Qo,[e.sampleValue],JSON.stringify);const Jo=()=>({key:""}),Go=yo({default:Jo}),Zo=e=>Jt(e)&&((e,t)=>qt(e,t)&&Vt(e[t]))(e,"key"),Xo={indexNodeKey:{defaultValue:null,isValid:yi,requirementDescription:"must be a non-empty string",parse:e=>e},displayValue:{defaultValue:"",isValid:yi,requirementDescription:"must be a non-empty string",parse:e=>e},reverseIndexNodeKeys:{defaultValue:null,isValid:e=>Ni(e)&&e.length>0,requirementDescription:"must be a non-empty array of strings",parse:e=>e}},ea=[bo(async(e,t,n)=>(e=>Vt(e)&&Nt(e))(e.key)||await n.referenceExists(t,e.key),(e,t)=>`"${e[t.displayValue]}" does not exist in options list (key: ${e.key})`)];var ta=ko("reference",e=>ji([Zo,$o],[Ct,()=>$o({key:""})],[Ti,_o])(e),Go,Xo,ea,{key:"key",value:"value"},JSON.stringify);const na=()=>({relativePath:"",size:0}),ra=yo({default:na}),ia=e=>Wr(e,[qr,ke]),oa=e=>!Me(e)&&Ce("relativePath")(e)&&Ce("size")(e)&&Oe(e.size)&&De(e.relativePath)&&(e=>{const t=ia(e);return t.length<=255&&0===Te(t.split(""))("*?\\/:<>|\0\b\f\v".split("")).length&&pi(e=>".."===e)(qr(e))})(e.relativePath);var aa=ko("file",e=>ji([oa,$o],[Me,()=>$o({relativePath:"",size:0})],[Ti,_o])(e),ra,{},[],{relativePath:"some_file.jpg",size:1e3},JSON.stringify);const sa=(()=>{const e={string:To,number:Fo,datetime:Uo,bool:Do,reference:ta,file:aa},t=Wr(e,[Ut,xe(t=>{const n={},r=Ko(e[t]);return n[r.name]=r,n}),e=>Gt({},...e)]);return Yt({},e,t)})(),la=e=>(e=>{if(!qt(sa,e))throw new Er(`Do not recognise type ${e}`);return sa[e]})(e).getDefaultOptions(),ca=Yr("/.auth","users.json"),ua=e=>Yr("/.auth",`auth_${e}.json`),ha=Yr("/.auth","users_lock"),fa=Yr("/.auth","access_levels.json"),da=Yr("/.auth","access_levels_lock"),pa={CREATE_RECORD:"create record",UPDATE_RECORD:"update record",READ_RECORD:"read record",DELETE_RECORD:"delete record",READ_INDEX:"read index",MANAGE_INDEX:"manage index",MANAGE_COLLECTION:"manage collection",WRITE_TEMPLATES:"write templates",CREATE_USER:"create user",SET_PASSWORD:"set password",CREATE_TEMPORARY_ACCESS:"create temporary access",ENABLE_DISABLE_USER:"enable or disable user",WRITE_ACCESS_LEVELS:"write access levels",LIST_USERS:"list users",LIST_ACCESS_LEVELS:"list access levels",EXECUTE_ACTION:"execute action",SET_USER_ACCESS_LEVELS:"set user access levels"},ga=(e,t)=>Wr(e,[Ae(e=>e.name.toLowerCase()===t.toLowerCase())]),ma=e=>{const t=Pe(e);return delete t.tempCode,t},va=e=>Wr(e,[ve(":"),e=>({id:e[1],code:e[2]})]),ya=e=>(t,n)=>Sr(e,kr.authApi.isAuthorized,Fa,{resourceKey:n,permissionType:t},xa,e,t,n),xa=(e,t,n)=>{if(!e.user)return!1;if(!Wr(pa,[Re,$e(t)]))return!1;return Wr(e.user.permissions,[ye(r=>{const i=ui(n)?null:Ji(e.hierarchy,n)?Ki(e.hierarchy,n).nodeKey():n;return r.type===t&&(ui(n)||i===r.nodeKey)})])},wa=e=>({add:(t,n)=>n.permissions.push({type:e,nodeKey:t}),isAuthorized:t=>n=>ya(n)(e,t),isNode:!0,get:t=>({type:e,nodeKey:t})}),ba=e=>({add:t=>t.permissions.push({type:e}),isAuthorized:t=>ya(t)(e),isNode:!1,get:()=>({type:e})}),_a=wa(pa.CREATE_RECORD),$a=wa(pa.UPDATE_RECORD),ka=wa(pa.DELETE_RECORD),Aa=wa(pa.READ_RECORD),Ea=ba(pa.WRITE_TEMPLATES),ja=ba(pa.CREATE_USER),Ia=ba(pa.SET_PASSWORD),Ta=wa(pa.READ_INDEX),Sa=ba(pa.MANAGE_INDEX),Ma=ba(pa.MANAGE_COLLECTION),Ca=ba(pa.CREATE_TEMPORARY_ACCESS),Oa=ba(pa.ENABLE_DISABLE_USER),Da=ba(pa.WRITE_ACCESS_LEVELS),Na=ba(pa.LIST_USERS),Pa=ba(pa.LIST_ACCESS_LEVELS),Ra=ba(pa.SET_USER_ACCESS_LEVELS),La=wa(pa.EXECUTE_ACTION),Fa=()=>!0,za={createRecord:_a,updateRecord:$a,deleteRecord:ka,readRecord:Aa,writeTemplates:Ea,createUser:ja,setPassword:Ia,readIndex:Ta,createTemporaryAccess:Ca,enableDisableUser:Oa,writeAccessLevels:Da,listUsers:Na,listAccessLevels:Pa,manageIndex:Sa,manageCollection:Ma,executeAction:La,setUserAccessLevels:Ra};var Ba="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Ha=[],Va=[],Wa="undefined"!=typeof Uint8Array?Uint8Array:Array,Ua=!1;function Ya(){Ua=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)Ha[t]=e[t],Va[e.charCodeAt(t)]=t;Va["-".charCodeAt(0)]=62,Va["_".charCodeAt(0)]=63}function qa(e,t,n){for(var r,i,o=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(Ha[(i=r)>>18&63]+Ha[i>>12&63]+Ha[i>>6&63]+Ha[63&i]);return o.join("")}function Qa(e){var t;Ua||Ya();for(var n=e.length,r=n%3,i="",o=[],a=0,s=n-r;a<s;a+=16383)o.push(qa(e,a,a+16383>s?s:a+16383));return 1===r?(t=e[n-1],i+=Ha[t>>2],i+=Ha[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Ha[t>>10],i+=Ha[t>>4&63],i+=Ha[t<<2&63],i+="="),o.push(i),o.join("")}function Ka(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,h=n?i-1:0,f=n?-1:1,d=e[t+h];for(h+=f,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+h],h+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)}function Ja(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,h=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?f/l:f*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+d]=255&a,d+=p,a/=256,c-=8);e[n+d-p]|=128*g}var Ga={}.toString,Za=Array.isArray||function(e){return"[object Array]"==Ga.call(e)};function Xa(){return ts.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function es(e,t){if(Xa()<t)throw new RangeError("Invalid typed array length");return ts.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ts.prototype:(null===e&&(e=new ts(t)),e.length=t),e}function ts(e,t,n){if(!(ts.TYPED_ARRAY_SUPPORT||this instanceof ts))return new ts(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return is(this,e)}return ns(this,e,t,n)}function ns(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);ts.TYPED_ARRAY_SUPPORT?(e=t).__proto__=ts.prototype:e=os(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!ts.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|ls(t,n),i=(e=es(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(ss(t)){var n=0|as(t.length);return 0===(e=es(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?es(e,0):os(e,t);if("Buffer"===t.type&&Za(t.data))return os(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function rs(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function is(e,t){if(rs(t),e=es(e,t<0?0:0|as(t)),!ts.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function os(e,t){var n=t.length<0?0:0|as(t.length);e=es(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function as(e){if(e>=Xa())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Xa().toString(16)+" bytes");return 0|e}function ss(e){return!(null==e||!e._isBuffer)}function ls(e,t){if(ss(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ds(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Ns(e).length;default:if(r)return Ds(e).length;t=(""+t).toLowerCase(),r=!0}}function cs(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function us(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=ts.from(t,r)),ss(t))return 0===t.length?-1:hs(e,t,n,r,i);if("number"==typeof t)return t&=255,ts.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):hs(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function hs(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;f<l;f++)if(c(e,o+f)!==c(t,f)){h=!1;break}if(h)return o}return-1}function fs(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function ds(e,t,n,r){return Ps(Ds(t,e.length-n),e,n,r)}function ps(e,t,n,r){return Ps(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function gs(e,t,n,r){return ps(e,t,n,r)}function ms(e,t,n,r){return Ps(Ns(t),e,n,r)}function vs(e,t,n,r){return Ps(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function ys(e,t,n){return 0===t&&n===e.length?Qa(e):Qa(e.slice(t,n))}function xs(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(e){var t=e.length;if(t<=ws)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=ws));return n}(r)}ts.TYPED_ARRAY_SUPPORT=void 0===Ba.TYPED_ARRAY_SUPPORT||Ba.TYPED_ARRAY_SUPPORT,ts.poolSize=8192,ts._augment=function(e){return e.__proto__=ts.prototype,e},ts.from=function(e,t,n){return ns(null,e,t,n)},ts.TYPED_ARRAY_SUPPORT&&(ts.prototype.__proto__=Uint8Array.prototype,ts.__proto__=Uint8Array),ts.alloc=function(e,t,n){return function(e,t,n,r){return rs(t),t<=0?es(e,t):void 0!==n?"string"==typeof r?es(e,t).fill(n,r):es(e,t).fill(n):es(e,t)}(null,e,t,n)},ts.allocUnsafe=function(e){return is(null,e)},ts.allocUnsafeSlow=function(e){return is(null,e)},ts.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Rs(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Rs(e.slice(0,0))}(e))},ts.compare=function(e,t){if(!ss(e)||!ss(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},ts.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ts.concat=function(e,t){if(!Za(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ts.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=ts.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!ss(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},ts.byteLength=ls,ts.prototype._isBuffer=!0,ts.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)cs(this,t,t+1);return this},ts.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)cs(this,t,t+3),cs(this,t+1,t+2);return this},ts.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)cs(this,t,t+7),cs(this,t+1,t+6),cs(this,t+2,t+5),cs(this,t+3,t+4);return this},ts.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?xs(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return $s(this,t,n);case"utf8":case"utf-8":return xs(this,t,n);case"ascii":return bs(this,t,n);case"latin1":case"binary":return _s(this,t,n);case"base64":return ys(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ks(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},ts.prototype.equals=function(e){if(!ss(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ts.compare(this,e)},ts.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},ts.prototype.compare=function(e,t,n,r,i){if(!ss(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),u=0;u<s;++u)if(l[u]!==c[u]){o=l[u],a=c[u];break}return o<a?-1:a<o?1:0},ts.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},ts.prototype.indexOf=function(e,t,n){return us(this,e,t,n,!0)},ts.prototype.lastIndexOf=function(e,t,n){return us(this,e,t,n,!1)},ts.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return fs(this,e,t,n);case"utf8":case"utf-8":return ds(this,e,t,n);case"ascii":return ps(this,e,t,n);case"latin1":case"binary":return gs(this,e,t,n);case"base64":return ms(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vs(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},ts.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ws=4096;function bs(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function _s(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function $s(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=Os(e[o]);return i}function ks(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function As(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Es(e,t,n,r,i,o){if(!ss(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function js(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function Is(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function Ts(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ss(e,t,n,r,i){return i||Ts(e,0,n,4),Ja(e,t,n,r,23,4),n+4}function Ms(e,t,n,r,i){return i||Ts(e,0,n,8),Ja(e,t,n,r,52,8),n+8}ts.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),ts.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=ts.prototype;else{var i=t-e;n=new ts(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},ts.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||As(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},ts.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||As(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},ts.prototype.readUInt8=function(e,t){return t||As(e,1,this.length),this[e]},ts.prototype.readUInt16LE=function(e,t){return t||As(e,2,this.length),this[e]|this[e+1]<<8},ts.prototype.readUInt16BE=function(e,t){return t||As(e,2,this.length),this[e]<<8|this[e+1]},ts.prototype.readUInt32LE=function(e,t){return t||As(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ts.prototype.readUInt32BE=function(e,t){return t||As(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ts.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||As(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},ts.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||As(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},ts.prototype.readInt8=function(e,t){return t||As(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ts.prototype.readInt16LE=function(e,t){t||As(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ts.prototype.readInt16BE=function(e,t){t||As(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ts.prototype.readInt32LE=function(e,t){return t||As(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ts.prototype.readInt32BE=function(e,t){return t||As(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ts.prototype.readFloatLE=function(e,t){return t||As(e,4,this.length),Ka(this,e,!0,23,4)},ts.prototype.readFloatBE=function(e,t){return t||As(e,4,this.length),Ka(this,e,!1,23,4)},ts.prototype.readDoubleLE=function(e,t){return t||As(e,8,this.length),Ka(this,e,!0,52,8)},ts.prototype.readDoubleBE=function(e,t){return t||As(e,8,this.length),Ka(this,e,!1,52,8)},ts.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Es(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},ts.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Es(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},ts.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,1,255,0),ts.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ts.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,2,65535,0),ts.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):js(this,e,t,!0),t+2},ts.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,2,65535,0),ts.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):js(this,e,t,!1),t+2},ts.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,4,4294967295,0),ts.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Is(this,e,t,!0),t+4},ts.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,4,4294967295,0),ts.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Is(this,e,t,!1),t+4},ts.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Es(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},ts.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Es(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},ts.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,1,127,-128),ts.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ts.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,2,32767,-32768),ts.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):js(this,e,t,!0),t+2},ts.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,2,32767,-32768),ts.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):js(this,e,t,!1),t+2},ts.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,4,2147483647,-2147483648),ts.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Is(this,e,t,!0),t+4},ts.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ts.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Is(this,e,t,!1),t+4},ts.prototype.writeFloatLE=function(e,t,n){return Ss(this,e,t,!0,n)},ts.prototype.writeFloatBE=function(e,t,n){return Ss(this,e,t,!1,n)},ts.prototype.writeDoubleLE=function(e,t,n){return Ms(this,e,t,!0,n)},ts.prototype.writeDoubleBE=function(e,t,n){return Ms(this,e,t,!1,n)},ts.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!ts.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},ts.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!ts.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=ss(e)?e:Ds(new ts(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var Cs=/[^+\/0-9A-Za-z-_]/g;function Os(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ds(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Ns(e){return function(e){var t,n,r,i,o,a;Ua||Ya();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Wa(3*s/4-o),r=o>0?s-4:s;var l=0;for(t=0,n=0;t<r;t+=4,n+=3)i=Va[e.charCodeAt(t)]<<18|Va[e.charCodeAt(t+1)]<<12|Va[e.charCodeAt(t+2)]<<6|Va[e.charCodeAt(t+3)],a[l++]=i>>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=Va[e.charCodeAt(t)]<<2|Va[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=Va[e.charCodeAt(t)]<<10|Va[e.charCodeAt(t+1)]<<4|Va[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Cs,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Ps(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Rs(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}Yr("/.transactions","lock");const Ls="Only the root node may have no parent",Fs="An index may only have a record or root as a parent",zs="aggregateGroup parent must be an index",Bs=e=>()=>ji([e=>ro(e)&&!(e=>ro(e)&&e.isSingle)(e),t=>Yr(e.parent().nodeKey(),e.collectionName,`${t.nodeId}-{id}`)],[so,Pt("/")],[Ti,t=>Yr(e.parent().nodeKey(),t.name)])(e),Hs=e=>t=>{if(oo(t)&&ci(e)&&!so(e)&&!ro(e))throw new Er(Fs);if(ao(t)&&ci(e)&&!oo(e))throw new Er(zs);if(ui(e)&&!so(t))throw new Er(Ls);return t},Vs=e=>t=>(t.nodeKey=Bs(t),t.pathRegx=(e=>()=>e.nodeKey().replace(/{id}/g,"[a-zA-Z0-9_-]+"))(t),t.parent=Pt(e),t.isRoot=(()=>ui(e)&&"root"===t.name&&"root"===t.type),io(t)&&(t.collectionNodeKey=(()=>Yr(e.nodeKey(),t.collectionName)),t.collectionPathRegx=(()=>Yr(e.pathRegx(),t.collectionName))),t),Ws=e=>{const t=e.parent();if(ci(t)&&(oo(e)?t.indexes.push(e):ao(e)?t.aggregateGroups.push(e):t.children.push(e),ro(e))){const n=Xt(t.indexes,e=>e.name===`${t.name}_index`);n&&n.allowedRecordNodeIds.push(e.nodeId)}return e},Us=(e,t)=>Wr(t,[Vs(e),Hs(e),Ws]),Ys=e=>{if(!e)return null;const t=e=>so(e)?e:t(e.parent()),n=t(e);return Wr(n,[Ui,xe(e=>e.nodeId),Je])+1},qs=(e,t)=>(Vs(t)(e),e.indexes&&Zt(e.indexes,t=>qs(t,e)),e.aggregateGroups&&Zt(e.aggregateGroups,t=>qs(t,e)),e.children&&e.children.length>0&&Zt(e.children,t=>qs(t,e)),e.fields&&Zt(e.fields,e=>Zt(e.typeOptions,(t,n)=>{const r=sa[e.type].optionDefinitions[n];r?e.typeOptions[n]=r.parse(t):delete e.typeOptions[n]})),e),Qs=()=>Vs()({name:"root",type:"root",children:[],pathMaps:[],indexes:[],nodeId:0}),Ks=(e,t,n,r)=>{const i=Us(e,{name:t,type:"record",fields:[],children:[],validationRules:[],nodeId:Ys(e),indexes:[],allidsShardFactor:ro(e)?1:64,collectionName:"",isSingle:r});if(n){const n=Zs(e);n.name=`${t}_index`,n.allowedRecordNodeIds.push(i.nodeId)}return i},Js=(e,t="",n=!0)=>Ks(e,t,n,!1),Gs=e=>Ks(e,"",!1,!0),Zs=(e,t="ancestor")=>Us(e,{name:"",type:"index",map:"return {...record};",filter:"",indexType:t,getShardName:"",getSortKey:"record.id",aggregateGroups:[],allowedRecordNodeIds:[],nodeId:Ys(e)}),Xs=e=>Us(e,{name:"",type:"aggregateGroup",groupBy:"",aggregates:[],condition:"",nodeId:Ys(e)}),el=e=>{const t={name:"",aggregatedValue:""};return e.aggregates.push(t),t},tl={AddFieldValidationFailed:"Add field validation: "},nl=e=>({name:"",type:e,typeOptions:la(e),label:"",getInitialValue:"default",getUndefinedValue:"default"}),rl=e=>[Fi("name","field name is not set",e=>yi(e.name)),Fi("type","field type is not set",e=>yi(e.type)),Fi("label","field label is not set",e=>yi(e.label)),Fi("getInitialValue","getInitialValue function is not set",e=>yi(e.getInitialValue)),Fi("getUndefinedValue","getUndefinedValue function is not set",e=>yi(e.getUndefinedValue)),Fi("name","field name is duplicated",t=>hi(t.name)||1===_e("name")(e)[t.name]),Fi("type","type is unknown",e=>hi(e.type)||ye(t=>e.type===t)((()=>Fe(sa))()))],il=e=>{const t=sa[e.type];if(ui(t))return[];const n=e=>t.optionDefinitions[e];return Wr(e.typeOptions,[Fe,we(e=>ci(n(e))&&ci(n(e).isValid)),xe(e=>Fi(`typeOptions.${e}`,`${n(e).requirementDescription}`,t=>n(e).isValid(t.typeOptions[e])))])},ol=e=>t=>{const n=$e(t)(e)?e:[...e,t];return Bi([...rl(n),...il(t)])(t)},al=e=>Wr(e.fields,[xe(ol(e.fields)),He]),sl=(e,t)=>{hi(t.label)&&(t.label=t.name);const n=ol([...e.fields,t])(t);if(n.length>0){const e=xe(e=>e.error)(n);throw new Er(`${tl.AddFieldValidationFailed} ${e.join(", ")}`)}e.fields.push(t)},ll=(e,t,n)=>({invalidFields:e,messageWhenInvalid:t,expressionWhenValid:n}),cl=ji([Oe,e=>e.toString()],[Ne,e=>e.toString()],[Ue,e=>`'${e}'`]),ul={fieldNotEmpty:e=>ll([e],`${e} is empty`,`!_.isEmpty(record['${e}'])`),fieldBetween:(e,t,n)=>ll([e],`${e} must be between ${t.toString()} and ${n.toString()}`,`record['${e}'] >= ${cl(t)} && record['${e}'] <= ${cl(n)} `),fieldGreaterThan:(e,t,n)=>ll([e],`${e} must be greater than ${t.toString()} and ${n.toString()}`,`record['${e}'] >= ${cl(t)} `)},hl=e=>t=>e.validationRules.push(t),fl=()=>({actionName:"",eventName:"",optionsCreator:"",condition:""}),dl=()=>({name:"",behaviourSource:"",behaviourName:"",initialOptions:{}}),pl=[Fi("name","choose a name for the aggregate",e=>yi(e.name)),Fi("aggregatedValue","aggregatedValue does not compile",e=>Nt(e.aggregatedValue)||ki(()=>fn(e.aggregatedValue)))],gl=e=>Bi(pl)(e),ml=(...e)=>Ee(He([...e])),vl=[Fi("name","node name is not set",e=>(e=>ci(e)&&e.trim().length>0)(e.name)),Fi("type","node type not recognised",si(ro,so,oo,ao))],yl=[Fi("fields","no fields have been added to the record",e=>vi(e.fields)),Fi("validationRules","validation rule is missing a 'messageWhenValid' member",e=>qe(e=>qt(e,"messageWhenInvalid"))(e.validationRules)),Fi("validationRules","validation rule is missing a 'expressionWhenValid' member",e=>qe(e=>qt(e,"expressionWhenValid"))(e.validationRules))],xl=[Fi("condition","condition does not compile",e=>be(e.condition)||ki(()=>hn(e.condition)))],wl=e=>Bi((e=>ji([ro,ml(vl,yl)],[oo,ml(vl,Wi)],[ao,ml(vl,xl)],[Ti,ml(vl,[])])(e))(e))(e),bl=e=>{const t=Ui(e),n=Fi("name","node names must be unique under shared parent",e=>1===we(t=>t.parent()===e.parent()&&t.name===e.name)(t).length),r=Wr(t,[xe(e=>Bi([n])(e)),we(ci),He]),i=Wr(t,[we(ro),xe(al),He]),o=Wr(t,[we(ao),xe(e=>(e=>Wr(e,[xe(gl),He]))(e.aggregates)),He]);return Wr(t,[xe(wl),He,de(r),de(i),de(o)])},_l=[Fi("name","action must have a name",e=>yi(e.name)),Fi("behaviourName","must supply a behaviour name to the action",e=>yi(e.behaviourName)),Fi("behaviourSource","must supply a behaviour source for the action",e=>yi(e.behaviourSource))],$l=Fi("","action name must be unique",()=>{}),kl=e=>Bi(_l)(e),Al=e=>{const t=Wr(e,[we(t=>we(e=>e.name===t.name)(e).length>1),xe(e=>zi($l,e))]);return Wr(e,[xe(kl),He,de(t),Ye("name")])},El=(e,t)=>{return Bi((e=>[Fi("actionName","must specify an action",e=>yi(e.actionName)),Fi("eventName","must specify and event",e=>yi(e.eventName)),Fi("actionName","specified action not supplied",t=>!t.actionName||ye(e=>e.name===t.actionName)(e)),Fi("eventName","invalid Event Name",e=>!e.eventName||$e(e.eventName)(Ar)),Fi("optionsCreator","Options Creator does not compile - check your expression",e=>{if(!e.optionsCreator)return!0;try{return fn(e.optionsCreator),!0}catch(e){return!1}}),Fi("condition","Trigger condition does not compile - check your expression",e=>{if(!e.condition)return!0;try{return hn(e.condition),!0}catch(e){return!1}})])(t))(e)},jl=(e,t)=>Wr(e,[xe(e=>El(e,t)),He]),Il=e=>async()=>{if(!await e.exists(Zr))throw new Error("Application definition does not exist");const t=await e.loadJson(Zr);return t.hierarchy=qs(t.hierarchy),t},Tl=e=>async t=>Tr(e,kr.templateApi.saveApplicationHierarchy,za.writeTemplates.isAuthorized,{hierarchy:t},Sl,e.datastore,t),Sl=async(e,t)=>{const n=await bl(t);if(n.length>0)throw new Error(`Hierarchy is invalid: ${At(n.map(e=>`${e.item.nodeKey?e.item.nodeKey():""} : ${e.error}`),",")}`);if(await e.exists(Zr)){const n=await e.loadJson(Zr);n.hierarchy=t,await e.updateJson(Zr,n)}else{await e.createFolder("/.config");const n={actions:[],triggers:[],hierarchy:t};await e.createJson(Zr,n)}},Ml=e=>async(t,n)=>Tr(e,kr.templateApi.saveActionsAndTriggers,za.writeTemplates.isAuthorized,{actions:t,triggers:n},Cl,e.datastore,t,n),Cl=async(e,t,n)=>{if(!await e.exists(Zr))throw new Er("Cannot save actions: Application definition does not exist");{const r=await e.loadJson(Zr);r.actions=t,r.triggers=n;const i=xe(e=>e.error)(Al(t));if(i.length>0)throw new Er(`Actions are invalid: ${At(i,", ")}`);const o=xe(e=>e.error)(jl(n,t));if(o.length>0)throw new Er(`Triggers are invalid: ${At(o,", ")}`);await e.updateJson(Zr,r)}},Ol=e=>(e=>({getApplicationDefinition:Il(e.datastore),saveApplicationHierarchy:Tl(e),saveActionsAndTriggers:Ml(e),getBehaviourSources:()=>(async e=>{await e.loadFile("/.config/behaviourSources.js")})(e.datastore),getNewRootLevel:Qs,constructNode:Us,getNewIndexTemplate:Zs,getNewRecordTemplate:Js,getNewField:nl,validateField:ol,addField:sl,fieldErrors:tl,getNewRecordValidationRule:ll,commonRecordValidationRules:ul,addRecordValidationRule:hl,createAction:dl,createTrigger:fl,validateActions:Al,validateTrigger:El,getNewAggregateGroupTemplate:Xs,getNewAggregateTemplate:el,constructHierarchy:qs,getNewSingleRecordTemplate:Gs,allTypes:sa,validateNode:wl,validateAll:bl,validateTriggers:jl}))(e),Dl=e=>async()=>Tr(e,kr.authApi.getUsers,za.listUsers.isAuthorized,{},Nl,e),Nl=async e=>Wr(await e.datastore.loadJson(ca),[xe(ma)]),Pl=e=>async()=>Tr(e,kr.authApi.loadAccessLevels,za.listAccessLevels.isAuthorized,{},Rl,e),Rl=async e=>await e.datastore.loadJson(fa),Ll="$argon2i$v=19$m=4096,t=3,p=1$UZRo409UYBGjHJS3CV6Uxw$rU84qUqPeORFzKYmYY0ceBLDaPO+JWSH4PfNiKXfIKk",Fl=e=>async(t,n)=>Tr(e,kr.authApi.authenticate,Fa,{username:t,password:n},zl,e,t,n),zl=async(e,t,n)=>{if(hi(t)||hi(n))return null;const r=await Nl(e);let i=ga(r,t);let o;i&&i.enabled||(i="not-a-user");try{o=await e.datastore.loadJson(ua(t))}catch(e){o={accessLevels:[],passwordHash:Ll}}const a=await Hl(e,i.accessLevels),s=await e.crypto.verify(o.passwordHash,n);return"not-a-user"===i?null:s?{...i,permissions:a,temp:!1,isUser:!0}:null},Bl=e=>async t=>{if(hi(t))return null;const n=va(t);let r=Wr(await Nl(e),[Ae(e=>e.temporaryAccessId===n.id)]);let i;r&&r.enabled||(r="not-a-user");try{i=await e.datastore.loadJson(ua(r.name))}catch(t){i={temporaryAccessHash:Ll,temporaryAccessExpiryEpoch:await e.getEpochTime()+1e4}}i.temporaryAccessExpiryEpoch<await e.getEpochTime()&&(r="not-a-user");const o=n.code?n.code:wt(),a=await e.crypto.verify(i.temporaryAccessHash,o);return"not-a-user"===r?null:a?{...r,permissions:[],temp:!0,isUser:!0}:null},Hl=async(e,t)=>{const n=await Rl(e);return Wr(n.levels,[we(e=>ye(t=>e.name===t)(t)),xe(e=>e.permissions),He])},Vl=e=>async t=>Tr(e,kr.authApi.createTemporaryAccess,Fa,{userName:t},Wl,e,t),Wl=async(e,t)=>{const n=await Ul(e),r=await Pr(e,ha,1e3,2);if(Br(r))throw new Error("Unable to create temporary access, could not get lock - try again");try{const i=await e.datastore.loadJson(ca);ga(i,t).temporaryAccessId=n.temporaryAccessId,await e.datastore.updateJson(ca,i)}finally{await Fr(e,r)}const i=await e.datastore.loadJson(ua(t));return i.temporaryAccessHash=n.temporaryAccessHash,i.temporaryAccessExpiryEpoch=n.temporaryAccessExpiryEpoch,await e.datastore.updateJson(ua(t),i),n.tempCode},Ul=async e=>{const t=wt()+wt()+wt()+wt(),n=wt();return{temporaryAccessHash:await e.crypto.hash(t),temporaryAccessExpiryEpoch:await e.getEpochTime()+3e5,tempCode:`tmp:${n}:${t}`,temporaryAccessId:n}},Yl=()=>(e,t)=>Bi((e=>[Fi("name","username must be set",e=>yi(e.name)),Fi("accessLevels","user must have at least one access level",e=>e.accessLevels.length>0),Fi("name","username must be unique",t=>1===we(e=>li(e.name,t.name))(e).length),Fi("accessLevels","access levels must only contain stings",e=>gi(yi)(e.accessLevels))])(e))(t),ql=e=>()=>Sr(e,kr.authApi.getNewUser,za.createUser.isAuthorized,{},Ql,e),Ql=()=>({name:"",accessLevels:[],enabled:!0,temporaryAccessId:""}),Kl=e=>()=>Sr(e,kr.authApi.getNewUserAuth,za.createUser.isAuthorized,{},Jl,e),Jl=()=>({passwordHash:"",temporaryAccessHash:"",temporaryAccessExpiryEpoch:0}),Gl=e=>t=>Sr(e,kr.authApi.isValidPassword,Fa,{password:t},Zl,e,t),Zl=(e,t)=>ic(t).score>30,Xl=e=>async(t,n)=>Tr(e,kr.authApi.changeMyPassword,Fa,{currentPw:t,newpassword:n},ec,e,t,n),ec=async(e,t,n)=>{const r=await e.datastore.loadJson(ua(e.user.name));if(ci(r.passwordHash)){if(await e.crypto.verify(r.passwordHash,t))return await(await rc(e,r,e.user.name,n)),!0}return!1},tc=e=>async(t,n)=>Tr(e,kr.authApi.setPasswordFromTemporaryCode,Fa,{tempCode:t,newpassword:n},nc,e,t,n),nc=async(e,t,n)=>{const r=await e.getEpochTime(),i=va(t),o=Wr(await Nl(e),[Ae(e=>e.temporaryAccessId===i.id)]);if(!o)return!1;const a=await e.datastore.loadJson(ua(o.name));if(ci(a.temporaryAccessHash)&&a.temporaryAccessExpiryEpoch>r){if(await e.crypto.verify(a.temporaryAccessHash,i.code))return await rc(e,a,o.name,n),!0}return!1},rc=async(e,t,n,r)=>{t.temporaryAccessHash="",t.temporaryAccessExpiryEpoch=0,t.passwordHash=await e.crypto.hash(r),await e.datastore.updateJson(ua(n),t)},ic=e=>t=>Sr(e,kr.authApi.scorePassword,Fa,{password:t},oc,t),oc=e=>{let t=0;if(!e)return t;const n=new Object;for(let r=0;r<e.length;r++)n[e[r]]=(n[e[r]]||0)+1,t+=5/n[e[r]];const r={digits:/\d/.test(e),lower:/[a-z]/.test(e),upper:/[A-Z]/.test(e),nonWords:/\W/.test(e)};let i=0;for(const e in r)i+=1==r[e]?1:0;const o=(t+=10*(i-1))>80?"strong":t>60?"good":t>=30?"weak":"very weak";return{score:parseInt(t),strengthText:o}},ac=e=>async(t,n=null)=>Tr(e,kr.authApi.createUser,za.createUser.isAuthorized,{user:t,password:n},sc,e,t,n),sc=async(e,t,n=null)=>{const r=await Pr(e,ha,1e3,2);if(Br(r))throw new Error("Unable to create user, could not get lock - try again");const i=await e.datastore.loadJson(ca),o=Yl()([...i,t],t);if(o.length>0)throw new Er(`User is invalid. ${We("; ")(o)}`);const{auth:a,tempCode:s,temporaryAccessId:l}=await lc(e,n);if(t.tempCode=s,t.temporaryAccessId=l,ye(e=>li(e.name,t.name))(i))throw new Er("User already exists");i.push(ma(t)),await e.datastore.updateJson(ca,i);try{await e.datastore.createJson(ua(t.name),a)}catch(n){await e.datastore.updateJson(ua(t.name),a)}return await Fr(e,r),t},lc=async(e,t)=>{const n=Kl(e)();if(yi(t)){if(Gl(t))return n.passwordHash=await e.crypto.hash(t),n.temporaryAccessHash="",n.temporaryAccessId="",n.temporaryAccessExpiryEpoch=0,{auth:n};throw new Er("Password does not meet requirements")}{const t=await Ul(e);return n.temporaryAccessHash=t.temporaryAccessHash,n.temporaryAccessExpiryEpoch=t.temporaryAccessExpiryEpoch,n.passwordHash="",{auth:n,tempCode:t.tempCode,temporaryAccessId:t.temporaryAccessId}}},cc=e=>async t=>Tr(e,kr.authApi.enableUser,za.enableDisableUser.isAuthorized,{username:t},hc,e,t),uc=e=>async t=>Tr(e,kr.authApi.disableUser,za.enableDisableUser.isAuthorized,{username:t},fc,e,t),hc=async(e,t)=>await dc(e,t,!0),fc=async(e,t)=>await dc(e,t,!1),dc=async(e,t,n)=>{const r=await Pr(e,ha,1e3,1,0),i=n?"enable":"disable";if(Br(r))throw new Error(`Could not ${i} user - cannot get lock`);try{const o=await e.datastore.loadJson(ca),a=ga(o,t);if(!a)throw new Ir(`Could not find user to ${i}`);a.enabled===!n&&(a.enabled=n,await e.datastore.updateJson(ca,o))}finally{Fr(e,r)}},pc=e=>[Fi("type","type must be one of allowed types",e=>(e=>Wr(pa,[Re,$e(e)]))(e.type)),Fi("nodeKey","record and index permissions must include a valid nodeKey",t=>!(e=>ye(t=>t===e)([pa.CREATE_RECORD,pa.UPDATE_RECORD,pa.DELETE_RECORD,pa.READ_RECORD,pa.READ_INDEX,pa.EXECUTE_ACTION]))(t.type)||ci(Qi(e.hierarchy,t.nodeKey)))],gc=e=>Bi(pc(e)),mc=e=>Bi((e=>[Fi("name","name must be set",e=>yi(e.name)),Fi("name","access level names must be unique",t=>be(t.name)||1===we(e=>li(t.name,e.name))(e).length)])(e)),vc=e=>t=>Sr(e,kr.authApi.validateAccessLevels,Fa,{allLevels:t},yc,e,t),yc=(e,t)=>Wr(t,[xe(n=>(e=>(t,n)=>Wr(n.permissions,[xe(gc(e)),He,ze(mc(t)(n))]))(e)(t,n)),He,Qe((e,t)=>e.field===t.field&&e.item===t.item&&e.error===t.error)]),xc=e=>async t=>Tr(e,kr.authApi.saveAccessLevels,za.writeAccessLevels.isAuthorized,{accessLevels:t},wc,e,t),wc=async(e,t)=>{const n=vc(e)(t.levels);if(n.length>0){const e=Wr(n,[xe(e=>e.error),We(", ")]);throw new Error(`Access Levels Invalid: ${e}`)}const r=await Pr(e,da,2e3,2);if(Br(r))throw new Error("Could not get lock to save access levels");try{if((await e.datastore.loadJson(fa)).version!==t.version)throw new Error("Access levels have already been updated, since you loaded");t.version++,e.datastore.updateJson(fa,t)}finally{await Fr(e,r)}},bc=e=>async(t,n)=>Tr(e,kr.authApi.setUserAccessLevels,za.setUserAccessLevels.isAuthorized,{userName:t,accessLevels:n},_c,e,t,n),_c=async(e,t,n)=>{const r=await Pr(e,ha,1e3,1,0),i=Wr(await e.datastore.loadJson(fa),[e=>e.levels,xe(e=>e.name)]),o=Be(n)(i);if(o.length>0)throw new Error(`Invalid access levels supplied: ${We(", ",o)}`);if(Br(r))throw new Error("Could set user access levels cannot get lock");try{const i=await e.datastore.loadJson(ca),o=ga(i,t);if(!o)throw new Ir(`Could not find user with ${t}`);o.accessLevels=n,await e.datastore.updateJson(ca,i)}finally{Fr(e,r)}},$c=e=>({authenticate:Fl(e),authenticateTemporaryAccess:Bl(e),createTemporaryAccess:Vl(e),createUser:ac(e),loadAccessLevels:Pl(e),enableUser:cc(e),disableUser:uc(e),getNewAccessLevel:()=>({name:"",permissions:[],default:!1}),getNewUser:ql(e),getNewUserAuth:Kl(e),getUsers:Dl(e),saveAccessLevels:xc(e),isAuthorized:ya(e),changeMyPassword:Xl(e),setPasswordFromTemporaryCode:tc(e),scorePassword:ic,isValidPassword:Gl(e),validateUser:Yl(),validateAccessLevels:vc(e),generateFullPermissions:()=>(e=>{const t=Ui(e.hierarchy),n={permissions:[]},r=Wr(t,[we(ro)]);for(const e of r)za.createRecord.add(e.nodeKey(),n),za.updateRecord.add(e.nodeKey(),n),za.deleteRecord.add(e.nodeKey(),n),za.readRecord.add(e.nodeKey(),n);const i=Wr(t,[we(oo)]);for(const e of i)za.readIndex.add(e.nodeKey(),n);for(const t of Fe(e.actions))za.executeAction.add(t,n);return Wr(za,[Re,we(e=>!e.isNode),Ve(e=>e.add(n))]),n.permissions})(e),setUserAccessLevels:bc(e)}),kc=Li.$,Ac=Li.eventsList,Ec=(e,t)=>kc(e,[po.getFlattenedHierarchy,Ae(e=>e.nodeId===t||e.nodeKey()===t)]),jc=e=>e?Ic(e).constructHierarchy(e):e,Ic=e=>Ol({hierarchy:e}),Tc=(e,t)=>$c({hierarchy:e,actions:Le("name")(t),publish:()=>{}}),Sc=Ic({}).allTypes,Mc={all:Ic({}).validateAll,node:Ic({}).validateNode,field:Ic({}).validateField},Cc=(e,t)=>{return kc(e,[po.getFlattenedHierarchy,we(e=>po.isAncestor(t)(e)||po.isAncestor(t)(e.parent())),xe(e=>e.indexes),He,we(po.isReferenceIndex)])},Oc=(e,t)=>kc(e,[po.getFlattenedHierarchy,we(po.isAncestorIndex),we(e=>po.isAncestor(t)(e.parent())||e.parent().nodeId===t.parent().nodeId||po.isRoot(e.parent()))]),Dc=e=>e?Sc[e].getDefaultOptions():{},Nc=()=>Ic({}).createAction(),Pc=()=>Ic({}).createTrigger(),Rc=e=>Ic({}).validateActions(e),Lc=(e,t)=>Ic({}).validateTriggers(e,t),Fc=(e,t)=>Tc(e,t).generateFullPermissions(),zc=()=>Tc().getNewAccessLevel(),Bc=(e,t,n)=>Tc(e,t).validateAccessLevels(n);const Hc=(e,t)=>async()=>{const n=window.location.hash?ke(window.location.hash.substr(1).split("/")):"";if(!n)return t.apps=await fetch("/_builder/api/apps").then(e=>e.json()),t.hasAppPackage=!1,e.set(t),t;const r=await fetch(`/_builder/api/${n}/appPackage`).then(e=>e.json());if(t.appname=n,t.hasAppPackage=!0,t.hierarchy=r.appDefinition.hierarchy,t.accessLevels=r.accessLevels,t.actions=pe((e,t)=>(e.push(t),e))(r.appDefinition.actions,[]),t.triggers=r.appDefinition.triggers,t.hierarchy&&!be(t.hierarchy)){t.hierarchy=jc(t.hierarchy);const e=iu(t.hierarchy);null!==t.currentNode&&(t.currentNode=Ec(e,t.currentNode.nodeId))}return e.set(t),t},Vc=(e,t)=>()=>{e.update(e=>{e.currentNodeIsNew=!0;const n=iu(e.hierarchy);return parent=t?n:Ec(n,e.currentNode.nodeId),e.errors=[],e.currentNode=Ic(n).getNewRecordTemplate(parent,"",!0),e})},Wc=e=>t=>{e.update(e=>{const n=iu(e.hierarchy);return e.currentNode=Ec(n,t),e.currentNodeIsNew=!1,e.errors=[],e})},Uc=(e,t)=>()=>{e.update(e=>{e.currentNodeIsNew=!0,e.errors=[];const n=iu(e.hierarchy);return parent=t?n:Ec(n,e.currentNode.nodeId),e.currentNode=Ic(n).getNewIndexTemplate(parent),e})},Yc=e=>()=>{e.update(t=>{const n=Mc.node(t.currentNode);if(t.errors=n,n.length>0)return t;const r=Ec(t.hierarchy,t.currentNode.parent().nodeId),i=Ec(t.hierarchy,t.currentNode.nodeId);let o=r.children.length;i&&(o=i.parent().children.indexOf(i),i.parent().children=kc(i.parent().children,[we(e=>e.nodeId!==i.nodeId)]));const a=me(t.currentNode);Ic(t.hierarchy).constructNode(r,a);return r.children=kc(r.children,[Ge(e=>{if(e===a)return o;const t=r.children.indexOf(e);return t>=o?t+1:t})]),t.currentNodeIsNew=!1,ou(e,t),t})},qc=e=>t=>{e.update(e=>(e.hierarchy=t.hierarchy,e.currentNode=t.hierarchy.children.length>0?t.hierarchy.children[0]:null,e.actions=t.actions,e.triggers=t.triggers,e.currentNodeIsNew=!1,e))},Qc=e=>()=>{e.update(t=>{const n=Ec(t.hierarchy,t.currentNode.nodeId);return t.currentNode=po.isRoot(n.parent())?Ae(e=>e!=t.currentNode)(t.hierarchy.children):n.parent(),po.isRecord(n)?n.parent().children=we(e=>e.nodeId!==n.nodeId)(n.parent().children):n.parent().indexes=we(e=>e.nodeId!==n.nodeId)(n.parent().indexes),t.errors=[],ou(e,t),t})},Kc=e=>t=>{e.update(e=>(e.currentNode.fields=we(e=>e.name!==t.name)(e.currentNode.fields),Ic(e.hierarchy).addField(e.currentNode,t),e))},Jc=e=>t=>{e.update(e=>(e.currentNode.fields=we(e=>e.name!==t.name)(e.currentNode.fields),e))},Gc=e=>(t,n,r=null)=>{e.update(i=>{const o=n?null:Ae(e=>e.name===r.name)(i.actions);return o?i.actions=kc(i.actions,[xe(e=>e===o?t:e)]):i.actions.push(t),ou(e,i),i})},Zc=e=>t=>{e.update(n=>(n.actions=we(e=>e.name!==t.name)(n.actions),ou(e,n),n))},Xc=e=>(t,n,r=null)=>{e.update(i=>{const o=n?null:Ae(e=>e.name===r.name)(i.triggers);return o?i.triggers=kc(i.triggers,[xe(e=>e===o?t:e)]):i.triggers.push(t),ou(e,i),i})},eu=e=>t=>{e.update(e=>(e.triggers=we(e=>e.name!==t.name)(e.triggers),e))},tu=e=>(t,n,r=null)=>{e.update(i=>{const o=n?null:Ae(e=>e.name===r.name)(i.accessLevels);return o?i.accessLevels=kc(i.accessLevels,[xe(e=>e===o?t:e)]):i.accessLevels.push(t),ou(e,i),i})},nu=e=>t=>{e.update(n=>(n.accessLevels=we(e=>e.name!==t.name)(n.accessLevels),ou(e,n),n))},ru=e=>t=>{e.update(e=>(e.activeNav=t,e))},iu=e=>jc(JSON.parse(JSON.stringify(e))),ou=(e,t)=>{const n={appDefinition:{hierarchy:t.hierarchy,triggers:t.triggers,actions:Ke("name")(t.actions)},accessLevels:t.accessLevels};fetch(`/_builder/api/${t.appname}/appPackage`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})},au=(()=>{const t={apps:[],appname:"",hierarchy:{},actions:[],triggers:[],currentNodeIsNew:!1,errors:[],activeNav:"database",hasAppPackage:!1,accessLevels:[],currentNode:null},n=function(t,n=e){let r;const i=[];function o(e){if(a(t,e)){if(t=e,!r)return;i.forEach(e=>e[1]()),i.forEach(e=>e[0](t))}}return{set:o,update:function(e){o(e(t))},subscribe:function(a,s=e){const l=[a,s];return i.push(l),1===i.length&&(r=n(o)||e),a(t),()=>{const e=i.indexOf(l);-1!==e&&i.splice(e,1),0===i.length&&(r(),r=null)}}}}(t);return n.initialise=Hc(n,t),n.newChildRecord=Vc(n,!1),n.newRootRecord=Vc(n,!0),n.selectExistingNode=Wc(n),n.newChildIndex=Uc(n,!1),n.newRootIndex=Uc(n,!0),n.saveCurrentNode=Yc(n),n.importAppDefinition=qc(n),n.deleteCurrentNode=Qc(n),n.saveField=Kc(n),n.deleteField=Jc(n),n.saveAction=Gc(n),n.deleteAction=Zc(n),n.saveTrigger=Xc(n),n.deleteTrigger=eu(n),n.saveLevel=tu(n),n.deleteLevel=nu(n),n.setActiveNav=ru(n),n})(),su=async()=>{try{lu(au),await au.initialise()}catch(e){console.log(e)}},lu=e=>{const t=history.pushState;history.pushState=(()=>{t.apply(history,arguments),e.initialise()}),window.addEventListener("hashchange",()=>{e.initialise()})};function cu(e,t,n){const r=Object.create(e);return r.app=t[n],r}function uu(e){var t,n,r,i=e.app;return{c(){t=g("a"),n=m(i),w(t,"href",r=`#/${e.app}`),w(t,"class","app-link svelte-jymnqv")},m(e,r){f(e,t,r),h(t,n)},p(e,o){e.$database&&i!==(i=o.app)&&b(n,i),e.$database&&r!==(r=`#/${o.app}`)&&w(t,"href",r)},d(e){e&&d(t)}}}function hu(t){for(var n,r,i,o,a,s,l,c,u=t.$database.apps,m=[],y=0;y<u.length;y+=1)m[y]=uu(cu(t,u,y));return{c(){n=g("div"),r=g("div"),i=g("img"),o=v(),a=g("div"),s=g("div"),(l=g("h4")).textContent="Choose an Application",c=v();for(var e=0;e<m.length;e+=1)m[e].c();w(i,"src","/_builder/assets/budibase-logo.png"),w(i,"class","logo svelte-jymnqv"),w(i,"alt","budibase logo"),_(l,"margin-bottom","20px"),w(r,"class","inner svelte-jymnqv"),w(n,"class","root svelte-jymnqv")},m(e,t){f(e,n,t),h(n,r),h(r,i),h(r,o),h(r,a),h(a,s),h(s,l),h(s,c);for(var u=0;u<m.length;u+=1)m[u].m(s,null)},p(e,t){if(e.$database){u=t.$database.apps;for(var n=0;n<u.length;n+=1){const r=cu(t,u,n);m[n]?m[n].p(e,r):(m[n]=uu(r),m[n].c(),m[n].m(s,null))}for(;n<m.length;n+=1)m[n].d(1);m.length=u.length}},i:e,o:e,d(e){e&&d(n),p(m,e)}}}function fu(e,t,n){let r;return s(e,au,e=>{n("$database",r=e)}),{$database:r}}class du extends G{constructor(e){super(),J(this,e,fu,hu,a,[])}}var pu,gu=ne(function(e,t){var n;"undefined"!=typeof self&&self,n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"./dist/icons.json":function(e){e.exports={activity:'<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>',airplay:'<path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon>',"alert-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line>',"alert-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line>',"alert-triangle":'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12" y2="17"></line>',"align-center":'<line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line>',"align-justify":'<line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line>',"align-left":'<line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line>',"align-right":'<line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line>',anchor:'<circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path>',aperture:'<circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line>',archive:'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>',"arrow-down-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line>',"arrow-down-left":'<line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline>',"arrow-down-right":'<line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline>',"arrow-down":'<line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline>',"arrow-left-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line>',"arrow-left":'<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>',"arrow-right-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line>',"arrow-right":'<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>',"arrow-up-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line>',"arrow-up-left":'<line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline>',"arrow-up-right":'<line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline>',"arrow-up":'<line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline>',"at-sign":'<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path>',award:'<circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline>',"bar-chart-2":'<line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line>',"bar-chart":'<line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line>',"battery-charging":'<path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline>',battery:'<rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line>',"bell-off":'<path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line>',bell:'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>',bluetooth:'<polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline>',bold:'<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>',"book-open":'<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>',book:'<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>',bookmark:'<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>',box:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',briefcase:'<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>',calendar:'<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>',"camera-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path>',camera:'<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle>',cast:'<path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2" y2="20"></line>',"check-circle":'<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline>',"check-square":'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>',check:'<polyline points="20 6 9 17 4 12"></polyline>',"chevron-down":'<polyline points="6 9 12 15 18 9"></polyline>',"chevron-left":'<polyline points="15 18 9 12 15 6"></polyline>',"chevron-right":'<polyline points="9 18 15 12 9 6"></polyline>',"chevron-up":'<polyline points="18 15 12 9 6 15"></polyline>',"chevrons-down":'<polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline>',"chevrons-left":'<polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline>',"chevrons-right":'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>',"chevrons-up":'<polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline>',chrome:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>',circle:'<circle cx="12" cy="12" r="10"></circle>',clipboard:'<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>',clock:'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>',"cloud-drizzle":'<line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-lightning":'<path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline>',"cloud-off":'<path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line>',"cloud-rain":'<line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-snow":'<path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8" y2="16"></line><line x1="8" y1="20" x2="8" y2="20"></line><line x1="12" y1="18" x2="12" y2="18"></line><line x1="12" y1="22" x2="12" y2="22"></line><line x1="16" y1="16" x2="16" y2="16"></line><line x1="16" y1="20" x2="16" y2="20"></line>',cloud:'<path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',codepen:'<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',coffee:'<path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line>',columns:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',compass:'<circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"corner-down-right":'<polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path>',"corner-left-down":'<polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path>',"corner-left-up":'<polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path>',"corner-right-down":'<polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path>',"corner-right-up":'<polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path>',"corner-up-left":'<polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path>',"corner-up-right":'<polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path>',cpu:'<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line>',"credit-card":'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line>',crop:'<path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path>',crosshair:'<circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path>',delete:'<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line>',disc:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle>',"dollar-sign":'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>',"download-cloud":'<polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line>',droplet:'<path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path>',"edit-2":'<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path>',"edit-3":'<path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>',edit:'<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>',"external-link":'<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line>',"eye-off":'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>',eye:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>',facebook:'<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>',"fast-forward":'<polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon>',feather:'<path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line>',figma:'<path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>',"file-minus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line>',"file-plus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>',"file-text":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline>',file:'<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>',film:'<rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line>',filter:'<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>',flag:'<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line>',"folder-minus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line>',"folder-plus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line>',folder:'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>',framer:'<path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path>',frown:'<circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',gift:'<polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path>',"git-branch":'<line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path>',"git-commit":'<circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line>',"git-merge":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path>',"git-pull-request":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line>',github:'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>',gitlab:'<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path>',globe:'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>',grid:'<rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect>',"hard-drive":'<line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6" y2="16"></line><line x1="10" y1="16" x2="10" y2="16"></line>',hash:'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>',headphones:'<path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path>',heart:'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>',"help-circle":'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12" y2="17"></line>',hexagon:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>',home:'<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline>',image:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline>',inbox:'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>',info:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="8"></line>',instagram:'<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.5" y2="6.5"></line>',italic:'<line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line>',key:'<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path>',layers:'<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline>',layout:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line>',"life-buoy":'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line>',"link-2":'<path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>',linkedin:'<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle>',list:'<line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3" y2="6"></line><line x1="3" y1="12" x2="3" y2="12"></line><line x1="3" y1="18" x2="3" y2="18"></line>',loader:'<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>',lock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>',"log-in":'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line>',"log-out":'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>',mail:'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>',"map-pin":'<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle>',map:'<polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line>',"maximize-2":'<polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line>',maximize:'<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>',meh:'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',menu:'<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>',"message-circle":'<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>',"message-square":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>',"mic-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',mic:'<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',"minimize-2":'<polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line>',minimize:'<path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path>',"minus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line>',"minus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line>',minus:'<line x1="5" y1="12" x2="19" y2="12"></line>',monitor:'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>',moon:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>',"more-horizontal":'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>',"more-vertical":'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>',"mouse-pointer":'<path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path>',move:'<polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line>',music:'<path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle>',"navigation-2":'<polygon points="12 2 19 21 12 17 5 21 12 2"></polygon>',navigation:'<polygon points="3 11 22 2 13 21 11 13 3 11"></polygon>',octagon:'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon>',package:'<line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',paperclip:'<path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path>',"pause-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line>',pause:'<rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect>',"pen-tool":'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>',percent:'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>',"phone-call":'<path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-forwarded":'<polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-incoming":'<polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-missed":'<line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-off":'<path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line>',"phone-outgoing":'<polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"pie-chart":'<path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path>',"play-circle":'<circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon>',play:'<polygon points="5 3 19 12 5 21 5 3"></polygon>',"plus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',"plus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',plus:'<line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line>',pocket:'<path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline>',power:'<path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line>',printer:'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>',radio:'<circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path>',"refresh-ccw":'<polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path>',"refresh-cw":'<polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>',repeat:'<polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path>',rewind:'<polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon>',"rotate-ccw":'<polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path>',"rotate-cw":'<polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>',rss:'<path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle>',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>',scissors:'<circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line>',search:'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>',send:'<line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>',server:'<rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6" y2="6"></line><line x1="6" y1="18" x2="6" y2="18"></line>',settings:'<circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>',"share-2":'<circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>',share:'<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line>',"shield-off":'<path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>',"shopping-bag":'<path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path>',"shopping-cart":'<circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>',shuffle:'<polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line>',sidebar:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line>',"skip-back":'<polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line>',"skip-forward":'<polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line>',slack:'<path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path>',slash:'<circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line>',sliders:'<line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line>',smartphone:'<rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12" y2="18"></line>',smile:'<circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',speaker:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12" y2="6"></line>',square:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>',star:'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>',"stop-circle":'<circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect>',sun:'<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>',sunrise:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline>',sunset:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2" transform="rotate(180 12 12)"></rect><line x1="12" y1="18" x2="12" y2="18"></line>',tag:'<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7" y2="7"></line>',target:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>',terminal:'<polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line>',thermometer:'<path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path>',"thumbs-down":'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',"thumbs-up":'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',"toggle-left":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle>',"toggle-right":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle>',"trash-2":'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',trello:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect>',"trending-down":'<polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline>',"trending-up":'<polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline>',triangle:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>',truck:'<rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle>',tv:'<rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline>',twitter:'<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>',type:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',umbrella:'<path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path>',underline:'<path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line>',unlock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line>',"user-check":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline>',"user-minus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line>',"user-plus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>',"user-x":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line>',user:'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>',users:'<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path>',"video-off":'<path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line>',video:'<polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>',voicemail:'<circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line>',"volume-1":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-2":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-x":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line>',volume:'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>',watch:'<circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path>',"wifi-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12" y2="20"></line>',wifi:'<path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12" y2="20"></line>',wind:'<path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path>',"x-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line>',x:'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>',youtube:'<path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>',"zap-off":'<polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line>',zap:'<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>',"zoom-in":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line>',"zoom-out":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line>'}},"./node_modules/classnames/dedupe.js":function(e,t,n){var r,i;i=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)i(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty;var r=/\s+/;function i(e,i){if(i){var o=typeof i;"string"===o?function(e,t){for(var n=t.split(r),i=n.length,o=0;o<i;++o)e[n[o]]=!0}(e,i):Array.isArray(i)?t(e,i):"object"===o?function(e,t){for(var r in t)n.call(t,r)&&(e[r]=!!t[r])}(e,i):"number"===o&&function(e,t){e[t]=!0}(e,i)}}return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=new e;t(o,r);var a=[];for(var s in o)o[s]&&a.push(s);return a.join(" ")}}(),void 0!==e&&e.exports?e.exports=i:void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)},"./node_modules/core-js/es/array/from.js":function(e,t,n){n("./node_modules/core-js/modules/es.string.iterator.js"),n("./node_modules/core-js/modules/es.array.from.js");var r=n("./node_modules/core-js/internals/path.js");e.exports=r.Array.from},"./node_modules/core-js/internals/a-function.js":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"./node_modules/core-js/internals/an-object.js":function(e,t,n){var r=n("./node_modules/core-js/internals/is-object.js");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"./node_modules/core-js/internals/array-from.js":function(e,t,n){var r=n("./node_modules/core-js/internals/bind-context.js"),i=n("./node_modules/core-js/internals/to-object.js"),o=n("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),a=n("./node_modules/core-js/internals/is-array-iterator-method.js"),s=n("./node_modules/core-js/internals/to-length.js"),l=n("./node_modules/core-js/internals/create-property.js"),c=n("./node_modules/core-js/internals/get-iterator-method.js");e.exports=function(e){var t,n,u,h,f=i(e),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,y=c(f);if(m&&(g=r(g,p>2?arguments[2]:void 0,2)),null==y||d==Array&&a(y))for(n=new d(t=s(f.length));t>v;v++)l(n,v,m?g(f[v],v):f[v]);else for(h=y.call(f),n=new d;!(u=h.next()).done;v++)l(n,v,m?o(h,g,[u.value,v],!0):u.value);return n.length=v,n}},"./node_modules/core-js/internals/array-includes.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-indexed-object.js"),i=n("./node_modules/core-js/internals/to-length.js"),o=n("./node_modules/core-js/internals/to-absolute-index.js");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(e,t,n){var r=n("./node_modules/core-js/internals/a-function.js");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(e,t,n){var r=n("./node_modules/core-js/internals/an-object.js");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(e,t,n){var r=n("./node_modules/core-js/internals/well-known-symbol.js")("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},"./node_modules/core-js/internals/classof-raw.js":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(e,t,n){var r=n("./node_modules/core-js/internals/classof-raw.js"),i=n("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(e,t,n){var r=n("./node_modules/core-js/internals/has.js"),i=n("./node_modules/core-js/internals/own-keys.js"),o=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=n("./node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(e,t,n){var r=n("./node_modules/core-js/internals/fails.js");e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},"./node_modules/core-js/internals/create-iterator-constructor.js":function(e,t,n){var r=n("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,i=n("./node_modules/core-js/internals/object-create.js"),o=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=n("./node_modules/core-js/internals/set-to-string-tag.js"),s=n("./node_modules/core-js/internals/iterators.js"),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,c,!1,!0),s[c]=l,e}},"./node_modules/core-js/internals/create-property-descriptor.js":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"./node_modules/core-js/internals/create-property.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-primitive.js"),i=n("./node_modules/core-js/internals/object-define-property.js"),o=n("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},"./node_modules/core-js/internals/define-iterator.js":function(e,t,n){var r=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/create-iterator-constructor.js"),o=n("./node_modules/core-js/internals/object-get-prototype-of.js"),a=n("./node_modules/core-js/internals/object-set-prototype-of.js"),s=n("./node_modules/core-js/internals/set-to-string-tag.js"),l=n("./node_modules/core-js/internals/hide.js"),c=n("./node_modules/core-js/internals/redefine.js"),u=n("./node_modules/core-js/internals/well-known-symbol.js"),h=n("./node_modules/core-js/internals/is-pure.js"),f=n("./node_modules/core-js/internals/iterators.js"),d=n("./node_modules/core-js/internals/iterators-core.js"),p=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v=function(){return this};e.exports=function(e,t,n,u,d,y,x){i(n,t,u);var w,b,_,$=function(e){if(e===d&&I)return I;if(!g&&e in E)return E[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",A=!1,E=e.prototype,j=E[m]||E["@@iterator"]||d&&E[d],I=!g&&j||$(d),T="Array"==t&&E.entries||j;if(T&&(w=o(T.call(new e)),p!==Object.prototype&&w.next&&(h||o(w)===p||(a?a(w,p):"function"!=typeof w[m]&&l(w,m,v)),s(w,k,!0,!0),h&&(f[k]=v))),"values"==d&&j&&"values"!==j.name&&(A=!0,I=function(){return j.call(this)}),h&&!x||E[m]===I||l(E,m,I),f[t]=I,d)if(b={values:$("values"),keys:y?I:$("keys"),entries:$("entries")},x)for(_ in b)!g&&!A&&_ in E||c(E,_,b[_]);else r({target:t,proto:!0,forced:g||A},b);return b}},"./node_modules/core-js/internals/descriptors.js":function(e,t,n){var r=n("./node_modules/core-js/internals/fails.js");e.exports=!r(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"./node_modules/core-js/internals/document-create-element.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/is-object.js"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},"./node_modules/core-js/internals/enum-bug-keys.js":function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,o=n("./node_modules/core-js/internals/hide.js"),a=n("./node_modules/core-js/internals/redefine.js"),s=n("./node_modules/core-js/internals/set-global.js"),l=n("./node_modules/core-js/internals/copy-constructor-properties.js"),c=n("./node_modules/core-js/internals/is-forced.js");e.exports=function(e,t){var n,u,h,f,d,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(f=t[u],h=e.noTargetGet?(d=i(n,u))&&d.value:n[u],!c(g?u:p+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),a(n,u,f,e)}}},"./node_modules/core-js/internals/fails.js":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"./node_modules/core-js/internals/function-to-string.js":function(e,t,n){var r=n("./node_modules/core-js/internals/shared.js");e.exports=r("native-function-to-string",Function.toString)},"./node_modules/core-js/internals/get-iterator-method.js":function(e,t,n){var r=n("./node_modules/core-js/internals/classof.js"),i=n("./node_modules/core-js/internals/iterators.js"),o=n("./node_modules/core-js/internals/well-known-symbol.js")("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},"./node_modules/core-js/internals/global.js":function(e,t,n){(function(t){var n="object",r=function(e){return e&&e.Math==Math&&e};e.exports=r(typeof globalThis==n&&globalThis)||r(typeof window==n&&window)||r(typeof self==n&&self)||r(typeof t==n&&t)||Function("return this")()}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/core-js/internals/has.js":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"./node_modules/core-js/internals/hidden-keys.js":function(e,t){e.exports={}},"./node_modules/core-js/internals/hide.js":function(e,t,n){var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/object-define-property.js"),o=n("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"./node_modules/core-js/internals/html.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js").document;e.exports=r&&r.documentElement},"./node_modules/core-js/internals/ie8-dom-define.js":function(e,t,n){var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/fails.js"),o=n("./node_modules/core-js/internals/document-create-element.js");e.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},"./node_modules/core-js/internals/indexed-object.js":function(e,t,n){var r=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/classof-raw.js"),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},"./node_modules/core-js/internals/internal-state.js":function(e,t,n){var r,i,o,a=n("./node_modules/core-js/internals/native-weak-map.js"),s=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/is-object.js"),c=n("./node_modules/core-js/internals/hide.js"),u=n("./node_modules/core-js/internals/has.js"),h=n("./node_modules/core-js/internals/shared-key.js"),f=n("./node_modules/core-js/internals/hidden-keys.js"),d=s.WeakMap;if(a){var p=new d,g=p.get,m=p.has,v=p.set;r=function(e,t){return v.call(p,e,t),t},i=function(e){return g.call(p,e)||{}},o=function(e){return m.call(p,e)}}else{var y=h("state");f[y]=!0,r=function(e,t){return c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},o=function(e){return u(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"./node_modules/core-js/internals/is-array-iterator-method.js":function(e,t,n){var r=n("./node_modules/core-js/internals/well-known-symbol.js"),i=n("./node_modules/core-js/internals/iterators.js"),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},"./node_modules/core-js/internals/is-forced.js":function(e,t,n){var r=n("./node_modules/core-js/internals/fails.js"),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},"./node_modules/core-js/internals/is-object.js":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"./node_modules/core-js/internals/is-pure.js":function(e,t){e.exports=!1},"./node_modules/core-js/internals/iterators-core.js":function(e,t,n){var r,i,o,a=n("./node_modules/core-js/internals/object-get-prototype-of.js"),s=n("./node_modules/core-js/internals/hide.js"),l=n("./node_modules/core-js/internals/has.js"),c=n("./node_modules/core-js/internals/well-known-symbol.js"),u=n("./node_modules/core-js/internals/is-pure.js"),h=c("iterator"),f=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):f=!0),null==r&&(r={}),u||l(r,h)||s(r,h,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},"./node_modules/core-js/internals/iterators.js":function(e,t){e.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(e,t,n){var r=n("./node_modules/core-js/internals/fails.js");e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"./node_modules/core-js/internals/native-weak-map.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/function-to-string.js"),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i.call(o))},"./node_modules/core-js/internals/object-create.js":function(e,t,n){var r=n("./node_modules/core-js/internals/an-object.js"),i=n("./node_modules/core-js/internals/object-define-properties.js"),o=n("./node_modules/core-js/internals/enum-bug-keys.js"),a=n("./node_modules/core-js/internals/hidden-keys.js"),s=n("./node_modules/core-js/internals/html.js"),l=n("./node_modules/core-js/internals/document-create-element.js"),c=n("./node_modules/core-js/internals/shared-key.js")("IE_PROTO"),u=function(){},h=function(){var e,t=l("iframe"),n=o.length;for(t.style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),h=e.F;n--;)delete h.prototype[o[n]];return h()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[c]=e):n=h(),void 0===t?n:i(n,t)},a[c]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(e,t,n){var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/object-define-property.js"),o=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/object-keys.js");e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},"./node_modules/core-js/internals/object-define-property.js":function(e,t,n){var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/ie8-dom-define.js"),o=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/to-primitive.js"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,t,n){var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),o=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/to-primitive.js"),l=n("./node_modules/core-js/internals/has.js"),c=n("./node_modules/core-js/internals/ie8-dom-define.js"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(e,t,n){var r=n("./node_modules/core-js/internals/object-keys-internal.js"),i=n("./node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(e,t,n){var r=n("./node_modules/core-js/internals/has.js"),i=n("./node_modules/core-js/internals/to-object.js"),o=n("./node_modules/core-js/internals/shared-key.js"),a=n("./node_modules/core-js/internals/correct-prototype-getter.js"),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(e,t,n){var r=n("./node_modules/core-js/internals/has.js"),i=n("./node_modules/core-js/internals/to-indexed-object.js"),o=n("./node_modules/core-js/internals/array-includes.js"),a=n("./node_modules/core-js/internals/hidden-keys.js"),s=o(!1);e.exports=function(e,t){var n,o=i(e),l=0,c=[];for(n in o)!r(a,n)&&r(o,n)&&c.push(n);for(;t.length>l;)r(o,n=t[l++])&&(~s(c,n)||c.push(n));return c}},"./node_modules/core-js/internals/object-keys.js":function(e,t,n){var r=n("./node_modules/core-js/internals/object-keys-internal.js"),i=n("./node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return r(e,i)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(e,t,n){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(e,t,n){var r=n("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n,i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/object-get-own-property-names.js"),o=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),a=n("./node_modules/core-js/internals/an-object.js"),s=r.Reflect;e.exports=s&&s.ownKeys||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},"./node_modules/core-js/internals/path.js":function(e,t,n){e.exports=n("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/shared.js"),o=n("./node_modules/core-js/internals/hide.js"),a=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/set-global.js"),l=n("./node_modules/core-js/internals/function-to-string.js"),c=n("./node_modules/core-js/internals/internal-state.js"),u=c.get,h=c.enforce,f=String(l).split("toString");i("inspectSource",function(e){return l.call(e)}),(e.exports=function(e,t,n,i){var l=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||o(n,"name",t),h(n).source=f.join("string"==typeof t?t:"")),e!==r?(l?!u&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:s(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&u(this).source||l.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"./node_modules/core-js/internals/set-global.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/hide.js");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},"./node_modules/core-js/internals/set-to-string-tag.js":function(e,t,n){var r=n("./node_modules/core-js/internals/object-define-property.js").f,i=n("./node_modules/core-js/internals/has.js"),o=n("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"./node_modules/core-js/internals/shared-key.js":function(e,t,n){var r=n("./node_modules/core-js/internals/shared.js"),i=n("./node_modules/core-js/internals/uid.js"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},"./node_modules/core-js/internals/shared.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/set-global.js"),o=n("./node_modules/core-js/internals/is-pure.js"),a=r["__core-js_shared__"]||i("__core-js_shared__",{});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.1.3",mode:o?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-integer.js"),i=n("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e,t,n){var o,a,s=String(i(e)),l=r(t),c=s.length;return l<0||l>=c?n?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?n?s.charAt(l):o:n?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}},"./node_modules/core-js/internals/to-absolute-index.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-integer.js"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"./node_modules/core-js/internals/to-indexed-object.js":function(e,t,n){var r=n("./node_modules/core-js/internals/indexed-object.js"),i=n("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return r(i(e))}},"./node_modules/core-js/internals/to-integer.js":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"./node_modules/core-js/internals/to-length.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-integer.js"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(e,t,n){var r=n("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return Object(r(e))}},"./node_modules/core-js/internals/to-primitive.js":function(e,t,n){var r=n("./node_modules/core-js/internals/is-object.js");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(e,t,n){var r=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/an-object.js");e.exports=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/shared.js"),o=n("./node_modules/core-js/internals/uid.js"),a=n("./node_modules/core-js/internals/native-symbol.js"),s=r.Symbol,l=i("wks");e.exports=function(e){return l[e]||(l[e]=a&&s[e]||(a?s:o)("Symbol."+e))}},"./node_modules/core-js/modules/es.array.from.js":function(e,t,n){var r=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/array-from.js");r({target:"Array",stat:!0,forced:!n("./node_modules/core-js/internals/check-correctness-of-iteration.js")(function(e){})},{from:i})},"./node_modules/core-js/modules/es.string.iterator.js":function(e,t,n){var r=n("./node_modules/core-js/internals/string-at.js"),i=n("./node_modules/core-js/internals/internal-state.js"),o=n("./node_modules/core-js/internals/define-iterator.js"),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i,!0),t.index+=e.length,{value:e,done:!1})})},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./src/default-attrs.json":function(e){e.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=s(n("./node_modules/classnames/dedupe.js")),a=s(n("./src/default-attrs.json"));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.contents=n,this.tags=i,this.attrs=r({},a.default,{class:"feather feather-"+t})}return i(e,[{key:"toSvg",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"<svg "+function(e){return Object.keys(e).map(function(t){return t+'="'+e[t]+'"'}).join(" ")}(r({},this.attrs,e,{class:(0,o.default)(this.attrs.class,e.class)}))+">"+this.contents+"</svg>"}},{key:"toString",value:function(){return this.contents}}]),e}();t.default=l},"./src/icons.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=a(n("./src/icon.js")),i=a(n("./dist/icons.json")),o=a(n("./src/tags.json"));function a(e){return e&&e.__esModule?e:{default:e}}t.default=Object.keys(i.default).map(function(e){return new r.default(e,i.default[e],o.default[e])}).reduce(function(e,t){return e[t.name]=t,e},{})},"./src/index.js":function(e,t,n){var r=a(n("./src/icons.js")),i=a(n("./src/to-svg.js")),o=a(n("./src/replace.js"));function a(e){return e&&e.__esModule?e:{default:e}}e.exports={icons:r.default,toSvg:i.default,replace:o.default}},"./src/replace.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=a(n("./node_modules/classnames/dedupe.js")),o=a(n("./src/icons.js"));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof document)throw new Error("`feather.replace()` only works in a browser environment.");var t=document.querySelectorAll("[data-feather]");Array.from(t).forEach(function(t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(e){return Array.from(e.attributes).reduce(function(e,t){return e[t.name]=t.value,e},{})}(e),a=n["data-feather"];delete n["data-feather"];var s=o.default[a].toSvg(r({},t,n,{class:(0,i.default)(t.class,n.class)})),l=(new DOMParser).parseFromString(s,"image/svg+xml").querySelector("svg");e.parentNode.replaceChild(l,e)}(t,e)})}},"./src/tags.json":function(e){e.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning"],"alert-octagon":["warning"],"alert-triangle":["warning"],"at-sign":["mention"],award:["achievement","badge"],aperture:["camera","photo"],bell:["alarm","notification"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read"],book:["read","dictionary","booklet","magazine"],bookmark:["read","clip","marker","tag"],briefcase:["work","bag","baggage","folder"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],command:["keyboard","cmd"],compass:["navigation","safari","travel"],copy:["clone","duplicate"],"corner-down-left":["arrow"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch"],"external-link":["outbound"],facebook:["logo"],"fast-forward":["music"],figma:["logo","design","tool"],film:["movie","video"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],global:["world","browser","language","translate"],"hard-drive":["computer","server"],hash:["hashtag","number","pound"],headphones:["music","audio"],heart:["like","love"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication"],"life-bouy":["help","life ring","support"],linkedin:["logo"],lock:["security","password"],"log-in":["sign in","arrow"],"log-out":["sign out","arrow"],mail:["email"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record"],mic:["record"],minimize:["exit fullscreen"],"minimize-2":["exit fullscreen","arrows"],monitor:["tv"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","stop"],"pen-tool":["vector","drawing"],play:["music","start"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],radio:["signal"],rewind:["music"],rss:["feed","subscribe"],save:["floppy disk"],search:["find","magnifier","magnifying glass"],send:["message","mail","paper airplane"],settings:["cog","edit","gear","preferences"],shield:["security"],"shield-off":["security"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slash:["ban","no"],sliders:["settings","controls"],smile:["emoji","face","happy","good","emotion"],speaker:["music"],star:["bookmark","favorite","like"],sun:["brightness","weather","light"],sunrise:["weather"],sunset:["weather"],tag:["label"],target:["bullseye"],terminal:["code","command line"],"thumbs-down":["dislike","bad"],"thumbs-up":["like","good"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],trash:["garbage","delete","remove"],"trash-2":["garbage","delete","remove"],triangle:["delta"],truck:["delivery","van","shipping"],twitter:["logo"],umbrella:["rain","weather"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times"],"x-octagon":["delete","stop","alert","warning","times"],"x-square":["cancel","close","delete","remove","times"],x:["cancel","close","delete","remove","times"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"]}},"./src/to-svg.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,i=n("./src/icons.js"),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!e)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[e])throw new Error("No icon matching '"+e+"'. See the complete list of icons at https://feathericons.com");return o.default[e].toSvg(t)}},0:function(e,t,n){n("./node_modules/core-js/es/array/from.js"),e.exports=n("./src/index.js")}})},e.exports=n()}),mu=(pu=gu)&&pu.__esModule&&Object.prototype.hasOwnProperty.call(pu,"default")?pu.default:pu,vu=e=>mu.toSvg(e);function yu(t){var n,r,i,o,a,s=vu(t.icon);return{c(){n=g("div"),r=g("div"),i=g("div"),w(o=g("div"),"class","icon svelte-td9xyr"),w(i,"class","inner svelte-td9xyr"),w(r,"class","nav-item svelte-td9xyr"),w(n,"class",t.navActive+" svelte-td9xyr"),a=x(r,"click",t.setActive)},m(e,t){f(e,n,t),h(n,r),h(r,i),h(i,o),o.innerHTML=s},p(e,t){e.icon&&s!==(s=vu(t.icon))&&(o.innerHTML=s),e.navActive&&w(n,"class",t.navActive+" svelte-td9xyr")},i:e,o:e,d(e){e&&d(n),a()}}}function xu(e,t,n){let{name:r="",label:i="",icon:o=""}=t,a="";au.subscribe(e=>{n("navActive",a=e.activeNav===r?"active":"")});return e.$set=(e=>{"name"in e&&n("name",r=e.name),"label"in e&&n("label",i=e.label),"icon"in e&&n("icon",o=e.icon)}),{name:r,label:i,icon:o,navActive:a,setActive:()=>au.setActiveNav(r)}}class wu extends G{constructor(e){super(),J(this,e,xu,yu,a,["name","label","icon"])}}function bu(e){var t,n,r,i,o,a,s,l,c=new wu({props:{name:"database",label:"Database",icon:"database"}}),u=new wu({props:{name:"actions",label:"Actions",icon:"zap"}}),p=new wu({props:{name:"access levels",label:"Access Levels",icon:"user"}}),m=new wu({props:{name:"user interface",label:"User Interface",icon:"monitor"}}),y=new wu({props:{name:"package",label:"Package",icon:"package"}});return{c(){t=g("nav"),n=g("img"),r=v(),c.$$.fragment.c(),i=v(),u.$$.fragment.c(),o=v(),p.$$.fragment.c(),a=v(),m.$$.fragment.c(),s=v(),y.$$.fragment.c(),w(n,"src","/_builder/assets/budibase-logo-only.png"),w(n,"class","logo svelte-n1ql72"),w(n,"alt","budibase logo"),w(t,"class","nav svelte-n1ql72"),_(t,"width",e.width)},m(e,d){f(e,t,d),h(t,n),h(t,r),q(c,t,null),h(t,i),q(u,t,null),h(t,o),q(p,t,null),h(t,a),q(m,t,null),h(t,s),q(y,t,null),l=!0},p(e,n){l&&!e.width||_(t,"width",n.width)},i(e){l||(V(c.$$.fragment,e),V(u.$$.fragment,e),V(p.$$.fragment,e),V(m.$$.fragment,e),V(y.$$.fragment,e),l=!0)},o(e){W(c.$$.fragment,e),W(u.$$.fragment,e),W(p.$$.fragment,e),W(m.$$.fragment,e),W(y.$$.fragment,e),l=!1},d(e){e&&d(t),Q(c),Q(u),Q(p),Q(m),Q(y)}}}function _u(e,t,n){let{width:r=50}=t;return e.$set=(e=>{"width"in e&&n("width",r=e.width)}),{width:r}}class $u extends G{constructor(e){super(),J(this,e,_u,bu,a,["width"])}}function ku(e,t,n){const r=Object.create(e);return r.child=t[n],r}function Au(e){for(var t,n,r=e.node.children,i=[],o=0;o<r.length;o+=1)i[o]=Eu(ku(e,r,o));const a=e=>W(i[e],1,1,()=>{i[e]=null});return{c(){for(var e=0;e<i.length;e+=1)i[e].c();t=y()},m(e,r){for(var o=0;o<i.length;o+=1)i[o].m(e,r);f(e,t,r),n=!0},p(e,n){if(e.node||e.level){r=n.node.children;for(var o=0;o<r.length;o+=1){const a=ku(n,r,o);i[o]?(i[o].p(e,a),V(i[o],1)):(i[o]=Eu(a),i[o].c(),V(i[o],1),i[o].m(t.parentNode,t))}for(B(),o=r.length;o<i.length;o+=1)a(o);H()}},i(e){if(!n){for(var t=0;t<r.length;t+=1)V(i[t]);n=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)W(i[e]);n=!1},d(e){p(i,e),e&&d(t)}}}function Eu(e){var t,n=new Tu({props:{node:e.child,level:e.level+1}});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},p(e,t){var r={};e.node&&(r.node=t.child),e.level&&(r.level=t.level+1),n.$set(r)},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function ju(e){var t,n,r,i,o,a,s=e.node.name,l=e.node.children&&Au(e);return{c(){t=g("div"),n=g("div"),r=m(s),i=v(),l&&l.c(),w(n,"class","title svelte-1rctf7f"),_(n,"padding-left",20+20*e.level+"px"),w(t,"class","root svelte-1rctf7f"),a=x(n,"click",e.click_handler)},m(e,a){f(e,t,a),h(t,n),h(n,r),h(t,i),l&&l.m(t,null),o=!0},p(e,i){o&&!e.node||s===(s=i.node.name)||b(r,s),o&&!e.level||_(n,"padding-left",20+20*i.level+"px"),i.node.children?l?(l.p(e,i),V(l,1)):((l=Au(i)).c(),V(l,1),l.m(t,null)):l&&(B(),W(l,1,1,()=>{l=null}),H())},i(e){o||(V(l),o=!0)},o(e){W(l),o=!1},d(e){e&&d(t),l&&l.d(),a()}}}function Iu(e,t,n){let{level:r=0,node:i}=t;return e.$set=(e=>{"level"in e&&n("level",r=e.level),"node"in e&&n("node",i=e.node)}),{level:r,node:i,click_handler:function(){return au.selectExistingNode(i.nodeId)}}}class Tu extends G{constructor(e){super(),J(this,e,Iu,ju,a,["level","node"])}}function Su(t){var n,r,i,o,a,s;return{c(){n=g("div"),r=g("div"),i=m(t.label),o=v(),a=g("input"),w(r,"class","label svelte-umifqh"),w(a,"class","control uk-input svelte-umifqh"),w(n,"class","container svelte-umifqh"),s=x(a,"input",t.input_input_handler)},m(e,s){f(e,n,s),h(n,r),h(r,i),h(n,o),h(n,a),a.value=t.text},p(e,t){e.label&&b(i,t.label),e.text&&a.value!==t.text&&(a.value=t.text)},i:e,o:e,d(e){e&&d(n),s()}}}function Mu(e,t,n){let{text:r="",label:i=""}=t;return e.$set=(e=>{"text"in e&&n("text",r=e.text),"label"in e&&n("label",i=e.label)}),{text:r,label:i,input_input_handler:function(){r=this.value,n("text",r)}}}class Cu extends G{constructor(e){super(),J(this,e,Mu,Su,a,["text","label"])}}function Ou(e,t,n){const r=Object.create(e);return r.option=t[n],r}function Du(e,t,n){const r=Object.create(e);return r.option=t[n],r}function Nu(e){for(var t,n,r=e.options,o=[],a=0;a<r.length;a+=1)o[a]=Ru(Ou(e,r,a));return{c(){t=g("select");for(var r=0;r<o.length;r+=1)o[r].c();void 0===e.selected&&N(()=>e.select_change_handler_1.call(t)),w(t,"class","control uk-select svelte-bm0783"),n=[x(t,"change",e.select_change_handler_1),x(t,"change",e.change_handler_1)]},m(n,r){f(n,t,r);for(var i=0;i<o.length;i+=1)o[i].m(t,null);$(t,e.selected)},p(e,n){if(e.valueMember||e.options||e.textMember){r=n.options;for(var i=0;i<r.length;i+=1){const a=Ou(n,r,i);o[i]?o[i].p(e,a):(o[i]=Ru(a),o[i].c(),o[i].m(t,null))}for(;i<o.length;i+=1)o[i].d(1);o.length=r.length}e.selected&&$(t,n.selected)},d(e){e&&d(t),p(o,e),i(n)}}}function Pu(e){for(var t,n,r=e.options,o=[],a=0;a<r.length;a+=1)o[a]=Lu(Du(e,r,a));return{c(){t=g("select");for(var r=0;r<o.length;r+=1)o[r].c();void 0===e.selected&&N(()=>e.select_change_handler.call(t)),w(t,"class","control uk-select svelte-bm0783"),t.multiple=!0,n=[x(t,"change",e.select_change_handler),x(t,"change",e.change_handler)]},m(n,r){f(n,t,r);for(var i=0;i<o.length;i+=1)o[i].m(t,null);k(t,e.selected)},p(e,n){if(e.valueMember||e.options||e.textMember){r=n.options;for(var i=0;i<r.length;i+=1){const a=Du(n,r,i);o[i]?o[i].p(e,a):(o[i]=Lu(a),o[i].c(),o[i].m(t,null))}for(;i<o.length;i+=1)o[i].d(1);o.length=r.length}e.selected&&k(t,n.selected)},d(e){e&&d(t),p(o,e),i(n)}}}function Ru(e){var t,n,r,i=e.textMember?e.textMember(e.option):e.option;return{c(){t=g("option"),n=m(i),t.__value=r=e.valueMember?e.valueMember(e.option):e.option,t.value=t.__value},m(e,r){f(e,t,r),h(t,n)},p(e,o){(e.textMember||e.options)&&i!==(i=o.textMember?o.textMember(o.option):o.option)&&b(n,i),(e.valueMember||e.options)&&r!==(r=o.valueMember?o.valueMember(o.option):o.option)&&(t.__value=r),t.value=t.__value},d(e){e&&d(t)}}}function Lu(e){var t,n,r,i=e.textMember?e.textMember(e.option):e.option;return{c(){t=g("option"),n=m(i),t.__value=r=e.valueMember?e.valueMember(e.option):e.option,t.value=t.__value},m(e,r){f(e,t,r),h(t,n)},p(e,o){(e.textMember||e.options)&&i!==(i=o.textMember?o.textMember(o.option):o.option)&&b(n,i),(e.valueMember||e.options)&&r!==(r=o.valueMember?o.valueMember(o.option):o.option)&&(t.__value=r),t.value=t.__value},d(e){e&&d(t)}}}function Fu(t){var n,r,i,o;function a(e){return e.multiple?Pu:Nu}var s=a(t),l=s(t);return{c(){n=g("div"),r=g("div"),i=m(t.label),o=v(),l.c(),w(r,"class","label svelte-bm0783"),w(n,"class","container svelte-bm0783")},m(e,t){f(e,n,t),h(n,r),h(r,i),h(n,o),l.m(n,null)},p(e,t){e.label&&b(i,t.label),s===(s=a(t))&&l?l.p(e,t):(l.d(1),(l=s(t))&&(l.c(),l.m(n,null)))},i:e,o:e,d(e){e&&d(n),l.d()}}}function zu(e,t,n){let{selected:r,label:i,options:o,valueMember:a,textMember:s,multiple:l=!1}=t;return e.$set=(e=>{"selected"in e&&n("selected",r=e.selected),"label"in e&&n("label",i=e.label),"options"in e&&n("options",o=e.options),"valueMember"in e&&n("valueMember",a=e.valueMember),"textMember"in e&&n("textMember",s=e.textMember),"multiple"in e&&n("multiple",l=e.multiple)}),{selected:r,label:i,options:o,valueMember:a,textMember:s,multiple:l,change_handler:function(t){I(e,t)},change_handler_1:function(t){I(e,t)},select_change_handler:function(){var e;e=this,r=[].map.call(e.querySelectorAll(":checked"),e=>e.__value),n("selected",r),n("valueMember",a),n("options",o)},select_change_handler_1:function(){r=function(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}(this),n("selected",r),n("valueMember",a),n("options",o)}}}class Bu extends G{constructor(e){super(),J(this,e,zu,Fu,a,["selected","label","options","valueMember","textMember","multiple"])}}function Hu(e){var t,n;const r=e.$$slots.default,i=l(r,e,null);return{c(){t=g("div"),i&&i.c(),w(t,"class","root svelte-d6wwkb"),w(t,"style",e.style)},l(e){i&&i.l(div_nodes)},m(e,r){f(e,t,r),i&&i.m(t,null),n=!0},p(e,o){i&&i.p&&e.$$scope&&i.p(u(r,o,e,null),c(r,o,null)),n&&!e.style||w(t,"style",o.style)},i(e){n||(V(i,e),n=!0)},o(e){W(i,e),n=!1},d(e){e&&d(t),i&&i.d(e)}}}function Vu(e,t,n){let{style:r=""}=t,{$$slots:i={},$$scope:o}=t;return e.$set=(e=>{"style"in e&&n("style",r=e.style),"$$scope"in e&&n("$$scope",o=e.$$scope)}),{style:r,$$slots:i,$$scope:o}}class Wu extends G{constructor(e){super(),J(this,e,Vu,Hu,a,["style"])}}function Uu(t){var n,r,i,o,a,s;return{c(){n=g("div"),r=g("div"),i=m(t.label),o=v(),a=g("input"),w(r,"class","label svelte-umifqh"),w(a,"class","control svelte-umifqh"),w(a,"type","text"),a.value=t.value,w(n,"class","container svelte-umifqh"),s=x(a,"change",t.inputChanged)},m(e,t){f(e,n,t),h(n,r),h(r,i),h(n,o),h(n,a)},p(e,t){e.label&&b(i,t.label),e.value&&(a.value=t.value)},i:e,o:e,d(e){e&&d(n),s()}}}function Yu(e,t,n){let{value:r,label:i}=t;null==r||r.toString();return e.$set=(e=>{"value"in e&&n("value",r=e.value),"label"in e&&n("label",i=e.label)}),{value:r,label:i,inputChanged:e=>{try{n("value",r=Number(e.target.value))}catch(e){n("value",r=null)}}}}class qu extends G{constructor(e){super(),J(this,e,Yu,Uu,a,["value","label"])}}function Qu(t){var n,r,i,o,a,s;return{c(){n=g("div"),r=g("div"),i=m(t.label),o=v(),a=g("textarea"),w(r,"class","label svelte-85b8gk"),w(a,"class","control svelte-85b8gk"),a.value=t.valuesText,w(n,"class","container svelte-85b8gk"),s=x(a,"change",t.inputChanged)},m(e,t){f(e,n,t),h(n,r),h(r,i),h(n,o),h(n,a)},p(e,t){e.label&&b(i,t.label),e.valuesText&&(a.value=t.valuesText)},i:e,o:e,d(e){e&&d(n),s()}}}function Ku(e,t,n){let{values:r,label:i}=t;let o;return e.$set=(e=>{"values"in e&&n("values",r=e.values),"label"in e&&n("label",i=e.label)}),e.$$.update=((e={values:1})=>{e.values&&n("valuesText",o=We("\n")(r))}),{values:r,label:i,inputChanged:e=>{try{n("values",r=e.target.value.split("\n"))}catch(e){n("values",r=[])}},valuesText:o}}class Ju extends G{constructor(e){super(),J(this,e,Ku,Qu,a,["values","label"])}}function Gu(e,t,n){const r=Object.create(e);return r.error=t[n],r}function Zu(e){for(var t,n=e.errors,r=[],i=0;i<n.length;i+=1)r[i]=Xu(Gu(e,n,i));return{c(){t=g("div");for(var e=0;e<r.length;e+=1)r[e].c();w(t,"class","error-container svelte-jwy920")},m(e,n){f(e,t,n);for(var i=0;i<r.length;i+=1)r[i].m(t,null)},p(e,i){if(e.errors){n=i.errors;for(var o=0;o<n.length;o+=1){const a=Gu(i,n,o);r[o]?r[o].p(e,a):(r[o]=Xu(a),r[o].c(),r[o].m(t,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){e&&d(t),p(r,e)}}}function Xu(e){var t,n,r,i=e.error.field?`${e.error.field}: `:"",o=e.error.error;return{c(){t=g("div"),n=m(i),r=m(o),w(t,"class","error-row svelte-jwy920")},m(e,i){f(e,t,i),h(t,n),h(t,r)},p(e,t){e.errors&&i!==(i=t.error.field?`${t.error.field}: `:"")&&b(n,i),e.errors&&o!==(o=t.error.error)&&b(r,o)},d(e){e&&d(t)}}}function eh(t){var n,r=t.hasErrors&&Zu(t);return{c(){r&&r.c(),n=y()},m(e,t){r&&r.m(e,t),f(e,n,t)},p(e,t){t.hasErrors?r?r.p(e,t):((r=Zu(t)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},i:e,o:e,d(e){r&&r.d(e),e&&d(n)}}}function th(e,t,n){let r,{errors:i=[]}=t;return e.$set=(e=>{"errors"in e&&n("errors",i=e.errors)}),e.$$.update=((e={errors:1})=>{e.errors&&n("hasErrors",r=i.length>0)}),{errors:i,hasErrors:r}}class nh extends G{constructor(e){super(),J(this,e,th,eh,a,["errors"])}}function rh(t){var n,r,o;return{c(){n=g("input"),r=m(t.label),w(n,"class","uk-checkbox svelte-66516k"),w(n,"type","checkbox"),o=[x(n,"change",t.input_change_handler),x(n,"change",t.change_handler)]},m(e,i){f(e,n,i),n.checked=t.checked,f(e,r,i)},p(e,t){e.checked&&(n.checked=t.checked),e.label&&b(r,t.label)},i:e,o:e,d(e){e&&(d(n),d(r)),i(o)}}}function ih(e,t,n){let{checked:r=!1,label:i=""}=t;return e.$set=(e=>{"checked"in e&&n("checked",r=e.checked),"label"in e&&n("label",i=e.label)}),{checked:r,label:i,change_handler:function(t){I(e,t)},input_change_handler:function(){r=this.checked,n("checked",r)}}}class oh extends G{constructor(e){super(),J(this,e,ih,rh,a,["checked","label"])}}var ah=ne(function(e,t){e.exports=function(){var e=function(){return(e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],n={_disable:[],_enable:[],allowInput:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},r={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",time_24hr:!1},i=function(e){return("0"+e).slice(-2)},o=function(e){return!0===e?1:0};function a(e,t,n){var r;return void 0===n&&(n=!1),function(){var i=this,o=arguments;null!==r&&clearTimeout(r),r=window.setTimeout(function(){r=null,n||e.apply(i,o)},t),n&&!r&&e.apply(i,o)}}var s=function(e){return e instanceof Array?e:[e]};function l(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function c(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function u(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function h(e,t){var n=c("div","numInputWrapper"),r=c("input","numInput "+e),i=c("span","arrowUp"),o=c("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(var a in t)r.setAttribute(a,t[a]);return n.appendChild(r),n.appendChild(i),n.appendChild(o),n}var f=function(){},d=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},p={D:f,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*o(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var r=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:f,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:f,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},g={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},m={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[m.w(e,t,n)]},F:function(e,t,n){return d(m.n(e,t,n)-1,!1,t)},G:function(e,t,n){return i(m.h(e,t,n))},H:function(e){return i(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[o(e.getHours()>11)]},M:function(e,t){return d(e.getMonth(),!0,t)},S:function(e){return i(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return i(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return i(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return i(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},v=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,a=void 0===o?r:o;return function(e,t,n){var r=n||a;return void 0!==i.formatDate?i.formatDate(e,t,r):t.split("").map(function(t,n,o){return m[t]&&"\\"!==o[n-1]?m[t](e,r,i):"\\"!==t?t:""}).join("")}},y=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,a=void 0===o?r:o;return function(e,t,r,o){if(0===e||e){var s,l=o||a,c=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var u=t||(i||n).dateFormat,h=String(e).trim();if("today"===h)s=new Date,r=!0;else if(/Z$/.test(h)||/GMT$/.test(h))s=new Date(e);else if(i&&i.parseDate)s=i.parseDate(e,u);else{s=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var f=void 0,d=[],m=0,v=0,y="";m<u.length;m++){var x=u[m],w="\\"===x,b="\\"===u[m-1]||w;if(g[x]&&!b){y+=g[x];var _=new RegExp(y).exec(e);_&&(f=!0)&&d["Y"!==x?"push":"unshift"]({fn:p[x],val:_[++v]})}else w||(y+=".");d.forEach(function(e){var t=e.fn,n=e.val;return s=t(s,n,l)||s})}s=f?s:void 0}}if(s instanceof Date&&!isNaN(s.getTime()))return!0===r&&s.setHours(0,0,0,0),s;i.errorHandler(new Error("Invalid date provided: "+c))}}};function x(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var w=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},b={DAY:864e5};"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var r=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},i=0,o=t;i<o.length;i++){var a=o[i];r(a)}return e});var _=300;function $(f,p){var m={config:e({},n,A.defaultConfig),l10n:r};function $(e){return e.bind(m)}function k(){var e=m.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==m.calendarContainer&&(m.calendarContainer.style.visibility="hidden",m.calendarContainer.style.display="block"),void 0!==m.daysContainer){var t=(m.days.offsetWidth+1)*e.showMonths;m.daysContainer.style.width=t+"px",m.calendarContainer.style.width=t+(void 0!==m.weekWrapper?m.weekWrapper.offsetWidth:0)+"px",m.calendarContainer.style.removeProperty("visibility"),m.calendarContainer.style.removeProperty("display")}})}function E(e){0===m.selectedDates.length&&ae(),void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=e.target;void 0!==m.amPM&&e.target===m.amPM&&(m.amPM.textContent=m.l10n.amPM[o(m.amPM.textContent===m.l10n.amPM[0])]);var r=parseFloat(n.getAttribute("min")),a=parseFloat(n.getAttribute("max")),s=parseFloat(n.getAttribute("step")),l=parseInt(n.value,10),c=e.delta||(t?38===e.which?1:-1:0),u=l+s*c;if(void 0!==n.value&&2===n.value.length){var h=n===m.hourElement,f=n===m.minuteElement;u<r?(u=a+u+o(!h)+(o(h)&&o(!m.amPM)),f&&L(void 0,-1,m.hourElement)):u>a&&(u=n===m.hourElement?u-a-o(!m.amPM):r,f&&L(void 0,1,m.hourElement)),m.amPM&&h&&(1===s?u+l===23:Math.abs(u-l)>s)&&(m.amPM.textContent=m.l10n.amPM[o(m.amPM.textContent===m.l10n.amPM[0])]),n.value=i(u)}}(e);var t=m._input.value;j(),be(),m._input.value!==t&&m._debouncedChange()}function j(){if(void 0!==m.hourElement&&void 0!==m.minuteElement){var e,t,n=(parseInt(m.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(m.minuteElement.value,10)||0)%60,i=void 0!==m.secondElement?(parseInt(m.secondElement.value,10)||0)%60:0;void 0!==m.amPM&&(e=n,t=m.amPM.textContent,n=e%12+12*o(t===m.l10n.amPM[1]));var a=void 0!==m.config.minTime||m.config.minDate&&m.minDateHasTime&&m.latestSelectedDateObj&&0===x(m.latestSelectedDateObj,m.config.minDate,!0),s=void 0!==m.config.maxTime||m.config.maxDate&&m.maxDateHasTime&&m.latestSelectedDateObj&&0===x(m.latestSelectedDateObj,m.config.maxDate,!0);if(s){var l=void 0!==m.config.maxTime?m.config.maxTime:m.config.maxDate;(n=Math.min(n,l.getHours()))===l.getHours()&&(r=Math.min(r,l.getMinutes())),r===l.getMinutes()&&(i=Math.min(i,l.getSeconds()))}if(a){var c=void 0!==m.config.minTime?m.config.minTime:m.config.minDate;(n=Math.max(n,c.getHours()))===c.getHours()&&(r=Math.max(r,c.getMinutes())),r===c.getMinutes()&&(i=Math.max(i,c.getSeconds()))}S(n,r,i)}}function I(e){var t=e||m.latestSelectedDateObj;t&&S(t.getHours(),t.getMinutes(),t.getSeconds())}function T(){var e=m.config.defaultHour,t=m.config.defaultMinute,n=m.config.defaultSeconds;if(void 0!==m.config.minDate){var r=m.config.minDate.getHours(),i=m.config.minDate.getMinutes();(e=Math.max(e,r))===r&&(t=Math.max(i,t)),e===r&&t===i&&(n=m.config.minDate.getSeconds())}if(void 0!==m.config.maxDate){var o=m.config.maxDate.getHours(),a=m.config.maxDate.getMinutes();(e=Math.min(e,o))===o&&(t=Math.min(a,t)),e===o&&t===a&&(n=m.config.maxDate.getSeconds())}S(e,t,n)}function S(e,t,n){void 0!==m.latestSelectedDateObj&&m.latestSelectedDateObj.setHours(e%24,t,n||0,0),m.hourElement&&m.minuteElement&&!m.isMobile&&(m.hourElement.value=i(m.config.time_24hr?e:(12+e)%12+12*o(e%12==0)),m.minuteElement.value=i(t),void 0!==m.amPM&&(m.amPM.textContent=m.l10n.amPM[o(e>=12)]),void 0!==m.secondElement&&(m.secondElement.value=i(n)))}function M(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&ee(t)}function C(e,t,n,r){return t instanceof Array?t.forEach(function(t){return C(e,t,n,r)}):e instanceof Array?e.forEach(function(e){return C(e,t,n,r)}):(e.addEventListener(t,n,r),void m._handlers.push({element:e,event:t,handler:n,options:r}))}function O(e){return function(t){1===t.which&&e(t)}}function D(){me("onChange")}function N(){if(m.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(m.element.querySelectorAll("[data-"+e+"]"),function(t){return C(t,"click",m[e])})}),m.isMobile)!function(){var e=m.config.enableTime?m.config.noCalendar?"time":"datetime-local":"date";m.mobileInput=c("input",m.input.className+" flatpickr-mobile"),m.mobileInput.step=m.input.getAttribute("step")||"any",m.mobileInput.tabIndex=1,m.mobileInput.type=e,m.mobileInput.disabled=m.input.disabled,m.mobileInput.required=m.input.required,m.mobileInput.placeholder=m.input.placeholder,m.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",m.selectedDates.length>0&&(m.mobileInput.defaultValue=m.mobileInput.value=m.formatDate(m.selectedDates[0],m.mobileFormatStr)),m.config.minDate&&(m.mobileInput.min=m.formatDate(m.config.minDate,"Y-m-d")),m.config.maxDate&&(m.mobileInput.max=m.formatDate(m.config.maxDate,"Y-m-d")),m.input.type="hidden",void 0!==m.altInput&&(m.altInput.type="hidden");try{m.input.parentNode&&m.input.parentNode.insertBefore(m.mobileInput,m.input.nextSibling)}catch(e){}C(m.mobileInput,"change",function(e){m.setDate(e.target.value,!1,m.mobileFormatStr),me("onChange"),me("onClose")})}();else{var e=a(oe,50);m._debouncedChange=a(D,_),m.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&C(m.daysContainer,"mouseover",function(e){"range"===m.config.mode&&ie(e.target)}),C(window.document.body,"keydown",re),m.config.inline||m.config.static||C(window,"resize",e),void 0!==window.ontouchstart?C(window.document,"touchstart",X):C(window.document,"mousedown",O(X)),C(window.document,"focus",X,{capture:!0}),!0===m.config.clickOpens&&(C(m._input,"focus",m.open),C(m._input,"mousedown",O(m.open))),void 0!==m.daysContainer&&(C(m.monthNav,"mousedown",O(_e)),C(m.monthNav,["keyup","increment"],M),C(m.daysContainer,"mousedown",O(fe))),void 0!==m.timeContainer&&void 0!==m.minuteElement&&void 0!==m.hourElement&&(C(m.timeContainer,["increment"],E),C(m.timeContainer,"blur",E,{capture:!0}),C(m.timeContainer,"mousedown",O(R)),C([m.hourElement,m.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==m.secondElement&&C(m.secondElement,"focus",function(){return m.secondElement&&m.secondElement.select()}),void 0!==m.amPM&&C(m.amPM,"mousedown",O(function(e){E(e),D()})))}}function P(e,t){var n=void 0!==e?m.parseDate(e):m.latestSelectedDateObj||(m.config.minDate&&m.config.minDate>m.now?m.config.minDate:m.config.maxDate&&m.config.maxDate<m.now?m.config.maxDate:m.now),r=m.currentYear,i=m.currentMonth;try{void 0!==n&&(m.currentYear=n.getFullYear(),m.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,m.config.errorHandler(e)}t&&m.currentYear!==r&&(me("onYearChange"),Y()),!t||m.currentYear===r&&m.currentMonth===i||me("onMonthChange"),m.redraw()}function R(e){~e.target.className.indexOf("arrow")&&L(e,e.target.classList.contains("arrowUp")?1:-1)}function L(e,t,n){var r=e&&e.target,i=n||r&&r.parentNode&&r.parentNode.firstChild,o=ve("increment");o.delta=t,i&&i.dispatchEvent(o)}function F(){var e=window.document.createDocumentFragment();if(m.calendarContainer=c("div","flatpickr-calendar"),m.calendarContainer.tabIndex=-1,!m.config.noCalendar){if(e.appendChild((m.monthNav=c("div","flatpickr-months"),m.yearElements=[],m.monthElements=[],m.prevMonthNav=c("span","flatpickr-prev-month"),m.prevMonthNav.innerHTML=m.config.prevArrow,m.nextMonthNav=c("span","flatpickr-next-month"),m.nextMonthNav.innerHTML=m.config.nextArrow,Q(),Object.defineProperty(m,"_hidePrevMonthArrow",{get:function(){return m.__hidePrevMonthArrow},set:function(e){m.__hidePrevMonthArrow!==e&&(l(m.prevMonthNav,"flatpickr-disabled",e),m.__hidePrevMonthArrow=e)}}),Object.defineProperty(m,"_hideNextMonthArrow",{get:function(){return m.__hideNextMonthArrow},set:function(e){m.__hideNextMonthArrow!==e&&(l(m.nextMonthNav,"flatpickr-disabled",e),m.__hideNextMonthArrow=e)}}),m.currentYearElement=m.yearElements[0],xe(),m.monthNav)),m.innerContainer=c("div","flatpickr-innerContainer"),m.config.weekNumbers){var t=function(){m.calendarContainer.classList.add("hasWeeks");var e=c("div","flatpickr-weekwrapper");e.appendChild(c("span","flatpickr-weekday",m.l10n.weekAbbreviation));var t=c("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,r=t.weekNumbers;m.innerContainer.appendChild(n),m.weekNumbers=r,m.weekWrapper=n}m.rContainer=c("div","flatpickr-rContainer"),m.rContainer.appendChild(K()),m.daysContainer||(m.daysContainer=c("div","flatpickr-days"),m.daysContainer.tabIndex=-1),U(),m.rContainer.appendChild(m.daysContainer),m.innerContainer.appendChild(m.rContainer),e.appendChild(m.innerContainer)}m.config.enableTime&&e.appendChild(function(){m.calendarContainer.classList.add("hasTime"),m.config.noCalendar&&m.calendarContainer.classList.add("noCalendar"),m.timeContainer=c("div","flatpickr-time"),m.timeContainer.tabIndex=-1;var e=c("span","flatpickr-time-separator",":"),t=h("flatpickr-hour");m.hourElement=t.getElementsByTagName("input")[0];var n=h("flatpickr-minute");if(m.minuteElement=n.getElementsByTagName("input")[0],m.hourElement.tabIndex=m.minuteElement.tabIndex=-1,m.hourElement.value=i(m.latestSelectedDateObj?m.latestSelectedDateObj.getHours():m.config.time_24hr?m.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(m.config.defaultHour)),m.minuteElement.value=i(m.latestSelectedDateObj?m.latestSelectedDateObj.getMinutes():m.config.defaultMinute),m.hourElement.setAttribute("step",m.config.hourIncrement.toString()),m.minuteElement.setAttribute("step",m.config.minuteIncrement.toString()),m.hourElement.setAttribute("min",m.config.time_24hr?"0":"1"),m.hourElement.setAttribute("max",m.config.time_24hr?"23":"12"),m.minuteElement.setAttribute("min","0"),m.minuteElement.setAttribute("max","59"),m.timeContainer.appendChild(t),m.timeContainer.appendChild(e),m.timeContainer.appendChild(n),m.config.time_24hr&&m.timeContainer.classList.add("time24hr"),m.config.enableSeconds){m.timeContainer.classList.add("hasSeconds");var r=h("flatpickr-second");m.secondElement=r.getElementsByTagName("input")[0],m.secondElement.value=i(m.latestSelectedDateObj?m.latestSelectedDateObj.getSeconds():m.config.defaultSeconds),m.secondElement.setAttribute("step",m.minuteElement.getAttribute("step")),m.secondElement.setAttribute("min","0"),m.secondElement.setAttribute("max","59"),m.timeContainer.appendChild(c("span","flatpickr-time-separator",":")),m.timeContainer.appendChild(r)}return m.config.time_24hr||(m.amPM=c("span","flatpickr-am-pm",m.l10n.amPM[o((m.latestSelectedDateObj?m.hourElement.value:m.config.defaultHour)>11)]),m.amPM.title=m.l10n.toggleTitle,m.amPM.tabIndex=-1,m.timeContainer.appendChild(m.amPM)),m.timeContainer}()),l(m.calendarContainer,"rangeMode","range"===m.config.mode),l(m.calendarContainer,"animate",!0===m.config.animate),l(m.calendarContainer,"multiMonth",m.config.showMonths>1),m.calendarContainer.appendChild(e);var a=void 0!==m.config.appendTo&&void 0!==m.config.appendTo.nodeType;if((m.config.inline||m.config.static)&&(m.calendarContainer.classList.add(m.config.inline?"inline":"static"),m.config.inline&&(!a&&m.element.parentNode?m.element.parentNode.insertBefore(m.calendarContainer,m._input.nextSibling):void 0!==m.config.appendTo&&m.config.appendTo.appendChild(m.calendarContainer)),m.config.static)){var s=c("div","flatpickr-wrapper");m.element.parentNode&&m.element.parentNode.insertBefore(s,m.element),s.appendChild(m.element),m.altInput&&s.appendChild(m.altInput),s.appendChild(m.calendarContainer)}m.config.static||m.config.inline||(void 0!==m.config.appendTo?m.config.appendTo:window.document.body).appendChild(m.calendarContainer)}function z(e,t,n,r){var i=te(t,!0),o=c("span","flatpickr-day "+e,t.getDate().toString());return o.dateObj=t,o.$i=r,o.setAttribute("aria-label",m.formatDate(t,m.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===x(t,m.now)&&(m.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,ye(t)&&(o.classList.add("selected"),m.selectedDateElem=o,"range"===m.config.mode&&(l(o,"startRange",m.selectedDates[0]&&0===x(t,m.selectedDates[0],!0)),l(o,"endRange",m.selectedDates[1]&&0===x(t,m.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===m.config.mode&&function(e){return!("range"!==m.config.mode||m.selectedDates.length<2)&&x(e,m.selectedDates[0])>=0&&x(e,m.selectedDates[1])<=0}(t)&&!ye(t)&&o.classList.add("inRange"),m.weekNumbers&&1===m.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&m.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+m.config.getWeek(t)+"</span>"),me("onDayCreate",o),o}function B(e){e.focus(),"range"===m.config.mode&&ie(e)}function H(e){for(var t=e>0?0:m.config.showMonths-1,n=e>0?m.config.showMonths:-1,r=t;r!=n;r+=e)for(var i=m.daysContainer.children[r],o=e>0?0:i.children.length-1,a=e>0?i.children.length:-1,s=o;s!=a;s+=e){var l=i.children[s];if(-1===l.className.indexOf("hidden")&&te(l.dateObj))return l}}function V(e,t){var n=ne(document.activeElement||document.body),r=void 0!==e?e:n?document.activeElement:void 0!==m.selectedDateElem&&ne(m.selectedDateElem)?m.selectedDateElem:void 0!==m.todayDateElem&&ne(m.todayDateElem)?m.todayDateElem:H(t>0?1:-1);return void 0===r?m._input.focus():n?void function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():m.currentMonth,r=t>0?m.config.showMonths:-1,i=t>0?1:-1,o=n-m.currentMonth;o!=r;o+=i)for(var a=m.daysContainer.children[o],s=n-m.currentMonth===o?e.$i+t:t<0?a.children.length-1:0,l=a.children.length,c=s;c>=0&&c<l&&c!=(t>0?l:-1);c+=i){var u=a.children[c];if(-1===u.className.indexOf("hidden")&&te(u.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return B(u)}m.changeMonth(i),V(H(i),0)}(r,t):B(r)}function W(e,t){for(var n=(new Date(e,t,1).getDay()-m.l10n.firstDayOfWeek+7)%7,r=m.utils.getDaysInMonth((t-1+12)%12),i=m.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),a=m.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay",u=r+1-n,h=0;u<=r;u++,h++)o.appendChild(z(s,new Date(e,t-1,u),u,h));for(u=1;u<=i;u++,h++)o.appendChild(z("",new Date(e,t,u),u,h));for(var f=i+1;f<=42-n&&(1===m.config.showMonths||h%7!=0);f++,h++)o.appendChild(z(l,new Date(e,t+1,f%i),f,h));var d=c("div","dayContainer");return d.appendChild(o),d}function U(){if(void 0!==m.daysContainer){u(m.daysContainer),m.weekNumbers&&u(m.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<m.config.showMonths;t++){var n=new Date(m.currentYear,m.currentMonth,1);n.setMonth(m.currentMonth+t),e.appendChild(W(n.getFullYear(),n.getMonth()))}m.daysContainer.appendChild(e),m.days=m.daysContainer.firstChild,"range"===m.config.mode&&1===m.selectedDates.length&&ie()}}function Y(){if(!(m.config.showMonths>1)){var e=function(e){return!(void 0!==m.config.minDate&&m.currentYear===m.config.minDate.getFullYear()&&e<m.config.minDate.getMonth()||void 0!==m.config.maxDate&&m.currentYear===m.config.maxDate.getFullYear()&&e>m.config.maxDate.getMonth())};m.monthsDropdownContainer.tabIndex=-1,m.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=c("option","flatpickr-monthDropdown-month");n.value=new Date(m.currentYear,t).getMonth().toString(),n.textContent=d(t,!1,m.l10n),n.tabIndex=-1,m.currentMonth===t&&(n.selected=!0),m.monthsDropdownContainer.appendChild(n)}}}function q(){var e,t=c("div","flatpickr-month"),n=window.document.createDocumentFragment();m.config.showMonths>1?e=c("span","cur-month"):(m.monthsDropdownContainer=c("select","flatpickr-monthDropdown-months"),C(m.monthsDropdownContainer,"change",function(e){var t=e.target,n=parseInt(t.value,10);m.changeMonth(n-m.currentMonth),me("onMonthChange")}),Y(),e=m.monthsDropdownContainer);var r=h("cur-year",{tabindex:"-1"}),i=r.getElementsByTagName("input")[0];i.setAttribute("aria-label",m.l10n.yearAriaLabel),m.config.minDate&&i.setAttribute("min",m.config.minDate.getFullYear().toString()),m.config.maxDate&&(i.setAttribute("max",m.config.maxDate.getFullYear().toString()),i.disabled=!!m.config.minDate&&m.config.minDate.getFullYear()===m.config.maxDate.getFullYear());var o=c("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(r),n.appendChild(o),t.appendChild(n),{container:t,yearElement:i,monthElement:e}}function Q(){u(m.monthNav),m.monthNav.appendChild(m.prevMonthNav),m.config.showMonths&&(m.yearElements=[],m.monthElements=[]);for(var e=m.config.showMonths;e--;){var t=q();m.yearElements.push(t.yearElement),m.monthElements.push(t.monthElement),m.monthNav.appendChild(t.container)}m.monthNav.appendChild(m.nextMonthNav)}function K(){m.weekdayContainer?u(m.weekdayContainer):m.weekdayContainer=c("div","flatpickr-weekdays");for(var e=m.config.showMonths;e--;){var t=c("div","flatpickr-weekdaycontainer");m.weekdayContainer.appendChild(t)}return J(),m.weekdayContainer}function J(){var e=m.l10n.firstDayOfWeek,t=m.l10n.weekdays.shorthand.slice();e>0&&e<t.length&&(t=t.splice(e,t.length).concat(t.splice(0,e)));for(var n=m.config.showMonths;n--;)m.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}function G(e,t){void 0===t&&(t=!0);var n=t?e:e-m.currentMonth;n<0&&!0===m._hidePrevMonthArrow||n>0&&!0===m._hideNextMonthArrow||(m.currentMonth+=n,(m.currentMonth<0||m.currentMonth>11)&&(m.currentYear+=m.currentMonth>11?1:-1,m.currentMonth=(m.currentMonth+12)%12,me("onYearChange"),Y()),U(),me("onMonthChange"),xe())}function Z(e){return!(!m.config.appendTo||!m.config.appendTo.contains(e))||m.calendarContainer.contains(e)}function X(e){if(m.isOpen&&!m.config.inline){var t=function(e){if("function"==typeof e.composedPath){var t=e.composedPath();return t[0]}return e.target}(e),n=Z(t),r=t===m.input||t===m.altInput||m.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(m.input)||~e.path.indexOf(m.altInput)),i="blur"===e.type?r&&e.relatedTarget&&!Z(e.relatedTarget):!r&&!n&&!Z(e.relatedTarget),o=!m.config.ignoredFocusElements.some(function(e){return e.contains(t)});i&&o&&(m.close(),"range"===m.config.mode&&1===m.selectedDates.length&&(m.clear(!1),m.redraw()))}}function ee(e){if(!(!e||m.config.minDate&&e<m.config.minDate.getFullYear()||m.config.maxDate&&e>m.config.maxDate.getFullYear())){var t=e,n=m.currentYear!==t;m.currentYear=t||m.currentYear,m.config.maxDate&&m.currentYear===m.config.maxDate.getFullYear()?m.currentMonth=Math.min(m.config.maxDate.getMonth(),m.currentMonth):m.config.minDate&&m.currentYear===m.config.minDate.getFullYear()&&(m.currentMonth=Math.max(m.config.minDate.getMonth(),m.currentMonth)),n&&(m.redraw(),me("onYearChange"),Y())}}function te(e,t){void 0===t&&(t=!0);var n=m.parseDate(e,void 0,t);if(m.config.minDate&&n&&x(n,m.config.minDate,void 0!==t?t:!m.minDateHasTime)<0||m.config.maxDate&&n&&x(n,m.config.maxDate,void 0!==t?t:!m.maxDateHasTime)>0)return!1;if(0===m.config.enable.length&&0===m.config.disable.length)return!0;if(void 0===n)return!1;for(var r=m.config.enable.length>0,i=r?m.config.enable:m.config.disable,o=0,a=void 0;o<i.length;o++){if("function"==typeof(a=i[o])&&a(n))return r;if(a instanceof Date&&void 0!==n&&a.getTime()===n.getTime())return r;if("string"==typeof a&&void 0!==n){var s=m.parseDate(a,void 0,!0);return s&&s.getTime()===n.getTime()?r:!r}if("object"==typeof a&&void 0!==n&&a.from&&a.to&&n.getTime()>=a.from.getTime()&&n.getTime()<=a.to.getTime())return r}return!r}function ne(e){return void 0!==m.daysContainer&&-1===e.className.indexOf("hidden")&&m.daysContainer.contains(e)}function re(e){var t=e.target===m._input,n=m.config.allowInput,r=m.isOpen&&(!n||!t),i=m.config.inline&&t&&!n;if(13===e.keyCode&&t){if(n)return m.setDate(m._input.value,!0,e.target===m.altInput?m.config.altFormat:m.config.dateFormat),e.target.blur();m.open()}else if(Z(e.target)||r||i){var o=!!m.timeContainer&&m.timeContainer.contains(e.target);switch(e.keyCode){case 13:o?(e.preventDefault(),E(),he()):fe(e);break;case 27:e.preventDefault(),he();break;case 8:case 46:t&&!m.config.allowInput&&(e.preventDefault(),m.clear());break;case 37:case 39:if(o||t)m.hourElement&&m.hourElement.focus();else if(e.preventDefault(),void 0!==m.daysContainer&&(!1===n||document.activeElement&&ne(document.activeElement))){var a=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),G(a),V(H(1),0)):V(void 0,a)}break;case 38:case 40:e.preventDefault();var s=40===e.keyCode?1:-1;m.daysContainer&&void 0!==e.target.$i||e.target===m.input?e.ctrlKey?(e.stopPropagation(),ee(m.currentYear-s),V(H(1),0)):o||V(void 0,7*s):e.target===m.currentYearElement?ee(m.currentYear-s):m.config.enableTime&&(!o&&m.hourElement&&m.hourElement.focus(),E(e),m._debouncedChange());break;case 9:if(o){var l=[m.hourElement,m.minuteElement,m.secondElement,m.amPM].concat(m.pluginElements).filter(function(e){return e}),c=l.indexOf(e.target);if(-1!==c){var u=l[c+(e.shiftKey?-1:1)];e.preventDefault(),(u||m._input).focus()}}else!m.config.noCalendar&&m.daysContainer&&m.daysContainer.contains(e.target)&&e.shiftKey&&(e.preventDefault(),m._input.focus())}}if(void 0!==m.amPM&&e.target===m.amPM)switch(e.key){case m.l10n.amPM[0].charAt(0):case m.l10n.amPM[0].charAt(0).toLowerCase():m.amPM.textContent=m.l10n.amPM[0],j(),be();break;case m.l10n.amPM[1].charAt(0):case m.l10n.amPM[1].charAt(0).toLowerCase():m.amPM.textContent=m.l10n.amPM[1],j(),be()}(t||Z(e.target))&&me("onKeyDown",e)}function ie(e){if(1===m.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():m.days.firstElementChild.dateObj.getTime(),n=m.parseDate(m.selectedDates[0],void 0,!0).getTime(),r=Math.min(t,m.selectedDates[0].getTime()),i=Math.max(t,m.selectedDates[0].getTime()),o=!1,a=0,s=0,l=r;l<i;l+=b.DAY)te(new Date(l),!0)||(o=o||l>r&&l<i,l<n&&(!a||l>a)?a=l:l>n&&(!s||l<s)&&(s=l));for(var c=0;c<m.config.showMonths;c++)for(var u=m.daysContainer.children[c],h=function(r,i){var l=u.children[r],c=l.dateObj,h=c.getTime(),f=a>0&&h<a||s>0&&h>s;return f?(l.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){l.classList.remove(e)}),"continue"):o&&!f?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){l.classList.remove(e)}),void(void 0!==e&&(e.classList.add(t<=m.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&h===n?l.classList.add("startRange"):n>t&&h===n&&l.classList.add("endRange"),h>=a&&(0===s||h<=s)&&w(h,n,t)&&l.classList.add("inRange"))))},f=0,d=u.children.length;f<d;f++)h(f)}}function oe(){!m.isOpen||m.config.static||m.config.inline||ce()}function ae(){m.setDate(void 0!==m.config.minDate?new Date(m.config.minDate.getTime()):new Date,!0),T(),be()}function se(e){return function(t){var n=m.config["_"+e+"Date"]=m.parseDate(t,m.config.dateFormat),r=m.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(m["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),m.selectedDates&&(m.selectedDates=m.selectedDates.filter(function(e){return te(e)}),m.selectedDates.length||"min"!==e||I(n),be()),m.daysContainer&&(ue(),void 0!==n?m.currentYearElement[e]=n.getFullYear().toString():m.currentYearElement.removeAttribute(e),m.currentYearElement.disabled=!!r&&void 0!==n&&r.getFullYear()===n.getFullYear())}}function le(){"object"!=typeof m.config.locale&&void 0===A.l10ns[m.config.locale]&&m.config.errorHandler(new Error("flatpickr: invalid locale "+m.config.locale)),m.l10n=e({},A.l10ns.default,"object"==typeof m.config.locale?m.config.locale:"default"!==m.config.locale?A.l10ns[m.config.locale]:void 0),g.K="("+m.l10n.amPM[0]+"|"+m.l10n.amPM[1]+"|"+m.l10n.amPM[0].toLowerCase()+"|"+m.l10n.amPM[1].toLowerCase()+")";var t=e({},p,JSON.parse(JSON.stringify(f.dataset||{})));void 0===t.time_24hr&&void 0===A.defaultConfig.time_24hr&&(m.config.time_24hr=m.l10n.time_24hr),m.formatDate=v(m),m.parseDate=y({config:m.config,l10n:m.l10n})}function ce(e){if(void 0!==m.calendarContainer){me("onPreCalendarPosition");var t=e||m._positionElement,n=Array.prototype.reduce.call(m.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),r=m.calendarContainer.offsetWidth,i=m.config.position.split(" "),o=i[0],a=i.length>1?i[1]:null,s=t.getBoundingClientRect(),c=window.innerHeight-s.bottom,u="above"===o||"below"!==o&&c<n&&s.top>n,h=window.pageYOffset+s.top+(u?-n-2:t.offsetHeight+2);if(l(m.calendarContainer,"arrowTop",!u),l(m.calendarContainer,"arrowBottom",u),!m.config.inline){var f=window.pageXOffset+s.left-(null!=a&&"center"===a?(r-s.width)/2:0),d=window.document.body.offsetWidth-s.right,p=f+r>window.document.body.offsetWidth,g=d+r>window.document.body.offsetWidth;if(l(m.calendarContainer,"rightMost",p),!m.config.static)if(m.calendarContainer.style.top=h+"px",p)if(g){var v=document.styleSheets[0];if(void 0===v)return;var y=window.document.body.offsetWidth,x=Math.max(0,y/2-r/2),w=v.cssRules.length,b="{left:"+s.left+"px;right:auto;}";l(m.calendarContainer,"rightMost",!1),l(m.calendarContainer,"centerMost",!0),v.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+b,w),m.calendarContainer.style.left=x+"px",m.calendarContainer.style.right="auto"}else m.calendarContainer.style.left="auto",m.calendarContainer.style.right=d+"px";else m.calendarContainer.style.left=f+"px",m.calendarContainer.style.right="auto"}}}function ue(){m.config.noCalendar||m.isMobile||(xe(),U())}function he(){m._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(m.close,0):m.close()}function fe(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(e.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,r=m.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(r.getMonth()<m.currentMonth||r.getMonth()>m.currentMonth+m.config.showMonths-1)&&"range"!==m.config.mode;if(m.selectedDateElem=n,"single"===m.config.mode)m.selectedDates=[r];else if("multiple"===m.config.mode){var o=ye(r);o?m.selectedDates.splice(parseInt(o),1):m.selectedDates.push(r)}else"range"===m.config.mode&&(2===m.selectedDates.length&&m.clear(!1,!1),m.latestSelectedDateObj=r,m.selectedDates.push(r),0!==x(r,m.selectedDates[0],!0)&&m.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(j(),i){var a=m.currentYear!==r.getFullYear();m.currentYear=r.getFullYear(),m.currentMonth=r.getMonth(),a&&(me("onYearChange"),Y()),me("onMonthChange")}if(xe(),U(),be(),m.config.enableTime&&setTimeout(function(){return m.showTimeInput=!0},50),i||"range"===m.config.mode||1!==m.config.showMonths?void 0!==m.selectedDateElem&&void 0===m.hourElement&&m.selectedDateElem&&m.selectedDateElem.focus():B(n),void 0!==m.hourElement&&void 0!==m.hourElement&&m.hourElement.focus(),m.config.closeOnSelect){var s="single"===m.config.mode&&!m.config.enableTime,l="range"===m.config.mode&&2===m.selectedDates.length&&!m.config.enableTime;(s||l)&&he()}D()}}m.parseDate=y({config:m.config,l10n:m.l10n}),m._handlers=[],m.pluginElements=[],m.loadedPlugins=[],m._bind=C,m._setHoursFromDate=I,m._positionCalendar=ce,m.changeMonth=G,m.changeYear=ee,m.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),m.input.value="",void 0!==m.altInput&&(m.altInput.value=""),void 0!==m.mobileInput&&(m.mobileInput.value=""),m.selectedDates=[],m.latestSelectedDateObj=void 0,!0===t&&(m.currentYear=m._initialDate.getFullYear(),m.currentMonth=m._initialDate.getMonth()),m.showTimeInput=!1,!0===m.config.enableTime&&T(),m.redraw(),e&&me("onChange")},m.close=function(){m.isOpen=!1,m.isMobile||(void 0!==m.calendarContainer&&m.calendarContainer.classList.remove("open"),void 0!==m._input&&m._input.classList.remove("active")),me("onClose")},m._createElement=c,m.destroy=function(){void 0!==m.config&&me("onDestroy");for(var e=m._handlers.length;e--;){var t=m._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(m._handlers=[],m.mobileInput)m.mobileInput.parentNode&&m.mobileInput.parentNode.removeChild(m.mobileInput),m.mobileInput=void 0;else if(m.calendarContainer&&m.calendarContainer.parentNode)if(m.config.static&&m.calendarContainer.parentNode){var n=m.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else m.calendarContainer.parentNode.removeChild(m.calendarContainer);m.altInput&&(m.input.type="text",m.altInput.parentNode&&m.altInput.parentNode.removeChild(m.altInput),delete m.altInput),m.input&&(m.input.type=m.input._type,m.input.classList.remove("flatpickr-input"),m.input.removeAttribute("readonly"),m.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete m[e]}catch(e){}})},m.isEnabled=te,m.jumpToDate=P,m.open=function(e,t){if(void 0===t&&(t=m._positionElement),!0===m.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==m.mobileInput&&(m.mobileInput.focus(),m.mobileInput.click()),void me("onOpen");if(!m._input.disabled&&!m.config.inline){var n=m.isOpen;m.isOpen=!0,n||(m.calendarContainer.classList.add("open"),m._input.classList.add("active"),me("onOpen"),ce(t)),!0===m.config.enableTime&&!0===m.config.noCalendar&&(0===m.selectedDates.length&&ae(),!1!==m.config.allowInput||void 0!==e&&m.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return m.hourElement.select()},50))}},m.redraw=ue,m.set=function(e,n){if(null!==e&&"object"==typeof e)for(var r in Object.assign(m.config,e),e)void 0!==de[r]&&de[r].forEach(function(e){return e()});else m.config[e]=n,void 0!==de[e]?de[e].forEach(function(e){return e()}):t.indexOf(e)>-1&&(m.config[e]=s(n));m.redraw(),be(!1)},m.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=m.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return m.clear(t);pe(e,n),m.showTimeInput=m.selectedDates.length>0,m.latestSelectedDateObj=m.selectedDates[m.selectedDates.length-1],m.redraw(),P(),I(),0===m.selectedDates.length&&m.clear(!1),be(t),t&&me("onChange")},m.toggle=function(e){if(!0===m.isOpen)return m.close();m.open(e)};var de={locale:[le,J],showMonths:[Q,k,K],minDate:[P],maxDate:[P]};function pe(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return m.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[m.parseDate(e,t)];else if("string"==typeof e)switch(m.config.mode){case"single":case"time":n=[m.parseDate(e,t)];break;case"multiple":n=e.split(m.config.conjunction).map(function(e){return m.parseDate(e,t)});break;case"range":n=e.split(m.l10n.rangeSeparator).map(function(e){return m.parseDate(e,t)})}else m.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));m.selectedDates=n.filter(function(e){return e instanceof Date&&te(e,!1)}),"range"===m.config.mode&&m.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function ge(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?m.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:m.parseDate(e.from,void 0),to:m.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function me(e,t){if(void 0!==m.config){var n=m.config[e];if(void 0!==n&&n.length>0)for(var r=0;n[r]&&r<n.length;r++)n[r](m.selectedDates,m.input.value,m,t);"onChange"===e&&(m.input.dispatchEvent(ve("change")),m.input.dispatchEvent(ve("input")))}}function ve(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function ye(e){for(var t=0;t<m.selectedDates.length;t++)if(0===x(m.selectedDates[t],e))return""+t;return!1}function xe(){m.config.noCalendar||m.isMobile||!m.monthNav||(m.yearElements.forEach(function(e,t){var n=new Date(m.currentYear,m.currentMonth,1);n.setMonth(m.currentMonth+t),m.config.showMonths>1?m.monthElements[t].textContent=d(n.getMonth(),m.config.shorthandCurrentMonth,m.l10n)+" ":m.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()}),m._hidePrevMonthArrow=void 0!==m.config.minDate&&(m.currentYear===m.config.minDate.getFullYear()?m.currentMonth<=m.config.minDate.getMonth():m.currentYear<m.config.minDate.getFullYear()),m._hideNextMonthArrow=void 0!==m.config.maxDate&&(m.currentYear===m.config.maxDate.getFullYear()?m.currentMonth+1>m.config.maxDate.getMonth():m.currentYear>m.config.maxDate.getFullYear()))}function we(e){return m.selectedDates.map(function(t){return m.formatDate(t,e)}).filter(function(e,t,n){return"range"!==m.config.mode||m.config.enableTime||n.indexOf(e)===t}).join("range"!==m.config.mode?m.config.conjunction:m.l10n.rangeSeparator)}function be(e){void 0===e&&(e=!0),void 0!==m.mobileInput&&m.mobileFormatStr&&(m.mobileInput.value=void 0!==m.latestSelectedDateObj?m.formatDate(m.latestSelectedDateObj,m.mobileFormatStr):""),m.input.value=we(m.config.dateFormat),void 0!==m.altInput&&(m.altInput.value=we(m.config.altFormat)),!1!==e&&me("onValueUpdate")}function _e(e){var t=m.prevMonthNav.contains(e.target),n=m.nextMonthNav.contains(e.target);t||n?G(t?-1:1):m.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?m.changeYear(m.currentYear+1):e.target.classList.contains("arrowDown")&&m.changeYear(m.currentYear-1)}return function(){m.element=m.input=f,m.isOpen=!1,function(){var r=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=e({},p,JSON.parse(JSON.stringify(f.dataset||{}))),o={};m.config.parseDate=i.parseDate,m.config.formatDate=i.formatDate,Object.defineProperty(m.config,"enable",{get:function(){return m.config._enable},set:function(e){m.config._enable=ge(e)}}),Object.defineProperty(m.config,"disable",{get:function(){return m.config._disable},set:function(e){m.config._disable=ge(e)}});var a="time"===i.mode;if(!i.dateFormat&&(i.enableTime||a)){var l=A.defaultConfig.dateFormat||n.dateFormat;o.dateFormat=i.noCalendar||a?"H:i"+(i.enableSeconds?":S":""):l+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||a)&&!i.altFormat){var c=A.defaultConfig.altFormat||n.altFormat;o.altFormat=i.noCalendar||a?"h:i"+(i.enableSeconds?":S K":" K"):c+" h:i"+(i.enableSeconds?":S":"")+" K"}i.altInputClass||(m.config.altInputClass=m.input.className+" "+m.config.altInputClass),Object.defineProperty(m.config,"minDate",{get:function(){return m.config._minDate},set:se("min")}),Object.defineProperty(m.config,"maxDate",{get:function(){return m.config._maxDate},set:se("max")});var u=function(e){return function(t){m.config["min"===e?"_minTime":"_maxTime"]=m.parseDate(t,"H:i")}};Object.defineProperty(m.config,"minTime",{get:function(){return m.config._minTime},set:u("min")}),Object.defineProperty(m.config,"maxTime",{get:function(){return m.config._maxTime},set:u("max")}),"time"===i.mode&&(m.config.noCalendar=!0,m.config.enableTime=!0),Object.assign(m.config,o,i);for(var h=0;h<r.length;h++)m.config[r[h]]=!0===m.config[r[h]]||"true"===m.config[r[h]];t.filter(function(e){return void 0!==m.config[e]}).forEach(function(e){m.config[e]=s(m.config[e]||[]).map($)}),m.isMobile=!m.config.disableMobile&&!m.config.inline&&"single"===m.config.mode&&!m.config.disable.length&&!m.config.enable.length&&!m.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var h=0;h<m.config.plugins.length;h++){var d=m.config.plugins[h](m)||{};for(var g in d)t.indexOf(g)>-1?m.config[g]=s(d[g]).map($).concat(m.config[g]):void 0===i[g]&&(m.config[g]=d[g])}me("onParseConfig")}(),le(),m.input=m.config.wrap?f.querySelector("[data-input]"):f,m.input?(m.input._type=m.input.type,m.input.type="text",m.input.classList.add("flatpickr-input"),m._input=m.input,m.config.altInput&&(m.altInput=c(m.input.nodeName,m.config.altInputClass),m._input=m.altInput,m.altInput.placeholder=m.input.placeholder,m.altInput.disabled=m.input.disabled,m.altInput.required=m.input.required,m.altInput.tabIndex=m.input.tabIndex,m.altInput.type="text",m.input.setAttribute("type","hidden"),!m.config.static&&m.input.parentNode&&m.input.parentNode.insertBefore(m.altInput,m.input.nextSibling)),m.config.allowInput||m._input.setAttribute("readonly","readonly"),m._positionElement=m.config.positionElement||m._input):m.config.errorHandler(new Error("Invalid input element specified")),function(){m.selectedDates=[],m.now=m.parseDate(m.config.now)||new Date;var e=m.config.defaultDate||("INPUT"!==m.input.nodeName&&"TEXTAREA"!==m.input.nodeName||!m.input.placeholder||m.input.value!==m.input.placeholder?m.input.value:null);e&&pe(e,m.config.dateFormat),m._initialDate=m.selectedDates.length>0?m.selectedDates[0]:m.config.minDate&&m.config.minDate.getTime()>m.now.getTime()?m.config.minDate:m.config.maxDate&&m.config.maxDate.getTime()<m.now.getTime()?m.config.maxDate:m.now,m.currentYear=m._initialDate.getFullYear(),m.currentMonth=m._initialDate.getMonth(),m.selectedDates.length>0&&(m.latestSelectedDateObj=m.selectedDates[0]),void 0!==m.config.minTime&&(m.config.minTime=m.parseDate(m.config.minTime,"H:i")),void 0!==m.config.maxTime&&(m.config.maxTime=m.parseDate(m.config.maxTime,"H:i")),m.minDateHasTime=!!m.config.minDate&&(m.config.minDate.getHours()>0||m.config.minDate.getMinutes()>0||m.config.minDate.getSeconds()>0),m.maxDateHasTime=!!m.config.maxDate&&(m.config.maxDate.getHours()>0||m.config.maxDate.getMinutes()>0||m.config.maxDate.getSeconds()>0),Object.defineProperty(m,"showTimeInput",{get:function(){return m._showTimeInput},set:function(e){m._showTimeInput=e,m.calendarContainer&&l(m.calendarContainer,"showTimeInput",e),m.isOpen&&ce()}})}(),m.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=m.currentMonth),void 0===t&&(t=m.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:m.l10n.daysInMonth[e]}},m.isMobile||F(),N(),(m.selectedDates.length||m.config.noCalendar)&&(m.config.enableTime&&I(m.config.noCalendar?m.latestSelectedDateObj||m.config.minDate:void 0),be(!1)),k(),m.showTimeInput=m.selectedDates.length>0||m.config.noCalendar;var r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!m.isMobile&&r&&ce(),me("onReady")}(),m}function k(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),r=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=$(o,t||{}),r.push(o._flatpickr)}catch(e){console.error(e)}}return 1===r.length?r[0]:r}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return k(this,e)},HTMLElement.prototype.flatpickr=function(e){return k([this],e)});var A=function(e,t){return"string"==typeof e?k(window.document.querySelectorAll(e),t):e instanceof Node?k([e],t):k(e,t)};return A.defaultConfig={},A.l10ns={en:e({},r),default:e({},r)},A.localize=function(t){A.l10ns.default=e({},A.l10ns.default,t)},A.setDefaults=function(t){A.defaultConfig=e({},A.defaultConfig,t)},A.parseDate=y({}),A.formatDate=v({}),A.compareDates=x,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return k(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=A),A}()});function sh(t){var n,r,i,o,a;return{c(){n=g("div"),r=g("div"),i=m(t.label),o=v(),a=g("input"),w(r,"class","label svelte-1pf9x5k"),w(a,"class","control svelte-1pf9x5k"),w(n,"class","container svelte-1pf9x5k")},m(e,s){f(e,n,s),h(n,r),h(r,i),h(n,o),h(n,a),t.input_1_binding(a)},p(e,t){e.label&&b(i,t.label)},i:e,o:e,d(e){e&&d(n),t.input_1_binding(null)}}}function lh(e,t,n){let r,i,{value:o,label:a}=t;return j(()=>(n("fpInstance",i=ah(r,{})),i.config.onChange.push(e=>{e.length>0&&n("value",o=new Date(e[0]))}),i)),e.$set=(e=>{"value"in e&&n("value",o=e.value),"label"in e&&n("label",a=e.label)}),e.$$.update=((e={fpInstance:1,value:1})=>{(e.fpInstance||e.value)&&i&&i.setDate(o)}),{value:o,label:a,input:r,input_1_binding:function(e){S[e?"unshift":"push"](()=>{n("input",r=e)})}}}class ch extends G{constructor(e){super(),J(this,e,lh,sh,a,["value","label"])}}function uh(t){var n,r,i=t.clonedField.name;return{c(){n=g("div"),r=m(i),_(n,"font-weight","bold")},m(e,t){f(e,n,t),h(n,r)},p(e,t){e.clonedField&&i!==(i=t.clonedField.name)&&b(r,i)},i:e,o:e,d(e){e&&d(n)}}}function hh(e){var t,n;function r(n){e.textbox_text_binding.call(null,n),t=!0,P(()=>t=!1)}let i={label:"Field Name"};void 0!==e.clonedField.name&&(i.text=e.clonedField.name);var o=new Cu({props:i});return S.push(()=>Y(o,"text",r)),{c(){o.$$.fragment.c()},m(e,t){q(o,e,t),n=!0},p(e,n){var r={};!t&&e.clonedField&&(r.text=n.clonedField.name),o.$set(r)},i(e){n||(V(o.$$.fragment,e),n=!0)},o(e){W(o.$$.fragment,e),n=!1},d(e){Q(o,e)}}}function fh(e){var t,n,r,i;function o(n){e.numberbox0_value_binding_1.call(null,n),t=!0,P(()=>t=!1)}let a={label:"Min Length"};void 0!==e.clonedField.typeOptions.minLength&&(a.value=e.clonedField.typeOptions.minLength);var s=new qu({props:a});function l(t){e.numberbox1_value_binding_1.call(null,t),r=!0,P(()=>r=!1)}S.push(()=>Y(s,"value",o));let c={label:"Max Length"};void 0!==e.clonedField.typeOptions.maxLength&&(c.value=e.clonedField.typeOptions.maxLength);var u=new qu({props:c});return S.push(()=>Y(u,"value",l)),{c(){s.$$.fragment.c(),n=v(),u.$$.fragment.c()},m(e,t){q(s,e,t),f(e,n,t),q(u,e,t),i=!0},p(e,n){var i={};!t&&e.clonedField&&(i.value=n.clonedField.typeOptions.minLength),s.$set(i);var o={};!r&&e.clonedField&&(o.value=n.clonedField.typeOptions.maxLength),u.$set(o)},i(e){i||(V(s.$$.fragment,e),V(u.$$.fragment,e),i=!0)},o(e){W(s.$$.fragment,e),W(u.$$.fragment,e),i=!1},d(e){Q(s,e),e&&d(n),Q(u,e)}}}function dh(e){var t,n,r,i,o,a;function s(n){e.dropdown0_selected_binding.call(null,n),t=!0,P(()=>t=!1)}let l={label:"Lookup Index",options:e.possibleReferenceIndexes,valueMember:_h,textMember:$h};void 0!==e.clonedField.typeOptions.indexNodeKey&&(l.selected=e.clonedField.typeOptions.indexNodeKey);var c=new Bu({props:l});function u(t){e.dropdown1_selected_binding.call(null,t),r=!0,P(()=>r=!1)}S.push(()=>Y(c,"selected",s));let h={label:"Reverse Reference Index",options:e.possibleReverseReferenceIndexes,multiple:"true",valueMember:kh,textMember:Ah};void 0!==e.clonedField.typeOptions.reverseIndexNodeKeys&&(h.selected=e.clonedField.typeOptions.reverseIndexNodeKeys);var p=new Bu({props:h});function g(t){e.textbox_text_binding_2.call(null,t),o=!0,P(()=>o=!1)}S.push(()=>Y(p,"selected",u));let m={label:"Display Value"};void 0!==e.clonedField.typeOptions.displayValue&&(m.text=e.clonedField.typeOptions.displayValue);var y=new Cu({props:m});return S.push(()=>Y(y,"text",g)),{c(){c.$$.fragment.c(),n=v(),p.$$.fragment.c(),i=v(),y.$$.fragment.c()},m(e,t){q(c,e,t),f(e,n,t),q(p,e,t),f(e,i,t),q(y,e,t),a=!0},p(e,n){var i={};e.possibleReferenceIndexes&&(i.options=n.possibleReferenceIndexes),!t&&e.clonedField&&(i.selected=n.clonedField.typeOptions.indexNodeKey),c.$set(i);var a={};e.possibleReverseReferenceIndexes&&(a.options=n.possibleReverseReferenceIndexes),!r&&e.clonedField&&(a.selected=n.clonedField.typeOptions.reverseIndexNodeKeys),p.$set(a);var s={};!o&&e.clonedField&&(s.text=n.clonedField.typeOptions.displayValue),y.$set(s)},i(e){a||(V(c.$$.fragment,e),V(p.$$.fragment,e),V(y.$$.fragment,e),a=!0)},o(e){W(c.$$.fragment,e),W(p.$$.fragment,e),W(y.$$.fragment,e),a=!1},d(e){Q(c,e),e&&d(n),Q(p,e),e&&d(i),Q(y,e)}}}function ph(e){var t,n,r,i,o,a;function s(n){e.numberbox0_value_binding.call(null,n),t=!0,P(()=>t=!1)}let l={label:"Min Value"};void 0!==e.clonedField.typeOptions.minValue&&(l.value=e.clonedField.typeOptions.minValue);var c=new qu({props:l});function u(t){e.numberbox1_value_binding.call(null,t),r=!0,P(()=>r=!1)}S.push(()=>Y(c,"value",s));let h={label:"Max Value"};void 0!==e.clonedField.typeOptions.maxValue&&(h.value=e.clonedField.typeOptions.maxValue);var p=new qu({props:h});function g(t){e.numberbox2_value_binding.call(null,t),o=!0,P(()=>o=!1)}S.push(()=>Y(p,"value",u));let m={label:"Decimal Places"};void 0!==e.clonedField.typeOptions.decimalPlaces&&(m.value=e.clonedField.typeOptions.decimalPlaces);var y=new qu({props:m});return S.push(()=>Y(y,"value",g)),{c(){c.$$.fragment.c(),n=v(),p.$$.fragment.c(),i=v(),y.$$.fragment.c()},m(e,t){q(c,e,t),f(e,n,t),q(p,e,t),f(e,i,t),q(y,e,t),a=!0},p(e,n){var i={};!t&&e.clonedField&&(i.value=n.clonedField.typeOptions.minValue),c.$set(i);var a={};!r&&e.clonedField&&(a.value=n.clonedField.typeOptions.maxValue),p.$set(a);var s={};!o&&e.clonedField&&(s.value=n.clonedField.typeOptions.decimalPlaces),y.$set(s)},i(e){a||(V(c.$$.fragment,e),V(p.$$.fragment,e),V(y.$$.fragment,e),a=!0)},o(e){W(c.$$.fragment,e),W(p.$$.fragment,e),W(y.$$.fragment,e),a=!1},d(e){Q(c,e),e&&d(n),Q(p,e),e&&d(i),Q(y,e)}}}function gh(e){var t,n,r,i;function o(n){e.datepicker0_value_binding.call(null,n),t=!0,P(()=>t=!1)}let a={label:"Min Value"};void 0!==e.clonedField.typeOptions.minValue&&(a.value=e.clonedField.typeOptions.minValue);var s=new ch({props:a});function l(t){e.datepicker1_value_binding.call(null,t),r=!0,P(()=>r=!1)}S.push(()=>Y(s,"value",o));let c={label:"Max Value"};void 0!==e.clonedField.typeOptions.maxValue&&(c.value=e.clonedField.typeOptions.maxValue);var u=new ch({props:c});return S.push(()=>Y(u,"value",l)),{c(){s.$$.fragment.c(),n=v(),u.$$.fragment.c()},m(e,t){q(s,e,t),f(e,n,t),q(u,e,t),i=!0},p(e,n){var i={};!t&&e.clonedField&&(i.value=n.clonedField.typeOptions.minValue),s.$set(i);var o={};!r&&e.clonedField&&(o.value=n.clonedField.typeOptions.maxValue),u.$set(o)},i(e){i||(V(s.$$.fragment,e),V(u.$$.fragment,e),i=!0)},o(e){W(s.$$.fragment,e),W(u.$$.fragment,e),i=!1},d(e){Q(s,e),e&&d(n),Q(u,e)}}}function mh(e){var t,n;function r(n){e.checkbox_checked_binding_1.call(null,n),t=!0,P(()=>t=!1)}let i={label:"Allow Null"};void 0!==e.clonedField.typeOptions.allowNulls&&(i.checked=e.clonedField.typeOptions.allowNulls);var o=new oh({props:i});return S.push(()=>Y(o,"checked",r)),{c(){o.$$.fragment.c()},m(e,t){q(o,e,t),n=!0},p(e,n){var r={};!t&&e.clonedField&&(r.checked=n.clonedField.typeOptions.allowNulls),o.$set(r)},i(e){n||(V(o.$$.fragment,e),n=!0)},o(e){W(o.$$.fragment,e),n=!1},d(e){Q(o,e)}}}function vh(e){var t,n,r,i,o,a;function s(n){e.numberbox_value_binding.call(null,n),t=!0,P(()=>t=!1)}let l={label:"Max Length"};void 0!==e.clonedField.typeOptions.maxLength&&(l.value=e.clonedField.typeOptions.maxLength);var c=new qu({props:l});function u(t){e.valueslist_values_binding.call(null,t),r=!0,P(()=>r=!1)}S.push(()=>Y(c,"value",s));let h={label:"Values (options)"};void 0!==e.clonedField.typeOptions.values&&(h.values=e.clonedField.typeOptions.values);var p=new Ju({props:h});function g(t){e.checkbox_checked_binding.call(null,t),o=!0,P(()=>o=!1)}S.push(()=>Y(p,"values",u));let m={label:"Declared Values Only"};void 0!==e.clonedField.typeOptions.allowDeclaredValuesOnly&&(m.checked=e.clonedField.typeOptions.allowDeclaredValuesOnly);var y=new oh({props:m});return S.push(()=>Y(y,"checked",g)),{c(){c.$$.fragment.c(),n=v(),p.$$.fragment.c(),i=v(),y.$$.fragment.c()},m(e,t){q(c,e,t),f(e,n,t),q(p,e,t),f(e,i,t),q(y,e,t),a=!0},p(e,n){var i={};!t&&e.clonedField&&(i.value=n.clonedField.typeOptions.maxLength),c.$set(i);var a={};!r&&e.clonedField&&(a.values=n.clonedField.typeOptions.values),p.$set(a);var s={};!o&&e.clonedField&&(s.checked=n.clonedField.typeOptions.allowDeclaredValuesOnly),y.$set(s)},i(e){a||(V(c.$$.fragment,e),V(p.$$.fragment,e),V(y.$$.fragment,e),a=!0)},o(e){W(c.$$.fragment,e),W(p.$$.fragment,e),W(y.$$.fragment,e),a=!1},d(e){Q(c,e),e&&d(n),Q(p,e),e&&d(i),Q(y,e)}}}function yh(e){var t;return{c(){t=m("Save")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function xh(e){var t;return{c(){t=m("Cancel")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function wh(e){var t,n,r=new ee({props:{color:"primary",grouped:!0,$$slots:{default:[yh]},$$scope:{ctx:e}}});r.$on("click",e.save);var i=new ee({props:{color:"secondary",grouped:!0,$$slots:{default:[xh]},$$scope:{ctx:e}}});return i.$on("click",e.click_handler),{c(){r.$$.fragment.c(),t=v(),i.$$.fragment.c()},m(e,o){q(r,e,o),f(e,t,o),q(i,e,o),n=!0},p(e,t){var n={};e.$$scope&&(n.$$scope={changed:e,ctx:t}),r.$set(n);var o={};e.$$scope&&(o.$$scope={changed:e,ctx:t}),i.$set(o)},i(e){n||(V(r.$$.fragment,e),V(i.$$.fragment,e),n=!0)},o(e){W(r.$$.fragment,e),W(i.$$.fragment,e),n=!1},d(e){Q(r,e),e&&d(t),Q(i,e)}}}function bh(e){var t,n,r,i,o,a,s,l,c,u,p,m,y,x=new nh({props:{errors:e.errors}});function b(t){e.dropdown_selected_binding.call(null,t),r=!0,P(()=>r=!1)}let _={label:"Type",options:Fe(Sc)};void 0!==e.clonedField.type&&(_.selected=e.clonedField.type);var $=new Bu({props:_});S.push(()=>Y($,"selected",b)),$.$on("change",e.typeChanged);var k=[hh,uh],A=[];function E(e){return e.isNew?0:1}function j(t){e.textbox_text_binding_1.call(null,t),l=!0,P(()=>l=!1)}o=E(e),a=A[o]=k[o](e);let I={label:"Label"};void 0!==e.clonedField.label&&(I.text=e.clonedField.label);var T=new Cu({props:I});S.push(()=>Y(T,"text",j));var M=[vh,mh,gh,ph,dh,fh],C=[];function O(e){return"string"===e.clonedField.type?0:"bool"===e.clonedField.type?1:"datetime"===e.clonedField.type?2:"number"===e.clonedField.type?3:"reference"===e.clonedField.type?4:e.clonedField.type.startsWith("array")?5:-1}~(u=O(e))&&(p=C[u]=M[u](e));var D=new Wu({props:{style:"float: right;",$$slots:{default:[wh]},$$scope:{ctx:e}}});return{c(){t=g("div"),x.$$.fragment.c(),n=v(),$.$$.fragment.c(),i=v(),a.c(),s=v(),T.$$.fragment.c(),c=v(),p&&p.c(),m=v(),D.$$.fragment.c(),w(t,"class","root")},m(e,r){f(e,t,r),q(x,t,null),h(t,n),q($,t,null),h(t,i),A[o].m(t,null),h(t,s),q(T,t,null),h(t,c),~u&&C[u].m(t,null),h(t,m),q(D,t,null),y=!0},p(e,n){var i={};e.errors&&(i.errors=n.errors),x.$set(i);var c={};(e.keys||e.allTypes)&&(c.options=Fe(Sc)),!r&&e.clonedField&&(c.selected=n.clonedField.type),$.$set(c);var h=o;(o=E(n))===h?A[o].p(e,n):(B(),W(A[h],1,1,()=>{A[h]=null}),H(),(a=A[o])||(a=A[o]=k[o](n)).c(),V(a,1),a.m(t,s));var f={};!l&&e.clonedField&&(f.text=n.clonedField.label),T.$set(f);var d=u;(u=O(n))===d?~u&&C[u].p(e,n):(p&&(B(),W(C[d],1,1,()=>{C[d]=null}),H()),~u?((p=C[u])||(p=C[u]=M[u](n)).c(),V(p,1),p.m(t,m)):p=null);var g={};e.$$scope&&(g.$$scope={changed:e,ctx:n}),D.$set(g)},i(e){y||(V(x.$$.fragment,e),V($.$$.fragment,e),V(a),V(T.$$.fragment,e),V(p),V(D.$$.fragment,e),y=!0)},o(e){W(x.$$.fragment,e),W($.$$.fragment,e),W(a),W(T.$$.fragment,e),W(p),W(D.$$.fragment,e),y=!1},d(e){e&&d(t),Q(x),Q($),A[o].d(),Q(T),~u&&C[u].d(),Q(D)}}}function _h(e){return e.nodeKey()}function $h(e){return e.name}function kh(e){return e.nodeKey()}function Ah(e){return e.name}function Eh(e,t,n){let{field:r,allFields:i,onFinished:o=(()=>{})}=t,{database:a}=t,s=[],l=me(r);let c,u,h,f;return e.$set=(e=>{"field"in e&&n("field",r=e.field),"allFields"in e&&n("allFields",i=e.allFields),"onFinished"in e&&n("onFinished",o=e.onFinished),"database"in e&&n("database",a=e.database)}),e.$$.update=((e={field:1,database:1,clonedField:1,selectedReverseRefIndex:1})=>{e.field&&n("isNew",c=!!r&&0===r.name.length),e.database&&n("possibleReferenceIndexes",u=Oc(a.hierarchy,a.currentNode)),(e.clonedField||e.database)&&n("selectedReverseRefIndex",h=l.typeOptions.indexNodeKey?Ec(a.hierarchy,l.typeOptions.indexNodeKey):""),(e.selectedReverseRefIndex||e.database)&&n("possibleReverseReferenceIndexes",f=h?Cc(a.hierarchy,h):[])}),{field:r,allFields:i,onFinished:o,database:a,errors:s,clonedField:l,typeChanged:e=>{const t=l.typeOptions=Dc(e.detail);return n("clonedField",l),t},save:()=>{n("errors",s=Mc.field(i)(l)),s.length>0||(r.typeOptions=me(l.typeOptions),n("field",r),o(Ze(r)(l)))},isNew:c,possibleReferenceIndexes:u,possibleReverseReferenceIndexes:f,dropdown_selected_binding:function(e){l.type=e,n("clonedField",l)},textbox_text_binding:function(e){l.name=e,n("clonedField",l)},textbox_text_binding_1:function(e){l.label=e,n("clonedField",l)},numberbox_value_binding:function(e){l.typeOptions.maxLength=e,n("clonedField",l)},valueslist_values_binding:function(e){l.typeOptions.values=e,n("clonedField",l)},checkbox_checked_binding:function(e){l.typeOptions.allowDeclaredValuesOnly=e,n("clonedField",l)},checkbox_checked_binding_1:function(e){l.typeOptions.allowNulls=e,n("clonedField",l)},datepicker0_value_binding:function(e){l.typeOptions.minValue=e,n("clonedField",l)},datepicker1_value_binding:function(e){l.typeOptions.maxValue=e,n("clonedField",l)},numberbox0_value_binding:function(e){l.typeOptions.minValue=e,n("clonedField",l)},numberbox1_value_binding:function(e){l.typeOptions.maxValue=e,n("clonedField",l)},numberbox2_value_binding:function(e){l.typeOptions.decimalPlaces=e,n("clonedField",l)},dropdown0_selected_binding:function(e){l.typeOptions.indexNodeKey=e,n("clonedField",l)},dropdown1_selected_binding:function(e){l.typeOptions.reverseIndexNodeKeys=e,n("clonedField",l)},textbox_text_binding_2:function(e){l.typeOptions.displayValue=e,n("clonedField",l)},numberbox0_value_binding_1:function(e){l.typeOptions.minLength=e,n("clonedField",l)},numberbox1_value_binding_1:function(e){l.typeOptions.maxLength=e,n("clonedField",l)},click_handler:function(){return o(!1)}}}class jh extends G{constructor(e){super(),J(this,e,Eh,bh,a,["field","allFields","onFinished","database"])}}var Ih=ne(function(e,t){e.exports=function(){function e(e,t){return function(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}}var t=Object.prototype,n=t.hasOwnProperty;function r(e,t){return n.call(e,t)}var i={},o=/([a-z\d])([A-Z])/g;function a(e){return e in i||(i[e]=e.replace(o,"$1-$2").toLowerCase()),i[e]}var s=/-(\w)/g;function l(e){return e.replace(s,c)}function c(e,t){return t?t.toUpperCase():""}function u(e){return e.length?c(0,e.charAt(0))+e.slice(1):""}var h=String.prototype,f=h.startsWith||function(e){return 0===this.lastIndexOf(e,0)};function d(e,t){return f.call(e,t)}var p=h.endsWith||function(e){return this.substr(-e.length)===e};function g(e,t){return p.call(e,t)}var m=Array.prototype,v=function(e,t){return~this.indexOf(e,t)},y=h.includes||v,x=m.includes||v;function w(e,t){return e&&(D(e)?y:x).call(e,t)}var b=m.findIndex||function(e){for(var t=arguments,n=0;n<this.length;n++)if(e.call(t[1],this[n],n,this))return n;return-1};function _(e,t){return b.call(e,t)}var $=Array.isArray;function k(e){return"function"==typeof e}function A(e){return null!==e&&"object"==typeof e}function E(e){return A(e)&&Object.getPrototypeOf(e)===t}function j(e){return A(e)&&e===e.window}function I(e){return A(e)&&9===e.nodeType}function T(e){return A(e)&&!!e.jquery}function S(e){return e instanceof Node||A(e)&&e.nodeType>=1}var M=t.toString;function C(e){return M.call(e).match(/^\[object (NodeList|HTMLCollection)\]$/)}function O(e){return"boolean"==typeof e}function D(e){return"string"==typeof e}function N(e){return"number"==typeof e}function P(e){return N(e)||D(e)&&!isNaN(e-parseFloat(e))}function R(e){return!($(e)?e.length:A(e)&&Object.keys(e).length)}function L(e){return void 0===e}function F(e){return O(e)?e:"true"===e||"1"===e||""===e||"false"!==e&&"0"!==e&&e}function z(e){var t=Number(e);return!isNaN(t)&&t}function B(e){return parseFloat(e)||0}function H(e){return S(e)||j(e)||I(e)?e:C(e)||T(e)?e[0]:$(e)?H(e[0]):null}function V(e){return S(e)?[e]:C(e)?m.slice.call(e):$(e)?e.map(H).filter(Boolean):T(e)?e.toArray():[]}function W(e){return $(e)?e:D(e)?e.split(/,(?![^(]*\))/).map(function(e){return P(e)?z(e):F(e.trim())}):[e]}function U(e){return e?g(e,"ms")?B(e):1e3*B(e):0}function Y(e,t){return e===t||A(e)&&A(t)&&Object.keys(e).length===Object.keys(t).length&&K(e,function(e,n){return e===t[n]})}function q(e,t,n){return e.replace(new RegExp(t+"|"+n,"mg"),function(e){return e===t?n:t})}var Q=Object.assign||function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];e=Object(e);for(var i=0;i<t.length;i++){var o=t[i];if(null!==o)for(var a in o)r(o,a)&&(e[a]=o[a])}return e};function K(e,t){for(var n in e)if(!1===t(e[n],n))return!1;return!0}function J(e,t){return e.sort(function(e,n){var r=e[t];void 0===r&&(r=0);var i=n[t];return void 0===i&&(i=0),r>i?1:i>r?-1:0})}function G(e,t){var n=new Set;return e.filter(function(e){var r=e[t];return!n.has(r)&&(n.add(r)||!0)})}function Z(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),Math.min(Math.max(z(e)||0,t),n)}function X(){}function ee(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function te(e,t){return e.x<=t.right&&e.x>=t.left&&e.y<=t.bottom&&e.y>=t.top}var ne={ratio:function(e,t,n){var r,i="width"===t?"height":"width";return(r={})[i]=e[t]?Math.round(n*e[i]/e[t]):e[i],r[t]=n,r},contain:function(e,t){var n=this;return K(e=Q({},e),function(r,i){return e=e[i]>t[i]?n.ratio(e,i,t[i]):e}),e},cover:function(e,t){var n=this;return K(e=this.contain(e,t),function(r,i){return e=e[i]<t[i]?n.ratio(e,i,t[i]):e}),e}};function re(e,t,n){if(A(t))for(var r in t)re(e,r,t[r]);else{if(L(n))return(e=H(e))&&e.getAttribute(t);V(e).forEach(function(e){k(n)&&(n=n.call(e,re(e,t))),null===n?oe(e,t):e.setAttribute(t,n)})}}function ie(e,t){return V(e).some(function(e){return e.hasAttribute(t)})}function oe(e,t){e=V(e),t.split(" ").forEach(function(t){return e.forEach(function(e){return e.hasAttribute(t)&&e.removeAttribute(t)})})}function ae(e,t){for(var n=0,r=[t,"data-"+t];n<r.length;n++)if(ie(e,r[n]))return re(e,r[n])}function se(e,t){return H(e)||ue(e,ce(e,t))}function le(e,t){var n=V(e);return n.length&&n||he(e,ce(e,t))}function ce(e,t){return void 0===t&&(t=document),ge(e)||I(t)?t:t.ownerDocument}function ue(e,t){return H(fe(e,t,"querySelector"))}function he(e,t){return V(fe(e,t,"querySelectorAll"))}function fe(e,t,n){if(void 0===t&&(t=document),!e||!D(e))return null;var r;ge(e=e.replace(pe,"$1 *"))&&(r=[],e=function(e){return e.match(me).map(function(e){return e.replace(/,$/,"").trim()})}(e).map(function(e,n){var i=t;if("!"===e[0]){var o=e.substr(1).trim().split(" ");i=be(t.parentNode,o[0]),e=o.slice(1).join(" ").trim()}if("-"===e[0]){var a=e.substr(1).trim().split(" "),s=(i||t).previousElementSibling;i=xe(s,e.substr(1))?s:null,e=a.slice(1).join(" ")}return i?(i.id||(i.id="uk-"+Date.now()+n,r.push(function(){return oe(i,"id")})),"#"+ke(i.id)+" "+e):null}).filter(Boolean).join(","),t=document);try{return t[n](e)}catch(e){return null}finally{r&&r.forEach(function(e){return e()})}}var de=/(^|[^\\],)\s*[!>+~-]/,pe=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g;function ge(e){return D(e)&&e.match(de)}var me=/.*?[^\\](?:,|$)/g,ve=Element.prototype,ye=ve.matches||ve.webkitMatchesSelector||ve.msMatchesSelector;function xe(e,t){return V(e).some(function(e){return ye.call(e,t)})}var we=ve.closest||function(e){var t=this;do{if(xe(t,e))return t;t=t.parentNode}while(t&&1===t.nodeType)};function be(e,t){return d(t,">")&&(t=t.slice(1)),S(e)?e.parentNode&&we.call(e,t):V(e).map(function(e){return be(e,t)}).filter(Boolean)}function _e(e,t){for(var n=[],r=H(e).parentNode;r&&1===r.nodeType;)xe(r,t)&&n.push(r),r=r.parentNode;return n}var $e=window.CSS&&CSS.escape||function(e){return e.replace(/([^\x7f-\uFFFF\w-])/g,function(e){return"\\"+e})};function ke(e){return D(e)?$e.call(null,e):""}var Ae={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 Ee(e){return V(e).some(function(e){return Ae[e.tagName.toLowerCase()]})}function je(e){return V(e).some(function(e){return e.offsetWidth||e.offsetHeight||e.getClientRects().length})}var Ie="input,select,textarea,button";function Te(e){return V(e).some(function(e){return xe(e,Ie)})}function Se(e,t){return V(e).filter(function(e){return xe(e,t)})}function Me(e,t){return D(t)?xe(e,t)||be(e,t):e===t||(I(t)?t.documentElement:H(t)).contains(H(e))}function Ce(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Re(e),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4];return r=ze(r),o&&(a=function(e,t,n){var r=this;return function(i){e.forEach(function(e){var o=">"===t[0]?he(t,e).reverse().filter(function(e){return Me(i.target,e)})[0]:be(i.target,t);o&&(i.delegate=e,i.current=o,n.call(r,i))})}}(r,o,a)),a.length>1&&(a=function(e){return function(t){return $(t.detail)?e.apply(void 0,[t].concat(t.detail)):e(t)}}(a)),i.split(" ").forEach(function(e){return r.forEach(function(t){return t.addEventListener(e,a,s)})}),function(){return Oe(r,i,a,s)}}function Oe(e,t,n,r){void 0===r&&(r=!1),e=ze(e),t.split(" ").forEach(function(t){return e.forEach(function(e){return e.removeEventListener(t,n,r)})})}function De(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Re(e),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],c=Ce(r,i,o,function(e){var t=!l||l(e);t&&(c(),a(e,t))},s);return c}function Ne(e,t,n){return ze(e).reduce(function(e,r){return e&&r.dispatchEvent(Pe(t,!0,!0,n))},!0)}function Pe(e,t,n,r){if(void 0===t&&(t=!0),void 0===n&&(n=!1),D(e)){var i=document.createEvent("CustomEvent");i.initCustomEvent(e,t,n,r),e=i}return e}function Re(e){return k(e[2])&&e.splice(2,0,!1),e}function Le(e){return e&&"addEventListener"in e}function Fe(e){return Le(e)?e:H(e)}function ze(e){return $(e)?e.map(Fe).filter(Boolean):D(e)?he(e):Le(e)?[e]:V(e)}function Be(e){return"touch"===e.pointerType||e.touches}function He(e,t){void 0===t&&(t="client");var n=e.touches,r=e.changedTouches,i=n&&n[0]||r&&r[0]||e,o=i[t+"X"],a=i[t+"Y"];return{x:o,y:a}}var Ve="Promise"in window?window.Promise:qe,We=function(){var e=this;this.promise=new Ve(function(t,n){e.reject=n,e.resolve=t})},Ue=2,Ye="setImmediate"in window?setImmediate:setTimeout;function qe(e){this.state=Ue,this.value=void 0,this.deferred=[];var t=this;try{e(function(e){t.resolve(e)},function(e){t.reject(e)})}catch(e){t.reject(e)}}qe.reject=function(e){return new qe(function(t,n){n(e)})},qe.resolve=function(e){return new qe(function(t,n){t(e)})},qe.all=function(e){return new qe(function(t,n){var r=[],i=0;function o(n){return function(o){r[n]=o,(i+=1)===e.length&&t(r)}}0===e.length&&t(r);for(var a=0;a<e.length;a+=1)qe.resolve(e[a]).then(o(a),n)})},qe.race=function(e){return new qe(function(t,n){for(var r=0;r<e.length;r+=1)qe.resolve(e[r]).then(t,n)})};var Qe=qe.prototype;function Ke(e,t){return new Ve(function(n,r){var i=Q({data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:X,responseType:""},t);i.beforeSend(i);var o=i.xhr;for(var a in i)if(a in o)try{o[a]=i[a]}catch(e){}for(var s in o.open(i.method.toUpperCase(),e),i.headers)o.setRequestHeader(s,i.headers[s]);Ce(o,"load",function(){0===o.status||o.status>=200&&o.status<300||304===o.status?n(o):r(Q(Error(o.statusText),{xhr:o,status:o.status}))}),Ce(o,"error",function(){return r(Q(Error("Network Error"),{xhr:o}))}),Ce(o,"timeout",function(){return r(Q(Error("Network Timeout"),{xhr:o}))}),o.send(i.data)})}function Je(e,t,n){return new Ve(function(r,i){var o=new Image;o.onerror=i,o.onload=function(){return r(o)},n&&(o.sizes=n),t&&(o.srcset=t),o.src=e})}Qe.resolve=function(e){var t=this;if(t.state===Ue){if(e===t)throw new TypeError("Promise settled with itself.");var n=!1;try{var r=e&&e.then;if(null!==e&&A(e)&&k(r))return void r.call(e,function(e){n||t.resolve(e),n=!0},function(e){n||t.reject(e),n=!0})}catch(e){return void(n||t.reject(e))}t.state=0,t.value=e,t.notify()}},Qe.reject=function(e){if(this.state===Ue){if(e===this)throw new TypeError("Promise settled with itself.");this.state=1,this.value=e,this.notify()}},Qe.notify=function(){var e=this;Ye(function(){if(e.state!==Ue)for(;e.deferred.length;){var t=e.deferred.shift(),n=t[0],r=t[1],i=t[2],o=t[3];try{0===e.state?k(n)?i(n.call(void 0,e.value)):i(e.value):1===e.state&&(k(r)?i(r.call(void 0,e.value)):o(e.value))}catch(e){o(e)}}})},Qe.then=function(e,t){var n=this;return new qe(function(r,i){n.deferred.push([e,t,r,i]),n.notify()})},Qe.catch=function(e){return this.then(void 0,e)};var Ge=/msie|trident/i.test(window.navigator.userAgent),Ze="rtl"===re(document.documentElement,"dir"),Xe="ontouchstart"in window,et=window.PointerEvent,tt=Xe||window.DocumentTouch&&document instanceof DocumentTouch||navigator.maxTouchPoints,nt=et?"pointerdown":Xe?"touchstart":"mousedown",rt=et?"pointermove":Xe?"touchmove":"mousemove",it=et?"pointerup":Xe?"touchend":"mouseup",ot=et?"pointerenter":Xe?"":"mouseenter",at=et?"pointerleave":Xe?"":"mouseleave",st=et?"pointercancel":"touchcancel";function lt(e){if("loading"===document.readyState)var t=Ce(document,"DOMContentLoaded",function(){t(),e()});else e()}function ct(e,t){return t?V(e).indexOf(H(t)):V((e=H(e))&&e.parentNode.children).indexOf(e)}function ut(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=!1);var i=(t=V(t)).length;return e=P(e)?z(e):"next"===e?n+1:"previous"===e?n-1:ct(t,e),r?Z(e,0,i-1):(e%=i)<0?e+i:e}function ht(e){return(e=At(e)).innerHTML="",e}function ft(e,t){return e=At(e),L(t)?e.innerHTML:dt(e.hasChildNodes()?ht(e):e,t)}function dt(e,t){return e=At(e),mt(t,function(t){return e.appendChild(t)})}function pt(e,t){return e=At(e),mt(t,function(t){return e.parentNode.insertBefore(t,e)})}function gt(e,t){return e=At(e),mt(t,function(t){return e.nextSibling?pt(e.nextSibling,t):dt(e.parentNode,t)})}function mt(e,t){return(e=D(e)?$t(e):e)?"length"in e?V(e).map(t):t(e):null}function vt(e){V(e).map(function(e){return e.parentNode&&e.parentNode.removeChild(e)})}function yt(e,t){for(t=H(pt(e,t));t.firstChild;)t=t.firstChild;return dt(t,e),t}function xt(e,t){return V(V(e).map(function(e){return e.hasChildNodes?yt(V(e.childNodes),t):dt(e,t)}))}function wt(e){V(e).map(function(e){return e.parentNode}).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(e){pt(e,e.childNodes),vt(e)})}var bt=/^\s*<(\w+|!)[^>]*>/,_t=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function $t(e){var t=_t.exec(e);if(t)return document.createElement(t[1]);var n=document.createElement("div");return bt.test(e)?n.insertAdjacentHTML("beforeend",e.trim()):n.textContent=e,n.childNodes.length>1?V(n.childNodes):n.firstChild}function kt(e,t){if(e&&1===e.nodeType)for(t(e),e=e.firstElementChild;e;)kt(e,t),e=e.nextElementSibling}function At(e,t){return D(e)?jt(e)?H($t(e)):ue(e,t):H(e)}function Et(e,t){return D(e)?jt(e)?V($t(e)):he(e,t):V(e)}function jt(e){return"<"===e[0]||e.match(/^\s*</)}function It(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];Dt(e,t,"add")}function Tt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];Dt(e,t,"remove")}function St(e,t){re(e,"class",function(e){return(e||"").replace(new RegExp("\\b"+t+"\\b","g"),"")})}function Mt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];t[0]&&Tt(e,t[0]),t[1]&&It(e,t[1])}function Ct(e,t){return t&&V(e).some(function(e){return e.classList.contains(t.split(" ")[0])})}function Ot(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(t.length){var r=D((t=Nt(t))[t.length-1])?[]:t.pop();t=t.filter(Boolean),V(e).forEach(function(e){for(var n=e.classList,i=0;i<t.length;i++)Pt.Force?n.toggle.apply(n,[t[i]].concat(r)):n[(L(r)?!n.contains(t[i]):r)?"add":"remove"](t[i])})}}function Dt(e,t,n){(t=Nt(t).filter(Boolean)).length&&V(e).forEach(function(e){var r=e.classList;Pt.Multiple?r[n].apply(r,t):t.forEach(function(e){return r[n](e)})})}function Nt(e){return e.reduce(function(e,t){return e.concat.call(e,D(t)&&w(t," ")?t.trim().split(" "):t)},[])}var Pt={get Multiple(){return this.get("_multiple")},get Force(){return this.get("_force")},get:function(e){if(!r(this,e)){var t=document.createElement("_"),n=t.classList;n.add("a","b"),n.toggle("c",!1),this._multiple=n.contains("b"),this._force=!n.contains("c")}return this[e]}},Rt={"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 Lt(e,t,n){return V(e).map(function(e){if(D(t)){if(t=Wt(t),L(n))return zt(e,t);n||N(n)?e.style[t]=P(n)&&!Rt[t]?n+"px":n:e.style.removeProperty(t)}else{if($(t)){var r=Ft(e);return t.reduce(function(e,t){return e[t]=r[Wt(t)],e},{})}A(t)&&K(t,function(t,n){return Lt(e,n,t)})}return e})[0]}function Ft(e,t){return(e=H(e)).ownerDocument.defaultView.getComputedStyle(e,t)}function zt(e,t,n){return Ft(e,n)[t]}var Bt={};function Ht(e){var t=document.documentElement;if(!Ge)return Ft(t).getPropertyValue("--uk-"+e);if(!(e in Bt)){var n=dt(t,document.createElement("div"));It(n,"uk-"+e),Bt[e]=zt(n,"content",":before").replace(/^["'](.*)["']$/,"$1"),vt(n)}return Bt[e]}var Vt={};function Wt(e){var t=Vt[e];return t||(t=Vt[e]=function(e){e=a(e);var t=document.documentElement.style;if(e in t)return e;for(var n,r=Ut.length;r--;)if((n="-"+Ut[r]+"-"+e)in t)return n}(e)||e),t}var Ut=["webkit","moz","ms"];function Yt(e,t,n,r){return void 0===n&&(n=400),void 0===r&&(r="linear"),Ve.all(V(e).map(function(e){return new Ve(function(i,o){for(var a in t){var s=Lt(e,a);""===s&&Lt(e,a,s)}var l=setTimeout(function(){return Ne(e,"transitionend")},n);De(e,"transitionend transitioncanceled",function(t){var n=t.type;clearTimeout(l),Tt(e,"uk-transition"),Lt(e,{"transition-property":"","transition-duration":"","transition-timing-function":""}),"transitioncanceled"===n?o():i()},!1,function(t){var n=t.target;return e===n}),It(e,"uk-transition"),Lt(e,Q({"transition-property":Object.keys(t).map(Wt).join(","),"transition-duration":n+"ms","transition-timing-function":r},t))})}))}var qt={start:Yt,stop:function(e){return Ne(e,"transitionend"),Ve.resolve()},cancel:function(e){Ne(e,"transitioncanceled")},inProgress:function(e){return Ct(e,"uk-transition")}},Qt="uk-animation-",Kt="uk-cancel-animation";function Jt(e,t,n,r,i){var o=arguments;return void 0===n&&(n=200),Ve.all(V(e).map(function(e){return new Ve(function(a,s){if(Ct(e,Kt))requestAnimationFrame(function(){return Ve.resolve().then(function(){return Jt.apply(void 0,o).then(a,s)})});else{var l=t+" "+Qt+(i?"leave":"enter");d(t,Qt)&&(r&&(l+=" uk-transform-origin-"+r),i&&(l+=" "+Qt+"reverse")),c(),De(e,"animationend animationcancel",function(t){var n=t.type,r=!1;"animationcancel"===n?(s(),c()):(a(),Ve.resolve().then(function(){r=!0,c()})),requestAnimationFrame(function(){r||(It(e,Kt),requestAnimationFrame(function(){return Tt(e,Kt)}))})},!1,function(t){var n=t.target;return e===n}),Lt(e,"animationDuration",n+"ms"),It(e,l)}function c(){Lt(e,"animationDuration",""),St(e,Qt+"\\S*")}})}))}var Gt=new RegExp(Qt+"(enter|leave)"),Zt={in:function(e,t,n,r){return Jt(e,t,n,r,!1)},out:function(e,t,n,r){return Jt(e,t,n,r,!0)},inProgress:function(e){return Gt.test(re(e,"class"))},cancel:function(e){Ne(e,"animationcancel")}},Xt={width:["x","left","right"],height:["y","top","bottom"]};function en(e,t,n,r,i,o,a,s){n=un(n),r=un(r);var l={element:n,target:r};if(!e||!t)return l;var c=nn(e),u=nn(t),h=u;if(cn(h,n,c,-1),cn(h,r,u,1),i=hn(i,c.width,c.height),o=hn(o,u.width,u.height),i.x+=o.x,i.y+=o.y,h.left+=i.x,h.top+=i.y,a){var f=[nn(xn(e))];s&&f.unshift(nn(s)),K(Xt,function(e,t){var o=e[0],s=e[1],d=e[2];(!0===a||w(a,o))&&f.some(function(e){var a=n[o]===s?-c[t]:n[o]===d?c[t]:0,f=r[o]===s?u[t]:r[o]===d?-u[t]:0;if(h[s]<e[s]||h[s]+c[t]>e[d]){var p=c[t]/2,g="center"===r[o]?-u[t]/2:0;return"center"===n[o]&&(m(p,g)||m(-p,-g))||m(a,f)}function m(n,r){var a=h[s]+n+r-2*i[o];if(a>=e[s]&&a+c[t]<=e[d])return h[s]=a,["element","target"].forEach(function(e){l[e][o]=n?l[e][o]===Xt[t][1]?Xt[t][2]:Xt[t][1]:l[e][o]}),!0}})})}return tn(e,h),l}function tn(e,t){if(e=H(e),!t)return nn(e);var n=tn(e),r=Lt(e,"position");["left","top"].forEach(function(i){if(i in t){var o=Lt(e,i);Lt(e,i,t[i]-n[i]+B("absolute"===r&&"auto"===o?rn(e)[i]:o))}})}function nn(e){var t,n,r=xn(e=H(e)),i=r.pageYOffset,o=r.pageXOffset;if(j(e)){var a=e.innerHeight,s=e.innerWidth;return{top:i,left:o,height:a,width:s,bottom:i+a,right:o+s}}je(e)||"none"!==Lt(e,"display")||(t=re(e,"style"),n=re(e,"hidden"),re(e,{style:(t||"")+";display:block !important;",hidden:null}));var l=e.getBoundingClientRect();return L(t)||re(e,{style:t,hidden:n}),{height:l.height,width:l.width,top:l.top+i,left:l.left+o,bottom:l.bottom+i,right:l.right+o}}function rn(e){var t=(e=H(e)).offsetParent||function(e){return wn(e).documentElement}(e),n=tn(t),r=["top","left"].reduce(function(r,i){var o=u(i);return r[i]-=n[i]+B(Lt(e,"margin"+o))+B(Lt(t,"border"+o+"Width")),r},tn(e)),i=r.top,o=r.left;return{top:i,left:o}}var on=sn("height"),an=sn("width");function sn(e){var t=u(e);return function(n,r){if(n=H(n),L(r)){if(j(n))return n["inner"+t];if(I(n)){var i=n.documentElement;return Math.max(i["offset"+t],i["scroll"+t])}return(r="auto"===(r=Lt(n,e))?n["offset"+t]:B(r)||0)-ln(e,n)}Lt(n,e,r||0===r?+r+ln(e,n)+"px":"")}}function ln(e,t,n){return void 0===n&&(n="border-box"),Lt(t,"boxSizing")===n?Xt[e].slice(1).map(u).reduce(function(e,n){return e+B(Lt(t,"padding"+n))+B(Lt(t,"border"+n+"Width"))},0):0}function cn(e,t,n,r){K(Xt,function(i,o){var a=i[0],s=i[1],l=i[2];t[a]===l?e[s]+=n[o]*r:"center"===t[a]&&(e[s]+=n[o]*r/2)})}function un(e){var t=/left|center|right/,n=/top|center|bottom/;return 1===(e=(e||"").split(" ")).length&&(e=t.test(e[0])?e.concat(["center"]):n.test(e[0])?["center"].concat(e):["center","center"]),{x:t.test(e[0])?e[0]:"center",y:n.test(e[1])?e[1]:"center"}}function hn(e,t,n){var r=(e||"").split(" "),i=r[0],o=r[1];return{x:i?B(i)*(g(i,"%")?t/100:1):0,y:o?B(o)*(g(o,"%")?n/100:1):0}}function fn(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}}function dn(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),!je(e))return!1;var r=xn(e=H(e)),i=e.getBoundingClientRect(),o={top:-t,left:-n,bottom:t+on(r),right:n+an(r)};return ee(i,o)||te({x:i.left,y:i.top},o)}function pn(e,t){if(void 0===t&&(t=0),!je(e))return 0;var n=xn(e=H(e)),r=wn(e),i=e.offsetHeight+t,o=mn(e),a=o[0],s=on(n),l=s+Math.min(0,a-s),c=Math.max(0,s-(on(r)+t-(a+i)));return Z((l+n.pageYOffset-a)/((l+(i-(c<s?c:0)))/100)/100)}function gn(e,t){if(j(e=H(e))||I(e)){var n=xn(e),r=n.scrollTo,i=n.pageXOffset;r(i,t)}else e.scrollTop=t}function mn(e){var t=[0,0];do{if(t[0]+=e.offsetTop,t[1]+=e.offsetLeft,"fixed"===Lt(e,"position")){var n=xn(e);return t[0]+=n.pageYOffset,t[1]+=n.pageXOffset,t}}while(e=e.offsetParent);return t}function vn(e,t,n){return void 0===t&&(t="width"),void 0===n&&(n=window),P(e)?+e:g(e,"vh")?yn(on(xn(n)),e):g(e,"vw")?yn(an(xn(n)),e):g(e,"%")?yn(nn(n)[t],e):B(e)}function yn(e,t){return e*B(t)/100}function xn(e){return j(e)?e:wn(e).defaultView}function wn(e){return H(e).ownerDocument}var bn={reads:[],writes:[],read:function(e){return this.reads.push(e),$n(),e},write:function(e){return this.writes.push(e),$n(),e},clear:function(e){return An(this.reads,e)||An(this.writes,e)},flush:_n};function _n(){kn(bn.reads),kn(bn.writes.splice(0,bn.writes.length)),bn.scheduled=!1,(bn.reads.length||bn.writes.length)&&$n(!0)}function $n(e){void 0===e&&(e=!1),bn.scheduled||(bn.scheduled=!0,e?Ve.resolve().then(_n):requestAnimationFrame(_n))}function kn(e){for(var t;t=e.shift();)t()}function An(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}function En(){}function jn(e,t){return(t.y-e.y)/(t.x-e.x)}En.prototype={positions:[],position:null,init:function(){var e=this;this.positions=[],this.position=null;var t=!1;this.unbind=Ce(document,"mousemove",function(n){t||(setTimeout(function(){var r=Date.now(),i=e.positions,o=i.length;o&&r-e.positions[o-1].time>100&&e.positions.splice(0,o),e.positions.push({time:r,x:n.pageX,y:n.pageY}),e.positions.length>5&&e.positions.shift(),t=!1},5),t=!0)})},cancel:function(){this.unbind&&this.unbind()},movesTo:function(e){if(this.positions.length<2)return!1;var t=tn(e),n=this.positions[this.positions.length-1],r=this.positions,i=r[0];if(t.left<=n.x&&n.x<=t.right&&t.top<=n.y&&n.y<=t.bottom)return!1;var o=[[{x:t.left,y:t.top},{x:t.right,y:t.bottom}],[{x:t.right,y:t.top},{x:t.left,y:t.bottom}]];return t.right<=n.x||(t.left>=n.x?(o[0].reverse(),o[1].reverse()):t.bottom<=n.y?o[0].reverse():t.top>=n.y&&o[1].reverse()),!!o.reduce(function(e,t){return e+(jn(i,t[0])<jn(n,t[0])&&jn(i,t[1])>jn(n,t[1]))},0)}};var In={};function Tn(e,t,n){return In.computed(k(e)?e.call(n,n):e,k(t)?t.call(n,n):t)}function Sn(e,t){return e=e&&!$(e)?[e]:e,t?e?e.concat(t):$(t)?t:[t]:e}function Mn(e,t,n){var i={};if(k(t)&&(t=t.options),t.extends&&(e=Mn(e,t.extends,n)),t.mixins)for(var o=0,a=t.mixins.length;o<a;o++)e=Mn(e,t.mixins[o],n);for(var s in e)c(s);for(var l in t)r(e,l)||c(l);function c(r){i[r]=(In[r]||function(e,t){return L(t)?e:t})(e[r],t[r],n)}return i}function Cn(e,t){var n;void 0===t&&(t=[]);try{return e?d(e,"{")?JSON.parse(e):t.length&&!w(e,":")?((n={})[t[0]]=e,n):e.split(";").reduce(function(e,t){var n=t.split(/:(.*)/),r=n[0],i=n[1];return r&&!L(i)&&(e[r.trim()]=i.trim()),e},{}):{}}catch(e){return{}}}In.events=In.created=In.beforeConnect=In.connected=In.beforeDisconnect=In.disconnected=In.destroy=Sn,In.args=function(e,t){return!1!==t&&Sn(t||e)},In.update=function(e,t){return J(Sn(e,k(t)?{read:t}:t),"order")},In.props=function(e,t){return $(t)&&(t=t.reduce(function(e,t){return e[t]=String,e},{})),In.methods(e,t)},In.computed=In.methods=function(e,t){return t?e?Q({},e,t):t:e},In.data=function(e,t,n){return n?Tn(e,t,n):t?e?function(n){return Tn(e,t,n)}:t:e};var On=0,Dn=function(e){this.id=++On,this.el=H(e)};function Nn(e,t){try{e.contentWindow.postMessage(JSON.stringify(Q({event:"command"},t)),"*")}catch(e){}}Dn.prototype.isVideo=function(){return this.isYoutube()||this.isVimeo()||this.isHTML5()},Dn.prototype.isHTML5=function(){return"VIDEO"===this.el.tagName},Dn.prototype.isIFrame=function(){return"IFRAME"===this.el.tagName},Dn.prototype.isYoutube=function(){return this.isIFrame()&&!!this.el.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)},Dn.prototype.isVimeo=function(){return this.isIFrame()&&!!this.el.src.match(/vimeo\.com\/video\/.*/)},Dn.prototype.enableApi=function(){var e=this;if(this.ready)return this.ready;var t,n=this.isYoutube(),r=this.isVimeo();return n||r?this.ready=new Ve(function(i){var o;De(e.el,"load",function(){if(n){var r=function(){return Nn(e.el,{event:"listening",id:e.id})};t=setInterval(r,100),r()}}),(o=function(t){return n&&t.id===e.id&&"onReady"===t.event||r&&Number(t.player_id)===e.id},new Ve(function(e){De(window,"message",function(t,n){return e(n)},!1,function(e){var t=e.data;if(t&&D(t)){try{t=JSON.parse(t)}catch(e){return}return t&&o(t)}})})).then(function(){i(),t&&clearInterval(t)}),re(e.el,"src",e.el.src+(w(e.el.src,"?")?"&":"?")+(n?"enablejsapi=1":"api=1&player_id="+e.id))}):Ve.resolve()},Dn.prototype.play=function(){var e=this;if(this.isVideo())if(this.isIFrame())this.enableApi().then(function(){return Nn(e.el,{func:"playVideo",method:"play"})});else if(this.isHTML5())try{var t=this.el.play();t&&t.catch(X)}catch(e){}},Dn.prototype.pause=function(){var e=this;this.isVideo()&&(this.isIFrame()?this.enableApi().then(function(){return Nn(e.el,{func:"pauseVideo",method:"pause"})}):this.isHTML5()&&this.el.pause())},Dn.prototype.mute=function(){var e=this;this.isVideo()&&(this.isIFrame()?this.enableApi().then(function(){return Nn(e.el,{func:"mute",method:"setVolume",value:0})}):this.isHTML5()&&(this.el.muted=!0,re(this.el,"muted","")))};var Pn="IntersectionObserver"in window?window.IntersectionObserver:function(){function e(e,t){var n=this;void 0===t&&(t={});var r=t.rootMargin;void 0===r&&(r="0 0"),this.targets=[];var i,o=(r||"0 0").split(" ").map(B),a=o[0],s=o[1];this.offsetTop=a,this.offsetLeft=s,this.apply=function(){i||(i=requestAnimationFrame(function(){return setTimeout(function(){var t=n.takeRecords();t.length&&e(t,n),i=!1})}))},this.off=Ce(window,"scroll resize load",this.apply,{passive:!0,capture:!0})}return e.prototype.takeRecords=function(){var e=this;return this.targets.filter(function(t){var n=dn(t.target,e.offsetTop,e.offsetLeft);if(null===t.isIntersecting||n^t.isIntersecting)return t.isIntersecting=n,!0})},e.prototype.observe=function(e){this.targets.push({target:e,isIntersecting:null}),this.apply()},e.prototype.disconnect=function(){this.targets=[],this.off()},e}();function Rn(e){return!(!d(e,"uk-")&&!d(e,"data-uk-"))&&l(e.replace("data-uk-","").replace("uk-",""))}var Ln=function(e){this._init(e)};Ln.util=Object.freeze({ajax:Ke,getImage:Je,transition:Yt,Transition:qt,animate:Jt,Animation:Zt,attr:re,hasAttr:ie,removeAttr:oe,data:ae,addClass:It,removeClass:Tt,removeClasses:St,replaceClass:Mt,hasClass:Ct,toggleClass:Ot,positionAt:en,offset:tn,position:rn,height:on,width:an,boxModelAdjust:ln,flipPosition:fn,isInView:dn,scrolledOver:pn,scrollTop:gn,offsetPosition:mn,toPx:vn,ready:lt,index:ct,getIndex:ut,empty:ht,html:ft,prepend:function(e,t){return(e=At(e)).hasChildNodes()?mt(t,function(t){return e.insertBefore(t,e.firstChild)}):dt(e,t)},append:dt,before:pt,after:gt,remove:vt,wrapAll:yt,wrapInner:xt,unwrap:wt,fragment:$t,apply:kt,$:At,$$:Et,isIE:Ge,isRtl:Ze,hasTouch:tt,pointerDown:nt,pointerMove:rt,pointerUp:it,pointerEnter:ot,pointerLeave:at,pointerCancel:st,on:Ce,off:Oe,once:De,trigger:Ne,createEvent:Pe,toEventTargets:ze,isTouch:Be,getEventPos:He,fastdom:bn,isVoidElement:Ee,isVisible:je,selInput:Ie,isInput:Te,filter:Se,within:Me,bind:e,hasOwn:r,hyphenate:a,camelize:l,ucfirst:u,startsWith:d,endsWith:g,includes:w,findIndex:_,isArray:$,isFunction:k,isObject:A,isPlainObject:E,isWindow:j,isDocument:I,isJQuery:T,isNode:S,isNodeCollection:C,isBoolean:O,isString:D,isNumber:N,isNumeric:P,isEmpty:R,isUndefined:L,toBoolean:F,toNumber:z,toFloat:B,toNode:H,toNodes:V,toList:W,toMs:U,isEqual:Y,swap:q,assign:Q,each:K,sortBy:J,uniqueBy:G,clamp:Z,noop:X,intersectRect:ee,pointInRect:te,Dimensions:ne,MouseTracker:En,mergeOptions:Mn,parseOptions:Cn,Player:Dn,Promise:Ve,Deferred:We,IntersectionObserver:Pn,query:se,queryAll:le,find:ue,findAll:he,matches:xe,closest:be,parents:_e,escape:ke,css:Lt,getStyles:Ft,getStyle:zt,getCssVar:Ht,propName:Wt}),Ln.data="__uikit__",Ln.prefix="uk-",Ln.options={},function(e){var t,n=e.data;function r(e,t){if(e)for(var n in e)e[n]._connected&&e[n]._callUpdate(t)}e.use=function(e){if(!e.installed)return e.call(null,this),e.installed=!0,this},e.mixin=function(t,n){(n=(D(n)?e.component(n):n)||this).options=Mn(n.options,t)},e.extend=function(e){e=e||{};var t=function(e){this._init(e)};return(t.prototype=Object.create(this.prototype)).constructor=t,t.options=Mn(this.options,e),t.super=this,t.extend=this.extend,t},e.update=function(e,t){(function e(t,n){t&&t!==document.body&&t.parentNode&&(e(t.parentNode,n),n(t.parentNode))})(e=e?H(e):document.body,function(e){return r(e[n],t)}),kt(e,function(e){return r(e[n],t)})},Object.defineProperty(e,"container",{get:function(){return t||document.body},set:function(e){t=At(e)}})}(Ln),function(e){e.prototype._callHook=function(e){var t=this,n=this.$options[e];n&&n.forEach(function(e){return e.call(t)})},e.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())},e.prototype._callDisconnected=function(){this._connected&&(this._callHook("beforeDisconnect"),this._observer&&(this._observer.disconnect(),this._observer=null),this._unbindEvents(),this._callHook("disconnected"),this._connected=!1)},e.prototype._callUpdate=function(e){var t=this;void 0===e&&(e="update");var n=e.type||e;w(["update","resize"],n)&&this._callWatches();var r=this.$options.update,i=this._frames,o=i.reads,a=i.writes;r&&r.forEach(function(e,r){var i=e.read,s=e.write,l=e.events;("update"===n||w(l,n))&&(i&&!w(bn.reads,o[r])&&(o[r]=bn.read(function(){var e=t._connected&&i.call(t,t._data,n);!1===e&&s?bn.clear(a[r]):E(e)&&Q(t._data,e)})),s&&!w(bn.writes,a[r])&&(a[r]=bn.write(function(){return t._connected&&s.call(t,t._data,n)})))})}}(Ln),function(t){var n=0;function i(e,t){var n={},r=e.args;void 0===r&&(r=[]);var i=e.props;void 0===i&&(i={});var o=e.el;if(!i)return n;for(var s in i){var c=a(s),h=ae(o,c);if(!L(h)){if(h=i[s]===Boolean&&""===h||u(i[s],h),"target"===c&&(!h||d(h,"_")))continue;n[s]=h}}var f=Cn(ae(o,t),r);for(var p in f){var g=l(p);void 0!==i[g]&&(n[g]=u(i[g],f[p]))}return n}function o(e,t,n){Object.defineProperty(e,t,{enumerable:!0,get:function(){var i=e._computeds,o=e.$props,a=e.$el;return r(i,t)||(i[t]=(n.get||n).call(e,o,a)),i[t]},set:function(r){var i=e._computeds;i[t]=n.set?n.set.call(e,r):r,L(i[t])&&delete i[t]}})}function s(t,n,r){E(n)||(n={name:r,handler:n});var i,o=n.name,a=n.el,l=n.handler,c=n.capture,u=n.passive,h=n.delegate,f=n.filter,d=n.self;a=k(a)?a.call(t):a||t.$el,$(a)?a.forEach(function(e){return s(t,Q({},n,{el:e}),r)}):!a||f&&!f.call(t)||(i=D(l)?t[l]:e(l,t),l=function(e){return $(e.detail)?i.apply(void 0,[e].concat(e.detail)):i(e)},d&&(l=function(e){return function(t){if(t.target===t.currentTarget||t.target===t.current)return e.call(null,t)}}(l)),t._events.push(Ce(a,o,h?D(h)?h:h.call(t):null,l,O(u)?{passive:u,capture:c}:c)))}function c(e,t){return e.every(function(e){return!e||!r(e,t)})}function u(e,t){return e===Boolean?F(t):e===Number?z(t):"list"===e?W(t):e?e(t):t}t.prototype._init=function(e){(e=e||{}).data=function(e,t){var n=e.data,r=(e.el,t.args),i=t.props;if(void 0===i&&(i={}),n=$(n)?R(r)?void 0:n.slice(0,r.length).reduce(function(e,t,n){return E(t)?Q(e,t):e[r[n]]=t,e},{}):n)for(var o in n)L(n[o])?delete n[o]:n[o]=i[o]?u(i[o],n[o]):n[o];return n}(e,this.constructor.options),this.$options=Mn(this.constructor.options,e,this),this.$el=null,this.$props={},this._frames={reads:{},writes:{}},this._events=[],this._uid=n++,this._initData(),this._initMethods(),this._initComputeds(),this._callHook("created"),e.el&&this.$mount(e.el)},t.prototype._initData=function(){var e=this.$options,t=e.data;for(var n in void 0===t&&(t={}),t)this.$props[n]=this[n]=t[n]},t.prototype._initMethods=function(){var t=this.$options,n=t.methods;if(n)for(var r in n)this[r]=e(n[r],this)},t.prototype._initComputeds=function(){var e=this.$options,t=e.computed;if(this._computeds={},t)for(var n in t)o(this,n,t[n])},t.prototype._callWatches=function(){var e=this.$options.computed,t=this._computeds;for(var n in t){var r=t[n];delete t[n],e[n].watch&&!Y(r,this[n])&&e[n].watch.call(this,this[n],r)}},t.prototype._initProps=function(e){var t;for(t in e=e||i(this.$options,this.$name))L(e[t])||(this.$props[t]=e[t]);var n=[this.$options.computed,this.$options.methods];for(t in this.$props)t in e&&c(n,t)&&(this[t]=this.$props[t])},t.prototype._initEvents=function(){var e=this,t=this.$options,n=t.events;n&&n.forEach(function(t){if(r(t,"handler"))s(e,t);else for(var n in t)s(e,t[n],n)})},t.prototype._unbindEvents=function(){this._events.forEach(function(e){return e()}),this._events=[]},t.prototype._initObserver=function(){var e=this,t=this.$options,n=t.attrs,r=t.props,o=t.el;if(!this._observer&&r&&!1!==n){n=$(n)?n:Object.keys(r),this._observer=new MutationObserver(function(){var t=i(e.$options,e.$name);n.some(function(n){return!L(t[n])&&t[n]!==e.$props[n]})&&e.$reset()});var s=n.map(function(e){return a(e)}).concat(this.$name);this._observer.observe(o,{attributes:!0,attributeFilter:s.concat(s.map(function(e){return"data-"+e}))})}}}(Ln),function(e){var t=e.data,n={};e.component=function(t,r){if(!r)return E(n[t])&&(n[t]=e.extend(n[t])),n[t];e[t]=function(n,r){for(var i=arguments.length,o=Array(i);i--;)o[i]=arguments[i];var a=e.component(t);return E(n)?new a({data:n}):a.options.functional?new a({data:[].concat(o)}):n&&n.nodeType?s(n):Et(n).map(s)[0];function s(n){var i=e.getComponent(n,t);if(i){if(!r)return i;i.$destroy()}return new a({el:n,data:r})}};var i=E(r)?Q({},r):r.options;if(i.name=t,i.install&&i.install(e,i,t),e._initialized&&!i.functional){var o=a(t);bn.read(function(){return e[t]("[uk-"+o+"],[data-uk-"+o+"]")})}return n[t]=E(r)?i:r},e.getComponents=function(e){return e&&e[t]||{}},e.getComponent=function(t,n){return e.getComponents(t)[n]},e.connect=function(r){if(r[t])for(var i in r[t])r[t][i]._callConnected();for(var o=0;o<r.attributes.length;o++){var a=Rn(r.attributes[o].name);a&&a in n&&e[a](r)}},e.disconnect=function(e){for(var n in e[t])e[t][n]._callDisconnected()}}(Ln),function(e){var t=e.data;e.prototype.$mount=function(e){var n=this.$options,r=n.name;e[t]||(e[t]={}),e[t][r]||(e[t][r]=this,this.$el=this.$options.el=this.$options.el||e,Me(e,document)&&this._callConnected())},e.prototype.$emit=function(e){this._callUpdate(e)},e.prototype.$reset=function(){this._callDisconnected(),this._callConnected()},e.prototype.$destroy=function(e){void 0===e&&(e=!1);var n=this.$options,r=n.el,i=n.name;r&&this._callDisconnected(),this._callHook("destroy"),r&&r[t]&&(delete r[t][i],R(r[t])||delete r[t],e&&vt(this.$el))},e.prototype.$create=function(t,n,r){return e[t](n,r)},e.prototype.$update=e.update,e.prototype.$getComponent=e.getComponent;var n={};Object.defineProperties(e.prototype,{$container:Object.getOwnPropertyDescriptor(e,"container"),$name:{get:function(){var t=this.$options,r=t.name;return n[r]||(n[r]=e.prefix+a(r)),n[r]}}})}(Ln);var Fn={connected:function(){!Ct(this.$el,this.$name)&&It(this.$el,this.$name)}},zn={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:function(e){var t=e.animation;return!!t[0]},hasTransition:function(e){var t=e.animation;return this.hasAnimation&&!0===t[0]}},methods:{toggleElement:function(e,t,n){var r=this;return new Ve(function(i){e=V(e);var o,a=function(e){return Ve.all(e.map(function(e){return r._toggleElement(e,t,n)}))},s=e.filter(function(e){return r.isToggled(e)}),l=e.filter(function(e){return!w(s,e)});if(r.queued&&L(n)&&L(t)&&r.hasAnimation&&!(e.length<2)){var c=document.body,u=c.scrollTop,h=s[0],f=Zt.inProgress(h)&&Ct(h,"uk-animation-leave")||qt.inProgress(h)&&"0px"===h.style.height;o=a(s),f||(o=o.then(function(){var e=a(l);return c.scrollTop=u,e}))}else o=a(l.concat(s));o.then(i,X)})},toggleNow:function(e,t){var n=this;return new Ve(function(r){return Ve.all(V(e).map(function(e){return n._toggleElement(e,t,!1)})).then(r,X)})},isToggled:function(e){var t=V(e||this.$el);return this.cls?Ct(t,this.cls.split(" ")[0]):!ie(t,"hidden")},updateAria:function(e){!1===this.cls&&re(e,"aria-hidden",!this.isToggled(e))},_toggleElement:function(e,t,n){var r=this;if(t=O(t)?t:Zt.inProgress(e)?Ct(e,"uk-animation-leave"):qt.inProgress(e)?"0px"===e.style.height:!this.isToggled(e),!Ne(e,"before"+(t?"show":"hide"),[this]))return Ve.reject();var i,o,a,s,l,c,u,h=(k(n)?n:!1!==n&&this.hasAnimation?this.hasTransition?(o=(i=this).isToggled,a=i.duration,s=i.initProps,l=i.hideProps,c=i.transition,u=i._toggle,function(e,t){var n=qt.inProgress(e),r=e.hasChildNodes?B(Lt(e.firstElementChild,"marginTop"))+B(Lt(e.lastElementChild,"marginBottom")):0,i=je(e)?on(e)+(n?0:r):0;qt.cancel(e),o(e)||u(e,!0),on(e,""),bn.flush();var h=on(e)+(n?0:r);return on(e,i),(t?qt.start(e,Q({},s,{overflow:"hidden",height:h}),Math.round(a*(1-i/h)),c):qt.start(e,l,Math.round(a*(i/h)),c).then(function(){return u(e,!1)})).then(function(){return Lt(e,s)})}):function(e){var t=e.animation,n=e.duration,r=e.origin,i=e._toggle;return function(e,o){return Zt.cancel(e),o?(i(e,!0),Zt.in(e,t[0],n,r)):Zt.out(e,t[1]||t[0],n,r).then(function(){return i(e,!1)})}}(this):this._toggle)(e,t);Ne(e,t?"show":"hide",[this]);var f=function(){Ne(e,t?"shown":"hidden",[r]),r.$update(e)};return h?h.then(f):Ve.resolve(f())},_toggle:function(e,t){var n;e&&(t=Boolean(t),this.cls?(n=w(this.cls," ")||t!==Ct(e,this.cls))&&Ot(e,this.cls,w(this.cls," ")?void 0:t):(n=t===ie(e,"hidden"))&&re(e,"hidden",t?null:""),Et("[autofocus]",e).some(function(e){return je(e)?e.focus()||!0:e.blur()}),this.updateAria(e),n&&this.$update(e))}}},Bn={mixins:[Fn,zn],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:"uk-open",toggle:"> .uk-accordion-title",content:"> .uk-accordion-content",transition:"ease"},computed:{items:function(e,t){var n=e.targets;return Et(n,t)}},events:[{name:"click",delegate:function(){return this.targets+" "+this.$props.toggle},handler:function(e){e.preventDefault(),this.toggle(ct(Et(this.targets+" "+this.$props.toggle,this.$el),e.current))}}],connected:function(){if(!1!==this.active){var e=this.items[Number(this.active)];e&&!Ct(e,this.clsOpen)&&this.toggle(e,!1)}},update:function(){var e=this;this.items.forEach(function(t){return e._toggle(At(e.content,t),Ct(t,e.clsOpen))});var t=!this.collapsible&&!Ct(this.items,this.clsOpen)&&this.items[0];t&&this.toggle(t,!1)},methods:{toggle:function(e,t){var n=this,r=ut(e,this.items),i=Se(this.items,"."+this.clsOpen);(e=this.items[r])&&[e].concat(!this.multiple&&!w(i,e)&&i||[]).forEach(function(r){var o=r===e,a=o&&!Ct(r,n.clsOpen);if(a||!o||n.collapsible||!(i.length<2)){Ot(r,n.clsOpen,a);var s=r._wrapper?r._wrapper.firstElementChild:At(n.content,r);r._wrapper||(r._wrapper=yt(s,"<div>"),re(r._wrapper,"hidden",a?"":null)),n._toggle(s,!0),n.toggleElement(r._wrapper,a,t).then(function(){Ct(r,n.clsOpen)===a&&(a||n._toggle(s,!1),r._wrapper=null,wt(s))})}})}}},Hn={mixins:[Fn,zn],args:"animation",props:{close:String},data:{animation:[!0],selClose:".uk-alert-close",duration:150,hideProps:Q({opacity:0},zn.data.hideProps)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(e){e.preventDefault(),this.close()}}],methods:{close:function(){var e=this;this.toggleElement(this.$el).then(function(){return e.$destroy(!0)})}}};function Vn(e){lt(function(){var t;e.update(),Ce(window,"load resize",function(){return e.update(null,"resize")}),Ce(document,"loadedmetadata load",function(t){var n=t.target;return e.update(n,"resize")},!0),Ce(window,"scroll",function(n){if(!t){t=!0,bn.write(function(){return t=!1});var r=n.target;e.update(1!==r.nodeType?document.body:r,n.type)}},{passive:!0,capture:!0});var n,r=0;Ce(document,"animationstart",function(e){var t=e.target;(Lt(t,"animationName")||"").match(/^uk-.*(left|right)/)&&(r++,Lt(document.body,"overflowX","hidden"),setTimeout(function(){--r||Lt(document.body,"overflowX","")},U(Lt(t,"animationDuration"))+100))},!0),Ce(document,nt,function(e){if(n&&n(),Be(e)){var t=He(e),r="tagName"in e.target?e.target:e.target.parentNode;n=De(document,it,function(e){var n=He(e),i=n.x,o=n.y;(r&&i&&Math.abs(t.x-i)>100||o&&Math.abs(t.y-o)>100)&&setTimeout(function(){var e,n,a,s;Ne(r,"swipe"),Ne(r,"swipe"+(e=t.x,n=t.y,a=i,s=o,Math.abs(e-a)>=Math.abs(n-s)?e-a>0?"Left":"Right":n-s>0?"Up":"Down"))})})}},{passive:!0})})}var Wn,Un,Yn={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},computed:{inView:function(e){var t=e.autoplay;return"inview"===t}},connected:function(){this.inView&&!ie(this.$el,"preload")&&(this.$el.preload="none"),this.player=new Dn(this.$el),this.automute&&this.player.mute()},update:{read:function(){return!!this.player&&{visible:je(this.$el)&&"hidden"!==Lt(this.$el,"visibility"),inView:this.inView&&dn(this.$el)}},write:function(e){var t=e.visible,n=e.inView;!t||this.inView&&!n?this.player.pause():(!0===this.autoplay||this.inView&&n)&&this.player.play()},events:["resize","scroll"]}},qn={mixins:[Fn,Yn],props:{width:Number,height:Number},data:{automute:!0},update:{read:function(){var e=this.$el;if(!je(e))return!1;var t=e.parentNode,n=t.offsetHeight,r=t.offsetWidth;return{height:n,width:r}},write:function(e){var t=e.height,n=e.width,r=this.$el,i=this.width||r.naturalWidth||r.videoWidth||r.clientWidth,o=this.height||r.naturalHeight||r.videoHeight||r.clientHeight;i&&o&&Lt(r,ne.cover({width:i,height:o},{width:n+(n%2?1:0),height:t+(t%2?1:0)}))},events:["resize"]}},Qn={props:{pos:String,offset:null,flip:Boolean,clsPos:String},data:{pos:"bottom-"+(Ze?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(e){var t=e.pos;return(t+(w(t,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(e,t,n){var r;St(e,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?"),Lt(e,{top:"",left:""});var i=this.offset,o=this.getAxis();P(i)||(r=At(i),i=r?tn(r)["x"===o?"left":"top"]-tn(t)["x"===o?"right":"bottom"]:0);var a=en(e,t,"x"===o?fn(this.dir)+" "+this.align:this.align+" "+fn(this.dir),"x"===o?this.dir+" "+this.align:this.align+" "+this.dir,"x"===o?""+("left"===this.dir?-i:i):" "+("top"===this.dir?-i:i),null,this.flip,n).target,s=a.x,l=a.y;this.dir="x"===o?s:l,this.align="x"===o?l:s,Ot(e,this.clsPos+"-"+this.dir+"-"+this.align,!1===this.offset)},getAxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}},Kn={mixins:[Qn,zn],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryAlign:Boolean,delayShow:Number,delayHide:Number,clsDrop:String},data:{mode:["click","hover"],toggle:"- *",boundary:window,boundaryAlign:!1,delayShow:0,delayHide:800,clsDrop:!1,hoverIdle:200,animation:["uk-animation-fade"],cls:"uk-open"},computed:{boundary:function(e,t){var n=e.boundary;return se(n,t)},clsDrop:function(e){var t=e.clsDrop;return t||"uk-"+this.$options.name},clsPos:function(){return this.clsDrop}},created:function(){this.tracker=new En},connected:function(){It(this.$el,this.clsDrop);var e=this.$props,t=e.toggle;this.toggle=t&&this.$create("toggle",se(t,this.$el),{target:this.$el,mode:this.mode}),!this.toggle&&Ne(this.$el,"updatearia")},events:[{name:"click",delegate:function(){return"."+this.clsDrop+"-close"},handler:function(e){e.preventDefault(),this.hide(!1)}},{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(e){var t=e.target.hash;t||e.preventDefault(),t&&Me(t,this.$el)||this.hide(!1)}},{name:"beforescroll",handler:function(){this.hide(!1)}},{name:"toggle",self:!0,handler:function(e,t){e.preventDefault(),this.isToggled()?this.hide(!1):this.show(t,!1)}},{name:ot,filter:function(){return w(this.mode,"hover")},handler:function(e){Be(e)||(Wn&&Wn!==this&&Wn.toggle&&w(Wn.toggle.mode,"hover")&&!Me(e.target,Wn.toggle.$el)&&!te({x:e.pageX,y:e.pageY},tn(Wn.$el))&&Wn.hide(!1),e.preventDefault(),this.show(this.toggle))}},{name:"toggleshow",handler:function(e,t){t&&!w(t.target,this.$el)||(e.preventDefault(),this.show(t||this.toggle))}},{name:"togglehide "+at,handler:function(e,t){Be(e)||t&&!w(t.target,this.$el)||(e.preventDefault(),this.toggle&&w(this.toggle.mode,"hover")&&this.hide())}},{name:"beforeshow",self:!0,handler:function(){this.clearTimers(),Zt.cancel(this.$el),this.position()}},{name:"show",self:!0,handler:function(){this.tracker.init(),Ne(this.$el,"updatearia"),Un||(Un=!0,Ce(document,it,function(e){var t,n=e.target,r=e.defaultPrevented;if(!r)for(;Wn&&Wn!==t&&!Me(n,Wn.$el)&&(!Wn.toggle||!Me(n,Wn.toggle.$el));)t=Wn,Wn.hide(!1)}))}},{name:"beforehide",self:!0,handler:function(){this.clearTimers()}},{name:"hide",handler:function(e){var t=e.target;this.$el===t?(Wn=this.isActive()?null:Wn,Ne(this.$el,"updatearia"),this.tracker.cancel()):Wn=null===Wn&&Me(t,this.$el)&&this.isToggled()?this:Wn}},{name:"updatearia",self:!0,handler:function(e,t){e.preventDefault(),this.updateAria(this.$el),(t||this.toggle)&&(re((t||this.toggle).$el,"aria-expanded",this.isToggled()?"true":"false"),Ot(this.toggle.$el,this.cls,this.isToggled()))}}],update:{write:function(){this.isToggled()&&!Zt.inProgress(this.$el)&&this.position()},events:["resize"]},methods:{show:function(e,t){var n=this;void 0===t&&(t=!0);var r=function(){return!n.isToggled()&&n.toggleElement(n.$el,!0)},i=function(){if(n.toggle=e||n.toggle,n.clearTimers(),!n.isActive())if(t&&Wn&&Wn!==n&&Wn.isDelaying)n.showTimer=setTimeout(n.show,10);else{if(n.isParentOf(Wn)){if(!Wn.hideTimer)return;Wn.hide(!1)}else if(Wn&&n.isChildOf(Wn))Wn.clearTimers();else if(Wn&&!n.isChildOf(Wn)&&!n.isParentOf(Wn))for(var i;Wn&&Wn!==i&&!n.isChildOf(Wn);)i=Wn,Wn.hide(!1);t&&n.delayShow?n.showTimer=setTimeout(r,n.delayShow):r(),Wn=n}};e&&this.toggle&&e.$el!==this.toggle.$el?(De(this.$el,"hide",i),this.hide(!1)):i()},hide:function(e){var t=this;void 0===e&&(e=!0);var n=function(){return t.toggleNow(t.$el,!1)};this.clearTimers(),this.isDelaying=this.tracker.movesTo(this.$el),e&&this.isDelaying?this.hideTimer=setTimeout(this.hide,this.hoverIdle):e&&this.delayHide?this.hideTimer=setTimeout(n,this.delayHide):n()},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive:function(){return Wn===this},isChildOf:function(e){return e&&e!==this&&Me(this.$el,e.$el)},isParentOf:function(e){return e&&e!==this&&Me(e.$el,this.$el)},position:function(){St(this.$el,this.clsDrop+"-(stack|boundary)"),Lt(this.$el,{top:"",left:"",display:"block"}),Ot(this.$el,this.clsDrop+"-boundary",this.boundaryAlign);var e=tn(this.boundary),t=this.boundaryAlign?e:tn(this.toggle.$el);if("justify"===this.align){var n="y"===this.getAxis()?"width":"height";Lt(this.$el,n,t[n])}else this.$el.offsetWidth>Math.max(e.right-t.left,t.right-e.left)&&It(this.$el,this.clsDrop+"-stack");this.positionAt(this.$el,this.boundaryAlign?this.boundary:this.toggle.$el,this.boundary),Lt(this.$el,"display","")}}},Jn={extends:Kn},Gn={mixins:[Fn],args:"target",props:{target:Boolean},data:{target:!1},computed:{input:function(e,t){return At(Ie,t)},state:function(){return this.input.nextElementSibling},target:function(e,t){var n=e.target;return n&&(!0===n&&this.input.parentNode===t&&this.input.nextElementSibling||se(n,t))}},update:function(){var e=this.target,t=this.input;if(e){var n,r=Te(e)?"value":"textContent",i=e[r],o=t.files&&t.files[0]?t.files[0].name:xe(t,"select")&&(n=Et("option",t).filter(function(e){return e.selected})[0])?n.textContent:t.value;i!==o&&(e[r]=o)}},events:[{name:"change",handler:function(){this.$emit()}},{name:"reset",el:function(){return be(this.$el,"form")},handler:function(){this.$emit()}}]},Zn={update:{read:function(e){var t=dn(this.$el);if(!t||e.isInView===t)return!1;e.isInView=t},write:function(){this.$el.src=this.$el.src},events:["scroll","resize"]}},Xn={props:{margin:String,firstColumn:Boolean},data:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},update:{read:function(e){var t=this.$el.children;if(!t.length||!je(this.$el))return e.rows=[[]];e.rows=er(t),e.stacks=!e.rows.some(function(e){return e.length>1})},write:function(e){var t=this,n=e.rows;n.forEach(function(e,n){return e.forEach(function(e,r){Ot(e,t.margin,0!==n),Ot(e,t.firstColumn,0===r)})})},events:["resize"]}};function er(e){for(var t=[[]],n=0;n<e.length;n++){var r=e[n],i=tr(r);if(i.height)for(var o=t.length-1;o>=0;o--){var a=t[o];if(!a[0]){a.push(r);break}var s=void 0;if(a[0].offsetParent===r.offsetParent?s=tr(a[0]):(i=tr(r,!0),s=tr(a[0],!0)),i.top>=s.bottom-1){t.push([r]);break}if(i.bottom>s.top){if(i.left<s.left&&!Ze){a.unshift(r);break}a.push(r);break}if(0===o){t.unshift([r]);break}}}return t}function tr(e,t){var n;void 0===t&&(t=!1);var r=e.offsetTop,i=e.offsetLeft,o=e.offsetHeight;return t&&(n=mn(e),r=n[0],i=n[1]),{top:r,left:i,height:o,bottom:r+o}}var nr={extends:Xn,mixins:[Fn],name:"grid",props:{masonry:Boolean,parallax:Number},data:{margin:"uk-grid-margin",clsStack:"uk-grid-stack",masonry:!1,parallax:0},computed:{length:function(e,t){return t.children.length},parallax:function(e){var t=e.parallax;return t&&this.length?Math.abs(t):""}},connected:function(){this.masonry&&It(this.$el,"uk-flex-top uk-flex-wrap-top")},update:[{read:function(e){var t=e.rows;(this.masonry||this.parallax)&&(t=t.map(function(e){return J(e,"offsetLeft")}),Ze&&t.map(function(e){return e.reverse()}));var n,r,i,o,a=t.some(function(e){return e.some(qt.inProgress)}),s=!1,l="";if(this.masonry&&this.length){var c=0;s=t.reduce(function(e,n,r){return e[r]=n.map(function(n,i){return 0===r?0:B(e[r-1][i])+(c-B(t[r-1][i]&&t[r-1][i].offsetHeight))}),c=n.reduce(function(e,t){return Math.max(e,t.offsetHeight)},0),e},[]),l=function(e){return Math.max.apply(Math,e.reduce(function(e,t){return t.forEach(function(t,n){return e[n]=(e[n]||0)+t.offsetHeight}),e},[]))}(t)+(n=this.$el,r=this.margin,i=V(n.children),B((o=i.filter(function(e){return Ct(e,r)})[0])?Lt(o,"marginTop"):Lt(i[0],"paddingLeft"))*(t.length-1))}return{rows:t,translates:s,height:!a&&l}},write:function(e){var t=e.stacks,n=e.height;Ot(this.$el,this.clsStack,t),Lt(this.$el,"paddingBottom",this.parallax),!1!==n&&Lt(this.$el,"height",n)},events:["resize"]},{read:function(e){var t=e.height;return{scrolled:!!this.parallax&&pn(this.$el,t?t-on(this.$el):0)*this.parallax}},write:function(e){var t=e.rows,n=e.scrolled,r=e.translates;(!1!==n||r)&&t.forEach(function(e,t){return e.forEach(function(e,i){return Lt(e,"transform",n||r?"translateY("+((r&&-r[t][i])+(n?i%2?n:n/8:0))+"px)":"")})})},events:["scroll","resize"]}]},rr=Ge?{data:{selMinHeight:!1,forceHeight:!1},computed:{elements:function(e,t){var n=e.selMinHeight;return n?Et(n,t):[t]}},update:[{read:function(){Lt(this.elements,"height","")},order:-5,events:["resize"]},{write:function(){var e=this;this.elements.forEach(function(t){var n=B(Lt(t,"minHeight"));n&&(e.forceHeight||Math.round(n+ln("height",t,"content-box"))>=t.offsetHeight)&&Lt(t,"height",n)})},order:5,events:["resize"]}]}:{},ir={mixins:[rr],args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0,forceHeight:!0},computed:{elements:function(e,t){var n=e.target;return Et(n,t)}},update:{read:function(){return{rows:(this.row?er(this.elements):[this.elements]).map(or)}},write:function(e){var t=e.rows;t.forEach(function(e){var t=e.heights,n=e.elements;return n.forEach(function(e,n){return Lt(e,"minHeight",t[n])})})},events:["resize"]}};function or(e){var t;if(e.length<2)return{heights:[""],elements:e};var n=ar(e),r=n.heights,i=n.max,o=e.some(function(e){return e.style.minHeight}),a=e.some(function(e,t){return!e.style.minHeight&&r[t]<i});return o&&a&&(Lt(e,"minHeight",""),t=ar(e),r=t.heights,i=t.max),{heights:r=e.map(function(e,t){return r[t]===i&&B(e.style.minHeight).toFixed(2)!==i.toFixed(2)?"":i}),elements:e}}function ar(e){var t=e.map(function(e){return tn(e).height-ln("height",e,"content-box")}),n=Math.max.apply(null,t);return{heights:t,max:n}}var sr={mixins:[rr],props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean,minHeight:Number},data:{expand:!1,offsetTop:!1,offsetBottom:!1,minHeight:0},update:{read:function(e){var t=e.minHeight,n="",r=ln("height",this.$el,"content-box");if(this.expand)n=on(window)-(lr(document.documentElement)-lr(this.$el))-r||"";else{if(n="calc(100vh",this.offsetTop){var i=tn(this.$el),o=i.top;n+=o<on(window)/2?" - "+o+"px":""}!0===this.offsetBottom?n+=" - "+lr(this.$el.nextElementSibling)+"px":P(this.offsetBottom)?n+=" - "+this.offsetBottom+"vh":this.offsetBottom&&g(this.offsetBottom,"px")?n+=" - "+B(this.offsetBottom)+"px":D(this.offsetBottom)&&(n+=" - "+lr(se(this.offsetBottom,this.$el))+"px"),n+=(r?" - "+r+"px":"")+")"}return{minHeight:n,prev:t}},write:function(e){var t=e.minHeight,n=e.prev;Lt(this.$el,{minHeight:t}),t!==n&&this.$update(this.$el,"resize"),this.minHeight&&B(Lt(this.$el,"minHeight"))<this.minHeight&&Lt(this.$el,"minHeight",this.minHeight)},events:["resize"]}};function lr(e){return e&&e.offsetHeight||0}var cr={args:"src",props:{id:Boolean,icon:String,src:String,style:String,width:Number,height:Number,ratio:Number,class:String,strokeAnimation:Boolean,attributes:"list"},data:{ratio:1,include:["style","class"],class:"",strokeAnimation:!1},beforeConnect:function(){var e,t=this;if(this.class+=" uk-svg",!this.icon&&w(this.src,"#")){var n=this.src.split("#");n.length>1&&(e=n,this.src=e[0],this.icon=e[1])}this.svg=this.getSvg().then(function(e){return t.applyAttributes(e),t.svgEl=function(e,t){if(Ee(t)||"CANVAS"===t.tagName){re(t,"hidden",!0);var n=t.nextElementSibling;return pr(e,n)?n:gt(t,e)}var r=t.lastElementChild;return pr(e,r)?r:dt(t,e)}(e,t.$el)},X)},disconnected:function(){var e=this;Ee(this.$el)&&re(this.$el,"hidden",null),this.svg&&this.svg.then(function(t){return(!e._connected||t!==e.svgEl)&&vt(t)},X),this.svg=this.svgEl=null},update:{read:function(){return!!(this.strokeAnimation&&this.svgEl&&je(this.svgEl))},write:function(){var e,t;e=this.svgEl,(t=dr(e))&&e.style.setProperty("--uk-animation-stroke",t)},type:["resize"]},methods:{getSvg:function(){var e,t=this;return(e=this.src,ur[e]?ur[e]:ur[e]=new Ve(function(t,n){e?d(e,"data:")?t(decodeURIComponent(e.split(",")[1])):Ke(e).then(function(e){return t(e.response)},function(){return n("SVG not found.")}):n()})).then(function(e){return function(e,t){return t&&w(e,"<symbol")&&(e=function(e,t){if(!fr[e]){var n;for(fr[e]={};n=hr.exec(e);)fr[e][n[3]]='<svg xmlns="http://www.w3.org/2000/svg"'+n[1]+"svg>";hr.lastIndex=0}return fr[e][t]}(e,t)||e),(e=At(e.substr(e.indexOf("<svg"))))&&e.hasChildNodes()&&e}(e,t.icon)||Ve.reject("SVG not found.")})},applyAttributes:function(e){var t=this;for(var n in this.$options.props)this[n]&&w(this.include,n)&&re(e,n,this[n]);for(var r in this.attributes){var i=this.attributes[r].split(":",2),o=i[0],a=i[1];re(e,o,a)}this.id||oe(e,"id");var s=["width","height"],l=[this.width,this.height];l.some(function(e){return e})||(l=s.map(function(t){return re(e,t)}));var c=re(e,"viewBox");c&&!l.some(function(e){return e})&&(l=c.split(" ").slice(2)),l.forEach(function(n,r){(n=(0|n)*t.ratio)&&re(e,s[r],n),n&&!l[1^r]&&oe(e,s[1^r])}),re(e,"data-svg",this.icon||this.src)}}},ur={},hr=/<symbol(.*?id=(['"])(.*?)\2[^]*?<\/)symbol>/g,fr={};function dr(e){return Math.ceil(Math.max.apply(Math,Et("[stroke]",e).map(function(e){return e.getTotalLength&&e.getTotalLength()||0}).concat([0])))}function pr(e,t){return re(e,"data-svg")===re(t,"data-svg")}var gr={},mr={spinner:'<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" cx="15" cy="15" r="14"/></svg>',totop:'<svg width="18" height="10" viewBox="0 0 18 10" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 9 9 1 17 9 "/></svg>',marker:'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect x="9" y="4" width="1" height="11"/><rect x="4" y="9" width="11" height="1"/></svg>',"close-icon":'<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><line fill="none" stroke="#000" stroke-width="1.1" x1="1" y1="1" x2="13" y2="13"/><line fill="none" stroke="#000" stroke-width="1.1" x1="13" y1="1" x2="1" y2="13"/></svg>',"close-large":'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><line fill="none" stroke="#000" stroke-width="1.4" x1="1" y1="1" x2="19" y2="19"/><line fill="none" stroke="#000" stroke-width="1.4" x1="19" y1="1" x2="1" y2="19"/></svg>',"navbar-toggle-icon":'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect y="9" width="20" height="2"/><rect y="3" width="20" height="2"/><rect y="15" width="20" height="2"/></svg>',"overlay-icon":'<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><rect x="19" y="0" width="1" height="40"/><rect x="0" y="19" width="40" height="1"/></svg>',"pagination-next":'<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 1 6 6 1 11"/></svg>',"pagination-previous":'<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="6 1 1 6 6 11"/></svg>',"search-icon":'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"/><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"/></svg>',"search-large":'<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" stroke-width="1.8" cx="17.5" cy="17.5" r="16.5"/><line fill="none" stroke="#000" stroke-width="1.8" x1="38" y1="39" x2="29" y2="30"/></svg>',"search-navbar":'<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" stroke-width="1.1" cx="10.5" cy="10.5" r="9.5"/><line fill="none" stroke="#000" stroke-width="1.1" x1="23" y1="23" x2="17" y2="17"/></svg>',"slidenav-next":'<svg width="14px" height="24px" viewBox="0 0 14 24" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.4" points="1.225,23 12.775,12 1.225,1 "/></svg>',"slidenav-next-large":'<svg width="25px" height="40px" viewBox="0 0 25 40" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="2" points="4.002,38.547 22.527,20.024 4,1.5 "/></svg>',"slidenav-previous":'<svg width="14px" height="24px" viewBox="0 0 14 24" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.4" points="12.775,1 1.225,12 12.775,23 "/></svg>',"slidenav-previous-large":'<svg width="25px" height="40px" viewBox="0 0 25 40" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="2" points="20.527,1.5 2,20.024 20.525,38.547 "/></svg>'},vr={install:function(e){e.icon.add=function(t,n){var r,i=D(t)?((r={})[t]=n,r):t;K(i,function(e,t){mr[t]=e,delete gr[t]}),e._initialized&&kt(document.body,function(t){return K(e.getComponents(t),function(e){e.$options.isIcon&&e.icon in i&&e.$reset()})})}},extends:cr,args:"icon",props:["icon"],data:{include:[]},isIcon:!0,beforeConnect:function(){It(this.$el,"uk-icon")},methods:{getSvg:function(){var e=function(e){return mr[e]?(gr[e]||(gr[e]=At(mr[e].trim())),gr[e].cloneNode(!0)):null}(function(e){return Ze?q(q(e,"left","right"),"previous","next"):e}(this.icon));return e?Ve.resolve(e):Ve.reject("Icon not found.")}}},yr={args:!1,extends:vr,data:function(e){return{icon:a(e.constructor.options.name)}},beforeConnect:function(){It(this.$el,this.$name)}},xr={extends:yr,beforeConnect:function(){It(this.$el,"uk-slidenav")},computed:{icon:function(e,t){var n=e.icon;return Ct(t,"uk-slidenav-large")?n+"-large":n}}},wr={extends:yr,computed:{icon:function(e,t){var n=e.icon;return Ct(t,"uk-search-icon")&&_e(t,".uk-search-large").length?"search-large":_e(t,".uk-search-navbar").length?"search-navbar":n}}},br={extends:yr,computed:{icon:function(){return"close-"+(Ct(this.$el,"uk-close-large")?"large":"icon")}}},_r={extends:yr,connected:function(){var e=this;this.svg.then(function(t){return 1!==e.ratio&&Lt(At("circle",t),"strokeWidth",1/e.ratio)},X)}},$r={args:"dataSrc",props:{dataSrc:String,dataSrcset:Boolean,sizes:String,width:Number,height:Number,offsetTop:String,offsetLeft:String,target:String},data:{dataSrc:"",dataSrcset:!1,sizes:!1,width:!1,height:!1,offsetTop:"50vh",offsetLeft:0,target:!1},computed:{cacheKey:function(e){var t=e.dataSrc;return this.$name+"."+t},width:function(e){var t=e.width,n=e.dataWidth;return t||n},height:function(e){var t=e.height,n=e.dataHeight;return t||n},sizes:function(e){var t=e.sizes,n=e.dataSizes;return t||n},isImg:function(e,t){return Mr(t)},target:{get:function(e){var t=e.target;return[this.$el].concat(le(t,this.$el))},watch:function(){this.observe()}},offsetTop:function(e){var t=e.offsetTop;return vn(t,"height")},offsetLeft:function(e){var t=e.offsetLeft;return vn(t,"width")}},connected:function(){var e,t,n,r;jr[this.cacheKey]?kr(this.$el,jr[this.cacheKey]||this.dataSrc,this.dataSrcset,this.sizes):this.isImg&&this.width&&this.height&&kr(this.$el,(e=this.width,t=this.height,(n=this.sizes)&&(r=ne.ratio({width:e,height:t},"width",vn(Er(n))),e=r.width,t=r.height),'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+t+'"></svg>')),this.observer=new Pn(this.load,{rootMargin:this.offsetTop+"px "+this.offsetLeft+"px"}),requestAnimationFrame(this.observe)},disconnected:function(){this.observer.disconnect()},update:{read:function(e){var t=this,n=e.image;if(n||"complete"!==document.readyState||this.load(this.observer.takeRecords()),this.isImg)return!1;n&&n.then(function(e){return e&&""!==e.currentSrc&&kr(t.$el,Cr(e))})},write:function(e){if(this.dataSrcset&&1!==window.devicePixelRatio){var t=Lt(this.$el,"backgroundSize");(t.match(/^(auto\s?)+$/)||B(t)===e.bgSize)&&(e.bgSize=(n=this.dataSrcset,r=this.sizes,i=vn(Er(r)),(o=(n.match(Sr)||[]).map(B).sort(function(e,t){return e-t})).filter(function(e){return e>=i})[0]||o.pop()||""),Lt(this.$el,"backgroundSize",e.bgSize+"px"))}var n,r,i,o},events:["resize"]},methods:{load:function(e){var t=this;e.some(function(e){return e.isIntersecting})&&(this._data.image=Je(this.dataSrc,this.dataSrcset,this.sizes).then(function(e){return kr(t.$el,Cr(e),e.srcset,e.sizes),jr[t.cacheKey]=Cr(e),e},X),this.observer.disconnect())},observe:function(){var e=this;!this._data.image&&this._connected&&this.target.forEach(function(t){return e.observer.observe(t)})}}};function kr(e,t,n,r){if(Mr(e))r&&(e.sizes=r),n&&(e.srcset=n),t&&(e.src=t);else if(t){var i=!w(e.style.backgroundImage,t);i&&(Lt(e,"backgroundImage","url("+ke(t)+")"),Ne(e,Pe("load",!1)))}}var Ar=/\s*(.*?)\s*(\w+|calc\(.*?\))\s*(?:,|$)/g;function Er(e){var t,n;for(Ar.lastIndex=0;t=Ar.exec(e);)if(!t[1]||window.matchMedia(t[1]).matches){n=t[2],t=d(n,"calc")?n.substring(5,n.length-1).replace(Ir,function(e){return vn(e)}).replace(/ /g,"").match(Tr).reduce(function(e,t){return e+ +t},0):n;break}return t||"100vw"}var jr,Ir=/\d+(?:\w+|%)/g,Tr=/[+-]?(\d+)/g,Sr=/\s+\d+w\s*(?:,|$)/g;function Mr(e){return"IMG"===e.tagName}function Cr(e){return e.currentSrc||e.src}try{(jr=window.sessionStorage||{}).__test__=1,delete jr.__test__}catch(e){jr={}}var Or,Dr,Nr={props:{media:Boolean},data:{media:!1},computed:{matchMedia:function(){var e=function(e){if(D(e))if("@"===e[0]){var t="breakpoint-"+e.substr(1);e=B(Ht(t))}else if(isNaN(e))return e;return!(!e||isNaN(e))&&"(min-width: "+e+"px)"}(this.media);return!e||window.matchMedia(e).matches}}},Pr={mixins:[Fn,Nr],props:{fill:String},data:{fill:"",clsWrapper:"uk-leader-fill",clsHide:"uk-leader-hide",attrFill:"data-fill"},computed:{fill:function(e){var t=e.fill;return t||Ht("leader-fill-content")}},connected:function(){var e;e=xt(this.$el,'<span class="'+this.clsWrapper+'">'),this.wrapper=e[0]},disconnected:function(){wt(this.wrapper.childNodes)},update:{read:function(e){var t=e.changed,n=e.width,r=n;return{width:n=Math.floor(this.$el.offsetWidth/2),fill:this.fill,changed:t||r!==n,hide:!this.matchMedia}},write:function(e){Ot(this.wrapper,this.clsHide,e.hide),e.changed&&(e.changed=!1,re(this.wrapper,this.attrFill,new Array(e.width).join(e.fill)))},events:["resize"]}},Rr={props:{container:Boolean},data:{container:!0},computed:{container:function(e){var t=e.container;return!0===t&&this.$container||t&&At(t)}}},Lr={mixins:[Fn,Rr,zn],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel:function(e,t){var n=e.selPanel;return At(n,t)},transitionElement:function(){return this.panel},bgClose:function(e){var t=e.bgClose;return t&&this.panel}},beforeDisconnect:function(){this.isToggled()&&this.toggleNow(this.$el,!1)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(e){e.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler:function(e){e.defaultPrevented||(e.preventDefault(),this.toggle())}},{name:"beforeshow",self:!0,handler:function(e){var t=Or&&Or!==this&&Or;Or=this,t?this.stack?this.prev=t:(Or=t,t.isToggled()?t.hide().then(this.show):De(t.$el,"beforeshow hidden",this.show,!1,function(e){var n=e.target,r=e.type;return"hidden"===r&&n===t.$el}),e.preventDefault()):Dr||(Dr=[Ce(document,it,function(e){var t=e.target,n=e.defaultPrevented;!Or||!Or.bgClose||n||Or.overlay&&!Me(t,Or.$el)||Me(t,Or.panel)||Or.hide()}),Ce(document,"keydown",function(e){27===e.keyCode&&Or&&Or.escClose&&(e.preventDefault(),Or.hide())})])}},{name:"show",self:!0,handler:function(){Ct(document.documentElement,this.clsPage)||(this.scrollbarWidth=an(window)-an(document),Lt(document.body,"overflowY",this.scrollbarWidth&&this.overlay?"scroll":"")),It(document.documentElement,this.clsPage)}},{name:"hide",self:!0,handler:function(){Or&&(Or!==this||this.prev)||(Dr&&Dr.forEach(function(e){return e()}),Dr=null)}},{name:"hidden",self:!0,handler:function(){var e,t=this.prev;if(Or=Or&&Or!==this&&Or||t)for(;t;){if(t.clsPage===this.clsPage){e=!0;break}t=t.prev}else Lt(document.body,"overflowY","");e||Tt(document.documentElement,this.clsPage)}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},show:function(){var e=this;return this.isToggled()?Ve.resolve():this.container&&this.$el.parentNode!==this.container?(dt(this.container,this.$el),new Ve(function(t){return requestAnimationFrame(function(){return e.show().then(t)})})):this.toggleElement(this.$el,!0,Fr(this))},hide:function(){return this.isToggled()?this.toggleElement(this.$el,!1,Fr(this)):Ve.resolve()},getActive:function(){return Or}}};function Fr(e){var t=e.transitionElement,n=e._toggle;return function(e,r){return new Ve(function(i,o){return De(e,"show hide",function(){e._reject&&e._reject(),e._reject=o,n(e,r),U(Lt(t,"transitionDuration"))?De(t,"transitionend",i,!1,function(e){return e.target===t}):i()})})}}var zr={install:function(e){e.modal.dialog=function(t,n){var r=e.modal(' <div class="uk-modal"> <div class="uk-modal-dialog">'+t+"</div> </div> ",n);return r.show(),Ce(r.$el,"hidden",function(e){var t=e.target,n=e.currentTarget;t===n&&Ve.resolve(function(){return r.$destroy(!0)})}),r},e.modal.alert=function(t,n){return n=Q({bgClose:!1,escClose:!1,labels:e.modal.labels},n),new Ve(function(r){return Ce(e.modal.dialog(' <div class="uk-modal-body">'+(D(t)?t:ft(t))+'</div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-primary uk-modal-close" autofocus>'+n.labels.ok+"</button> </div> ",n).$el,"hide",r)})},e.modal.confirm=function(t,n){return n=Q({bgClose:!1,escClose:!0,labels:e.modal.labels},n),new Ve(function(r,i){var o=e.modal.dialog(' <form> <div class="uk-modal-body">'+(D(t)?t:ft(t))+'</div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-default uk-modal-close" type="button">'+n.labels.cancel+'</button> <button class="uk-button uk-button-primary" autofocus>'+n.labels.ok+"</button> </div> </form> ",n),a=!1;Ce(o.$el,"submit","form",function(e){e.preventDefault(),r(),a=!0,o.hide()}),Ce(o.$el,"hide",function(){a||i()})})},e.modal.prompt=function(t,n,r){return r=Q({bgClose:!1,escClose:!0,labels:e.modal.labels},r),new Ve(function(i){var o=e.modal.dialog(' <form class="uk-form-stacked"> <div class="uk-modal-body"> <label>'+(D(t)?t:ft(t))+'</label> <input class="uk-input" autofocus> </div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-default uk-modal-close" type="button">'+r.labels.cancel+'</button> <button class="uk-button uk-button-primary">'+r.labels.ok+"</button> </div> </form> ",r),a=At("input",o.$el);a.value=n;var s=!1;Ce(o.$el,"submit","form",function(e){e.preventDefault(),i(a.value),s=!0,o.hide()}),Ce(o.$el,"hide",function(){s||i(null)})})},e.modal.labels={ok:"Ok",cancel:"Cancel"}},mixins:[Lr],data:{clsPage:"uk-modal-page",selPanel:".uk-modal-dialog",selClose:".uk-modal-close, .uk-modal-close-default, .uk-modal-close-outside, .uk-modal-close-full"},events:[{name:"show",self:!0,handler:function(){Ct(this.panel,"uk-margin-auto-vertical")?It(this.$el,"uk-flex"):Lt(this.$el,"display","block"),on(this.$el)}},{name:"hidden",self:!0,handler:function(){Lt(this.$el,"display",""),Tt(this.$el,"uk-flex")}}]},Br={extends:Bn,data:{targets:"> .uk-parent",toggle:"> a",content:"> ul"}},Hr={mixins:[Fn,rr],props:{dropdown:String,mode:"list",align:String,offset:Number,boundary:Boolean,boundaryAlign:Boolean,clsDrop:String,delayShow:Number,delayHide:Number,dropbar:Boolean,dropbarMode:String,dropbarAnchor:Boolean,duration:Number},data:{dropdown:".uk-navbar-nav > li",align:Ze?"right":"left",clsDrop:"uk-navbar-dropdown",mode:void 0,offset:void 0,delayShow:void 0,delayHide:void 0,boundaryAlign:void 0,flip:"x",boundary:!0,dropbar:!1,dropbarMode:"slide",dropbarAnchor:!1,duration:200,forceHeight:!0,selMinHeight:".uk-navbar-nav > li > a, .uk-navbar-item, .uk-navbar-toggle"},computed:{boundary:function(e,t){var n=e.boundary,r=e.boundaryAlign;return!0===n||r?t:n},dropbarAnchor:function(e,t){var n=e.dropbarAnchor;return se(n,t)},pos:function(e){var t=e.align;return"bottom-"+t},dropdowns:function(e,t){var n=e.dropdown,r=e.clsDrop;return Et(n+" ."+r,t)}},beforeConnect:function(){var e=this.$props,t=e.dropbar;this.dropbar=t&&(se(t,this.$el)||At("+ .uk-navbar-dropbar",this.$el)||At("<div></div>")),this.dropbar&&(It(this.dropbar,"uk-navbar-dropbar"),"slide"===this.dropbarMode&&It(this.dropbar,"uk-navbar-dropbar-slide"))},disconnected:function(){this.dropbar&&vt(this.dropbar)},update:function(){var e=this;this.$create("drop",this.dropdowns.filter(function(t){return!e.getDropdown(t)}),Q({},this.$props,{boundary:this.boundary,pos:this.pos,offset:this.dropbar||this.offset}))},events:[{name:"mouseover",delegate:function(){return this.dropdown},handler:function(e){var t=e.current,n=this.getActive();n&&n.toggle&&!Me(n.toggle.$el,t)&&!n.tracker.movesTo(n.$el)&&n.hide(!1)}},{name:"mouseleave",el:function(){return this.dropbar},handler:function(){var e=this.getActive();e&&!this.dropdowns.some(function(e){return xe(e,":hover")})&&e.hide()}},{name:"beforeshow",capture:!0,filter:function(){return this.dropbar},handler:function(){this.dropbar.parentNode||gt(this.dropbarAnchor||this.$el,this.dropbar)}},{name:"show",capture:!0,filter:function(){return this.dropbar},handler:function(e,t){var n=t.$el,r=t.dir;this.clsDrop&&It(n,this.clsDrop+"-dropbar"),"bottom"===r&&this.transitionTo(n.offsetHeight+B(Lt(n,"marginTop"))+B(Lt(n,"marginBottom")),n)}},{name:"beforehide",filter:function(){return this.dropbar},handler:function(e,t){var n=t.$el,r=this.getActive();xe(this.dropbar,":hover")&&r&&r.$el===n&&e.preventDefault()}},{name:"hide",filter:function(){return this.dropbar},handler:function(e,t){var n=t.$el,r=this.getActive();(!r||r&&r.$el===n)&&this.transitionTo(0)}}],methods:{getActive:function(){var e=this.dropdowns.map(this.getDropdown).filter(function(e){return e&&e.isActive()}),t=e[0];return t&&w(t.mode,"hover")&&Me(t.toggle.$el,this.$el)&&t},transitionTo:function(e,t){var n=this,r=this.dropbar,i=je(r)?on(r):0;return Lt(t=i<e&&t,"clip","rect(0,"+t.offsetWidth+"px,"+i+"px,0)"),on(r,i),qt.cancel([t,r]),Ve.all([qt.start(r,{height:e},this.duration),qt.start(t,{clip:"rect(0,"+t.offsetWidth+"px,"+e+"px,0)"},this.duration)]).catch(X).then(function(){Lt(t,{clip:""}),n.$update(r)})},getDropdown:function(e){return this.$getComponent(e,"drop")||this.$getComponent(e,"dropdown")}}},Vr={mixins:[Lr],args:"mode",props:{mode:String,flip:Boolean,overlay:Boolean},data:{mode:"slide",flip:!1,overlay:!1,clsPage:"uk-offcanvas-page",clsContainer:"uk-offcanvas-container",selPanel:".uk-offcanvas-bar",clsFlip:"uk-offcanvas-flip",clsContainerAnimation:"uk-offcanvas-container-animation",clsSidebarAnimation:"uk-offcanvas-bar-animation",clsMode:"uk-offcanvas",clsOverlay:"uk-offcanvas-overlay",selClose:".uk-offcanvas-close"},computed:{clsFlip:function(e){var t=e.flip,n=e.clsFlip;return t?n:""},clsOverlay:function(e){var t=e.overlay,n=e.clsOverlay;return t?n:""},clsMode:function(e){var t=e.mode,n=e.clsMode;return n+"-"+t},clsSidebarAnimation:function(e){var t=e.mode,n=e.clsSidebarAnimation;return"none"===t||"reveal"===t?"":n},clsContainerAnimation:function(e){var t=e.mode,n=e.clsContainerAnimation;return"push"!==t&&"reveal"!==t?"":n},transitionElement:function(e){var t=e.mode;return"reveal"===t?this.panel.parentNode:this.panel}},events:[{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(e){var t=e.current;t.hash&&At(t.hash,document.body)&&this.hide()}},{name:"touchstart",passive:!0,el:function(){return this.panel},handler:function(e){var t=e.targetTouches;1===t.length&&(this.clientY=t[0].clientY)}},{name:"touchmove",self:!0,passive:!1,filter:function(){return this.overlay},handler:function(e){e.cancelable&&e.preventDefault()}},{name:"touchmove",passive:!1,el:function(){return this.panel},handler:function(e){if(1===e.targetTouches.length){var t=event.targetTouches[0].clientY-this.clientY,n=this.panel,r=n.scrollTop,i=n.scrollHeight,o=n.clientHeight;(o>=i||0===r&&t>0||i-r<=o&&t<0)&&e.cancelable&&e.preventDefault()}}},{name:"show",self:!0,handler:function(){"reveal"!==this.mode||Ct(this.panel.parentNode,this.clsMode)||(yt(this.panel,"<div>"),It(this.panel.parentNode,this.clsMode)),Lt(document.documentElement,"overflowY",this.overlay?"hidden":""),It(document.body,this.clsContainer,this.clsFlip),Lt(this.$el,"display","block"),It(this.$el,this.clsOverlay),It(this.panel,this.clsSidebarAnimation,"reveal"!==this.mode?this.clsMode:""),on(document.body),It(document.body,this.clsContainerAnimation),this.clsContainerAnimation&&(Wr().content+=",user-scalable=0")}},{name:"hide",self:!0,handler:function(){Tt(document.body,this.clsContainerAnimation);var e=this.getActive();("none"===this.mode||e&&e!==this&&e!==this.prev)&&Ne(this.panel,"transitionend")}},{name:"hidden",self:!0,handler:function(){var e;this.clsContainerAnimation&&((e=Wr()).content=e.content.replace(/,user-scalable=0$/,"")),"reveal"===this.mode&&wt(this.panel),Tt(this.panel,this.clsSidebarAnimation,this.clsMode),Tt(this.$el,this.clsOverlay),Lt(this.$el,"display",""),Tt(document.body,this.clsContainer,this.clsFlip),Lt(document.documentElement,"overflowY","")}},{name:"swipeLeft swipeRight",handler:function(e){this.isToggled()&&g(e.type,"Left")^this.flip&&this.hide()}}]};function Wr(){return At('meta[name="viewport"]',document.head)||dt(document.head,'<meta name="viewport">')}var Ur={mixins:[Fn],props:{selContainer:String,selContent:String},data:{selContainer:".uk-modal",selContent:".uk-modal-dialog"},computed:{container:function(e,t){var n=e.selContainer;return be(t,n)},content:function(e,t){var n=e.selContent;return be(t,n)}},connected:function(){Lt(this.$el,"minHeight",150)},update:{read:function(){return!(!this.content||!this.container)&&{current:B(Lt(this.$el,"maxHeight")),max:Math.max(150,on(this.container)-(tn(this.content).height-on(this.$el)))}},write:function(e){var t=e.current,n=e.max;Lt(this.$el,"maxHeight",n),Math.round(t)!==Math.round(n)&&Ne(this.$el,"resize")},events:["resize"]}},Yr={props:["width","height"],connected:function(){It(this.$el,"uk-responsive-width")},update:{read:function(){return!!(je(this.$el)&&this.width&&this.height)&&{width:an(this.$el.parentNode),height:this.height}},write:function(e){on(this.$el,ne.contain({height:this.height,width:this.width},e).height)},events:["resize"]}},qr={props:{duration:Number,offset:Number},data:{duration:1e3,offset:0},methods:{scrollTo:function(e){var t=this;e=e&&At(e)||document.body;var n=on(document),r=on(window),i=tn(e).top-this.offset;if(i+r>n&&(i=n-r),Ne(this.$el,"beforescroll",[this,e])){var o=Date.now(),a=window.pageYOffset,s=function(){var n,r=a+(i-a)*(n=Z((Date.now()-o)/t.duration),.5*(1-Math.cos(Math.PI*n)));gn(window,r),r!==i?requestAnimationFrame(s):Ne(t.$el,"scrolled",[t,e])};s()}}},events:{click:function(e){e.defaultPrevented||(e.preventDefault(),this.scrollTo(ke(decodeURIComponent(this.$el.hash)).substr(1)))}}},Qr={args:"cls",props:{cls:String,target:String,hidden:Boolean,offsetTop:Number,offsetLeft:Number,repeat:Boolean,delay:Number},data:function(){return{cls:!1,target:!1,hidden:!0,offsetTop:0,offsetLeft:0,repeat:!1,delay:0,inViewClass:"uk-scrollspy-inview"}},computed:{elements:function(e,t){var n=e.target;return n?Et(n,t):[t]}},update:[{write:function(){this.hidden&&Lt(Se(this.elements,":not(."+this.inViewClass+")"),"visibility","hidden")}},{read:function(e){var t=this,n=e.update;n&&this.elements.forEach(function(e){var n=e._ukScrollspyState;n||(n={cls:ae(e,"uk-scrollspy-class")||t.cls}),n.show=dn(e,t.offsetTop,t.offsetLeft),e._ukScrollspyState=n})},write:function(e){var t=this;if(!e.update)return this.$emit(),e.update=!0;this.elements.forEach(function(n){var r=n._ukScrollspyState,i=r.cls;if(!r.show||r.inview||r.queued){if(!r.show&&(r.inview||r.queued)&&t.repeat){if(r.abort&&r.abort(),!r.inview)return;Lt(n,"visibility",t.hidden?"hidden":""),Tt(n,t.inViewClass),Ot(n,i),Ne(n,"outview"),t.$update(n),r.inview=!1}}else{var o=function(){Lt(n,"visibility",""),It(n,t.inViewClass),Ot(n,i),Ne(n,"inview"),t.$update(n),r.inview=!0,r.abort&&r.abort()};t.delay?(r.queued=!0,e.promise=(e.promise||Ve.resolve()).then(function(){return!r.inview&&new Ve(function(n){var i=setTimeout(function(){o(),n()},e.promise||1===t.elements.length?t.delay:0);r.abort=function(){clearTimeout(i),n(),r.queued=!1}})})):o()}})},events:["scroll","resize"]}]},Kr={props:{cls:String,closest:String,scroll:Boolean,overflow:Boolean,offset:Number},data:{cls:"uk-active",closest:!1,scroll:!1,overflow:!0,offset:0},computed:{links:function(e,t){return Et('a[href^="#"]',t).filter(function(e){return e.hash})},elements:function(e){var t=e.closest;return be(this.links,t||"*")},targets:function(){return Et(this.links.map(function(e){return ke(e.hash).substr(1)}).join(","))}},update:[{read:function(){this.scroll&&this.$create("scroll",this.links,{offset:this.offset||0})}},{read:function(e){var t=this,n=window.pageYOffset+this.offset+1,r=on(document)-on(window)+this.offset;e.active=!1,this.targets.every(function(i,o){var a=tn(i),s=a.top,l=o+1===t.targets.length;if(!t.overflow&&(0===o&&s>n||l&&s+i.offsetTop<n))return!1;if(!l&&tn(t.targets[o+1]).top<=n)return!0;if(n>=r)for(var c=t.targets.length-1;c>o;c--)if(dn(t.targets[c])){i=t.targets[c];break}return!(e.active=At(Se(t.links,'[href="#'+i.id+'"]')))})},write:function(e){var t=e.active;this.links.forEach(function(e){return e.blur()}),Tt(this.elements,this.cls),t&&Ne(this.$el,"active",[t,It(this.closest?be(t,this.closest):t,this.cls)])},events:["scroll","resize"]}]},Jr={mixins:[Fn,Nr],props:{top:null,bottom:Boolean,offset:Number,animation:String,clsActive:String,clsInactive:String,clsFixed:String,clsBelow:String,selTarget:String,widthElement:Boolean,showOnUp:Boolean,targetOffset:Number},data:{top:0,bottom:!1,offset:0,animation:"",clsActive:"uk-active",clsInactive:"",clsFixed:"uk-sticky-fixed",clsBelow:"uk-sticky-below",selTarget:"",widthElement:!1,showOnUp:!1,targetOffset:!1},computed:{selTarget:function(e,t){var n=e.selTarget;return n&&At(n,t)||t},widthElement:function(e,t){var n=e.widthElement;return se(n,t)||this.placeholder},isActive:{get:function(){return Ct(this.selTarget,this.clsActive)},set:function(e){e&&!this.isActive?(Mt(this.selTarget,this.clsInactive,this.clsActive),Ne(this.$el,"active")):e||Ct(this.selTarget,this.clsInactive)||(Mt(this.selTarget,this.clsActive,this.clsInactive),Ne(this.$el,"inactive"))}}},connected:function(){this.placeholder=At("+ .uk-sticky-placeholder",this.$el)||At('<div class="uk-sticky-placeholder"></div>'),this.isFixed=!1,this.isActive=!1},disconnected:function(){this.isFixed&&(this.hide(),Tt(this.selTarget,this.clsInactive)),vt(this.placeholder),this.placeholder=null,this.widthElement=null},events:[{name:"load hashchange popstate",el:window,handler:function(){var e=this;if(!1!==this.targetOffset&&location.hash&&window.pageYOffset>0){var t=At(location.hash);t&&bn.read(function(){var n=tn(t),r=n.top,i=tn(e.$el).top,o=e.$el.offsetHeight;e.isFixed&&i+o>=r&&i<=r+t.offsetHeight&&gn(window,r-o-(P(e.targetOffset)?e.targetOffset:0)-e.offset)})}}}],update:[{read:function(e,t){var n=e.height;this.isActive&&"update"!==t&&(this.hide(),n=this.$el.offsetHeight,this.show()),n=this.isActive?n:this.$el.offsetHeight,this.topOffset=tn(this.isFixed?this.placeholder:this.$el).top,this.bottomOffset=this.topOffset+n;var r=Gr("bottom",this);return this.top=Math.max(B(Gr("top",this)),this.topOffset)-this.offset,this.bottom=r&&r-n,this.inactive=!this.matchMedia,{lastScroll:!1,height:n,margins:Lt(this.$el,["marginTop","marginBottom","marginLeft","marginRight"])}},write:function(e){var t=e.height,n=e.margins,r=this.placeholder;Lt(r,Q({height:t},n)),Me(r,document)||(gt(this.$el,r),re(r,"hidden","")),this.isActive=this.isActive},events:["resize"]},{read:function(e){var t=e.scroll;return void 0===t&&(t=0),this.width=(je(this.widthElement)?this.widthElement:this.$el).offsetWidth,this.scroll=window.pageYOffset,{dir:t<=this.scroll?"down":"up",scroll:this.scroll,visible:je(this.$el),top:mn(this.placeholder)[0]}},write:function(e,t){var n=this,r=e.initTimestamp;void 0===r&&(r=0);var i=e.dir,o=e.lastDir,a=e.lastScroll,s=e.scroll,l=e.top,c=e.visible,u=performance.now();if(e.lastScroll=s,!(s<0||s===a||!c||this.disabled||this.showOnUp&&"scroll"!==t||((u-r>300||i!==o)&&(e.initScroll=s,e.initTimestamp=u),e.lastDir=i,this.showOnUp&&Math.abs(e.initScroll-s)<=30&&Math.abs(a-s)<=10)))if(this.inactive||s<this.top||this.showOnUp&&(s<=this.top||"down"===i||"up"===i&&!this.isFixed&&s<=this.bottomOffset)){if(!this.isFixed)return void(Zt.inProgress(this.$el)&&l>s&&(Zt.cancel(this.$el),this.hide()));this.isFixed=!1,this.animation&&s>this.topOffset?(Zt.cancel(this.$el),Zt.out(this.$el,this.animation).then(function(){return n.hide()},X)):this.hide()}else this.isFixed?this.update():this.animation?(Zt.cancel(this.$el),this.show(),Zt.in(this.$el,this.animation).catch(X)):this.show()},events:["resize","scroll"]}],methods:{show:function(){this.isFixed=!0,this.update(),re(this.placeholder,"hidden",null)},hide:function(){this.isActive=!1,Tt(this.$el,this.clsFixed,this.clsBelow),Lt(this.$el,{position:"",top:"",width:""}),re(this.placeholder,"hidden","")},update:function(){var e=0!==this.top||this.scroll>this.top,t=Math.max(0,this.offset);this.bottom&&this.scroll>this.bottom-this.offset&&(t=this.bottom-this.scroll),Lt(this.$el,{position:"fixed",top:t+"px",width:this.width}),this.isActive=e,Ot(this.$el,this.clsBelow,this.scroll>this.bottomOffset),It(this.$el,this.clsFixed)}}};function Gr(e,t){var n=t.$props,r=t.$el,i=t[e+"Offset"],o=n[e];if(o){if(P(o))return i+B(o);if(D(o)&&o.match(/^-?\d+vh$/))return on(window)*B(o)/100;var a=!0===o?r.parentNode:se(o,r);return a?tn(a).top+a.offsetHeight:void 0}}var Zr={mixins:[zn],args:"connect",props:{connect:String,toggle:String,active:Number,swiping:Boolean},data:{connect:"~.uk-switcher",toggle:"> * > :first-child",active:0,swiping:!0,cls:"uk-active",clsContainer:"uk-switcher",attrItem:"uk-switcher-item",queued:!0},computed:{connects:function(e,t){var n=e.connect;return le(n,t)},toggles:function(e,t){var n=e.toggle;return Et(n,t)}},events:[{name:"click",delegate:function(){return this.toggle+":not(.uk-disabled)"},handler:function(e){e.preventDefault(),this.show(V(this.$el.children).filter(function(t){return Me(e.current,t)})[0])}},{name:"click",el:function(){return this.connects},delegate:function(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler:function(e){e.preventDefault(),this.show(ae(e.current,this.attrItem))}},{name:"swipeRight swipeLeft",filter:function(){return this.swiping},el:function(){return this.connects},handler:function(e){var t=e.type;this.show(g(t,"Left")?"next":"previous")}}],update:function(){var e=this;this.connects.forEach(function(t){return e.updateAria(t.children)});var t=this.$el,n=t.children;this.show(Se(n,"."+this.cls)[0]||n[this.active]||n[0])},methods:{index:function(){return!R(this.connects)&&ct(Se(this.connects[0].children,"."+this.cls)[0])},show:function(e){for(var t,n,r=this,i=this.$el,o=i.children,a=o.length,s=this.index(),l=s>=0,c="previous"===e?-1:1,u=ut(e,o,s),h=0;h<a;h++,u=(u+c+a)%a)if(!xe(this.toggles[u],".uk-disabled *, .uk-disabled, [disabled]")){t=this.toggles[u],n=o[u];break}!n||s>=0&&Ct(n,this.cls)||s===u||(Tt(o,this.cls),It(n,this.cls),re(this.toggles,"aria-expanded",!1),re(t,"aria-expanded",!0),this.connects.forEach(function(e){l?r.toggleElement([e.children[s],e.children[u]]):r.toggleNow(e.children[u])}))}}},Xr={mixins:[Fn],extends:Zr,props:{media:Boolean},data:{media:960,attrItem:"uk-tab-item"},connected:function(){var e=Ct(this.$el,"uk-tab-left")?"uk-tab-left":!!Ct(this.$el,"uk-tab-right")&&"uk-tab-right";e&&this.$create("toggle",this.$el,{cls:e,mode:"media",media:this.media})}},ei={mixins:[Nr,zn],args:"target",props:{href:String,target:null,mode:"list"},data:{href:!1,target:!1,mode:"click",queued:!0},computed:{target:function(e,t){var n=e.href,r=e.target;return(r=le(r||n,t)).length&&r||[t]}},connected:function(){Ne(this.target,"updatearia",[this])},events:[{name:ot+" "+at,filter:function(){return w(this.mode,"hover")},handler:function(e){Be(e)||this.toggle("toggle"+(e.type===ot?"show":"hide"))}},{name:"click",filter:function(){return w(this.mode,"click")||tt&&w(this.mode,"hover")},handler:function(e){var t;(be(e.target,'a[href="#"], a[href=""]')||(t=be(e.target,"a[href]"))&&(this.cls||!je(this.target)||t.hash&&xe(this.target,t.hash)))&&e.preventDefault(),this.toggle()}}],update:{read:function(){return!(!w(this.mode,"media")||!this.media)&&{match:this.matchMedia}},write:function(e){var t=e.match,n=this.isToggled(this.target);(t?!n:n)&&this.toggle()},events:["resize"]},methods:{toggle:function(e){Ne(this.target,e||"toggle",[this])&&this.toggleElement(this.target)}}};Ln.version="3.1.6",function(e){e.component("accordion",Bn),e.component("alert",Hn),e.component("cover",qn),e.component("drop",Kn),e.component("dropdown",Jn),e.component("formCustom",Gn),e.component("gif",Zn),e.component("grid",nr),e.component("heightMatch",ir),e.component("heightViewport",sr),e.component("icon",vr),e.component("img",$r),e.component("leader",Pr),e.component("margin",Xn),e.component("modal",zr),e.component("nav",Br),e.component("navbar",Hr),e.component("offcanvas",Vr),e.component("overflowAuto",Ur),e.component("responsive",Yr),e.component("scroll",qr),e.component("scrollspy",Qr),e.component("scrollspyNav",Kr),e.component("sticky",Jr),e.component("svg",cr),e.component("switcher",Zr),e.component("tab",Xr),e.component("toggle",ei),e.component("video",Yn),e.component("close",br),e.component("marker",yr),e.component("navbarToggleIcon",yr),e.component("overlayIcon",yr),e.component("paginationNext",yr),e.component("paginationPrevious",yr),e.component("searchIcon",wr),e.component("slidenavNext",xr),e.component("slidenavPrevious",xr),e.component("spinner",_r),e.component("totop",yr),e.use(Vn)}(Ln);var ti,ni={mixins:[Fn],props:{date:String,clsWrapper:String},data:{date:"",clsWrapper:".uk-countdown-%unit%"},computed:{date:function(e){var t=e.date;return Date.parse(t)},days:function(e,t){var n=e.clsWrapper;return At(n.replace("%unit%","days"),t)},hours:function(e,t){var n=e.clsWrapper;return At(n.replace("%unit%","hours"),t)},minutes:function(e,t){var n=e.clsWrapper;return At(n.replace("%unit%","minutes"),t)},seconds:function(e,t){var n=e.clsWrapper;return At(n.replace("%unit%","seconds"),t)},units:function(){var e=this;return["days","hours","minutes","seconds"].filter(function(t){return e[t]})}},connected:function(){this.start()},disconnected:function(){var e=this;this.stop(),this.units.forEach(function(t){return ht(e[t])})},events:[{name:"visibilitychange",el:document,handler:function(){document.hidden?this.stop():this.start()}}],update:{write:function(){var e,t,n=this,r=(e=this.date,{total:t=e-Date.now(),seconds:t/1e3%60,minutes:t/1e3/60%60,hours:t/1e3/60/60%24,days:t/1e3/60/60/24});r.total<=0&&(this.stop(),r.days=r.hours=r.minutes=r.seconds=0),this.units.forEach(function(e){var t=String(Math.floor(r[e]));t=t.length<2?"0"+t:t;var i=n[e];i.textContent!==t&&((t=t.split("")).length!==i.children.length&&ft(i,t.map(function(){return"<span></span>"}).join("")),t.forEach(function(e,t){return i.children[t].textContent=e}))})}},methods:{start:function(){var e=this;this.stop(),this.date&&this.units.length&&(this.$emit(),this.timer=setInterval(function(){return e.$emit()},1e3))},stop:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}}},ri="uk-animation-target",ii={props:{animation:Number},data:{animation:150},computed:{target:function(){return this.$el}},methods:{animate:function(e){var t=this;ti||(ti=dt(document.head,"<style>").sheet).insertRule("."+ri+" > * {\n margin-top: 0 !important;\n transform: none !important;\n }",0);var n=V(this.target.children),r=n.map(function(e){return oi(e,!0)}),i=on(this.target),o=window.pageYOffset;e(),qt.cancel(this.target),n.forEach(qt.cancel),ai(this.target),this.$update(this.target),bn.flush();var a=on(this.target),s=(n=n.concat(V(this.target.children).filter(function(e){return!w(n,e)}))).map(function(e,t){return!!(e.parentNode&&t in r)&&(r[t]?je(e)?si(e):{opacity:0}:{opacity:je(e)?1:0})});return r=s.map(function(e,i){var o=n[i].parentNode===t.target&&(r[i]||oi(n[i]));if(o)if(e){if(!("opacity"in e)){var a=o.opacity;a%1?e.opacity=1:delete o.opacity}}else delete o.opacity;return o}),It(this.target,ri),n.forEach(function(e,t){return r[t]&&Lt(e,r[t])}),Lt(this.target,"height",i),gn(window,o),Ve.all(n.map(function(e,n){return r[n]&&s[n]?qt.start(e,s[n],t.animation,"ease"):Ve.resolve()}).concat(qt.start(this.target,{height:a},this.animation,"ease"))).then(function(){n.forEach(function(e,t){return Lt(e,{display:0===s[t].opacity?"none":"",zIndex:""})}),ai(t.target),t.$update(t.target),bn.flush()},X)}}};function oi(e,t){var n=Lt(e,"zIndex");return!!je(e)&&Q({display:"",opacity:t?Lt(e,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:"auto"===n?ct(e):n},si(e))}function ai(e){Lt(e.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",width:""}),Tt(e,ri),Lt(e,"height","")}function si(e){var t=e.getBoundingClientRect(),n=t.height,r=t.width,i=rn(e),o=i.top,a=i.left;return{top:o+=B(Lt(e,"marginTop")),left:a,height:n,width:r}}var li={mixins:[ii],args:"target",props:{target:Boolean,selActive:Boolean},data:{target:null,selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",animation:250},computed:{toggles:{get:function(e,t){return e.attrItem,Et("["+this.attrItem+"],[data-"+this.attrItem+"]",t)},watch:function(){this.updateState()}},target:function(e,t){var n=e.target;return At(n,t)},children:{get:function(){return V(this.target&&this.target.children)},watch:function(e,t){var n,r;r=t,(n=e).length===r.length&&n.every(function(e){return~r.indexOf(e)})||this.updateState()}}},events:[{name:"click",delegate:function(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler:function(e){e.preventDefault(),this.apply(e.current)}}],connected:function(){var e=this;if(this.updateState(),!1!==this.selActive){var t=Et(this.selActive,this.$el);this.toggles.forEach(function(n){return Ot(n,e.cls,w(t,n))})}},methods:{apply:function(e){this.setState(ui(e,this.attrItem,this.getState()))},getState:function(){var e=this;return this.toggles.filter(function(t){return Ct(t,e.cls)}).reduce(function(t,n){return ui(n,e.attrItem,t)},{filter:{"":""},sort:[]})},setState:function(e,t){var n=this;void 0===t&&(t=!0),e=Q({filter:{"":""},sort:[]},e),Ne(this.$el,"beforeFilter",[this,e]);var r=this.children;this.toggles.forEach(function(t){return Ot(t,n.cls,!!function(e,t,n){var r=n.filter;void 0===r&&(r={"":""});var i=n.sort,o=i[0],a=i[1],s=ci(e,t),l=s.filter;void 0===l&&(l="");var c=s.group;void 0===c&&(c="");var u=s.sort,h=s.order;return void 0===h&&(h="asc"),L(u)?c in r&&l===r[c]||!l&&c&&!(c in r)&&!r[""]:o===u&&a===h}(t,n.attrItem,e))});var i=function(){var t=function(e){var t=e.filter,n="";return K(t,function(e){return n+=e||""}),n}(e);r.forEach(function(e){return Lt(e,"display",t&&!xe(e,t)?"none":"")});var i=e.sort,o=i[0],a=i[1];if(o){var s=function(e,t,n){return Q([],e).sort(function(e,r){return ae(e,t).localeCompare(ae(r,t),void 0,{numeric:!0})*("asc"===n||-1)})}(r,o,a);Y(s,r)||s.forEach(function(e){return dt(n.target,e)})}};t?this.animate(i).then(function(){return Ne(n.$el,"afterFilter",[n])}):(i(),Ne(this.$el,"afterFilter",[this]))},updateState:function(){var e=this;bn.write(function(){return e.setState(e.getState(),!1)})}}};function ci(e,t){return Cn(ae(e,t),["filter"])}function ui(e,t,n){var r=ci(e,t),i=r.filter,o=r.group,a=r.sort,s=r.order;return void 0===s&&(s="asc"),(i||L(a))&&(o?i?(delete n.filter[""],n.filter[o]=i):(delete n.filter[o],(R(n.filter)||""in n.filter)&&(n.filter={"":i||""})):n.filter={"":i||""}),L(a)||(n.sort=[a,s]),n}var hi={slide:{show:function(e){return[{transform:di(-100*e)},{transform:di()}]},percent:function(e){return fi(e)},translate:function(e,t){return[{transform:di(-100*t*e)},{transform:di(100*t*(1-e))}]}}};function fi(e){return Math.abs(Lt(e,"transform").split(",")[4]/e.offsetWidth)||0}function di(e,t){return void 0===e&&(e=0),void 0===t&&(t="%"),e+=e?t:"",Ge?"translateX("+e+")":"translate3d("+e+", 0, 0)"}function pi(e){return"scale3d("+e+", "+e+", 1)"}var gi=Q({},hi,{fade:{show:function(){return[{opacity:0},{opacity:1}]},percent:function(e){return 1-Lt(e,"opacity")},translate:function(e){return[{opacity:1-e},{opacity:e}]}},scale:{show:function(){return[{opacity:0,transform:pi(.8)},{opacity:1,transform:pi(1)}]},percent:function(e){return 1-Lt(e,"opacity")},translate:function(e){return[{opacity:1-e,transform:pi(1-.2*e)},{opacity:e,transform:pi(.8+.2*e)}]}}});function mi(e,t,n){Ne(e,Pe(t,!1,!1,n))}var vi={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected:function(){this.autoplay&&this.startAutoplay()},disconnected:function(){this.stopAutoplay()},update:function(){re(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:document,filter:function(){return this.autoplay},handler:function(){document.hidden?this.stopAutoplay():this.startAutoplay()}},{name:"mouseenter",filter:function(){return this.autoplay&&this.pauseOnHover},handler:function(){this.isHovering=!0}},{name:"mouseleave",filter:function(){return this.autoplay&&this.pauseOnHover},handler:function(){this.isHovering=!1}}],methods:{startAutoplay:function(){var e=this;this.stopAutoplay(),this.interval=setInterval(function(){return!Me(document.activeElement,e.$el)&&!e.isHovering&&!e.stack.length&&e.show("next")},this.autoplayInterval)},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}},yi={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created:function(){var e=this;["start","move","end"].forEach(function(t){var n=e[t];e[t]=function(t){var r=He(t).x*(Ze?-1:1);e.prevPos=r!==e.pos?e.pos:e.prevPos,e.pos=r,n(t)}})},events:[{name:nt,delegate:function(){return this.selSlides},handler:function(e){var t;!this.draggable||!Be(e)&&(!(t=e.target).children.length&&t.childNodes.length)||e.button>0||this.length<2||this.start(e)}},{name:"touchmove",passive:!1,handler:"move",delegate:function(){return this.selSlides}},{name:"dragstart",handler:function(e){e.preventDefault()}}],methods:{start:function(){var e=this;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;var t="touchmove"!==rt?Ce(document,rt,this.move,{passive:!1}):X;this.unbindMove=function(){t(),e.unbindMove=null},Ce(window,"scroll",this.unbindMove),Ce(document,it,this.end,!0),Lt(this.list,"userSelect","none")},move:function(e){var t=this;if(this.unbindMove){var n=this.pos-this.drag;if(!(0===n||this.prevPos===this.pos||!this.dragging&&Math.abs(n)<this.threshold)){Lt(this.list,"pointerEvents","none"),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=n<0?1:-1;for(var r=this.slides,i=this.prevIndex,o=Math.abs(n),a=this.getIndex(i+this.dir,i),s=this._getDistance(i,a)||r[i].offsetWidth;a!==i&&o>s;)this.drag-=s*this.dir,i=a,o-=s,a=this.getIndex(i+this.dir,i),s=this._getDistance(i,a)||r[i].offsetWidth;this.percent=o/s;var l,c=r[i],u=r[a],h=this.index!==a,f=i===a;[this.index,this.prevIndex].filter(function(e){return!w([a,i],e)}).forEach(function(e){Ne(r[e],"itemhidden",[t]),f&&(l=!0,t.prevIndex=i)}),(this.index===i&&this.prevIndex!==i||l)&&Ne(r[this.index],"itemshown",[this]),h&&(this.prevIndex=i,this.index=a,!f&&Ne(c,"beforeitemhide",[this]),Ne(u,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),c,!f&&u),h&&(!f&&Ne(c,"itemhide",[this]),Ne(u,"itemshow",[this]))}}},end:function(){if(Oe(window,"scroll",this.unbindMove),this.unbindMove&&this.unbindMove(),Oe(document,it,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{var e=(Ze?this.dir*(Ze?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}Lt(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}},xi={mixins:[vi,yi,{data:{selNav:!1},computed:{nav:function(e,t){var n=e.selNav;return At(n,t)},selNavItem:function(e){var t=e.attrItem;return"["+t+"],[data-"+t+"]"},navItems:function(e,t){return Et(this.selNavItem,t)}},update:{write:function(){var e=this;this.nav&&this.length!==this.nav.children.length&&ft(this.nav,this.slides.map(function(t,n){return"<li "+e.attrItem+'="'+n+'"><a href="#"></a></li>'}).join("")),Ot(Et(this.selNavItem,this.$el).concat(this.nav),"uk-hidden",!this.maxIndex),this.updateNav()},events:["resize"]},events:[{name:"click",delegate:function(){return this.selNavItem},handler:function(e){e.preventDefault(),this.show(ae(e.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav:function(){var e=this,t=this.getValidIndex();this.navItems.forEach(function(n){var r=ae(n,e.attrItem);Ot(n,e.clsActive,z(r)===t),Ot(n,"uk-invisible",e.finite&&("previous"===r&&0===t||"next"===r&&t>=e.maxIndex))})}}}],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},data:function(){return{easing:"ease",finite:!1,velocity:1,index:0,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}},computed:{duration:function(e,t){var n=e.velocity;return wi(t.offsetWidth/n)},length:function(){return this.slides.length},list:function(e,t){var n=e.selList;return At(n,t)},maxIndex:function(){return this.length-1},selSlides:function(e){var t=e.selList;return t+" > *"},slides:function(){return V(this.list.children)}},events:{itemshown:function(){this.$update(this.list)}},methods:{show:function(e,t){var n=this;if(void 0===t&&(t=!1),!this.dragging&&this.length){var r=this.stack,i=t?0:r.length,o=function(){r.splice(i,1),r.length&&n.show(r.shift(),!0)};if(r[t?"unshift":"push"](e),!t&&r.length>1)2===r.length&&this._transitioner.forward(Math.min(this.duration,200));else{var a=this.index,s=Ct(this.slides,this.clsActive)&&this.slides[a],l=this.getIndex(e,this.index),c=this.slides[l];if(s!==c){if(this.dir=function(e,t){return"next"===e?1:"previous"===e?-1:e<t?-1:1}(e,a),this.prevIndex=a,this.index=l,s&&Ne(s,"beforeitemhide",[this]),!Ne(c,"beforeitemshow",[this,s]))return this.index=this.prevIndex,void o();var u=this._show(s,c,t).then(function(){return s&&Ne(s,"itemhidden",[n]),Ne(c,"itemshown",[n]),new Ve(function(e){bn.write(function(){r.shift(),r.length?n.show(r.shift(),!0):n._transitioner=null,e()})})});return s&&Ne(s,"itemhide",[this]),Ne(c,"itemshow",[this]),u}o()}}},getIndex:function(e,t){return void 0===e&&(e=this.index),void 0===t&&(t=this.index),Z(ut(e,this.slides,t,this.finite),0,this.maxIndex)},getValidIndex:function(e,t){return void 0===e&&(e=this.index),void 0===t&&(t=this.prevIndex),this.getIndex(e,t)},_show:function(e,t,n){if(this._transitioner=this._getTransitioner(e,t,this.dir,Q({easing:n?t.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&&!e)return this._transitioner.translate(1),Ve.resolve();var r=this.stack,i=r.length;return this._transitioner[i>1?"forward":"show"](i>1?Math.min(this.duration,75+75/(i-1)):this.duration,this.percent)},_getDistance:function(e,t){return new this._getTransitioner(e,e!==t&&t).getDistance()},_translate:function(e,t,n){void 0===t&&(t=this.prevIndex),void 0===n&&(n=this.index);var r=this._getTransitioner(t!==n&&t,n);return r.translate(e),r},_getTransitioner:function(e,t,n,r){return void 0===e&&(e=this.prevIndex),void 0===t&&(t=this.index),void 0===n&&(n=this.dir||1),void 0===r&&(r=this.transitionOptions),new this.Transitioner(N(e)?this.slides[e]:e,N(t)?this.slides[t]:t,n*(Ze?-1:1),r)}}};function wi(e){return.5*e+300}var bi={mixins:[xi],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:hi,Transitioner:function(e,t,n,r){var i=r.animation,o=r.easing,a=i.percent,s=i.translate,l=i.show;void 0===l&&(l=X);var c=l(n),u=new We;return{dir:n,show:function(r,i,a){var s=this;void 0===i&&(i=0);var l=a?"linear":o;return r-=Math.round(r*Z(i,-1,1)),this.translate(i),mi(t,"itemin",{percent:i,duration:r,timing:l,dir:n}),mi(e,"itemout",{percent:1-i,duration:r,timing:l,dir:n}),Ve.all([qt.start(t,c[1],r,l),qt.start(e,c[0],r,l)]).then(function(){s.reset(),u.resolve()},X),u.promise},stop:function(){return qt.stop([t,e])},cancel:function(){qt.cancel([t,e])},reset:function(){for(var n in c[0])Lt([t,e],n,"")},forward:function(n,r){return void 0===r&&(r=this.percent()),qt.cancel([t,e]),this.show(n,r,!0)},translate:function(r){this.reset();var i=s(r,n);Lt(t,i[1]),Lt(e,i[0]),mi(t,"itemtranslatein",{percent:r,dir:n}),mi(e,"itemtranslateout",{percent:1-r,dir:n})},percent:function(){return a(e||t,t,n)},getDistance:function(){return e&&e.offsetWidth}}}},computed:{animation:function(e){var t=e.animation,n=e.Animations;return Q(t in n?n[t]:n.slide,{name:t})},transitionOptions:function(){return{animation:this.animation}}},events:{"itemshow itemhide itemshown itemhidden":function(e){var t=e.target;this.$update(t)},beforeitemshow:function(e){var t=e.target;It(t,this.clsActive)},itemshown:function(e){var t=e.target;It(t,this.clsActivated)},itemhidden:function(e){var t=e.target;Tt(t,this.clsActive,this.clsActivated)}}},_i={mixins:[Rr,Lr,zn,bi],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:function(){return{preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",pauseOnHover:!1,velocity:2,Animations:gi,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href="#" uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href="#" uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}},created:function(){var e=this;this.$mount(dt(this.container,this.template)),this.caption=At(".uk-lightbox-caption",this.$el),this.items.forEach(function(){return dt(e.list,"<li></li>")})},events:[{name:rt+" "+nt+" keydown",handler:"showControls"},{name:"click",self:!0,delegate:function(){return this.selSlides},handler:function(e){e.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler:function(){this.showControls()}},{name:"hide",self:!0,handler:function(){this.hideControls(),Tt(this.slides,this.clsActive),qt.stop(this.slides)}},{name:"hidden",self:!0,handler:function(){this.$destroy(!0)}},{name:"keyup",el:document,handler:function(e){if(this.isToggled(this.$el))switch(e.keyCode){case 37:this.show("previous");break;case 39:this.show("next")}}},{name:"beforeitemshow",handler:function(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleNow(this.$el,!0),this.animation=gi.scale,Tt(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler:function(e){var t=e.target,n=ct(t),r=this.getItem(n),i=r.caption;Lt(this.caption,"display",i?"":"none"),ft(this.caption,i);for(var o=0;o<=this.preload;o++)this.loadItem(this.getIndex(n+o)),this.loadItem(this.getIndex(n-o))}},{name:"itemshown",handler:function(){this.draggable=this.$props.draggable}},{name:"itemload",handler:function(e,t){var n,r=this,i=t.source,o=t.type,a=t.alt;if(this.setItem(t,"<span uk-spinner></span>"),i)if("image"===o||i.match(/\.(jp(e)?g|png|gif|svg|webp)($|\?)/i))Je(i).then(function(e){return r.setItem(t,'<img width="'+e.width+'" height="'+e.height+'" src="'+i+'" alt="'+(a||"")+'">')},function(){return r.setError(t)});else if("video"===o||i.match(/\.(mp4|webm|ogv)($|\?)/i)){var s=At("<video controls playsinline"+(t.poster?' poster="'+t.poster+'"':"")+' uk-video="'+this.videoAutoplay+'"></video>');re(s,"src",i),De(s,"error loadedmetadata",function(e){"error"===e?r.setError(t):(re(s,{width:s.videoWidth,height:s.videoHeight}),r.setItem(t,s))})}else if("iframe"===o||i.match(/\.(html|php)($|\?)/i))this.setItem(t,'<iframe class="uk-lightbox-iframe" src="'+i+'" frameborder="0" allowfullscreen></iframe>');else if(n=i.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/watch\?v=([^&\s]+)/)||i.match(/()youtu\.be\/(.*)/)){var l=n[2],c=function(e,i){return void 0===e&&(e=640),void 0===i&&(i=450),r.setItem(t,$i("https://www.youtube"+(n[1]||"")+".com/embed/"+l,e,i,r.videoAutoplay))};Je("https://img.youtube.com/vi/"+l+"/maxresdefault.jpg").then(function(e){var t=e.width,n=e.height;120===t&&90===n?Je("https://img.youtube.com/vi/"+l+"/0.jpg").then(function(e){var t=e.width,n=e.height;return c(t,n)},c):c(t,n)},c)}else(n=i.match(/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/))&&Ke("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(i),{responseType:"json",withCredentials:!1}).then(function(e){var i=e.response,o=i.height,a=i.width;return r.setItem(t,$i("https://player.vimeo.com/video/"+n[2],a,o,r.videoAutoplay))},function(){return r.setError(t)})}}],methods:{loadItem:function(e){void 0===e&&(e=this.index);var t=this.getItem(e);t.content||Ne(this.$el,"itemload",[t])},getItem:function(e){return void 0===e&&(e=this.index),this.items[e]||{}},setItem:function(e,t){Q(e,{content:t});var n=ft(this.slides[this.items.indexOf(e)],t);Ne(this.$el,"itemloaded",[this,n]),this.$update(n)},setError:function(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls:function(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),It(this.$el,"uk-active","uk-transition-active")},hideControls:function(){Tt(this.$el,"uk-active","uk-transition-active")}}};function $i(e,t,n,r){return'<iframe src="'+e+'" width="'+t+'" height="'+n+'" style="max-width: 100%; box-sizing: border-box;" frameborder="0" allowfullscreen uk-video="autoplay: '+r+'" uk-responsive></iframe>'}var ki,Ai={install:function(e,t){e.lightboxPanel||e.component("lightboxPanel",_i),Q(t.props,e.component("lightboxPanel").options.props)},props:{toggle:String},data:{toggle:"a"},computed:{toggles:{get:function(e,t){var n=e.toggle;return Et(n,t)},watch:function(){this.hide()}},items:function(){return G(this.toggles.map(Ei),"source")}},disconnected:function(){this.hide()},events:[{name:"click",delegate:function(){return this.toggle+":not(.uk-disabled)"},handler:function(e){e.preventDefault();var t=ae(e.current,"href");this.show(_(this.items,function(e){var n=e.source;return n===t}))}}],methods:{show:function(e){var t=this;return this.panel=this.panel||this.$create("lightboxPanel",Q({},this.$props,{items:this.items})),Ce(this.panel.$el,"hidden",function(){return t.panel=!1}),this.panel.show(e)},hide:function(){return this.panel&&this.panel.hide()}}};function Ei(e){return["href","caption","type","poster","alt"].reduce(function(t,n){return t["href"===n?"source":n]=ae(e,n),t},{})}var ji={},Ii={functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:function(e){e.notification.closeAll=function(t,n){kt(document.body,function(r){var i=e.getComponent(r,"notification");!i||t&&t!==i.group||i.close(n)})}},computed:{marginProp:function(e){var t=e.pos;return"margin"+(d(t,"top")?"Top":"Bottom")},startProps:function(){var e;return(e={opacity:0})[this.marginProp]=-this.$el.offsetHeight,e}},created:function(){ji[this.pos]||(ji[this.pos]=dt(this.$container,'<div class="uk-notification uk-notification-'+this.pos+'"></div>'));var e=Lt(ji[this.pos],"display","block");this.$mount(dt(e,'<div class="'+this.clsMsg+(this.status?" "+this.clsMsg+"-"+this.status:"")+'"> <a href="#" class="'+this.clsClose+'" data-uk-close></a> <div>'+this.message+"</div> </div>"))},connected:function(){var e,t=this,n=B(Lt(this.$el,this.marginProp));qt.start(Lt(this.$el,this.startProps),(e={opacity:1},e[this.marginProp]=n,e)).then(function(){t.timeout&&(t.timer=setTimeout(t.close,t.timeout))})},events:(ki={click:function(e){be(e.target,'a[href="#"],a[href=""]')&&e.preventDefault(),this.close()}},ki[ot]=function(){this.timer&&clearTimeout(this.timer)},ki[at]=function(){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},ki),methods:{close:function(e){var t=this,n=function(){Ne(t.$el,"close",[t]),vt(t.$el),ji[t.pos].children.length||Lt(ji[t.pos],"display","none")};this.timer&&clearTimeout(this.timer),e?n():qt.start(this.$el,this.startProps).then(n)}}},Ti=["x","y","bgx","bgy","rotate","scale","color","backgroundColor","borderColor","opacity","blur","hue","grayscale","invert","saturate","sepia","fopacity","stroke"],Si={mixins:[Nr],props:Ti.reduce(function(e,t){return e[t]="list",e},{}),data:Ti.reduce(function(e,t){return e[t]=void 0,e},{}),computed:{props:function(e,t){var n=this;return Ti.reduce(function(r,i){if(L(e[i]))return r;var o,a,s,l=i.match(/color/i),c=l||"opacity"===i,u=e[i].slice(0);c&&Lt(t,i,""),u.length<2&&u.unshift(("scale"===i?1:c?Lt(t,i):0)||0);var h=function(e){return e.reduce(function(e,t){return D(t)&&t.replace(/-|\d/g,"").trim()||e},"")}(u);if(l){var f=t.style,p=f.color;u=u.map(function(e){return Lt(Lt(t,"color",e),"color").split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(B)}),t.style.color=p}else if(d(i,"bg")){var g="bgy"===i?"height":"width";if(u=u.map(function(e){return vn(e,g,n.$el)}),Lt(t,"background-position-"+i[2],""),a=Lt(t,"backgroundPosition").split(" ")["x"===i[2]?0:1],n.covers){var m=Math.min.apply(Math,u),v=Math.max.apply(Math,u),y=u.indexOf(m)<u.indexOf(v);s=v-m,u=u.map(function(e){return e-(y?m:v)}),o=(y?-s:0)+"px"}else o=a}else u=u.map(B);if("stroke"===i){if(!u.some(function(e){return e}))return r;var x=dr(n.$el);Lt(t,"strokeDasharray",x),"%"===h&&(u=u.map(function(e){return e*x/100})),u=u.reverse(),i="strokeDashoffset"}return r[i]={steps:u,unit:h,pos:o,bgPos:a,diff:s},r},{})},bgProps:function(){var e=this;return["bgx","bgy"].filter(function(t){return t in e.props})},covers:function(e,t){return function(e){var t=e.style.backgroundSize,n="cover"===Lt(Lt(e,"backgroundSize",""),"backgroundSize");return e.style.backgroundSize=t,n}(t)}},disconnected:function(){delete this._image},update:{read:function(e){var t=this;if(e.active=this.matchMedia,e.active){if(!e.image&&this.covers&&this.bgProps.length){var n=Lt(this.$el,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(n){var r=new Image;r.src=n,e.image=r,r.naturalWidth||(r.onload=function(){return t.$emit()})}}var i=e.image;if(i&&i.naturalWidth){var o={width:this.$el.offsetWidth,height:this.$el.offsetHeight},a={width:i.naturalWidth,height:i.naturalHeight},s=ne.cover(a,o);this.bgProps.forEach(function(e){var n=t.props[e],r=n.diff,i=n.bgPos,l=n.steps,c="bgy"===e?"height":"width",u=s[c]-o[c];if(u<r)o[c]=s[c]+r-u;else if(u>r){var h=o[c]/vn(i,c,t.$el);h&&(t.props[e].steps=l.map(function(e){return e-(u-r)/h}))}s=ne.cover(a,o)}),e.dim=s}}},write:function(e){var t=e.dim,n=e.active;n?t&&Lt(this.$el,{backgroundSize:t.width+"px "+t.height+"px",backgroundRepeat:"no-repeat"}):Lt(this.$el,{backgroundSize:"",backgroundRepeat:""})},events:["resize"]},methods:{reset:function(){var e=this;K(this.getCss(0),function(t,n){return Lt(e.$el,n,"")})},getCss:function(e){var t=this.props;return Object.keys(t).reduce(function(n,r){var i=t[r],o=i.steps,a=i.unit,s=i.pos,l=function(e,t,n){void 0===n&&(n=2);var r=Mi(e,t),i=r[0],o=r[1],a=r[2];return(N(i)?i+Math.abs(i-o)*a*(i<o?1:-1):+o).toFixed(n)}(o,e);switch(r){case"x":case"y":a=a||"px",n.transform+=" translate"+u(r)+"("+B(l).toFixed("px"===a?0:2)+a+")";break;case"rotate":a=a||"deg",n.transform+=" rotate("+(l+a)+")";break;case"scale":n.transform+=" scale("+l+")";break;case"bgy":case"bgx":n["background-position-"+r[2]]="calc("+s+" + "+l+"px)";break;case"color":case"backgroundColor":case"borderColor":var c=Mi(o,e),h=c[0],f=c[1],d=c[2];n[r]="rgba("+h.map(function(e,t){return e+=d*(f[t]-e),3===t?B(e):parseInt(e,10)}).join(",")+")";break;case"blur":a=a||"px",n.filter+=" blur("+(l+a)+")";break;case"hue":a=a||"deg",n.filter+=" hue-rotate("+(l+a)+")";break;case"fopacity":a=a||"%",n.filter+=" opacity("+(l+a)+")";break;case"grayscale":case"invert":case"saturate":case"sepia":a=a||"%",n.filter+=" "+r+"("+(l+a)+")";break;default:n[r]=l}return n},{transform:"",filter:""})}}};function Mi(e,t){var n=e.length-1,r=Math.min(Math.floor(n*t),n-1),i=e.slice(r,r+2);return i.push(1===t?1:t%(1/n)*n),i}var Ci={mixins:[Si],props:{target:String,viewport:Number,easing:Number},data:{target:!1,viewport:1,easing:1},computed:{target:function(e,t){var n=e.target;return function e(t){return t?"offsetTop"in t?t:e(t.parentNode):document.body}(n&&se(n,t)||t)}},update:{read:function(e,t){var n=e.percent,r=e.active;if("scroll"!==t&&(n=!1),r){var i=n;return{percent:n=function(e,t){return Z(e*(1-(t-t*e)))}(pn(this.target)/(this.viewport||1),this.easing),style:i!==n&&this.getCss(n)}}},write:function(e){var t=e.style,n=e.active;n?t&&Lt(this.$el,t):this.reset()},events:["scroll","resize"]}},Oi={update:{write:function(){if(!this.stack.length&&!this.dragging){var e=this.getValidIndex();delete this.index,Tt(this.slides,this.clsActive,this.clsActivated),this.show(e)}},events:["resize"]}};function Di(e,t,n){var r=Ri(e,t);return n?r-function(e,t){return Li(t).width/2-Li(e).width/2}(e,t):Math.min(r,Ni(t))}function Ni(e){return Math.max(0,Pi(e)-Li(e).width)}function Pi(e){return zi(e).reduce(function(e,t){return Li(t).width+e},0)}function Ri(e,t){return(rn(e).left+(Ze?Li(e).width-Li(t).width:0))*(Ze?-1:1)}function Li(e){return e.getBoundingClientRect()}function Fi(e,t,n){Ne(e,Pe(t,!1,!1,n))}function zi(e){return V(e.children)}var Bi={mixins:[Fn,xi,Oi],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",Transitioner:function(e,t,n,r){var i=r.center,o=r.easing,a=r.list,s=new We,l=e?Di(e,a,i):Di(t,a,i)+Li(t).width*n,c=t?Di(t,a,i):l+Li(e).width*n*(Ze?-1:1);return{dir:n,show:function(t,r,i){void 0===r&&(r=0);var l=i?"linear":o;return t-=Math.round(t*Z(r,-1,1)),this.translate(r),e&&this.updateTranslates(),r=e?r:Z(r,0,1),Fi(this.getItemIn(),"itemin",{percent:r,duration:t,timing:l,dir:n}),e&&Fi(this.getItemIn(!0),"itemout",{percent:1-r,duration:t,timing:l,dir:n}),qt.start(a,{transform:di(-c*(Ze?-1:1),"px")},t,l).then(s.resolve,X),s.promise},stop:function(){return qt.stop(a)},cancel:function(){qt.cancel(a)},reset:function(){Lt(a,"transform","")},forward:function(e,t){return void 0===t&&(t=this.percent()),qt.cancel(a),this.show(e,t,!0)},translate:function(t){var r=this.getDistance()*n*(Ze?-1:1);Lt(a,"transform",di(Z(r-r*t-c,-Pi(a),Li(a).width)*(Ze?-1:1),"px")),this.updateTranslates(),e&&(t=Z(t,-1,1),Fi(this.getItemIn(),"itemtranslatein",{percent:t,dir:n}),Fi(this.getItemIn(!0),"itemtranslateout",{percent:1-t,dir:n}))},percent:function(){return Math.abs((Lt(a,"transform").split(",")[4]*(Ze?-1:1)+l)/(c-l))},getDistance:function(){return Math.abs(c-l)},getItemIn:function(t){void 0===t&&(t=!1);var r=this.getActives(),i=J(zi(a),"offsetLeft"),o=ct(i,r[n*(t?-1:1)>0?r.length-1:0]);return~o&&i[o+(e&&!t?n:0)]},getActives:function(){var n=Di(e||t,a,i);return J(zi(a).filter(function(e){var t=Ri(e,a);return t>=n&&t+Li(e).width<=Li(a).width+n}),"offsetLeft")},updateTranslates:function(){var e=this.getActives();zi(a).forEach(function(n){var r=w(e,n);Fi(n,"itemtranslate"+(r?"in":"out"),{percent:r?1:0,dir:n.offsetLeft<=t.offsetLeft?1:-1})})}}}},computed:{avgWidth:function(){return Pi(this.list)/this.length},finite:function(e){var t=e.finite;return t||Pi(this.list)<Li(this.list).width+zi(this.list).reduce(function(e,t){return Math.max(e,Li(t).width)},0)+this.center},maxIndex:function(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return this.sets[this.sets.length-1];Lt(this.slides,"order","");for(var e=Ni(this.list),t=this.length;t--;)if(Ri(this.list.children[t],this.list)<e)return Math.min(t+1,this.length-1);return 0},sets:function(e){var t=this,n=e.sets,r=Li(this.list).width/(this.center?2:1),i=0,o=r,a=0;return!R(n=n&&this.slides.reduce(function(e,n,s){var l=Li(n),c=l.width,u=a+c;if(u>i&&(!t.center&&s>t.maxIndex&&(s=t.maxIndex),!w(e,s))){var h=t.slides[s+1];t.center&&h&&c<o-Li(h).width/2?o-=c:(o=r,e.push(s),i=a+r+(t.center?c/2:0))}return a+=c,e},[]))&&n},transitionOptions:function(){return{center:this.center,list:this.list}}},connected:function(){Ot(this.$el,this.clsContainer,!At("."+this.clsContainer,this.$el))},update:{write:function(){var e=this;Et("["+this.attrItem+"],[data-"+this.attrItem+"]",this.$el).forEach(function(t){var n=ae(t,e.attrItem);e.maxIndex&&Ot(t,"uk-hidden",P(n)&&(e.sets&&!w(e.sets,B(n))||n>e.maxIndex))})},events:["resize"]},events:{beforeitemshow:function(e){!this.dragging&&this.sets&&this.stack.length<2&&!w(this.sets,this.index)&&(this.index=this.getValidIndex());var t=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&&t>1){for(var n=0;n<t;n++)this.stack.splice(1,0,this.dir>0?"next":"previous");e.preventDefault()}else this.duration=wi(this.avgWidth/this.velocity)*(Li(this.dir<0||!this.slides[this.prevIndex]?this.slides[this.index]:this.slides[this.prevIndex]).width/this.avgWidth),this.reorder()},itemshow:function(){!L(this.prevIndex)&&It(this._getTransitioner().getItemIn(),this.clsActive)},itemshown:function(){var e=this,t=this._getTransitioner(this.index).getActives();this.slides.forEach(function(n){return Ot(n,e.clsActive,w(t,n))}),(!this.sets||w(this.sets,B(this.index)))&&this.slides.forEach(function(n){return Ot(n,e.clsActivated,w(t,n))})}},methods:{reorder:function(){var e=this;if(Lt(this.slides,"order",""),!this.finite){var t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach(function(n,r){return Lt(n,"order",e.dir>0&&r<t?1:e.dir<0&&r>=e.index?-1:"")}),this.center)for(var n=this.slides[t],r=Li(this.list).width/2-Li(n).width/2,i=0;r>0;){var o=this.getIndex(--i+t,t),a=this.slides[o];Lt(a,"order",o>t?-2:-1),r-=Li(a).width}}},getValidIndex:function(e,t){if(void 0===e&&(e=this.index),void 0===t&&(t=this.prevIndex),e=this.getIndex(e,t),!this.sets)return e;var n;do{if(w(this.sets,e))return e;n=e,e=this.getIndex(e+this.dir,t)}while(e!==n);return e}}},Hi={mixins:[Si],data:{selItem:"!li"},computed:{item:function(e,t){var n=e.selItem;return se(n,t)}},events:[{name:"itemshown",self:!0,el:function(){return this.item},handler:function(){Lt(this.$el,this.getCss(.5))}},{name:"itemin itemout",self:!0,el:function(){return this.item},handler:function(e){var t=e.type,n=e.detail,r=n.percent,i=n.duration,o=n.timing,a=n.dir;qt.cancel(this.$el),Lt(this.$el,this.getCss(Wi(t,a,r))),qt.start(this.$el,this.getCss(Vi(t)?.5:a>0?1:0),i,o).catch(X)}},{name:"transitioncanceled transitionend",self:!0,el:function(){return this.item},handler:function(){qt.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:function(){return this.item},handler:function(e){var t=e.type,n=e.detail,r=n.percent,i=n.dir;qt.cancel(this.$el),Lt(this.$el,this.getCss(Wi(t,i,r)))}}]};function Vi(e){return g(e,"in")}function Wi(e,t,n){return n/=2,Vi(e)?t<0?1-n:n:t<0?n:1-n}var Ui,Yi=Q({},hi,{fade:{show:function(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent:function(e){return 1-Lt(e,"opacity")},translate:function(e){return[{opacity:1-e,zIndex:0},{zIndex:-1}]}},scale:{show:function(){return[{opacity:0,transform:pi(1.5),zIndex:0},{zIndex:-1}]},percent:function(e){return 1-Lt(e,"opacity")},translate:function(e){return[{opacity:1-e,transform:pi(1+.5*e),zIndex:0},{zIndex:-1}]}},pull:{show:function(e){return e<0?[{transform:di(30),zIndex:-1},{transform:di(),zIndex:0}]:[{transform:di(-100),zIndex:0},{transform:di(),zIndex:-1}]},percent:function(e,t,n){return n<0?1-fi(t):fi(e)},translate:function(e,t){return t<0?[{transform:di(30*e),zIndex:-1},{transform:di(-100*(1-e)),zIndex:0}]:[{transform:di(100*-e),zIndex:0},{transform:di(30*(1-e)),zIndex:-1}]}},push:{show:function(e){return e<0?[{transform:di(100),zIndex:0},{transform:di(),zIndex:-1}]:[{transform:di(-30),zIndex:-1},{transform:di(),zIndex:0}]},percent:function(e,t,n){return n>0?1-fi(t):fi(e)},translate:function(e,t){return t<0?[{transform:di(100*e),zIndex:0},{transform:di(-30*(1-e)),zIndex:-1}]:[{transform:di(-30*e),zIndex:-1},{transform:di(100*(1-e)),zIndex:0}]}}}),qi={mixins:[Fn,bi,Oi],props:{ratio:String,minHeight:Number,maxHeight:Number},data:{ratio:"16:9",minHeight:!1,maxHeight:!1,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:Yi},update:{read:function(){var e=this.ratio.split(":").map(Number),t=e[0],n=e[1];return n=n*this.list.offsetWidth/t||0,this.minHeight&&(n=Math.max(this.minHeight,n)),this.maxHeight&&(n=Math.min(this.maxHeight,n)),{height:n-ln(this.list,"content-box")}},write:function(e){var t=e.height;Lt(this.list,"minHeight",t)},events:["resize"]}},Qi={mixins:[Fn,ii],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1},created:function(){var e=this;["init","start","move","end"].forEach(function(t){var n=e[t];e[t]=function(t){e.scrollY=window.pageYOffset;var r=He(t,"page"),i=r.x,o=r.y;e.pos={x:i,y:o},n(t)}})},events:{name:nt,passive:!1,handler:"init"},update:{write:function(){if(this.clsEmpty&&Ot(this.$el,this.clsEmpty,R(this.$el.children)),Lt(this.handle?Et(this.handle,this.$el):this.$el.children,{touchAction:"none",userSelect:"none"}),this.drag){tn(this.drag,{top:this.pos.y+this.origin.top,left:this.pos.x+this.origin.left});var e,t=tn(this.drag),n=t.top,r=t.height,i=n+r;n>0&&n<this.scrollY?e=this.scrollY-5:i<on(document)&&i>on(window)+this.scrollY&&(e=this.scrollY+5),e&&setTimeout(function(){return gn(window,e)},5)}}},methods:{init:function(e){var t=e.target,n=e.button,r=e.defaultPrevented,i=V(this.$el.children).filter(function(e){return Me(t,e)}),o=i[0];!o||r||n>0||Te(t)||Me(t,"."+this.clsNoDrag)||this.handle&&!Me(t,this.handle)||(e.preventDefault(),this.touched=[this],this.placeholder=o,this.origin=Q({target:t,index:ct(o)},this.pos),Ce(document,rt,this.move),Ce(document,it,this.end),Ce(window,"scroll",this.scroll),this.threshold||this.start(e))},start:function(e){this.drag=dt(this.$container,this.placeholder.outerHTML.replace(/^<li/i,"<div").replace(/li>$/i,"div>")),Lt(this.drag,Q({boxSizing:"border-box",width:this.placeholder.offsetWidth,height:this.placeholder.offsetHeight},Lt(this.placeholder,["paddingLeft","paddingRight","paddingTop","paddingBottom"]))),re(this.drag,"uk-no-boot",""),It(this.drag,this.clsDrag,this.clsCustom),on(this.drag.firstElementChild,on(this.placeholder.firstElementChild));var t=tn(this.placeholder),n=t.left,r=t.top;Q(this.origin,{left:n-this.pos.x,top:r-this.pos.y}),It(this.placeholder,this.clsPlaceholder),It(this.$el.children,this.clsItem),It(document.documentElement,this.clsDragState),Ne(this.$el,"start",[this,this.placeholder]),this.move(e)},move:function(e){if(this.drag){this.$emit();var t="mousemove"===e.type?e.target:document.elementFromPoint(this.pos.x-window.pageXOffset,this.pos.y-window.pageYOffset),n=this.getSortable(t),r=this.getSortable(this.placeholder),i=n!==r;if(n&&!Me(t,this.placeholder)&&(!i||n.group&&n.group===r.group)){if(t=n.$el===t.parentNode&&t||V(n.$el.children).filter(function(e){return Me(t,e)})[0],i)r.remove(this.placeholder);else if(!t)return;n.insert(this.placeholder,t),w(this.touched,n)||this.touched.push(n)}}else(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(e)},end:function(e){if(Oe(document,rt,this.move),Oe(document,it,this.end),Oe(window,"scroll",this.scroll),this.drag){var t=this.getSortable(this.placeholder);this===t?this.origin.index!==ct(this.placeholder)&&Ne(this.$el,"moved",[this,this.placeholder]):(Ne(t.$el,"added",[t,this.placeholder]),Ne(this.$el,"removed",[this,this.placeholder])),Ne(this.$el,"stop",[this,this.placeholder]),vt(this.drag),this.drag=null;var n=this.touched.map(function(e){return e.clsPlaceholder+" "+e.clsItem}).join(" ");this.touched.forEach(function(e){return Tt(e.$el.children,n)}),Tt(document.documentElement,this.clsDragState)}else"touchend"===e.type&&e.target.click()},scroll:function(){var e=window.pageYOffset;e!==this.scrollY&&(this.pos.y+=e-this.scrollY,this.scrollY=e,this.$emit())},insert:function(e,t){var n=this;It(this.$el.children,this.clsItem);var r=function(){t?!Me(e,n.$el)||function(e,t){return e.parentNode===t.parentNode&&ct(e)>ct(t)}(e,t)?pt(t,e):gt(t,e):dt(n.$el,e)};this.animation?this.animate(r):r()},remove:function(e){Me(e,this.$el)&&(Lt(this.handle?Et(this.handle,e):e,{touchAction:"",userSelect:""}),this.animation?this.animate(function(){return vt(e)}):vt(e))},getSortable:function(e){return e&&(this.$getComponent(e,"sortable")||this.getSortable(e.parentNode))}}},Ki=[],Ji={mixins:[Rr,zn,Qn],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["uk-animation-scale-up"],duration:100,cls:"uk-active",clsPos:"uk-tooltip"},beforeConnect:function(){this._hasTitle=ie(this.$el,"title"),re(this.$el,{title:"","aria-expanded":!1})},disconnected:function(){this.hide(),re(this.$el,{title:this._hasTitle?this.title:null,"aria-expanded":null})},methods:{show:function(){var e=this;this.isActive()||(Ki.forEach(function(e){return e.hide()}),Ki.push(this),this._unbind=Ce(document,it,function(t){return!Me(t.target,e.$el)&&e.hide()}),clearTimeout(this.showTimer),this.showTimer=setTimeout(function(){e._show(),e.hideTimer=setInterval(function(){je(e.$el)||e.hide()},150)},this.delay))},hide:function(){!this.isActive()||xe(this.$el,"input")&&this.$el===document.activeElement||(Ki.splice(Ki.indexOf(this),1),clearTimeout(this.showTimer),clearInterval(this.hideTimer),re(this.$el,"aria-expanded",!1),this.toggleElement(this.tooltip,!1),this.tooltip&&vt(this.tooltip),this.tooltip=!1,this._unbind())},_show:function(){this.tooltip=dt(this.container,'<div class="'+this.clsPos+'" aria-expanded="true" aria-hidden> <div class="'+this.clsPos+'-inner">'+this.title+"</div> </div>"),this.positionAt(this.tooltip,this.$el),this.origin="y"===this.getAxis()?fn(this.dir)+"-"+this.align:this.align+"-"+fn(this.dir),this.toggleElement(this.tooltip,!0)},isActive:function(){return w(Ki,this)}},events:(Ui={focus:"show",blur:"hide"},Ui[ot+" "+at]=function(e){Be(e)||(e.type===ot?this.show():this.hide())},Ui[nt]=function(e){Be(e)&&(this.isActive()?this.hide():this.show())},Ui)},Gi={props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,msgInvalidMime:String,msgInvalidName:String,msgInvalidSize:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"uk-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,msgInvalidMime:"Invalid File Type: %s",msgInvalidName:"Invalid File Name: %s",msgInvalidSize:"Invalid File Size: %s Kilobytes Max",multiple:!1,name:"files[]",params:{},type:"",url:"",abort:X,beforeAll:X,beforeSend:X,complete:X,completeAll:X,error:X,fail:X,load:X,loadEnd:X,loadStart:X,progress:X},events:{change:function(e){xe(e.target,'input[type="file"]')&&(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop:function(e){Xi(e);var t=e.dataTransfer;t&&t.files&&(Tt(this.$el,this.clsDragover),this.upload(t.files))},dragenter:function(e){Xi(e)},dragover:function(e){Xi(e),It(this.$el,this.clsDragover)},dragleave:function(e){Xi(e),Tt(this.$el,this.clsDragover)}},methods:{upload:function(e){var t=this;if(e.length){Ne(this.$el,"upload",[e]);for(var n=0;n<e.length;n++){if(this.maxSize&&1e3*this.maxSize<e[n].size)return void this.fail(this.msgInvalidSize.replace("%s",this.maxSize));if(this.allow&&!Zi(this.allow,e[n].name))return void this.fail(this.msgInvalidName.replace("%s",this.allow));if(this.mime&&!Zi(this.mime,e[n].type))return void this.fail(this.msgInvalidMime.replace("%s",this.mime))}this.multiple||(e=[e[0]]),this.beforeAll(this,e);var r=function(e,t){for(var n=[],r=0;r<e.length;r+=t){for(var i=[],o=0;o<t;o++)i.push(e[r+o]);n.push(i)}return n}(e,this.concurrent),i=function(e){var n=new FormData;for(var o in e.forEach(function(e){return n.append(t.name,e)}),t.params)n.append(o,t.params[o]);Ke(t.url,{data:n,method:t.method,responseType:t.type,beforeSend:function(e){var n=e.xhr;n.upload&&Ce(n.upload,"progress",t.progress),["loadStart","load","loadEnd","abort"].forEach(function(e){return Ce(n,e.toLowerCase(),t[e])}),t.beforeSend(e)}}).then(function(e){t.complete(e),r.length?i(r.shift()):t.completeAll(e)},function(e){return t.error(e)})};i(r.shift())}}}};function Zi(e,t){return t.match(new RegExp("^"+e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function Xi(e){e.preventDefault(),e.stopPropagation()}return Ln.component("countdown",ni),Ln.component("filter",li),Ln.component("lightbox",Ai),Ln.component("lightboxPanel",_i),Ln.component("notification",Ii),Ln.component("parallax",Ci),Ln.component("slider",Bi),Ln.component("sliderParallax",Hi),Ln.component("slideshow",qi),Ln.component("slideshowParallax",Hi),Ln.component("sortable",Qi),Ln.component("tooltip",Ji),Ln.component("upload",Gi),function(e){var t=e.connect,n=e.disconnect;function r(){o(document.body,t),bn.flush(),new MutationObserver(function(e){return e.forEach(i)}).observe(document,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),e._initialized=!0}function i(r){var i=r.target,a=r.type,s="attributes"!==a?function(e){for(var r=e.addedNodes,i=e.removedNodes,a=0;a<r.length;a++)o(r[a],t);for(var s=0;s<i.length;s++)o(i[s],n);return!0}(r):function(t){var n=t.target,r=t.attributeName;if("href"===r)return!0;var i=Rn(r);if(i&&i in e){if(ie(n,r))return e[i](n),!0;var o=e.getComponent(n,i);return o?(o.$destroy(),!0):void 0}}(r);s&&e.update(i)}function o(e,t){if(1===e.nodeType&&!ie(e,"uk-no-boot"))for(t(e),e=e.firstElementChild;e;){var n=e.nextElementSibling;o(e,t),e=n}}"MutationObserver"in window&&(document.body?r():new MutationObserver(function(){document.body&&(this.disconnect(),r())}).observe(document,{childList:!0,subtree:!0}))}(Ln),Ln}()});function Th(e){var t,n,r;const i=e.$$slots.default,o=l(i,e,null);return{c(){t=g("div"),n=g("div"),o&&o.c(),w(n,"class","uk-modal-dialog uk-modal-body"),w(n,"uk-overflow-auto",""),w(t,"uk-modal","")},l(e){o&&o.l(div0_nodes)},m(i,a){f(i,t,a),h(t,n),o&&o.m(n,null),e.div1_binding(t),r=!0},p(e,t){o&&o.p&&e.$$scope&&o.p(u(i,t,e,null),c(i,t,null))},i(e){r||(V(o,e),r=!0)},o(e){W(o,e),r=!1},d(n){n&&d(t),o&&o.d(n),e.div1_binding(null)}}}function Sh(e,t,n){let r,{isOpen:i=!1,onClosed:o=(()=>{})}=t,a=!1,{$$slots:s={},$$scope:l}=t;return e.$set=(e=>{"isOpen"in e&&n("isOpen",i=e.isOpen),"onClosed"in e&&n("onClosed",o=e.onClosed),"$$scope"in e&&n("$$scope",l=e.$$scope)}),e.$$.update=((e={ukModal:1,listenerAdded:1,onClosed:1,isOpen:1})=>{(e.ukModal||e.listenerAdded||e.onClosed)&&r&&!a&&(n("listenerAdded",a=!0),r.addEventListener("hide",o)),(e.ukModal||e.isOpen)&&r&&(i?Ih.modal(r).show():Ih.modal(r).hide())}),{isOpen:i,onClosed:o,ukModal:r,div1_binding:function(e){S[e?"unshift":"push"](()=>{n("ukModal",r=e)})},$$slots:s,$$scope:l}}class Mh extends G{constructor(e){super(),J(this,e,Sh,Th,a,["isOpen","onClosed"])}}function Ch(e,t,n){const r=Object.create(e);return r.index=t[n],r}function Oh(e,t,n){const r=Object.create(e);return r.field=t[n],r}function Dh(e){var t,n,r,i;function o(n){e.textbox0_text_binding.call(null,n),t=!0,P(()=>t=!1)}let a={label:"Collection Name"};void 0!==e.record.collectionName&&(a.text=e.record.collectionName);var s=new Cu({props:a});function l(t){e.textbox1_text_binding.call(null,t),r=!0,P(()=>r=!1)}S.push(()=>Y(s,"text",o));let c={label:"Shard Factor"};void 0!==e.record.allidsShardFactor&&(c.text=e.record.allidsShardFactor);var u=new Cu({props:c});return S.push(()=>Y(u,"text",l)),{c(){s.$$.fragment.c(),n=v(),u.$$.fragment.c()},m(e,t){q(s,e,t),f(e,n,t),q(u,e,t),i=!0},p(e,n){var i={};!t&&e.record&&(i.text=n.record.collectionName),s.$set(i);var o={};!r&&e.record&&(o.text=n.record.allidsShardFactor),u.$set(o)},i(e){i||(V(s.$$.fragment,e),V(u.$$.fragment,e),i=!0)},o(e){W(s.$$.fragment,e),W(u.$$.fragment,e),i=!1},d(e){Q(s,e),e&&d(n),Q(u,e)}}}function Nh(t){var n;return{c(){n=m("(no fields added)")},m(e,t){f(e,n,t)},p:e,d(e){e&&d(n)}}}function Ph(e){for(var t,n,r,i,o=e.record.fields,a=[],s=0;s<o.length;s+=1)a[s]=Rh(Oh(e,o,s));return{c(){t=g("table"),(n=g("thead")).innerHTML='<tr class="svelte-gq7l8x"><th class="svelte-gq7l8x">Name</th> <th class="svelte-gq7l8x">Type</th> <th class="svelte-gq7l8x">Options</th> <th class="svelte-gq7l8x"></th></tr>',r=v(),i=g("tbody");for(var e=0;e<a.length;e+=1)a[e].c();w(n,"class","svelte-gq7l8x"),w(i,"class","svelte-gq7l8x"),w(t,"class","fields-table uk-table svelte-gq7l8x")},m(e,o){f(e,t,o),h(t,n),h(t,r),h(t,i);for(var s=0;s<a.length;s+=1)a[s].m(i,null)},p(e,t){if(e.getIcon||e.getTypeOptions||e.record){o=t.record.fields;for(var n=0;n<o.length;n+=1){const r=Oh(t,o,n);a[n]?a[n].p(e,r):(a[n]=Rh(r),a[n].c(),a[n].m(i,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=o.length}},d(e){e&&d(t),p(a,e)}}}function Rh(e){var t,n,r,o,a,s,l,c,u,p,y,$,k,A,E,j,I,T,S,M=e.field.label,C=e.field.name,O=e.field.type,D=e.getTypeOptions(e.field.typeOptions),N=vu("edit"),P=vu("trash");function R(){return e.click_handler(e)}function L(){return e.click_handler_1(e)}return{c(){t=g("tr"),n=g("td"),r=g("div"),o=m(M),a=v(),s=g("div"),l=m(C),c=v(),u=g("td"),p=m(O),y=v(),$=g("td"),k=v(),A=g("td"),E=g("span"),j=v(),I=g("span"),T=v(),_(s,"font-size","0.7em"),_(s,"color","var(--slate)"),w(n,"class","svelte-gq7l8x"),w(u,"class","svelte-gq7l8x"),w($,"class","svelte-gq7l8x"),w(E,"class","edit-button svelte-gq7l8x"),w(I,"class","edit-button svelte-gq7l8x"),w(A,"class","svelte-gq7l8x"),w(t,"class","svelte-gq7l8x"),S=[x(E,"click",R),x(I,"click",L)]},m(e,i){f(e,t,i),h(t,n),h(n,r),h(r,o),h(n,a),h(n,s),h(s,l),h(t,c),h(t,u),h(u,p),h(t,y),h(t,$),$.innerHTML=D,h(t,k),h(t,A),h(A,E),E.innerHTML=N,h(A,j),h(A,I),I.innerHTML=P,h(t,T)},p(t,n){e=n,t.record&&M!==(M=e.field.label)&&b(o,M),t.record&&C!==(C=e.field.name)&&b(l,C),t.record&&O!==(O=e.field.type)&&b(p,O),t.record&&D!==(D=e.getTypeOptions(e.field.typeOptions))&&($.innerHTML=D)},d(e){e&&d(t),i(S)}}}function Lh(e){var t,n;function r(n){e.modal_isOpen_binding.call(null,n),t=!0,P(()=>t=!1)}let i={$$slots:{default:[Fh]},$$scope:{ctx:e}};void 0!==e.editingField&&(i.isOpen=e.editingField);var o=new Mh({props:i});return S.push(()=>Y(o,"isOpen",r)),{c(){o.$$.fragment.c()},m(e,t){q(o,e,t),n=!0},p(e,n){var r={};(e.$$scope||e.fieldToEdit||e.onFinishedFieldEdit||e.record||e.$database)&&(r.$$scope={changed:e,ctx:n}),!t&&e.editingField&&(r.isOpen=n.editingField),o.$set(r)},i(e){n||(V(o.$$.fragment,e),n=!0)},o(e){W(o.$$.fragment,e),n=!1},d(e){Q(o,e)}}}function Fh(e){var t,n=new jh({props:{field:e.fieldToEdit,onFinished:e.onFinishedFieldEdit,allFields:e.record.fields,database:e.$database}});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},p(e,t){var r={};e.fieldToEdit&&(r.field=t.fieldToEdit),e.onFinishedFieldEdit&&(r.onFinished=t.onFinishedFieldEdit),e.record&&(r.allFields=t.record.fields),e.$database&&(r.database=t.$database),n.$set(r)},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function zh(e){var t;return{c(){t=m("(no indexes added)")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function Bh(e){var t,n,r,i,o,a=e.index.filter;return{c(){t=g("div"),(n=g("span")).textContent="filter:",r=v(),i=g("code"),o=m(a),w(n,"class","index-label svelte-gq7l8x"),w(i,"class","index-mapfilter svelte-gq7l8x"),w(t,"class","index-field-row svelte-gq7l8x")},m(e,a){f(e,t,a),h(t,n),h(t,r),h(t,i),h(i,o)},p(e,t){e.record&&a!==(a=t.index.filter)&&b(o,a)},d(e){e&&d(t)}}}function Hh(e){var t,n,r,i,o,a,s,l,c,u,p,y,$,k,A,E,j,I,T,S,M,C,O,D,N,P=e.index.name,R=vu("edit"),L=e.getIndexAllowedRecords(e.index),F=e.index.indexType,z=e.index.map;function B(){return e.click_handler_2(e)}var H=e.index.filter&&Bh(e);return{c(){t=g("div"),n=g("div"),r=m(P),i=v(),o=g("span"),a=v(),s=g("div"),(l=g("span")).textContent="records indexed:",c=v(),u=g("span"),p=m(L),y=v(),($=g("span")).textContent="type:",k=v(),A=g("span"),E=m(F),j=v(),I=g("div"),(T=g("span")).textContent="map:",S=v(),M=g("code"),C=m(z),O=v(),H&&H.c(),D=v(),_(o,"margin-left","7px"),w(n,"class","index-name svelte-gq7l8x"),w(l,"class","index-label svelte-gq7l8x"),w($,"class","index-label svelte-gq7l8x"),_($,"margin-left","15px"),w(s,"class","index-field-row svelte-gq7l8x"),w(T,"class","index-label svelte-gq7l8x"),w(M,"class","index-mapfilter svelte-gq7l8x"),w(I,"class","index-field-row svelte-gq7l8x"),w(t,"class","index-container svelte-gq7l8x"),N=x(o,"click",B)},m(e,d){f(e,t,d),h(t,n),h(n,r),h(n,i),h(n,o),o.innerHTML=R,h(t,a),h(t,s),h(s,l),h(s,c),h(s,u),h(u,p),h(s,y),h(s,$),h(s,k),h(s,A),h(A,E),h(t,j),h(t,I),h(I,T),h(I,S),h(I,M),h(M,C),h(t,O),H&&H.m(t,null),h(t,D)},p(n,i){e=i,n.record&&P!==(P=e.index.name)&&b(r,P),(n.getIndexAllowedRecords||n.record)&&L!==(L=e.getIndexAllowedRecords(e.index))&&b(p,L),n.record&&F!==(F=e.index.indexType)&&b(E,F),n.record&&z!==(z=e.index.map)&&b(C,z),e.index.filter?H?H.p(n,e):((H=Bh(e)).c(),H.m(t,D)):H&&(H.d(1),H=null)},d(e){e&&d(t),H&&H.d(),N()}}}function Vh(e){var t,n,r,i,o,a,s,l,c,u,y,_,$,k,A,E,j,I=e.record.nodeKey(),T=vu("plus");function M(t){e.textbox_text_binding.call(null,t),n=!0,P(()=>n=!1)}let C={label:"Name"};void 0!==e.record.name&&(C.text=e.record.name);var O=new Cu({props:C});S.push(()=>Y(O,"text",M));var D=!e.record.isSingle&&Dh(e);function N(e){return e.record.fields.length>0?Ph:Nh}for(var R=N(e),L=R(e),F=e.editingField&&Lh(e),z=e.record.indexes,U=[],K=0;K<z.length;K+=1)U[K]=Hh(Ch(e,z,K));var J=null;return z.length||(J=zh()).c(),{c(){t=g("div"),O.$$.fragment.c(),r=v(),i=g("div"),o=m(I),a=v(),D&&D.c(),s=v(),l=g("h4"),c=m("Fields "),u=g("span"),y=v(),L.c(),_=v(),F&&F.c(),$=v(),(k=g("h4")).textContent="Indexes",A=v();for(var n=0;n<U.length;n+=1)U[n].c();w(u,"class","add-field-button svelte-gq7l8x"),w(t,"class","root svelte-gq7l8x"),j=x(u,"click",e.newField)},m(e,n){f(e,t,n),q(O,t,null),h(t,r),h(t,i),h(i,o),h(t,a),D&&D.m(t,null),h(t,s),h(t,l),h(l,c),h(l,u),u.innerHTML=T,h(t,y),L.m(t,null),h(t,_),F&&F.m(t,null),h(t,$),h(t,k),h(t,A);for(var d=0;d<U.length;d+=1)U[d].m(t,null);J&&J.m(t,null),E=!0},p(e,r){var i={};if(!n&&e.record&&(i.text=r.record.name),O.$set(i),E&&!e.record||I===(I=r.record.nodeKey())||b(o,I),r.record.isSingle?D&&(B(),W(D,1,1,()=>{D=null}),H()):D?(D.p(e,r),V(D,1)):((D=Dh(r)).c(),V(D,1),D.m(t,s)),R===(R=N(r))&&L?L.p(e,r):(L.d(1),(L=R(r))&&(L.c(),L.m(t,_))),r.editingField?F?(F.p(e,r),V(F,1)):((F=Lh(r)).c(),V(F,1),F.m(t,$)):F&&(B(),W(F,1,1,()=>{F=null}),H()),e.record||e.getIndexAllowedRecords||e.getIcon){z=r.record.indexes;for(var a=0;a<z.length;a+=1){const n=Ch(r,z,a);U[a]?U[a].p(e,n):(U[a]=Hh(n),U[a].c(),U[a].m(t,null))}for(;a<U.length;a+=1)U[a].d(1);U.length=z.length}z.length?J&&(J.d(1),J=null):J||((J=zh()).c(),J.m(t,null))},i(e){E||(V(O.$$.fragment,e),V(D),V(F),E=!0)},o(e){W(O.$$.fragment,e),W(D),W(F),E=!1},d(e){e&&d(t),Q(O),D&&D.d(),L.d(),F&&F.d(),p(U,e),J&&J.d(),j()}}}function Wh(e,t,n){let r,i,o;s(e,au,e=>{n("$database",r=e)});let a,l,c,u,h,f,d=!1;au.subscribe(e=>{n("record",i=e.currentNode);const t=po.getFlattenedHierarchy(e.hierarchy);n("getIndexAllowedRecords",o=(e=>kc(e.allowedRecordNodeIds,[we(e=>ye(t=>t.nodeId===e)(t)),xe(e=>Ae(t=>t.nodeId===e)(t).name),We(", ")]))),n("newField",l=(()=>{n("fieldToEdit",a=Ic(e.hierarchy).getNewField("string")),n("editingField",d=!0)})),n("onFinishedFieldEdit",h=(e=>{e&&au.saveField(e),n("editingField",d=!1)})),n("editField",c=(e=>{n("fieldToEdit",a=e),n("editingField",d=!0)})),n("deleteField",u=(e=>{au.deleteField(e)})),n("editIndex",f=(e=>{au.selectExistingNode(e.nodeId)}))});return{record:i,getIndexAllowedRecords:o,editingField:d,fieldToEdit:a,newField:l,editField:c,deleteField:u,onFinishedFieldEdit:h,editIndex:f,getTypeOptions:e=>kc(e,[Fe,xe(t=>`<span style="color:var(--slate)">${t}: </span>${(e=>e===Number.MAX_SAFE_INTEGER||e===Number.MIN_SAFE_INTEGER||new Date(e).getTime()===new Date(864e13).getTime()||new Date(e).getTime()===new Date(-864e13).getTime()?"(any)":null===e?"(not set)":e)(e[t])}`),We("<br>")]),$database:r,textbox_text_binding:function(e){i.name=e,n("record",i)},textbox0_text_binding:function(e){i.collectionName=e,n("record",i)},textbox1_text_binding:function(e){i.allidsShardFactor=e,n("record",i)},click_handler:function({field:e}){return c(e)},click_handler_1:function({field:e}){return u(e)},modal_isOpen_binding:function(e){n("editingField",d=e)},click_handler_2:function({index:e}){return f(e)}}}class Uh extends G{constructor(e){super(),J(this,e,Wh,Vh,a,[])}}function Yh(t){var n,r,i,o,a;return{c(){n=g("div"),r=m(t.label),i=v(),w(o=g("textarea"),"class","svelte-1ooq0hh"),a=x(o,"input",t.textarea_input_handler)},m(e,a){f(e,n,a),h(n,r),f(e,i,a),f(e,o,a),o.value=t.text},p(e,t){e.label&&b(r,t.label),e.text&&(o.value=t.text)},i:e,o:e,d(e){e&&(d(n),d(i),d(o)),a()}}}function qh(e,t,n){let{text:r="",label:i=""}=t;return e.$set=(e=>{"text"in e&&n("text",r=e.text),"label"in e&&n("label",i=e.label)}),{text:r,label:i,textarea_input_handler:function(){r=this.value,n("text",r)}}}class Qh extends G{constructor(e){super(),J(this,e,qh,Yh,a,["text","label"])}}function Kh(e,t,n){const r=Object.create(e);return r.rec=t[n],r}function Jh(e){var t,n,r,i,o,a,s=e.rec.node.name;function l(){return e.change_handler(e)}return{c(){t=g("input"),r=v(),i=g("span"),o=m(s),w(t,"type","checkbox"),t.checked=n=e.rec.isallowed,w(i,"class","svelte-1fkfoam"),a=x(t,"change",l)},m(e,n){f(e,t,n),f(e,r,n),f(e,i,n),h(i,o)},p(r,i){e=i,r.indexableRecords&&n!==(n=e.rec.isallowed)&&(t.checked=n),r.indexableRecords&&s!==(s=e.rec.node.name)&&b(o,s)},d(e){e&&(d(t),d(r),d(i)),a()}}}function Gh(e){var t,n,r,i,o,a,s,l,c,u,m,y,x,b,_;function $(t){e.textbox_text_binding.call(null,t),n=!0,P(()=>n=!1)}let k={label:"Name"};void 0!==e.index.name&&(k.text=e.index.name);var A=new Cu({props:k});S.push(()=>Y(A,"text",$));for(var E=e.indexableRecords,j=[],I=0;I<E.length;I+=1)j[I]=Jh(Kh(e,E,I));function T(t){e.dropdown_selected_binding.call(null,t),l=!0,P(()=>l=!1)}let M={label:"Index Type",options:["ancestor","reference"]};void 0!==e.index.indexType&&(M.selected=e.index.indexType);var C=new Bu({props:M});function O(t){e.codearea0_text_binding.call(null,t),u=!0,P(()=>u=!1)}S.push(()=>Y(C,"selected",T));let D={label:"Map (javascript)"};void 0!==e.index.map&&(D.text=e.index.map);var N=new Qh({props:D});function R(t){e.codearea1_text_binding.call(null,t),y=!0,P(()=>y=!1)}S.push(()=>Y(N,"text",O));let L={label:"Filter (javascript expression)"};void 0!==e.index.filter&&(L.text=e.index.filter);var F=new Qh({props:L});function z(t){e.codearea2_text_binding.call(null,t),b=!0,P(()=>b=!1)}S.push(()=>Y(F,"text",R));let B={label:"Shard Name (javascript expression)"};void 0!==e.index.getShardName&&(B.text=e.index.getShardName);var H=new Qh({props:B});return S.push(()=>Y(H,"text",z)),{c(){t=g("div"),A.$$.fragment.c(),r=v(),i=g("div"),(o=g("div")).textContent="Records to Index",a=v();for(var e=0;e<j.length;e+=1)j[e].c();s=v(),C.$$.fragment.c(),c=v(),N.$$.fragment.c(),m=v(),F.$$.fragment.c(),x=v(),H.$$.fragment.c(),w(i,"class","allowed-records svelte-1fkfoam"),w(t,"class","root svelte-1fkfoam")},m(e,n){f(e,t,n),q(A,t,null),h(t,r),h(t,i),h(i,o),h(i,a);for(var l=0;l<j.length;l+=1)j[l].m(i,null);h(t,s),q(C,t,null),h(t,c),q(N,t,null),h(t,m),q(F,t,null),h(t,x),q(H,t,null),_=!0},p(e,t){var r={};if(!n&&e.index&&(r.text=t.index.name),A.$set(r),e.indexableRecords){E=t.indexableRecords;for(var o=0;o<E.length;o+=1){const n=Kh(t,E,o);j[o]?j[o].p(e,n):(j[o]=Jh(n),j[o].c(),j[o].m(i,null))}for(;o<j.length;o+=1)j[o].d(1);j.length=E.length}var a={};!l&&e.index&&(a.selected=t.index.indexType),C.$set(a);var s={};!u&&e.index&&(s.text=t.index.map),N.$set(s);var c={};!y&&e.index&&(c.text=t.index.filter),F.$set(c);var h={};!b&&e.index&&(h.text=t.index.getShardName),H.$set(h)},i(e){_||(V(A.$$.fragment,e),V(C.$$.fragment,e),V(N.$$.fragment,e),V(F.$$.fragment,e),V(H.$$.fragment,e),_=!0)},o(e){W(A.$$.fragment,e),W(C.$$.fragment,e),W(N.$$.fragment,e),W(F.$$.fragment,e),W(H.$$.fragment,e),_=!1},d(e){e&&d(t),Q(A),p(j,e),Q(C),Q(N),Q(F),Q(H)}}}function Zh(e,t,n){const r=Li.$;let i,o=[];au.subscribe(e=>{n("index",i=e.currentNode),n("indexableRecords",o=r(e.hierarchy,[po.getFlattenedHierarchy,we(po.isDecendant(i.parent())),we(po.isRecord),xe(e=>({node:e,isallowed:ye(t=>e.nodeId===t)(i.allowedRecordNodeIds)}))]))});const a=e=>{e.isallowed?(i.allowedRecordNodeIds=we(t=>t!==e.node.nodeId)(i.allowedRecordNodeIds),n("index",i)):i.allowedRecordNodeIds.push(e.node.nodeId)};return{index:i,indexableRecords:o,toggleAllowedRecord:a,textbox_text_binding:function(e){i.name=e,n("index",i)},change_handler:function({rec:e}){return a(e)},dropdown_selected_binding:function(e){i.indexType=e,n("index",i)},codearea0_text_binding:function(e){i.map=e,n("index",i)},codearea1_text_binding:function(e){i.filter=e,n("index",i)},codearea2_text_binding:function(e){i.getShardName=e,n("index",i)}}}class Xh extends G{constructor(e){super(),J(this,e,Zh,Gh,a,[])}}function ef(e){var t;return{c(){t=m("Update")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function tf(e){var t;return{c(){t=m("Create")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function nf(e){var t;function n(e){return e.$database.currentNodeIsNew?tf:ef}var r=n(e),i=r(e);return{c(){i.c(),t=y()},m(e,n){i.m(e,n),f(e,t,n)},p(e,o){r!==(r=n(o))&&(i.d(1),(i=r(o))&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&d(t)}}}function rf(e){var t,n=new ee({props:{color:"secondary",grouped:!0,$$slots:{default:[of]},$$scope:{ctx:e}}});return n.$on("click",e.openConfirmDelete),{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function of(e){var t;return{c(){t=m("Delete")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function af(e){var t,n,r,i=new ee({props:{color:"secondary",grouped:!0,$$slots:{default:[nf]},$$scope:{ctx:e}}});i.$on("click",au.saveCurrentNode);var o=!e.$database.currentNodeIsNew&&rf(e);return{c(){i.$$.fragment.c(),t=v(),o&&o.c(),n=y()},m(e,a){q(i,e,a),f(e,t,a),o&&o.m(e,a),f(e,n,a),r=!0},p(e,t){var r={};(e.$$scope||e.$database)&&(r.$$scope={changed:e,ctx:t}),i.$set(r),t.$database.currentNodeIsNew?o&&(B(),W(o,1,1,()=>{o=null}),H()):o?V(o,1):((o=rf(t)).c(),V(o,1),o.m(n.parentNode,n))},i(e){r||(V(i.$$.fragment,e),V(o),r=!0)},o(e){W(i.$$.fragment,e),W(o),r=!1},d(e){Q(i,e),e&&d(t),o&&o.d(e),e&&d(n)}}}function sf(e){var t,n,r=new nh({props:{errors:e.$database.errors}});return{c(){t=g("div"),r.$$.fragment.c(),_(t,"width","500px")},m(e,i){f(e,t,i),q(r,t,null),n=!0},p(e,t){var n={};e.$database&&(n.errors=t.$database.errors),r.$set(n)},i(e){n||(V(r.$$.fragment,e),n=!0)},o(e){W(r.$$.fragment,e),n=!1},d(e){e&&d(t),Q(r)}}}function lf(e){var t;return{c(){t=m("Yes")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function cf(e){var t;return{c(){t=m("No")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function uf(e){var t,n,r,i,o,a,s,l,c=e.$database.currentNode.name,u=new ee({props:{color:"primary",$$slots:{default:[lf]},$$scope:{ctx:e}}});u.$on("click",e.deleteCurrentNode);var p=new ee({props:{color:"secondary",$$slots:{default:[cf]},$$scope:{ctx:e}}});return p.$on("click",e.click_handler),{c(){t=g("div"),n=m("Are you sure you want to delete "),r=m(c),i=m(" ?"),o=v(),a=g("div"),u.$$.fragment.c(),s=v(),p.$$.fragment.c(),_(t,"margin","10px 0px 20px 0px"),_(a,"float","right")},m(e,c){f(e,t,c),h(t,n),h(t,r),h(t,i),f(e,o,c),f(e,a,c),q(u,a,null),h(a,s),q(p,a,null),l=!0},p(e,t){l&&!e.$database||c===(c=t.$database.currentNode.name)||b(r,c);var n={};e.$$scope&&(n.$$scope={changed:e,ctx:t}),u.$set(n);var i={};e.$$scope&&(i.$$scope={changed:e,ctx:t}),p.$set(i)},i(e){l||(V(u.$$.fragment,e),V(p.$$.fragment,e),l=!0)},o(e){W(u.$$.fragment,e),W(p.$$.fragment,e),l=!1},d(e){e&&(d(t),d(o),d(a)),Q(u),Q(p)}}}function hf(e){var t,n,r,i,o,a=new Wu({props:{$$slots:{default:[af]},$$scope:{ctx:e}}}),s=!!e.$database.errors&&e.$database.errors.length>0&&sf(e);function l(t){e.modal_isOpen_binding.call(null,t),i=!0,P(()=>i=!1)}let c={$$slots:{default:[uf]},$$scope:{ctx:e}};void 0!==e.confirmDelete&&(c.isOpen=e.confirmDelete);var u=new Mh({props:c});return S.push(()=>Y(u,"isOpen",l)),{c(){t=g("div"),a.$$.fragment.c(),n=v(),s&&s.c(),r=v(),u.$$.fragment.c(),w(t,"class","root svelte-160njkp"),_(t,"left",e.left)},m(e,i){f(e,t,i),q(a,t,null),h(t,n),s&&s.m(t,null),h(t,r),q(u,t,null),o=!0},p(e,n){var l={};(e.$$scope||e.$database)&&(l.$$scope={changed:e,ctx:n}),a.$set(l),n.$database.errors&&n.$database.errors.length>0?s?(s.p(e,n),V(s,1)):((s=sf(n)).c(),V(s,1),s.m(t,r)):s&&(B(),W(s,1,1,()=>{s=null}),H());var c={};(e.$$scope||e.$database)&&(c.$$scope={changed:e,ctx:n}),!i&&e.confirmDelete&&(c.isOpen=n.confirmDelete),u.$set(c),o&&!e.left||_(t,"left",n.left)},i(e){o||(V(a.$$.fragment,e),V(s),V(u.$$.fragment,e),o=!0)},o(e){W(a.$$.fragment,e),W(s),W(u.$$.fragment,e),o=!1},d(e){e&&d(t),Q(a),s&&s.d(),Q(u)}}}function ff(e,t,n){let r;s(e,au,e=>{n("$database",r=e)});let{left:i}=t,o=!1;return e.$set=(e=>{"left"in e&&n("left",i=e.left)}),{left:i,confirmDelete:o,openConfirmDelete:()=>{n("confirmDelete",o=!0)},deleteCurrentNode:()=>{n("confirmDelete",o=!1),au.deleteCurrentNode()},$database:r,click_handler:function(){const e=o=!1;return n("confirmDelete",o),e},modal_isOpen_binding:function(e){n("confirmDelete",o=e)}}}class df extends G{constructor(e){super(),J(this,e,ff,hf,a,["left"])}}function pf(e,t,n){const r=Object.create(e);return r.action=t[n],r}function gf(e){var t,n,r,i,o=e.action.label;return{c(){t=g("div"),n=m(o),r=v(),w(t,"class","action-row svelte-179p8ge"),i=x(t,"click",e.action.onclick)},m(e,i){f(e,t,i),h(t,n),h(t,r)},p(t,r){e=r,t.actions&&o!==(o=e.action.label)&&b(n,o)},d(e){e&&d(t),i()}}}function mf(t){for(var n,r,o,a,s,l,c,u=vu(t.iconName),m=t.actions,y=[],b=0;b<m.length;b+=1)y[b]=gf(pf(t,m,b));return{c(){n=g("div"),r=g("noscript"),o=v(),a=g("div"),s=v(),l=g("div");for(var e=0;e<y.length;e+=1)y[e].c();var i;w(a,"class","dropdown-background svelte-179p8ge"),_(a,"display",t.isDroppedDown?"block":"none"),w(l,"class","dropdown-content svelte-179p8ge"),_(l,"display",t.isDroppedDown?"inline-block":"none"),w(n,"class","root svelte-179p8ge"),c=[x(a,"click",(i=t.click_handler,function(e){return e.stopPropagation(),i.call(this,e)})),x(n,"click",t.click_handler_1)]},m(e,t){f(e,n,t),h(n,r),r.insertAdjacentHTML("beforebegin",u),h(n,o),h(n,a),h(n,s),h(n,l);for(var i=0;i<y.length;i+=1)y[i].m(l,null)},p(e,t){if(e.iconName&&u!==(u=vu(t.iconName))&&(!function(e){for(;e.previousSibling;)e.parentNode.removeChild(e.previousSibling)}(r),r.insertAdjacentHTML("beforebegin",u)),e.isDroppedDown&&_(a,"display",t.isDroppedDown?"block":"none"),e.actions){m=t.actions;for(var n=0;n<m.length;n+=1){const r=pf(t,m,n);y[n]?y[n].p(e,r):(y[n]=gf(r),y[n].c(),y[n].m(l,null))}for(;n<y.length;n+=1)y[n].d(1);y.length=m.length}e.isDroppedDown&&_(l,"display",t.isDroppedDown?"inline-block":"none")},i:e,o:e,d(e){e&&d(n),p(y,e),i(c)}}}function vf(e,t,n){let{iconName:r,actions:i=[]}=t,o=!1;return e.$set=(e=>{"iconName"in e&&n("iconName",r=e.iconName),"actions"in e&&n("actions",i=e.actions)}),{iconName:r,actions:i,isDroppedDown:o,click_handler:function(){const e=o=!1;return n("isDroppedDown",o),e},click_handler_1:function(){const e=o=!o;return n("isDroppedDown",o),e}}}class yf extends G{constructor(e){super(),J(this,e,vf,mf,a,["iconName","actions"])}}function xf(e,t,n){const r=Object.create(e);return r.index=t[n],r}function wf(e,t,n){const r=Object.create(e);return r.record=t[n],r}function bf(e){var t,n=new Tu({props:{node:e.record}});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},p(e,t){var r={};e.$database&&(r.node=t.record),n.$set(r)},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function _f(e){var t,n=new Tu({props:{node:e.index}});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},p(e,t){var r={};e.$database&&(r.node=t.index),n.$set(r)},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function $f(e){var t,n=new df({props:{left:If}});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},p(e,t){var r={};e.hierarchyWidth&&(r.left=If),n.$set(r)},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function kf(e){var t,n=new Xh({});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function Af(e){var t,n=new Uh({});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function Ef(t){var n;return{c(){(n=g("h1")).textContent=":)",_(n,"margin-left","100px")},m(e,t){f(e,n,t)},i:e,o:e,d(e){e&&d(n)}}}function jf(e){for(var t,n,r,i,o,a,s,l,c,u,m,y,x,b,$,k,A,E,j,I=new yf({props:{iconName:"plus",actions:e.newRecordActions}}),T=e.$database.hierarchy.children,S=[],M=0;M<T.length;M+=1)S[M]=bf(wf(e,T,M));const C=e=>W(S[e],1,1,()=>{S[e]=null});var O=new yf({props:{iconName:"plus",actions:e.newIndexActions}}),D=e.$database.hierarchy.indexes,N=[];for(M=0;M<D.length;M+=1)N[M]=_f(xf(e,D,M));const P=e=>W(N[e],1,1,()=>{N[e]=null});var R=e.$database.currentNode&&$f(),L=[Ef,Af,kf],F=[];function z(e){return e.$database.currentNode?"record"===e.$database.currentNode.type?1:2:0}return A=z(e),E=F[A]=L[A](e),{c(){t=g("div"),n=g("div"),r=g("div"),(i=g("div")).textContent="Records",o=v(),I.$$.fragment.c(),a=v();for(var e=0;e<S.length;e+=1)S[e].c();s=v(),l=g("div"),(c=g("div")).textContent="Indexes",u=v(),O.$$.fragment.c(),m=v();for(e=0;e<N.length;e+=1)N[e].c();y=v(),x=g("div"),b=g("div"),R&&R.c(),$=v(),k=g("div"),E.c(),w(i,"class","hierarchy-title svelte-z7gm0t"),w(r,"class","hierarchy-title-row svelte-z7gm0t"),w(c,"class","hierarchy-title svelte-z7gm0t"),w(l,"class","hierarchy-title-row svelte-z7gm0t"),_(l,"margin-top","20px"),w(n,"class","hierarchy svelte-z7gm0t"),_(n,"width",If),w(b,"class","actions-header svelte-z7gm0t"),w(k,"class","node-view svelte-z7gm0t"),w(x,"class","node-container svelte-z7gm0t"),w(t,"class","root svelte-z7gm0t")},m(e,d){f(e,t,d),h(t,n),h(n,r),h(r,i),h(r,o),q(I,r,null),h(n,a);for(var p=0;p<S.length;p+=1)S[p].m(n,null);h(n,s),h(n,l),h(l,c),h(l,u),q(O,l,null),h(n,m);for(p=0;p<N.length;p+=1)N[p].m(n,null);h(t,y),h(t,x),h(x,b),R&&R.m(b,null),h(x,$),h(x,k),F[A].m(k,null),j=!0},p(e,t){var r={};if(e.newRecordActions&&(r.actions=t.newRecordActions),I.$set(r),e.$database){T=t.$database.hierarchy.children;for(var i=0;i<T.length;i+=1){const r=wf(t,T,i);S[i]?(S[i].p(e,r),V(S[i],1)):(S[i]=bf(r),S[i].c(),V(S[i],1),S[i].m(n,s))}for(B(),i=T.length;i<S.length;i+=1)C(i);H()}var o={};if(e.newIndexActions&&(o.actions=t.newIndexActions),O.$set(o),e.$database){D=t.$database.hierarchy.indexes;for(i=0;i<D.length;i+=1){const r=xf(t,D,i);N[i]?(N[i].p(e,r),V(N[i],1)):(N[i]=_f(r),N[i].c(),V(N[i],1),N[i].m(n,null))}for(B(),i=D.length;i<N.length;i+=1)P(i);H()}j&&!e.hierarchyWidth||_(n,"width",If),t.$database.currentNode?R?(R.p(e,t),V(R,1)):((R=$f()).c(),V(R,1),R.m(b,null)):R&&(B(),W(R,1,1,()=>{R=null}),H());var a=A;(A=z(t))!==a&&(B(),W(F[a],1,1,()=>{F[a]=null}),H(),(E=F[A])||(E=F[A]=L[A](t)).c(),V(E,1),E.m(k,null))},i(e){if(!j){V(I.$$.fragment,e);for(var t=0;t<T.length;t+=1)V(S[t]);V(O.$$.fragment,e);for(t=0;t<D.length;t+=1)V(N[t]);V(R),V(E),j=!0}},o(e){W(I.$$.fragment,e),S=S.filter(Boolean);for(let e=0;e<S.length;e+=1)W(S[e]);W(O.$$.fragment,e),N=N.filter(Boolean);for(let e=0;e<N.length;e+=1)W(N[e]);W(R),W(E),j=!1},d(e){e&&d(t),Q(I),p(S,e),Q(O),p(N,e),R&&R.d(),F[A].d()}}}const If="200px";function Tf(e,t,n){let r;s(e,au,e=>{n("$database",r=e)});const i=[{label:"New Root Index",onclick:au.newRootIndex}],o=[{label:"New Root Record",onclick:au.newRootRecord}];let a=i,l=o;return au.subscribe(e=>{!e.currentNode||po.isIndex(e.currentNode)?(n("newRecordActions",l=o),n("newIndexActions",a=i)):(n("newRecordActions",l=[...o,{label:`New Child Record of ${e.currentNode.name}`,onclick:au.newChildRecord}]),n("newIndexActions",a=[...i,{label:`New Index on ${e.currentNode.name}`,onclick:au.newChildIndex}]))}),{newIndexActions:a,newRecordActions:l,$database:r}}class Sf extends G{constructor(e){super(),J(this,e,Tf,jf,a,[])}}function Mf(t){var n,r,i,o;return{c(){n=g("div"),r=g("h4"),i=m("Coming Sometime: "),o=m(t.name),w(r,"class","svelte-o0id5a")},m(e,t){f(e,n,t),h(n,r),h(r,i),h(r,o)},p(e,t){e.name&&b(o,t.name)},i:e,o:e,d(e){e&&d(n)}}}function Cf(e,t,n){let{name:r=""}=t;return e.$set=(e=>{"name"in e&&n("name",r=e.name)}),{name:r}}class Of extends G{constructor(e){super(),J(this,e,Cf,Mf,a,["name"])}}function Df(t){var n,r=new Of({props:{name:"User Interface Designer"}});return{c(){r.$$.fragment.c()},m(e,t){q(r,e,t),n=!0},p:e,i(e){n||(V(r.$$.fragment,e),n=!0)},o(e){W(r.$$.fragment,e),n=!1},d(e){Q(r,e)}}}class Nf extends G{constructor(e){super(),J(this,e,null,Df,a,[])}}function Pf(e,t,n){const r=Object.create(e);return r.option=t[n],r}function Rf(e){var t;return{c(){t=m("Add")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function Lf(e){var t,n,r,i,o,a,s,l=e.option.key,c=e.option.value,u=vu("trash-2");function p(){return e.click_handler(e)}return{c(){t=g("span"),n=m(l),r=m(" : "),i=m(c),o=v(),_(a=g("span"),"font-size","10pt"),_(a,"cursor","pointer"),w(t,"class","option-container svelte-emcy8y"),s=x(a,"click",p)},m(e,s){f(e,t,s),h(t,n),h(t,r),h(t,i),h(t,o),h(t,a),a.innerHTML=u},p(t,r){e=r,t.initialOptions&&l!==(l=e.option.key)&&b(n,l),t.initialOptions&&c!==(c=e.option.value)&&b(i,c)},d(e){e&&d(t),s()}}}function Ff(e){var t;return{c(){t=m("Save")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function zf(e){var t;return{c(){t=m("Cancel")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function Bf(e){var t,n,r=new ee({props:{color:"primary",grouped:!0,$$slots:{default:[Ff]},$$scope:{ctx:e}}});r.$on("click",e.save);var i=new ee({props:{color:"secondary",grouped:!0,$$slots:{default:[zf]},$$scope:{ctx:e}}});return i.$on("click",e.cancel),{c(){r.$$.fragment.c(),t=v(),i.$$.fragment.c()},m(e,o){q(r,e,o),f(e,t,o),q(i,e,o),n=!0},p(e,t){var n={};e.$$scope&&(n.$$scope={changed:e,ctx:t}),r.$set(n);var o={};e.$$scope&&(o.$$scope={changed:e,ctx:t}),i.$set(o)},i(e){n||(V(r.$$.fragment,e),V(i.$$.fragment,e),n=!0)},o(e){W(r.$$.fragment,e),W(i.$$.fragment,e),n=!1},d(e){Q(r,e),e&&d(t),Q(i,e)}}}function Hf(e){var t,n,r,o,a,s,l,c,u,m,y,b,$,k,A,E,j,I,T,M,C,O=new nh({props:{errors:e.errors}});function D(t){e.textbox0_text_binding.call(null,t),r=!0,P(()=>r=!1)}let N={label:"Name"};void 0!==e.clonedAction.name&&(N.text=e.clonedAction.name);var R=new Cu({props:N});function L(t){e.textbox1_text_binding.call(null,t),a=!0,P(()=>a=!1)}S.push(()=>Y(R,"text",D));let F={label:"Behaviour Source"};void 0!==e.clonedAction.behaviourSource&&(F.text=e.clonedAction.behaviourSource);var z=new Cu({props:F});function B(t){e.textbox2_text_binding.call(null,t),l=!0,P(()=>l=!1)}S.push(()=>Y(z,"text",L));let H={label:"Behaviour"};void 0!==e.clonedAction.behaviourName&&(H.text=e.clonedAction.behaviourName);var U=new Cu({props:H});S.push(()=>Y(U,"text",B));var K=new ee({props:{color:"primary-outline uk-width-1-4",$$slots:{default:[Rf]},$$scope:{ctx:e}}});K.$on("click",e.addNewOption);for(var J=e.initialOptions,G=[],Z=0;Z<J.length;Z+=1)G[Z]=Lf(Pf(e,J,Z));var X=new Wu({props:{$$slots:{default:[Bf]},$$scope:{ctx:e}}});return{c(){t=g("div"),O.$$.fragment.c(),n=v(),R.$$.fragment.c(),o=v(),z.$$.fragment.c(),s=v(),U.$$.fragment.c(),c=v(),u=g("div"),(m=g("label")).textContent="Default Options",y=v(),b=g("div"),$=g("input"),k=v(),A=g("input"),E=v(),K.$$.fragment.c(),j=v(),I=g("div");for(var r=0;r<G.length;r+=1)G[r].c();T=v(),X.$$.fragment.c(),w(m,"class","uk-form-label"),w($,"class","uk-input uk-width-1-4"),w($,"placeholder","key"),w(A,"class","uk-input uk-width-1-4"),w(A,"placeholder","value"),w(b,"class","uk-grid-small"),w(b,"uk-grid",""),_(I,"margin-top","10px"),w(u,"class"," uk-form-stacked"),_(u,"margin-bottom","20px"),w(t,"class","root svelte-emcy8y"),C=[x($,"input",e.input0_input_handler),x(A,"input",e.input1_input_handler)]},m(r,i){f(r,t,i),q(O,t,null),h(t,n),q(R,t,null),h(t,o),q(z,t,null),h(t,s),q(U,t,null),h(t,c),h(t,u),h(u,m),h(u,y),h(u,b),h(b,$),$.value=e.optKey,h(b,k),h(b,A),A.value=e.optValue,h(b,E),q(K,b,null),h(u,j),h(u,I);for(var a=0;a<G.length;a+=1)G[a].m(I,null);h(t,T),q(X,t,null),M=!0},p(e,t){var n={};e.errors&&(n.errors=t.errors),O.$set(n);var i={};!r&&e.clonedAction&&(i.text=t.clonedAction.name),R.$set(i);var o={};!a&&e.clonedAction&&(o.text=t.clonedAction.behaviourSource),z.$set(o);var s={};!l&&e.clonedAction&&(s.text=t.clonedAction.behaviourName),U.$set(s),e.optKey&&$.value!==t.optKey&&($.value=t.optKey),e.optValue&&A.value!==t.optValue&&(A.value=t.optValue);var c={};if(e.$$scope&&(c.$$scope={changed:e,ctx:t}),K.$set(c),e.getIcon||e.initialOptions){J=t.initialOptions;for(var u=0;u<J.length;u+=1){const n=Pf(t,J,u);G[u]?G[u].p(e,n):(G[u]=Lf(n),G[u].c(),G[u].m(I,null))}for(;u<G.length;u+=1)G[u].d(1);G.length=J.length}var h={};e.$$scope&&(h.$$scope={changed:e,ctx:t}),X.$set(h)},i(e){M||(V(O.$$.fragment,e),V(R.$$.fragment,e),V(z.$$.fragment,e),V(U.$$.fragment,e),V(K.$$.fragment,e),V(X.$$.fragment,e),M=!0)},o(e){W(O.$$.fragment,e),W(R.$$.fragment,e),W(z.$$.fragment,e),W(U.$$.fragment,e),W(K.$$.fragment,e),W(X.$$.fragment,e),M=!1},d(e){e&&d(t),Q(O),Q(R),Q(z),Q(U),Q(K),p(G,e),Q(X),i(C)}}}function Vf(e,t,n){let{action:r,onFinished:i=(e=>{})}=t,{allActions:o,isNew:a=!0}=t,s="",l="",c=me(r),u=kc(r.initialOptions,[Fe,xe(e=>({key:e,value:r.initialOptions[e]}))]),h=[];const f=e=>{e&&(delete c.initialOptions[e.key],n("initialOptions",u=kc(u,[we(t=>t.key!==e.key)])))};return e.$set=(e=>{"action"in e&&n("action",r=e.action),"onFinished"in e&&n("onFinished",i=e.onFinished),"allActions"in e&&n("allActions",o=e.allActions),"isNew"in e&&n("isNew",a=e.isNew)}),{action:r,onFinished:i,allActions:o,isNew:a,optKey:s,optValue:l,clonedAction:c,initialOptions:u,errors:h,addNewOption:()=>{s&&l&&ge(c.initialOptions[s])&&(c.initialOptions[s]=l,n("clonedAction",c),n("initialOptions",u=[...u,{key:s,value:l}]),n("optKey",s=""),n("optValue",l=""))},removeOption:f,save:()=>{const e=[...kc(o,[we(e=>e!==r)]),c];n("errors",h=kc(e,[Rc,xe(e=>e.error)])),0===h.length&&i(c)},cancel:()=>{i()},textbox0_text_binding:function(e){c.name=e,n("clonedAction",c)},textbox1_text_binding:function(e){c.behaviourSource=e,n("clonedAction",c)},textbox2_text_binding:function(e){c.behaviourName=e,n("clonedAction",c)},input0_input_handler:function(){s=this.value,n("optKey",s)},input1_input_handler:function(){l=this.value,n("optValue",l)},click_handler:function({option:e}){return f(e)}}}class Wf extends G{constructor(e){super(),J(this,e,Vf,Hf,a,["action","onFinished","allActions","isNew"])}}function Uf(e,t,n){const r=Object.create(e);return r.action=t[n],r}function Yf(t){var n;return{c(){n=m("(no actions added)")},m(e,t){f(e,n,t)},p:e,d(e){e&&d(n)}}}function qf(e){for(var t,n,r,i,o=e.$database.actions,a=[],s=0;s<o.length;s+=1)a[s]=Qf(Uf(e,o,s));return{c(){t=g("table"),(n=g("thead")).innerHTML="<tr><th>Description</th> <th>Behaviour Source</th> <th>Behaviour Name</th> <th>Default Options</th> <th></th></tr>",r=v(),i=g("tbody");for(var e=0;e<a.length;e+=1)a[e].c();w(t,"class","fields-table uk-table uk-table-small")},m(e,o){f(e,t,o),h(t,n),h(t,r),h(t,i);for(var s=0;s<a.length;s+=1)a[s].m(i,null)},p(e,t){if(e.getIcon||e.getDefaultOptionsHtml||e.$database){o=t.$database.actions;for(var n=0;n<o.length;n+=1){const r=Uf(t,o,n);a[n]?a[n].p(e,r):(a[n]=Qf(r),a[n].c(),a[n].m(i,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=o.length}},d(e){e&&d(t),p(a,e)}}}function Qf(e){var t,n,r,o,a,s,l,c,u,p,y,_,$,k,A,E,j,I,T=e.action.name,S=e.action.behaviourSource,M=e.action.behaviourName,C=e.getDefaultOptionsHtml(e.action.initialOptions),O=vu("edit"),D=vu("trash");function N(){return e.click_handler(e)}function P(){return e.click_handler_1(e)}return{c(){t=g("tr"),n=g("td"),r=m(T),o=v(),a=g("td"),s=m(S),l=v(),c=g("td"),u=m(M),p=v(),y=g("td"),_=v(),$=g("td"),k=g("span"),A=v(),E=g("span"),j=v(),w($,"class","edit-button svelte-12jzg4k"),w(t,"class","svelte-12jzg4k"),I=[x(k,"click",N),x(E,"click",P)]},m(e,i){f(e,t,i),h(t,n),h(n,r),h(t,o),h(t,a),h(a,s),h(t,l),h(t,c),h(c,u),h(t,p),h(t,y),y.innerHTML=C,h(t,_),h(t,$),h($,k),k.innerHTML=O,h($,A),h($,E),E.innerHTML=D,h(t,j)},p(t,n){e=n,t.$database&&T!==(T=e.action.name)&&b(r,T),t.$database&&S!==(S=e.action.behaviourSource)&&b(s,S),t.$database&&M!==(M=e.action.behaviourName)&&b(u,M),t.$database&&C!==(C=e.getDefaultOptionsHtml(e.action.initialOptions))&&(y.innerHTML=C)},d(e){e&&d(t),i(I)}}}function Kf(e){var t,n=new Wf({props:{action:e.editingAction,allActions:e.$database.actions,onFinished:e.actionEditingFinished,isNew:e.editingActionIsNew}});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},p(e,t){var r={};e.editingAction&&(r.action=t.editingAction),e.$database&&(r.allActions=t.$database.actions),e.actionEditingFinished&&(r.onFinished=t.actionEditingFinished),e.editingActionIsNew&&(r.isNew=t.editingActionIsNew),n.$set(r)},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function Jf(e){var t,n,r=e.isEditing&&Kf(e);return{c(){r&&r.c(),t=y()},m(e,i){r&&r.m(e,i),f(e,t,i),n=!0},p(e,n){n.isEditing?r?(r.p(e,n),V(r,1)):((r=Kf(n)).c(),V(r,1),r.m(t.parentNode,t)):r&&(B(),W(r,1,1,()=>{r=null}),H())},i(e){n||(V(r),n=!0)},o(e){W(r),n=!1},d(e){r&&r.d(e),e&&d(t)}}}function Gf(e){var t,n,r,i,o;function a(e){return e.$database.actions?qf:Yf}var s=a(e),l=s(e);function c(t){e.modal_isOpen_binding.call(null,t),i=!0,P(()=>i=!1)}let u={$$slots:{default:[Jf]},$$scope:{ctx:e}};void 0!==e.isEditing&&(u.isOpen=e.isEditing);var h=new Mh({props:u});return S.push(()=>Y(h,"isOpen",c)),{c(){(t=g("h3")).textContent="Actions",n=v(),l.c(),r=v(),h.$$.fragment.c()},m(e,i){f(e,t,i),f(e,n,i),l.m(e,i),f(e,r,i),q(h,e,i),o=!0},p(e,t){s===(s=a(t))&&l?l.p(e,t):(l.d(1),(l=s(t))&&(l.c(),l.m(r.parentNode,r)));var n={};(e.$$scope||e.isEditing||e.editingAction||e.$database||e.editingActionIsNew)&&(n.$$scope={changed:e,ctx:t}),!i&&e.isEditing&&(n.isOpen=t.isEditing),h.$set(n)},i(e){o||(V(h.$$.fragment,e),o=!0)},o(e){W(h.$$.fragment,e),o=!1},d(e){e&&(d(t),d(n)),l.d(e),e&&d(r),Q(h,e)}}}function Zf(e,t,n){let r;s(e,au,e=>{n("$database",r=e)});let i,{editingActionIsNew:o=!1,editingAction:a=null,onActionEdit:l=(e=>{})}=t,{onActionDelete:c=(e=>{})}=t,{onActionSave:u=(e=>{})}=t,{onActionCancel:h=(()=>{})}=t;return e.$set=(e=>{"editingActionIsNew"in e&&n("editingActionIsNew",o=e.editingActionIsNew),"editingAction"in e&&n("editingAction",a=e.editingAction),"onActionEdit"in e&&n("onActionEdit",l=e.onActionEdit),"onActionDelete"in e&&n("onActionDelete",c=e.onActionDelete),"onActionSave"in e&&n("onActionSave",u=e.onActionSave),"onActionCancel"in e&&n("onActionCancel",h=e.onActionCancel)}),e.$$.update=((e={editingAction:1})=>{e.editingAction&&n("isEditing",i=null!==a)}),{editingActionIsNew:o,editingAction:a,onActionEdit:l,onActionDelete:c,onActionSave:u,onActionCancel:h,getDefaultOptionsHtml:e=>kc(e,[Fe,xe(t=>`<span style="color:var(--slate)">${t}: </span>${JSON.stringify(e[t])}`),We("<br>")]),actionEditingFinished:e=>{e?u(e):h()},isEditing:i,$database:r,click_handler:function({action:e}){return l(e)},click_handler_1:function({action:e}){return c(e)},modal_isOpen_binding:function(e){n("isEditing",i=e),n("editingAction",a)}}}class Xf extends G{constructor(e){super(),J(this,e,Zf,Gf,a,["editingActionIsNew","editingAction","onActionEdit","onActionDelete","onActionSave","onActionCancel"])}}function ed(e){var t;return{c(){t=m("Save")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function td(e){var t;return{c(){t=m("Cancel")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function nd(e){var t,n,r=new ee({props:{grouped:!0,$$slots:{default:[ed]},$$scope:{ctx:e}}});r.$on("click",e.save);var i=new ee({props:{grouped:!0,$$slots:{default:[td]},$$scope:{ctx:e}}});return i.$on("click",e.cancel),{c(){r.$$.fragment.c(),t=v(),i.$$.fragment.c()},m(e,o){q(r,e,o),f(e,t,o),q(i,e,o),n=!0},p(e,t){var n={};e.$$scope&&(n.$$scope={changed:e,ctx:t}),r.$set(n);var o={};e.$$scope&&(o.$$scope={changed:e,ctx:t}),i.$set(o)},i(e){n||(V(r.$$.fragment,e),V(i.$$.fragment,e),n=!0)},o(e){W(r.$$.fragment,e),W(i.$$.fragment,e),n=!1},d(e){Q(r,e),e&&d(t),Q(i,e)}}}function rd(e){var t,n,r,i,o,a,s,l,c,u,p,m=new nh({props:{errors:e.errors,style:"margin-bottom:20px"}});function y(t){e.dropdown0_selected_binding.call(null,t),r=!0,P(()=>r=!1)}let x={label:"Event",options:["",...Ac]};void 0!==e.clonedTrigger.eventName&&(x.selected=e.clonedTrigger.eventName);var w=new Bu({props:x});function b(t){e.dropdown1_selected_binding.call(null,t),o=!0,P(()=>o=!1)}S.push(()=>Y(w,"selected",y));let _={label:"Action",options:["",...e.actionNames]};void 0!==e.clonedTrigger.actionName&&(_.selected=e.clonedTrigger.actionName);var $=new Bu({props:_});function k(t){e.codearea0_text_binding.call(null,t),s=!0,P(()=>s=!1)}S.push(()=>Y($,"selected",b));let A={label:"Condition (javascript)"};void 0!==e.clonedTrigger.condition&&(A.text=e.clonedTrigger.condition);var E=new Qh({props:A});function j(t){e.codearea1_text_binding.call(null,t),c=!0,P(()=>c=!1)}S.push(()=>Y(E,"text",k));let I={label:"Action Options Creator (javascript)"};void 0!==e.clonedTrigger.optionsCreator&&(I.text=e.clonedTrigger.optionsCreator);var T=new Qh({props:I});S.push(()=>Y(T,"text",j));var M=new Wu({props:{$$slots:{default:[nd]},$$scope:{ctx:e}}});return{c(){t=g("div"),m.$$.fragment.c(),n=v(),w.$$.fragment.c(),i=v(),$.$$.fragment.c(),a=v(),E.$$.fragment.c(),l=v(),T.$$.fragment.c(),u=v(),M.$$.fragment.c()},m(e,r){f(e,t,r),q(m,t,null),h(t,n),q(w,t,null),h(t,i),q($,t,null),h(t,a),q(E,t,null),h(t,l),q(T,t,null),h(t,u),q(M,t,null),p=!0},p(e,t){var n={};e.errors&&(n.errors=t.errors),m.$set(n);var i={};e.events&&(i.options=["",...Ac]),!r&&e.clonedTrigger&&(i.selected=t.clonedTrigger.eventName),w.$set(i);var a={};e.actionNames&&(a.options=["",...t.actionNames]),!o&&e.clonedTrigger&&(a.selected=t.clonedTrigger.actionName),$.$set(a);var l={};!s&&e.clonedTrigger&&(l.text=t.clonedTrigger.condition),E.$set(l);var u={};!c&&e.clonedTrigger&&(u.text=t.clonedTrigger.optionsCreator),T.$set(u);var h={};e.$$scope&&(h.$$scope={changed:e,ctx:t}),M.$set(h)},i(e){p||(V(m.$$.fragment,e),V(w.$$.fragment,e),V($.$$.fragment,e),V(E.$$.fragment,e),V(T.$$.fragment,e),V(M.$$.fragment,e),p=!0)},o(e){W(m.$$.fragment,e),W(w.$$.fragment,e),W($.$$.fragment,e),W(E.$$.fragment,e),W(T.$$.fragment,e),W(M.$$.fragment,e),p=!1},d(e){e&&d(t),Q(m),Q(w),Q($),Q(E),Q(T),Q(M)}}}function id(e,t,n){let r,{trigger:i,onFinished:o=(e=>{})}=t,{allTriggers:a,allActions:s,isNew:l=!0}=t,c=me(i),u=[];return e.$set=(e=>{"trigger"in e&&n("trigger",i=e.trigger),"onFinished"in e&&n("onFinished",o=e.onFinished),"allTriggers"in e&&n("allTriggers",a=e.allTriggers),"allActions"in e&&n("allActions",s=e.allActions),"isNew"in e&&n("isNew",l=e.isNew)}),e.$$.update=((e={allActions:1})=>{e.allActions&&n("actionNames",r=xe(e=>e.name)(s))}),{trigger:i,onFinished:o,allTriggers:a,allActions:s,isNew:l,clonedTrigger:c,errors:u,cancel:()=>o(),save:()=>{const e=[...kc(a,[we(e=>e!==i)]),c];n("errors",u=Lc(e,s));xe(e=>!e.actionName||ye(t=>t.name===e.actionName)(s))(e);0===u.length&&o(c)},actionNames:r,dropdown0_selected_binding:function(e){c.eventName=e,n("clonedTrigger",c)},dropdown1_selected_binding:function(e){c.actionName=e,n("clonedTrigger",c)},codearea0_text_binding:function(e){c.condition=e,n("clonedTrigger",c)},codearea1_text_binding:function(e){c.optionsCreator=e,n("clonedTrigger",c)}}}class od extends G{constructor(e){super(),J(this,e,id,rd,a,["trigger","onFinished","allTriggers","allActions","isNew"])}}function ad(e,t,n){const r=Object.create(e);return r.trigger=t[n],r}function sd(t){var n;return{c(){n=m("(no triggers added)")},m(e,t){f(e,n,t)},p:e,d(e){e&&d(n)}}}function ld(e){for(var t,n,r,i,o=e.$database.triggers,a=[],s=0;s<o.length;s+=1)a[s]=cd(ad(e,o,s));return{c(){t=g("table"),(n=g("thead")).innerHTML="<tr><th>Event</th> <th>Action</th> <th>Condition</th> <th>Create Options</th> <th></th></tr>",r=v(),i=g("tbody");for(var e=0;e<a.length;e+=1)a[e].c();w(t,"class","fields-table uk-table uk-table-small")},m(e,o){f(e,t,o),h(t,n),h(t,r),h(t,i);for(var s=0;s<a.length;s+=1)a[s].m(i,null)},p(e,t){if(e.getIcon||e.$database){o=t.$database.triggers;for(var n=0;n<o.length;n+=1){const r=ad(t,o,n);a[n]?a[n].p(e,r):(a[n]=cd(r),a[n].c(),a[n].m(i,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=o.length}},d(e){e&&d(t),p(a,e)}}}function cd(e){var t,n,r,o,a,s,l,c,u,p,y,_,$,k,A,E,j,I,T,S=e.trigger.eventName,M=e.trigger.actionName,C=e.trigger.condition,O=e.trigger.optionsCreator,D=vu("edit"),N=vu("trash");function P(){return e.click_handler(e)}function R(){return e.click_handler_1(e)}return{c(){t=g("tr"),n=g("td"),r=m(S),o=v(),a=g("td"),s=m(M),l=v(),c=g("td"),u=m(C),p=v(),y=g("td"),_=m(O),$=v(),k=g("td"),A=g("span"),E=v(),j=g("span"),I=v(),w(k,"class","edit-button svelte-1le5bpl"),w(t,"class","svelte-1le5bpl"),T=[x(A,"click",P),x(j,"click",R)]},m(e,i){f(e,t,i),h(t,n),h(n,r),h(t,o),h(t,a),h(a,s),h(t,l),h(t,c),h(c,u),h(t,p),h(t,y),h(y,_),h(t,$),h(t,k),h(k,A),A.innerHTML=D,h(k,E),h(k,j),j.innerHTML=N,h(t,I)},p(t,n){e=n,t.$database&&S!==(S=e.trigger.eventName)&&b(r,S),t.$database&&M!==(M=e.trigger.actionName)&&b(s,M),t.$database&&C!==(C=e.trigger.condition)&&b(u,C),t.$database&&O!==(O=e.trigger.optionsCreator)&&b(_,O)},d(e){e&&d(t),i(T)}}}function ud(e){var t,n=new od({props:{trigger:e.editingTrigger,allActions:e.$database.actions,allTriggers:e.$database.triggers,onFinished:e.triggerEditingFinished,isNew:e.editingTriggerIsNew}});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},p(e,t){var r={};e.editingTrigger&&(r.trigger=t.editingTrigger),e.$database&&(r.allActions=t.$database.actions),e.$database&&(r.allTriggers=t.$database.triggers),e.triggerEditingFinished&&(r.onFinished=t.triggerEditingFinished),e.editingTriggerIsNew&&(r.isNew=t.editingTriggerIsNew),n.$set(r)},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function hd(e){var t,n,r=e.isEditing&&ud(e);return{c(){r&&r.c(),t=y()},m(e,i){r&&r.m(e,i),f(e,t,i),n=!0},p(e,n){n.isEditing?r?(r.p(e,n),V(r,1)):((r=ud(n)).c(),V(r,1),r.m(t.parentNode,t)):r&&(B(),W(r,1,1,()=>{r=null}),H())},i(e){n||(V(r),n=!0)},o(e){W(r),n=!1},d(e){r&&r.d(e),e&&d(t)}}}function fd(e){var t,n,r,i,o;function a(e){return e.$database.triggers?ld:sd}var s=a(e),l=s(e);function c(t){e.modal_isOpen_binding.call(null,t),i=!0,P(()=>i=!1)}let u={$$slots:{default:[hd]},$$scope:{ctx:e}};void 0!==e.isEditing&&(u.isOpen=e.isEditing);var h=new Mh({props:u});return S.push(()=>Y(h,"isOpen",c)),{c(){(t=g("h3")).textContent="Triggers",n=v(),l.c(),r=v(),h.$$.fragment.c()},m(e,i){f(e,t,i),f(e,n,i),l.m(e,i),f(e,r,i),q(h,e,i),o=!0},p(e,t){s===(s=a(t))&&l?l.p(e,t):(l.d(1),(l=s(t))&&(l.c(),l.m(r.parentNode,r)));var n={};(e.$$scope||e.isEditing||e.editingTrigger||e.$database||e.editingTriggerIsNew)&&(n.$$scope={changed:e,ctx:t}),!i&&e.isEditing&&(n.isOpen=t.isEditing),h.$set(n)},i(e){o||(V(h.$$.fragment,e),o=!0)},o(e){W(h.$$.fragment,e),o=!1},d(e){e&&(d(t),d(n)),l.d(e),e&&d(r),Q(h,e)}}}function dd(e,t,n){let r;s(e,au,e=>{n("$database",r=e)});let i,{editingTrigger:o=null,editingTriggerIsNew:a=!0,onTriggerEdit:l=(e=>{})}=t,{onTriggerDelete:c=(e=>{})}=t,{onTriggerSave:u=(e=>{})}=t,{onTriggerCancel:h=(()=>{})}=t;return e.$set=(e=>{"editingTrigger"in e&&n("editingTrigger",o=e.editingTrigger),"editingTriggerIsNew"in e&&n("editingTriggerIsNew",a=e.editingTriggerIsNew),"onTriggerEdit"in e&&n("onTriggerEdit",l=e.onTriggerEdit),"onTriggerDelete"in e&&n("onTriggerDelete",c=e.onTriggerDelete),"onTriggerSave"in e&&n("onTriggerSave",u=e.onTriggerSave),"onTriggerCancel"in e&&n("onTriggerCancel",h=e.onTriggerCancel)}),e.$$.update=((e={editingTrigger:1})=>{e.editingTrigger&&n("isEditing",i=null!==o)}),{editingTrigger:o,editingTriggerIsNew:a,onTriggerEdit:l,onTriggerDelete:c,onTriggerSave:u,onTriggerCancel:h,triggerEditingFinished:e=>{e?u(e):h()},isEditing:i,$database:r,click_handler:function({trigger:e}){return l(e)},click_handler_1:function({trigger:e}){return c(e)},modal_isOpen_binding:function(e){n("isEditing",i=e),n("editingTrigger",o)}}}class pd extends G{constructor(e){super(),J(this,e,dd,fd,a,["editingTrigger","editingTriggerIsNew","onTriggerEdit","onTriggerDelete","onTriggerSave","onTriggerCancel"])}}function gd(e){var t;return{c(){t=m("Create New Action")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function md(e){var t;return{c(){t=m("Create New Trigger")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function vd(e){var t,n,r=new ee({props:{color:"secondary",grouped:!0,$$slots:{default:[gd]},$$scope:{ctx:e}}});r.$on("click",e.newAction);var i=new ee({props:{color:"secondary",grouped:!0,$$slots:{default:[md]},$$scope:{ctx:e}}});return i.$on("click",e.newTrigger),{c(){r.$$.fragment.c(),t=v(),i.$$.fragment.c()},m(e,o){q(r,e,o),f(e,t,o),q(i,e,o),n=!0},p(e,t){var n={};e.$$scope&&(n.$$scope={changed:e,ctx:t}),r.$set(n);var o={};e.$$scope&&(o.$$scope={changed:e,ctx:t}),i.$set(o)},i(e){n||(V(r.$$.fragment,e),V(i.$$.fragment,e),n=!0)},o(e){W(r.$$.fragment,e),W(i.$$.fragment,e),n=!1},d(e){Q(r,e),e&&d(t),Q(i,e)}}}function yd(e){var t,n,r,i,o=new Wu({props:{$$slots:{default:[vd]},$$scope:{ctx:e}}}),a=new Xf({props:{editingActionIsNew:e.editingActionIsNew,editingAction:e.editingAction,onActionEdit:e.onActionEdit,onActionDelete:e.onActionDelete,onActionSave:e.onActionSave,onActionCancel:e.onActionCancel}}),s=new pd({props:{editingTriggerIsNew:e.editingTriggerIsNew,editingTrigger:e.editingTrigger,onTriggerEdit:e.onTriggerEdit,onTriggerDelete:e.onTriggerDelete,onTriggerSave:e.onTriggerSave,onTriggerCancel:e.onTriggerCancel}});return{c(){t=g("div"),o.$$.fragment.c(),n=v(),a.$$.fragment.c(),r=v(),s.$$.fragment.c(),w(t,"class","root svelte-1y6dy5x")},m(e,l){f(e,t,l),q(o,t,null),h(t,n),q(a,t,null),h(t,r),q(s,t,null),i=!0},p(e,t){var n={};e.$$scope&&(n.$$scope={changed:e,ctx:t}),o.$set(n);var r={};e.editingActionIsNew&&(r.editingActionIsNew=t.editingActionIsNew),e.editingAction&&(r.editingAction=t.editingAction),e.onActionEdit&&(r.onActionEdit=t.onActionEdit),e.onActionDelete&&(r.onActionDelete=t.onActionDelete),e.onActionSave&&(r.onActionSave=t.onActionSave),e.onActionCancel&&(r.onActionCancel=t.onActionCancel),a.$set(r);var i={};e.editingTriggerIsNew&&(i.editingTriggerIsNew=t.editingTriggerIsNew),e.editingTrigger&&(i.editingTrigger=t.editingTrigger),e.onTriggerEdit&&(i.onTriggerEdit=t.onTriggerEdit),e.onTriggerDelete&&(i.onTriggerDelete=t.onTriggerDelete),e.onTriggerSave&&(i.onTriggerSave=t.onTriggerSave),e.onTriggerCancel&&(i.onTriggerCancel=t.onTriggerCancel),s.$set(i)},i(e){i||(V(o.$$.fragment,e),V(a.$$.fragment,e),V(s.$$.fragment,e),i=!0)},o(e){W(o.$$.fragment,e),W(a.$$.fragment,e),W(s.$$.fragment,e),i=!1},d(e){e&&d(t),Q(o),Q(a),Q(s)}}}function xd(e,t,n){let r=null,i=!0,o=null,a=!0;return{editingAction:r,editingActionIsNew:i,editingTrigger:o,editingTriggerIsNew:a,onActionEdit:e=>{n("editingAction",r=e),n("editingActionIsNew",i=!1)},newAction:()=>{n("editingAction",r=Nc()),n("editingActionIsNew",i=!0)},onActionDelete:e=>{au.deleteAction(e)},newTrigger:()=>{n("editingTrigger",o=Pc()),n("editingTriggerIsNew",a=!0)},onActionSave:e=>{au.saveAction(e,i,r),n("editingAction",r=null)},onActionCancel:()=>{n("editingAction",r=null)},onTriggerSave:e=>{au.saveTrigger(e,a,o),n("editingTrigger",o=null)},onTriggerCancel:()=>{n("editingTrigger",o=null)},onTriggerEdit:e=>{n("editingTrigger",o=e),n("editingTriggerIsNew",a=!1)},onTriggerDelete:e=>{au.deleteTrigger(e)}}}class wd extends G{constructor(e){super(),J(this,e,xd,yd,a,[])}}function bd(e,t,n){const r=Object.create(e);return r.permission=t[n],r}function _d(e){var t,n,r=new oh({props:{label:e.getPermissionName(e.permission.permission),checked:e.permission.hasPermission}});return r.$on("change",e.permissionChanged(e.permission.permission)),{c(){t=g("div"),r.$$.fragment.c()},m(e,i){f(e,t,i),q(r,t,null),n=!0},p(e,t){var n={};(e.getPermissionName||e.permissionMatrix)&&(n.label=t.getPermissionName(t.permission.permission)),e.permissionMatrix&&(n.checked=t.permission.hasPermission),r.$set(n)},i(e){n||(V(r.$$.fragment,e),n=!0)},o(e){W(r.$$.fragment,e),n=!1},d(e){e&&d(t),Q(r)}}}function $d(e){var t;return{c(){t=m("Save")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function kd(e){var t;return{c(){t=m("Cancel")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function Ad(e){var t,n,r=new ee({props:{color:"primary",grouped:!0,$$slots:{default:[$d]},$$scope:{ctx:e}}});r.$on("click",e.save);var i=new ee({props:{color:"secondary",grouped:!0,$$slots:{default:[kd]},$$scope:{ctx:e}}});return i.$on("click",e.click_handler),{c(){r.$$.fragment.c(),t=v(),i.$$.fragment.c()},m(e,o){q(r,e,o),f(e,t,o),q(i,e,o),n=!0},p(e,t){var n={};e.$$scope&&(n.$$scope={changed:e,ctx:t}),r.$set(n);var o={};e.$$scope&&(o.$$scope={changed:e,ctx:t}),i.$set(o)},i(e){n||(V(r.$$.fragment,e),V(i.$$.fragment,e),n=!0)},o(e){W(r.$$.fragment,e),W(i.$$.fragment,e),n=!1},d(e){Q(r,e),e&&d(t),Q(i,e)}}}function Ed(e){var t,n,r,i,o,a,s=new nh({props:{errors:e.errors}});function l(t){e.textbox_text_binding.call(null,t),r=!0,P(()=>r=!1)}let c={label:"Name"};void 0!==e.clonedLevel.name&&(c.text=e.clonedLevel.name);var u=new Cu({props:c});S.push(()=>Y(u,"text",l));for(var m=e.permissionMatrix,y=[],x=0;x<m.length;x+=1)y[x]=_d(bd(e,m,x));const w=e=>W(y[e],1,1,()=>{y[e]=null});var b=new Wu({props:{style:"margin-top: 10px",$$slots:{default:[Ad]},$$scope:{ctx:e}}});return{c(){t=g("div"),s.$$.fragment.c(),n=v(),u.$$.fragment.c(),i=v();for(var e=0;e<y.length;e+=1)y[e].c();o=v(),b.$$.fragment.c()},m(e,r){f(e,t,r),q(s,t,null),h(t,n),q(u,t,null),h(t,i);for(var l=0;l<y.length;l+=1)y[l].m(t,null);h(t,o),q(b,t,null),a=!0},p(e,n){var i={};e.errors&&(i.errors=n.errors),s.$set(i);var a={};if(!r&&e.clonedLevel&&(a.text=n.clonedLevel.name),u.$set(a),e.getPermissionName||e.permissionMatrix){m=n.permissionMatrix;for(var l=0;l<m.length;l+=1){const r=bd(n,m,l);y[l]?(y[l].p(e,r),V(y[l],1)):(y[l]=_d(r),y[l].c(),V(y[l],1),y[l].m(t,o))}for(B(),l=m.length;l<y.length;l+=1)w(l);H()}var c={};e.$$scope&&(c.$$scope={changed:e,ctx:n}),b.$set(c)},i(e){if(!a){V(s.$$.fragment,e),V(u.$$.fragment,e);for(var t=0;t<m.length;t+=1)V(y[t]);V(b.$$.fragment,e),a=!0}},o(e){W(s.$$.fragment,e),W(u.$$.fragment,e),y=y.filter(Boolean);for(let e=0;e<y.length;e+=1)W(y[e]);W(b.$$.fragment,e),a=!1},d(e){e&&d(t),Q(s),Q(u),p(y,e),Q(b)}}}function jd(e,t,n){let{level:r,allPermissions:i,onFinished:o,isNew:a,allLevels:s,hierarchy:l,actions:c}=t,u=[],h=me(r);const f=(e,t)=>e.type===t.type&&(!t.nodeKey&&!e.nodeKey||t.nodeKey===e.nodeKey),d=e=>ye(t=>f(t,e))(h.permissions);let p;return e.$set=(e=>{"level"in e&&n("level",r=e.level),"allPermissions"in e&&n("allPermissions",i=e.allPermissions),"onFinished"in e&&n("onFinished",o=e.onFinished),"isNew"in e&&n("isNew",a=e.isNew),"allLevels"in e&&n("allLevels",s=e.allLevels),"hierarchy"in e&&n("hierarchy",l=e.hierarchy),"actions"in e&&n("actions",c=e.actions)}),e.$$.update=((e={allPermissions:1})=>{e.allPermissions&&n("permissionMatrix",p=xe(e=>({permission:e,hasPermission:d(e)}))(i))}),{level:r,allPermissions:i,onFinished:o,isNew:a,allLevels:s,hierarchy:l,actions:c,errors:u,clonedLevel:h,getPermissionName:e=>e.nodeKey?`${e.type} - ${e.nodeKey}`:e.type,save:()=>{const e=a?[...s,h]:[...we(e=>e.name!==r.name)(s),h];n("errors",u=Bc(l,c,e)),u.length>0||o(h)},permissionChanged:e=>t=>{t.target.checked?h.permissions.push(e):(h.permissions=we(t=>!f(t,e)),n("clonedLevel",h))},permissionMatrix:p,textbox_text_binding:function(e){h.name=e,n("clonedLevel",h)},click_handler:function(){return o()}}}class Id extends G{constructor(e){super(),J(this,e,jd,Ed,a,["level","allPermissions","onFinished","isNew","allLevels","hierarchy","actions"])}}function Td(e,t,n){const r=Object.create(e);return r.level=t[n],r}function Sd(e){var t;return{c(){t=m("Create New Access Level")},m(e,n){f(e,t,n)},d(e){e&&d(t)}}}function Md(e){var t,n=new ee({props:{grouped:!0,color:"secondary",$$slots:{default:[Sd]},$$scope:{ctx:e}}});return n.$on("click",e.createNewLevel),{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},p(e,t){var r={};e.$$scope&&(r.$$scope={changed:e,ctx:t}),n.$set(r)},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function Cd(t){var n;return{c(){n=m("(no actions added)")},m(e,t){f(e,n,t)},p:e,d(e){e&&d(n)}}}function Od(e){for(var t,n,r,i,o=e.$database.accessLevels,a=[],s=0;s<o.length;s+=1)a[s]=Dd(Td(e,o,s));return{c(){t=g("table"),(n=g("thead")).innerHTML="<tr><th>Name</th> <th>Permissions</th> <th></th></tr>",r=v(),i=g("tbody");for(var e=0;e<a.length;e+=1)a[e].c();w(t,"class","fields-table uk-table uk-table-small")},m(e,o){f(e,t,o),h(t,n),h(t,r),h(t,i);for(var s=0;s<a.length;s+=1)a[s].m(i,null)},p(e,t){if(e.getIcon||e.getPermissionsString||e.$database){o=t.$database.accessLevels;for(var n=0;n<o.length;n+=1){const r=Td(t,o,n);a[n]?a[n].p(e,r):(a[n]=Dd(r),a[n].c(),a[n].m(i,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=o.length}},d(e){e&&d(t),p(a,e)}}}function Dd(e){var t,n,r,o,a,s,l,c,u,p,y,_,$,k=e.level.name,A=e.getPermissionsString(e.level.permissions),E=vu("edit"),j=vu("trash");function I(){return e.click_handler(e)}function T(){return e.click_handler_1(e)}return{c(){t=g("tr"),n=g("td"),r=m(k),o=v(),a=g("td"),s=m(A),l=v(),c=g("td"),u=g("span"),p=v(),y=g("span"),_=v(),w(c,"class","edit-button svelte-1be865r"),w(t,"class","svelte-1be865r"),$=[x(u,"click",I),x(y,"click",T)]},m(e,i){f(e,t,i),h(t,n),h(n,r),h(t,o),h(t,a),h(a,s),h(t,l),h(t,c),h(c,u),u.innerHTML=E,h(c,p),h(c,y),y.innerHTML=j,h(t,_)},p(t,n){e=n,t.$database&&k!==(k=e.level.name)&&b(r,k),t.$database&&A!==(A=e.getPermissionsString(e.level.permissions))&&b(s,A)},d(e){e&&d(t),i($)}}}function Nd(e){var t,n=new Id({props:{level:e.editingLevel,allPermissions:e.allPermissions,onFinished:e.onEditingFinished,isNew:e.editingLevelIsNew,allLevels:e.$database.accessLevels,hierarchy:e.$database.hierarchy,actions:e.$database.actions}});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},p(e,t){var r={};e.editingLevel&&(r.level=t.editingLevel),e.allPermissions&&(r.allPermissions=t.allPermissions),e.onEditingFinished&&(r.onFinished=t.onEditingFinished),e.editingLevelIsNew&&(r.isNew=t.editingLevelIsNew),e.$database&&(r.allLevels=t.$database.accessLevels),e.$database&&(r.hierarchy=t.$database.hierarchy),e.$database&&(r.actions=t.$database.actions),n.$set(r)},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function Pd(e){var t,n,r=e.isEditing&&Nd(e);return{c(){r&&r.c(),t=y()},m(e,i){r&&r.m(e,i),f(e,t,i),n=!0},p(e,n){n.isEditing?r?(r.p(e,n),V(r,1)):((r=Nd(n)).c(),V(r,1),r.m(t.parentNode,t)):r&&(B(),W(r,1,1,()=>{r=null}),H())},i(e){n||(V(r),n=!0)},o(e){W(r),n=!1},d(e){r&&r.d(e),e&&d(t)}}}function Rd(e){var t,n,r,i,o,a=new Wu({props:{$$slots:{default:[Md]},$$scope:{ctx:e}}});function s(e){return e.$database.accessLevels?Od:Cd}var l=s(e),c=l(e);function u(t){e.modal_isOpen_binding.call(null,t),i=!0,P(()=>i=!1)}let p={$$slots:{default:[Pd]},$$scope:{ctx:e}};void 0!==e.isEditing&&(p.isOpen=e.isEditing);var m=new Mh({props:p});return S.push(()=>Y(m,"isOpen",u)),{c(){t=g("div"),a.$$.fragment.c(),n=v(),c.c(),r=v(),m.$$.fragment.c(),w(t,"class","root svelte-1be865r")},m(e,i){f(e,t,i),q(a,t,null),h(t,n),c.m(t,null),h(t,r),q(m,t,null),o=!0},p(e,n){var o={};e.$$scope&&(o.$$scope={changed:e,ctx:n}),a.$set(o),l===(l=s(n))&&c?c.p(e,n):(c.d(1),(c=l(n))&&(c.c(),c.m(t,r)));var u={};(e.$$scope||e.isEditing||e.editingLevel||e.allPermissions||e.editingLevelIsNew||e.$database)&&(u.$$scope={changed:e,ctx:n}),!i&&e.isEditing&&(u.isOpen=n.isEditing),m.$set(u)},i(e){o||(V(a.$$.fragment,e),V(m.$$.fragment,e),o=!0)},o(e){W(a.$$.fragment,e),W(m.$$.fragment,e),o=!1},d(e){e&&d(t),Q(a),c.d(),Q(m)}}}function Ld(e,t,n){let r;s(e,au,e=>{n("$database",r=e)});let i=null,o=!1,a=[];au.subscribe(e=>{n("allPermissions",a=Fc(e.hierarchy,e.actions))});let l=e=>{n("editingLevel",i=e),n("editingLevelIsNew",o=!1)},c=e=>{au.deleteLevel(e)};let u;return e.$$.update=((e={editingLevel:1})=>{e.editingLevel&&n("isEditing",u=null!==i)}),{editingLevel:i,editingLevelIsNew:o,allPermissions:a,onLevelEdit:l,onLevelDelete:c,createNewLevel:()=>{n("editingLevelIsNew",o=!0),n("editingLevel",i=zc())},onEditingFinished:e=>{e&&au.saveLevel(e,o,i),n("editingLevel",i=null)},getPermissionsString:e=>`${e.length} / ${a.length}`,isEditing:u,$database:r,click_handler:function({level:e}){return l(e)},click_handler_1:function({level:e}){return c(e)},modal_isOpen_binding:function(e){n("isEditing",u=e),n("editingLevel",i)}}}class Fd extends G{constructor(e){super(),J(this,e,Ld,Rd,a,[])}}function zd(e){var t,n=new Nf({});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function Bd(e){var t,n=new Fd({});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function Hd(e){var t,n=new wd({});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function Vd(e){var t,n=new Sf({});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function Wd(e){var t,n,r,i,o,a,s=new $u({props:{width:e.navWidth}}),l=[Vd,Hd,Bd,zd],c=[];function u(e){return"database"===e.$database.activeNav?0:"actions"===e.$database.activeNav?1:"access levels"===e.$database.activeNav?2:"user interface"===e.$database.activeNav?3:-1}return~(i=u(e))&&(o=c[i]=l[i](e)),{c(){t=g("div"),s.$$.fragment.c(),n=v(),r=g("div"),o&&o.c(),w(r,"class","content svelte-1rxbdcd"),_(r,"width","calc(100% - "+e.navWidth+")"),_(r,"left",e.navWidth),w(t,"class","root svelte-1rxbdcd")},m(e,o){f(e,t,o),q(s,t,null),h(t,n),h(t,r),~i&&c[i].m(r,null),a=!0},p(e,t){var n={};e.navWidth&&(n.width=t.navWidth),s.$set(n);var h=i;(i=u(t))!==h&&(o&&(B(),W(c[h],1,1,()=>{c[h]=null}),H()),~i?((o=c[i])||(o=c[i]=l[i](t)).c(),V(o,1),o.m(r,null)):o=null),a&&!e.navWidth||(_(r,"width","calc(100% - "+t.navWidth+")"),_(r,"left",t.navWidth))},i(e){a||(V(s.$$.fragment,e),V(o),a=!0)},o(e){W(s.$$.fragment,e),W(o),a=!1},d(e){e&&d(t),Q(s),~i&&c[i].d()}}}function Ud(e,t,n){let r;s(e,au,e=>{n("$database",r=e)});let{navWidth:i="50px"}=t;return e.$set=(e=>{"navWidth"in e&&n("navWidth",i=e.navWidth)}),{navWidth:i,$database:r}}class Yd extends G{constructor(e){super(),J(this,e,Ud,Wd,a,["navWidth"])}}function qd(t){var n,r,i=t.err;return{c(){n=g("h1"),r=m(i),_(n,"color","red")},m(e,t){f(e,n,t),h(n,r)},p:e,i:e,o:e,d(e){e&&d(n)}}}function Qd(e){var t,n,r,i=e.$database.hasAppPackage&&Kd(),o=!e.$database.hasAppPackage&&Jd();return{c(){i&&i.c(),t=v(),o&&o.c(),n=y()},m(e,a){i&&i.m(e,a),f(e,t,a),o&&o.m(e,a),f(e,n,a),r=!0},p(e,r){r.$database.hasAppPackage?i?V(i,1):((i=Kd()).c(),V(i,1),i.m(t.parentNode,t)):i&&(B(),W(i,1,1,()=>{i=null}),H()),r.$database.hasAppPackage?o&&(B(),W(o,1,1,()=>{o=null}),H()):o?V(o,1):((o=Jd()).c(),V(o,1),o.m(n.parentNode,n))},i(e){r||(V(i),V(o),r=!0)},o(e){W(i),W(o),r=!1},d(e){i&&i.d(e),e&&d(t),o&&o.d(e),e&&d(n)}}}function Kd(e){var t,n=new Yd({});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function Jd(e){var t,n=new du({});return{c(){n.$$.fragment.c()},m(e,r){q(n,e,r),t=!0},i(e){t||(V(n.$$.fragment,e),t=!0)},o(e){W(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function Gd(t){var n;return{c(){(n=g("h1")).textContent="loading"},m(e,t){f(e,n,t)},p:e,i:e,o:e,d(e){e&&d(n)}}}function Zd(e){var n,r,i;let o={ctx:e,current:null,token:null,pending:Gd,then:Qd,catch:qd,value:"result",error:"err",blocks:[,,,]};return U(r=e.init,o),{c(){n=g("main"),o.block.c(),w(n,"class","svelte-j8mzr7")},m(e,t){f(e,n,t),o.block.m(n,o.anchor=null),o.mount=(()=>n),o.anchor=null,i=!0},p(n,i){e=i,o.ctx=e,r!==(r=e.init)&&U(r,o)||o.block.p(n,t(t({},e),o.resolved))},i(e){i||(V(o.block),i=!0)},o(e){for(let e=0;e<3;e+=1){W(o.blocks[e])}i=!1},d(e){e&&d(n),o.block.d(),o.token=null,o=null}}}function Xd(e,t,n){let r;return s(e,au,e=>{n("$database",r=e)}),{init:su(),$database:r}}ne(function(e,t){e.exports=function(){function e(e,t){return function(n){var r=arguments.length;return r?1<r?e.apply(t,arguments):e.call(t,n):e.call(t)}}var t=Object.prototype,n=t.hasOwnProperty;function r(e,t){return n.call(e,t)}var i={},o=/([a-z\d])([A-Z])/g;function a(e){return e in i||(i[e]=e.replace(o,"$1-$2").toLowerCase()),i[e]}var s=/-(\w)/g;function l(e){return e.replace(s,c)}function c(e,t){return t?t.toUpperCase():""}function u(e){return e.length?c(0,e.charAt(0))+e.slice(1):""}var h=String.prototype,f=h.startsWith||function(e){return 0===this.lastIndexOf(e,0)};function d(e,t){return f.call(e,t)}var p=h.endsWith||function(e){return this.substr(-e.length)===e};function g(e,t){return p.call(e,t)}function m(e,t){return~this.indexOf(e,t)}var v=Array.prototype,y=h.includes||m,x=v.includes||m;function w(e,t){return e&&(D(e)?y:x).call(e,t)}var b=v.findIndex||function(e){for(var t=arguments,n=0;n<this.length;n++)if(e.call(t[1],this[n],n,this))return n;return-1};function _(e,t){return b.call(e,t)}var $=Array.isArray;function k(e){return"function"==typeof e}function A(e){return null!==e&&"object"==typeof e}function E(e){return A(e)&&Object.getPrototypeOf(e)===t}function j(e){return A(e)&&e===e.window}function I(e){return A(e)&&9===e.nodeType}function T(e){return A(e)&&!!e.jquery}function S(e){return e instanceof Node||A(e)&&1<=e.nodeType}var M=t.toString;function C(e){return M.call(e).match(/^\[object (NodeList|HTMLCollection)\]$/)}function O(e){return"boolean"==typeof e}function D(e){return"string"==typeof e}function N(e){return"number"==typeof e}function P(e){return N(e)||D(e)&&!isNaN(e-parseFloat(e))}function R(e){return!($(e)?e.length:A(e)&&Object.keys(e).length)}function L(e){return void 0===e}function F(e){return O(e)?e:"true"===e||"1"===e||""===e||"false"!==e&&"0"!==e&&e}function z(e){var t=Number(e);return!isNaN(t)&&t}function B(e){return parseFloat(e)||0}function H(e){return S(e)||j(e)||I(e)?e:C(e)||T(e)?e[0]:$(e)?H(e[0]):null}function V(e){return S(e)?[e]:C(e)?v.slice.call(e):$(e)?e.map(H).filter(Boolean):T(e)?e.toArray():[]}function W(e){return $(e)?e:D(e)?e.split(/,(?![^(]*\))/).map(function(e){return P(e)?z(e):F(e.trim())}):[e]}function U(e){return e?g(e,"ms")?B(e):1e3*B(e):0}function Y(e,t){return e===t||A(e)&&A(t)&&Object.keys(e).length===Object.keys(t).length&&K(e,function(e,n){return e===t[n]})}function q(e,t,n){return e.replace(new RegExp(t+"|"+n,"mg"),function(e){return e===t?n:t})}var Q=Object.assign||function(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];e=Object(e);for(var i=0;i<t.length;i++){var o=t[i];if(null!==o)for(var a in o)r(o,a)&&(e[a]=o[a])}return e};function K(e,t){for(var n in e)if(!1===t(e[n],n))return!1;return!0}function J(e,t){return e.sort(function(e,n){var r=e[t];void 0===r&&(r=0);var i=n[t];return void 0===i&&(i=0),i<r?1:r<i?-1:0})}function G(e,t){var n=new Set;return e.filter(function(e){var r=e[t];return!n.has(r)&&(n.add(r)||!0)})}function Z(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),Math.min(Math.max(z(e)||0,t),n)}function X(){}function ee(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function te(e,t){return e.x<=t.right&&e.x>=t.left&&e.y<=t.bottom&&e.y>=t.top}var ne={ratio:function(e,t,n){var r,i="width"===t?"height":"width";return(r={})[i]=e[t]?Math.round(n*e[i]/e[t]):e[i],r[t]=n,r},contain:function(e,t){var n=this;return K(e=Q({},e),function(r,i){return e=e[i]>t[i]?n.ratio(e,i,t[i]):e}),e},cover:function(e,t){var n=this;return K(e=this.contain(e,t),function(r,i){return e=e[i]<t[i]?n.ratio(e,i,t[i]):e}),e}};function re(e,t,n){if(A(t))for(var r in t)re(e,r,t[r]);else{if(L(n))return(e=H(e))&&e.getAttribute(t);V(e).forEach(function(e){k(n)&&(n=n.call(e,re(e,t))),null===n?oe(e,t):e.setAttribute(t,n)})}}function ie(e,t){return V(e).some(function(e){return e.hasAttribute(t)})}function oe(e,t){e=V(e),t.split(" ").forEach(function(t){return e.forEach(function(e){return e.hasAttribute(t)&&e.removeAttribute(t)})})}function ae(e,t){for(var n=0,r=[t,"data-"+t];n<r.length;n++)if(ie(e,r[n]))return re(e,r[n])}function se(e,t){return H(e)||ue(e,ce(e,t))}function le(e,t){var n=V(e);return n.length&&n||he(e,ce(e,t))}function ce(e,t){return void 0===t&&(t=document),ge(e)||I(t)?t:t.ownerDocument}function ue(e,t){return H(fe(e,t,"querySelector"))}function he(e,t){return V(fe(e,t,"querySelectorAll"))}function fe(e,t,n){if(void 0===t&&(t=document),!e||!D(e))return null;var r;ge(e=e.replace(pe,"$1 *"))&&(r=[],e=function(e){return e.match(me).map(function(e){return e.replace(/,$/,"").trim()})}(e).map(function(e,n){var i=t;if("!"===e[0]){var o=e.substr(1).trim().split(" ");i=be(t.parentNode,o[0]),e=o.slice(1).join(" ").trim()}if("-"===e[0]){var a=e.substr(1).trim().split(" "),s=(i||t).previousElementSibling;i=xe(s,e.substr(1))?s:null,e=a.slice(1).join(" ")}return i?(i.id||(i.id="uk-"+Date.now()+n,r.push(function(){return oe(i,"id")})),"#"+ke(i.id)+" "+e):null}).filter(Boolean).join(","),t=document);try{return t[n](e)}catch(e){return null}finally{r&&r.forEach(function(e){return e()})}}var de=/(^|[^\\],)\s*[!>+~-]/,pe=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g;function ge(e){return D(e)&&e.match(de)}var me=/.*?[^\\](?:,|$)/g,ve=Element.prototype,ye=ve.matches||ve.webkitMatchesSelector||ve.msMatchesSelector;function xe(e,t){return V(e).some(function(e){return ye.call(e,t)})}var we=ve.closest||function(e){var t=this;do{if(xe(t,e))return t;t=t.parentNode}while(t&&1===t.nodeType)};function be(e,t){return d(t,">")&&(t=t.slice(1)),S(e)?e.parentNode&&we.call(e,t):V(e).map(function(e){return be(e,t)}).filter(Boolean)}function _e(e,t){for(var n=[],r=H(e).parentNode;r&&1===r.nodeType;)xe(r,t)&&n.push(r),r=r.parentNode;return n}var $e=window.CSS&&CSS.escape||function(e){return e.replace(/([^\x7f-\uFFFF\w-])/g,function(e){return"\\"+e})};function ke(e){return D(e)?$e.call(null,e):""}var Ae={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 Ee(e){return V(e).some(function(e){return Ae[e.tagName.toLowerCase()]})}function je(e){return V(e).some(function(e){return e.offsetWidth||e.offsetHeight||e.getClientRects().length})}var Ie="input,select,textarea,button";function Te(e){return V(e).some(function(e){return xe(e,Ie)})}function Se(e,t){return V(e).filter(function(e){return xe(e,t)})}function Me(e,t){return D(t)?xe(e,t)||be(e,t):e===t||(I(t)?t.documentElement:H(t)).contains(H(e))}function Ce(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Re(e),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4];return r=ze(r),o&&(a=function(e,t,n){var r=this;return function(i){e.forEach(function(e){var o=">"===t[0]?he(t,e).reverse().filter(function(e){return Me(i.target,e)})[0]:be(i.target,t);o&&(i.delegate=e,i.current=o,n.call(r,i))})}}(r,o,a)),1<a.length&&(a=function(e){return function(t){return $(t.detail)?e.apply(void 0,[t].concat(t.detail)):e(t)}}(a)),i.split(" ").forEach(function(e){return r.forEach(function(t){return t.addEventListener(e,a,s)})}),function(){return Oe(r,i,a,s)}}function Oe(e,t,n,r){void 0===r&&(r=!1),e=ze(e),t.split(" ").forEach(function(t){return e.forEach(function(e){return e.removeEventListener(t,n,r)})})}function De(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Re(e),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],c=Ce(r,i,o,function(e){var t=!l||l(e);t&&(c(),a(e,t))},s);return c}function Ne(e,t,n){return ze(e).reduce(function(e,r){return e&&r.dispatchEvent(Pe(t,!0,!0,n))},!0)}function Pe(e,t,n,r){if(void 0===t&&(t=!0),void 0===n&&(n=!1),D(e)){var i=document.createEvent("CustomEvent");i.initCustomEvent(e,t,n,r),e=i}return e}function Re(e){return k(e[2])&&e.splice(2,0,!1),e}function Le(e){return e&&"addEventListener"in e}function Fe(e){return Le(e)?e:H(e)}function ze(e){return $(e)?e.map(Fe).filter(Boolean):D(e)?he(e):Le(e)?[e]:V(e)}function Be(e){return"touch"===e.pointerType||e.touches}function He(e,t){void 0===t&&(t="client");var n=e.touches,r=e.changedTouches,i=n&&n[0]||r&&r[0]||e;return{x:i[t+"X"],y:i[t+"Y"]}}function Ve(){var e=this;this.promise=new We(function(t,n){e.reject=n,e.resolve=t})}var We="Promise"in window?window.Promise:qe,Ue=2,Ye="setImmediate"in window?setImmediate:setTimeout;function qe(e){this.state=Ue,this.value=void 0,this.deferred=[];var t=this;try{e(function(e){t.resolve(e)},function(e){t.reject(e)})}catch(e){t.reject(e)}}qe.reject=function(e){return new qe(function(t,n){n(e)})},qe.resolve=function(e){return new qe(function(t,n){t(e)})},qe.all=function(e){return new qe(function(t,n){var r=[],i=0;function o(n){return function(o){r[n]=o,(i+=1)===e.length&&t(r)}}0===e.length&&t(r);for(var a=0;a<e.length;a+=1)qe.resolve(e[a]).then(o(a),n)})},qe.race=function(e){return new qe(function(t,n){for(var r=0;r<e.length;r+=1)qe.resolve(e[r]).then(t,n)})};var Qe=qe.prototype;function Ke(e,t){return new We(function(n,r){var i=Q({data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:X,responseType:""},t);i.beforeSend(i);var o=i.xhr;for(var a in i)if(a in o)try{o[a]=i[a]}catch(n){}for(var s in o.open(i.method.toUpperCase(),e),i.headers)o.setRequestHeader(s,i.headers[s]);Ce(o,"load",function(){0===o.status||200<=o.status&&o.status<300||304===o.status?n(o):r(Q(Error(o.statusText),{xhr:o,status:o.status}))}),Ce(o,"error",function(){return r(Q(Error("Network Error"),{xhr:o}))}),Ce(o,"timeout",function(){return r(Q(Error("Network Timeout"),{xhr:o}))}),o.send(i.data)})}function Je(e,t,n){return new We(function(r,i){var o=new Image;o.onerror=i,o.onload=function(){return r(o)},n&&(o.sizes=n),t&&(o.srcset=t),o.src=e})}Qe.resolve=function(e){var t=this;if(t.state===Ue){if(e===t)throw new TypeError("Promise settled with itself.");var n=!1;try{var r=e&&e.then;if(null!==e&&A(e)&&k(r))return void r.call(e,function(e){n||t.resolve(e),n=!0},function(e){n||t.reject(e),n=!0})}catch(e){return void(n||t.reject(e))}t.state=0,t.value=e,t.notify()}},Qe.reject=function(e){var t=this;if(t.state===Ue){if(e===t)throw new TypeError("Promise settled with itself.");t.state=1,t.value=e,t.notify()}},Qe.notify=function(){var e=this;Ye(function(){if(e.state!==Ue)for(;e.deferred.length;){var t=e.deferred.shift(),n=t[0],r=t[1],i=t[2],o=t[3];try{0===e.state?k(n)?i(n.call(void 0,e.value)):i(e.value):1===e.state&&(k(r)?i(r.call(void 0,e.value)):o(e.value))}catch(t){o(t)}}})},Qe.then=function(e,t){var n=this;return new qe(function(r,i){n.deferred.push([e,t,r,i]),n.notify()})},Qe.catch=function(e){return this.then(void 0,e)};var Ge=/msie|trident/i.test(window.navigator.userAgent),Ze="rtl"===re(document.documentElement,"dir"),Xe="ontouchstart"in window,et=window.PointerEvent,tt=Xe||window.DocumentTouch&&document instanceof DocumentTouch||navigator.maxTouchPoints,nt=et?"pointerdown":Xe?"touchstart":"mousedown",rt=et?"pointermove":Xe?"touchmove":"mousemove",it=et?"pointerup":Xe?"touchend":"mouseup",ot=et?"pointerenter":Xe?"":"mouseenter",at=et?"pointerleave":Xe?"":"mouseleave",st=et?"pointercancel":"touchcancel";function lt(e){if("loading"===document.readyState)var t=Ce(document,"DOMContentLoaded",function(){t(),e()});else e()}function ct(e,t){return t?V(e).indexOf(H(t)):V((e=H(e))&&e.parentNode.children).indexOf(e)}function ut(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=!1);var i=(t=V(t)).length;return e=P(e)?z(e):"next"===e?n+1:"previous"===e?n-1:ct(t,e),r?Z(e,0,i-1):(e%=i)<0?e+i:e}function ht(e){return(e=At(e)).innerHTML="",e}function ft(e,t){return e=At(e),L(t)?e.innerHTML:dt(e.hasChildNodes()?ht(e):e,t)}function dt(e,t){return e=At(e),mt(t,function(t){return e.appendChild(t)})}function pt(e,t){return e=At(e),mt(t,function(t){return e.parentNode.insertBefore(t,e)})}function gt(e,t){return e=At(e),mt(t,function(t){return e.nextSibling?pt(e.nextSibling,t):dt(e.parentNode,t)})}function mt(e,t){return(e=D(e)?$t(e):e)?"length"in e?V(e).map(t):t(e):null}function vt(e){V(e).map(function(e){return e.parentNode&&e.parentNode.removeChild(e)})}function yt(e,t){for(t=H(pt(e,t));t.firstChild;)t=t.firstChild;return dt(t,e),t}function xt(e,t){return V(V(e).map(function(e){return e.hasChildNodes?yt(V(e.childNodes),t):dt(e,t)}))}function wt(e){V(e).map(function(e){return e.parentNode}).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(e){pt(e,e.childNodes),vt(e)})}var bt=/^\s*<(\w+|!)[^>]*>/,_t=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function $t(e){var t=_t.exec(e);if(t)return document.createElement(t[1]);var n=document.createElement("div");return bt.test(e)?n.insertAdjacentHTML("beforeend",e.trim()):n.textContent=e,1<n.childNodes.length?V(n.childNodes):n.firstChild}function kt(e,t){if(e&&1===e.nodeType)for(t(e),e=e.firstElementChild;e;)kt(e,t),e=e.nextElementSibling}function At(e,t){return D(e)?jt(e)?H($t(e)):ue(e,t):H(e)}function Et(e,t){return D(e)?jt(e)?V($t(e)):he(e,t):V(e)}function jt(e){return"<"===e[0]||e.match(/^\s*</)}function It(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];Dt(e,t,"add")}function Tt(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];Dt(e,t,"remove")}function St(e,t){re(e,"class",function(e){return(e||"").replace(new RegExp("\\b"+t+"\\b","g"),"")})}function Mt(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];t[0]&&Tt(e,t[0]),t[1]&&It(e,t[1])}function Ct(e,t){return t&&V(e).some(function(e){return e.classList.contains(t.split(" ")[0])})}function Ot(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];if(t.length){var r=D((t=Nt(t))[t.length-1])?[]:t.pop();t=t.filter(Boolean),V(e).forEach(function(e){for(var n=e.classList,i=0;i<t.length;i++)Pt.Force?n.toggle.apply(n,[t[i]].concat(r)):n[(L(r)?!n.contains(t[i]):r)?"add":"remove"](t[i])})}}function Dt(e,t,n){(t=Nt(t).filter(Boolean)).length&&V(e).forEach(function(e){var r=e.classList;Pt.Multiple?r[n].apply(r,t):t.forEach(function(e){return r[n](e)})})}function Nt(e){return e.reduce(function(e,t){return e.concat.call(e,D(t)&&w(t," ")?t.trim().split(" "):t)},[])}var Pt={get Multiple(){return this.get("_multiple")},get Force(){return this.get("_force")},get:function(e){if(!r(this,e)){var t=document.createElement("_").classList;t.add("a","b"),t.toggle("c",!1),this._multiple=t.contains("b"),this._force=!t.contains("c")}return this[e]}},Rt={"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 Lt(e,t,n){return V(e).map(function(e){if(D(t)){if(t=Wt(t),L(n))return zt(e,t);n||N(n)?e.style[t]=P(n)&&!Rt[t]?n+"px":n:e.style.removeProperty(t)}else{if($(t)){var r=Ft(e);return t.reduce(function(e,t){return e[t]=r[Wt(t)],e},{})}A(t)&&K(t,function(t,n){return Lt(e,n,t)})}return e})[0]}function Ft(e,t){return(e=H(e)).ownerDocument.defaultView.getComputedStyle(e,t)}function zt(e,t,n){return Ft(e,n)[t]}var Bt={};function Ht(e){var t=document.documentElement;if(!Ge)return Ft(t).getPropertyValue("--uk-"+e);if(!(e in Bt)){var n=dt(t,document.createElement("div"));It(n,"uk-"+e),Bt[e]=zt(n,"content",":before").replace(/^["'](.*)["']$/,"$1"),vt(n)}return Bt[e]}var Vt={};function Wt(e){var t=Vt[e];return t=t||(Vt[e]=function(e){e=a(e);var t=document.documentElement.style;if(e in t)return e;for(var n,r=Ut.length;r--;)if((n="-"+Ut[r]+"-"+e)in t)return n}(e)||e)}var Ut=["webkit","moz","ms"];function Yt(e,t,n,r){return void 0===n&&(n=400),void 0===r&&(r="linear"),We.all(V(e).map(function(e){return new We(function(i,o){for(var a in t){var s=Lt(e,a);""===s&&Lt(e,a,s)}var l=setTimeout(function(){return Ne(e,"transitionend")},n);De(e,"transitionend transitioncanceled",function(t){var n=t.type;clearTimeout(l),Tt(e,"uk-transition"),Lt(e,{"transition-property":"","transition-duration":"","transition-timing-function":""}),"transitioncanceled"===n?o():i()},!1,function(t){var n=t.target;return e===n}),It(e,"uk-transition"),Lt(e,Q({"transition-property":Object.keys(t).map(Wt).join(","),"transition-duration":n+"ms","transition-timing-function":r},t))})}))}var qt={start:Yt,stop:function(e){return Ne(e,"transitionend"),We.resolve()},cancel:function(e){Ne(e,"transitioncanceled")},inProgress:function(e){return Ct(e,"uk-transition")}},Qt="uk-animation-",Kt="uk-cancel-animation";function Jt(e,t,n,r,i){var o=arguments;return void 0===n&&(n=200),We.all(V(e).map(function(e){return new We(function(a,s){if(Ct(e,Kt))requestAnimationFrame(function(){return We.resolve().then(function(){return Jt.apply(void 0,o).then(a,s)})});else{var l=t+" "+Qt+(i?"leave":"enter");d(t,Qt)&&(r&&(l+=" uk-transform-origin-"+r),i&&(l+=" "+Qt+"reverse")),c(),De(e,"animationend animationcancel",function(t){var n=t.type,r=!1;"animationcancel"===n?(s(),c()):(a(),We.resolve().then(function(){r=!0,c()})),requestAnimationFrame(function(){r||(It(e,Kt),requestAnimationFrame(function(){return Tt(e,Kt)}))})},!1,function(t){var n=t.target;return e===n}),Lt(e,"animationDuration",n+"ms"),It(e,l)}function c(){Lt(e,"animationDuration",""),St(e,Qt+"\\S*")}})}))}var Gt=new RegExp(Qt+"(enter|leave)"),Zt={in:function(e,t,n,r){return Jt(e,t,n,r,!1)},out:function(e,t,n,r){return Jt(e,t,n,r,!0)},inProgress:function(e){return Gt.test(re(e,"class"))},cancel:function(e){Ne(e,"animationcancel")}},Xt={width:["x","left","right"],height:["y","top","bottom"]};function en(e,t,n,r,i,o,a,s){n=un(n),r=un(r);var l={element:n,target:r};if(!e||!t)return l;var c=nn(e),u=nn(t),h=u;if(cn(h,n,c,-1),cn(h,r,u,1),i=hn(i,c.width,c.height),o=hn(o,u.width,u.height),i.x+=o.x,i.y+=o.y,h.left+=i.x,h.top+=i.y,a){var f=[nn(xn(e))];s&&f.unshift(nn(s)),K(Xt,function(e,t){var o=e[0],s=e[1],d=e[2];!0!==a&&!w(a,o)||f.some(function(e){var a=n[o]===s?-c[t]:n[o]===d?c[t]:0,f=r[o]===s?u[t]:r[o]===d?-u[t]:0;if(h[s]<e[s]||h[s]+c[t]>e[d]){var p=c[t]/2,g="center"===r[o]?-u[t]/2:0;return"center"===n[o]&&(m(p,g)||m(-p,-g))||m(a,f)}function m(n,r){var a=h[s]+n+r-2*i[o];if(a>=e[s]&&a+c[t]<=e[d])return h[s]=a,["element","target"].forEach(function(e){l[e][o]=n?l[e][o]===Xt[t][1]?Xt[t][2]:Xt[t][1]:l[e][o]}),!0}})})}return tn(e,h),l}function tn(e,t){if(e=H(e),!t)return nn(e);var n=tn(e),r=Lt(e,"position");["left","top"].forEach(function(i){if(i in t){var o=Lt(e,i);Lt(e,i,t[i]-n[i]+B("absolute"===r&&"auto"===o?rn(e)[i]:o))}})}function nn(e){var t,n,r=xn(e=H(e)),i=r.pageYOffset,o=r.pageXOffset;if(j(e)){var a=e.innerHeight,s=e.innerWidth;return{top:i,left:o,height:a,width:s,bottom:i+a,right:o+s}}je(e)||"none"!==Lt(e,"display")||(t=re(e,"style"),n=re(e,"hidden"),re(e,{style:(t||"")+";display:block !important;",hidden:null}));var l=e.getBoundingClientRect();return L(t)||re(e,{style:t,hidden:n}),{height:l.height,width:l.width,top:l.top+i,left:l.left+o,bottom:l.bottom+i,right:l.right+o}}function rn(e){var t=(e=H(e)).offsetParent||function(e){return wn(e).documentElement}(e),n=tn(t),r=["top","left"].reduce(function(r,i){var o=u(i);return r[i]-=n[i]+B(Lt(e,"margin"+o))+B(Lt(t,"border"+o+"Width")),r},tn(e));return{top:r.top,left:r.left}}var on=sn("height"),an=sn("width");function sn(e){var t=u(e);return function(n,r){if(n=H(n),L(r)){if(j(n))return n["inner"+t];if(I(n)){var i=n.documentElement;return Math.max(i["offset"+t],i["scroll"+t])}return(r="auto"===(r=Lt(n,e))?n["offset"+t]:B(r)||0)-ln(e,n)}Lt(n,e,r||0===r?+r+ln(e,n)+"px":"")}}function ln(e,t,n){return void 0===n&&(n="border-box"),Lt(t,"boxSizing")===n?Xt[e].slice(1).map(u).reduce(function(e,n){return e+B(Lt(t,"padding"+n))+B(Lt(t,"border"+n+"Width"))},0):0}function cn(e,t,n,r){K(Xt,function(i,o){var a=i[0],s=i[1],l=i[2];t[a]===l?e[s]+=n[o]*r:"center"===t[a]&&(e[s]+=n[o]*r/2)})}function un(e){var t=/left|center|right/,n=/top|center|bottom/;return 1===(e=(e||"").split(" ")).length&&(e=t.test(e[0])?e.concat(["center"]):n.test(e[0])?["center"].concat(e):["center","center"]),{x:t.test(e[0])?e[0]:"center",y:n.test(e[1])?e[1]:"center"}}function hn(e,t,n){var r=(e||"").split(" "),i=r[0],o=r[1];return{x:i?B(i)*(g(i,"%")?t/100:1):0,y:o?B(o)*(g(o,"%")?n/100:1):0}}function fn(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}}function dn(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),!je(e))return!1;var r=xn(e=H(e)),i=e.getBoundingClientRect(),o={top:-t,left:-n,bottom:t+on(r),right:n+an(r)};return ee(i,o)||te({x:i.left,y:i.top},o)}function pn(e,t){if(void 0===t&&(t=0),!je(e))return 0;var n=xn(e=H(e)),r=wn(e),i=e.offsetHeight+t,o=mn(e)[0],a=on(n),s=a+Math.min(0,o-a),l=Math.max(0,a-(on(r)+t-(o+i)));return Z((s+n.pageYOffset-o)/((s+(i-(l<a?l:0)))/100)/100)}function gn(e,t){if(j(e=H(e))||I(e)){var n=xn(e);(0,n.scrollTo)(n.pageXOffset,t)}else e.scrollTop=t}function mn(e){var t=[0,0];do{if(t[0]+=e.offsetTop,t[1]+=e.offsetLeft,"fixed"===Lt(e,"position")){var n=xn(e);return t[0]+=n.pageYOffset,t[1]+=n.pageXOffset,t}}while(e=e.offsetParent);return t}function vn(e,t,n){return void 0===t&&(t="width"),void 0===n&&(n=window),P(e)?+e:g(e,"vh")?yn(on(xn(n)),e):g(e,"vw")?yn(an(xn(n)),e):g(e,"%")?yn(nn(n)[t],e):B(e)}function yn(e,t){return e*B(t)/100}function xn(e){return j(e)?e:wn(e).defaultView}function wn(e){return H(e).ownerDocument}var bn={reads:[],writes:[],read:function(e){return this.reads.push(e),$n(),e},write:function(e){return this.writes.push(e),$n(),e},clear:function(e){return An(this.reads,e)||An(this.writes,e)},flush:_n};function _n(){kn(bn.reads),kn(bn.writes.splice(0,bn.writes.length)),bn.scheduled=!1,(bn.reads.length||bn.writes.length)&&$n(!0)}function $n(e){void 0===e&&(e=!1),bn.scheduled||(bn.scheduled=!0,e?We.resolve().then(_n):requestAnimationFrame(_n))}function kn(e){for(var t;t=e.shift();)t()}function An(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}function En(){}function jn(e,t){return(t.y-e.y)/(t.x-e.x)}En.prototype={positions:[],position:null,init:function(){var e=this;this.positions=[],this.position=null;var t=!1;this.unbind=Ce(document,"mousemove",function(n){t||(setTimeout(function(){var r=Date.now(),i=e.positions.length;i&&100<r-e.positions[i-1].time&&e.positions.splice(0,i),e.positions.push({time:r,x:n.pageX,y:n.pageY}),5<e.positions.length&&e.positions.shift(),t=!1},5),t=!0)})},cancel:function(){this.unbind&&this.unbind()},movesTo:function(e){if(this.positions.length<2)return!1;var t=tn(e),n=this.positions[this.positions.length-1],r=this.positions[0];if(t.left<=n.x&&n.x<=t.right&&t.top<=n.y&&n.y<=t.bottom)return!1;var i=[[{x:t.left,y:t.top},{x:t.right,y:t.bottom}],[{x:t.right,y:t.top},{x:t.left,y:t.bottom}]];return t.right<=n.x||(t.left>=n.x?(i[0].reverse(),i[1].reverse()):t.bottom<=n.y?i[0].reverse():t.top>=n.y&&i[1].reverse()),!!i.reduce(function(e,t){return e+(jn(r,t[0])<jn(n,t[0])&&jn(r,t[1])>jn(n,t[1]))},0)}};var In={};function Tn(e,t,n){return In.computed(k(e)?e.call(n,n):e,k(t)?t.call(n,n):t)}function Sn(e,t){return e=e&&!$(e)?[e]:e,t?e?e.concat(t):$(t)?t:[t]:e}function Mn(e,t,n){var i={};if(k(t)&&(t=t.options),t.extends&&(e=Mn(e,t.extends,n)),t.mixins)for(var o=0,a=t.mixins.length;o<a;o++)e=Mn(e,t.mixins[o],n);for(var s in e)c(s);for(var l in t)r(e,l)||c(l);function c(r){i[r]=(In[r]||function(e,t){return L(t)?e:t})(e[r],t[r],n)}return i}function Cn(e,t){var n;void 0===t&&(t=[]);try{return e?d(e,"{")?JSON.parse(e):t.length&&!w(e,":")?((n={})[t[0]]=e,n):e.split(";").reduce(function(e,t){var n=t.split(/:(.*)/),r=n[0],i=n[1];return r&&!L(i)&&(e[r.trim()]=i.trim()),e},{}):{}}catch(e){return{}}}function On(e){this.id=++Dn,this.el=H(e)}In.events=In.created=In.beforeConnect=In.connected=In.beforeDisconnect=In.disconnected=In.destroy=Sn,In.args=function(e,t){return!1!==t&&Sn(t||e)},In.update=function(e,t){return J(Sn(e,k(t)?{read:t}:t),"order")},In.props=function(e,t){return $(t)&&(t=t.reduce(function(e,t){return e[t]=String,e},{})),In.methods(e,t)},In.computed=In.methods=function(e,t){return t?e?Q({},e,t):t:e},In.data=function(e,t,n){return n?Tn(e,t,n):t?e?function(n){return Tn(e,t,n)}:t:e};var Dn=0;function Nn(e,t){try{e.contentWindow.postMessage(JSON.stringify(Q({event:"command"},t)),"*")}catch(e){}}On.prototype.isVideo=function(){return this.isYoutube()||this.isVimeo()||this.isHTML5()},On.prototype.isHTML5=function(){return"VIDEO"===this.el.tagName},On.prototype.isIFrame=function(){return"IFRAME"===this.el.tagName},On.prototype.isYoutube=function(){return this.isIFrame()&&!!this.el.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)},On.prototype.isVimeo=function(){return this.isIFrame()&&!!this.el.src.match(/vimeo\.com\/video\/.*/)},On.prototype.enableApi=function(){var e=this;if(this.ready)return this.ready;var t,n=this.isYoutube(),r=this.isVimeo();return n||r?this.ready=new We(function(i){De(e.el,"load",function(){if(n){var r=function(){return Nn(e.el,{event:"listening",id:e.id})};t=setInterval(r,100),r()}}),function(e){return new We(function(t){De(window,"message",function(e,n){return t(n)},!1,function(t){var n=t.data;if(n&&D(n)){try{n=JSON.parse(n)}catch(t){return}return n&&e(n)}})})}(function(t){return n&&t.id===e.id&&"onReady"===t.event||r&&Number(t.player_id)===e.id}).then(function(){i(),t&&clearInterval(t)}),re(e.el,"src",e.el.src+(w(e.el.src,"?")?"&":"?")+(n?"enablejsapi=1":"api=1&player_id="+e.id))}):We.resolve()},On.prototype.play=function(){var e=this;if(this.isVideo())if(this.isIFrame())this.enableApi().then(function(){return Nn(e.el,{func:"playVideo",method:"play"})});else if(this.isHTML5())try{var t=this.el.play();t&&t.catch(X)}catch(e){}},On.prototype.pause=function(){var e=this;this.isVideo()&&(this.isIFrame()?this.enableApi().then(function(){return Nn(e.el,{func:"pauseVideo",method:"pause"})}):this.isHTML5()&&this.el.pause())},On.prototype.mute=function(){var e=this;this.isVideo()&&(this.isIFrame()?this.enableApi().then(function(){return Nn(e.el,{func:"mute",method:"setVolume",value:0})}):this.isHTML5()&&(this.el.muted=!0,re(this.el,"muted","")))};var Pn,Rn,Ln,Fn,zn,Bn,Hn,Vn,Wn,Un="IntersectionObserver"in window?window.IntersectionObserver:function(){function e(e,t){var n=this;void 0===t&&(t={});var r=t.rootMargin;void 0===r&&(r="0 0"),this.targets=[];var i,o=(r||"0 0").split(" ").map(B),a=o[0],s=o[1];this.offsetTop=a,this.offsetLeft=s,this.apply=function(){i=i||requestAnimationFrame(function(){return setTimeout(function(){var t=n.takeRecords();t.length&&e(t,n),i=!1})})},this.off=Ce(window,"scroll resize load",this.apply,{passive:!0,capture:!0})}return e.prototype.takeRecords=function(){var e=this;return this.targets.filter(function(t){var n=dn(t.target,e.offsetTop,e.offsetLeft);if(null===t.isIntersecting||n^t.isIntersecting)return t.isIntersecting=n,!0})},e.prototype.observe=function(e){this.targets.push({target:e,isIntersecting:null}),this.apply()},e.prototype.disconnect=function(){this.targets=[],this.off()},e}();function Yn(e){return!(!d(e,"uk-")&&!d(e,"data-uk-"))&&l(e.replace("data-uk-","").replace("uk-",""))}function qn(e){this._init(e)}function Qn(e,t){if(e)for(var n in e)e[n]._connected&&e[n]._callUpdate(t)}function Kn(e,t){var n={},r=e.args;void 0===r&&(r=[]);var i=e.props;void 0===i&&(i={});var o=e.el;if(!i)return n;for(var s in i){var c=a(s),u=ae(o,c);if(!L(u)){if(u=i[s]===Boolean&&""===u||Xn(i[s],u),"target"===c&&(!u||d(u,"_")))continue;n[s]=u}}var h=Cn(ae(o,t),r);for(var f in h){var p=l(f);void 0!==i[p]&&(n[p]=Xn(i[p],h[f]))}return n}function Jn(e,t,n){Object.defineProperty(e,t,{enumerable:!0,get:function(){var i=e._computeds,o=e.$props,a=e.$el;return r(i,t)||(i[t]=(n.get||n).call(e,o,a)),i[t]},set:function(r){var i=e._computeds;i[t]=n.set?n.set.call(e,r):r,L(i[t])&&delete i[t]}})}function Gn(t,n,r){E(n)||(n={name:r,handler:n});var i=n.name,o=n.el,a=n.handler,s=n.capture,l=n.passive,c=n.delegate,u=n.filter,h=n.self;o=k(o)?o.call(t):o||t.$el,$(o)?o.forEach(function(e){return Gn(t,Q({},n,{el:e}),r)}):!o||u&&!u.call(t)||(a=function(e){return function(t){return $(t.detail)?e.apply(void 0,[t].concat(t.detail)):e(t)}}(D(a)?t[a]:e(a,t)),h&&(a=function(e){return function(t){if(t.target===t.currentTarget||t.target===t.current)return e.call(null,t)}}(a)),t._events.push(Ce(o,i,c?D(c)?c:c.call(t):null,a,O(l)?{passive:l,capture:s}:s)))}function Zn(e,t){return e.every(function(e){return!e||!r(e,t)})}function Xn(e,t){return e===Boolean?F(t):e===Number?z(t):"list"===e?W(t):e?e(t):t}qn.util=Object.freeze({ajax:Ke,getImage:Je,transition:Yt,Transition:qt,animate:Jt,Animation:Zt,attr:re,hasAttr:ie,removeAttr:oe,data:ae,addClass:It,removeClass:Tt,removeClasses:St,replaceClass:Mt,hasClass:Ct,toggleClass:Ot,positionAt:en,offset:tn,position:rn,height:on,width:an,boxModelAdjust:ln,flipPosition:fn,isInView:dn,scrolledOver:pn,scrollTop:gn,offsetPosition:mn,toPx:vn,ready:lt,index:ct,getIndex:ut,empty:ht,html:ft,prepend:function(e,t){return(e=At(e)).hasChildNodes()?mt(t,function(t){return e.insertBefore(t,e.firstChild)}):dt(e,t)},append:dt,before:pt,after:gt,remove:vt,wrapAll:yt,wrapInner:xt,unwrap:wt,fragment:$t,apply:kt,$:At,$$:Et,isIE:Ge,isRtl:Ze,hasTouch:tt,pointerDown:nt,pointerMove:rt,pointerUp:it,pointerEnter:ot,pointerLeave:at,pointerCancel:st,on:Ce,off:Oe,once:De,trigger:Ne,createEvent:Pe,toEventTargets:ze,isTouch:Be,getEventPos:He,fastdom:bn,isVoidElement:Ee,isVisible:je,selInput:Ie,isInput:Te,filter:Se,within:Me,bind:e,hasOwn:r,hyphenate:a,camelize:l,ucfirst:u,startsWith:d,endsWith:g,includes:w,findIndex:_,isArray:$,isFunction:k,isObject:A,isPlainObject:E,isWindow:j,isDocument:I,isJQuery:T,isNode:S,isNodeCollection:C,isBoolean:O,isString:D,isNumber:N,isNumeric:P,isEmpty:R,isUndefined:L,toBoolean:F,toNumber:z,toFloat:B,toNode:H,toNodes:V,toList:W,toMs:U,isEqual:Y,swap:q,assign:Q,each:K,sortBy:J,uniqueBy:G,clamp:Z,noop:X,intersectRect:ee,pointInRect:te,Dimensions:ne,MouseTracker:En,mergeOptions:Mn,parseOptions:Cn,Player:On,Promise:We,Deferred:Ve,IntersectionObserver:Un,query:se,queryAll:le,find:ue,findAll:he,matches:xe,closest:be,parents:_e,escape:ke,css:Lt,getStyles:Ft,getStyle:zt,getCssVar:Ht,propName:Wt}),qn.data="__uikit__",qn.prefix="uk-",qn.options={},Ln=(Pn=qn).data,Pn.use=function(e){if(!e.installed)return e.call(null,this),e.installed=!0,this},Pn.mixin=function(e,t){(t=(D(t)?Pn.component(t):t)||this).options=Mn(t.options,e)},Pn.extend=function(e){function t(e){this._init(e)}return e=e||{},((t.prototype=Object.create(this.prototype)).constructor=t).options=Mn(this.options,e),t.super=this,t.extend=this.extend,t},Pn.update=function(e,t){(function e(t,n){t&&t!==document.body&&t.parentNode&&(e(t.parentNode,n),n(t.parentNode))})(e=e?H(e):document.body,function(e){return Qn(e[Ln],t)}),kt(e,function(e){return Qn(e[Ln],t)})},Object.defineProperty(Pn,"container",{get:function(){return Rn||document.body},set:function(e){Rn=At(e)}}),(Fn=qn).prototype._callHook=function(e){var t=this,n=this.$options[e];n&&n.forEach(function(e){return e.call(t)})},Fn.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())},Fn.prototype._callDisconnected=function(){this._connected&&(this._callHook("beforeDisconnect"),this._observer&&(this._observer.disconnect(),this._observer=null),this._unbindEvents(),this._callHook("disconnected"),this._connected=!1)},Fn.prototype._callUpdate=function(e){var t=this;void 0===e&&(e="update");var n=e.type||e;w(["update","resize"],n)&&this._callWatches();var r=this.$options.update,i=this._frames,o=i.reads,a=i.writes;r&&r.forEach(function(e,r){var i=e.read,s=e.write,l=e.events;"update"!==n&&!w(l,n)||(i&&!w(bn.reads,o[r])&&(o[r]=bn.read(function(){var e=t._connected&&i.call(t,t._data,n);!1===e&&s?bn.clear(a[r]):E(e)&&Q(t._data,e)})),s&&!w(bn.writes,a[r])&&(a[r]=bn.write(function(){return t._connected&&s.call(t,t._data,n)})))})},Bn=0,(zn=qn).prototype._init=function(e){(e=e||{}).data=function(e,t){var n=e.data,r=(e.el,t.args),i=t.props;if(void 0===i&&(i={}),n=$(n)?R(r)?void 0:n.slice(0,r.length).reduce(function(e,t,n){return E(t)?Q(e,t):e[r[n]]=t,e},{}):n)for(var o in n)L(n[o])?delete n[o]:n[o]=i[o]?Xn(i[o],n[o]):n[o];return n}(e,this.constructor.options),this.$options=Mn(this.constructor.options,e,this),this.$el=null,this.$props={},this._frames={reads:{},writes:{}},this._events=[],this._uid=Bn++,this._initData(),this._initMethods(),this._initComputeds(),this._callHook("created"),e.el&&this.$mount(e.el)},zn.prototype._initData=function(){var e=this.$options.data;for(var t in void 0===e&&(e={}),e)this.$props[t]=this[t]=e[t]},zn.prototype._initMethods=function(){var t=this.$options.methods;if(t)for(var n in t)this[n]=e(t[n],this)},zn.prototype._initComputeds=function(){var e=this.$options.computed;if(this._computeds={},e)for(var t in e)Jn(this,t,e[t])},zn.prototype._callWatches=function(){var e=this.$options.computed,t=this._computeds;for(var n in t){var r=t[n];delete t[n],e[n].watch&&!Y(r,this[n])&&e[n].watch.call(this,this[n],r)}},zn.prototype._initProps=function(e){var t;for(t in e=e||Kn(this.$options,this.$name))L(e[t])||(this.$props[t]=e[t]);var n=[this.$options.computed,this.$options.methods];for(t in this.$props)t in e&&Zn(n,t)&&(this[t]=this.$props[t])},zn.prototype._initEvents=function(){var e=this,t=this.$options.events;t&&t.forEach(function(t){if(r(t,"handler"))Gn(e,t);else for(var n in t)Gn(e,t[n],n)})},zn.prototype._unbindEvents=function(){this._events.forEach(function(e){return e()}),this._events=[]},zn.prototype._initObserver=function(){var e=this,t=this.$options,n=t.attrs,r=t.props,i=t.el;if(!this._observer&&r&&!1!==n){n=$(n)?n:Object.keys(r),this._observer=new MutationObserver(function(){var t=Kn(e.$options,e.$name);n.some(function(n){return!L(t[n])&&t[n]!==e.$props[n]})&&e.$reset()});var o=n.map(function(e){return a(e)}).concat(this.$name);this._observer.observe(i,{attributes:!0,attributeFilter:o.concat(o.map(function(e){return"data-"+e}))})}},Vn=(Hn=qn).data,Wn={},Hn.component=function(e,t){if(!t)return E(Wn[e])&&(Wn[e]=Hn.extend(Wn[e])),Wn[e];Hn[e]=function(t,n){for(var r=arguments.length,i=Array(r);r--;)i[r]=arguments[r];var o=Hn.component(e);return E(t)?new o({data:t}):o.options.functional?new o({data:[].concat(i)}):t&&t.nodeType?a(t):Et(t).map(a)[0];function a(t){var r=Hn.getComponent(t,e);if(r){if(!n)return r;r.$destroy()}return new o({el:t,data:n})}};var n=E(t)?Q({},t):t.options;if(n.name=e,n.install&&n.install(Hn,n,e),Hn._initialized&&!n.functional){var r=a(e);bn.read(function(){return Hn[e]("[uk-"+r+"],[data-uk-"+r+"]")})}return Wn[e]=E(t)?n:t},Hn.getComponents=function(e){return e&&e[Vn]||{}},Hn.getComponent=function(e,t){return Hn.getComponents(e)[t]},Hn.connect=function(e){if(e[Vn])for(var t in e[Vn])e[Vn][t]._callConnected();for(var n=0;n<e.attributes.length;n++){var r=Yn(e.attributes[n].name);r&&r in Wn&&Hn[r](e)}},Hn.disconnect=function(e){for(var t in e[Vn])e[Vn][t]._callDisconnected()},function(e){var t=e.data;e.prototype.$mount=function(e){var n=this.$options.name;e[t]||(e[t]={}),e[t][n]||((e[t][n]=this).$el=this.$options.el=this.$options.el||e,Me(e,document)&&this._callConnected())},e.prototype.$emit=function(e){this._callUpdate(e)},e.prototype.$reset=function(){this._callDisconnected(),this._callConnected()},e.prototype.$destroy=function(e){void 0===e&&(e=!1);var n=this.$options,r=n.el,i=n.name;r&&this._callDisconnected(),this._callHook("destroy"),r&&r[t]&&(delete r[t][i],R(r[t])||delete r[t],e&&vt(this.$el))},e.prototype.$create=function(t,n,r){return e[t](n,r)},e.prototype.$update=e.update,e.prototype.$getComponent=e.getComponent;var n={};Object.defineProperties(e.prototype,{$container:Object.getOwnPropertyDescriptor(e,"container"),$name:{get:function(){var t=this.$options.name;return n[t]||(n[t]=e.prefix+a(t)),n[t]}}})}(qn);var er,tr,nr={connected:function(){Ct(this.$el,this.$name)||It(this.$el,this.$name)}},rr={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:function(e){return!!e.animation[0]},hasTransition:function(e){var t=e.animation;return this.hasAnimation&&!0===t[0]}},methods:{toggleElement:function(e,t,n){var r=this;return new We(function(i){function o(e){return We.all(e.map(function(e){return r._toggleElement(e,t,n)}))}var a,s=(e=V(e)).filter(function(e){return r.isToggled(e)}),l=e.filter(function(e){return!w(s,e)});if(r.queued&&L(n)&&L(t)&&r.hasAnimation&&!(e.length<2)){var c=document.body,u=c.scrollTop,h=s[0],f=Zt.inProgress(h)&&Ct(h,"uk-animation-leave")||qt.inProgress(h)&&"0px"===h.style.height;a=o(s),f||(a=a.then(function(){var e=o(l);return c.scrollTop=u,e}))}else a=o(l.concat(s));a.then(i,X)})},toggleNow:function(e,t){var n=this;return new We(function(r){return We.all(V(e).map(function(e){return n._toggleElement(e,t,!1)})).then(r,X)})},isToggled:function(e){var t=V(e||this.$el);return this.cls?Ct(t,this.cls.split(" ")[0]):!ie(t,"hidden")},updateAria:function(e){!1===this.cls&&re(e,"aria-hidden",!this.isToggled(e))},_toggleElement:function(e,t,n){var r=this;if(t=O(t)?t:Zt.inProgress(e)?Ct(e,"uk-animation-leave"):qt.inProgress(e)?"0px"===e.style.height:!this.isToggled(e),!Ne(e,"before"+(t?"show":"hide"),[this]))return We.reject();var i=(k(n)?n:!1!==n&&this.hasAnimation?this.hasTransition?function(e){var t=e.isToggled,n=e.duration,r=e.initProps,i=e.hideProps,o=e.transition,a=e._toggle;return function(e,s){var l=qt.inProgress(e),c=e.hasChildNodes?B(Lt(e.firstElementChild,"marginTop"))+B(Lt(e.lastElementChild,"marginBottom")):0,u=je(e)?on(e)+(l?0:c):0;qt.cancel(e),t(e)||a(e,!0),on(e,""),bn.flush();var h=on(e)+(l?0:c);return on(e,u),(s?qt.start(e,Q({},r,{overflow:"hidden",height:h}),Math.round(n*(1-u/h)),o):qt.start(e,i,Math.round(n*(u/h)),o).then(function(){return a(e,!1)})).then(function(){return Lt(e,r)})}}(this):function(e){var t=e.animation,n=e.duration,r=e.origin,i=e._toggle;return function(e,o){return Zt.cancel(e),o?(i(e,!0),Zt.in(e,t[0],n,r)):Zt.out(e,t[1]||t[0],n,r).then(function(){return i(e,!1)})}}(this):this._toggle)(e,t);function o(){Ne(e,t?"shown":"hidden",[r]),r.$update(e)}return Ne(e,t?"show":"hide",[this]),i?i.then(o):We.resolve(o())},_toggle:function(e,t){var n;e&&(t=Boolean(t),this.cls?(n=w(this.cls," ")||t!==Ct(e,this.cls))&&Ot(e,this.cls,w(this.cls," ")?void 0:t):(n=t===ie(e,"hidden"))&&re(e,"hidden",t?null:""),Et("[autofocus]",e).some(function(e){return je(e)?e.focus()||!0:e.blur()}),this.updateAria(e),n&&this.$update(e))}}},ir={mixins:[nr,rr],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:"uk-open",toggle:"> .uk-accordion-title",content:"> .uk-accordion-content",transition:"ease"},computed:{items:function(e,t){return Et(e.targets,t)}},events:[{name:"click",delegate:function(){return this.targets+" "+this.$props.toggle},handler:function(e){e.preventDefault(),this.toggle(ct(Et(this.targets+" "+this.$props.toggle,this.$el),e.current))}}],connected:function(){if(!1!==this.active){var e=this.items[Number(this.active)];e&&!Ct(e,this.clsOpen)&&this.toggle(e,!1)}},update:function(){var e=this;this.items.forEach(function(t){return e._toggle(At(e.content,t),Ct(t,e.clsOpen))});var t=!this.collapsible&&!Ct(this.items,this.clsOpen)&&this.items[0];t&&this.toggle(t,!1)},methods:{toggle:function(e,t){var n=this,r=ut(e,this.items),i=Se(this.items,"."+this.clsOpen);(e=this.items[r])&&[e].concat(!this.multiple&&!w(i,e)&&i||[]).forEach(function(r){var o=r===e,a=o&&!Ct(r,n.clsOpen);if(a||!o||n.collapsible||!(i.length<2)){Ot(r,n.clsOpen,a);var s=r._wrapper?r._wrapper.firstElementChild:At(n.content,r);r._wrapper||(r._wrapper=yt(s,"<div>"),re(r._wrapper,"hidden",a?"":null)),n._toggle(s,!0),n.toggleElement(r._wrapper,a,t).then(function(){Ct(r,n.clsOpen)===a&&(a||n._toggle(s,!1),r._wrapper=null,wt(s))})}})}}},or={mixins:[nr,rr],args:"animation",props:{close:String},data:{animation:[!0],selClose:".uk-alert-close",duration:150,hideProps:Q({opacity:0},rr.data.hideProps)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(e){e.preventDefault(),this.close()}}],methods:{close:function(){var e=this;this.toggleElement(this.$el).then(function(){return e.$destroy(!0)})}}},ar={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},computed:{inView:function(e){return"inview"===e.autoplay}},connected:function(){this.inView&&!ie(this.$el,"preload")&&(this.$el.preload="none"),this.player=new On(this.$el),this.automute&&this.player.mute()},update:{read:function(){return!!this.player&&{visible:je(this.$el)&&"hidden"!==Lt(this.$el,"visibility"),inView:this.inView&&dn(this.$el)}},write:function(e){var t=e.visible,n=e.inView;!t||this.inView&&!n?this.player.pause():(!0===this.autoplay||this.inView&&n)&&this.player.play()},events:["resize","scroll"]}},sr={mixins:[nr,ar],props:{width:Number,height:Number},data:{automute:!0},update:{read:function(){var e=this.$el;if(!je(e))return!1;var t=e.parentNode;return{height:t.offsetHeight,width:t.offsetWidth}},write:function(e){var t=e.height,n=e.width,r=this.$el,i=this.width||r.naturalWidth||r.videoWidth||r.clientWidth,o=this.height||r.naturalHeight||r.videoHeight||r.clientHeight;i&&o&&Lt(r,ne.cover({width:i,height:o},{width:n+(n%2?1:0),height:t+(t%2?1:0)}))},events:["resize"]}},lr={props:{pos:String,offset:null,flip:Boolean,clsPos:String},data:{pos:"bottom-"+(Ze?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(e){var t=e.pos;return(t+(w(t,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(e,t,n){var r;St(e,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?"),Lt(e,{top:"",left:""});var i=this.offset,o=this.getAxis();P(i)||(i=(r=At(i))?tn(r)["x"===o?"left":"top"]-tn(t)["x"===o?"right":"bottom"]:0);var a=en(e,t,"x"===o?fn(this.dir)+" "+this.align:this.align+" "+fn(this.dir),"x"===o?this.dir+" "+this.align:this.align+" "+this.dir,"x"===o?""+("left"===this.dir?-i:i):" "+("top"===this.dir?-i:i),null,this.flip,n).target,s=a.x,l=a.y;this.dir="x"===o?s:l,this.align="x"===o?l:s,Ot(e,this.clsPos+"-"+this.dir+"-"+this.align,!1===this.offset)},getAxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}},cr={mixins:[lr,rr],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryAlign:Boolean,delayShow:Number,delayHide:Number,clsDrop:String},data:{mode:["click","hover"],toggle:"- *",boundary:window,boundaryAlign:!1,delayShow:0,delayHide:800,clsDrop:!1,hoverIdle:200,animation:["uk-animation-fade"],cls:"uk-open"},computed:{boundary:function(e,t){return se(e.boundary,t)},clsDrop:function(e){return e.clsDrop||"uk-"+this.$options.name},clsPos:function(){return this.clsDrop}},created:function(){this.tracker=new En},connected:function(){It(this.$el,this.clsDrop);var e=this.$props.toggle;this.toggle=e&&this.$create("toggle",se(e,this.$el),{target:this.$el,mode:this.mode}),this.toggle||Ne(this.$el,"updatearia")},events:[{name:"click",delegate:function(){return"."+this.clsDrop+"-close"},handler:function(e){e.preventDefault(),this.hide(!1)}},{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(e){var t=e.target.hash;t||e.preventDefault(),t&&Me(t,this.$el)||this.hide(!1)}},{name:"beforescroll",handler:function(){this.hide(!1)}},{name:"toggle",self:!0,handler:function(e,t){e.preventDefault(),this.isToggled()?this.hide(!1):this.show(t,!1)}},{name:ot,filter:function(){return w(this.mode,"hover")},handler:function(e){Be(e)||(er&&er!==this&&er.toggle&&w(er.toggle.mode,"hover")&&!Me(e.target,er.toggle.$el)&&!te({x:e.pageX,y:e.pageY},tn(er.$el))&&er.hide(!1),e.preventDefault(),this.show(this.toggle))}},{name:"toggleshow",handler:function(e,t){t&&!w(t.target,this.$el)||(e.preventDefault(),this.show(t||this.toggle))}},{name:"togglehide "+at,handler:function(e,t){Be(e)||t&&!w(t.target,this.$el)||(e.preventDefault(),this.toggle&&w(this.toggle.mode,"hover")&&this.hide())}},{name:"beforeshow",self:!0,handler:function(){this.clearTimers(),Zt.cancel(this.$el),this.position()}},{name:"show",self:!0,handler:function(){this.tracker.init(),Ne(this.$el,"updatearia"),tr||(tr=!0,Ce(document,it,function(e){var t,n=e.target;if(!e.defaultPrevented)for(;er&&er!==t&&!Me(n,er.$el)&&(!er.toggle||!Me(n,er.toggle.$el));)(t=er).hide(!1)}))}},{name:"beforehide",self:!0,handler:function(){this.clearTimers()}},{name:"hide",handler:function(e){var t=e.target;this.$el===t?(er=this.isActive()?null:er,Ne(this.$el,"updatearia"),this.tracker.cancel()):er=null===er&&Me(t,this.$el)&&this.isToggled()?this:er}},{name:"updatearia",self:!0,handler:function(e,t){e.preventDefault(),this.updateAria(this.$el),(t||this.toggle)&&(re((t||this.toggle).$el,"aria-expanded",this.isToggled()?"true":"false"),Ot(this.toggle.$el,this.cls,this.isToggled()))}}],update:{write:function(){this.isToggled()&&!Zt.inProgress(this.$el)&&this.position()},events:["resize"]},methods:{show:function(e,t){var n=this;function r(){return!n.isToggled()&&n.toggleElement(n.$el,!0)}function i(){if(n.toggle=e||n.toggle,n.clearTimers(),!n.isActive())if(t&&er&&er!==n&&er.isDelaying)n.showTimer=setTimeout(n.show,10);else{if(n.isParentOf(er)){if(!er.hideTimer)return;er.hide(!1)}else if(er&&n.isChildOf(er))er.clearTimers();else if(er&&!n.isChildOf(er)&&!n.isParentOf(er))for(var i;er&&er!==i&&!n.isChildOf(er);)(i=er).hide(!1);t&&n.delayShow?n.showTimer=setTimeout(r,n.delayShow):r(),er=n}}void 0===t&&(t=!0),e&&this.toggle&&e.$el!==this.toggle.$el?(De(this.$el,"hide",i),this.hide(!1)):i()},hide:function(e){var t=this;function n(){return t.toggleNow(t.$el,!1)}void 0===e&&(e=!0),this.clearTimers(),this.isDelaying=this.tracker.movesTo(this.$el),e&&this.isDelaying?this.hideTimer=setTimeout(this.hide,this.hoverIdle):e&&this.delayHide?this.hideTimer=setTimeout(n,this.delayHide):n()},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive:function(){return er===this},isChildOf:function(e){return e&&e!==this&&Me(this.$el,e.$el)},isParentOf:function(e){return e&&e!==this&&Me(e.$el,this.$el)},position:function(){St(this.$el,this.clsDrop+"-(stack|boundary)"),Lt(this.$el,{top:"",left:"",display:"block"}),Ot(this.$el,this.clsDrop+"-boundary",this.boundaryAlign);var e=tn(this.boundary),t=this.boundaryAlign?e:tn(this.toggle.$el);if("justify"===this.align){var n="y"===this.getAxis()?"width":"height";Lt(this.$el,n,t[n])}else this.$el.offsetWidth>Math.max(e.right-t.left,t.right-e.left)&&It(this.$el,this.clsDrop+"-stack");this.positionAt(this.$el,this.boundaryAlign?this.boundary:this.toggle.$el,this.boundary),Lt(this.$el,"display","")}}},ur={extends:cr},hr={mixins:[nr],args:"target",props:{target:Boolean},data:{target:!1},computed:{input:function(e,t){return At(Ie,t)},state:function(){return this.input.nextElementSibling},target:function(e,t){var n=e.target;return n&&(!0===n&&this.input.parentNode===t&&this.input.nextElementSibling||se(n,t))}},update:function(){var e=this.target,t=this.input;if(e){var n,r=Te(e)?"value":"textContent",i=e[r],o=t.files&&t.files[0]?t.files[0].name:xe(t,"select")&&(n=Et("option",t).filter(function(e){return e.selected})[0])?n.textContent:t.value;i!==o&&(e[r]=o)}},events:[{name:"change",handler:function(){this.$emit()}},{name:"reset",el:function(){return be(this.$el,"form")},handler:function(){this.$emit()}}]},fr={update:{read:function(e){var t=dn(this.$el);if(!t||e.isInView===t)return!1;e.isInView=t},write:function(){this.$el.src=this.$el.src},events:["scroll","resize"]}},dr={props:{margin:String,firstColumn:Boolean},data:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},update:{read:function(e){var t=this.$el.children;if(!t.length||!je(this.$el))return e.rows=[[]];e.rows=pr(t),e.stacks=!e.rows.some(function(e){return 1<e.length})},write:function(e){var t=this;e.rows.forEach(function(e,n){return e.forEach(function(e,r){Ot(e,t.margin,0!==n),Ot(e,t.firstColumn,0===r)})})},events:["resize"]}};function pr(e){for(var t=[[]],n=0;n<e.length;n++){var r=e[n],i=gr(r);if(i.height)for(var o=t.length-1;0<=o;o--){var a=t[o];if(!a[0]){a.push(r);break}var s=void 0;if(s=a[0].offsetParent===r.offsetParent?gr(a[0]):(i=gr(r,!0),gr(a[0],!0)),i.top>=s.bottom-1){t.push([r]);break}if(i.bottom>s.top){if(i.left<s.left&&!Ze){a.unshift(r);break}a.push(r);break}if(0===o){t.unshift([r]);break}}}return t}function gr(e,t){var n;void 0===t&&(t=!1);var r=e.offsetTop,i=e.offsetLeft,o=e.offsetHeight;return t&&(r=(n=mn(e))[0],i=n[1]),{top:r,left:i,height:o,bottom:r+o}}var mr={extends:dr,mixins:[nr],name:"grid",props:{masonry:Boolean,parallax:Number},data:{margin:"uk-grid-margin",clsStack:"uk-grid-stack",masonry:!1,parallax:0},computed:{length:function(e,t){return t.children.length},parallax:function(e){var t=e.parallax;return t&&this.length?Math.abs(t):""}},connected:function(){this.masonry&&It(this.$el,"uk-flex-top uk-flex-wrap-top")},update:[{read:function(e){var t=e.rows;(this.masonry||this.parallax)&&(t=t.map(function(e){return J(e,"offsetLeft")}),Ze&&t.map(function(e){return e.reverse()}));var n=t.some(function(e){return e.some(qt.inProgress)}),r=!1,i="";if(this.masonry&&this.length){var o=0;r=t.reduce(function(e,n,r){return e[r]=n.map(function(n,i){return 0===r?0:B(e[r-1][i])+(o-B(t[r-1][i]&&t[r-1][i].offsetHeight))}),o=n.reduce(function(e,t){return Math.max(e,t.offsetHeight)},0),e},[]),i=function(e){return Math.max.apply(Math,e.reduce(function(e,t){return t.forEach(function(t,n){return e[n]=(e[n]||0)+t.offsetHeight}),e},[]))}(t)+function(e,t){var n=V(e.children),r=n.filter(function(e){return Ct(e,t)})[0];return B(r?Lt(r,"marginTop"):Lt(n[0],"paddingLeft"))}(this.$el,this.margin)*(t.length-1)}return{rows:t,translates:r,height:!n&&i}},write:function(e){var t=e.stacks,n=e.height;Ot(this.$el,this.clsStack,t),Lt(this.$el,"paddingBottom",this.parallax),!1!==n&&Lt(this.$el,"height",n)},events:["resize"]},{read:function(e){var t=e.height;return{scrolled:!!this.parallax&&pn(this.$el,t?t-on(this.$el):0)*this.parallax}},write:function(e){var t=e.rows,n=e.scrolled,r=e.translates;!1===n&&!r||t.forEach(function(e,t){return e.forEach(function(e,i){return Lt(e,"transform",n||r?"translateY("+((r&&-r[t][i])+(n?i%2?n:n/8:0))+"px)":"")})})},events:["scroll","resize"]}]},vr=Ge?{data:{selMinHeight:!1,forceHeight:!1},computed:{elements:function(e,t){var n=e.selMinHeight;return n?Et(n,t):[t]}},update:[{read:function(){Lt(this.elements,"height","")},order:-5,events:["resize"]},{write:function(){var e=this;this.elements.forEach(function(t){var n=B(Lt(t,"minHeight"));n&&(e.forceHeight||Math.round(n+ln("height",t,"content-box"))>=t.offsetHeight)&&Lt(t,"height",n)})},order:5,events:["resize"]}]}:{},yr={mixins:[vr],args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0,forceHeight:!0},computed:{elements:function(e,t){return Et(e.target,t)}},update:{read:function(){return{rows:(this.row?pr(this.elements):[this.elements]).map(xr)}},write:function(e){e.rows.forEach(function(e){var t=e.heights;return e.elements.forEach(function(e,n){return Lt(e,"minHeight",t[n])})})},events:["resize"]}};function xr(e){var t;if(e.length<2)return{heights:[""],elements:e};var n=wr(e),r=n.heights,i=n.max,o=e.some(function(e){return e.style.minHeight}),a=e.some(function(e,t){return!e.style.minHeight&&r[t]<i});return o&&a&&(Lt(e,"minHeight",""),t=wr(e),r=t.heights,i=t.max),{heights:r=e.map(function(e,t){return r[t]===i&&B(e.style.minHeight).toFixed(2)!==i.toFixed(2)?"":i}),elements:e}}function wr(e){var t=e.map(function(e){return tn(e).height-ln("height",e,"content-box")});return{heights:t,max:Math.max.apply(null,t)}}var br={mixins:[vr],props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean,minHeight:Number},data:{expand:!1,offsetTop:!1,offsetBottom:!1,minHeight:0},update:{read:function(e){var t=e.minHeight,n="",r=ln("height",this.$el,"content-box");if(this.expand)n=on(window)-(_r(document.documentElement)-_r(this.$el))-r||"";else{if(n="calc(100vh",this.offsetTop){var i=tn(this.$el).top;n+=i<on(window)/2?" - "+i+"px":""}!0===this.offsetBottom?n+=" - "+_r(this.$el.nextElementSibling)+"px":P(this.offsetBottom)?n+=" - "+this.offsetBottom+"vh":this.offsetBottom&&g(this.offsetBottom,"px")?n+=" - "+B(this.offsetBottom)+"px":D(this.offsetBottom)&&(n+=" - "+_r(se(this.offsetBottom,this.$el))+"px"),n+=(r?" - "+r+"px":"")+")"}return{minHeight:n,prev:t}},write:function(e){var t=e.minHeight,n=e.prev;Lt(this.$el,{minHeight:t}),t!==n&&this.$update(this.$el,"resize"),this.minHeight&&B(Lt(this.$el,"minHeight"))<this.minHeight&&Lt(this.$el,"minHeight",this.minHeight)},events:["resize"]}};function _r(e){return e&&e.offsetHeight||0}var $r={args:"src",props:{id:Boolean,icon:String,src:String,style:String,width:Number,height:Number,ratio:Number,class:String,strokeAnimation:Boolean,attributes:"list"},data:{ratio:1,include:["style","class"],class:"",strokeAnimation:!1},beforeConnect:function(){var e,t=this;if(this.class+=" uk-svg",!this.icon&&w(this.src,"#")){var n=this.src.split("#");1<n.length&&(e=n,this.src=e[0],this.icon=e[1])}this.svg=this.getSvg().then(function(e){return t.applyAttributes(e),t.svgEl=function(e,t){if(Ee(t)||"CANVAS"===t.tagName){re(t,"hidden",!0);var n=t.nextElementSibling;return Ir(e,n)?n:gt(t,e)}var r=t.lastElementChild;return Ir(e,r)?r:dt(t,e)}(e,t.$el)},X)},disconnected:function(){var e=this;Ee(this.$el)&&re(this.$el,"hidden",null),this.svg&&this.svg.then(function(t){return(!e._connected||t!==e.svgEl)&&vt(t)},X),this.svg=this.svgEl=null},update:{read:function(){return!!(this.strokeAnimation&&this.svgEl&&je(this.svgEl))},write:function(){var e,t;e=this.svgEl,(t=jr(e))&&e.style.setProperty("--uk-animation-stroke",t)},type:["resize"]},methods:{getSvg:function(){var e,t=this;return(e=this.src,kr[e]?kr[e]:kr[e]=new We(function(t,n){e?d(e,"data:")?t(decodeURIComponent(e.split(",")[1])):Ke(e).then(function(e){return t(e.response)},function(){return n("SVG not found.")}):n()})).then(function(e){return function(e,t){return t&&w(e,"<symbol")&&(e=function(e,t){if(!Er[e]){var n;for(Er[e]={};n=Ar.exec(e);)Er[e][n[3]]='<svg xmlns="http://www.w3.org/2000/svg"'+n[1]+"svg>";Ar.lastIndex=0}return Er[e][t]}(e,t)||e),(e=At(e.substr(e.indexOf("<svg"))))&&e.hasChildNodes()&&e}(e,t.icon)||We.reject("SVG not found.")})},applyAttributes:function(e){var t=this;for(var n in this.$options.props)this[n]&&w(this.include,n)&&re(e,n,this[n]);for(var r in this.attributes){var i=this.attributes[r].split(":",2),o=i[0],a=i[1];re(e,o,a)}this.id||oe(e,"id");var s=["width","height"],l=[this.width,this.height];l.some(function(e){return e})||(l=s.map(function(t){return re(e,t)}));var c=re(e,"viewBox");c&&!l.some(function(e){return e})&&(l=c.split(" ").slice(2)),l.forEach(function(n,r){(n=(0|n)*t.ratio)&&re(e,s[r],n),n&&!l[1^r]&&oe(e,s[1^r])}),re(e,"data-svg",this.icon||this.src)}}},kr={},Ar=/<symbol(.*?id=(['"])(.*?)\2[^]*?<\/)symbol>/g,Er={};function jr(e){return Math.ceil(Math.max.apply(Math,Et("[stroke]",e).map(function(e){return e.getTotalLength&&e.getTotalLength()||0}).concat([0])))}function Ir(e,t){return re(e,"data-svg")===re(t,"data-svg")}var Tr={},Sr={spinner:'<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" cx="15" cy="15" r="14"/></svg>',totop:'<svg width="18" height="10" viewBox="0 0 18 10" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 9 9 1 17 9 "/></svg>',marker:'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect x="9" y="4" width="1" height="11"/><rect x="4" y="9" width="11" height="1"/></svg>',"close-icon":'<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><line fill="none" stroke="#000" stroke-width="1.1" x1="1" y1="1" x2="13" y2="13"/><line fill="none" stroke="#000" stroke-width="1.1" x1="13" y1="1" x2="1" y2="13"/></svg>',"close-large":'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><line fill="none" stroke="#000" stroke-width="1.4" x1="1" y1="1" x2="19" y2="19"/><line fill="none" stroke="#000" stroke-width="1.4" x1="19" y1="1" x2="1" y2="19"/></svg>',"navbar-toggle-icon":'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect y="9" width="20" height="2"/><rect y="3" width="20" height="2"/><rect y="15" width="20" height="2"/></svg>',"overlay-icon":'<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><rect x="19" y="0" width="1" height="40"/><rect x="0" y="19" width="40" height="1"/></svg>',"pagination-next":'<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 1 6 6 1 11"/></svg>',"pagination-previous":'<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="6 1 1 6 6 11"/></svg>',"search-icon":'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"/><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"/></svg>',"search-large":'<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" stroke-width="1.8" cx="17.5" cy="17.5" r="16.5"/><line fill="none" stroke="#000" stroke-width="1.8" x1="38" y1="39" x2="29" y2="30"/></svg>',"search-navbar":'<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" stroke-width="1.1" cx="10.5" cy="10.5" r="9.5"/><line fill="none" stroke="#000" stroke-width="1.1" x1="23" y1="23" x2="17" y2="17"/></svg>',"slidenav-next":'<svg width="14px" height="24px" viewBox="0 0 14 24" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.4" points="1.225,23 12.775,12 1.225,1 "/></svg>',"slidenav-next-large":'<svg width="25px" height="40px" viewBox="0 0 25 40" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="2" points="4.002,38.547 22.527,20.024 4,1.5 "/></svg>',"slidenav-previous":'<svg width="14px" height="24px" viewBox="0 0 14 24" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.4" points="12.775,1 1.225,12 12.775,23 "/></svg>',"slidenav-previous-large":'<svg width="25px" height="40px" viewBox="0 0 25 40" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="2" points="20.527,1.5 2,20.024 20.525,38.547 "/></svg>'},Mr={install:function(e){e.icon.add=function(t,n){var r,i=D(t)?((r={})[t]=n,r):t;K(i,function(e,t){Sr[t]=e,delete Tr[t]}),e._initialized&&kt(document.body,function(t){return K(e.getComponents(t),function(e){e.$options.isIcon&&e.icon in i&&e.$reset()})})}},extends:$r,args:"icon",props:["icon"],data:{include:[]},isIcon:!0,beforeConnect:function(){It(this.$el,"uk-icon")},methods:{getSvg:function(){var e=function(e){return Sr[e]?(Tr[e]||(Tr[e]=At(Sr[e].trim())),Tr[e].cloneNode(!0)):null}(function(e){return Ze?q(q(e,"left","right"),"previous","next"):e}(this.icon));return e?We.resolve(e):We.reject("Icon not found.")}}},Cr={args:!1,extends:Mr,data:function(e){return{icon:a(e.constructor.options.name)}},beforeConnect:function(){It(this.$el,this.$name)}},Or={extends:Cr,beforeConnect:function(){It(this.$el,"uk-slidenav")},computed:{icon:function(e,t){var n=e.icon;return Ct(t,"uk-slidenav-large")?n+"-large":n}}},Dr={extends:Cr,computed:{icon:function(e,t){var n=e.icon;return Ct(t,"uk-search-icon")&&_e(t,".uk-search-large").length?"search-large":_e(t,".uk-search-navbar").length?"search-navbar":n}}},Nr={extends:Cr,computed:{icon:function(){return"close-"+(Ct(this.$el,"uk-close-large")?"large":"icon")}}},Pr={extends:Cr,connected:function(){var e=this;this.svg.then(function(t){return 1!==e.ratio&&Lt(At("circle",t),"strokeWidth",1/e.ratio)},X)}},Rr={args:"dataSrc",props:{dataSrc:String,dataSrcset:Boolean,sizes:String,width:Number,height:Number,offsetTop:String,offsetLeft:String,target:String},data:{dataSrc:"",dataSrcset:!1,sizes:!1,width:!1,height:!1,offsetTop:"50vh",offsetLeft:0,target:!1},computed:{cacheKey:function(e){var t=e.dataSrc;return this.$name+"."+t},width:function(e){var t=e.width,n=e.dataWidth;return t||n},height:function(e){var t=e.height,n=e.dataHeight;return t||n},sizes:function(e){var t=e.sizes,n=e.dataSizes;return t||n},isImg:function(e,t){return Wr(t)},target:{get:function(e){var t=e.target;return[this.$el].concat(le(t,this.$el))},watch:function(){this.observe()}},offsetTop:function(e){return vn(e.offsetTop,"height")},offsetLeft:function(e){return vn(e.offsetLeft,"width")}},connected:function(){var e,t,n,r;Yr[this.cacheKey]?Lr(this.$el,Yr[this.cacheKey]||this.dataSrc,this.dataSrcset,this.sizes):this.isImg&&this.width&&this.height&&Lr(this.$el,(e=this.width,t=this.height,(n=this.sizes)&&(r=ne.ratio({width:e,height:t},"width",vn(zr(n))),e=r.width,t=r.height),'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+t+'"></svg>')),this.observer=new Un(this.load,{rootMargin:this.offsetTop+"px "+this.offsetLeft+"px"}),requestAnimationFrame(this.observe)},disconnected:function(){this.observer.disconnect()},update:{read:function(e){var t=this,n=e.image;if(n||"complete"!==document.readyState||this.load(this.observer.takeRecords()),this.isImg)return!1;n&&n.then(function(e){return e&&""!==e.currentSrc&&Lr(t.$el,Ur(e))})},write:function(e){if(this.dataSrcset&&1!==window.devicePixelRatio){var t=Lt(this.$el,"backgroundSize");!t.match(/^(auto\s?)+$/)&&B(t)!==e.bgSize||(e.bgSize=function(e,t){var n=vn(zr(t)),r=(e.match(Vr)||[]).map(B).sort(function(e,t){return e-t});return r.filter(function(e){return n<=e})[0]||r.pop()||""}(this.dataSrcset,this.sizes),Lt(this.$el,"backgroundSize",e.bgSize+"px"))}},events:["resize"]},methods:{load:function(e){var t=this;e.some(function(e){return e.isIntersecting})&&(this._data.image=Je(this.dataSrc,this.dataSrcset,this.sizes).then(function(e){return Lr(t.$el,Ur(e),e.srcset,e.sizes),Yr[t.cacheKey]=Ur(e),e},X),this.observer.disconnect())},observe:function(){var e=this;!this._data.image&&this._connected&&this.target.forEach(function(t){return e.observer.observe(t)})}}};function Lr(e,t,n,r){Wr(e)?(r&&(e.sizes=r),n&&(e.srcset=n),t&&(e.src=t)):t&&!w(e.style.backgroundImage,t)&&(Lt(e,"backgroundImage","url("+ke(t)+")"),Ne(e,Pe("load",!1)))}var Fr=/\s*(.*?)\s*(\w+|calc\(.*?\))\s*(?:,|$)/g;function zr(e){var t,n;for(Fr.lastIndex=0;t=Fr.exec(e);)if(!t[1]||window.matchMedia(t[1]).matches){t=d(n=t[2],"calc")?n.substring(5,n.length-1).replace(Br,function(e){return vn(e)}).replace(/ /g,"").match(Hr).reduce(function(e,t){return e+ +t},0):n;break}return t||"100vw"}var Br=/\d+(?:\w+|%)/g,Hr=/[+-]?(\d+)/g,Vr=/\s+\d+w\s*(?:,|$)/g;function Wr(e){return"IMG"===e.tagName}function Ur(e){return e.currentSrc||e.src}var Yr,qr="__test__";try{(Yr=window.sessionStorage||{})[qr]=1,delete Yr[qr]}catch(h){Yr={}}var Qr,Kr,Jr={props:{media:Boolean},data:{media:!1},computed:{matchMedia:function(){var e=function(e){if(D(e))if("@"===e[0])e=B(Ht("breakpoint-"+e.substr(1)));else if(isNaN(e))return e;return!(!e||isNaN(e))&&"(min-width: "+e+"px)"}(this.media);return!e||window.matchMedia(e).matches}}},Gr={mixins:[nr,Jr],props:{fill:String},data:{fill:"",clsWrapper:"uk-leader-fill",clsHide:"uk-leader-hide",attrFill:"data-fill"},computed:{fill:function(e){return e.fill||Ht("leader-fill-content")}},connected:function(){var e;e=xt(this.$el,'<span class="'+this.clsWrapper+'">'),this.wrapper=e[0]},disconnected:function(){wt(this.wrapper.childNodes)},update:{read:function(e){var t=e.changed,n=e.width,r=n;return{width:n=Math.floor(this.$el.offsetWidth/2),fill:this.fill,changed:t||r!==n,hide:!this.matchMedia}},write:function(e){Ot(this.wrapper,this.clsHide,e.hide),e.changed&&(e.changed=!1,re(this.wrapper,this.attrFill,new Array(e.width).join(e.fill)))},events:["resize"]}},Zr={props:{container:Boolean},data:{container:!0},computed:{container:function(e){var t=e.container;return!0===t&&this.$container||t&&At(t)}}},Xr={mixins:[nr,Zr,rr],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel:function(e,t){return At(e.selPanel,t)},transitionElement:function(){return this.panel},bgClose:function(e){return e.bgClose&&this.panel}},beforeDisconnect:function(){this.isToggled()&&this.toggleNow(this.$el,!1)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(e){e.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler:function(e){e.defaultPrevented||(e.preventDefault(),this.toggle())}},{name:"beforeshow",self:!0,handler:function(e){var t=Qr&&Qr!==this&&Qr;Qr=this,t?this.stack?this.prev=t:((Qr=t).isToggled()?t.hide().then(this.show):De(t.$el,"beforeshow hidden",this.show,!1,function(e){var n=e.target;return"hidden"===e.type&&n===t.$el}),e.preventDefault()):Kr||(Kr=[Ce(document,it,function(e){var t=e.target,n=e.defaultPrevented;!Qr||!Qr.bgClose||n||Qr.overlay&&!Me(t,Qr.$el)||Me(t,Qr.panel)||Qr.hide()}),Ce(document,"keydown",function(e){27===e.keyCode&&Qr&&Qr.escClose&&(e.preventDefault(),Qr.hide())})])}},{name:"show",self:!0,handler:function(){Ct(document.documentElement,this.clsPage)||(this.scrollbarWidth=an(window)-an(document),Lt(document.body,"overflowY",this.scrollbarWidth&&this.overlay?"scroll":"")),It(document.documentElement,this.clsPage)}},{name:"hide",self:!0,handler:function(){Qr&&(Qr!==this||this.prev)||(Kr&&Kr.forEach(function(e){return e()}),Kr=null)}},{name:"hidden",self:!0,handler:function(){var e,t=this.prev;if(Qr=Qr&&Qr!==this&&Qr||t)for(;t;){if(t.clsPage===this.clsPage){e=!0;break}t=t.prev}else Lt(document.body,"overflowY","");e||Tt(document.documentElement,this.clsPage)}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},show:function(){var e=this;return this.isToggled()?We.resolve():this.container&&this.$el.parentNode!==this.container?(dt(this.container,this.$el),new We(function(t){return requestAnimationFrame(function(){return e.show().then(t)})})):this.toggleElement(this.$el,!0,ei(this))},hide:function(){return this.isToggled()?this.toggleElement(this.$el,!1,ei(this)):We.resolve()},getActive:function(){return Qr}}};function ei(e){var t=e.transitionElement,n=e._toggle;return function(e,r){return new We(function(i,o){return De(e,"show hide",function(){e._reject&&e._reject(),e._reject=o,n(e,r),U(Lt(t,"transitionDuration"))?De(t,"transitionend",i,!1,function(e){return e.target===t}):i()})})}}var ti={install:function(e){e.modal.dialog=function(t,n){var r=e.modal(' <div class="uk-modal"> <div class="uk-modal-dialog">'+t+"</div> </div> ",n);return r.show(),Ce(r.$el,"hidden",function(e){e.target===e.currentTarget&&We.resolve(function(){return r.$destroy(!0)})}),r},e.modal.alert=function(t,n){return n=Q({bgClose:!1,escClose:!1,labels:e.modal.labels},n),new We(function(r){return Ce(e.modal.dialog(' <div class="uk-modal-body">'+(D(t)?t:ft(t))+'</div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-primary uk-modal-close" autofocus>'+n.labels.ok+"</button> </div> ",n).$el,"hide",r)})},e.modal.confirm=function(t,n){return n=Q({bgClose:!1,escClose:!0,labels:e.modal.labels},n),new We(function(r,i){var o=e.modal.dialog(' <form> <div class="uk-modal-body">'+(D(t)?t:ft(t))+'</div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-default uk-modal-close" type="button">'+n.labels.cancel+'</button> <button class="uk-button uk-button-primary" autofocus>'+n.labels.ok+"</button> </div> </form> ",n),a=!1;Ce(o.$el,"submit","form",function(e){e.preventDefault(),r(),a=!0,o.hide()}),Ce(o.$el,"hide",function(){a||i()})})},e.modal.prompt=function(t,n,r){return r=Q({bgClose:!1,escClose:!0,labels:e.modal.labels},r),new We(function(i){var o=e.modal.dialog(' <form class="uk-form-stacked"> <div class="uk-modal-body"> <label>'+(D(t)?t:ft(t))+'</label> <input class="uk-input" autofocus> </div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-default uk-modal-close" type="button">'+r.labels.cancel+'</button> <button class="uk-button uk-button-primary">'+r.labels.ok+"</button> </div> </form> ",r),a=At("input",o.$el);a.value=n;var s=!1;Ce(o.$el,"submit","form",function(e){e.preventDefault(),i(a.value),s=!0,o.hide()}),Ce(o.$el,"hide",function(){s||i(null)})})},e.modal.labels={ok:"Ok",cancel:"Cancel"}},mixins:[Xr],data:{clsPage:"uk-modal-page",selPanel:".uk-modal-dialog",selClose:".uk-modal-close, .uk-modal-close-default, .uk-modal-close-outside, .uk-modal-close-full"},events:[{name:"show",self:!0,handler:function(){Ct(this.panel,"uk-margin-auto-vertical")?It(this.$el,"uk-flex"):Lt(this.$el,"display","block"),on(this.$el)}},{name:"hidden",self:!0,handler:function(){Lt(this.$el,"display",""),Tt(this.$el,"uk-flex")}}]},ni={extends:ir,data:{targets:"> .uk-parent",toggle:"> a",content:"> ul"}},ri={mixins:[nr,vr],props:{dropdown:String,mode:"list",align:String,offset:Number,boundary:Boolean,boundaryAlign:Boolean,clsDrop:String,delayShow:Number,delayHide:Number,dropbar:Boolean,dropbarMode:String,dropbarAnchor:Boolean,duration:Number},data:{dropdown:".uk-navbar-nav > li",align:Ze?"right":"left",clsDrop:"uk-navbar-dropdown",mode:void 0,offset:void 0,delayShow:void 0,delayHide:void 0,boundaryAlign:void 0,flip:"x",boundary:!0,dropbar:!1,dropbarMode:"slide",dropbarAnchor:!1,duration:200,forceHeight:!0,selMinHeight:".uk-navbar-nav > li > a, .uk-navbar-item, .uk-navbar-toggle"},computed:{boundary:function(e,t){var n=e.boundary,r=e.boundaryAlign;return!0===n||r?t:n},dropbarAnchor:function(e,t){return se(e.dropbarAnchor,t)},pos:function(e){return"bottom-"+e.align},dropdowns:function(e,t){return Et(e.dropdown+" ."+e.clsDrop,t)}},beforeConnect:function(){var e=this.$props.dropbar;this.dropbar=e&&(se(e,this.$el)||At("+ .uk-navbar-dropbar",this.$el)||At("<div></div>")),this.dropbar&&(It(this.dropbar,"uk-navbar-dropbar"),"slide"===this.dropbarMode&&It(this.dropbar,"uk-navbar-dropbar-slide"))},disconnected:function(){this.dropbar&&vt(this.dropbar)},update:function(){var e=this;this.$create("drop",this.dropdowns.filter(function(t){return!e.getDropdown(t)}),Q({},this.$props,{boundary:this.boundary,pos:this.pos,offset:this.dropbar||this.offset}))},events:[{name:"mouseover",delegate:function(){return this.dropdown},handler:function(e){var t=e.current,n=this.getActive();n&&n.toggle&&!Me(n.toggle.$el,t)&&!n.tracker.movesTo(n.$el)&&n.hide(!1)}},{name:"mouseleave",el:function(){return this.dropbar},handler:function(){var e=this.getActive();e&&!this.dropdowns.some(function(e){return xe(e,":hover")})&&e.hide()}},{name:"beforeshow",capture:!0,filter:function(){return this.dropbar},handler:function(){this.dropbar.parentNode||gt(this.dropbarAnchor||this.$el,this.dropbar)}},{name:"show",capture:!0,filter:function(){return this.dropbar},handler:function(e,t){var n=t.$el,r=t.dir;this.clsDrop&&It(n,this.clsDrop+"-dropbar"),"bottom"===r&&this.transitionTo(n.offsetHeight+B(Lt(n,"marginTop"))+B(Lt(n,"marginBottom")),n)}},{name:"beforehide",filter:function(){return this.dropbar},handler:function(e,t){var n=t.$el,r=this.getActive();xe(this.dropbar,":hover")&&r&&r.$el===n&&e.preventDefault()}},{name:"hide",filter:function(){return this.dropbar},handler:function(e,t){var n=t.$el,r=this.getActive();(!r||r&&r.$el===n)&&this.transitionTo(0)}}],methods:{getActive:function(){var e=this.dropdowns.map(this.getDropdown).filter(function(e){return e&&e.isActive()})[0];return e&&w(e.mode,"hover")&&Me(e.toggle.$el,this.$el)&&e},transitionTo:function(e,t){var n=this,r=this.dropbar,i=je(r)?on(r):0;return Lt(t=i<e&&t,"clip","rect(0,"+t.offsetWidth+"px,"+i+"px,0)"),on(r,i),qt.cancel([t,r]),We.all([qt.start(r,{height:e},this.duration),qt.start(t,{clip:"rect(0,"+t.offsetWidth+"px,"+e+"px,0)"},this.duration)]).catch(X).then(function(){Lt(t,{clip:""}),n.$update(r)})},getDropdown:function(e){return this.$getComponent(e,"drop")||this.$getComponent(e,"dropdown")}}},ii={mixins:[Xr],args:"mode",props:{mode:String,flip:Boolean,overlay:Boolean},data:{mode:"slide",flip:!1,overlay:!1,clsPage:"uk-offcanvas-page",clsContainer:"uk-offcanvas-container",selPanel:".uk-offcanvas-bar",clsFlip:"uk-offcanvas-flip",clsContainerAnimation:"uk-offcanvas-container-animation",clsSidebarAnimation:"uk-offcanvas-bar-animation",clsMode:"uk-offcanvas",clsOverlay:"uk-offcanvas-overlay",selClose:".uk-offcanvas-close"},computed:{clsFlip:function(e){var t=e.flip,n=e.clsFlip;return t?n:""},clsOverlay:function(e){var t=e.overlay,n=e.clsOverlay;return t?n:""},clsMode:function(e){var t=e.mode;return e.clsMode+"-"+t},clsSidebarAnimation:function(e){var t=e.mode,n=e.clsSidebarAnimation;return"none"===t||"reveal"===t?"":n},clsContainerAnimation:function(e){var t=e.mode,n=e.clsContainerAnimation;return"push"!==t&&"reveal"!==t?"":n},transitionElement:function(e){return"reveal"===e.mode?this.panel.parentNode:this.panel}},events:[{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(e){var t=e.current;t.hash&&At(t.hash,document.body)&&this.hide()}},{name:"touchstart",passive:!0,el:function(){return this.panel},handler:function(e){var t=e.targetTouches;1===t.length&&(this.clientY=t[0].clientY)}},{name:"touchmove",self:!0,passive:!1,filter:function(){return this.overlay},handler:function(e){e.cancelable&&e.preventDefault()}},{name:"touchmove",passive:!1,el:function(){return this.panel},handler:function(e){if(1===e.targetTouches.length){var t=event.targetTouches[0].clientY-this.clientY,n=this.panel,r=n.scrollTop,i=n.scrollHeight,o=n.clientHeight;(i<=o||0===r&&0<t||i-r<=o&&t<0)&&e.cancelable&&e.preventDefault()}}},{name:"show",self:!0,handler:function(){"reveal"!==this.mode||Ct(this.panel.parentNode,this.clsMode)||(yt(this.panel,"<div>"),It(this.panel.parentNode,this.clsMode)),Lt(document.documentElement,"overflowY",this.overlay?"hidden":""),It(document.body,this.clsContainer,this.clsFlip),Lt(this.$el,"display","block"),It(this.$el,this.clsOverlay),It(this.panel,this.clsSidebarAnimation,"reveal"!==this.mode?this.clsMode:""),on(document.body),It(document.body,this.clsContainerAnimation),this.clsContainerAnimation&&(oi().content+=",user-scalable=0")}},{name:"hide",self:!0,handler:function(){Tt(document.body,this.clsContainerAnimation);var e=this.getActive();("none"===this.mode||e&&e!==this&&e!==this.prev)&&Ne(this.panel,"transitionend")}},{name:"hidden",self:!0,handler:function(){var e;this.clsContainerAnimation&&((e=oi()).content=e.content.replace(/,user-scalable=0$/,"")),"reveal"===this.mode&&wt(this.panel),Tt(this.panel,this.clsSidebarAnimation,this.clsMode),Tt(this.$el,this.clsOverlay),Lt(this.$el,"display",""),Tt(document.body,this.clsContainer,this.clsFlip),Lt(document.documentElement,"overflowY","")}},{name:"swipeLeft swipeRight",handler:function(e){this.isToggled()&&g(e.type,"Left")^this.flip&&this.hide()}}]};function oi(){return At('meta[name="viewport"]',document.head)||dt(document.head,'<meta name="viewport">')}var ai={mixins:[nr],props:{selContainer:String,selContent:String},data:{selContainer:".uk-modal",selContent:".uk-modal-dialog"},computed:{container:function(e,t){return be(t,e.selContainer)},content:function(e,t){return be(t,e.selContent)}},connected:function(){Lt(this.$el,"minHeight",150)},update:{read:function(){return!(!this.content||!this.container)&&{current:B(Lt(this.$el,"maxHeight")),max:Math.max(150,on(this.container)-(tn(this.content).height-on(this.$el)))}},write:function(e){var t=e.current,n=e.max;Lt(this.$el,"maxHeight",n),Math.round(t)!==Math.round(n)&&Ne(this.$el,"resize")},events:["resize"]}},si={props:["width","height"],connected:function(){It(this.$el,"uk-responsive-width")},update:{read:function(){return!!(je(this.$el)&&this.width&&this.height)&&{width:an(this.$el.parentNode),height:this.height}},write:function(e){on(this.$el,ne.contain({height:this.height,width:this.width},e).height)},events:["resize"]}},li={props:{duration:Number,offset:Number},data:{duration:1e3,offset:0},methods:{scrollTo:function(e){var t=this;e=e&&At(e)||document.body;var n=on(document),r=on(window),i=tn(e).top-this.offset;if(n<i+r&&(i=n-r),Ne(this.$el,"beforescroll",[this,e])){var o=Date.now(),a=window.pageYOffset,s=function(){var n=a+(i-a)*function(e){return.5*(1-Math.cos(Math.PI*e))}(Z((Date.now()-o)/t.duration));gn(window,n),n!==i?requestAnimationFrame(s):Ne(t.$el,"scrolled",[t,e])};s()}}},events:{click:function(e){e.defaultPrevented||(e.preventDefault(),this.scrollTo(ke(decodeURIComponent(this.$el.hash)).substr(1)))}}},ci={args:"cls",props:{cls:String,target:String,hidden:Boolean,offsetTop:Number,offsetLeft:Number,repeat:Boolean,delay:Number},data:function(){return{cls:!1,target:!1,hidden:!0,offsetTop:0,offsetLeft:0,repeat:!1,delay:0,inViewClass:"uk-scrollspy-inview"}},computed:{elements:function(e,t){var n=e.target;return n?Et(n,t):[t]}},update:[{write:function(){this.hidden&&Lt(Se(this.elements,":not(."+this.inViewClass+")"),"visibility","hidden")}},{read:function(e){var t=this;e.update&&this.elements.forEach(function(e){var n=e._ukScrollspyState;(n=n||{cls:ae(e,"uk-scrollspy-class")||t.cls}).show=dn(e,t.offsetTop,t.offsetLeft),e._ukScrollspyState=n})},write:function(e){var t=this;if(!e.update)return this.$emit(),e.update=!0;this.elements.forEach(function(n){var r=n._ukScrollspyState,i=r.cls;if(!r.show||r.inview||r.queued){if(!r.show&&(r.inview||r.queued)&&t.repeat){if(r.abort&&r.abort(),!r.inview)return;Lt(n,"visibility",t.hidden?"hidden":""),Tt(n,t.inViewClass),Ot(n,i),Ne(n,"outview"),t.$update(n),r.inview=!1}}else{var o=function(){Lt(n,"visibility",""),It(n,t.inViewClass),Ot(n,i),Ne(n,"inview"),t.$update(n),r.inview=!0,r.abort&&r.abort()};t.delay?(r.queued=!0,e.promise=(e.promise||We.resolve()).then(function(){return!r.inview&&new We(function(n){var i=setTimeout(function(){o(),n()},e.promise||1===t.elements.length?t.delay:0);r.abort=function(){clearTimeout(i),n(),r.queued=!1}})})):o()}})},events:["scroll","resize"]}]},ui={props:{cls:String,closest:String,scroll:Boolean,overflow:Boolean,offset:Number},data:{cls:"uk-active",closest:!1,scroll:!1,overflow:!0,offset:0},computed:{links:function(e,t){return Et('a[href^="#"]',t).filter(function(e){return e.hash})},elements:function(e){var t=e.closest;return be(this.links,t||"*")},targets:function(){return Et(this.links.map(function(e){return ke(e.hash).substr(1)}).join(","))}},update:[{read:function(){this.scroll&&this.$create("scroll",this.links,{offset:this.offset||0})}},{read:function(e){var t=this,n=window.pageYOffset+this.offset+1,r=on(document)-on(window)+this.offset;e.active=!1,this.targets.every(function(i,o){var a=tn(i).top,s=o+1===t.targets.length;if(!t.overflow&&(0===o&&n<a||s&&a+i.offsetTop<n))return!1;if(!s&&tn(t.targets[o+1]).top<=n)return!0;if(r<=n)for(var l=t.targets.length-1;o<l;l--)if(dn(t.targets[l])){i=t.targets[l];break}return!(e.active=At(Se(t.links,'[href="#'+i.id+'"]')))})},write:function(e){var t=e.active;this.links.forEach(function(e){return e.blur()}),Tt(this.elements,this.cls),t&&Ne(this.$el,"active",[t,It(this.closest?be(t,this.closest):t,this.cls)])},events:["scroll","resize"]}]},hi={mixins:[nr,Jr],props:{top:null,bottom:Boolean,offset:Number,animation:String,clsActive:String,clsInactive:String,clsFixed:String,clsBelow:String,selTarget:String,widthElement:Boolean,showOnUp:Boolean,targetOffset:Number},data:{top:0,bottom:!1,offset:0,animation:"",clsActive:"uk-active",clsInactive:"",clsFixed:"uk-sticky-fixed",clsBelow:"uk-sticky-below",selTarget:"",widthElement:!1,showOnUp:!1,targetOffset:!1},computed:{selTarget:function(e,t){var n=e.selTarget;return n&&At(n,t)||t},widthElement:function(e,t){return se(e.widthElement,t)||this.placeholder},isActive:{get:function(){return Ct(this.selTarget,this.clsActive)},set:function(e){e&&!this.isActive?(Mt(this.selTarget,this.clsInactive,this.clsActive),Ne(this.$el,"active")):e||Ct(this.selTarget,this.clsInactive)||(Mt(this.selTarget,this.clsActive,this.clsInactive),Ne(this.$el,"inactive"))}}},connected:function(){this.placeholder=At("+ .uk-sticky-placeholder",this.$el)||At('<div class="uk-sticky-placeholder"></div>'),this.isFixed=!1,this.isActive=!1},disconnected:function(){this.isFixed&&(this.hide(),Tt(this.selTarget,this.clsInactive)),vt(this.placeholder),this.placeholder=null,this.widthElement=null},events:[{name:"load hashchange popstate",el:window,handler:function(){var e=this;if(!1!==this.targetOffset&&location.hash&&0<window.pageYOffset){var t=At(location.hash);t&&bn.read(function(){var n=tn(t).top,r=tn(e.$el).top,i=e.$el.offsetHeight;e.isFixed&&n<=r+i&&r<=n+t.offsetHeight&&gn(window,n-i-(P(e.targetOffset)?e.targetOffset:0)-e.offset)})}}}],update:[{read:function(e,t){var n=e.height;this.isActive&&"update"!==t&&(this.hide(),n=this.$el.offsetHeight,this.show()),n=this.isActive?n:this.$el.offsetHeight,this.topOffset=tn(this.isFixed?this.placeholder:this.$el).top,this.bottomOffset=this.topOffset+n;var r=fi("bottom",this);return this.top=Math.max(B(fi("top",this)),this.topOffset)-this.offset,this.bottom=r&&r-n,this.inactive=!this.matchMedia,{lastScroll:!1,height:n,margins:Lt(this.$el,["marginTop","marginBottom","marginLeft","marginRight"])}},write:function(e){var t=e.height,n=e.margins,r=this.placeholder;Lt(r,Q({height:t},n)),Me(r,document)||(gt(this.$el,r),re(r,"hidden","")),this.isActive=this.isActive},events:["resize"]},{read:function(e){var t=e.scroll;return void 0===t&&(t=0),this.width=(je(this.widthElement)?this.widthElement:this.$el).offsetWidth,this.scroll=window.pageYOffset,{dir:t<=this.scroll?"down":"up",scroll:this.scroll,visible:je(this.$el),top:mn(this.placeholder)[0]}},write:function(e,t){var n=this,r=e.initTimestamp;void 0===r&&(r=0);var i=e.dir,o=e.lastDir,a=e.lastScroll,s=e.scroll,l=e.top,c=e.visible,u=performance.now();if(!((e.lastScroll=s)<0||s===a||!c||this.disabled||this.showOnUp&&"scroll"!==t||((300<u-r||i!==o)&&(e.initScroll=s,e.initTimestamp=u),e.lastDir=i,this.showOnUp&&Math.abs(e.initScroll-s)<=30&&Math.abs(a-s)<=10)))if(this.inactive||s<this.top||this.showOnUp&&(s<=this.top||"down"===i||"up"===i&&!this.isFixed&&s<=this.bottomOffset)){if(!this.isFixed)return void(Zt.inProgress(this.$el)&&s<l&&(Zt.cancel(this.$el),this.hide()));this.isFixed=!1,this.animation&&s>this.topOffset?(Zt.cancel(this.$el),Zt.out(this.$el,this.animation).then(function(){return n.hide()},X)):this.hide()}else this.isFixed?this.update():this.animation?(Zt.cancel(this.$el),this.show(),Zt.in(this.$el,this.animation).catch(X)):this.show()},events:["resize","scroll"]}],methods:{show:function(){this.isFixed=!0,this.update(),re(this.placeholder,"hidden",null)},hide:function(){this.isActive=!1,Tt(this.$el,this.clsFixed,this.clsBelow),Lt(this.$el,{position:"",top:"",width:""}),re(this.placeholder,"hidden","")},update:function(){var e=0!==this.top||this.scroll>this.top,t=Math.max(0,this.offset);this.bottom&&this.scroll>this.bottom-this.offset&&(t=this.bottom-this.scroll),Lt(this.$el,{position:"fixed",top:t+"px",width:this.width}),this.isActive=e,Ot(this.$el,this.clsBelow,this.scroll>this.bottomOffset),It(this.$el,this.clsFixed)}}};function fi(e,t){var n=t.$props,r=t.$el,i=t[e+"Offset"],o=n[e];if(o){if(P(o))return i+B(o);if(D(o)&&o.match(/^-?\d+vh$/))return on(window)*B(o)/100;var a=!0===o?r.parentNode:se(o,r);return a?tn(a).top+a.offsetHeight:void 0}}var di,pi={mixins:[rr],args:"connect",props:{connect:String,toggle:String,active:Number,swiping:Boolean},data:{connect:"~.uk-switcher",toggle:"> * > :first-child",active:0,swiping:!0,cls:"uk-active",clsContainer:"uk-switcher",attrItem:"uk-switcher-item",queued:!0},computed:{connects:function(e,t){return le(e.connect,t)},toggles:function(e,t){return Et(e.toggle,t)}},events:[{name:"click",delegate:function(){return this.toggle+":not(.uk-disabled)"},handler:function(e){e.preventDefault(),this.show(V(this.$el.children).filter(function(t){return Me(e.current,t)})[0])}},{name:"click",el:function(){return this.connects},delegate:function(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler:function(e){e.preventDefault(),this.show(ae(e.current,this.attrItem))}},{name:"swipeRight swipeLeft",filter:function(){return this.swiping},el:function(){return this.connects},handler:function(e){var t=e.type;this.show(g(t,"Left")?"next":"previous")}}],update:function(){var e=this;this.connects.forEach(function(t){return e.updateAria(t.children)});var t=this.$el.children;this.show(Se(t,"."+this.cls)[0]||t[this.active]||t[0])},methods:{index:function(){return!R(this.connects)&&ct(Se(this.connects[0].children,"."+this.cls)[0])},show:function(e){for(var t,n,r=this,i=this.$el.children,o=i.length,a=this.index(),s=0<=a,l="previous"===e?-1:1,c=ut(e,i,a),u=0;u<o;u++,c=(c+l+o)%o)if(!xe(this.toggles[c],".uk-disabled *, .uk-disabled, [disabled]")){t=this.toggles[c],n=i[c];break}!n||0<=a&&Ct(n,this.cls)||a===c||(Tt(i,this.cls),It(n,this.cls),re(this.toggles,"aria-expanded",!1),re(t,"aria-expanded",!0),this.connects.forEach(function(e){s?r.toggleElement([e.children[a],e.children[c]]):r.toggleNow(e.children[c])}))}}},gi={mixins:[nr],extends:pi,props:{media:Boolean},data:{media:960,attrItem:"uk-tab-item"},connected:function(){var e=Ct(this.$el,"uk-tab-left")?"uk-tab-left":!!Ct(this.$el,"uk-tab-right")&&"uk-tab-right";e&&this.$create("toggle",this.$el,{cls:e,mode:"media",media:this.media})}},mi={mixins:[Jr,rr],args:"target",props:{href:String,target:null,mode:"list"},data:{href:!1,target:!1,mode:"click",queued:!0},computed:{target:function(e,t){var n=e.href,r=e.target;return(r=le(r||n,t)).length&&r||[t]}},connected:function(){Ne(this.target,"updatearia",[this])},events:[{name:ot+" "+at,filter:function(){return w(this.mode,"hover")},handler:function(e){Be(e)||this.toggle("toggle"+(e.type===ot?"show":"hide"))}},{name:"click",filter:function(){return w(this.mode,"click")||tt&&w(this.mode,"hover")},handler:function(e){var t;(be(e.target,'a[href="#"], a[href=""]')||(t=be(e.target,"a[href]"))&&(this.cls||!je(this.target)||t.hash&&xe(this.target,t.hash)))&&e.preventDefault(),this.toggle()}}],update:{read:function(){return!(!w(this.mode,"media")||!this.media)&&{match:this.matchMedia}},write:function(e){var t=e.match,n=this.isToggled(this.target);(t?!n:n)&&this.toggle()},events:["resize"]},methods:{toggle:function(e){Ne(this.target,e||"toggle",[this])&&this.toggleElement(this.target)}}};qn.version="3.1.6",(di=qn).component("accordion",ir),di.component("alert",or),di.component("cover",sr),di.component("drop",cr),di.component("dropdown",ur),di.component("formCustom",hr),di.component("gif",fr),di.component("grid",mr),di.component("heightMatch",yr),di.component("heightViewport",br),di.component("icon",Mr),di.component("img",Rr),di.component("leader",Gr),di.component("margin",dr),di.component("modal",ti),di.component("nav",ni),di.component("navbar",ri),di.component("offcanvas",ii),di.component("overflowAuto",ai),di.component("responsive",si),di.component("scroll",li),di.component("scrollspy",ci),di.component("scrollspyNav",ui),di.component("sticky",hi),di.component("svg",$r),di.component("switcher",pi),di.component("tab",gi),di.component("toggle",mi),di.component("video",ar),di.component("close",Nr),di.component("marker",Cr),di.component("navbarToggleIcon",Cr),di.component("overlayIcon",Cr),di.component("paginationNext",Cr),di.component("paginationPrevious",Cr),di.component("searchIcon",Dr),di.component("slidenavNext",Or),di.component("slidenavPrevious",Or),di.component("spinner",Pr),di.component("totop",Cr),di.use(function(e){lt(function(){var t;e.update(),Ce(window,"load resize",function(){return e.update(null,"resize")}),Ce(document,"loadedmetadata load",function(t){var n=t.target;return e.update(n,"resize")},!0),Ce(window,"scroll",function(n){if(!t){t=!0,bn.write(function(){return t=!1});var r=n.target;e.update(1!==r.nodeType?document.body:r,n.type)}},{passive:!0,capture:!0});var n,r=0;Ce(document,"animationstart",function(e){var t=e.target;(Lt(t,"animationName")||"").match(/^uk-.*(left|right)/)&&(r++,Lt(document.body,"overflowX","hidden"),setTimeout(function(){--r||Lt(document.body,"overflowX","")},U(Lt(t,"animationDuration"))+100))},!0),Ce(document,nt,function(e){if(n&&n(),Be(e)){var t=He(e),r="tagName"in e.target?e.target:e.target.parentNode;n=De(document,it,function(e){var n=He(e),i=n.x,o=n.y;(r&&i&&100<Math.abs(t.x-i)||o&&100<Math.abs(t.y-o))&&setTimeout(function(){Ne(r,"swipe"),Ne(r,"swipe"+function(e,t,n,r){return Math.abs(e-n)>=Math.abs(t-r)?0<e-n?"Left":"Right":0<t-r?"Up":"Down"}(t.x,t.y,i,o))})})}},{passive:!0})})});var vi,yi={mixins:[nr],props:{date:String,clsWrapper:String},data:{date:"",clsWrapper:".uk-countdown-%unit%"},computed:{date:function(e){var t=e.date;return Date.parse(t)},days:function(e,t){return At(e.clsWrapper.replace("%unit%","days"),t)},hours:function(e,t){return At(e.clsWrapper.replace("%unit%","hours"),t)},minutes:function(e,t){return At(e.clsWrapper.replace("%unit%","minutes"),t)},seconds:function(e,t){return At(e.clsWrapper.replace("%unit%","seconds"),t)},units:function(){var e=this;return["days","hours","minutes","seconds"].filter(function(t){return e[t]})}},connected:function(){this.start()},disconnected:function(){var e=this;this.stop(),this.units.forEach(function(t){return ht(e[t])})},events:[{name:"visibilitychange",el:document,handler:function(){document.hidden?this.stop():this.start()}}],update:{write:function(){var e,t,n=this,r=(e=this.date,{total:t=e-Date.now(),seconds:t/1e3%60,minutes:t/1e3/60%60,hours:t/1e3/60/60%24,days:t/1e3/60/60/24});r.total<=0&&(this.stop(),r.days=r.hours=r.minutes=r.seconds=0),this.units.forEach(function(e){var t=String(Math.floor(r[e]));t=t.length<2?"0"+t:t;var i=n[e];i.textContent!==t&&((t=t.split("")).length!==i.children.length&&ft(i,t.map(function(){return"<span></span>"}).join("")),t.forEach(function(e,t){return i.children[t].textContent=e}))})}},methods:{start:function(){var e=this;this.stop(),this.date&&this.units.length&&(this.$emit(),this.timer=setInterval(function(){return e.$emit()},1e3))},stop:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}}},xi="uk-animation-target",wi={props:{animation:Number},data:{animation:150},computed:{target:function(){return this.$el}},methods:{animate:function(e){var t=this;vi||(vi=dt(document.head,"<style>").sheet).insertRule("."+xi+" > * {\n margin-top: 0 !important;\n transform: none !important;\n }",0);var n=V(this.target.children),r=n.map(function(e){return bi(e,!0)}),i=on(this.target),o=window.pageYOffset;e(),qt.cancel(this.target),n.forEach(qt.cancel),_i(this.target),this.$update(this.target),bn.flush();var a=on(this.target),s=(n=n.concat(V(this.target.children).filter(function(e){return!w(n,e)}))).map(function(e,t){return!!(e.parentNode&&t in r)&&(r[t]?je(e)?$i(e):{opacity:0}:{opacity:je(e)?1:0})});return r=s.map(function(e,i){var o=n[i].parentNode===t.target&&(r[i]||bi(n[i]));return o&&(e?"opacity"in e||(o.opacity%1?e.opacity=1:delete o.opacity):delete o.opacity),o}),It(this.target,xi),n.forEach(function(e,t){return r[t]&&Lt(e,r[t])}),Lt(this.target,"height",i),gn(window,o),We.all(n.map(function(e,n){return r[n]&&s[n]?qt.start(e,s[n],t.animation,"ease"):We.resolve()}).concat(qt.start(this.target,{height:a},this.animation,"ease"))).then(function(){n.forEach(function(e,t){return Lt(e,{display:0===s[t].opacity?"none":"",zIndex:""})}),_i(t.target),t.$update(t.target),bn.flush()},X)}}};function bi(e,t){var n=Lt(e,"zIndex");return!!je(e)&&Q({display:"",opacity:t?Lt(e,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:"auto"===n?ct(e):n},$i(e))}function _i(e){Lt(e.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",width:""}),Tt(e,xi),Lt(e,"height","")}function $i(e){var t=e.getBoundingClientRect(),n=t.height,r=t.width,i=rn(e),o=i.top,a=i.left;return{top:o+=B(Lt(e,"marginTop")),left:a,height:n,width:r}}var ki={mixins:[wi],args:"target",props:{target:Boolean,selActive:Boolean},data:{target:null,selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",animation:250},computed:{toggles:{get:function(e,t){return e.attrItem,Et("["+this.attrItem+"],[data-"+this.attrItem+"]",t)},watch:function(){this.updateState()}},target:function(e,t){return At(e.target,t)},children:{get:function(){return V(this.target&&this.target.children)},watch:function(e,t){!function(e,t){return e.length===t.length&&e.every(function(e){return~t.indexOf(e)})}(e,t)&&this.updateState()}}},events:[{name:"click",delegate:function(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler:function(e){e.preventDefault(),this.apply(e.current)}}],connected:function(){var e=this;if(this.updateState(),!1!==this.selActive){var t=Et(this.selActive,this.$el);this.toggles.forEach(function(n){return Ot(n,e.cls,w(t,n))})}},methods:{apply:function(e){this.setState(Ei(e,this.attrItem,this.getState()))},getState:function(){var e=this;return this.toggles.filter(function(t){return Ct(t,e.cls)}).reduce(function(t,n){return Ei(n,e.attrItem,t)},{filter:{"":""},sort:[]})},setState:function(e,t){var n=this;void 0===t&&(t=!0),e=Q({filter:{"":""},sort:[]},e),Ne(this.$el,"beforeFilter",[this,e]);var r=this.children;function i(){var t=function(e){var t=e.filter,n="";return K(t,function(e){return n+=e||""}),n}(e);r.forEach(function(e){return Lt(e,"display",t&&!xe(e,t)?"none":"")});var i=e.sort,o=i[0],a=i[1];if(o){var s=function(e,t,n){return Q([],e).sort(function(e,r){return ae(e,t).localeCompare(ae(r,t),void 0,{numeric:!0})*("asc"===n||-1)})}(r,o,a);Y(s,r)||s.forEach(function(e){return dt(n.target,e)})}}this.toggles.forEach(function(t){return Ot(t,n.cls,!!function(e,t,n){var r=n.filter;void 0===r&&(r={"":""});var i=n.sort,o=i[0],a=i[1],s=Ai(e,t),l=s.filter;void 0===l&&(l="");var c=s.group;void 0===c&&(c="");var u=s.sort,h=s.order;return void 0===h&&(h="asc"),L(u)?c in r&&l===r[c]||!l&&c&&!(c in r)&&!r[""]:o===u&&a===h}(t,n.attrItem,e))}),t?this.animate(i).then(function(){return Ne(n.$el,"afterFilter",[n])}):(i(),Ne(this.$el,"afterFilter",[this]))},updateState:function(){var e=this;bn.write(function(){return e.setState(e.getState(),!1)})}}};function Ai(e,t){return Cn(ae(e,t),["filter"])}function Ei(e,t,n){var r=Ai(e,t),i=r.filter,o=r.group,a=r.sort,s=r.order;return void 0===s&&(s="asc"),(i||L(a))&&(o?i?(delete n.filter[""],n.filter[o]=i):(delete n.filter[o],(R(n.filter)||""in n.filter)&&(n.filter={"":i||""})):n.filter={"":i||""}),L(a)||(n.sort=[a,s]),n}var ji={slide:{show:function(e){return[{transform:Ti(-100*e)},{transform:Ti()}]},percent:function(e){return Ii(e)},translate:function(e,t){return[{transform:Ti(-100*t*e)},{transform:Ti(100*t*(1-e))}]}}};function Ii(e){return Math.abs(Lt(e,"transform").split(",")[4]/e.offsetWidth)||0}function Ti(e,t){return void 0===e&&(e=0),void 0===t&&(t="%"),e+=e?t:"",Ge?"translateX("+e+")":"translate3d("+e+", 0, 0)"}function Si(e){return"scale3d("+e+", "+e+", 1)"}var Mi=Q({},ji,{fade:{show:function(){return[{opacity:0},{opacity:1}]},percent:function(e){return 1-Lt(e,"opacity")},translate:function(e){return[{opacity:1-e},{opacity:e}]}},scale:{show:function(){return[{opacity:0,transform:Si(.8)},{opacity:1,transform:Si(1)}]},percent:function(e){return 1-Lt(e,"opacity")},translate:function(e){return[{opacity:1-e,transform:Si(1-.2*e)},{opacity:e,transform:Si(.8+.2*e)}]}}});function Ci(e,t,n){Ne(e,Pe(t,!1,!1,n))}var Oi={mixins:[{props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected:function(){this.autoplay&&this.startAutoplay()},disconnected:function(){this.stopAutoplay()},update:function(){re(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:document,filter:function(){return this.autoplay},handler:function(){document.hidden?this.stopAutoplay():this.startAutoplay()}},{name:"mouseenter",filter:function(){return this.autoplay&&this.pauseOnHover},handler:function(){this.isHovering=!0}},{name:"mouseleave",filter:function(){return this.autoplay&&this.pauseOnHover},handler:function(){this.isHovering=!1}}],methods:{startAutoplay:function(){var e=this;this.stopAutoplay(),this.interval=setInterval(function(){return!Me(document.activeElement,e.$el)&&!e.isHovering&&!e.stack.length&&e.show("next")},this.autoplayInterval)},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}},{props:{draggable:Boolean},data:{draggable:!0,threshold:10},created:function(){var e=this;["start","move","end"].forEach(function(t){var n=e[t];e[t]=function(t){var r=He(t).x*(Ze?-1:1);e.prevPos=r!==e.pos?e.pos:e.prevPos,e.pos=r,n(t)}})},events:[{name:nt,delegate:function(){return this.selSlides},handler:function(e){!this.draggable||!Be(e)&&function(e){return!e.children.length&&e.childNodes.length}(e.target)||0<e.button||this.length<2||this.start(e)}},{name:"touchmove",passive:!1,handler:"move",delegate:function(){return this.selSlides}},{name:"dragstart",handler:function(e){e.preventDefault()}}],methods:{start:function(){var e=this;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;var t="touchmove"!=rt?Ce(document,rt,this.move,{passive:!1}):X;this.unbindMove=function(){t(),e.unbindMove=null},Ce(window,"scroll",this.unbindMove),Ce(document,it,this.end,!0),Lt(this.list,"userSelect","none")},move:function(e){var t=this;if(this.unbindMove){var n=this.pos-this.drag;if(!(0==n||this.prevPos===this.pos||!this.dragging&&Math.abs(n)<this.threshold)){Lt(this.list,"pointerEvents","none"),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=n<0?1:-1;for(var r=this.slides,i=this.prevIndex,o=Math.abs(n),a=this.getIndex(i+this.dir,i),s=this._getDistance(i,a)||r[i].offsetWidth;a!==i&&s<o;)this.drag-=s*this.dir,i=a,o-=s,a=this.getIndex(i+this.dir,i),s=this._getDistance(i,a)||r[i].offsetWidth;this.percent=o/s;var l,c=r[i],u=r[a],h=this.index!==a,f=i===a;[this.index,this.prevIndex].filter(function(e){return!w([a,i],e)}).forEach(function(e){Ne(r[e],"itemhidden",[t]),f&&(l=!0,t.prevIndex=i)}),(this.index===i&&this.prevIndex!==i||l)&&Ne(r[this.index],"itemshown",[this]),h&&(this.prevIndex=i,this.index=a,f||Ne(c,"beforeitemhide",[this]),Ne(u,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),c,!f&&u),h&&(f||Ne(c,"itemhide",[this]),Ne(u,"itemshow",[this]))}}},end:function(){if(Oe(window,"scroll",this.unbindMove),this.unbindMove&&this.unbindMove(),Oe(document,it,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{var e=(Ze?this.dir*(Ze?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(0<this.dir&&!e||this.dir<0&&e?"next":"previous",!0)}Lt(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}},{data:{selNav:!1},computed:{nav:function(e,t){return At(e.selNav,t)},selNavItem:function(e){var t=e.attrItem;return"["+t+"],[data-"+t+"]"},navItems:function(e,t){return Et(this.selNavItem,t)}},update:{write:function(){var e=this;this.nav&&this.length!==this.nav.children.length&&ft(this.nav,this.slides.map(function(t,n){return"<li "+e.attrItem+'="'+n+'"><a href="#"></a></li>'}).join("")),Ot(Et(this.selNavItem,this.$el).concat(this.nav),"uk-hidden",!this.maxIndex),this.updateNav()},events:["resize"]},events:[{name:"click",delegate:function(){return this.selNavItem},handler:function(e){e.preventDefault(),this.show(ae(e.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav:function(){var e=this,t=this.getValidIndex();this.navItems.forEach(function(n){var r=ae(n,e.attrItem);Ot(n,e.clsActive,z(r)===t),Ot(n,"uk-invisible",e.finite&&("previous"===r&&0===t||"next"===r&&t>=e.maxIndex))})}}}],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},data:function(){return{easing:"ease",finite:!1,velocity:1,index:0,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}},computed:{duration:function(e,t){var n=e.velocity;return Di(t.offsetWidth/n)},length:function(){return this.slides.length},list:function(e,t){return At(e.selList,t)},maxIndex:function(){return this.length-1},selSlides:function(e){return e.selList+" > *"},slides:function(){return V(this.list.children)}},events:{itemshown:function(){this.$update(this.list)}},methods:{show:function(e,t){var n=this;if(void 0===t&&(t=!1),!this.dragging&&this.length){var r=this.stack,i=t?0:r.length,o=function(){r.splice(i,1),r.length&&n.show(r.shift(),!0)};if(r[t?"unshift":"push"](e),!t&&1<r.length)2===r.length&&this._transitioner.forward(Math.min(this.duration,200));else{var a=this.index,s=Ct(this.slides,this.clsActive)&&this.slides[a],l=this.getIndex(e,this.index),c=this.slides[l];if(s!==c){if(this.dir=function(e,t){return"next"===e?1:"previous"===e?-1:e<t?-1:1}(e,a),this.prevIndex=a,this.index=l,s&&Ne(s,"beforeitemhide",[this]),!Ne(c,"beforeitemshow",[this,s]))return this.index=this.prevIndex,void o();var u=this._show(s,c,t).then(function(){return s&&Ne(s,"itemhidden",[n]),Ne(c,"itemshown",[n]),new We(function(e){bn.write(function(){r.shift(),r.length?n.show(r.shift(),!0):n._transitioner=null,e()})})});return s&&Ne(s,"itemhide",[this]),Ne(c,"itemshow",[this]),u}o()}}},getIndex:function(e,t){return void 0===e&&(e=this.index),void 0===t&&(t=this.index),Z(ut(e,this.slides,t,this.finite),0,this.maxIndex)},getValidIndex:function(e,t){return void 0===e&&(e=this.index),void 0===t&&(t=this.prevIndex),this.getIndex(e,t)},_show:function(e,t,n){if(this._transitioner=this._getTransitioner(e,t,this.dir,Q({easing:n?t.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&&!e)return this._transitioner.translate(1),We.resolve();var r=this.stack.length;return this._transitioner[1<r?"forward":"show"](1<r?Math.min(this.duration,75+75/(r-1)):this.duration,this.percent)},_getDistance:function(e,t){return new this._getTransitioner(e,e!==t&&t).getDistance()},_translate:function(e,t,n){void 0===t&&(t=this.prevIndex),void 0===n&&(n=this.index);var r=this._getTransitioner(t!==n&&t,n);return r.translate(e),r},_getTransitioner:function(e,t,n,r){return void 0===e&&(e=this.prevIndex),void 0===t&&(t=this.index),void 0===n&&(n=this.dir||1),void 0===r&&(r=this.transitionOptions),new this.Transitioner(N(e)?this.slides[e]:e,N(t)?this.slides[t]:t,n*(Ze?-1:1),r)}}};function Di(e){return.5*e+300}var Ni={mixins:[Oi],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:ji,Transitioner:function(e,t,n,r){var i=r.animation,o=r.easing,a=i.percent,s=i.translate,l=i.show;void 0===l&&(l=X);var c=l(n),u=new Ve;return{dir:n,show:function(r,i,a){var s=this;void 0===i&&(i=0);var l=a?"linear":o;return r-=Math.round(r*Z(i,-1,1)),this.translate(i),Ci(t,"itemin",{percent:i,duration:r,timing:l,dir:n}),Ci(e,"itemout",{percent:1-i,duration:r,timing:l,dir:n}),We.all([qt.start(t,c[1],r,l),qt.start(e,c[0],r,l)]).then(function(){s.reset(),u.resolve()},X),u.promise},stop:function(){return qt.stop([t,e])},cancel:function(){qt.cancel([t,e])},reset:function(){for(var n in c[0])Lt([t,e],n,"")},forward:function(n,r){return void 0===r&&(r=this.percent()),qt.cancel([t,e]),this.show(n,r,!0)},translate:function(r){this.reset();var i=s(r,n);Lt(t,i[1]),Lt(e,i[0]),Ci(t,"itemtranslatein",{percent:r,dir:n}),Ci(e,"itemtranslateout",{percent:1-r,dir:n})},percent:function(){return a(e||t,t,n)},getDistance:function(){return e&&e.offsetWidth}}}},computed:{animation:function(e){var t=e.animation,n=e.Animations;return Q(t in n?n[t]:n.slide,{name:t})},transitionOptions:function(){return{animation:this.animation}}},events:{"itemshow itemhide itemshown itemhidden":function(e){var t=e.target;this.$update(t)},beforeitemshow:function(e){It(e.target,this.clsActive)},itemshown:function(e){It(e.target,this.clsActivated)},itemhidden:function(e){Tt(e.target,this.clsActive,this.clsActivated)}}},Pi={mixins:[Zr,Xr,rr,Ni],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:function(){return{preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",pauseOnHover:!1,velocity:2,Animations:Mi,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href="#" uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href="#" uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}},created:function(){var e=this;this.$mount(dt(this.container,this.template)),this.caption=At(".uk-lightbox-caption",this.$el),this.items.forEach(function(){return dt(e.list,"<li></li>")})},events:[{name:rt+" "+nt+" keydown",handler:"showControls"},{name:"click",self:!0,delegate:function(){return this.selSlides},handler:function(e){e.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler:function(){this.showControls()}},{name:"hide",self:!0,handler:function(){this.hideControls(),Tt(this.slides,this.clsActive),qt.stop(this.slides)}},{name:"hidden",self:!0,handler:function(){this.$destroy(!0)}},{name:"keyup",el:document,handler:function(e){if(this.isToggled(this.$el))switch(e.keyCode){case 37:this.show("previous");break;case 39:this.show("next")}}},{name:"beforeitemshow",handler:function(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleNow(this.$el,!0),this.animation=Mi.scale,Tt(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler:function(e){var t=ct(e.target),n=this.getItem(t).caption;Lt(this.caption,"display",n?"":"none"),ft(this.caption,n);for(var r=0;r<=this.preload;r++)this.loadItem(this.getIndex(t+r)),this.loadItem(this.getIndex(t-r))}},{name:"itemshown",handler:function(){this.draggable=this.$props.draggable}},{name:"itemload",handler:function(e,t){var n,r=this,i=t.source,o=t.type,a=t.alt;if(this.setItem(t,"<span uk-spinner></span>"),i)if("image"===o||i.match(/\.(jp(e)?g|png|gif|svg|webp)($|\?)/i))Je(i).then(function(e){return r.setItem(t,'<img width="'+e.width+'" height="'+e.height+'" src="'+i+'" alt="'+(a||"")+'">')},function(){return r.setError(t)});else if("video"===o||i.match(/\.(mp4|webm|ogv)($|\?)/i)){var s=At("<video controls playsinline"+(t.poster?' poster="'+t.poster+'"':"")+' uk-video="'+this.videoAutoplay+'"></video>');re(s,"src",i),De(s,"error loadedmetadata",function(e){"error"===e?r.setError(t):(re(s,{width:s.videoWidth,height:s.videoHeight}),r.setItem(t,s))})}else if("iframe"===o||i.match(/\.(html|php)($|\?)/i))this.setItem(t,'<iframe class="uk-lightbox-iframe" src="'+i+'" frameborder="0" allowfullscreen></iframe>');else if(n=i.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/watch\?v=([^&\s]+)/)||i.match(/()youtu\.be\/(.*)/)){var l=n[2],c=function(e,i){return void 0===e&&(e=640),void 0===i&&(i=450),r.setItem(t,Ri("https://www.youtube"+(n[1]||"")+".com/embed/"+l,e,i,r.videoAutoplay))};Je("https://img.youtube.com/vi/"+l+"/maxresdefault.jpg").then(function(e){var t=e.width,n=e.height;120===t&&90===n?Je("https://img.youtube.com/vi/"+l+"/0.jpg").then(function(e){var t=e.width,n=e.height;return c(t,n)},c):c(t,n)},c)}else(n=i.match(/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/))&&Ke("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(i),{responseType:"json",withCredentials:!1}).then(function(e){var i=e.response,o=i.height,a=i.width;return r.setItem(t,Ri("https://player.vimeo.com/video/"+n[2],a,o,r.videoAutoplay))},function(){return r.setError(t)})}}],methods:{loadItem:function(e){void 0===e&&(e=this.index);var t=this.getItem(e);t.content||Ne(this.$el,"itemload",[t])},getItem:function(e){return void 0===e&&(e=this.index),this.items[e]||{}},setItem:function(e,t){Q(e,{content:t});var n=ft(this.slides[this.items.indexOf(e)],t);Ne(this.$el,"itemloaded",[this,n]),this.$update(n)},setError:function(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls:function(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),It(this.$el,"uk-active","uk-transition-active")},hideControls:function(){Tt(this.$el,"uk-active","uk-transition-active")}}};function Ri(e,t,n,r){return'<iframe src="'+e+'" width="'+t+'" height="'+n+'" style="max-width: 100%; box-sizing: border-box;" frameborder="0" allowfullscreen uk-video="autoplay: '+r+'" uk-responsive></iframe>'}var Li,Fi={install:function(e,t){e.lightboxPanel||e.component("lightboxPanel",Pi),Q(t.props,e.component("lightboxPanel").options.props)},props:{toggle:String},data:{toggle:"a"},computed:{toggles:{get:function(e,t){return Et(e.toggle,t)},watch:function(){this.hide()}},items:function(){return G(this.toggles.map(zi),"source")}},disconnected:function(){this.hide()},events:[{name:"click",delegate:function(){return this.toggle+":not(.uk-disabled)"},handler:function(e){e.preventDefault();var t=ae(e.current,"href");this.show(_(this.items,function(e){return e.source===t}))}}],methods:{show:function(e){var t=this;return this.panel=this.panel||this.$create("lightboxPanel",Q({},this.$props,{items:this.items})),Ce(this.panel.$el,"hidden",function(){return t.panel=!1}),this.panel.show(e)},hide:function(){return this.panel&&this.panel.hide()}}};function zi(e){return["href","caption","type","poster","alt"].reduce(function(t,n){return t["href"===n?"source":n]=ae(e,n),t},{})}var Bi={},Hi={functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:function(e){e.notification.closeAll=function(t,n){kt(document.body,function(r){var i=e.getComponent(r,"notification");!i||t&&t!==i.group||i.close(n)})}},computed:{marginProp:function(e){return"margin"+(d(e.pos,"top")?"Top":"Bottom")},startProps:function(){var e;return(e={opacity:0})[this.marginProp]=-this.$el.offsetHeight,e}},created:function(){Bi[this.pos]||(Bi[this.pos]=dt(this.$container,'<div class="uk-notification uk-notification-'+this.pos+'"></div>'));var e=Lt(Bi[this.pos],"display","block");this.$mount(dt(e,'<div class="'+this.clsMsg+(this.status?" "+this.clsMsg+"-"+this.status:"")+'"> <a href="#" class="'+this.clsClose+'" data-uk-close></a> <div>'+this.message+"</div> </div>"))},connected:function(){var e,t=this,n=B(Lt(this.$el,this.marginProp));qt.start(Lt(this.$el,this.startProps),((e={opacity:1})[this.marginProp]=n,e)).then(function(){t.timeout&&(t.timer=setTimeout(t.close,t.timeout))})},events:(Li={click:function(e){be(e.target,'a[href="#"],a[href=""]')&&e.preventDefault(),this.close()}},Li[ot]=function(){this.timer&&clearTimeout(this.timer)},Li[at]=function(){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},Li),methods:{close:function(e){function t(){Ne(n.$el,"close",[n]),vt(n.$el),Bi[n.pos].children.length||Lt(Bi[n.pos],"display","none")}var n=this;this.timer&&clearTimeout(this.timer),e?t():qt.start(this.$el,this.startProps).then(t)}}},Vi=["x","y","bgx","bgy","rotate","scale","color","backgroundColor","borderColor","opacity","blur","hue","grayscale","invert","saturate","sepia","fopacity","stroke"],Wi={mixins:[Jr],props:Vi.reduce(function(e,t){return e[t]="list",e},{}),data:Vi.reduce(function(e,t){return e[t]=void 0,e},{}),computed:{props:function(e,t){var n=this;return Vi.reduce(function(r,i){if(L(e[i]))return r;var o,a,s,l=i.match(/color/i),c=l||"opacity"===i,u=e[i].slice(0);c&&Lt(t,i,""),u.length<2&&u.unshift(("scale"===i?1:c?Lt(t,i):0)||0);var h=function(e){return e.reduce(function(e,t){return D(t)&&t.replace(/-|\d/g,"").trim()||e},"")}(u);if(l){var f=t.style.color;u=u.map(function(e){return function(e,t){return Lt(Lt(e,"color",t),"color").split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(B)}(t,e)}),t.style.color=f}else if(d(i,"bg")){var p="bgy"===i?"height":"width";if(u=u.map(function(e){return vn(e,p,n.$el)}),Lt(t,"background-position-"+i[2],""),a=Lt(t,"backgroundPosition").split(" ")["x"===i[2]?0:1],n.covers){var g=Math.min.apply(Math,u),m=Math.max.apply(Math,u),v=u.indexOf(g)<u.indexOf(m);s=m-g,u=u.map(function(e){return e-(v?g:m)}),o=(v?-s:0)+"px"}else o=a}else u=u.map(B);if("stroke"===i){if(!u.some(function(e){return e}))return r;var y=jr(n.$el);Lt(t,"strokeDasharray",y),"%"===h&&(u=u.map(function(e){return e*y/100})),u=u.reverse(),i="strokeDashoffset"}return r[i]={steps:u,unit:h,pos:o,bgPos:a,diff:s},r},{})},bgProps:function(){var e=this;return["bgx","bgy"].filter(function(t){return t in e.props})},covers:function(e,t){return function(e){var t=e.style.backgroundSize,n="cover"===Lt(Lt(e,"backgroundSize",""),"backgroundSize");return e.style.backgroundSize=t,n}(t)}},disconnected:function(){delete this._image},update:{read:function(e){var t=this;if(e.active=this.matchMedia,e.active){if(!e.image&&this.covers&&this.bgProps.length){var n=Lt(this.$el,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(n){var r=new Image;r.src=n,(e.image=r).naturalWidth||(r.onload=function(){return t.$emit()})}}var i=e.image;if(i&&i.naturalWidth){var o={width:this.$el.offsetWidth,height:this.$el.offsetHeight},a={width:i.naturalWidth,height:i.naturalHeight},s=ne.cover(a,o);this.bgProps.forEach(function(e){var n=t.props[e],r=n.diff,i=n.bgPos,l=n.steps,c="bgy"===e?"height":"width",u=s[c]-o[c];if(u<r)o[c]=s[c]+r-u;else if(r<u){var h=o[c]/vn(i,c,t.$el);h&&(t.props[e].steps=l.map(function(e){return e-(u-r)/h}))}s=ne.cover(a,o)}),e.dim=s}}},write:function(e){var t=e.dim;e.active?t&&Lt(this.$el,{backgroundSize:t.width+"px "+t.height+"px",backgroundRepeat:"no-repeat"}):Lt(this.$el,{backgroundSize:"",backgroundRepeat:""})},events:["resize"]},methods:{reset:function(){var e=this;K(this.getCss(0),function(t,n){return Lt(e.$el,n,"")})},getCss:function(e){var t=this.props;return Object.keys(t).reduce(function(n,r){var i=t[r],o=i.steps,a=i.unit,s=i.pos,l=function(e,t,n){void 0===n&&(n=2);var r=Ui(e,t),i=r[0],o=r[1],a=r[2];return(N(i)?i+Math.abs(i-o)*a*(i<o?1:-1):+o).toFixed(n)}(o,e);switch(r){case"x":case"y":a=a||"px",n.transform+=" translate"+u(r)+"("+B(l).toFixed("px"===a?0:2)+a+")";break;case"rotate":a=a||"deg",n.transform+=" rotate("+(l+a)+")";break;case"scale":n.transform+=" scale("+l+")";break;case"bgy":case"bgx":n["background-position-"+r[2]]="calc("+s+" + "+l+"px)";break;case"color":case"backgroundColor":case"borderColor":var c=Ui(o,e),h=c[0],f=c[1],d=c[2];n[r]="rgba("+h.map(function(e,t){return e+=d*(f[t]-e),3===t?B(e):parseInt(e,10)}).join(",")+")";break;case"blur":a=a||"px",n.filter+=" blur("+(l+a)+")";break;case"hue":a=a||"deg",n.filter+=" hue-rotate("+(l+a)+")";break;case"fopacity":a=a||"%",n.filter+=" opacity("+(l+a)+")";break;case"grayscale":case"invert":case"saturate":case"sepia":a=a||"%",n.filter+=" "+r+"("+(l+a)+")";break;default:n[r]=l}return n},{transform:"",filter:""})}}};function Ui(e,t){var n=e.length-1,r=Math.min(Math.floor(n*t),n-1),i=e.slice(r,r+2);return i.push(1===t?1:t%(1/n)*n),i}var Yi={mixins:[Wi],props:{target:String,viewport:Number,easing:Number},data:{target:!1,viewport:1,easing:1},computed:{target:function(e,t){var n=e.target;return function e(t){return t?"offsetTop"in t?t:e(t.parentNode):document.body}(n&&se(n,t)||t)}},update:{read:function(e,t){var n=e.percent;if("scroll"!==t&&(n=!1),e.active){var r=n;return{percent:n=function(e,t){return Z(e*(1-(t-t*e)))}(pn(this.target)/(this.viewport||1),this.easing),style:r!==n&&this.getCss(n)}}},write:function(e){var t=e.style;e.active?t&&Lt(this.$el,t):this.reset()},events:["scroll","resize"]}},qi={update:{write:function(){if(!this.stack.length&&!this.dragging){var e=this.getValidIndex();delete this.index,Tt(this.slides,this.clsActive,this.clsActivated),this.show(e)}},events:["resize"]}};function Qi(e,t,n){var r=Gi(e,t);return n?r-function(e,t){return Zi(t).width/2-Zi(e).width/2}(e,t):Math.min(r,Ki(t))}function Ki(e){return Math.max(0,Ji(e)-Zi(e).width)}function Ji(e){return eo(e).reduce(function(e,t){return Zi(t).width+e},0)}function Gi(e,t){return(rn(e).left+(Ze?Zi(e).width-Zi(t).width:0))*(Ze?-1:1)}function Zi(e){return e.getBoundingClientRect()}function Xi(e,t,n){Ne(e,Pe(t,!1,!1,n))}function eo(e){return V(e.children)}var to={mixins:[nr,Oi,qi],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",Transitioner:function(e,t,n,r){var i=r.center,o=r.easing,a=r.list,s=new Ve,l=e?Qi(e,a,i):Qi(t,a,i)+Zi(t).width*n,c=t?Qi(t,a,i):l+Zi(e).width*n*(Ze?-1:1);return{dir:n,show:function(t,r,i){void 0===r&&(r=0);var l=i?"linear":o;return t-=Math.round(t*Z(r,-1,1)),this.translate(r),e&&this.updateTranslates(),r=e?r:Z(r,0,1),Xi(this.getItemIn(),"itemin",{percent:r,duration:t,timing:l,dir:n}),e&&Xi(this.getItemIn(!0),"itemout",{percent:1-r,duration:t,timing:l,dir:n}),qt.start(a,{transform:Ti(-c*(Ze?-1:1),"px")},t,l).then(s.resolve,X),s.promise},stop:function(){return qt.stop(a)},cancel:function(){qt.cancel(a)},reset:function(){Lt(a,"transform","")},forward:function(e,t){return void 0===t&&(t=this.percent()),qt.cancel(a),this.show(e,t,!0)},translate:function(t){var r=this.getDistance()*n*(Ze?-1:1);Lt(a,"transform",Ti(Z(r-r*t-c,-Ji(a),Zi(a).width)*(Ze?-1:1),"px")),this.updateTranslates(),e&&(t=Z(t,-1,1),Xi(this.getItemIn(),"itemtranslatein",{percent:t,dir:n}),Xi(this.getItemIn(!0),"itemtranslateout",{percent:1-t,dir:n}))},percent:function(){return Math.abs((Lt(a,"transform").split(",")[4]*(Ze?-1:1)+l)/(c-l))},getDistance:function(){return Math.abs(c-l)},getItemIn:function(t){void 0===t&&(t=!1);var r=this.getActives(),i=J(eo(a),"offsetLeft"),o=ct(i,r[0<n*(t?-1:1)?r.length-1:0]);return~o&&i[o+(e&&!t?n:0)]},getActives:function(){var n=Qi(e||t,a,i);return J(eo(a).filter(function(e){var t=Gi(e,a);return n<=t&&t+Zi(e).width<=Zi(a).width+n}),"offsetLeft")},updateTranslates:function(){var e=this.getActives();eo(a).forEach(function(n){var r=w(e,n);Xi(n,"itemtranslate"+(r?"in":"out"),{percent:r?1:0,dir:n.offsetLeft<=t.offsetLeft?1:-1})})}}}},computed:{avgWidth:function(){return Ji(this.list)/this.length},finite:function(e){return e.finite||Ji(this.list)<Zi(this.list).width+function(e){return eo(e).reduce(function(e,t){return Math.max(e,Zi(t).width)},0)}(this.list)+this.center},maxIndex:function(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return this.sets[this.sets.length-1];Lt(this.slides,"order","");for(var e=Ki(this.list),t=this.length;t--;)if(Gi(this.list.children[t],this.list)<e)return Math.min(t+1,this.length-1);return 0},sets:function(e){var t=this,n=e.sets,r=Zi(this.list).width/(this.center?2:1),i=0,o=r,a=0;return!R(n=n&&this.slides.reduce(function(e,n,s){var l=Zi(n).width;if(i<a+l&&(!t.center&&s>t.maxIndex&&(s=t.maxIndex),!w(e,s))){var c=t.slides[s+1];t.center&&c&&l<o-Zi(c).width/2?o-=l:(o=r,e.push(s),i=a+r+(t.center?l/2:0))}return a+=l,e},[]))&&n},transitionOptions:function(){return{center:this.center,list:this.list}}},connected:function(){Ot(this.$el,this.clsContainer,!At("."+this.clsContainer,this.$el))},update:{write:function(){var e=this;Et("["+this.attrItem+"],[data-"+this.attrItem+"]",this.$el).forEach(function(t){var n=ae(t,e.attrItem);e.maxIndex&&Ot(t,"uk-hidden",P(n)&&(e.sets&&!w(e.sets,B(n))||n>e.maxIndex))})},events:["resize"]},events:{beforeitemshow:function(e){!this.dragging&&this.sets&&this.stack.length<2&&!w(this.sets,this.index)&&(this.index=this.getValidIndex());var t=Math.abs(this.index-this.prevIndex+(0<this.dir&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&1<t){for(var n=0;n<t;n++)this.stack.splice(1,0,0<this.dir?"next":"previous");e.preventDefault()}else this.duration=Di(this.avgWidth/this.velocity)*(Zi(this.dir<0||!this.slides[this.prevIndex]?this.slides[this.index]:this.slides[this.prevIndex]).width/this.avgWidth),this.reorder()},itemshow:function(){L(this.prevIndex)||It(this._getTransitioner().getItemIn(),this.clsActive)},itemshown:function(){var e=this,t=this._getTransitioner(this.index).getActives();this.slides.forEach(function(n){return Ot(n,e.clsActive,w(t,n))}),this.sets&&!w(this.sets,B(this.index))||this.slides.forEach(function(n){return Ot(n,e.clsActivated,w(t,n))})}},methods:{reorder:function(){var e=this;if(Lt(this.slides,"order",""),!this.finite){var t=0<this.dir&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach(function(n,r){return Lt(n,"order",0<e.dir&&r<t?1:e.dir<0&&r>=e.index?-1:"")}),this.center)for(var n=this.slides[t],r=Zi(this.list).width/2-Zi(n).width/2,i=0;0<r;){var o=this.getIndex(--i+t,t),a=this.slides[o];Lt(a,"order",t<o?-2:-1),r-=Zi(a).width}}},getValidIndex:function(e,t){if(void 0===e&&(e=this.index),void 0===t&&(t=this.prevIndex),e=this.getIndex(e,t),!this.sets)return e;var n;do{if(w(this.sets,e))return e;n=e,e=this.getIndex(e+this.dir,t)}while(e!==n);return e}}},no={mixins:[Wi],data:{selItem:"!li"},computed:{item:function(e,t){return se(e.selItem,t)}},events:[{name:"itemshown",self:!0,el:function(){return this.item},handler:function(){Lt(this.$el,this.getCss(.5))}},{name:"itemin itemout",self:!0,el:function(){return this.item},handler:function(e){var t=e.type,n=e.detail,r=n.percent,i=n.duration,o=n.timing,a=n.dir;qt.cancel(this.$el),Lt(this.$el,this.getCss(io(t,a,r))),qt.start(this.$el,this.getCss(ro(t)?.5:0<a?1:0),i,o).catch(X)}},{name:"transitioncanceled transitionend",self:!0,el:function(){return this.item},handler:function(){qt.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:function(){return this.item},handler:function(e){var t=e.type,n=e.detail,r=n.percent,i=n.dir;qt.cancel(this.$el),Lt(this.$el,this.getCss(io(t,i,r)))}}]};function ro(e){return g(e,"in")}function io(e,t,n){return n/=2,ro(e)?t<0?1-n:n:t<0?n:1-n}var oo,ao,so,lo,co=Q({},ji,{fade:{show:function(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent:function(e){return 1-Lt(e,"opacity")},translate:function(e){return[{opacity:1-e,zIndex:0},{zIndex:-1}]}},scale:{show:function(){return[{opacity:0,transform:Si(1.5),zIndex:0},{zIndex:-1}]},percent:function(e){return 1-Lt(e,"opacity")},translate:function(e){return[{opacity:1-e,transform:Si(1+.5*e),zIndex:0},{zIndex:-1}]}},pull:{show:function(e){return e<0?[{transform:Ti(30),zIndex:-1},{transform:Ti(),zIndex:0}]:[{transform:Ti(-100),zIndex:0},{transform:Ti(),zIndex:-1}]},percent:function(e,t,n){return n<0?1-Ii(t):Ii(e)},translate:function(e,t){return t<0?[{transform:Ti(30*e),zIndex:-1},{transform:Ti(-100*(1-e)),zIndex:0}]:[{transform:Ti(100*-e),zIndex:0},{transform:Ti(30*(1-e)),zIndex:-1}]}},push:{show:function(e){return e<0?[{transform:Ti(100),zIndex:0},{transform:Ti(),zIndex:-1}]:[{transform:Ti(-30),zIndex:-1},{transform:Ti(),zIndex:0}]},percent:function(e,t,n){return 0<n?1-Ii(t):Ii(e)},translate:function(e,t){return t<0?[{transform:Ti(100*e),zIndex:0},{transform:Ti(-30*(1-e)),zIndex:-1}]:[{transform:Ti(-30*e),zIndex:-1},{transform:Ti(100*(1-e)),zIndex:0}]}}}),uo={mixins:[nr,Ni,qi],props:{ratio:String,minHeight:Number,maxHeight:Number},data:{ratio:"16:9",minHeight:!1,maxHeight:!1,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:co},update:{read:function(){var e=this.ratio.split(":").map(Number),t=e[0],n=e[1];return n=n*this.list.offsetWidth/t||0,this.minHeight&&(n=Math.max(this.minHeight,n)),this.maxHeight&&(n=Math.min(this.maxHeight,n)),{height:n-ln(this.list,"content-box")}},write:function(e){var t=e.height;Lt(this.list,"minHeight",t)},events:["resize"]}},ho={mixins:[nr,wi],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1},created:function(){var e=this;["init","start","move","end"].forEach(function(t){var n=e[t];e[t]=function(t){e.scrollY=window.pageYOffset;var r=He(t,"page"),i=r.x,o=r.y;e.pos={x:i,y:o},n(t)}})},events:{name:nt,passive:!1,handler:"init"},update:{write:function(){if(this.clsEmpty&&Ot(this.$el,this.clsEmpty,R(this.$el.children)),Lt(this.handle?Et(this.handle,this.$el):this.$el.children,{touchAction:"none",userSelect:"none"}),this.drag){tn(this.drag,{top:this.pos.y+this.origin.top,left:this.pos.x+this.origin.left});var e,t=tn(this.drag),n=t.top,r=n+t.height;0<n&&n<this.scrollY?e=this.scrollY-5:r<on(document)&&r>on(window)+this.scrollY&&(e=this.scrollY+5),e&&setTimeout(function(){return gn(window,e)},5)}}},methods:{init:function(e){var t=e.target,n=e.button,r=e.defaultPrevented,i=V(this.$el.children).filter(function(e){return Me(t,e)})[0];!i||r||0<n||Te(t)||Me(t,"."+this.clsNoDrag)||this.handle&&!Me(t,this.handle)||(e.preventDefault(),this.touched=[this],this.placeholder=i,this.origin=Q({target:t,index:ct(i)},this.pos),Ce(document,rt,this.move),Ce(document,it,this.end),Ce(window,"scroll",this.scroll),this.threshold||this.start(e))},start:function(e){this.drag=dt(this.$container,this.placeholder.outerHTML.replace(/^<li/i,"<div").replace(/li>$/i,"div>")),Lt(this.drag,Q({boxSizing:"border-box",width:this.placeholder.offsetWidth,height:this.placeholder.offsetHeight},Lt(this.placeholder,["paddingLeft","paddingRight","paddingTop","paddingBottom"]))),re(this.drag,"uk-no-boot",""),It(this.drag,this.clsDrag,this.clsCustom),on(this.drag.firstElementChild,on(this.placeholder.firstElementChild));var t=tn(this.placeholder),n=t.left,r=t.top;Q(this.origin,{left:n-this.pos.x,top:r-this.pos.y}),It(this.placeholder,this.clsPlaceholder),It(this.$el.children,this.clsItem),It(document.documentElement,this.clsDragState),Ne(this.$el,"start",[this,this.placeholder]),this.move(e)},move:function(e){if(this.drag){this.$emit();var t="mousemove"===e.type?e.target:document.elementFromPoint(this.pos.x-window.pageXOffset,this.pos.y-window.pageYOffset),n=this.getSortable(t),r=this.getSortable(this.placeholder),i=n!==r;if(n&&!Me(t,this.placeholder)&&(!i||n.group&&n.group===r.group)){if(t=n.$el===t.parentNode&&t||V(n.$el.children).filter(function(e){return Me(t,e)})[0],i)r.remove(this.placeholder);else if(!t)return;n.insert(this.placeholder,t),w(this.touched,n)||this.touched.push(n)}}else(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(e)},end:function(e){if(Oe(document,rt,this.move),Oe(document,it,this.end),Oe(window,"scroll",this.scroll),this.drag){var t=this.getSortable(this.placeholder);this===t?this.origin.index!==ct(this.placeholder)&&Ne(this.$el,"moved",[this,this.placeholder]):(Ne(t.$el,"added",[t,this.placeholder]),Ne(this.$el,"removed",[this,this.placeholder])),Ne(this.$el,"stop",[this,this.placeholder]),vt(this.drag),this.drag=null;var n=this.touched.map(function(e){return e.clsPlaceholder+" "+e.clsItem}).join(" ");this.touched.forEach(function(e){return Tt(e.$el.children,n)}),Tt(document.documentElement,this.clsDragState)}else"touchend"===e.type&&e.target.click()},scroll:function(){var e=window.pageYOffset;e!==this.scrollY&&(this.pos.y+=e-this.scrollY,this.scrollY=e,this.$emit())},insert:function(e,t){var n=this;function r(){t?!Me(e,n.$el)||function(e,t){return e.parentNode===t.parentNode&&ct(e)>ct(t)}(e,t)?pt(t,e):gt(t,e):dt(n.$el,e)}It(this.$el.children,this.clsItem),this.animation?this.animate(r):r()},remove:function(e){Me(e,this.$el)&&(Lt(this.handle?Et(this.handle,e):e,{touchAction:"",userSelect:""}),this.animation?this.animate(function(){return vt(e)}):vt(e))},getSortable:function(e){return e&&(this.$getComponent(e,"sortable")||this.getSortable(e.parentNode))}}},fo=[],po={mixins:[Zr,rr,lr],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["uk-animation-scale-up"],duration:100,cls:"uk-active",clsPos:"uk-tooltip"},beforeConnect:function(){this._hasTitle=ie(this.$el,"title"),re(this.$el,{title:"","aria-expanded":!1})},disconnected:function(){this.hide(),re(this.$el,{title:this._hasTitle?this.title:null,"aria-expanded":null})},methods:{show:function(){var e=this;this.isActive()||(fo.forEach(function(e){return e.hide()}),fo.push(this),this._unbind=Ce(document,it,function(t){return!Me(t.target,e.$el)&&e.hide()}),clearTimeout(this.showTimer),this.showTimer=setTimeout(function(){e._show(),e.hideTimer=setInterval(function(){je(e.$el)||e.hide()},150)},this.delay))},hide:function(){!this.isActive()||xe(this.$el,"input")&&this.$el===document.activeElement||(fo.splice(fo.indexOf(this),1),clearTimeout(this.showTimer),clearInterval(this.hideTimer),re(this.$el,"aria-expanded",!1),this.toggleElement(this.tooltip,!1),this.tooltip&&vt(this.tooltip),this.tooltip=!1,this._unbind())},_show:function(){this.tooltip=dt(this.container,'<div class="'+this.clsPos+'" aria-expanded="true" aria-hidden> <div class="'+this.clsPos+'-inner">'+this.title+"</div> </div>"),this.positionAt(this.tooltip,this.$el),this.origin="y"===this.getAxis()?fn(this.dir)+"-"+this.align:this.align+"-"+fn(this.dir),this.toggleElement(this.tooltip,!0)},isActive:function(){return w(fo,this)}},events:(oo={focus:"show",blur:"hide"},oo[ot+" "+at]=function(e){Be(e)||(e.type===ot?this.show():this.hide())},oo[nt]=function(e){Be(e)&&(this.isActive()?this.hide():this.show())},oo)},go={props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,msgInvalidMime:String,msgInvalidName:String,msgInvalidSize:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"uk-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,msgInvalidMime:"Invalid File Type: %s",msgInvalidName:"Invalid File Name: %s",msgInvalidSize:"Invalid File Size: %s Kilobytes Max",multiple:!1,name:"files[]",params:{},type:"",url:"",abort:X,beforeAll:X,beforeSend:X,complete:X,completeAll:X,error:X,fail:X,load:X,loadEnd:X,loadStart:X,progress:X},events:{change:function(e){xe(e.target,'input[type="file"]')&&(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop:function(e){vo(e);var t=e.dataTransfer;t&&t.files&&(Tt(this.$el,this.clsDragover),this.upload(t.files))},dragenter:function(e){vo(e)},dragover:function(e){vo(e),It(this.$el,this.clsDragover)},dragleave:function(e){vo(e),Tt(this.$el,this.clsDragover)}},methods:{upload:function(e){var t=this;if(e.length){Ne(this.$el,"upload",[e]);for(var n=0;n<e.length;n++){if(this.maxSize&&1e3*this.maxSize<e[n].size)return void this.fail(this.msgInvalidSize.replace("%s",this.maxSize));if(this.allow&&!mo(this.allow,e[n].name))return void this.fail(this.msgInvalidName.replace("%s",this.allow));if(this.mime&&!mo(this.mime,e[n].type))return void this.fail(this.msgInvalidMime.replace("%s",this.mime))}this.multiple||(e=[e[0]]),this.beforeAll(this,e);var r=function(e,t){for(var n=[],r=0;r<e.length;r+=t){for(var i=[],o=0;o<t;o++)i.push(e[r+o]);n.push(i)}return n}(e,this.concurrent),i=function(e){var n=new FormData;for(var o in e.forEach(function(e){return n.append(t.name,e)}),t.params)n.append(o,t.params[o]);Ke(t.url,{data:n,method:t.method,responseType:t.type,beforeSend:function(e){var n=e.xhr;n.upload&&Ce(n.upload,"progress",t.progress),["loadStart","load","loadEnd","abort"].forEach(function(e){return Ce(n,e.toLowerCase(),t[e])}),t.beforeSend(e)}}).then(function(e){t.complete(e),r.length?i(r.shift()):t.completeAll(e)},function(e){return t.error(e)})};i(r.shift())}}}};function mo(e,t){return t.match(new RegExp("^"+e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function vo(e){e.preventDefault(),e.stopPropagation()}function yo(){wo(document.body,so),bn.flush(),new MutationObserver(function(e){return e.forEach(xo)}).observe(document,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),ao._initialized=!0}function xo(e){var t=e.target;("attributes"!==e.type?function(e){for(var t=e.addedNodes,n=e.removedNodes,r=0;r<t.length;r++)wo(t[r],so);for(var i=0;i<n.length;i++)wo(n[i],lo);return!0}(e):function(e){var t=e.target,n=e.attributeName;if("href"===n)return!0;var r=Yn(n);if(r&&r in ao){if(ie(t,n))return ao[r](t),!0;var i=ao.getComponent(t,r);return i?(i.$destroy(),!0):void 0}}(e))&&ao.update(t)}function wo(e,t){if(1===e.nodeType&&!ie(e,"uk-no-boot"))for(t(e),e=e.firstElementChild;e;){var n=e.nextElementSibling;wo(e,t),e=n}}return qn.component("countdown",yi),qn.component("filter",ki),qn.component("lightbox",Fi),qn.component("lightboxPanel",Pi),qn.component("notification",Hi),qn.component("parallax",Yi),qn.component("slider",to),qn.component("sliderParallax",no),qn.component("slideshow",uo),qn.component("slideshowParallax",no),qn.component("sortable",ho),qn.component("tooltip",po),qn.component("upload",go),so=(ao=qn).connect,lo=ao.disconnect,"MutationObserver"in window&&(document.body?yo():new MutationObserver(function(){document.body&&(this.disconnect(),yo())}).observe(document,{childList:!0,subtree:!0})),qn}()});new class extends G{constructor(e){super(),J(this,e,Xd,Zd,a,[])}}({target:document.getElementById("app")})}();
//# sourceMappingURL=bundle.js.map