From 2674d221f8589553be53db5e6939b1959d042c03 Mon Sep 17 00:00:00 2001 From: Ginger Butcher Date: Thu, 20 Jul 2023 16:20:57 +0100 Subject: [PATCH 1/3] fix: validate download form before submitting only email validation at the moment --- .../assets/scripts/apps/search/dist/search.js | 8 ++-- .../search/src/components/popups/Download.vue | 42 ++++++++++++++++++- 2 files changed, 44 insertions(+), 6 deletions(-) diff --git a/ckanext/nhm/theme/assets/scripts/apps/search/dist/search.js b/ckanext/nhm/theme/assets/scripts/apps/search/dist/search.js index 0a115291..c20c0198 100644 --- a/ckanext/nhm/theme/assets/scripts/apps/search/dist/search.js +++ b/ckanext/nhm/theme/assets/scripts/apps/search/dist/search.js @@ -10,14 +10,14 @@ function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:r});else * (c) 2014-2022 Evan You * Released under the MIT License. */ -var n;n=function(){"use strict";var t=Object.freeze({}),n=Array.isArray;function i(t){return null==t}function o(t){return null!=t}function a(t){return!0===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function u(t){return"function"==typeof t}function c(t){return null!==t&&"object"==typeof t}var l=Object.prototype.toString;function f(t){return l.call(t).slice(8,-1)}function h(t){return"[object Object]"===l.call(t)}function p(t){return"[object RegExp]"===l.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function v(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function m(t){return null==t?"":Array.isArray(t)||h(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function y(t,e){for(var r=Object.create(null),n=t.split(","),i=0;i-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function E(t,e){return _.call(t,e)}function S(t){var e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}var C=/-(\w)/g,A=S((function(t){return t.replace(C,(function(t,e){return e?e.toUpperCase():""}))})),k=S((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),D=/\B([A-Z])/g,O=S((function(t){return t.replace(D,"-$1").toLowerCase()})),T=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function r(r){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return r._length=t.length,r};function F(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function j(t,e){for(var r in e)t[r]=e[r];return t}function I(t){for(var e={},r=0;r0,Q=K&&K.indexOf("edge/")>0;K&&K.indexOf("android");var tt=K&&/iphone|ipad|ipod|ios/.test(K);K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K);var et,rt=K&&K.match(/firefox\/(\d+)/),nt={}.watch,it=!1;if(W)try{var ot={};Object.defineProperty(ot,"passive",{get:function(){it=!0}}),window.addEventListener("test-passive",null,ot)}catch(t){}var at=function(){return void 0===et&&(et=!W&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),et},st=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"==typeof t&&/native code/.test(t.toString())}var ct,lt="undefined"!=typeof Symbol&&ut(Symbol)&&"undefined"!=typeof Reflect&&ut(Reflect.ownKeys);ct="undefined"!=typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ft=null;function ht(t){void 0===t&&(t=null),t||ft&&ft._scope.off(),ft=t,t&&t._scope.on()}var pt,dt=function(){function t(t,e,r,n,i,o,a,s){this.tag=t,this.data=e,this.children=r,this.text=n,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),vt=function(t){void 0===t&&(t="");var e=new dt;return e.text=t,e.isComment=!0,e};function mt(t){return new dt(void 0,void 0,void 0,String(t))}function gt(t){var e=new dt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var yt=y("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,require"),bt=function(t,e){En('Property or method "'.concat(e,'" is not defined on the instance but ')+"referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.",t)},wt=function(t,e){En('Property "'.concat(e,'" must be accessed with "$data.').concat(e,'" because ')+'properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals. See: https://v2.vuejs.org/v2/api/#data',t)},xt="undefined"!=typeof Proxy&&ut(Proxy);if(xt){var _t=y("stop,prevent,self,ctrl,shift,alt,meta,exact");q.keyCodes=new Proxy(q.keyCodes,{set:function(t,e,r){return _t(e)?(En("Avoid overwriting built-in modifier in config.keyCodes: .".concat(e)),!1):(t[e]=r,!0)}})}var Et={has:function(t,e){var r=e in t,n=yt(e)||"string"==typeof e&&"_"===e.charAt(0)&&!(e in t.$data);return r||n||(e in t.$data?wt(t,e):bt(t,e)),r||!n}},St={get:function(t,e){return"string"!=typeof e||e in t||(e in t.$data?wt(t,e):bt(t,e)),t[e]}};pt=function(t){if(xt){var e=t.$options,r=e.render&&e.render._withStripped?St:Et;t._renderProxy=new Proxy(t,r)}else t._renderProxy=t};var Ct=function(){return(Ct=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&(pe((c=t(c,"".concat(r||"","_").concat(u)))[0])&&pe(f)&&(h[l]=mt(f.text+c[0].text),c.shift()),h.push.apply(h,c)):s(c)?pe(f)?h[l]=mt(f.text+c):""!==c&&h.push(mt(c)):pe(c)&&pe(f)?h[l]=mt(f.text+c.text):(a(e._isVList)&&o(c.tag)&&i(c.key)&&o(r)&&(c.key="__vlist".concat(r,"_").concat(u,"__")),h.push(c)));return h}(t):void 0}function pe(t){return o(t)&&o(t.text)&&!1===t.isComment}function de(t,e,r,l,f,h){return(n(r)||s(r))&&(f=l,l=r,r=void 0),a(h)&&(f=2),function(t,e,r,l,f){if(o(r)&&o(r.__ob__))return En("Avoid using observed data object as vnode data: ".concat(JSON.stringify(r),"\n")+"Always create fresh vnode data objects in each render!",t),vt();if(o(r)&&o(r.is)&&(e=r.is),!e)return vt();var h,p;if(o(r)&&o(r.key)&&!s(r.key)&&En("Avoid using non-primitive value as key, use string/number value instead.",t),n(l)&&u(l[0])&&((r=r||{}).scopedSlots={default:l[0]},l.length=0),2===f?l=he(l):1===f&&(l=function(t){for(var e=0;e."),t),h=new dt(q.parsePlatformTagName(e),r,l,void 0,void 0,t)):h=r&&r.pre||!o(d=Bn(t.$options,"components",e))?new dt(e,r,l,void 0,void 0,t):bn(d,r,t,l,e)}else h=bn(e,r,t,l);return n(h)?h:o(h)?(o(p)&&function t(e,r,n){if(e.ns=r,"foreignObject"===e.tag&&(r=void 0,n=!0),o(e.children))for(var s=0,u=e.children.length;s0,s=r?!!r.$stable:!a,u=r&&r.$key;if(r){if(r._normalized)return r._normalized;if(s&&i&&i!==t&&u===i.$key&&!a&&!i.$hasNormal)return i;for(var c in o={},r)r[c]&&"$"!==c[0]&&(o[c]=Pe(e,n,c,r[c]))}else o={};for(var l in n)l in o||(o[l]=Re(n,l));return r&&Object.isExtensible(r)&&(r._normalized=o),V(o,"$stable",s),V(o,"$key",u),V(o,"$hasNormal",a),o}function Pe(t,e,r,i){var o=function(){var e=ft;ht(t);var r=arguments.length?i.apply(null,arguments):i({}),o=(r=r&&"object"==typeof r&&!n(r)?[r]:he(r))&&r[0];return ht(e),r&&(!o||1===r.length&&o.isComment&&!je(o))?void 0:r};return i.proxy&&Object.defineProperty(e,r,{get:o,enumerable:!0,configurable:!0}),o}function Re(t,e){return function(){return t[e]}}function Be(e){var r=!1;return{get attrs(){if(!e._attrsProxy){var r=e._attrsProxy={};V(r,"_v_attr_proxy",!0),Me(r,e.$attrs,t,e,"$attrs")}return e._attrsProxy},get listeners(){return e._listenersProxy||Me(e._listenersProxy={},e.$listeners,t,e,"$listeners"),e._listenersProxy},get slots(){return function(t){return t._slotsProxy||Le(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}(e)},emit:T(e.$emit,e),expose:function(t){r&&En("expose() should be called only once per setup().",e),r=!0,t&&Object.keys(t).forEach((function(r){return ee(e,t,r)}))}}}function Me(t,e,r,n,i){var o=!1;for(var a in e)a in t?e[a]!==r[a]&&(o=!0):(o=!0,Ne(t,a,n,i));for(var a in t)a in e||(o=!0,delete t[a]);return o}function Ne(t,e,r,n){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return r[n][e]}})}function Le(t,e){for(var r in e)t[r]=e[r];for(var r in t)r in e||delete t[r]}function Ue(){ft||En("useContext() called without active instance.");var t=ft;return t._setupContext||(t._setupContext=Be(t))}var $e,ze=null;function qe(t,e){return(t.__esModule||lt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function He(t){if(n(t))for(var e=0;edocument.createEvent("Event").timeStamp&&(cr=function(){return lr.now()})}var fr=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function hr(){var t,e;for(ur=cr(),ar=!0,er.sort(fr),sr=0;sr100)){En("You may have an infinite update loop "+(t.user?'in watcher with expression "'.concat(t.expression,'"'):"in a component render function."),t.vm);break}var r=rr.slice(),n=er.slice();sr=er.length=rr.length=0,nr={},ir={},or=ar=!1,function(t){for(var e=0;esr&&er[r].id>t.id;)r--;er.splice(r+1,0,t)}else er.push(t);if(!or){if(or=!0,!q.async)return void hr();Br(hr)}}}var dr="".concat("watcher"," callback"),vr="".concat("watcher"," getter"),mr="".concat("watcher"," cleanup");function gr(t,e){return wr(t,null,Ct(Ct({},e),{flush:"post"}))}var yr,br={};function wr(e,r,i){var o=void 0===i?t:i,a=o.immediate,s=o.deep,c=o.flush,l=void 0===c?"pre":c,f=o.onTrack,h=o.onTrigger;r||(void 0!==a&&En('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==s&&En('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));var p,d,v=function(t){En("Invalid watch source: ".concat(t,". A watch source can only be a getter/effect ")+"function, a ref, a reactive object, or an array of these types.")},m=ft,g=function(t,e,r){return void 0===r&&(r=null),Sr(t,null,r,m,e)},y=!1,b=!1;if(Qt(e)?(p=function(){return e.value},y=Kt(e)):Wt(e)?(p=function(){return e.__ob__.dep.depend(),e},s=!0):n(e)?(b=!0,y=e.some((function(t){return Wt(t)||Kt(t)})),p=function(){return e.map((function(t){return Qt(t)?t.value:Wt(t)?Zr(t):u(t)?g(t,vr):void v(t)}))}):u(e)?p=r?function(){return g(e,vr)}:function(){if(!m||!m._isDestroyed)return d&&d(),g(e,"watcher",[x])}:(p=P,v(e)),r&&s){var w=p;p=function(){return Zr(w())}}var x=function(t){d=_.onStop=function(){g(t,mr)}};if(at())return x=P,r?a&&g(r,dr,[p(),b?[]:void 0,x]):p(),P;var _=new tn(ft,p,P,{lazy:!0});_.noRecurse=!r;var E=b?[]:br;return _.run=function(){if(_.active)if(r){var t=_.get();(s||y||(b?t.some((function(t,e){return U(t,E[e])})):U(t,E)))&&(d&&d(),g(r,dr,[t,E===br?void 0:E,x]),E=t)}else _.get()},"sync"===l?_.update=_.run:"post"===l?(_.post=!0,_.update=function(){return pr(_)}):_.update=function(){if(m&&m===ft&&!m._isMounted){var t=m._preWatchers||(m._preWatchers=[]);t.indexOf(_)<0&&t.push(_)}else pr(_)},_.onTrack=f,_.onTrigger=h,r?a?_.run():E=_.get():"post"===l&&m?m.$once("hook:mounted",(function(){return _.get()})):_.get(),function(){_.teardown()}}var xr=function(){function t(t){void 0===t&&(t=!1),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=yr,!t&&yr&&(this.index=(yr.scopes||(yr.scopes=[])).push(this)-1)}return t.prototype.run=function(t){if(this.active){var e=yr;try{return yr=this,t()}finally{yr=e}}else En("cannot run an inactive effect scope.")},t.prototype.on=function(){yr=this},t.prototype.off=function(){yr=this.parent},t.prototype.stop=function(t){if(this.active){var e=void 0,r=void 0;for(e=0,r=this.effects.length;e1)return r&&u(e)?e.call(n):e;En('injection "'.concat(String(t),'" not found.'))}else En("inject() can only be used inside setup() or functional components.")},h:function(t,e,r){return ft||En("globally imported h() can only be invoked when there is an active component instance, e.g. synchronously in a component's render or setup function."),de(ft,t,e,r,2,!0)},getCurrentInstance:function(){return ft&&{proxy:ft}},useSlots:function(){return Ue().slots},useAttrs:function(){return Ue().attrs},useListeners:function(){return Ue().listeners},mergeDefaults:function(t,e){var r=n(t)?t.reduce((function(t,e){return t[e]={},t}),{}):t;for(var i in e){var o=r[i];o?n(o)||u(o)?r[i]={type:o,default:e[i]}:o.default=e[i]:null===o?r[i]={default:e[i]}:En('props default key "'.concat(i,'" has no corresponding declaration.'))}return r},nextTick:Br,set:Ht,del:Jt,useCssModule:function(e){return En("useCssModule() is not supported in the global build."),t},useCssVars:function(t){if(W){var e=ft;e?gr((function(){var r=e.$el,n=t(e,e._setupProxy);if(r&&1===r.nodeType){var i=r.style;for(var o in n)i.setProperty("--".concat(o),n[o])}})):En("useCssVars is called without current active component instance.")}},defineAsyncComponent:function(t){u(t)&&(t={loader:t});var e=t.loader,r=t.loadingComponent,n=t.errorComponent,i=t.delay,o=void 0===i?200:i,a=t.timeout,s=t.suspensible,l=void 0!==s&&s,f=t.onError;l&&En("The suspensiblbe option for async components is not supported in Vue2. It is ignored.");var h=null,p=0,d=function(){var t;return h||(t=h=e().catch((function(t){if(t=t instanceof Error?t:new Error(String(t)),f)return new Promise((function(e,r){f(t,(function(){return e((p++,h=null,d()))}),(function(){return r(t)}),p+1)}));throw t})).then((function(e){if(t!==h&&h)return h;if(e||En("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."),e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),e&&!c(e)&&!u(e))throw new Error("Invalid async component load result: ".concat(e));return e})))};return function(){return{component:d(),delay:o,timeout:a,error:n,loading:r}}},onBeforeMount:Nr,onMounted:Lr,onBeforeUpdate:Ur,onUpdated:$r,onBeforeUnmount:zr,onUnmounted:qr,onActivated:Hr,onDeactivated:Jr,onServerPrefetch:Vr,onRenderTracked:Xr,onRenderTriggered:Gr,onErrorCaptured:function(t,e){void 0===e&&(e=ft),Wr(t,e)}}),Yr=new ct;function Zr(t){return function t(e,r){var i,o,a=n(e);if(!(!a&&!c(e)||e.__v_skip||Object.isFrozen(e)||e instanceof dt)){if(e.__ob__){var s=e.__ob__.dep.id;if(r.has(s))return;r.add(s)}if(a)for(i=e.length;i--;)t(e[i],r);else if(Qt(e))t(e.value,r);else for(o=Object.keys(e),i=o.length;i--;)t(e[o[i]],r)}}(t,Yr),Yr.clear(),t}var Qr=0,tn=function(){function t(t,e,r,n,i){!function(t,e){void 0===e&&(e=yr),e&&e.active&&e.effects.push(t)}(this,yr&&!yr._vm?yr:t?t._scope:void 0),(this.vm=t)&&i&&(t._watcher=this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before,this.onTrack=n.onTrack,this.onTrigger=n.onTrigger):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++Qr,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ct,this.newDepIds=new ct,this.expression=e.toString(),u(e)?this.getter=e:(this.getter=function(t){if(!X.test(t)){var e=t.split(".");return function(t){for(var r=0;r";var r=u(t)&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t,n=mn(r),i=r.__file;if(!n&&i){var o=i.match(/([^/\\]+)\.vue$/);n=o&&o[1]}return(n?"<".concat(function(t){return t.replace(An,(function(t){return t.toUpperCase()})).replace(/[-_]/g,"")}(n),">"):"")+(i&&!1!==e?" at ".concat(i):"")},xn=function(t){if(t._isVue&&t.$parent){for(var e=[],r=0;t;){if(e.length>0){var i=e[e.length-1];if(i.constructor===t.constructor){r++,t=t.$parent;continue}r>0&&(e[e.length-1]=[i,r],r=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map((function(t,e){return"".concat(0===e?"---\x3e ":function(t,e){for(var r="";e;)e%2==1&&(r+=t),e>1&&(t+=t),e>>=1;return r}(" ",5+2*e)).concat(n(t)?"".concat(_n(t[0]),"... (").concat(t[1]," recursive calls)"):_n(t))})).join("\n")}return"\n\n(found in ".concat(_n(t),")")};var kn=q.optionMergeStrategies;function Dn(t,e,r){if(void 0===r&&(r=!0),!e)return t;for(var n,i,o,a=lt?Reflect.ownKeys(e):Object.keys(e),s=0;s-1)if(a&&!E(o,"default"))s=!1;else if(""===s||s===O(t)){var h=qn(String,o.type);(h<0||l-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!p(t)&&t.test(e)}function Yn(t,e){var r=t.cache,n=t.keys,i=t._vnode;for(var o in r){var a=r[o];if(a){var s=a.name;s&&!e(s)&&Zn(r,o,n,i)}}}function Zn(t,e,r,n){var i=t[e];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),t[e]=null,x(r,e)}!function(e){e.prototype._init=function(e){var r,n,i=this;i._uid=fn++,q.performance&&Nt&&(r="vue-perf-start:".concat(i._uid),n="vue-perf-end:".concat(i._uid),Nt(r)),i._isVue=!0,i.__v_skip=!0,i._scope=new xr(!0),i._scope._vm=!0,e&&e._isComponent?function(t,e){var r=t.$options=Object.create(t.constructor.options),n=e._parentVnode;r.parent=e.parent,r._parentVnode=n;var i=n.componentOptions;r.propsData=i.propsData,r._parentListeners=i.listeners,r._renderChildren=i.children,r._componentTag=i.tag,e.render&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns)}(i,e):i.$options=Rn(hn(i.constructor),e||{},i),pt(i),i._self=i,function(t){var e=t.$options,r=e.parent;if(r&&!e.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(t)}t.$parent=r,t.$root=r?r.$root:t,t.$children=[],t.$refs={},t._provided=r?r._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(i),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ge(t,e)}(i),function(e){e._vnode=null,e._staticTrees=null;var r=e.$options,n=e.$vnode=r._parentVnode,i=n&&n.context;e.$slots=Te(r._renderChildren,i),e.$scopedSlots=n?Ie(e.$parent,n.data.scopedSlots,e.$slots):t,e._c=function(t,r,n,i){return de(e,t,r,n,i,!1)},e.$createElement=function(t,r,n,i){return de(e,t,r,n,i,!0)};var o=n&&n.data;qt(e,"$attrs",o&&o.attrs||t,(function(){!Ke&&En("$attrs is readonly.",e)}),!0),qt(e,"$listeners",r._parentListeners||t,(function(){!Ke&&En("$listeners is readonly.",e)}),!0)}(i),tr(i,"beforeCreate",void 0,!1),function(t){var e=ln(t.$options.inject,t);e&&(Mt(!1),Object.keys(e).forEach((function(r){qt(t,r,e[r],(function(){En("Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. "+'injection being mutated: "'.concat(r,'"'),t)}))})),Mt(!0))}(i),nn(i),function(t){var e=t.$options.provide;if(e){var r=u(e)?e.call(t):e;if(!c(r))return;for(var n=_r(t),i=lt?Reflect.ownKeys(r):Object.keys(r),o=0;o1?F(n):n;for(var i=F(arguments,1),o='event handler for "'.concat(t,'"'),a=0,s=n.length;aparseInt(this.max)&&Zn(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Zn(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){Yn(t,(function(t){return Kn(e,t)}))})),this.$watch("exclude",(function(e){Yn(t,(function(t){return!Kn(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=He(t),r=e&&e.componentOptions;if(r){var n=Wn(r),i=this.include,o=this.exclude;if(i&&(!n||!Kn(i,n))||o&&n&&Kn(o,n))return e;var a=this.cache,s=this.keys,u=null==e.key?r.Ctor.cid+(r.tag?"::".concat(r.tag):""):e.key;a[u]?(e.componentInstance=a[u].componentInstance,x(s,u),s.push(u)):(this.vnodeToCache=e,this.keyToCache=u),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return q},set:function(){En("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(t,"config",e),t.util={warn:En,extend:j,mergeOptions:Rn,defineReactive:qt},t.set=Ht,t.delete=Jt,t.nextTick=Br,t.observable=function(t){return zt(t),t},t.options=Object.create(null),$.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,j(t.options.components,ti),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var r=F(arguments,1);return r.unshift(this),u(t.install)?t.install.apply(t,r):u(t)&&t.apply(null,r),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Rn(this.options,t),this}}(t),Gn(t),function(t){$.forEach((function(e){t[e]=function(t,r){return r?("component"===e&&In(t),"component"===e&&h(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===e&&u(r)&&(r={bind:r,update:r}),this.options[e+"s"][t]=r,r):this.options[e+"s"][t]}}))}(t)}(Xn),Object.defineProperty(Xn.prototype,"$isServer",{get:at}),Object.defineProperty(Xn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Xn,"FunctionalRenderContext",{value:pn}),Xn.version="2.7.14";var ei=y("style,class"),ri=y("input,textarea,option,select,progress"),ni=function(t,e,r){return"value"===r&&ri(t)&&"button"!==e||"selected"===r&&"option"===t||"checked"===r&&"input"===t||"muted"===r&&"video"===t},ii=y("contenteditable,draggable,spellcheck"),oi=y("events,caret,typing,plaintext-only"),ai=y("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),si="http://www.w3.org/1999/xlink",ui=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},ci=function(t){return ui(t)?t.slice(6,t.length):""},li=function(t){return null==t||!1===t};function fi(t){for(var e=t.data,r=t,n=t;o(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(e=hi(n.data,e));for(;o(r=r.parent);)r&&r.data&&(e=hi(e,r.data));return i=e.staticClass,a=e.class,o(i)||o(a)?pi(i,di(a)):"";var i,a}function hi(t,e){return{staticClass:pi(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function pi(t,e){return t?e?t+" "+e:t:e||""}function di(t){return Array.isArray(t)?function(t){for(var e,r="",n=0,i=t.length;n-1?Ui(t,e,r):ai(e)?li(r)?t.removeAttribute(e):(r="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,r)):ii(e)?t.setAttribute(e,function(t,e){return li(e)||"false"===e?"false":"contenteditable"===t&&oi(e)?e:"true"}(e,r)):ui(e)?li(r)?t.removeAttributeNS(si,ci(e)):t.setAttributeNS(si,e,r):Ui(t,e,r)}function Ui(t,e,r){if(li(r))t.removeAttribute(e);else{if(Y&&!Z&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==r&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,r)}}var $i={create:Ni,update:Ni};function zi(t,e){var r=e.elm,n=e.data,a=t.data;if(!(i(n.staticClass)&&i(n.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=fi(e),u=r._transitionClasses;o(u)&&(s=pi(s,di(u))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var qi,Hi,Ji,Vi,Xi,Gi,Wi,Ki,Yi={create:zi,update:zi},Zi=/[\w).+\-_$\]]/;function Qi(t){var e,r,n,i,o,a=!1,s=!1,u=!1,c=!1,l=0,f=0,h=0,p=0;for(n=0;n=0&&" "===(v=t.charAt(d));d--);v&&Zi.test(v)||(c=!0)}}else void 0===i?(p=n+1,i=t.slice(0,n).trim()):m();function m(){(o||(o=[])).push(t.slice(p,n).trim()),p=n+1}if(void 0===i?i=t.slice(0,n).trim():0!==p&&m(),o)for(n=0;n-1?{exp:t.slice(0,Vi),key:'"'+t.slice(Vi+1)+'"'}:{exp:t,key:null};for(Hi=t,Vi=Xi=Gi=0;!yo();)bo(Ji=go())?xo(Ji):91===Ji&&wo(Ji);return{exp:t.slice(0,Xi),key:t.slice(Xi+1,Gi)}}(t);return null===r.key?"".concat(t,"=").concat(e):"$set(".concat(r.exp,", ").concat(r.key,", ").concat(e,")")}function go(){return Hi.charCodeAt(++Vi)}function yo(){return Vi>=qi}function bo(t){return 34===t||39===t}function wo(t){var e=1;for(Xi=Vi;!yo();)if(bo(t=go()))xo(t);else if(91===t&&e++,93===t&&e--,0===e){Gi=Vi;break}}function xo(t){for(var e=t;!yo()&&(t=go())!==e;);}function _o(t,e,r){var n=Ki;return function i(){var o=e.apply(null,arguments);null!==o&&Co(t,i,r,n)}}var Eo=Dr&&!(rt&&Number(rt[1])<=53);function So(t,e,r,n){if(Eo){var i=ur,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Ki.addEventListener(t,e,it?{capture:r,passive:n}:r)}function Co(t,e,r,n){(n||Ki).removeEventListener(t,e._wrapper||e,r)}function Ao(t,e){if(!i(t.data.on)||!i(e.data.on)){var r=e.data.on||{},n=t.data.on||{};Ki=e.elm||t.elm,function(t){if(o(t.__r)){var e=Y?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(r),ce(r,n,So,Co,_o,e.context),Ki=void 0}}var ko,Do={create:Ao,update:Ao,destroy:function(t){return Ao(t,ki)}};function Oo(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var r,n,s=e.elm,u=t.data.domProps||{},c=e.data.domProps||{};for(r in(o(c.__ob__)||a(c._v_attr_proxy))&&(c=e.data.domProps=j({},c)),u)r in c||(s[r]="");for(r in c){if(n=c[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),n===u[r])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===r&&"PROGRESS"!==s.tagName){s._value=n;var l=i(n)?"":String(n);To(s,l)&&(s.value=l)}else if("innerHTML"===r&&gi(s.tagName)&&i(s.innerHTML)){(ko=ko||document.createElement("div")).innerHTML="".concat(n,"");for(var f=ko.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;f.firstChild;)s.appendChild(f.firstChild)}else if(n!==u[r])try{s[r]=n}catch(t){}}}}function To(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var r=!0;try{r=document.activeElement!==t}catch(t){}return r&&t.value!==e}(t,e)||function(t,e){var r=t.value,n=t._vModifiers;if(o(n)){if(n.number)return g(r)!==g(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}(t,e))}var Fo={create:Oo,update:Oo},jo=S((function(t){var e={},r=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function Io(t){var e=Po(t.style);return t.staticStyle?j(t.staticStyle,e):e}function Po(t){return Array.isArray(t)?I(t):"string"==typeof t?jo(t):t}var Ro,Bo=/^--/,Mo=/\s*!important$/,No=function(t,e,r){if(Bo.test(e))t.style.setProperty(e,r);else if(Mo.test(r))t.style.setProperty(O(e),r.replace(Mo,""),"important");else{var n=Uo(e);if(Array.isArray(r))for(var i=0,o=r.length;i-1?e.split(qo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var r=" ".concat(t.getAttribute("class")||""," ");r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function Jo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(qo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var r=" ".concat(t.getAttribute("class")||""," "),n=" "+e+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?t.setAttribute("class",r):t.removeAttribute("class")}}function Vo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&j(e,Xo(t.name||"v")),j(e,t),e}return"string"==typeof t?Xo(t):void 0}}var Xo=S((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),Go=W&&!Z,Wo="transition",Ko="transitionend",Yo="animation",Zo="animationend";Go&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Wo="WebkitTransition",Ko="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Yo="WebkitAnimation",Zo="webkitAnimationEnd"));var Qo=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function ta(t){Qo((function(){Qo(t)}))}function ea(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),Ho(t,e))}function ra(t,e){t._transitionClasses&&x(t._transitionClasses,e),Jo(t,e)}function na(t,e,r){var n=oa(t,e),i=n.type,o=n.timeout,a=n.propCount;if(!i)return r();var s="transition"===i?Ko:Zo,u=0,c=function(){t.removeEventListener(s,l),r()},l=function(e){e.target===t&&++u>=a&&c()};setTimeout((function(){u0&&(r="transition",l=a,f=o.length):"animation"===e?c>0&&(r="animation",l=c,f=u.length):f=(r=(l=Math.max(a,c))>0?a>c?"transition":"animation":null)?"transition"===r?o.length:u.length:0,{type:r,timeout:l,propCount:f,hasTransform:"transition"===r&&ia.test(n[Wo+"Property"])}}function aa(t,e){for(;t.length explicit ".concat(e," duration is not a valid number - ")+"got ".concat(JSON.stringify(t),"."),r.context):isNaN(t)&&En(" explicit ".concat(e," duration is NaN - ")+"the duration expression might be incorrect.",r.context)}function fa(t){return"number"==typeof t&&!isNaN(t)}function ha(t){if(i(t))return!1;var e=t.fns;return o(e)?ha(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function pa(t,e){!0!==e.data.show&&ua(e)}var da=function(t){var e,r,u={},c=t.modules,l=t.nodeOps;for(e=0;e - did you register the component correctly? For recursive components, make sure to provide the "name" option.',t.context),t.elm=t.ns?l.createElementNS(t.ns,v):l.createElement(v,t),_(t),b(t,p,e),o(f)&&x(t,e),g(r,t.elm,n),f&&f.pre&&d--):a(t.isComment)?(t.elm=l.createComment(t.text),g(r,t.elm,n)):(t.elm=l.createTextNode(t.text),g(r,t.elm,n))}}function m(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,w(t)?(x(t,e),_(t)):(Ci(t),e.push(t))}function g(t,e,r){o(t)&&(o(r)?l.parentNode(r)===t&&l.insertBefore(t,e,r):l.appendChild(t,e))}function b(t,e,r){if(n(e)){k(e);for(var i=0;ip?E(t,i(r[g+1])?null:r[g+1].elm,r,h,g,n):h>g&&C(e,f,p)}(f,d,m,r,c):o(m)?(k(m),o(t.text)&&l.setTextContent(f,""),E(f,null,m,0,m.length-1,r)):o(d)?C(d,0,d.length-1):o(t.text)&&l.setTextContent(f,""):t.text!==e.text&&l.setTextContent(f,e.text),o(p)&&o(h=p.hook)&&o(h=h.postpatch)&&h(t,e)}}}function T(t,e,r){if(a(r)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var n=0;n, or missing . Bailing hydration and performing full client-side render.")}s=t,t=new dt(l.tagName(s).toLowerCase(),{},[],void 0,s)}var p=t.elm,d=l.parentNode(p);if(v(e,f,p._leaveCb?null:d,l.nextSibling(p)),o(e.parent))for(var m=e.parent,g=w(e);m;){for(var y=0;y-1,a.selected!==o&&(a.selected=o);else if(M(ba(a),n))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}else En('