@awes-io/ui 2.32.5 → 2.34.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +49 -0
- package/assets/css/components/_index.css +2 -0
- package/assets/css/components/tel.css +49 -0
- package/assets/css/components/text-field.css +3 -79
- package/components/1_atoms/AwInput.vue +23 -2
- package/components/3_organisms/AwIslandAvatar.vue +1 -1
- package/components/3_organisms/AwMoney.vue +3 -0
- package/components/3_organisms/AwTel.vue +308 -43
- package/components/_config.js +7 -1
- package/dist/css/aw-icons.css +168 -0
- package/dist/css/ui.css +1 -0
- package/dist/fonts/aw-icons.svg +159 -0
- package/dist/fonts/aw-icons.ttf +0 -0
- package/dist/fonts/aw-icons.woff +0 -0
- package/dist/fonts/aw-icons.woff2 +0 -0
- package/dist/js/ui.esm.js +20 -0
- package/dist/js/ui.min.js +20 -0
- package/dist/js/ui.ssr.js +24996 -0
- package/mixins/arrow-focus.js +65 -4
- package/mixins/text-field.js +61 -31
- package/nuxt/icons.css +168 -0
- package/package.json +6 -5
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* © Awescode GmbH :: @awes-io/ui
|
|
3
|
+
*
|
|
4
|
+
* Generated: 2021-11-22 10:19:32
|
|
5
|
+
*
|
|
6
|
+
* Version: 1.71.0
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
var AwesUi=function(e){"use strict";function t(e){const t=typeof e,n=e&&e.toString?e.toString():"";return null===e?"Null":void 0===e?"Undefined":"boolean"===t?"Boolean":"number"===t?Number.isNaN(e)?"NaN":"Number":"string"===t?"String":Array.isArray(e)?"Array":e instanceof RegExp?"RegExp":["true","false"].includes(n)?"Boolean":Number.isNaN(Number(n))?n.startsWith("async")?"Async":"[object Promise]"===n?"Promise":"function"===t?"Function":e instanceof String?"String":"Object":"Number"}const n=/^\./,r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=/^\[object .+?Constructor\]$/,o="object"==typeof global&&global&&global.Object===Object&&global,a="object"==typeof self&&self&&self.Object===Object&&self,l=o||a||Function("return this")();const c=Array.prototype,u=Function.prototype,d=Object.prototype,p=l["__core-js_shared__"],h=function(){const e=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),f=u.toString,{hasOwnProperty:m}=d,v=d.toString,g=RegExp("^"+f.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),{Symbol:y}=l,{splice:_}=c,b=N(l,"Map"),w=N(Object,"create"),x=y?y.prototype:void 0,C=x?x.toString:void 0;function k(e){let t=-1,n=e?e.length:0;for(this.clear();++t<n;){const n=e[t];this.set(n[0],n[1])}}function A(e){let t=-1;const n=e?e.length:0;for(this.clear();++t<n;){const n=e[t];this.set(n[0],n[1])}}function $(e){let t=-1;const n=e?e.length:0;for(this.clear();++t<n;){const n=e[t];this.set(n[0],n[1])}}function S(e,t){let{length:n}=e;for(;n--;)if((r=e[n][0])===(i=t)||r!=r&&i!=i)return n;var r,i;return-1}function O(e){if(!j(e)||(t=e,Boolean(h)&&h in t))return!1;var t;return(function(e){const t=j(e)?v.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){let t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=Boolean(String(e))}catch(e){}return t}(e)?g:s).test(function(e){if(null!=e){try{return f.call(e)}catch(e){}try{return String(e)}catch(e){}}return""}(e))}function E(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return Boolean(e)&&"object"==typeof e}(e)&&"[object Symbol]"==v.call(e)}(e))return C?C.call(e):"";const t=String(e);return"0"==t&&1/e==-1/0?"-0":t}function D(e,t){const n=e.__data__;return function(e){const t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function N(e,t){const n=function(e,t){return null==e?void 0:e[t]}(e,t);return O(n)?n:void 0}k.prototype.clear=function(){this.__data__=w?w(null):{}},k.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},k.prototype.get=function(e){const t=this.__data__;if(w){const n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return m.call(t,e)?t[e]:void 0},k.prototype.has=function(e){const t=this.__data__;return w?void 0!==t[e]:m.call(t,e)},k.prototype.set=function(e,t){return this.__data__[e]=w&&void 0===t?"__lodash_hash_undefined__":t,this},A.prototype.clear=function(){this.__data__=[]},A.prototype.delete=function(e){const t=this.__data__,n=S(t,e);return!(n<0)&&(n==t.length-1?t.pop():_.call(t,n,1),!0)},A.prototype.get=function(e){const t=this.__data__,n=S(t,e);return n<0?void 0:t[n][1]},A.prototype.has=function(e){return S(this.__data__,e)>-1},A.prototype.set=function(e,t){const n=this.__data__,r=S(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},$.prototype.clear=function(){this.__data__={hash:new k,map:new(b||A),string:new k}},$.prototype.delete=function(e){return D(this,e).delete(e)},$.prototype.get=function(e){return D(this,e).get(e)},$.prototype.has=function(e){return D(this,e).has(e)},$.prototype.set=function(e,t){return D(this,e).set(e,t),this};T(e=>{var t;e=null==(t=e)?"":E(t);const s=[];return n.test(e)&&s.push(""),e.replace(r,(e,t,n,r)=>{s.push(n?r.replace(i,"$1"):t||e)}),s});function T(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){const r=arguments,i=t?t.apply(this,r):r[0],{cache:s}=n;if(s.has(i))return s.get(i);const o=e.apply(this,r);return n.cache=s.set(i,o),o};return n.cache=new(T.Cache||$),n}function j(e){const t=typeof e;return Boolean(e)&&("object"==t||"function"==t)}function L(e){const t=e.__proto__.toString();return["Error","TypeError"].includes(t)?[t,e.message]:[]}function P(e){return e.toDateString?[!0,e.getTime()]:[!1]}function F(e){return e.constructor!==RegExp?[!1]:[!0,e.toString()]}function M(e,n){if(1===arguments.length)return t=>M(e,t);const r=t(e);if(r!==t(n))return!1;if(["NaN","Undefined","Null"].includes(r))return!0;if(["Boolean","Number","String"].includes(r))return e.toString()===n.toString();if("Array"===r){const t=Array.from(e),r=Array.from(n);if(t.toString()!==r.toString())return!1;let i=!0;return t.forEach((e,t)=>{i&&(e===r[t]||M(e,r[t])||(i=!1))}),i}const i=F(e),s=F(n);if(i[0])return!!s[0]&&i[1]===s[1];if(s[0])return!1;const o=P(e),a=P(n);if(o[0])return!!a[0]&&o[1]===a[1];if(a[0])return!1;const l=L(e),c=L(n);if(l[0])return!!c[0]&&(l[0]===c[0]&&l[1]===c[1]);if("Object"===r){const t=Object.keys(e);if(t.length!==Object.keys(n).length)return!1;let r=!0;return t.forEach(t=>{if(r){const i=e[t],s=n[t];i===s||M(i,s)||(r=!1)}}),r}return!1}function I(...e){if(0===e.length)throw new Error("compose requires at least one argument");return(...t)=>{const n=e.slice();if(n.length>0){let e=n.pop()(...t);for(;n.length>0;)e=n.pop()(e);return e}}}function B(e,t,n){let r=-1,{length:i}=e;(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;const s=Array(i);for(;++r<i;)s[r]=e[r+t];return s}function R(e,t){const n={};for(const r in t)e(t[r],r,t)&&(n[r]=t[r]);return n}function V(e,t){if(1===arguments.length)return t=>V(e,t);if(null==t)return[];if(!Array.isArray(t))return R(e,t);let n=-1,r=0;const i=t.length,s=[];for(;++n<i;){const i=t[n];e(i,n)&&(s[r++]=i)}return s}function z(e,t){if(1===arguments.length)return t=>z(e,t);if(null==t)return;const n="string"==typeof e?e.split(","):e,r={};let i=0;for(;i<n.length;)n[i]in t&&(r[n[i]]=t[n[i]]),i++;return r}function q(e,t){if(1===arguments.length)return t=>q(e,t);if(null==t)return;let n=t,r=0;const i="string"==typeof e?e.split("."):e;for(;r<i.length;){if(null==n)return;n=n[i[r]],r++}return n}function H(e,t){if(1===arguments.length)return t=>H(e,t);let n=0;for(;n<t.length;){if(e(t[n],n))return!0;n++}return!1}function U(e,t){if(1===arguments.length)return t=>U(e,t);if(Number.isNaN(Number(e))||Number.isNaN(Number(t)))throw new TypeError("Both arguments to range must be numbers");if(t<e)return[];const n=t-e,r=Array(n);for(let t=0;t<n;t++)r[t]=e+t;return r}T.Cache=$;U(65,90),U(97,122),U(49,57);function W(e,t){if(1===arguments.length)return t=>W(e,t);if("string"==typeof t)return t.includes(e);if(!Array.isArray(t))return!1;let n=-1;for(;++n<t.length;)if(M(t[n],e))return!0;return!1}function Y(e,t){if(1===arguments.length)return t=>Y(e,t);if("string"==typeof e)throw new TypeError(`‘test’ requires a value of type RegExp as its first argument; received "${e}"`);return-1!==t.search(e)}function Z(e,t){if(1===arguments.length)return t=>Z(e,t);for(let n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0}function K(e){const t=e.prototype,n=[Number,String,Boolean,Promise];let r=!1,i=-1;for(;++i<n.length&&!r;)t===n[i].prototype&&(r=!0);return r}function X(e){const t=e.prototype,n=[Number,String,Boolean,Promise];let r,i=-1;for(;++i<n.length;)t===n[i].prototype&&(r=i);return["Number","String","Boolean","Promise"][r]}const G=["any","promise","async","function"];function J(e,n){const r=e[n],i=t(r),{rule:s,parsed:o}=function(e){return Array.isArray(e)||null==e||void 0===e.prototype||G.includes(e)?{rule:e,parsed:!1}:String.prototype===e.prototype?{rule:"string",parsed:!0}:Boolean.prototype===e.prototype?{rule:"boolean",parsed:!0}:Number.prototype===e.prototype?{rule:"number",parsed:!0}:{rule:t(e.prototype).toLowerCase(),parsed:!0}}(r);return{rule:s,ruleType:o?"String":i}}function Q(e,n){return 1===arguments.length?t=>Q(e,t):t(n)===e}function ee(e,t){const n={};for(const r in t)n[r]=e(t[r],r,t);return n}function te(e,t){if(1===arguments.length)return t=>te(e,t);if(void 0===t)return[];if(!Array.isArray(t))return ee(e,t);let n=-1;const r=t.length,i=Array(r);for(;++n<r;)i[n]=e(t[n],n);return i}function ne(e,t){return 1===arguments.length?t=>ne(e,t):e<0?t.slice():"string"==typeof t?t.slice(0,e):B(t,0,e)}function re(e,n){if(1===arguments.length)return t=>re(e,t);const r=JSON.parse(JSON.stringify(e));return Object.keys(n).forEach(i=>{"Object"===t(n[i])&&"Object"===t(e[i])?r[i]=re(e[i],n[i]):r[i]=n[i]}),r}function ie(e,t=[]){return(...n)=>{return(r=[...t,...n]).length>=e.length?e(...r):ie(e,r);var r}}function se(e,t){if(1===arguments.length)return t=>se(e,t);if(null==t)return;const n="string"==typeof e?e.split(","):e,r={};for(const e in t)n.includes(e)||(r[e]=t[e]);return r}function oe(){return!1}function ae(e){return t=>{let n=0;for(;n<e.length;){if(e[n](t))return!0;n++}return!1}}function le(e){const t=Array.isArray(e)?Array(e.length):{};if(e&&e.getTime)return new Date(e.getTime());for(const n in e){const r=e[n];t[n]="object"==typeof r&&null!==r?r.getTime?new Date(r.getTime()):le(r):r}return t}function ce(e){return null==e||!0===Number.isNaN(e)}function ue(e,t){return 1===arguments.length?t=>ue(e,t):null!=t&&t.constructor===e||t instanceof e}function de(e){const n=t(e);return!["Undefined","NaN","Number","Null"].includes(n)&&(!e||("Object"===n?0===Object.keys(e).length:"Array"===n&&0===e.length))}function pe(e){return null==e}function he(e,t){return 1===arguments.length?t=>he(e,t):t.join(e)}function fe(e){return Object.keys(e)}function me(e){return!e}const ve=ie((function(e,t,n){return function e(t,...n){if(1===arguments.length)return n=>e(t,n);if(2===arguments.length)return ce(n[0])?t:n[0];const r=n.length-1;let i,s=r+1,o=!1;for(;!o;){const e=n[r-s+1];0===s?o=!0:ce(e)?s-=1:(i=e,o=!0)}return void 0===i?t:i}(e,q(t,n))}));const ge=ie((function(e,t,n){return n.reduce(e,t)}));ge((function e(t,n){return 1===arguments.length?n=>e(t,n):t*n}),1);const ye=ie((function(e,t,n){return n.slice(e,t)}));function _e(e,t){return 1===arguments.length?t=>_e(e,t):t.split(e)}function be(e,t){return 1===arguments.length?t=>be(e,t):t.startsWith(e)}function we(e,t){if(1===arguments.length)return t=>we(e,t);const n=t.length;if(e<0)return t.slice();let r=e>n?n:e;return"string"==typeof t?t.slice(n-r):(r=n-r,B(t,r,n))}function xe(e){return Object.entries(e)}const Ce=["$awesConfig"];function ke(e,t,n){return ve(ve(n,["$options","_config",t],e),[Ce,q("$options.name",e),t],e)}function Ae(e){return n=>{const r=function e({input:n,schema:r}){if(void 0===n||void 0===r)return!1;let i=!0;const s=e=>{e||(i=!1)};for(const a in r)if(i){const l=a.endsWith("?"),c=l?"string"==typeof(o=a)?o.slice(0,-1):o.length?B(o,0,-1):[]:a,{rule:u,ruleType:d}=J(r,a),p=n[c],h=t(n[c]);if(!(l&&void 0!==p||!l)||"any"===u&&null!=p||u===p)continue;if("Object"===d){s(e({input:p,schema:u}))}else if("String"===d)s(h.toLowerCase()===u);else if("function"==typeof u)s(u(p));else if("Array"===d&&"String"===h)s(W(p,u));else if("Array"===d&&1===u.length&&"Array"===h){const[n]=u,r=t(n);if(s("String"===r||"Object"===r||K(n)),"Object"===r&&i){s(Z(t=>e({input:t,schema:n}),p))}else if(i){const e="String"===r?n:X(n);s(!H(n=>t(n).toLowerCase()!==e.toLowerCase(),p))}}else s("RegExp"===d&&"String"===h&&Y(u,p))}var o;return i}({input:{input:n},schema:{input:e}});return r||console.error("Expected: ",JSON.stringify(e)),r}}var $e={name:"AwAccordionFold",props:{show:{type:Boolean,default:!1},tag:{type:String,default:"div"}},methods:{setMaxHeight(e){const t=e.scrollHeight;this.$el.style.maxHeight=`${t}px`},removeMaxHeight(){this.$el.style.maxHeight=null}}};function Se(e,t,n,r,i,s,o,a,l,c){"boolean"!=typeof o&&(l=a,a=o,o=!1);const u="function"==typeof n?n.options:n;let d;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),r&&(u._scopeId=r),s?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=d):t&&(d=o?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),d)if(u.functional){const e=u.render;u.render=function(t,n){return d.call(n),e(t,n)}}else{const e=u.beforeCreate;u.beforeCreate=e?[].concat(e,d):[d]}return n}"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());const Oe=Se({render:function(){var e=this.$createElement,t=this._self._c||e;return t("transition",{attrs:{name:"collapse"},on:{enter:this.setMaxHeight,"after-enter":this.removeMaxHeight,leave:this.setMaxHeight,"after-leave":this.removeMaxHeight}},[t(this.tag,{directives:[{name:"show",rawName:"v-show",value:this.show,expression:"show"}],tag:"component",staticClass:"collapse"},[this._t("default")],2)],1)},staticRenderFns:[]},void 0,$e,void 0,!1,void 0,!1,void 0,void 0,void 0),Ee={baseClass:"aw-form",method:"post",setErrors(e){const t={};Object.keys(e).forEach(n=>{const r=this.$el[n];let i=e[n];Array.isArray(i)&&(i=i.join(" ")),r&&"function"==typeof r.setCustomValidity&&"function"==typeof Event?(r.setCustomValidity(i),r.dispatchEvent(new Event("invalid"))):t[n]=i}),de(t)||(this.errors=t)},submit(e){e.preventDefault(),this.errors=null;const t=setTimeout(()=>{this.loading=!0},200),n=e.target,r=n.method.toLowerCase(),i=new FormData(e.target);let s={url:n.action,method:r};return"get"===r?s.params=new URLSearchParams(i):s.data=i,this.$axios.request(s).then(e=>(this.$emit("sended",e),e)).catch(e=>{const t=ve({},"response.data.errors",e);if("function"==typeof this.setErrors&&this.setErrors(t),e.response)return this.$emit("error",e.response),e.response}).finally(()=>{clearTimeout(t),this.loading=!1})}},De={baseClass:"aw-text-field",sizes:["sm","md"]};const Ne=Se({render:function(){var e=this.$createElement;return(this._self._c||e)("i",{class:this.classes,attrs:{"aria-hidden":"true"}})},staticRenderFns:[]},void 0,{name:"AwIcon",_config:{baseClass:"aw-icon",size:"base"},props:{name:{type:String,required:!0},size:{type:String,default(){return ke(this,"size")}},className:{type:String,default(){return ke(this,"baseClass")}}},computed:{classes(){return[this.className,`${this.className}-${this.name}`,`text-${this.size}`]}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Te=Se({render:function(e,t){var n=t._c;return n("span",{staticClass:"inline-block align-middle rounded-full relative text-center text-surface",class:[t.data.staticClass,t.data.class,t.props.isColored?"":"bg-disabled"],style:[t.data.staticStyle,t.data.style,{"background-color":t.props.isColored?t.$options.getColor(t.props.name):"",width:t.props.size+"px",height:t.props.size+"px","min-width":t.props.size+"px","min-height":t.props.size+"px","font-size":t.props.size/100*3+"rem"}]},[t._t("default",[t.$options.getSrc(t.props.src)?n("img",{staticClass:"rounded-full min-h-full min-w-full",attrs:{height:t.props.size,src:t.props.src,alt:t.props.name||t.props.src}}):t._e()],null,Object.assign({},t.props,{initials:t.$options.getColor(t.props.name)})),t._v(" "),t.$options.getSrc(t.props.src)||"initials"!==t.props.type?t._e():n("span",{staticClass:"absolute top-1/2 left-1/2 uppercase",staticStyle:{transform:"translate(-50%, -50%)"}},[t._v(t._s(t.$options.getLetters(t.props.name)))]),t._v(" "),t._t("no-img",[t.$options.getSrc(t.props.src)||"no-img"!==t.props.type?t._e():n("AwIcon",{staticClass:"absolute text-surface top-1/2 left-1/2",staticStyle:{transform:"translate(-50%, -50%)"},attrs:{size:"",name:"user-solid"}})],null,Object.assign({},t.props,{initials:t.$options.getColor(t.props.name)}))],2)},staticRenderFns:[]},void 0,{name:"AwAvatar",components:{AwIcon:Ne},props:{src:{type:String,default:""},name:{type:String,default:""},size:{type:[Number,String],default:36,validator(e){const t=!Number.isNaN(1*e);return"development"!==process.env.NODE_ENV||t||console.error(`Incorrect size. Only numbers or strings as numbers allowed. Given value - ${e}`),t}},type:{type:String,default:"initials",validator:e=>["initials","empty","no-img"].includes(e)},isColored:{type:Boolean,default:!0}},getSrc:e=>e,getLetters:I(he(""),te(ne(1)),ne(2),_e(/[ -]/)),getColor(e){let t=0;const n=["#E0AB61","#E29D5D","#E68262","#E45284","#DF54BD","#DA61D9","#BF55CF","#AF57DB","#9C55D3","#834EE3","#634EE3","#594FCF","#6086E3","#66B9E4","#66C3D1","#66C7B9","#5CBC98","#9A6F66"];if(!e.length)return n[0];for(var r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t),t&=t;return t=(t%n.length+n.length)%n.length,n[t]}},void 0,!0,void 0,!1,void 0,void 0,void 0);const je=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.label?n("div",{staticClass:"opacity-50 text-xs"},[e._v(e._s(e.label))]):e._e(),e._v(" "),e._t("default",[e._v(e._s(e.text))])],2)},staticRenderFns:[]},void 0,{name:"AwInfo",props:{label:{type:String},text:{type:[String,Number],default:""}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Le=/^(https?:)?\/\//gm,Pe=/tel:|mailto:/gm;const Fe=Se({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("component",e._g(e._b({class:e.className},"component",e.componentProps,!1),e.$listeners),[e._t("default",[e._v(e._s(e.text))])],2)},staticRenderFns:[]},void 0,{name:"AwLink",_config:{routerComponent:"router-link",baseClass:"link"},props:{href:[String,Object],className:{type:String,default(){return ke(this,"baseClass")}},text:String,tag:String},computed:{componentProps(){if(!this.href)return{is:this.tag||"button",role:this.tag?"button":null,type:this.$attrs.type||"button"};if("string"==typeof this.href){if(this.href.match(Le))return{is:this.tag||"a",role:this.tag?"link":null,href:this.href,target:"_blank",rel:"nofollow"};if(this.href.match(Pe))return{is:this.tag||"a",role:this.tag?"link":null,href:this.href}}return{is:ke(this,"routerComponent"),to:this.href}}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function Me(e,t=[]){let n={};return t.forEach(t=>{var r;n[(r=t,r.replace(/[-_]([a-z])/g,e=>e[1].toUpperCase()))]=`${e}__${t}`}),n}const Ie=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("component",e._g(e._b({class:e.classes,attrs:{disabled:e.$attrs.disabled||e.loading},on:{mousedown:e._setPressed,mouseup:e._setPressed,touchstart:e._setPressed,touchend:e._setPressed}},"component",e.componentProps,!1),e.$listeners),[n("span",{class:e.elClasses.overlay}),e._v(" "),n("span",{class:[e.elClasses.content,e.elClasses.content+"_"+e.size,e.contentClass],attrs:{tabindex:"-1"}},[e.loading?n("AwSvgImage",{staticClass:"h-5 w-5 inline-block mr-1",attrs:{slot:"left",name:"spinner"},slot:"left"}):e._e(),e._v(" "),e.icon&&!e.loading?n("AwIcon",{staticClass:"flex-shrink-0",class:{"mr-1":"icon"!==e.theme&&e.text},attrs:{name:e.icon}}):e._e(),e._v(" "),n("span",{class:[{"sr-only":"icon"===e.theme&&e.icon},e.elClasses.text]},[e.loading?n("span",[e._v("\n "+e._s(e.loadingText)+"\n ")]):e._t("default",[e._v(e._s(e.text))])],2)],1)])},staticRenderFns:[]},void 0,{name:"AwButton",extends:Fe,_config:{routerComponent:"router-link",baseClass:"aw-button",size:"md",color:"success",theme:"solid"},props:{size:{type:String,default(){return this.$options._config.size}},color:{type:String,default(){return this.$options._config.color}},theme:{type:String,default(){return this.$options._config.theme}},icon:{type:String,default:""},loading:{type:[Boolean,String],default:!1},contentClass:{type:String,default:""},active:Boolean},data:()=>({isPressed:!1}),computed:{classes(){return[this.className,{"is-pressed":this.isPressed,"is-active":this.active,"is-loading":this.loading},`${this.className}_${this.size}`,`color-${this.color||"default"}`,this.theme&&`theme-${this.theme}`]},elClasses(){return Me(this.className,["content","overlay","text"])},loadingText(){return Q("String",this.loading)&&this.loading||this.$t("AwButton.loading")}},methods:{_setPressed(e){this.isPressed="mousedown"===e.type||"touchstart"===e.type},focus(){this.$el&&this.$el.focus()}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Be=Se({render:function(e,t){var n=t._c;return n("span",{staticClass:"aw-badge inline-flex items-center",class:[t.data.staticClass,t.data.class],style:[t.data.staticStyle,t.data.style]},[t._t("default"),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.props.hideIfEmpty||t.props.hideIfEmpty&&!!(1*t.props.text),expression:"\n !props.hideIfEmpty || (props.hideIfEmpty && !!(props.text * 1))\n "}],staticClass:"\n rounded-full py-1 px-2 mx-1 text-xs leading-none min-h-badge min-w-badge\n inline-flex items-center justify-center font-semibold font-body\n ",class:["bg-"+(t.props.color||"brand")]},[t._v("\n "+t._s(t.props.text)+"\n "),t.props.icon?n("AwIcon",{attrs:{name:t.props.icon,size:"xs"}}):t._e()],1)],2)},staticRenderFns:[]},void 0,{name:"AwBadge",props:{text:{type:[String,Number],default:""},icon:{type:String,default:""},color:{type:String,default:"brand"},hideIfEmpty:{type:Boolean,default:!1}}},void 0,!0,void 0,!1,void 0,void 0,void 0),Re=V(e=>!pe(e)&&""!==e);function Ve(e,t){return{...t,query:(n=e,r=t.query,Re(re(r,n)))};var n,r}function ze(e=""){if("string"!=typeof e)throw new TypeError("Path must be a string");const[t,n]=e.split("?");return t.replace(/\/$/,"")+(n?`?${n}`:"")}const qe=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.tag,{tag:"Component",staticClass:"aw-slider",on:{"!mousedown":function(t){return e._activate(t)},"!touchstart":function(t){return e._activate(t)},"!dragstart":function(t){return e._prevent(t)},"!focus":function(t){return e._onFocus(t)},scroll:e._prevent}},[n("span",{ref:"scroller",staticClass:"aw-slider__scroller",style:e.scrollStyle},[e._t("default")],2),e._v(" "),n("span",{staticClass:"aw-slider__shadow aw-slider__shadow_left",style:e.shadowLeftStyle,attrs:{"aria-hidden":"true"}}),e._v(" "),n("span",{staticClass:"aw-slider__shadow aw-slider__shadow_right",style:e.shadowRightStyle,attrs:{"aria-hidden":"true"}})])},staticRenderFns:[]},void 0,{name:"AwSlider",props:{tag:{type:String,default:"div"}},data:()=>({$event:null,active:!1,scrollStart:0,scrollLeft:0,scrollWidth:0,width:0}),computed:{_isTouch(){return"touchstart"===ve("","type",this.$event)},maxScrollLeft(){const e=this.scrollWidth-this.width;return e>1?e:0},scrollStyle(){return{transform:`translateX(-${this.scrollLeft}px)`,transition:this.active?"none":null}},shadowLeftStyle(){return{opacity:0===this.scrollLeft?"0":"1"}},shadowRightStyle(){return{opacity:this.scrollLeft===this.maxScrollLeft?"0":"1"}}},watch:{active:"_toggle"},mounted(){window.addEventListener("resize",this._onResize),this.$nextTick(()=>{this._setDimensions()})},beforeDestroy(){this._toggle(!1),clearTimeout(this._resizetm),window.removeEventListener("resize",this._onResize),this.$el.removeEventListener("click",this._prevent,!0)},methods:{_toggle(e){const t=e?"addEventListener":"removeEventListener",n=this._isTouch?"touchmove":"mousemove",r=this._isTouch?"touchend":"mouseup",i=this._isTouch?"touchcancel":"mouseleave";window[t](n,this._move),window[t](n,this._checkDragging),window[t](r,this._deactivate),window[t](i,this._deactivate)},_activate(e){this.active||(this._setDimensions(),this.scrollStart=this.scrollLeft,this.$event=z("type,timeStamp,pageX",e),this.$event.pageX=ve(e.pageX,"touches.0.pageX",e),this.active=!0)},_deactivate(){this.active=!1,this.$nextTick(()=>{this._snap(),setTimeout(()=>{this.$el.removeEventListener("click",this._prevent,!0)},10)})},_move(e){const t=ve(e.pageX,"touches.0.pageX",e),n=this.$event.pageX-t;this.scrollLeft=this._withBorders(this.scrollStart+n)},_checkDragging(e){const{pageX:t,timeStamp:n}=e,r=n-this.$event.timeStamp,i=this.$event.pageX-t;if(r>300||i>5){this.$el.addEventListener("click",this._prevent,!0);const e=this._isTouch?"touchmove":"mousemove";window.removeEventListener(e,this._checkDragging)}},_snap(){const e=this.$refs.scroller.childNodes,t=this.scrollLeft,n=this.width+this.scrollLeft;let r=0,i=1/0,s=1/0;for(let o=0,a=e.length;o<a;o++){let a=this._getFullWidth(e[o]),l=r-t,c=n-r-a;Math.abs(l)<Math.abs(i)&&(i=l),Math.abs(c)<Math.abs(s)&&(s=c),r+=a}Math.abs(i)<Math.abs(s)?this.scrollLeft=this._withBorders(this.scrollLeft+i):this.scrollLeft=this._withBorders(this.scrollLeft-s)},_setDimensions(){const e=this.$refs.scroller;this.width=e.offsetWidth,this.scrollWidth=Array.from(e.children).reduce((e,t)=>e+this._getFullWidth(t),0)},_withBorders(e){return e>this.maxScrollLeft?this.maxScrollLeft:e<0?0:e},scrollTo(e){try{const t=this.$refs.scroller.childNodes;let n=0;for(let r=0,i=t.length;r<i;r++){if(e===t[r]){this.scrollLeft=this._withBorders(n);break}n+=this._getFullWidth(t[r])}}catch(e){console.log(e)}},_getFullWidth(e){const t=e.scrollWidth,n=e.currentStyle||getComputedStyle(e);return t+(parseFloat(n.marginLeft)+parseFloat(n.marginRight))+(parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth))},_onResize(){clearTimeout(this._resizetm),this._resizetm=setTimeout(()=>{this._setDimensions(),this.scrollLeft=this._withBorders(this.scrollLeft),this.$emit("resized")},300)},_onFocus(e){const t=e.target,n=t.getBoundingClientRect(),r=this.$el.getBoundingClientRect();(r.left>n.left||r.right<n.right)&&(this._prevent(e),this.scrollTo(t))},_prevent:e=>(e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),!1)}},void 0,!1,void 0,!1,void 0,void 0,void 0);const He=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("AwSlider",{ref:"slider",class:e._cssClasses.base,on:{resized:function(t){return e.scrollToActive(!1)}}},[e._l(e.togglers,(function(t,r){var i,s,o,a,l=t.text,c=t.key,u=t.route,d=t.isActive,p=t.isDisabled,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(t,["text","key","route","isActive","isDisabled"]);return[e._t("default",[u?n("a",{key:c,class:[e._cssClasses.toggler,(i={},i[e._cssClasses.togglerActive]=d,i),(s={},s[e._cssClasses.togglerDisabled]=p,s)],attrs:{href:p?null:u.fullPath},on:{click:function(t){return t.preventDefault(),e.navigate(u)}}},[n("span",{attrs:{tabindex:"-1"}},[e._v("\n "+e._s(l)+"\n "),h.badge?n("AwBadge",e._b({},"AwBadge",h.badge,!1)):e._e()],1)]):n("button",{key:c,class:[e._cssClasses.toggler,(o={},o[e._cssClasses.togglerActive]=d,o),(a={},a[e._cssClasses.togglerDisabled]=p,a)],attrs:{disabled:p?"":null,type:"button"},on:{click:function(t){return t.preventDefault(),e.update(r)}}},[n("span",{attrs:{tabindex:"-1"}},[e._v("\n "+e._s(l)+"\n "),h.badge?n("AwBadge",e._b({},"AwBadge",h.badge,!1)):e._e()],1)])],null,Object.assign({},{text:l,key:c,route:u,isActive:d},h))]}))],2)},staticRenderFns:[]},void 0,{name:"AwTabNav",components:{AwSlider:qe,AwBadge:Be},_config:{baseClass:"aw-tab-nav"},props:{items:{type:Array,required:!0,validator:e=>e.every(e=>Q("String",e)||Ae({text:"string","href?":"any","badge?":"object"}))},active:{type:[Number,Array],default:0,validator:e=>Array.isArray(e)?!e.every(isNaN):!isNaN(e)}},computed:{_cssClasses(){const e=this.$options._config.baseClass;return{base:e,...Me(e,["toggler","toggler_active","toggler_disabled"])}},_currentPath(){return ze(this.$route.path)},_allParams(){return function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t];W(r,n)||n.push(r)}return n}(this.items.reduce((e,t)=>e.concat(fe(ve({},"href.query",t))),[]))},_resetParamsQuery(){return function(e){const t={};return e.forEach(([e,n])=>t[e]=n),t}(this._allParams.map(e=>[e,null]))},togglers(){return this.items.map((e,t)=>{const n=ve(e,"text",e),r=ve(!1,"disabled",e),i=ve(!1,"href",e),s=!!i&&this._normalizeRoute(i),o=i?this._isSameRoute(s):Array.isArray(this.active)?this.active.includes(t):t===this.active;return{...se("text,href",e),route:s,isActive:o,isDisabled:r,text:n,key:`${n}-${t}`}})}},mounted(){this.$nextTick(this.scrollToActive)},methods:{navigate(e){const t=this.togglers.find(t=>t.route===e);t&&!t.isActive&&this.$router.push({...e,query:Re({...this._isSamePath(e)?this.$route.query:{},...e.query})})},update(e){let t=e;Array.isArray(this.active)&&(t=this.active.includes(e)?this.active.filter(t=>t!==e):this.active.concat(e)),this.$emit("update:active",t)},scrollToActive(e=!0){const t=this.$el.querySelectorAll("."+this._cssClasses.togglerActive);(1===t.length||t.length>1&&e)&&this.$refs.slider.scrollTo(t[0])},_normalizeRoute(e){const t=this.$router.resolve(e).route;return{...t,query:{...this._resetParamsQuery,...Re(t.query)}}},_isSamePath(e){return ze(e.path)===this._currentPath},_isSameRoute(e){if(!this._isSamePath(e))return!1;return M({...this._resetParamsQuery,...z(this._allParams,this.$route.query)},e.query)}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Ue=le(He);Ue.name="AwButtonNav",Ue._config.baseClass="aw-button-nav";const We=Se({},void 0,Ue,void 0,void 0,void 0,!1,void 0,void 0,void 0);function Ye(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Ze(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function Ke(e){var t=Ze(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xe(e){return e instanceof Ze(e).Element}function Ge(e){return e instanceof Ze(e).HTMLElement}function Je(e){return e?(e.nodeName||"").toLowerCase():null}function Qe(e){return(Xe(e)?e.ownerDocument:e.document).documentElement}function et(e){return Ye(Qe(e)).left+Ke(e).scrollLeft}function tt(e,t,n){var r;void 0===n&&(n=!1);var i,s,o=Ye(e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return n||("body"!==Je(t)&&(a=(i=t)!==Ze(i)&&Ge(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:Ke(i)),Ge(t)?((l=Ye(t)).x+=t.clientLeft,l.y+=t.clientTop):(r=Qe(t))&&(l.x=et(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function nt(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function rt(e){return"html"===Je(e)?e:e.parentNode||e.host||document.ownerDocument||document.documentElement}function it(e){return Ze(e).getComputedStyle(e)}function st(e,t){void 0===t&&(t=[]);var n=function e(t){if(["html","body","#document"].indexOf(Je(t))>=0)return t.ownerDocument.body;if(Ge(t)){var n=it(t),r=n.overflow,i=n.overflowX,s=n.overflowY;if(/auto|scroll|overlay|hidden/.test(r+s+i))return t}return e(rt(t))}(e),r="body"===Je(n),i=r?Ze(n):n,s=t.concat(i);return r?s:s.concat(st(rt(i)))}function ot(e){return["table","td","th"].indexOf(Je(e))>=0}function at(e){var t;return!Ge(e)||!(t=e.offsetParent)||void 0!==window.InstallTrigger&&"fixed"===it(t).position?null:t}function lt(e){for(var t=Ze(e),n=at(e);n&&ot(n);)n=at(n);return n&&"body"===Je(n)&&"static"===it(n).position?t:n||t}var ct="top",ut="bottom",dt="right",pt="left",ht=[ct,ut,dt,pt],ft=ht.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),mt=[].concat(ht,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),vt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function gt(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(i){n.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var i=t.get(r);i&&e(i)}})),r.push(i)}(e)})),r}function yt(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function _t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var bt='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',wt=["name","enabled","phase","fn","effect","requires","options"];function xt(e,t){var n=new Set;return e.filter((function(e){var r=t(e);if(!n.has(r))return n.add(r),!0}))}function Ct(e){return e.split("-")[0]}var kt="Popper: Invalid reference or popper argument provided to Popper, they must be either a valid DOM element, virtual element, or a jQuery-wrapped DOM element.",At={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function St(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,s=void 0===i?At:i;return function(e,t,n){void 0===n&&(n=s);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},At,{},s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],a=!1,l={state:i,setOptions:function(n){c(),i.options=Object.assign({},s,{},i.options,{},n),i.scrollParents={reference:Xe(e)?st(e):[],popper:st(t)};var a=function(e){var t=gt(e);return vt.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}([].concat(i.options.modifiers.filter((function(e){return!r.find((function(t){return t.name===e.name}))})),r.map((function(e){return Object.assign({},e,{},i.options.modifiers.find((function(t){return t.name===e.name})))}))));if("production"!==process.env.NODE_ENV){if(function(e){e.forEach((function(t){Object.keys(t).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(_t(bt,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(_t(bt,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));case"phase":vt.indexOf(t.phase)<0&&console.error(_t(bt,t.name,'"phase"',"either "+vt.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(_t(bt,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":"function"!=typeof t.effect&&console.error(_t(bt,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":Array.isArray(t.requires)||console.error(_t(bt,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(_t(bt,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+wt.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(_t('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}(xt([].concat(a,i.options.modifiers),(function(e){return e.name}))),"auto"===Ct(i.options.placement))a.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "));var u=it(t);[u.marginTop,u.marginRight,u.marginBottom,u.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return i.orderedModifiers=a.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var a=s({state:i,name:t,instance:l,options:r});o.push(a||function(){})}})),l.update()},forceUpdate:function(){if(!a){var e=i.elements,t=e.reference,n=e.popper;if($t(t,n)){i.rects={reference:tt(t,lt(n),"fixed"===i.options.strategy),popper:nt(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0,s=0;s<i.orderedModifiers.length;s++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==i.reset){var o=i.orderedModifiers[s],c=o.fn,u=o.options,d=void 0===u?{}:u,p=o.name;"function"==typeof c&&(i=c({state:i,options:d,name:p,instance:l})||i)}else i.reset=!1,s=-1}}else"production"!==process.env.NODE_ENV&&console.error(kt)}},update:yt((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){c(),a=!0}};if(!$t(e,t))return"production"!==process.env.NODE_ENV&&console.error(kt),l;function c(){o.forEach((function(e){return e()})),o=[]}return l.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var Ot={passive:!0};function Et(e){return e.split("-")[1]}function Dt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nt(e){var t,n=e.reference,r=e.element,i=e.placement,s=i?Ct(i):null,o=i?Et(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(s){case ct:t={x:a,y:n.y-r.height};break;case ut:t={x:a,y:n.y+n.height};break;case dt:t={x:n.x+n.width,y:l};break;case pt:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?Dt(s):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case"start":t[c]=Math.floor(t[c])-Math.floor(n[u]/2-r[u]/2);break;case"end":t[c]=Math.floor(t[c])+Math.ceil(n[u]/2-r[u]/2)}}return t}var Tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jt(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.offsets,o=e.position,a=e.gpuAcceleration,l=e.adaptive,c=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(s),u=c.x,d=c.y,p=s.hasOwnProperty("x"),h=s.hasOwnProperty("y"),f=pt,m=ct;if(l){var v=lt(n);v===Ze(n)&&(v=Qe(n)),i===ct&&(m=ut,d-=v.clientHeight-r.height,d*=a?1:-1),i===pt&&(f=dt,u-=v.clientWidth-r.width,u*=a?1:-1)}var g,y=Object.assign({position:o},l&&Tt);return a?Object.assign({},y,((g={})[m]=h?"0":"",g[f]=p?"0":"",g.transform=(window.devicePixelRatio||1)<2?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",g)):Object.assign({},y,((t={})[m]=h?d+"px":"",t[f]=p?u+"px":"",t.transform="",t))}var Lt={left:"right",right:"left",bottom:"top",top:"bottom"};function Pt(e){return e.replace(/left|right|bottom|top/g,(function(e){return Lt[e]}))}var Ft={start:"end",end:"start"};function Mt(e){return e.replace(/start|end/g,(function(e){return Ft[e]}))}function It(e){return parseFloat(e)||0}function Bt(e){var t=Ze(e),n=function(e){var t=Ge(e)?it(e):{};return{top:It(t.borderTopWidth),right:It(t.borderRightWidth),bottom:It(t.borderBottomWidth),left:It(t.borderLeftWidth)}}(e),r="html"===Je(e),i=et(e),s=e.clientWidth+n.right,o=e.clientHeight+n.bottom;return r&&t.innerHeight-e.clientHeight>50&&(o=t.innerHeight-n.bottom),{top:r?0:e.clientTop,right:e.clientLeft>n.left?n.right:r?t.innerWidth-s-i:e.offsetWidth-s,bottom:r?t.innerHeight-o:e.offsetHeight-o,left:r?i:e.clientLeft}}function Rt(e,t){var n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Vt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zt(e,t){return"viewport"===t?Vt(function(e){var t=Ze(e);return{width:t.innerWidth,height:t.innerHeight,x:0,y:0}}(e)):Ge(t)?Ye(t):Vt(function(e){var t=Ze(e),n=Ke(e),r=tt(Qe(e),t);return r.height=Math.max(r.height,t.innerHeight),r.width=Math.max(r.width,t.innerWidth),r.x=-n.scrollLeft,r.y=-n.scrollTop,r}(Qe(e)))}function qt(e,t,n){var r="clippingParents"===t?function(e){var t=st(e),n=["absolute","fixed"].indexOf(it(e).position)>=0&&Ge(e)?lt(e):e;return Xe(n)?t.filter((function(e){return Xe(e)&&Rt(e,n)})):[]}(e):[].concat(t),i=[].concat(r,[n]),s=i[0],o=i.reduce((function(t,n){var r=zt(e,n),i=Bt(Ge(n)?n:Qe(e));return t.top=Math.max(r.top+i.top,t.top),t.right=Math.min(r.right-i.right,t.right),t.bottom=Math.min(r.bottom-i.bottom,t.bottom),t.left=Math.max(r.left+i.left,t.left),t}),zt(e,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ht(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},{},e)}function Ut(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Wt(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,s=n.boundary,o=void 0===s?"clippingParents":s,a=n.rootBoundary,l=void 0===a?"viewport":a,c=n.elementContext,u=void 0===c?"popper":c,d=n.altBoundary,p=void 0!==d&&d,h=n.padding,f=void 0===h?0:h,m=Ht("number"!=typeof f?f:Ut(f,ht)),v="popper"===u?"reference":"popper",g=e.elements.reference,y=e.rects.popper,_=e.elements[p?v:u],b=qt(Xe(_)?_:Qe(e.elements.popper),o,l),w=Ye(g),x=Nt({reference:w,element:y,strategy:"absolute",placement:i}),C=Vt(Object.assign({},y,{},x)),k="popper"===u?C:w,A={top:b.top-k.top+m.top,bottom:k.bottom-b.bottom+m.bottom,left:b.left-k.left+m.left,right:k.right-b.right+m.right},$=e.modifiersData.offset;if("popper"===u&&$){var S=$[i];Object.keys(A).forEach((function(e){var t=[dt,ut].indexOf(e)>=0?1:-1,n=[ct,ut].indexOf(e)>=0?"y":"x";A[e]+=S[n]*t}))}return A}function Yt(e,t,n){return Math.max(e,Math.min(t,n))}function Zt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Kt(e){return[ct,dt,ut,pt].some((function(t){return e[t]>=0}))}var Xt=St({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=void 0===i||i,o=r.resize,a=void 0===o||o,l=Ze(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach((function(e){e.addEventListener("scroll",n.update,Ot)})),a&&l.addEventListener("resize",n.update,Ot),function(){s&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Ot)})),a&&l.removeEventListener("resize",n.update,Ot)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Nt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,s=n.adaptive,o=void 0===s||s;"production"!==process.env.NODE_ENV&&o&&parseFloat(it(t.elements.popper).transitionDuration)&&console.warn(['Popper: The "computeStyles" modifier\'s `adaptive` option must be',"disabled if CSS transitions are applied to the popper element."].join(" "));var a={placement:Ct(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};t.styles.popper=Object.assign({},t.styles.popper,{},jt(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o}))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,{},jt(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Ge(i)&&Je(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={position:"absolute",left:"0",top:"0",margin:"0"};return Object.assign(t.elements.popper.style,n),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=Object.keys(t.styles.hasOwnProperty(e)?Object.assign({},t.styles[e]):n),s=t.attributes[e]||{},o=i.reduce((function(e,t){var n;return Object.assign({},e,((n={})[String(t)]="",n))}),{});Ge(r)&&Je(r)&&(Object.assign(r.style,o),Object.keys(s).forEach((function(e){return r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=void 0===i?[0,0]:i,o=mt.reduce((function(e,n){return e[n]=function(e,t,n){var r=Ct(e),i=[pt,ct].indexOf(r)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[pt,dt].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}(n,t.rects,s),e}),{}),a=o[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c,t.modifiersData[r]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.fallbackPlacements,s=n.padding,o=n.boundary,a=n.rootBoundary,l=n.flipVariations,c=void 0===l||l,u=t.options.placement,d=Ct(u),p=i||(d===u||!c?[Pt(u)]:function(e){if("auto"===Ct(e))return[];var t=Pt(e);return[Mt(e),t,Mt(t)]}(u)),h=xt([u].concat(p).reduce((function(e,n){return"auto"===Ct(n)?e.concat(function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=Et(r),c=(l?a?ft:ft.filter((function(e){return Et(e)===l})):ht).reduce((function(t,n){return t[n]=Wt(e,{placement:n,boundary:i,rootBoundary:s,padding:o})[Ct(n)],t}),{});return Object.keys(c).sort((function(e,t){return c[e]-c[t]}))}(t,{placement:n,boundary:o,rootBoundary:a,padding:s,flipVariations:c})):e.concat(n)}),[]),(function(e){return e})),f=t.rects.reference,m=t.rects.popper,v=new Map,g=!0,y=h[0],_=0;_<h.length;_++){var b=h[_],w=Ct(b),x="start"===Et(b),C=[ct,ut].indexOf(w)>=0,k=C?"width":"height",A=Wt(t,{placement:b,boundary:o,rootBoundary:a,padding:s}),$=C?x?dt:pt:x?ut:ct;f[k]>m[k]&&($=Pt($));var S=Pt($),O=[A[w]<=0,A[$]<=0,A[S]<=0];if(O.every((function(e){return e}))){y=b,g=!1;break}v.set(b,O)}if(g)for(var E=function(e){var t=h.find((function(t){var n=v.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return y=t,"break"},D=c?3:1;D>0;D--){if("break"===E(D))break}t.placement!==y&&(t.modifiersData[r]._skip=!0,t.placement=y,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=void 0===i||i,o=n.altAxis,a=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,u=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,f=void 0===h?0:h,m=Wt(t,{boundary:l,rootBoundary:c,padding:u}),v=Ct(t.placement),g=Et(t.placement),y=!g,_=Dt(v),b="x"===_?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,C=t.rects.popper,k="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,A={x:0,y:0};if(s){var $="y"===_?ct:pt,S="y"===_?ut:dt,O="y"===_?"height":"width",E=w[_],D=w[_]+m[$],N=w[_]-m[S],T=p?-C[O]/2:0,j="start"===g?x[O]:C[O],L="start"===g?-C[O]:-x[O],P=t.elements.arrow,F=p&&P?nt(P):{width:0,height:0},M=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I=M[$],B=M[S],R=Yt(0,Math.abs(x[O]-F[O]),F[O]),V=y?x[O]/2-T-R-I-k:j-R-I-k,z=y?-x[O]/2+T+R+B+k:L+R+B+k,q=t.modifiersData.offset?t.modifiersData.offset[t.placement][_]:0,H=t.modifiersData.popperOffsets[_]+V-q,U=t.modifiersData.popperOffsets[_]+z-q,W=Yt(p?Math.min(D,H):D,E,p?Math.max(N,U):N);t.modifiersData.popperOffsets[_]=W,A[_]=W-E}if(a){var Y="x"===_?ct:pt,Z="x"===_?ut:dt,K=w[b],X=Yt(K+m[Y],K,K-m[Z]);t.modifiersData.popperOffsets[b]=X,A[b]=X-K}t.modifiersData[r]=A},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Ct(n.placement),a=Dt(o),l=[pt,dt].indexOf(o)>=0?"height":"width";if(i){var c=n.modifiersData[r+"#persistent"].padding,u=nt(i),d="y"===a?ct:pt,p="y"===a?ut:dt,h=(n.rects.reference[l]+n.rects.reference[a]-s[a]-n.rects.popper[l])/2-(s[a]-n.rects.reference[a])/2,f=Yt(c[d],n.rects.popper[l]/2-u[l]/2+h,n.rects.popper[l]-u[l]-c[p]),m=a;n.modifiersData[r]=((t={})[m]=f,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,i=n.element,s=void 0===i?"[data-popper-arrow]":i,o=n.padding,a=void 0===o?0:o;("string"!=typeof s||(s=t.elements.popper.querySelector(s)))&&(Rt(t.elements.popper,s)?(t.elements.arrow=s,t.modifiersData[r+"#persistent"]={padding:Ht("number"!=typeof a?a:Ut(a,ht))}):"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=Wt(t,{elementContext:"reference"}),a=Wt(t,{altBoundary:!0}),l=Zt(o,r),c=Zt(a,i,s),u=Kt(l),d=Kt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const Gt=ie((function(e=[],t){let n=!1,r=t.target;for(;!n&&r;)i=r,e.includes(i.tagName)&&(n=!0),r=r.parentElement;var i;return n})),Jt=["A","BUTTON"];const Qt=Se({render:function(){var e=this.$createElement,t=this._self._c||e;return t("Transition",{attrs:{name:"fade"},on:{beforeLeave:this.removeOutsideClick,afterEnter:this.setOutsideClick}},[t(this.tag,this._g({directives:[{name:"show",rawName:"v-show",value:this.visible,expression:"visible"}],tag:"component",staticClass:"aw-dropdown z-10"},this.listeners),[this._t("default")],2)],1)},staticRenderFns:[]},void 0,{name:"AwDropdown",_config:{tag:"div",baseClass:"aw-dropdown",popperOptions:{placement:"bottom-start",modifiers:[{name:"arrow",enabled:!0},{name:"flip",options:{padding:0,behavior:"flip",boundariesElement:"scrollParent"}},{name:"preventOverflow",enabled:!1},{name:"hide",enabled:!1},{name:"computeStyles",options:{adaptive:!1}}]}},props:{tag:{type:String,default(){return this.$options._config.tag}},target:String,options:Object,closeOnAction:{type:Boolean,default:!0},show:Boolean,closeOutside:{type:Boolean,default:!0}},data:()=>({popper:null,targetEl:null,visible:!1}),computed:{_popperOptions(){return{...this.$options._config.popperOptions,...this.options}},listeners(){const e={};return this.closeOnAction&&(e.click=this._onClickAction),e}},watch:{visible(e){e&&!this.popper?this._createPopper():e&&this.popper.update(),this.$emit("update:show",e)},show(e){this.visible=e}},beforeDestroy(){this.removeOutsideClick(),this._destroyPopper()},methods:{_getTargetEl(){return this.target?document.querySelector(this.target):this.$el&&this.$el.previousElementSibling},_createPopper(){this.targetEl=this._getTargetEl(),this.$el&&this.targetEl&&(this.popper=Xt(this.targetEl,this.$el,this._popperOptions))},_destroyPopper(){this.targetEl=null,this.popper&&this.popper.destroy()},_onClickOutside(e){this.$el.contains(e.target)||(this.visible=!1)},_onClickAction(e){Gt(Jt,e)&&(this.visible=!1)},update(){this.popper&&this.popper.forceUpdate()},setOutsideClick(){this.closeOutside&&document.body.addEventListener("click",this._onClickOutside)},removeOutsideClick(){this.closeOutside&&document.body.removeEventListener("click",this._onClickOutside)},toggle(){this.visible=!this.visible}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const en=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("component",e._g(e._b({staticClass:"aw-dropdown-button",class:["aw-dropdown-button_"+e.color,{"is-active":e.active}]},"component",e.componentProps,!1),e.$listeners),[n("span",{attrs:{tabindex:"-1"}},[e._t("default",[e._v("\n "+e._s(e.text)+"\n ")])],2)])},staticRenderFns:[]},void 0,{name:"AwDropdownButton",extends:Fe,props:{color:{type:String,default:"default",validator:e=>["aw-dropdown-button_default","aw-dropdown-button_success","aw-dropdown-button_warning","aw-dropdown-button_error"].includes(`aw-dropdown-button_${e}`)},active:Boolean}},void 0,!1,void 0,!1,void 0,void 0,void 0);var tn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function nn(e,t){return e(t={exports:{}},t.exports),t.exports}var rn=nn((function(e,t){e.exports=function(){var e="millisecond",t="second",n="minute",r="hour",i="day",s="week",o="month",a="quarter",l="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,u=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},p={s:d,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+d(r,2,"0")+":"+d(i,2,"0")},m:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,o),i=t-r<0,s=e.clone().add(n+(i?-1:1),o);return Number(-(n+(t-r)/(i?r-s:s-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return{M:o,y:l,w:s,d:i,h:r,m:n,s:t,ms:e,Q:a}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f="en",m={};m[f]=h;var v=function(e){return e instanceof b},g=function(e,t,n){var r;if(!e)return f;if("string"==typeof e)m[e]&&(r=e),t&&(m[e]=t,r=e);else{var i=e.name;m[i]=e,r=i}return n||(f=r),r},y=function(e,t,n){if(v(e))return e.clone();var r=t?"string"==typeof t?{format:t,pl:n}:t:{};return r.date=e,new b(r)},_=p;_.l=g,_.i=v,_.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,$offset:t.$offset})};var b=function(){function d(e){this.$L=this.$L||g(e.locale,null,!0),this.parse(e)}var p=d.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(c);if(r)return n?new Date(Date.UTC(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return _},p.isValid=function(){return!("Invalid Date"===this.$d.toString())},p.isSame=function(e,t){var n=y(e);return this.startOf(t)<=n&&n<=this.endOf(t)},p.isAfter=function(e,t){return y(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<y(e)},p.$g=function(e,t,n){return _.u(e)?this[t]:this.set(n,e)},p.year=function(e){return this.$g(e,"$y",l)},p.month=function(e){return this.$g(e,"$M",o)},p.day=function(e){return this.$g(e,"$W",i)},p.date=function(e){return this.$g(e,"$D","date")},p.hour=function(e){return this.$g(e,"$H",r)},p.minute=function(e){return this.$g(e,"$m",n)},p.second=function(e){return this.$g(e,"$s",t)},p.millisecond=function(t){return this.$g(t,"$ms",e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,a){var c=this,u=!!_.u(a)||a,d=_.p(e),p=function(e,t){var n=_.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?n:n.endOf(i)},h=function(e,t){return _.w(c.toDate()[e].apply(c.toDate(),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},f=this.$W,m=this.$M,v=this.$D,g="set"+(this.$u?"UTC":"");switch(d){case l:return u?p(1,0):p(31,11);case o:return u?p(1,m):p(0,m+1);case s:var y=this.$locale().weekStart||0,b=(f<y?f+7:f)-y;return p(u?v-b:v+(6-b),m);case i:case"date":return h(g+"Hours",0);case r:return h(g+"Minutes",1);case n:return h(g+"Seconds",2);case t:return h(g+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(s,a){var c,u=_.p(s),d="set"+(this.$u?"UTC":""),p=(c={},c[i]=d+"Date",c.date=d+"Date",c[o]=d+"Month",c[l]=d+"FullYear",c[r]=d+"Hours",c[n]=d+"Minutes",c[t]=d+"Seconds",c[e]=d+"Milliseconds",c)[u],h=u===i?this.$D+(a-this.$W):a;if(u===o||u===l){var f=this.clone().set("date",1);f.$d[p](h),f.init(),this.$d=f.set("date",Math.min(this.$D,f.daysInMonth())).toDate()}else p&&this.$d[p](h);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[_.p(e)]()},p.add=function(e,a){var c,u=this;e=Number(e);var d=_.p(a),p=function(t){var n=y(u);return _.w(n.date(n.date()+Math.round(t*e)),u)};if(d===o)return this.set(o,this.$M+e);if(d===l)return this.set(l,this.$y+e);if(d===i)return p(1);if(d===s)return p(7);var h=(c={},c[n]=6e4,c[r]=36e5,c[t]=1e3,c)[d]||1,f=this.$d.getTime()+e*h;return _.w(f,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=_.z(this),i=this.$locale(),s=this.$H,o=this.$m,a=this.$M,l=i.weekdays,c=i.months,d=function(e,r,i,s){return e&&(e[r]||e(t,n))||i[r].substr(0,s)},p=function(e){return _.s(s%12||12,e,"0")},h=i.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:_.s(a+1,2,"0"),MMM:d(i.monthsShort,a,c,3),MMMM:c[a]||c(this,n),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:d(i.weekdaysMin,this.$W,l,2),ddd:d(i.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(s),HH:_.s(s,2,"0"),h:p(1),hh:p(2),a:h(s,o,!0),A:h(s,o,!1),m:String(o),mm:_.s(o,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:r};return n.replace(u,(function(e,t){return t||f[e]||r.replace(":","")}))},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(e,c,u){var d,p=_.p(c),h=y(e),f=6e4*(h.utcOffset()-this.utcOffset()),m=this-h,v=_.m(this,h);return v=(d={},d[l]=v/12,d[o]=v,d[a]=v/3,d[s]=(m-f)/6048e5,d[i]=(m-f)/864e5,d[r]=m/36e5,d[n]=m/6e4,d[t]=m/1e3,d)[p]||m,u?v:_.a(v)},p.daysInMonth=function(){return this.endOf(o).$D},p.$locale=function(){return m[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=g(e,t,!0);return r&&(n.$L=r),n},p.clone=function(){return _.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},d}();return y.prototype=b.prototype,y.extend=function(e,t){return e(t,b,y),y},y.locale=g,y.isDayjs=v,y.unix=function(e){return y(1e3*e)},y.en=m[f],y.Ls=m,y}()})),sn=nn((function(e,t){var n,r,i,s,o,a,l,c,u;e.exports=(r=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d*[^\s\d-:/.()]+/,l=[/[+-]\d\d:?\d\d/,function(e){var t,n;(this.zone||(this.zone={})).offset=0==(n=60*(t=e.match(/([+-]|\d\d)/g))[1]+ +t[2])?0:"+"===t[0]?-n:n}],c={A:[/[AP]M/,function(e){this.afternoon="PM"===e}],a:[/[ap]m/,function(e){this.afternoon="pm"===e}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[i=/\d\d/,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[s=/\d\d?/,(a=function(e){return function(t){this[e]=+t}})("seconds")],ss:[s,a("seconds")],m:[s,a("minutes")],mm:[s,a("minutes")],H:[s,a("hours")],h:[s,a("hours")],HH:[s,a("hours")],hh:[s,a("hours")],D:[s,a("day")],DD:[i,a("day")],Do:[o,function(e){var t=n.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var i=1;i<=31;i+=1)t(i).replace(/\[|\]/g,"")===e&&(this.day=i)}],M:[s,a("month")],MM:[i,a("month")],MMM:[o,function(e){var t=n,r=t.months,i=t.monthsShort,s=i?i.findIndex((function(t){return t===e})):r.findIndex((function(t){return t.substr(0,3)===e}));if(s<0)throw new Error;this.month=s+1}],MMMM:[o,function(e){var t=n.months.indexOf(e);if(t<0)throw new Error;this.month=t+1}],Y:[/[+-]?\d+/,a("year")],YY:[i,function(e){e=+e,this.year=e+(e>68?1900:2e3)}],YYYY:[/\d{4}/,a("year")],Z:l,ZZ:l},u=function(e,t,n){try{var i=function(e){for(var t=e.match(r),n=t.length,i=0;i<n;i+=1){var s=t[i],o=c[s],a=o&&o[0],l=o&&o[1];t[i]=l?{regex:a,parser:l}:s.replace(/^\[|\]$/g,"")}return function(e){for(var r={},i=0,s=0;i<n;i+=1){var o=t[i];if("string"==typeof o)s+=o.length;else{var a=o.regex,l=o.parser,c=e.substr(s),u=a.exec(c)[0];l.call(r,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(r),r}}(t)(e),s=i.year,o=i.month,a=i.day,l=i.hours,u=i.minutes,d=i.seconds,p=i.milliseconds,h=i.zone;if(h)return new Date(Date.UTC(s,o-1,a,l||0,u||0,d||0,p||0)+60*h.offset*1e3);var f=new Date,m=a||(s||o?1:f.getDate()),v=s||f.getFullYear(),g=o>0?o-1:f.getMonth(),y=l||0,_=u||0,b=d||0,w=p||0;return n?new Date(Date.UTC(v,g,m,y,_,b,w)):new Date(v,g,m,y,_,b,w)}catch(e){return new Date("")}},function(e,t,r){var i=t.prototype,s=i.parse;i.parse=function(e){var t=e.date,i=e.format,o=e.pl,a=e.utc;this.$u=a,i?(n=o?r.Ls[o]:this.$locale(),this.$d=u(t,i,a),this.init(e),o&&(this.$L=o)):s.call(this,e)}})}));rn.extend(sn);function on(e){let t=e.target;if(t.hasAttribute("data-time")||(t=t.closest("[data-time]")),!t)return!1;const n=parseInt(t.getAttribute("data-time"));return new Date(n)}var an={props:{value:{type:[String,Number,Object,Date,Array],default:null},parseFormat:{type:String,default:""},outputFormat:{type:[String],default:"toDate"},firstDay:{type:Number,default:1},min:{type:[String,Number,Object,Date],default:null},max:{type:[String,Number,Object,Date],default:null},disabledDays:{type:Function,default:oe},range:Boolean},data:()=>({viewDate:null,tempValue:null,hoverValue:null}),computed:{_isMultiple(){return!this.range&&Array.isArray(this.value)},_valueDayjs(){return this.range?null:this._isMultiple?this.value.map(this._toDayjs):this._toDayjs(this.value)},_startDayjs(){if(this.tempValue)return this.hoverValue&&this.hoverValue.isBefore(this.tempValue)?this.hoverValue:this.tempValue;{const e=this._toDayjs(this.range?ve(null,"start",this.value):this.value);return e.isValid()&&e}},_endDayjs(){if(this.hoverValue)return this.hoverValue.isAfter(this.tempValue)?this.hoverValue:this.tempValue;{const e=this._toDayjs(ve(null,"end",this.value));return e.isValid()&&e}},_minDayjs(){const e=this._toDayjs(this.min);return e.isValid()&&e},_maxDayjs(){const e=this._toDayjs(this.max);return e.isValid()&&e},_isDisabled(){const e=[this.disabledDays];return this._minDayjs&&e.push(e=>this._minDayjs.isAfter(this._toDayjs(e),"days")),this._maxDayjs&&e.push(e=>this._maxDayjs.isBefore(this._toDayjs(e),"days")),ae(e)},_isActive(){if(this.range){const e=[];return this._startDayjs&&e.push(e=>this._startDayjs.isSame(this._toDayjs(e),"day")),this._endDayjs&&e.push(e=>this._endDayjs.isSame(this._toDayjs(e),"day")),ae(e)}return e=>{const t=this._toDayjs(e);return this._isMultiple?this._valueDayjs.some(e=>e.isSame(t)):this._valueDayjs.isSame(t,"day")}},_isRangeStart(){return e=>this._startDayjs&&this._startDayjs.isSame(this._toDayjs(e),"day")},_isRangeEnd(){return e=>this._endDayjs&&this._endDayjs.isSame(this._toDayjs(e),"day")},_inRange(){return e=>{if(this._startDayjs&&this._endDayjs){const t=this._toDayjs(e);return this._startDayjs.isBefore(t,"day")&&this._endDayjs.isAfter(t,"day")}return!1}},_getDayClass(){return this.range?e=>({"aw-calendar__day_active":this._isActive(e),"aw-date__range":this._inRange(e),"aw-date__range-start":this._isRangeStart(e),"aw-date__range-end":this._isRangeEnd(e)}):e=>({"aw-calendar__day_active":this._isActive(e)})},_stringFormat(){return this.parseFormat||this.outputFormat},_fromDayjs(){return"toDayjs"===this.outputFormat?e=>e:be("to",this.outputFormat)?e=>e[this.outputFormat]():e=>e.format(this.outputFormat)}},created(){const e=this._toDayjs(this.range?ve(null,"start",this.value):Array.isArray(this.value)?this.value[0]:this.value);e.isValid()?this.viewDate=e:this.viewDate=this._toDayjs(new Date)},beforeDestroy(){this._toggleHoverListener(!1)},methods:{shiftMonth(e=0){const t=e>0?"add":"subtract";this.viewDate=this.viewDate[t](Math.abs(e),"month")},_toggleHoverListener(e=!1){this.$el[e?"addEventListener":"removeEventListener"]("mouseover",this.onHover)},_toDayjs(e){return this._stringFormat&&"string"==typeof e?rn(e,this._stringFormat):rn(e)},_getDateFromEvent:on,onDateClick(e){const t=this._getDateFromEvent(e);if(!t||this._isDisabled(t))return;const n=this._toDayjs(t);let r;if(this.range){if(!this.tempValue)return this.$emit("input",null),this.tempValue=n,this.hoverValue=null,void this._toggleHoverListener(!0);{if(n.isSame(this.tempValue,"day"))return;const e=this._fromDayjs(this._startDayjs),t=this._fromDayjs(this._endDayjs);this._toggleHoverListener(!1),this.tempValue=null,this.hoverValue=null,r={start:e,end:t}}}else r=this._getNonRangeValue(n);this.$emit("input",r)},_getNonRangeValue(e){if(this._isMultiple){const t=this.valueDayjs.findIndex(t=>t.isSame(e));return-1===t?this.valueDayjs.concat(e).map(this._fromDayjs):this.valueDayjs.filter((e,n)=>n!==t).map(this._fromDayjs)}return this._fromDayjs(e)},onHover(e){const t=this._getDateFromEvent(e),n=this._toDayjs(t);n.isValid()&&(this.hoverValue=n)}}};const ln=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aw-calendar__nav"},[n("AwButton",{directives:[{name:"show",rawName:"v-show",value:e.$listeners["click:prev"],expression:"$listeners['click:prev']"}],attrs:{theme:"icon",icon:"chevron-l",disabled:e.disabledPrev},on:{click:function(t){return t.stopPropagation(),e.$emit("click:prev")}}}),e._v(" "),n("div",{staticClass:"aw-calendar__nav-title",class:{"mr-12":!e.$listeners["click:next"],"ml-12":!e.$listeners["click:prev"]}},[e._v("\n "+e._s(e.months[e.month])+" "+e._s(e.year)+"\n ")]),e._v(" "),n("AwButton",{directives:[{name:"show",rawName:"v-show",value:e.$listeners["click:next"],expression:"$listeners['click:next']"}],attrs:{theme:"icon",icon:"chevron-r",disabled:e.disabledNext},on:{click:function(t){return t.stopPropagation(),e.$emit("click:next")}}})],1)},staticRenderFns:[]},void 0,{name:"AwCalendarNav",props:{year:{type:Number},month:{type:Number},months:{type:Array,default(){return this.$t("AwCalendar.months")}},disabledPrev:Boolean,disabledNext:Boolean}},void 0,!1,void 0,!1,void 0,void 0,void 0);const cn=Se({},void 0,{name:"AwCalendarWeekdays",functional:!0,props:{firstDay:{type:Number,default:1},weekdayNames:{type:Array,required:!0}},render(e,{props:t}){const{firstDay:n,weekdayNames:r}=t;return r.slice(n).concat(r.slice(0,n)).map(t=>e("span",{key:t,staticClass:"aw-calendar__weekday"},t))}},void 0,void 0,void 0,!1,void 0,void 0,void 0);const un=Se({render:function(e,t){var n=t._c;return n("button",{staticClass:"aw-calendar__day",class:[t.data.staticClass,t.data.class],attrs:{"data-time":t.props.timestamp,disabled:t.data.attrs.disabled||null,type:"button",tabindex:"-1"}},[n("span",[t._v(" "+t._s(t.props.day)+" ")])])},staticRenderFns:[]},void 0,{name:"AwCalendarDay",props:{day:{type:Number,required:!0},timestamp:{type:Number,required:!0}}},void 0,!0,void 0,!1,void 0,void 0,void 0);const dn=Se({},void 0,{name:"AwCalendarDays",functional:!0,props:{year:{type:Number,default:()=>parseInt((new Date).getFullYear())},month:{type:Number,default:()=>parseInt((new Date).getMonth())},firstDay:{type:Number,default:1},dayClass:{type:Function,default:()=>null},dayDisabled:{type:Function,default:()=>null}},render(e,{props:t}){const{year:n,month:r,firstDay:i,dayDisabled:s,dayClass:o}=t;return function(e,t,n){const r=[];let i=new Date(e,t);i.setDate(1-i.getDay()+n),n&&i.getDate()===n+1&&i.setDate(n-6);for(let e=0;e<42;++e){const e=new Date(i);r.push(e),i.setDate(i.getDate()+1)}return r}(n,r,i).map(t=>{const n=t.getTime();return e(un,{key:n,props:{timestamp:n,day:t.getDate()},class:[{"aw-calendar__day_outside":t.getMonth()!==r},o(t)],attrs:{disabled:s(t)}})})}},void 0,void 0,void 0,!1,void 0,void 0,void 0);const pn=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aw-calendar",on:{click:e.onDateClick}},[e._t("header",[n("AwCalendarNav",{attrs:{month:e.viewDate.month(),year:e.viewDate.year(),"disabled-prev":e.isDisabledPrev,"disabled-next":e.isDisabledNext},on:{"click:prev":function(t){return e.shiftMonth(-1)},"click:next":function(t){return e.shiftMonth(1)}}})],null,{viewDate:e.viewDate,isDisabledPrev:e.isDisabledPrev,isDisabledNext:e.isDisabledNext,shiftMonth:e.shiftMonth}),e._v(" "),n("AwCalendarWeekdays",{attrs:{"first-day":e.firstDay,"weekday-names":e.$t("AwCalendar.weekdaysShort")}}),e._v(" "),n("AwCalendarDays",{attrs:{"first-day":e.firstDay,month:e.viewDate.month(),year:e.viewDate.year(),"day-class":e._getDayClass,"day-disabled":e._isDisabled}}),e._v(" "),e._t("footer")],2)},staticRenderFns:[]},void 0,{name:"AwCalendar",mixins:[an],components:{AwCalendarNav:ln,AwCalendarWeekdays:cn,AwCalendarDays:dn},computed:{isDisabledPrev(){return this._minDayjs&&this.viewDate.isSame(this._minDayjs,"month")},isDisabledNext(){return this._maxDayjs&&this.viewDate.isSame(this._maxDayjs,"month")}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const hn=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aw-calendar",on:{click:e.onClick}},[n("AwCalendarWeekdays",{attrs:{"first-day":e.firstDay,"weekday-names":e.$t("AwCalendar.weekdaysShort")}}),e._v(" "),n("AwCalendarDays",{attrs:{"first-day":e.firstDay,month:e.month,year:e.year,"day-class":e.dayClass,"day-disabled":e.dayDisabled}})],1)},staticRenderFns:[]},void 0,{name:"",components:{AwCalendarWeekdays:cn,AwCalendarDays:dn},props:dn.props,methods:{onClick(e){const t=on(e);t&&this.$emit("click:date",t)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const fn=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:"rounded overflow-hidden shadow-md "+e.backgroundCss},[n("div",{staticClass:"px-6 py-4"},[""!=e.title?n("div",{staticClass:"text-xl mb-2"},[""==e.link?n("div",{staticClass:"font-bold"},[e._v("\n "+e._s(e.title)+"\n ")]):n("div",[n("AwLink",{staticClass:"font-bold",attrs:{href:e.link}},[e._v(e._s(e.title))])],1)]):e._e(),e._v(" "),""!=e.text?n("p",{staticClass:"text-gray-700 text-base"},[e._v("\n "+e._s(e.text)+"\n ")]):e._e(),e._v(" "),e._t("default")],2)])},staticRenderFns:[]},void 0,{name:"AwCard",props:{background:{type:String,default:()=>""},title:{type:String,default:()=>""},text:{type:String,default:()=>""},link:{type:String,default:()=>""}},computed:{backgroundCss(){return""!=this.background?"bg-"+this.background:"bg-surface"}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var mn=nn((function(e,t){e.exports=function(){var e=function(){},t={},n={},r={};function i(e,t){if(e){var i=r[e];if(n[e]=t,i)for(;i.length;)i[0](e,t),i.splice(0,1)}}function s(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function o(t,n,r,i){var s,a,l=document,c=r.async,u=(r.numRetries||0)+1,d=r.before||e,p=t.replace(/^(css|img)!/,"");i=i||0,/(^css!|\.css$)/.test(t)?((a=l.createElement("link")).rel="stylesheet",a.href=p,(s="hideFocus"in a)&&a.relList&&(s=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg)$)/.test(t)?(a=l.createElement("img")).src=p:((a=l.createElement("script")).src=t,a.async=void 0===c||c),a.onload=a.onerror=a.onbeforeload=function(e){var l=e.type[0];if(s)try{a.sheet.cssText.length||(l="e")}catch(e){18!=e.code&&(l="e")}if("e"==l){if((i+=1)<u)return o(t,n,r,i)}else if("preload"==a.rel&&"style"==a.as)return a.rel="stylesheet";n(t,l,e.defaultPrevented)},!1!==d(t,a)&&l.head.appendChild(a)}function a(e,n,r){var a,l;if(n&&n.trim&&(a=n),l=(a?r:n)||{},a){if(a in t)throw"LoadJS";t[a]=!0}function c(t,n){!function(e,t,n){var r,i,s=(e=e.push?e:[e]).length,a=s,l=[];for(r=function(e,n,r){if("e"==n&&l.push(e),"b"==n){if(!r)return;l.push(e)}--s||t(l)},i=0;i<a;i++)o(e[i],r,n)}(e,(function(e){s(l,e),t&&s({success:t,error:n},e),i(a,e)}),l)}if(l.returnPromise)return new Promise(c);c()}return a.ready=function(e,t){return function(e,t){e=e.push?e:[e];var i,s,o,a=[],l=e.length,c=l;for(i=function(e,n){n.length&&a.push(e),--c||t(a)};l--;)s=e[l],(o=n[s])?i(s,o):(r[s]=r[s]||[]).push(i)}(e,(function(e){s(t,e)})),a},a.done=function(e){i(e,[])},a.reset=function(){t={},n={},r={}},a.isDefined=function(e){return e in t},a}()}));const vn=Se({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"chart"},[t("canvas",{ref:"canvas",attrs:{height:this.height+"px"}})])},staticRenderFns:[]},void 0,{name:"AwChart",props:{data:{type:Object,required:!0},show:{type:Boolean,default:!0},options:Object,type:{type:String,default:"line"},height:{type:Number,default:150}},data:()=>({chart:null,tooltip:!1,libUrl:"https://cdn.jsdelivr.net/npm/chart.js@2.9.3/dist/Chart.min.js"}),watch:{show(e){this.chart&&(this.chart[e?"update":"reset"](),this.chart.render())},data(e,t){M(e,t)||(this.chart?(this.chart.data=e,this.chart.update()):this.generateChart())},type(e,t){e!==t&&(this.destroyChart(),this.generateChart())}},methods:{generateChart(){if(this.data&&!this.data.datasets)throw new Error("Charts: datasets expected in data prop");this.chart=new window.Chart(this.$refs.canvas.getContext("2d"),{type:this.type,data:this.data,options:this.options})},destroyChart(){this.chart&&this.chart.destroy()},init(){return mn.isDefined("chart")?new Promise((e,t)=>mn.ready("chart",{success:e,error:t})):mn([this.libUrl],"chart",{returnPromise:!0})},isInited:()=>mn.isDefined("chart")},async mounted(){await this.$nextTick(),"Chart"in window||await this.init(),this.generateChart()},beforeDestroy(){this.destroyChart()}},void 0,!1,void 0,!1,void 0,void 0,void 0);const gn=Se({render:function(e,t){var n,r,i=t._c;return i("span",t._b({staticClass:"aw-chip",class:[t.data.staticClass,t.data.class],style:[t.data.staticStyle,t.data.style]},"span",t.data.attrs,!1),[t._t("left",[i("span",{staticClass:"aw-chip__decor",class:(n={},n["text-"+t.props.color+" border-"+t.props.color]=t.props.color,n["border-text"]=!t.props.color&&!t.props.image,n["aw-chip__decor_image"]=t.props.image,n),style:{backgroundImage:t.props.image?"url("+t.props.image+")":null},attrs:{"aria-hidden":"true"}},[t.props.image?t._e():i("span",{staticClass:"aw-chip__decor-circle",class:(r={},r["bg-"+t.props.color]=t.props.color,r["bgcolor-text"]=!t.props.icon&&!t.props.color,r["animation-pulse"]=t.props.loading,r)},[t.props.icon?i("AwIcon",{staticClass:"aw-chip__decor-icon",class:{"aw-chip__decor-icon_color":t.props.color},attrs:{name:t.props.icon}}):t._e()],1)])],null,t.props),t._v(" "),t._t("center",[t.props.text||t.slots().default?i("span",{staticClass:"aw-chip__text"},[t._t("default",[t._v("\n "+t._s(t.props.text)+"\n ")])],2):t._e()],null,t.props),t._v(" "),t._t("right",null,null,t.props)],2)},staticRenderFns:[]},void 0,{name:"AwChip",props:{icon:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:""},image:{type:String,default:""},loading:Boolean}},void 0,!0,void 0,!1,void 0,void 0,void 0);var yn={methods:{_arrowFocusItem(e=0,t){if(!this.isOpened)return;const n=Array.from(this.$el.querySelectorAll("[data-arrow-focus]")),r=document.activeElement,i=n.indexOf(r);let s;s=i<0?0:i+e;const o=n[s];o&&(t&&(t.preventDefault(),t.stopPropagation()),o.focus())}}};const _n=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"inline-flex",on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e._arrowFocusItem(-1,t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e._arrowFocusItem(1,t)}],focusout:e.onBlur}},[n("button",{staticClass:"focus-outline",attrs:{"data-arrow-focus":""},on:{click:function(t){return t.stopPropagation(),e.open(t)}}},[e._t("selected",[n("AwChip",e._b({staticClass:"px-0",attrs:{loading:e.loading,tabindex:"-1"},scopedSlots:e._u([{key:"right",fn:function(){return[e.readonly?e._e():n("AwIcon",{staticClass:"transition-200 flex-shrink-0 text-disabled",class:{"rotate-180":e.isOpened},attrs:{name:"triangle-d",size:"lg"}})]},proxy:!0}])},"AwChip",e.selected,!1))],null,e.selected)],2),e._v(" "),n("AwDropdown",{staticClass:"block",attrs:{show:e.isOpened,options:{modifiers:[{name:"offset",options:{offset:[-14,0]}},{name:"computeStyles",options:{adaptive:!1}}]},tag:"span"},on:{"update:show":function(t){e.isOpened=t}}},e._l(e.options,(function(t,r){var i=t.id,s=t.text,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(t,["id","text"]);return n("AwDropdownButton",{key:i||"chip-"+r,attrs:{active:i===e.value,"data-arrow-focus":""},on:{click:function(t){return t.stopPropagation(),e.select(i)}}},[e._t("option",[n("AwChip",e._b({staticClass:"p-0",attrs:{text:e.noText?"":s}},"AwChip",o,!1))],null,Object.assign({},{id:i,text:s},o,{index:r,select:e.select}))],2)})),1)],1)},staticRenderFns:[]},void 0,{name:"AwChipSelect",mixins:[yn],props:{value:{type:Number,required:!0},options:{type:Array,required:!0,validator:Ae([{id:"number","color?":"string","text?":"string"}])},readonly:Boolean,noText:Boolean,loading:Boolean,disabled:Boolean},data:()=>({isOpened:!1}),computed:{selected(){const e=this.options.find(({id:e})=>e===this.value);return this.noText?se("text",e):e},isDisabled(){return this.readonly||this.disabled||this.loading}},watch:{isDisabled(e){e&&(this.isOpened=!1)}},methods:{open(){this.isDisabled||(this.isOpened=!this.isOpened)},onBlur(e={}){const t=e.relatedTarget;this.isOpened&&!this.$el.contains(t)&&(this.isOpened=!1)},select(e){this.isDisabled||e===this.value||this.$emit("input",e),this.isOpened=!1}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function bn(e){if(document[e?"addEventListener":"removeEventListener"]("touchmove",wn,!1),e){let e=document.querySelector('meta[name="viewport"]');if(e){let t=e.content;e.setAttribute("data-old",t);let n=t.replace(/,? ?user-scalable=(yes|no)/,"")+", user-scalable=no";e.content=n}else e=document.createElement("META"),e.name="viewport",e.content="user-scalable=no",document.head.appendChild(e)}else{let e=document.querySelector('meta[name="viewport"]'),t=e.getAttribute("data-old");t?(e.content=t,e.removeAttribute("data-old")):e.parentElement.removeChild(e)}}function wn(e){1!==e.scale&&e.preventDefault()}const xn=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:!!e.croppie,expression:"!!croppie"}],staticClass:"aw-cropper"},[n("div",[n("img",{ref:"image",attrs:{src:e.src,alt:""}})]),e._v(" "),n("AwButton",{staticClass:"appearance-none",attrs:{tag:"label"}},[n("input",{ref:"file",staticClass:"sr-only",attrs:{type:"file",accept:"image/*"},on:{change:e.bindImage}}),e._v(" "),e._t("upload",[e._v("\n "+e._s(e.$t("AwCropper.upload"))+"\n ")])],2),e._v(" "),e._t("buttons",[n("AwButton",{attrs:{text:e.$t("AwCropper.rotate")},on:{click:e.rotate}}),e._v(" "),n("AwButton",{attrs:{text:e.$t("AwCropper.save")},on:{click:e.save}}),e._v(" "),e.$listeners.cancel?n("AwButton",{attrs:{text:e.$t("AwCropper.cancel")},on:{click:e.cancel}}):e._e()],{rotate:e.rotate,save:e.save,cancel:e.cancel})],2)},staticRenderFns:[]},void 0,{name:"AwCropper",props:{src:{type:String,required:!0},width:{type:[String,Number],default:200},height:{type:[String,Number],default:200},padding:{type:[String,Number],default:100},format:{type:String,default:"png"},quality:{type:[String,Number],default:1}},data:()=>({croppie:null}),inject:{modal:{from:"modal",default:!1}},methods:{loadCroppie:()=>mn(["https://unpkg.com/croppie/croppie.min.js","https://unpkg.com/croppie/croppie.css"],"croppie",{returnPromise:!0}),async initCroppie(){"Croppie"in window||await this.loadCroppie(),this.croppie=new window.Croppie(this.$refs.image,{viewport:{width:+this.width,height:+this.height},boundary:{width:+this.width+ +this.padding,height:+this.height+ +this.padding},enableOrientation:!0})},bindImage(e){let t=e.target.files[0];if(!t)return;let n=URL.createObjectURL(t);this.croppie.bind({url:n})},rotate(){this.croppie.rotate(90)},async save(){let e=await this.croppie.result({type:"blob",size:"original",format:this.format,quality:this.quality});this.$emit("save",e),this.cancel()},cancel(){this.$emit("cancel")}},mounted(){bn(!0),this.$nextTick(this.initCroppie)},beforeDestroy(){bn(!1),this.croppie&&this.croppie.destroy()}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Cn=function(e){if(navigator.clipboard)return navigator.clipboard.writeText(e).catch((function(e){throw void 0!==e?e:new DOMException("The request is not allowed","NotAllowedError")}));var t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t);var n=window.getSelection(),r=window.document.createRange();n.removeAllRanges(),r.selectNode(t),n.addRange(r);var i=!1;try{i=window.document.execCommand("copy")}catch(e){console.log("error",e)}return n.removeAllRanges(),window.document.body.removeChild(t),i?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))};var kn=nn((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof i?new i(e.type,r.util.encode(e.content),e.alias):Array.isArray(e)?e.map(r.util.encode):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var i,s,o=r.util.type(t);switch(n=n||{},o){case"Object":if(s=r.util.objId(t),n[s])return n[s];for(var a in i={},n[s]=i,t)t.hasOwnProperty(a)&&(i[a]=e(t[a],n));return i;case"Array":return s=r.util.objId(t),n[s]?n[s]:(i=[],n[s]=i,t.forEach((function(t,r){i[r]=e(t,n)})),i);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}}},languages:{extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var i in t)n[i]=t[i];return n},insertBefore:function(e,t,n,i){var s=(i=i||r.languages)[e],o={};for(var a in s)if(s.hasOwnProperty(a)){if(a==t)for(var l in n)n.hasOwnProperty(l)&&(o[l]=n[l]);n.hasOwnProperty(a)||(o[a]=s[a])}var c=i[e];return i[e]=o,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=o)})),o},DFS:function e(t,n,i,s){s=s||{};var o=r.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],i||a);var l=t[a],c=r.util.type(l);"Object"!==c||s[o(l)]?"Array"!==c||s[o(l)]||(s[o(l)]=!0,e(l,n,a,s)):(s[o(l)]=!0,e(l,n,null,s))}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var i={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),r.hooks.run("before-all-elements-highlight",i);for(var s,o=0;s=i.elements[o++];)r.highlightElement(s,!0===t,i.callback)},highlightElement:function(n,i,s){var o=r.util.getLanguage(n),a=r.languages[o];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+o;var l=n.parentNode;l&&"pre"===l.nodeName.toLowerCase()&&(l.className=l.className.replace(t,"").replace(/\s+/g," ")+" language-"+o);var c={element:n,language:o,grammar:a,code:n.textContent};function u(e){c.highlightedCode=e,r.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,r.hooks.run("after-highlight",c),r.hooks.run("complete",c),s&&s.call(c.element)}if(r.hooks.run("before-sanity-check",c),!c.code)return r.hooks.run("complete",c),void(s&&s.call(c.element));if(r.hooks.run("before-highlight",c),c.grammar)if(i&&e.Worker){var d=new Worker(r.filename);d.onmessage=function(e){u(e.data)},d.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else u(r.highlight(c.code,c.grammar,c.language));else u(r.util.encode(c.code))},highlight:function(e,t,n){var s={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",s),s.tokens=r.tokenize(s.code,s.grammar),r.hooks.run("after-tokenize",s),i.stringify(r.util.encode(s.tokens),s.language)},matchGrammar:function(e,t,n,s,o,a,l){for(var c in n)if(n.hasOwnProperty(c)&&n[c]){var u=n[c];u=Array.isArray(u)?u:[u];for(var d=0;d<u.length;++d){if(l&&l==c+","+d)return;var p=u[d],h=p.inside,f=!!p.lookbehind,m=!!p.greedy,v=0,g=p.alias;if(m&&!p.pattern.global){var y=p.pattern.toString().match(/[imsuy]*$/)[0];p.pattern=RegExp(p.pattern.source,y+"g")}p=p.pattern||p;for(var _=s,b=o;_<t.length;b+=t[_].length,++_){var w=t[_];if(t.length>e.length)return;if(!(w instanceof i)){if(m&&_!=t.length-1){if(p.lastIndex=b,!(S=p.exec(e)))break;for(var x=S.index+(f&&S[1]?S[1].length:0),C=S.index+S[0].length,k=_,A=b,$=t.length;k<$&&(A<C||!t[k].type&&!t[k-1].greedy);++k)x>=(A+=t[k].length)&&(++_,b=A);if(t[_]instanceof i)continue;O=k-_,w=e.slice(b,A),S.index-=b}else{p.lastIndex=0;var S=p.exec(w),O=1}if(S){f&&(v=S[1]?S[1].length:0);C=(x=S.index+v)+(S=S[0].slice(v)).length;var E=w.slice(0,x),D=w.slice(C),N=[_,O];E&&(++_,b+=E.length,N.push(E));var T=new i(c,h?r.tokenize(S,h):S,g,S,m);if(N.push(T),D&&N.push(D),Array.prototype.splice.apply(t,N),1!=O&&r.matchGrammar(e,t,n,_,b,!0,c+","+d),a)break}else if(a)break}}}}},tokenize:function(e,t){var n=[e],i=t.rest;if(i){for(var s in i)t[s]=i[s];delete t.rest}return r.matchGrammar(e,n,t,0,0,!1),n},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var i,s=0;i=n[s++];)i(t)}},Token:i};function i(e,t,n,r,i){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!i}if(e.Prism=r,i.stringify=function(e,t){if("string"==typeof e)return e;if(Array.isArray(e))return e.map((function(e){return i.stringify(e,t)})).join("");var n={type:e.type,content:i.stringify(e.content,t),tag:"span",classes:["token",e.type],attributes:{},language:t};if(e.alias){var s=Array.isArray(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(n.classes,s)}r.hooks.run("wrap",n);var o=Object.keys(n.attributes).map((function(e){return e+'="'+(n.attributes[e]||"").replace(/"/g,""")+'"'})).join(" ");return"<"+n.tag+' class="'+n.classes.join(" ")+'"'+(o?" "+o:"")+">"+n.content+"</"+n.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),i=n.language,s=n.code,o=n.immediateClose;e.postMessage(r.highlight(s,r.languages[i],i)),o&&e.close()}),!1),r):r;var s=r.util.currentScript();if(s&&(r.filename=s.src,s.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){function o(){r.manual||r.highlightAll()}var a=document.readyState;"loading"===a||"interactive"===a&&s&&s.defer?document.addEventListener("DOMContentLoaded",o):window.requestAnimationFrame?window.requestAnimationFrame(o):window.setTimeout(o,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),void 0!==tn&&(tn.Prism=t),t.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:(?!<!--)[^"'\]]|"[^"]*"|'[^']*'|<!--[\s\S]*?-->)*\]\s*)?>/i,greedy:!0},cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var s={};s[e]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,e),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",s)}}),t.languages.xml=t.languages.extend("markup",{}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/@[\w-]+/}},url:{pattern:RegExp("url\\((?:"+t.source+"|[^\n\r()]*)\\)","i"),inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+t.source+")*?(?=\\s*\\{)"),string:{pattern:t,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:e.languages.css}},alias:"language-css"}},n.tag))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&|\|\||[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?[.?]?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*(?:$|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&t.languages.markup.tag.addInlined("script","javascript"),t.languages.js=t.languages.javascript,"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(e){e=e||document;var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(e.querySelectorAll("pre[data-src]")).forEach((function(e){if(!e.hasAttribute("data-src-loaded")){for(var r,i=e.getAttribute("data-src"),s=e,o=/\blang(?:uage)?-([\w-]+)\b/i;s&&!o.test(s.className);)s=s.parentNode;if(s&&(r=(e.className.match(o)||[,""])[1]),!r){var a=(i.match(/\.(\w+)$/)||[,""])[1];r=n[a]||a}var l=document.createElement("code");l.className="language-"+r,e.textContent="",l.textContent="Loading…",e.appendChild(l);var c=new XMLHttpRequest;c.open("GET",i,!0),c.onreadystatechange=function(){4==c.readyState&&(c.status<400&&c.responseText?(l.textContent=c.responseText,t.highlightElement(l),e.setAttribute("data-src-loaded","")):c.status>=400?l.textContent="✖ Error "+c.status+" while fetching file: "+c.statusText:l.textContent="✖ Error: File does not exist or is empty")},c.send(null)}}))},document.addEventListener("DOMContentLoaded",(function(){self.Prism.fileHighlight()})))}));const An=Se({},void 0,{name:"AwCodeSnippet",functional:!0,props:{language:{type:String,default:"markup"}},render(e,{data:t,children:n,props:r,parent:i}){const s=ve(ve("","domProps.textContent",t),"0.text",n);let o="";try{o=kn.highlight(s,kn.languages[r.language],r.language)}catch(e){console.log(e)}return e("div",{staticClass:`${t.staticClass} overflow-auto relative`},[e("AwButton",{staticClass:"absolute top-0 right-0 mr-4 mt-4",props:{theme:"outline",size:"sm",color:"surface"},on:{click:()=>Cn(s)}},[i.$t("AwCodeSnippet.copy")]),e("pre",{staticClass:`pre min-h-xxs language-${r.language}`},[e("code",{staticClass:`language-${r.language}`,domProps:{innerHTML:o}})])])}},void 0,void 0,void 0,!1,void 0,void 0,void 0);var $n={props:{watchParams:{type:Array,default:null}},methods:{_fetchFromWatcher(){},fetchQuery(){const e={};return this.watchParams&&this.watchParams.forEach(t=>{const n=this.$route.query[t];n&&(e[t]=n)}),e}},created(){if(this.watchParams){const e=[];this.$once("hook:beforeDestroy",()=>{e.forEach(e=>{e()})}),this.watchParams.forEach(t=>{const n=this.$watch(`$route.query.${t}`,this._fetchFromWatcher);e.push(n)})}}};const Sn=Se({render:function(){var e=this.$createElement;return(this._self._c||e)(this.tag,{tag:"component"},[this._t("default",null,null,{data:this.data})],2)},staticRenderFns:[]},void 0,{name:"AwContentWrapper",mixins:[$n],props:{tag:{type:String,default:"div"},url:{type:String,required:!0}},data:()=>({data:null}),created(){this._fetchFromWatcher()},methods:{async _fetchFromWatcher(){const e=await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(this.fetchQuery())});this.data=await e.json()}}},void 0,!1,void 0,!1,void 0,void 0,void 0),On=(e,t=1)=>t===e?"w-full":`w-${t}/${e}`,En=(e,t=1)=>"number"==typeof e?`${On(e,t)}`:e?xe({default:1,...e}).reduce((e,[n,r])=>{const i="object"==typeof t?ve(1,n,t):t;return`${e} ${(e=>"default"===e?"":`${e}:`)(n)}${On(r,i)}`},""):"",Dn=(e,t)=>`block ${e} pt-${t} pl-${t}`;const Nn=Se({},void 0,{name:"AwGrid",functional:!0,props:{col:{type:[Number,Object],default:1},gap:{type:[Number],default:4}},render(e,{props:t,children:n=[],data:r}){const{col:i,gap:s}=t,o=Dn(En(i),s);return e("div",{staticClass:r.staticClass,class:r.calss},[e("div",{staticClass:`flex flex-wrap -ml-${s} -mt-${s}`},n.reduce((t,n)=>{if((({tag:e,text:t=""})=>!e&&!t.trim())(n))return t;let r=q("data.attrs.span",n);return r&&(r=isNaN(parseInt(r))?new Object(r):Number(r),delete n.data.attrs.span),t.concat(e("div",{staticClass:r?Dn(En(i,r),s):o},[n]))},[]))])}},void 0,void 0,void 0,!1,void 0,void 0,void 0),Tn=[{tag:"input",exclude:['[type="hidden"]']},{tag:"select"},{tag:"textarea"}],jn=["[data-enter-skip]","[disabled]"],Ln=Tn.map(({tag:e})=>e.toUpperCase()),Pn=Tn.map(({tag:e,exclude:t=[]})=>`${e}${jn.concat(t).map(e=>`:not(${e})`).join("")}`).join(", ");var Fn={methods:{_onEnterKeydown(e){const t=q("target",e),n=q("target.tagName",e);if(13!==q("keyCode",e)||-1===Ln.indexOf(n))return;const r=Array.from(this.$el.querySelectorAll(Pn)),i=r.indexOf(t);i<0||(e.preventDefault(),i===r.length-1||e.ctrlKey||e.shiftKey||e.metaKey?this._onEnterKeydownAction():r[i+1].focus())},_onEnterKeydownAction(){}}};const Mn=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",e._g({class:[e.className,{"is-loading":e.loading}],attrs:{method:e.method,action:e.url}},e.listeners),[e.errorsList.length?n("div",{staticClass:"px-4 py-2 text-sm bg-error mb-2 rounded"},e._l(e.errors,(function(t,r){return n("p",{key:r},[e._v("\n "+e._s(t)+"\n ")])})),0):e._e(),e._v(" "),e._t("default")],2)},staticRenderFns:[]},void 0,{name:"AwForm",_config:Ee,mixins:[Fn],props:{url:String,method:{type:String,default(){return ke(this,"method")},validator:e=>["get","post","delete","patch"].includes(e.toLowerCase())},className:{type:String,default(){return ke(this,"baseClass")}}},data:()=>({loading:!1,errors:null}),computed:{listeners(){return{mousedown:this._onSubmitBtnClick,submit:this._submit,keydown:this._onEnterKeydown,...this.$listeners}},errorsList(){return function(e){const n=t(e);return["Array","String"].includes(n)?0===e.length:"Object"===n?0===Object.keys(e).length:!!["Null","Undefined"].includes(n)}(this.errors)?[]:Object.values(this.errors).filter(Boolean)}},methods:{_onSubmitBtnClick(e){e.target&&e.target.closest('[type="submit"]')&&this.resetErrors()},_onEnterKeydownAction(){const e=this.$el.querySelector('[type="submit"]');e&&e.click()},_submit(){return ke(this,"submit",(function(){})).apply(this,arguments)},resetErrors(){const e=this.$el.elements;for(let t=0,n=e.length;t<n;t++){const n=e[t];"function"==typeof n.setCustomValidity&&(n.setCustomValidity(""),n.dispatchEvent(new Event("invalid")))}},setErrors(){return ke(this,"setErrors",(function(e){this.errors=e})).apply(this,arguments)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);let In=0;var Bn={inheritAttrs:!1,props:{label:{type:String,default:""},id:{type:String,default:""},enterSkip:Boolean},data:()=>({defaultId:`input-${In++}`}),computed:{wrapperClasses:()=>null,mergedListeners(){return this.$listeners},skipAttr(){return{"data-enter-skip":this.enterSkip?"":null}}},methods:{focus(){this.$refs.element&&this.$refs.element.focus()}}};let Rn=0;var Vn={props:{error:String},data:()=>({errorId:`error-${Rn++}`,errorText:"",hasError:!1}),computed:{_tooltipOffset:()=>[0,-6],errorTooltip(){return this.errorText?{id:this.errorId,onclick:this._onErrorClick,content:this.errorText,class:"bg-error",offset:this._tooltipOffset}:null}},watch:{error:{handler(e){this.setError(e)},immediate:!0}},methods:{setError(e){this.errorText=e,this.hasError=!!e,e||this._resetCustomError()},_getElement(){return this.$refs.element},_onInvalid(e){e.preventDefault(),this.setError(e.target.validationMessage)},_onErrorClick(){this.errorText="";const e=this._getElement();e&&(e.focus(),this._resetCustomError(e))},_resetCustomError(e=this._getElement()){e&&"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}}},zn={mixins:[Bn,Vn],props:{value:{default:""}},data(){return{inputValue:this.value,autoFilled:!1}},computed:{wrapperClasses(){return[{"is-filled":this.autoFilled||!pe(this.inputValue)&&""!==this.inputValue},{"has-label":!!this.label},{"has-error":this.hasError},{"is-disabled":this.isDisabled}]},isDisabled(){switch(typeof this.$attrs.disabled){case"undefined":return!1;case"boolean":return this.$attrs.disabled;case"string":return!0;default:return!!this.$attrs.disabled}},mergedListeners(){return{...this.$listeners,input:this._onInput,change:this._onInput,invalid:this._onInvalid,animationstart:this._autoFillHack}}},watch:{value:{handler(e){this.inputValue=e},immediate:!0}},methods:{_onInput(e){let t=e.target.value;this.inputValue=t,this.hasError&&this.setError(""),this.$emit(e.type,t)},_autoFillHack(e){switch(e.animationName){case"autoFillStart":this.autoFilled=!0;break;case"autoFillEnd":this.autoFilled=!1}}}};const qn=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.elClasses.base,"is-"+e.type].concat(e.wrapperClasses,[{"has-icon":e.$slots.icon}])},[n("input",e._g(e._b({directives:[{name:"tooltip",rawName:"v-tooltip.show.prepend",value:e.errorTooltip,expression:"errorTooltip",modifiers:{show:!0,prepend:!0}}],ref:"element",class:[e.elClasses.el,e.paddingClass],attrs:{id:e.id||e.defaultId,"aria-describedby":e.errorText?e.errorId:null}},"input",Object.assign({},{type:e.type,value:e.inputValue},e.skipAttr,e.$attrs),!1),e.mergedListeners)),e.label?n("label",{class:e.elClasses.label,attrs:{for:e.id||e.defaultId}},[e._v("\n "+e._s(e.label)+"\n ")]):e._e(),e._v(" "),e.$slots.icon?n("span",{class:e.elClasses.icon},[e._t("icon")],2):e._e()])},staticRenderFns:[]},void 0,{name:"AwInput",_config:De,mixins:[zn],props:{type:{type:String,default:"text",validator:e=>!["checkbox","radio","date"].includes(e)||(console.error(`Use <fb-${e}> instead`),!1)},size:{type:String,default:"md",validator:e=>!!De.sizes.includes(e)||(console.error(`You must use only one from ${De.sizes.join(", ")}`),!1)}},computed:{elClasses(){let e=this.$options._config.baseClass;return{base:e,el:`${e}__element`,label:`${e}__label`,icon:`${e}__icon`}},paddingClass(){return"md"===this.size?"p-3":"p-2"}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Hn=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aw-switch-field is-checkbox",class:e.wrapperClasses},[e._t("default",[n("input",e._g(e._b({directives:[{name:"tooltip",rawName:"v-tooltip:top-start.show.prepend",value:e.errorTooltip,expression:"errorTooltip",arg:"top-start",modifiers:{show:!0,prepend:!0}}],staticClass:"aw-switch-field__element",attrs:{type:"checkbox",id:e.id||e.defaultId,"aria-describedby":e.errorText?e.errorId:null}},"input",Object.assign({},{value:e.value,checked:e.isChecked},e.skipAttr,e.$attrs),!1),e.mergedListeners)),e.label?n("label",{staticClass:"aw-switch-field__label",attrs:{for:e.id||e.defaultId}},[e._t("label",[e._v("\n "+e._s(e.label)+"\n ")],null,{label:e.label,value:e.value,isChecked:e.isChecked})],2):e._e()],null,{id:e.id||e.defaultId,checked:e.isChecked,onChange:e._onChange,setError:e.setError,value:e.value})],2)},staticRenderFns:[]},void 0,{name:"AwCheckbox",mixins:[Bn,Vn],model:{prop:"checked",event:"change"},props:{value:{type:String,default:"on"},checked:{type:[Array,Boolean,Number],default:!1}},computed:{_tooltipOffset:()=>null,wrapperClasses(){return{"fb-field":!this.$slots.default,"has-error":this.hasError}},isChecked(){return Array.isArray(this.checked)?this.checked.includes(this.value):!!this.checked},mergedListeners(){return{...this.$listeners,change:this._onChange,invalid:this._onInvalid}}},methods:{_onChange(e){let t=this._createValue(e.target.checked);void 0!==t&&(this.hasError&&this.setError(""),this.$emit("change",t))},_createValue(e){if(!Array.isArray(this.checked))return"number"==typeof this.checked?Number(e):e;{let t=this.checked.indexOf(this.value);if(e&&-1===t)return this.checked.concat(this.value);if(!e&&t>-1){let e=this.checked.slice();return t>-1&&e.splice(t,1),e}}}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Un=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aw-date",on:{click:e.onDateClick}},[n("AwInput",e._b({attrs:{value:e.inputValue,readonly:""},on:{focus:function(t){e.isOpened=!0},click:function(t){t.stopPropagation(),e.isOpened=!0}}},"AwInput",Object.assign({},e.$attrs,{label:e.label,id:e.id}),!1)),e._v(" "),n("AwDropdown",{ref:"dropdown",staticClass:"aw-date__dropdown",attrs:{show:e.isOpened,"close-on-action":!1},on:{"update:show":function(t){e.isOpened=t}}},e._l(e.views,(function(t){var r=t.key,i=t.month,s=t.year,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(t,["key","month","year"]);return n("div",{key:r,staticClass:"aw-calendar aw-date__calendar"},[n("AwCalendarNav",e._g({attrs:{month:i,year:s,"disabled-prev":o.disabledPrev,"disabled-next":o.disabledNext}},o.navListeners)),e._v(" "),n("AwCalendarWeekdays",{attrs:{"weekday-names":e.$t("AwCalendar.weekdaysShort")}}),e._v(" "),n("AwCalendarDays",{attrs:{month:i,year:s,"day-disabled":o.dayDisabled,"day-class":o.dayClass}})],1)})),0)],1)},staticRenderFns:[]},void 0,{name:"AwDate",components:{AwCalendarNav:ln,AwCalendarWeekdays:cn,AwCalendarDays:dn},mixins:[Bn,an],props:{format:{type:String,default(){return this.$t("AwDate.format")}}},data:()=>({isOpened:!1,maxViews:1}),computed:{inputValue(){const e=[];return this._startDayjs&&e.push(this._startDayjs),this._endDayjs&&e.push(this._endDayjs),e.map(e=>e.format(this.format)).join(" - ")},views(){const e=[],t=Math.min(this.maxViews,this.range?2:1);let n=0;for(;n<t;){const r=this.viewDate.add(n,"month"),i={key:r.toString(),month:r.month(),year:r.year(),navListeners:{},dayDisabled:this._isDisabled,dayClass:this._getDayClass};0===n&&(i.disabledPrev=this._minDayjs&&r.isSame(this._minDayjs,"month"),i.navListeners["click:prev"]=()=>this.shiftMonth(-1)),n===t-1&&(i.disabledNext=this._maxDayjs&&r.isSame(this._maxDayjs,"month"),i.navListeners["click:next"]=()=>this.shiftMonth(1)),e.push(i),n+=1}return e}},watch:{value(e){null!==e&&this.isOpened&&(this.isOpened=!1)},maxViews(){this.$nextTick(this.$refs.dropdown.update)},isOpened(e){this.$nextTick(()=>{this._checkMaxViews(),this._toggleMaxViewsListener(!0)}),e||(this.tempValue=null,this.hoverValue=null)}},beforeDestroy(){clearTimeout(this._tmMaxViews),this._toggleMaxViewsListener(!1)},methods:{_checkMaxViews(){const e=this.$el,t=e&&e.querySelector(".aw-date__calendar");e&&t&&(this.maxViews=Math.floor(e.clientWidth/t.clientWidth)||1)},_checkMaxViewsOnResize(){clearTimeout(this._tmMaxViews),this._tmMaxViews=setTimeout(this._checkIsSingle,300)},_toggleMaxViewsListener(e=!1){window[e?"addEventListener":"removeEventListener"]("resize",this._checkMaxViewsOnResize)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Wn=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aw-switch-field is-radio",class:e.wrapperClasses},[n("input",e._g(e._b({directives:[{name:"tooltip",rawName:"v-tooltip:top-start.show.prepend",value:e.errorTooltip,expression:"errorTooltip",arg:"top-start",modifiers:{show:!0,prepend:!0}}],staticClass:"aw-switch-field__element",attrs:{type:"radio",id:e.id||e.defaultId,"aria-describedby":e.errorText?e.errorId:null}},"input",Object.assign({},{value:e.value,checked:e.isChecked},e.skipAttr,e.$attrs),!1),e.mergedListeners)),e.label?n("label",{staticClass:"aw-switch-field__label",attrs:{for:e.id||e.defaultId}},[e._t("label",[e._v("\n "+e._s(e.label)+"\n ")],null,{label:e.label,value:e.value,isChecked:e.isChecked})],2):e._e()])},staticRenderFns:[]},void 0,{name:"AwRadio",mixins:[Bn,Vn],model:{prop:"checked",event:"change"},props:{value:{type:[String,Number],default:"on"},checked:[String,Number]},computed:{_tooltipOffset:()=>null,wrapperClasses(){return{"has-error":this.hasError}},isChecked(){return this.checked===this.value},mergedListeners(){return{...this.$listeners,change:this._onChange,invalid:this._onInvalid}}},methods:{_onChange(){this.hasError&&this.setError(""),this.$emit("change",this.value)}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Yn=["input","textarea"];const Zn=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("AwInput",e._b({ref:"input",attrs:{size:"sm",autocomplete:"off",placeholder:e.placeholder},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e._setSearchImmediate(t))}},scopedSlots:e._u([{key:"icon",fn:function(){return[e.$route.query[e.param]?n("button",{staticClass:"focus:outline-none",on:{click:e._clear}},[n("AwIcon",{staticClass:"h-full w-10 p-3",attrs:{name:"close"}})],1):n("AwIcon",{staticClass:"h-full w-10 p-3",attrs:{name:"search"}})]},proxy:!0}]),model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},"AwInput",e.$attrs,!1))},staticRenderFns:[]},void 0,{name:"AwSearch",data:()=>({text:""}),props:{param:{type:String,default:"search"},debounce:{type:Number,default:400},globalKeyBind:{type:[String,Boolean],default:"/",validator:e=>"string"!=typeof e||e.length<2}},computed:{placeholder(){const e=this.$t("AwSearch.text");return this.globalKeyBind?e+this.$t("AwSearch.keyBind",{key:this.globalKeyBind}):e}},watch:{text:function(e){e!==(this.$route.query[this.param]||"")&&(clearTimeout(this._tm),this._tm=setTimeout(this._setSearchParam,this.debounce,e))},"$route.query":{immediate:!0,handler(e){clearTimeout(this._tm),this.text=e[this.param]||""}},globalKeyBind:{immediate:!0,handler(e,t){!this.$isServer&&e?this._toggleKeyBind(!0):t&&this._toggleKeyBind(!1)}}},beforeDestroy(){clearTimeout(this._tm)},methods:{_setSearchParam(e){this.$router.replace(Ve({[this.param]:e},this.$route)).catch(e=>{console.log(e)})},_setSearchImmediate(e){clearTimeout(this._tm),this._setSearchParam(e.target.value)},_clear(){this._setSearchParam(""),this.$refs.input.focus()},_toggleKeyBind(e=!1){e&&this.globalKeyBind?(document.addEventListener("keydown",this._globalKeyListener),this.$once("hook:beforeDestroy",this._toggleKeyBind)):document.removeEventListener("keydown",this._globalKeyListener)},_globalKeyListener(e={}){if(e.key!==this.globalKeyBind)return;const t=document.activeElement;t&&-1!==Yn.indexOf(t.tagName.toLowerCase())||(e.preventDefault(),e.stopPropagation(),this.$refs.input.focus())}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Kn=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aw-switch-field is-switcher",class:e.wrapperClasses},[e._t("default",[n("input",e._b({ref:"element",staticClass:"aw-switch-field__element sr-only",attrs:{type:"checkbox",id:e.id||e.defaultId,"aria-describedby":e.errorText?e.errorId:null},on:{change:e._onChange}},"input",Object.assign({},{value:e.value,checked:e.isChecked},e.skipAttr,e.$attrs),!1)),e.label?n("label",{staticClass:"aw-switch-field__label",attrs:{for:e.id||e.defaultId}},[e._t("label",[e._v("\n "+e._s(e.label)+"\n ")],null,{label:e.label,value:e.value,isChecked:e.isChecked})],2):e._e(),e._v(" "),n("div",{directives:[{name:"tooltip",rawName:"v-tooltip:top-start.show.prepend",value:e.errorTooltip,expression:"errorTooltip",arg:"top-start",modifiers:{show:!0,prepend:!0}}],staticClass:"aw-switch-field__switch",attrs:{"aria-hidden":"true"},on:{mousedown:e._onPointerDown,touchstart:e._onPointerDown}},[n("span",{staticClass:"aw-switch-field__toggle"})])],null,{id:e.id||e.defaultId,checked:e.isChecked,onChange:e._onChange,setError:e.setError,value:e.value})],2)},staticRenderFns:[]},void 0,{name:"AwSwitcher",extends:Hn,mixins:[Bn],data:()=>({startPos:null,isTouch:!1,isSwitched:!1}),methods:{_onChange(e){let t=this._createValue(e.target.checked);void 0!==t&&(this.hasError&&this.setError(""),this.$emit("change",t))},_onPointerDown(e){const t=Object.keys(this.$attrs).includes("disabled")&&(this.$attrs.disabled||!this.$attrs.disabled.length),n=!!this.errorText;null!==this.startPos||t||n||(this.startPos=e.screenX,this.isTouch="touchstart"===e.type,this.isSwitched=!1,this._toggleListeners(!0,this.isTouch))},_onPointerMove(e){const t=this.$refs.element,n=e.screenX-this.startPos;t.checked&&n<-5?(t.checked=!1,this.isSwitched=!0):!t.checked&&n>5&&(t.checked=!0,this.isSwitched=!0)},_onPointerUp(e){const t=this.$refs.element,n=Math.abs(e.screenX-this.startPos);this.isSwitched?setTimeout(()=>this._onChange({target:{checked:t.checked}}),10):n<5&&(t.checked=!t.checked,this._onChange({target:{checked:t.checked}})),this._toggleListeners(!1,this.isTouch),this.startPos=null},_toggleListeners(e=!1,t=!1){[{type:t?"touchmove":"mousemove",handler:this._onPointerMove},{type:t?"touchend":"mouseup",handler:this._onPointerUp}].forEach(({type:t,handler:n})=>{window[e?"addEventListener":"removeEventListener"](t,n)})}},beforeDestroy(){this._toggleListeners(!1,this.isTouch)}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Xn=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aw-text-field is-textarea",class:e.wrapperClasses},[n("textarea",e._g(e._b({directives:[{name:"tooltip",rawName:"v-tooltip.show.prepend",value:e.errorTooltip,expression:"errorTooltip",modifiers:{show:!0,prepend:!0}}],ref:"element",staticClass:"aw-text-field__element p-3",attrs:{id:e.id||e.defaultId,"aria-describedby":e.errorText?e.errorId:null}},"textarea",Object.assign({},{value:e.inputValue},e.skipAttr,e.$attrs),!1),e.mergedListeners)),e.label?n("label",{staticClass:"aw-text-field__label",attrs:{for:e.id||e.defaultId}},[e._v("\n "+e._s(e.label)+"\n ")]):e._e()])},staticRenderFns:[]},void 0,{name:"AwTextarea",mixins:[zn]},void 0,!1,void 0,!1,void 0,void 0,void 0);const Gn=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aw-timeline-builder"},[e._l(e.items,(function(t,r){var i=t.title,s=t.subtitle,o=t.author,a=t.createdAt;return n("div",{key:"item-"+r,staticClass:"flex",class:{"mt-2":r}},[n("div",{staticClass:"w-6 flex flex-col items-center",attrs:{"aria-hidden":"true"}},[n("AwIcon",{staticClass:"text-error mt-1 mb-2",attrs:{name:"circle",size:"sm"}}),e._v(" "),n("div",{staticClass:"w-px flex-grow bgcolor-overlay opacity-20"})],1),e._v(" "),n("div",{staticClass:"pl-2 pb-4"},[e._t("default",[n("div",{staticClass:"font-bold"},[e._v(e._s(i))]),e._v(" "),n("div",{staticClass:"mb-2"},[e._v(e._s(s))]),e._v(" "),o?n("div",{staticClass:"flex items-center"},[n("AwAvatar",{staticClass:"w-5",attrs:{src:o.avatar,name:o.fullName}}),e._v(" "),n("span",{staticClass:"ml-2 opacity-50"},[e._v("\n "+e._s(o.fullName)+"\n ")])],1):e._e(),e._v(" "),n("div",{staticClass:"text-xs mt-2 opacity-50"},[e._v("\n "+e._s(a)+"\n ")])],null,{title:i,subtitle:s,author:o,createdAt:a})],2)])})),e._v(" "),n("AwLink",{staticClass:"text-sm text-overlay opacity-50 ml-3 mt-3",on:{click:e.fetch}},[e._v("\n "+e._s(e.$t("AwTimelineBuilder.more"))+"\n ")])],2)},staticRenderFns:[]},void 0,{name:"AwTimelineBuilder",props:{collection:{type:Object,required:!0,validator:e=>Array.isArray(e.models)&&"function"==typeof e.fetch&&"function"==typeof e.on}},data:()=>({items:[],page:0}),mounted(){this.$nextTick(this.fetch)},methods:{async fetch(){++this.page;const{response:{data:{data:e}}}=await this.collection.fetch({params:{page:this.page}});this.items=[...this.items,...e]}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Jn=/-/g;const Qn=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"tooltip",rawName:"v-tooltip.show.prepend",value:e.errorTooltip,expression:"errorTooltip",modifiers:{show:!0,prepend:!0}}],staticClass:"flex items-center -mx-1",class:e.wrapperClasses},[n("input",e._g(e._b({ref:"element",staticClass:"sr-only",attrs:{tabindex:"-1"},domProps:{value:e.cleanValue}},"input",e.$attrs,!1),e.mergedListeners)),e._v(" "),e._l(e.pattern,(function(t,r){return["-"===t?n("span",{key:"d-"+r,staticClass:"mx-1"},[e._v("-")]):n("div",{key:"i-"+r,staticClass:"mx-1 flex-1"},[n("input",e._b({ref:"fields",refInFor:!0,class:[e.elClasses.element,"text-center p-3"],attrs:{type:"tel",inputmode:"numeric",pattern:"[0-9]*",maxlength:"1",autocomplete:"off"},domProps:{value:e.codeValue[r]},on:{input:function(t){return e._onInput(t,r)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])?null:"button"in t&&0!==t.button?null:e._focus(t.target,-1)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])?null:"button"in t&&2!==t.button?null:e._focus(t.target)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"backspace",void 0,t.key,void 0)?null:e._focus(t.target,-1)}],paste:function(t){return t.preventDefault(),e._onPaste(t)}}},"input",e.skipAttr,!1))])]}))],2)},staticRenderFns:[]},void 0,{name:"AwCode",_config:{baseClass:"aw-text-field",pattern:"XXX-XXX"},mixins:[Bn,Vn],props:{className:{type:String,default(){return ke(this,"baseClass")}},pattern:{type:String,default(){return ke(this,"pattern")}}},data(){return{codeValue:this.pattern.split("").map(e=>Jn.test(e)?"-":"")}},computed:{mergedListeners(){return{...this.$listeners,focus:this._focus,invalid:this._onInvalid}},inputValue:{get(){return this.codeValue.join("")},set(e){e=e.trim();for(let t=0,n=0,r=this.pattern.length;t<r;t++)Jn.test(this.pattern[t])||(this.$set(this.codeValue,t,e[n]),n++)}},cleanValue(){return this.inputValue.replace(Jn,"")},elClasses(){return Me(this.className,["element"])},wrapperClasses(){return[this.className,{"has-error":this.hasError}]},length(){return this.pattern.replace(Jn,"").length}},watch:{codeValue(){this.$emit("input",this.cleanValue),this.cleanValue.length===this.length&&this.$emit("change",this.cleanValue)}},methods:{_onInput(e,t){const n=e.target,r=n.value.replace(/\D/g,"");n.value=r,this.$set(this.codeValue,t,r),r.length===n.maxLength&&this._focus(n),this.hasError&&this.setError("")},_focus(e,t=1){const n=this.$refs.fields.indexOf(e)+t,r=this.$refs.fields[n];r&&setTimeout(()=>{r.focus(),r.setSelectionRange(0,r.value.length)},10)},_onPaste(e){this.inputValue=e.clipboardData.getData("text")}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const er=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("AwInput",e._g(e._b({scopedSlots:e._u([{key:"icon",fn:function(){return[n("AwButton",{key:"eye",attrs:{theme:"icon"},on:{click:function(t){e.type=e.isShown?"password":"text"}}},[n("Transition",{attrs:{name:"fade-from-bottom",mode:"out-in"}},[e.isShown?n("AwIcon",{key:"hide",attrs:{name:"eye-no"}}):n("AwIcon",{key:"show",attrs:{name:"eye"}})],1)],1)]},proxy:!0}])},"AwInput",Object.assign({},e.$props,e.$attrs,{type:e.type}),!1),e.$listeners))},staticRenderFns:[]},void 0,{name:"FbPassword",mixins:[zn],data:()=>({type:"password"}),computed:{isShown(){return"text"===this.type}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const tr=Se({},void 0,{name:"AwTel",inheritAttrs:!1,mixins:[Vn],data:()=>({VueTelInput:null}),mounted(){this.loadTelInput().then(()=>{this.VueTelInput=window.VueTelInput.VueTelInput,this.$nextTick(this.bindErrorListener)})},beforeDestroy(){this.VueTelInput&&this.bindErrorListener(!1)},render(e){return this.VueTelInput?e("div",{staticClass:"aw-text-field is-tel",class:{"has-error":this.hasError}},[e(this.VueTelInput,{props:{...this.$attrs,placeholder:this.$attrs.label||this.$attrs.placeholder,inputClasses:"aw-text-field__element p-3"},on:{...this.$listeners,input:this._onInputProxy},directives:[{name:"tooltip",value:this.errorTooltip,modifiers:{show:!0,prepend:!0}}]})]):e("AwInput",{attrs:{type:"tel",...this.$attrs}})},methods:{loadTelInput:()=>window.VueTelInput?Promise.resolve():mn(["https://unpkg.com/vue-tel-input"],"vue-tel-input",{returnPromise:!0}),bindErrorListener(e=!0){const t=e?"addEventListener":"removeEventListener";this._getElement()[t]("invalid",this._onInvalid)},_getElement(){return this.$el&&this.$el.querySelector('input[type="tel"]')},_onInputProxy(e){this.hasError&&e&&this.setError(""),this.$emit("input",...arguments)}}},void 0,void 0,void 0,!1,void 0,void 0,void 0);function nr(e){this.message=e}nr.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},nr.prototype.__CANCEL__=!0;var rr=nr;function ir(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new rr(e),t(n.reason))}))}ir.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},ir.source=function(){var e;return{token:new ir((function(t){e=t})),cancel:e}};var sr=ir,or=function(e){return!(!e||!e.__CANCEL__)};const ar=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative",on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e._arrowFocusItem(-1,t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e._arrowFocusItem(1,t)}],click:e._selectOnClick}},[n("AwInput",e._b({ref:"input",class:{"is-filled":e.searchable&&e.isOpened},attrs:{value:e._inputValue,label:e.label,placeholder:e._selectedLabel,readonly:!e.searchable,autocomplete:"off","data-arrow-focus":""},on:{focus:e._onFocus,blur:e._onBlur,input:e._applySearch,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._selectOnEnter(t)}},scopedSlots:e._u([e.multiple&&e.selectedIndexes.length?{key:"element",fn:function(){return[e._v("\n "+e._s(e.selectedIndexes)+"\n ")]},proxy:!0}:null,{key:"icon",fn:function(){return[e.clearable?n("AwButton",{directives:[{name:"show",rawName:"v-show",value:!e.isOpened&&e.selectedIndexes.length,expression:"!isOpened && selectedIndexes.length"}],attrs:{icon:"close",theme:"icon"},on:{click:function(t){e.selectedIndexes=[]}}}):e._e(),e._v(" "),n("AwButton",{attrs:{tabindex:"-1",theme:"icon"},on:{click:e.toggleDropdown}},[e.isLoading?n("AwIcon",{key:"loader",staticClass:"text-brand animation-rotate",attrs:{name:"loader",size:"xl"}}):n("AwIcon",{key:"arrow",staticClass:"transition-200",class:{"rotate-180":e.isOpened},attrs:{name:"triangle-d",size:"xl"}})],1)]},proxy:!0}],null,!0)},"AwInput",e.$attrs,!1)),e._v(" "),n("AwDropdown",{ref:"dropdown",staticClass:"w-full",attrs:{show:e.isOpened,"close-outside":!1},on:{"update:show":function(t){e.isOpened=t}}},[e._t("dropdown",[e._showNotEqual?n("AwDropdownButton",{attrs:{tabindex:"-1","data-arrow-focus":""},on:{click:e._onClickNotEqual}},[e._t("not-equal",null,{searchPhrase:e.searchPhrase})],2):e._e(),e._v(" "),e.optionsList.length?e._l(e.optionsList,(function(t,r){var i=t.optionLabel,s=t.index,o=t.active;return n("AwDropdownButton",{key:i+"-"+s,attrs:{active:o,"data-select-index":s,tabindex:"-1","data-arrow-focus":""}},[e._t("option-label",[e._v("\n "+e._s(i)+"\n ")],null,Object.assign({},e.optionsList[r],{searchPhrase:e.searchPhrase}))],2)})):n("AwDropdownButton",{attrs:{tabindex:"-1","data-arrow-focus":""},on:{click:e._selectOnEnter}},[e._t("not-found",[e._v("\n "+e._s(e.$t("AwSelect.notFound"))+"\n ")],{searchPhrase:e.searchPhrase})],2)],null,{optionsList:e.optionsList,isOpened:e.isOpened})],2)],1)},staticRenderFns:[]},void 0,{inheritAttrs:!1,name:"AwSelect",components:{AwIcon:Ne,AwInput:qn,AwButton:Ie,AwDropdown:Qt,AwDropdownButton:en},mixins:[yn],props:{options:{type:[Array,Function],default:()=>[]},label:{type:String,default:""},value:{default:null},optionLabel:{type:String,default:""},trackBy:{type:String,default:""},searchable:{type:Boolean,default:!0},clearable:Boolean,maxSearchItems:{type:Number,default:100},multiple:Boolean,multipleSeparator:{type:String,default:", "},searchPreload:{type:[Array,Object,Boolean],default:!0},searchMin:{type:Number,default:0},debounce:{type:Number,default:400}},data:()=>({isOpened:!1,isSearching:!1,searchPhrase:"",selectOptions:[],cancellation:null,isLoading:!1}),computed:{selectedIndexes:{get(){if(pe(this.value))return[];return(Array.isArray(this.value)?this.value:[this.value]).reduce((e,t)=>{const n=this.selectOptions.findIndex(e=>this._getValue(e)===t);return-1===n?e:e.concat(n)},[])},set(e){if(!Array.isArray(e))return;const t=e.reduce((e,t)=>{const n=this.selectOptions[t];return pe(n)?e:e.concat(n)},[]),n=t.map(this._getValue);this.multiple?this.$emit("input",n,t):this.$emit("input",n[0],t[0]),this._close()}},optionsList(){return this.selectOptions.reduce((e,t,n)=>{const r=this.selectedIndexes.includes(n),i=e.length<this.maxSearchItems,s=!this._hasInternalSearch||this._matchSearch(t);return i&&s?e.concat({option:t,optionLabel:this._getLabel(t),index:n,active:r}):e},[])},_selectedLabel(){return this.selectedIndexes.map(e=>this._getLabel(this.selectOptions[e])).join(this.multipleSeparator)},_inputValue(){return this.isSearching?this.searchPhrase:this._selectedLabel},_optionSearchRegEx(){return this._hasInternalSearch&&new RegExp(this.searchPhrase,"i")},_isAjax(){return"function"==typeof this.options},_hasInternalSearch(){return!this._isAjax&&this.searchable&&!this.$listeners.search},_showNotEqual(){return!(!this.searchPhrase||!this.selectOptions.length||!this.$slots["not-equal"]&&!this.$scopedSlots["not-equal"]||this.selectOptions.find(e=>this._getLabel(e)===this.searchPhrase))}},watch:{value(){this.$refs.input.setError()},isOpened(e){e?(this.searchPhrase="",this.isSearching=!!this.searchable,this._toggleOutsideHandler(!0),!this.selectedIndexes.length&&this._isAjax&&this.searchPreload&&this._preloadOptions()):(this.isSearching=!1,this._toggleOutsideHandler(!1),this.cancelRequest())}},created(){if(!this._isAjax){const e=this.$watch("options",{handler(e){this.selectOptions=e},immediate:!0});this.$once("hook:beforeDestroy",e)}if(this.searchable){const e=this.$watch("searchPhrase",()=>{this.$nextTick(()=>{this.$refs.dropdown.update()})});this.$once("hook:beforeDestroy",e)}},mounted(){this._isAjax&&this.searchPreload&&this._preloadOptions()},beforeDestroy(){clearTimeout(this._tm),this._toggleOutsideHandler(!1)},methods:{_getLabel(e){return this.optionLabel?q(this.optionLabel,e):e},_getValue(e){return this.trackBy?q(this.trackBy,e):e},_matchSearch(e){return this._optionSearchRegEx.test(this._getLabel(e))},_applySearch(e){this.searchPhrase=e,this.$refs.dropdown.update(),this.$listeners.search&&this.$emit("search",e),this._isAjax&&(clearTimeout(this._tm),e.length>this.searchMin?this._tm=setTimeout(this.fetch,this.debounce):(this.cancelRequest(),!e.length&&this._preloadOptions()))},toggleDropdown(){this.isOpened?this.isOpened=!1:this.$refs.input.focus()},_onFocus(){this.isOpened||setTimeout(()=>{this.isOpened=!0},5)},_onBlur(e){this.$el.contains(e.relatedTarget)||(this.isOpened=!1)},_selectIndex(e){if(this.multiple){const t=this.selectedIndexes;-1!==t.indexOf(e)?this.selectedIndexes=t.filter(t=>t!==e):this.selectedIndexes=t.concat(e)}else this.selectedIndexes=[e]},_selectOnClick(e){let t=e.target;t.hasAttribute("data-select-index")||(t=t.closest("[data-select-index]")),t&&(e.stopPropagation(),e.preventDefault(),this._selectIndex(parseInt(t.getAttribute("data-select-index"))))},_selectOnEnter(){if(!this.searchPhrase)return this.isOpened=!1,void this._close();const e=this.optionsList[0];e?this._selectIndex(e.index):(this.isOpened=!1,this.$emit("not-found",this.searchPhrase),this.selectedIndexes=[])},_onClickNotEqual(){this.isOpened=!1,this.selectedIndexes=[],this.$emit("not-equal",this.searchPhrase)},_onClickOutside(e){this.$el.contains(e.target)||(this.isOpened=!1)},_toggleOutsideHandler(e=!1){const t=e?"addEventListener":"removeEventListener";document.body[t]("click",this._onClickOutside)},_close(){this.isOpened=!1,"undefined"!=typeof document&&document.activeElement&&document.activeElement.blur()},_preloadOptions(){switch(typeof this.searchPreload){case"boolean":this.searchPreload&&this.fetch().then(()=>{this.$emit("preloaded",this.selectOptions)});break;case"object":this.selectOptions=Array.isArray(this.searchPreload)?this.searchPreload:[this.searchPreload]}},toggleLoader(e=!1){e?this._ltm=setTimeout(()=>{this.isLoading=!0},200):(clearTimeout(this._ltm),this.isLoading=!1)},async fetch(){this.cancelRequest(),this.toggleLoader(!0),this.cancellation=sr.source();try{const e=this.options(encodeURIComponent(this.searchPhrase)),{data:t}=await this.$axios.request({cancelToken:this.cancellation.token,method:"get",url:e});this.selectOptions=ve([],"data",t)}catch(e){or(e)||console.log(e)}finally{this.toggleLoader(!1),this.cancellation=null}},cancelRequest(){this.cancellation&&this.cancellation.cancel()}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const lr=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative"},[n("AwInput",e._b({attrs:{autocomplete:"off"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}},"AwInput",e.$attrs,!1)),e._v(" "),n("AwDropdown",{staticClass:"w-full z-10",attrs:{show:!!e.suggestions.length,"close-on-action":""}},[n("AwGrid",{attrs:{col:1,gap:0}},[e._l(e.suggestions,(function(t){return n("AwButton",{key:t.place_id,staticClass:"w-full text-left",attrs:{icon:"location",theme:"toggle"},on:{click:function(n){return e.select(t)}}},[e._v("\n "+e._s(t.description)+"\n ")])})),e._v(" "),n("img",{staticClass:"block mr-4 my-2 ml-auto",attrs:{"aria-hidden":"true",src:"https://maps.gstatic.com/mapfiles/api-3/images/powered-by-google-on-white3.png",alt:""}})],2)],1),e._v(" "),n("div",{ref:"place"})],1)},staticRenderFns:[]},void 0,{name:"AwAddress",mixins:[{props:{gmKey:{type:String,required:!0},gmLibraries:{type:Array,default:()=>["places"]},gmLanguage:{type:String,default:""}},computed:{gmLibUrl(){const e={key:this.gmKey,libraries:this.gmLibraries.join(","),language:this.gmLanguage};return`//maps.googleapis.com/maps/api/js?${he("&",te(he("="),xe(V(I(me,de),e))))}`}},methods:{gmInit(){return mn([this.gmLibUrl],"google-maps",{returnPromise:!0})},isGmInited:()=>mn.isDefined("google-maps")}}],props:{queryOptions:{type:Object,default:null}},data:()=>({autocomplete:null,placesService:null,sessionToken:null,suggestions:[],placeDescription:"",place:null}),computed:{search:{get(){return this.placeDescription},set(e){this.placeDescription=e,this.autocomplete&&(e?this._query(e):this._resetSearch())}}},mounted(){this.$nextTick(this.init)},methods:{async init(){this.isGmInited()||await this.gmInit(),this.autocomplete=new window.google.maps.places.AutocompleteService,this.placesService=new window.google.maps.places.PlacesService(this.$refs.place),this.placeDescription&&this._query(this.placeDescription)},_query(e){this.sessionToken||(this.sessionToken=new window.google.maps.places.AutocompleteSessionToken),this.autocomplete.getPlacePredictions({...this.queryOptions,sessionToken:this.sessionToken,input:e},this._setSuggestions)},_setSuggestions(e){this.suggestions=e||[]},_resetSearch(){this.suggestions=[],this.sessionToken=null},_formatAddressResponse(e){if(e&&e.address_components){const t={};return e.address_components.forEach(({long_name:e,types:n})=>{t[n[0]]=e}),t.location=e.geometry.location,t}return null},select(e){if(!e||!e.place_id)return this.place=null,void(this.placeDescription="");this.placesService.getDetails({placeId:e.place_id,sessionToken:this.sessionToken},e=>{this.place=e,this.placeDescription=e.formatted_address,this._resetSearch(),this.$emit("input",this._formatAddressResponse(e))})}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const cr=Se({render:function(e,t){var n=t._c;return n("svg",{class:[t.data.staticClass,t.data.class],style:[t.data.staticStyle,t.data.style],attrs:{width:t.props.size||20,height:t.props.size||20,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"}},[n("path",{attrs:{d:"M4 5l6 6 6-6 2 2-8 8-8-8 2-2z"}})])},staticRenderFns:[]},void 0,{},void 0,!0,void 0,!1,void 0,void 0,void 0);const ur=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{staticClass:"aw-menu"},[n("ul",{staticClass:"aw-menu__menu"},[e._t("default")],2),e._v(" "),n("div",{staticClass:"aw-menu__logo"},[n("button",{staticClass:"aw-menu__width-toggler",attrs:{"aria-label":e.$t("AwLayoutDefault.shrinkMenu")},on:{click:function(t){return e.$emit("toggle-width")}}},[n("AwIconCaret",{attrs:{size:"10"}})],1),e._v(" "),n("RouterLink",{staticClass:"aw-menu__homelink truncate",attrs:{to:e.homeUrl},domProps:{innerHTML:e._s(e.$t("AwLayoutDefault.caption"))}})],1)])},staticRenderFns:[]},void 0,{name:"AwMenu",components:{AwIconCaret:cr},computed:{homeUrl(){return"function"==typeof this.localePath?this.localePath({path:"/"}):"/"}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const dr=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.tag,{tag:"Component",staticClass:"aw-menu-item",class:{"aw-menu-item_opened":e.opened,"aw-menu-item_expanded":e.expanded,"aw-menu-item_has-icon":!!e.icon,"aw-menu-item_has-badge":!!e._badge,"aw-menu-item_has-toggler":e.children.length&&!e.expanded,"aw-menu-item_has-active":e.hasActiveChild}},[n(e.href?"RouterLink":"button",e._g(e._b({tag:"Component",staticClass:"aw-menu-item__button",class:{"is-active":e.isSamePage(e.href)},attrs:{to:e.href||null,"aria-current":e.isSamePage(e.href)?"page":null}},"Component",e.$attrs,!1),!e.href&&e.children.length?{click:e.toggle}:{}),[e.icon?n("AwIcon",{staticClass:"mr-5",attrs:{name:e.icon,size:"xl"}}):e._e(),e._v(" "),n("span",{staticClass:"truncate"},[e._v(e._s(e.text))]),e._v(" "),e._badge?n("AwBadge",e._b({staticClass:"aw-menu-item__badge"},"AwBadge",e._badge,!1)):e._e()],1),e._v(" "),e.children.length&&!e.expanded?n("button",{staticClass:"aw-menu-item__toggler",attrs:{"aria-label":e.$t("AwLayoutDefault.toggleSubmenu")},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.toggle()}}},[n("AwIconCaret",{staticClass:"aw-menu-item__caret",attrs:{size:"10"}})],1):e._e(),e._v(" "),e.children.length?n("AwAccordionFold",{staticClass:"aw-menu-item__children",attrs:{show:e.opened||e.expanded}},e._l(e.children,(function(t,r){return n("RouterLink",{key:"child-"+r,staticClass:"aw-menu-item__child",class:{"is-active":e.isSamePage(t.href)},attrs:{to:t.href,"aria-current":e.isSamePage(t.href)?"page":null}},[n("span",{staticClass:"truncate"},[e._v(e._s(t.text))])])})),1):e._e()],1)},staticRenderFns:[]},void 0,{name:"AwMenuItem",inheritAttrs:!1,components:{AwIcon:Ne,AwBadge:Be,AwIconCaret:cr,AwAccordionFold:Oe},props:{tag:{type:String,default:"li"},children:{type:Array,default:()=>[]},text:{type:String,default:""},href:{type:String,default:""},icon:{type:String,default:""},badge:{type:Object,default:null},expanded:Boolean},data:()=>({opened:!1}),computed:{_badge(){return pe(this.badge)||de(this.badge)?null:{color:"surface",...this.badge}},currentPath(){return ze(this.$route.path)},hasActiveChild(){return this.children.some(({href:e})=>!!e&&this.isSamePage(e))}},created(){this.expanded||0===this.children.length||(this.href&&this.isSamePage(this.href)||this.hasActiveChild)&&(this.opened=!0)},methods:{toggle(){this.opened=!this.opened},isSamePage(e){return this.currentPath===ze(e)}}},void 0,!1,void 0,!1,void 0,void 0,void 0),pr=(e,t)=>e.order>t.order;const hr=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layout layout--default",attrs:{id:"layout-default"}},[n("div",{staticClass:"layout__content",class:{"is-wide":e.menuThin,"relative z-0":e.showMobileMenu}},[e._t("before-header"),e._v(" "),n("div",{staticClass:"layout__header"},[n("div",{staticClass:"container flex items-center"},[n("div",{staticClass:"flex-1 lg:hidden"},[n("button",{staticClass:"w-8 h-8 -ml-1 flex items-center justify-center focus:outline-none",on:{click:function(t){e.showMobileMenu=!e.showMobileMenu}}},[n("AwIcon",{attrs:{name:"burger",size:"2xl"}}),e._v(" "),n("span",{staticClass:"sr-only"},[e._v("\n "+e._s(e.$t("AwLayoutDefault.toggleMenu"))+"\n ")])],1)]),e._v(" "),n("div",{staticClass:"flex-1 text-center lg:hidden"},[n("RouterLink",{staticClass:"truncate",attrs:{to:"/"},domProps:{innerHTML:e._s(e.$t("AwLayoutDefault.caption"))}})],1),e._v(" "),n("div",{staticClass:"w-full flex-1 flex items-center justify-end"},[e._t("navbar")],2)])]),e._v(" "),e._t("default"),e._v(" "),n("div",{staticClass:"bg-muted mt-auto text-center text-sm text-disabled footer__link"},[n("div",{staticClass:"container py-4",domProps:{innerHTML:e._s(e.$t("AwLayoutDefault.footer"))}})])],2),e._v(" "),n("Transition",{attrs:{name:"fade"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:e.showMobileMenu,expression:"showMobileMenu"}],staticClass:"block w-full fixed inset-0 bg-overlay opacity-50 lg:hidden",on:{click:function(t){e.showMobileMenu=!1}}},[n("span",{staticClass:"sr-only"},[e._v("\n "+e._s(e.$t("AwLayoutDefault.toggleMenu"))+"\n ")])])]),e._v(" "),n("AwMenu",{class:{"is-visible":e.showMobileMenu,"is-thin":e.menuThin},on:{"toggle-width":e.toggleWidth,close:function(t){e.showMobileMenu=!1}}},e._l(e.menuItems,(function(t,r){var i=t.key,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(t,["key"]);return n("AwMenuItem",e._b({key:i||"item-"+r,style:{transitionDelay:30*r+"ms"}},"AwMenuItem",s,!1))})),1)],1)},staticRenderFns:[]},void 0,{name:"AwLayoutDefault",components:{AwIcon:Ne,AwMenu:ur,AwMenuItem:dr},props:{menu:{type:Array,default:()=>[]}},data:()=>({menuThin:!1,showMobileMenu:!1}),computed:{menuItems(){return this.menu.map(({props:e,order:t,children:n=[]})=>({...e,order:t,children:n.map(({props:e,order:t})=>({...e,order:t})).sort(pr)})).sort(pr)}},watch:{"$route.path":function(e,t){ze(t)!==ze(e)&&(this.showMobileMenu=!1)}},mounted(){try{const e=localStorage.getItem("AW_MENU_THIN");this.menuThin="true"===e}catch(e){console.log(e)}},methods:{toggleWidth(){this.menuThin=!this.menuThin;try{this.menuThin?localStorage.setItem("AW_MENU_THIN",this.menuThin):localStorage.removeItem("AW_MENU_THIN")}catch(e){console.log(e)}}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const fr=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layout layout--frame-center",class:e.background.class,style:{backgroundImage:e.backgroundImage},attrs:{id:"layout-frame-center"}},[n("div",{staticClass:"layout__container mx-auto"},[e.logo?n("img",e._b({staticClass:"hidden sm:block mt-auto"},"img",e.logo,!1)):e._e(),e._v(" "),n("div",{staticClass:"layout__frame w-full my-auto",class:{"sm:mt-8":e.logo}},[e._t("default")],2),e._v(" "),n("div",{staticClass:"pt-8",domProps:{innerHTML:e._s(e.$t("AwLayoutDefault.footer"))}})])])},staticRenderFns:[]},void 0,{name:"AwLayoutFrameCenter",props:{logo:{type:Object,default:()=>({src:"//placehold.it/70"})},background:{type:Object,default:()=>({})}},computed:{backgroundImage(){return this.background.src?`url(${this.background.src})`:null}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const mr=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.className},[n("div",{staticClass:"flex items-end container"},[n("div",{staticClass:"flex-auto"},[n(e.titleTag,{key:e.title.key||e.title,tag:"Component",class:[e.elClasses.title]},[e._t("breadcrumb",[e.breadcrumb&&e.breadcrumb.href&&e.breadcrumb.title?n("div",[n("span",{staticClass:"hidden sm:inline-block"},[n("AwLink",{staticClass:"mr-2",attrs:{href:e.breadcrumb.href}},[e._v(e._s(e.breadcrumb.title))]),e._v(" "),n("span",{staticClass:"text-sm text-disabled align-middle mr-4"},[e._v("/")])],1),e._v(" "),n("AwButton",{staticClass:"sm:hidden mr-4",attrs:{href:e.breadcrumb.href,title:e.breadcrumb.title,"content-class":"p-2",size:"sm",icon:"chevron-l",color:"default"}})],1):e._e()]),e._v(" "),e._t("title",[e._v("\n "+e._s(e.title)+"\n ")],{title:e.title})],2)],1),e._v(" "),e.$slots.buttons?n("div",{staticClass:"py-4 flex-none pl-4"},[e._t("buttons")],2):e._e()]),e._v(" "),n("div",[e._t("subnav",[e.subnav.length?n("div",{staticClass:"border-b bg-muted"},[n("div",{staticClass:"container"},[n("div",{staticClass:"-mb-px -mx-4"},[n("AwTabNav",{staticClass:"border-transparent",attrs:{items:e.subnav}})],1)])]):e._e()])],2),e._v(" "),n("div",{staticClass:"content",class:e.elClasses.content},[n("div",{staticClass:"container"},[e._t("default")],2)])])},staticRenderFns:[]},void 0,{name:"AwPage",_config:{baseClass:"aw-page",titleTag:"h1"},props:{title:{type:String,default:""},titleTag:{type:String,default(){return ke(this,"titleTag")}},className:{type:String,default(){return ke(this,"baseClass")}},subnav:{type:Array,default:()=>[]},breadcrumb:{type:Object,default:()=>{},validator:e=>void 0!==e.title&&void 0!==e.href}},head(){return{title:this.getTitle}},computed:{getTitle(){let e=this.title;return this.breadcrumb&&(e+=" / "+this.breadcrumb.title),e},elClasses(){return Me(this.className,["title","subnav","tabs","content"])}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const vr=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.pagesTotal>1?n("div",{staticClass:"flex items-center lg:px-6"},[n("span",{staticClass:"flex-1 text-sm opacity-50 hidden lg:block"},[e._v(e._s(e.$t("AwPagination.info",Object.assign({},e.itemsRange,{total:e.total}))))]),e._v(" "),n("div",{staticClass:"flex-grow flex justify-between lg:justify-center items-center",on:{click:e._onPageClick}},[n("AwButton",{staticClass:"mr-1 lg:hidden",attrs:{"data-page":e.prevPage,disabled:null===e.prevPage,icon:"arrow-l",color:"default","content-class":"p-3"}}),e._v(" "),n("AwButton",{staticClass:"hidden lg:inline-flex mr-1",attrs:{"data-page":e.prevPage,disabled:null===e.prevPage,theme:"icon",size:"sm",icon:"arrow-l"}}),e._v(" "),n("span",{staticClass:"lg:hidden"},[e._v("\n "+e._s(e.$t("AwPagination.page",{page:e.page,pagesTotal:e.pagesTotal}))+"\n ")]),e._v(" "),n("div",{staticClass:"hidden lg:inline-flex aw-button-nav py-1"},e._l(e.pageButtons,(function(t,r){var i=t.component,s=t.text;return n(i,{key:r+"-"+s,tag:"Component",staticClass:"aw-button-nav__toggler",class:{"aw-button-nav__toggler_active":s===e.page,"aw-button-nav__toggler_disabled":"button"!==i},attrs:{"data-page":"button"===i?s:null}},[n("span",{staticClass:"w-8 h-8",attrs:{tabindex:"-1"}},[e._v("\n "+e._s(s)+"\n ")])])})),1),e._v(" "),n("AwButton",{staticClass:"hidden lg:inline-flex ml-1",attrs:{"data-page":e.nextPage,disabled:null===e.nextPage,theme:"icon",size:"sm",icon:"arrow-r"}}),e._v(" "),n("AwButton",{staticClass:"ml-1 lg:hidden",attrs:{"data-page":e.nextPage,disabled:null===e.nextPage,icon:"arrow-r",color:"default","content-class":"p-3"}})],1),e._v(" "),n("div",{staticClass:"flex-1 hidden lg:block"},[n("div",{staticClass:"flex justify-end"},[e.limits?[n("AwButton",{attrs:{theme:"toggle","content-class":"p-0"},on:{click:function(t){e.limitsOpened=!e.limitsOpened}}},[e._v("\n "+e._s(e.limit)+"\n "),n("AwIcon",{staticClass:"transition-200",class:{"rotate-180":e.limitsOpened},attrs:{name:"triangle-d"}})],1),e._v(" "),n("AwDropdown",{ref:"limits",staticClass:"w-32",attrs:{show:e.limitsOpened,options:{placement:"bottom-end"}},on:{"update:show":function(t){e.limitsOpened=t}}},e._l(e.limits,(function(t){return n("AwDropdownButton",{key:t,attrs:{active:t===e.limit},on:{click:function(n){return e.$emit("click:limit",t)}}},[e._v("\n "+e._s(t)+"\n ")])})),1)]:n("span",{staticClass:"text-sm opacity-50"},[e._v("\n "+e._s(e.$t("AwPagination.limit",{limit:e.limit}))+"\n ")])],2)])]):e._e()},staticRenderFns:[]},void 0,{name:"AwPagination",props:{total:{type:Number,required:!0},page:{type:Number,default:1},limit:{type:Number,required:!0},limits:{type:Array,default:null},arrowNav:Boolean},data:()=>({limitsOpened:!1}),computed:{pageButtons(){return this.pages.map(this._getButtonProps)},pagesTotal(){return Math.ceil(this.total/this.limit)},pages(){if(this.pagesTotal<9)return U(1,this.pagesTotal+1);{const e=this.page,t=this.pagesTotal;return e<6?[...U(1,7),null,t]:t-e<5?[1,null,...U(t-5,t+1)]:[1,null,...U(e-2,e+2),null,t]}},nextPage(){const e=this.page+1;return e<this.pagesTotal+1?e:null},prevPage(){const e=this.page-1;return e>0?e:null},itemsRange(){const e=this.page,t=e*this.limit;return{from:(e-1)*this.limit+1,to:t<this.total?t:this.total}}},watch:{arrowNav:{immediate:!0,handler(e,t){!this.$isServer&&e?this._toggleArrowNav(!0):t&&this._toggleArrowNav(!1)}}},methods:{_getButtonProps:e=>pe(e)?{component:"span",text:"..."}:{component:"button",text:e},_onPageClick(e){let t=e.target;t&&!t.hasAttribute("data-page")&&(t=t.closest("[data-page]")),t&&this.$emit("click:page",parseInt(t.getAttribute("data-page")))},_toggleArrowNav(e=!1){e?(document.addEventListener("keydown",this._globalKeyListener),this.$once("hook:beforeDestroy",this._toggleArrowNav)):document.removeEventListener("keydown",this._globalKeyListener)},_globalKeyListener(e={}){const t=e.key;!e.ctrlKey&&!e.metaKey||["ArrowLeft","ArrowRight"].indexOf(t)<0||(e.preventDefault(),e.stopPropagation(),"ArrowLeft"===t&&null!==this.prevPage?this.$emit("click:page",this.prevPage):"ArrowRight"===t&&null!==this.nextPage&&this.$emit("click:page",this.nextPage))}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var gr=nn((function(e,t){
|
|
10
|
+
/*!
|
|
11
|
+
autosize 4.0.2
|
|
12
|
+
license: MIT
|
|
13
|
+
http://www.jacklmoore.com/autosize
|
|
14
|
+
*/
|
|
15
|
+
!function(e,t){var n="function"==typeof Map?new Map:function(){var e=[],t=[];return{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,r){-1===e.indexOf(n)&&(e.push(n),t.push(r))},delete:function(n){var r=e.indexOf(n);r>-1&&(e.splice(r,1),t.splice(r,1))}}}(),r=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){r=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!n.has(e)){var t=null,i=null,s=null,o=function(){e.clientWidth!==i&&u()},a=function(t){window.removeEventListener("resize",o,!1),e.removeEventListener("input",u,!1),e.removeEventListener("keyup",u,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",u,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),n.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",u,!1),window.addEventListener("resize",o,!1),e.addEventListener("input",u,!1),e.addEventListener("autosize:update",u,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",n.set(e,{destroy:a,update:u}),function(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),u()}()}function l(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function c(){if(0!==e.scrollHeight){var n=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",i=e.clientWidth,n.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function u(){c();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(i<t?"hidden"===n.overflowY&&(l("scroll"),c(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(l("hidden"),c(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),s!==i){s=i;var o=r("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}function s(e){var t=n.get(e);t&&t.destroy()}function o(e){var t=n.get(e);t&&t.update()}var a=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((a=function(e){return e}).destroy=function(e){return e},a.update=function(e){return e}):((a=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e}),t.default=a,e.exports=t.default}(e,t)})),yr=nn((function(e,t){!function(t){var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:v,table:v,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||x.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.rules=n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=p(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=p(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=p(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",n._comment=/<!--(?!-?>)[\s\S]*?-->/,n.html=p(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=p(n._paragraph).replace("hr",n.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",n._tag).getRegex(),n.blockquote=p(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=g({},n),n.gfm=g({},n.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=g({},n.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:v,paragraph:p(n.normal._paragraph).replace("hr",n.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",n.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,i,s,o,a,l,c,d,p,h,f,m,v,g,b,w;for(e=e.replace(/^ +$/gm,"");e;)if((s=this.rules.newline.exec(e))&&(e=e.substring(s[0].length),s[0].length>1&&this.tokens.push({type:"space"})),s=this.rules.code.exec(e)){var x=this.tokens[this.tokens.length-1];e=e.substring(s[0].length),x&&"paragraph"===x.type?x.text+="\n"+s[0].trimRight():(s=s[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?s:_(s,"\n")}))}else if(s=this.rules.fences.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"code",lang:s[2]?s[2].trim():s[2],text:s[3]||""});else if(s=this.rules.heading.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"heading",depth:s[1].length,text:s[2]});else if((s=this.rules.nptable.exec(e))&&(l={type:"table",header:y(s[1].replace(/^ *| *\| *$/g,"")),align:s[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:s[3]?s[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(s[0].length),f=0;f<l.align.length;f++)/^ *-+: *$/.test(l.align[f])?l.align[f]="right":/^ *:-+: *$/.test(l.align[f])?l.align[f]="center":/^ *:-+ *$/.test(l.align[f])?l.align[f]="left":l.align[f]=null;for(f=0;f<l.cells.length;f++)l.cells[f]=y(l.cells[f],l.header.length);this.tokens.push(l)}else if(s=this.rules.hr.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"hr"});else if(s=this.rules.blockquote.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"blockquote_start"}),s=s[0].replace(/^ *> ?/gm,""),this.token(s,t),this.tokens.push({type:"blockquote_end"});else if(s=this.rules.list.exec(e)){for(e=e.substring(s[0].length),c={type:"list_start",ordered:g=(o=s[2]).length>1,start:g?+o:"",loose:!1},this.tokens.push(c),d=[],r=!1,v=(s=s[0].match(this.rules.item)).length,f=0;f<v;f++)h=(l=s[f]).length,~(l=l.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(h-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+h+"}","gm"),"")),f!==v-1&&(a=n.bullet.exec(s[f+1])[0],(o.length>1?1===a.length:a.length>1||this.options.smartLists&&a!==o)&&(e=s.slice(f+1).join("\n")+e,f=v-1)),i=r||/\n\n(?!\s*$)/.test(l),f!==v-1&&(r="\n"===l.charAt(l.length-1),i||(i=r)),i&&(c.loose=!0),w=void 0,(b=/^\[[ xX]\] /.test(l))&&(w=" "!==l[1],l=l.replace(/^\[[ xX]\] +/,"")),p={type:"list_item_start",task:b,checked:w,loose:i},d.push(p),this.tokens.push(p),this.token(l,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(v=d.length,f=0;f<v;f++)d[f].loose=!0;this.tokens.push({type:"list_end"})}else if(s=this.rules.html.exec(e))e=e.substring(s[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===s[1]||"script"===s[1]||"style"===s[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):u(s[0]):s[0]});else if(t&&(s=this.rules.def.exec(e)))e=e.substring(s[0].length),s[3]&&(s[3]=s[3].substring(1,s[3].length-1)),m=s[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[m]||(this.tokens.links[m]={href:s[2],title:s[3]});else if((s=this.rules.table.exec(e))&&(l={type:"table",header:y(s[1].replace(/^ *| *\| *$/g,"")),align:s[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:s[3]?s[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(s[0].length),f=0;f<l.align.length;f++)/^ *-+: *$/.test(l.align[f])?l.align[f]="right":/^ *:-+: *$/.test(l.align[f])?l.align[f]="center":/^ *:-+ *$/.test(l.align[f])?l.align[f]="left":l.align[f]=null;for(f=0;f<l.cells.length;f++)l.cells[f]=y(l.cells[f].replace(/^ *\| *| *\| *$/g,""),l.header.length);this.tokens.push(l)}else if(s=this.rules.lheading.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"heading",depth:"="===s[2].charAt(0)?1:2,text:s[1]});else if(t&&(s=this.rules.paragraph.exec(e)))e=e.substring(s[0].length),this.tokens.push({type:"paragraph",text:"\n"===s[1].charAt(s[1].length-1)?s[1].slice(0,-1):s[1]});else if(s=this.rules.text.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"text",text:s[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var i={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:v,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:v,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function s(e,t){if(this.options=t||x.defaults,this.links=e,this.rules=i.normal,this.renderer=this.options.renderer||new o,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.options.breaks?this.rules=i.breaks:this.rules=i.gfm)}function o(e){this.options=e||x.defaults}function a(){}function l(e){this.tokens=[],this.token=null,this.options=e||x.defaults,this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new c}function c(){this.seen={}}function u(e,t){if(t){if(u.escapeTest.test(e))return e.replace(u.escapeReplace,(function(e){return u.replacements[e]}))}else if(u.escapeTestNoEncode.test(e))return e.replace(u.escapeReplaceNoEncode,(function(e){return u.replacements[e]}));return e}function d(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function p(e,t){return e=e.source||e,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function h(e,t,n){if(e){try{var r=decodeURIComponent(d(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!m.test(n)&&(n=function(e,t){f[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?f[" "+e]=e+"/":f[" "+e]=_(e,"/",!0));return e=f[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}i._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",i.em=p(i.em).replace(/punctuation/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=p(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=p(i.tag).replace("comment",n._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,i._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=p(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=p(i.reflink).replace("label",i._label).getRegex(),i.normal=g({},i),i.pedantic=g({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=g({},i.normal,{escape:p(i.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),i.gfm.url=p(i.gfm.url,"i").replace("email",i.gfm._extended_email).getRegex(),i.breaks=g({},i.gfm,{br:p(i.br).replace("{2,}","*").getRegex(),text:p(i.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),s.rules=i,s.output=function(e,t,n){return new s(t,n).output(e)},s.prototype.output=function(e){for(var t,n,r,i,o,a,l="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),l+=u(o[1]);else if(o=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(o[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(o[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.inRawBlock=!1),e=e.substring(o[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):u(o[0]):o[0];else if(o=this.rules.link.exec(e)){var c=b(o[2],"()");if(c>-1){var d=4+o[1].length+c;o[2]=o[2].substring(0,c),o[0]=o[0].substring(0,d).trim(),o[3]=""}e=e.substring(o[0].length),this.inLink=!0,r=o[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],i=t[3]):i="":i=o[3]?o[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(o,{href:s.escapes(r),title:s.escapes(i)}),this.inLink=!1}else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){l+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,l+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),l+=this.renderer.strong(this.output(o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),l+=this.renderer.em(this.output(o[6]||o[5]||o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),l+=this.renderer.codespan(u(o[2].trim(),!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),l+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),l+=this.renderer.del(this.output(o[1]));else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),r="@"===o[2]?"mailto:"+(n=u(this.mangle(o[1]))):n=u(o[1]),l+=this.renderer.link(r,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.inRawBlock?l+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):u(o[0]):o[0]):l+=this.renderer.text(u(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===o[2])r="mailto:"+(n=u(o[0]));else{do{a=o[0],o[0]=this.rules._backpedal.exec(o[0])[0]}while(a!==o[0]);n=u(o[0]),r="www."===o[1]?"http://"+n:n}e=e.substring(o[0].length),l+=this.renderer.link(r,null,n)}return l},s.escapes=function(e){return e?e.replace(s.rules._escapes,"$1"):e},s.prototype.outputLink=function(e,t){var n=t.href,r=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,u(e[1]))},s.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},s.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},o.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return r?'<pre><code class="'+this.options.langPrefix+u(r,!0)+'">'+(n?e:u(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:u(e,!0))+"</code></pre>"},o.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},o.prototype.html=function(e){return e},o.prototype.heading=function(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},o.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},o.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"},o.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},o.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},o.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},o.prototype.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},o.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},o.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},o.prototype.strong=function(e){return"<strong>"+e+"</strong>"},o.prototype.em=function(e){return"<em>"+e+"</em>"},o.prototype.codespan=function(e){return"<code>"+e+"</code>"},o.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},o.prototype.del=function(e){return"<del>"+e+"</del>"},o.prototype.link=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+u(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>"},o.prototype.image=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},o.prototype.text=function(e){return e},a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e},a.prototype.link=a.prototype.image=function(e,t,n){return""+n},a.prototype.br=function(){return""},l.parse=function(e,t){return new l(t).parse(e)},l.prototype.parse=function(e){this.inline=new s(e.links,this.options),this.inlineText=new s(e.links,g({},this.options,{renderer:new a})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},l.prototype.next=function(){return this.token=this.tokens.pop(),this.token},l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},l.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},l.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,d(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",s="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(i+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",r=0;r<t.length;r++)n+=this.renderer.tablecell(this.inline.output(t[r]),{header:!1,align:this.token.align[r]});s+=this.renderer.tablerow(n)}return this.renderer.table(i,s);case"blockquote_start":for(s="";"blockquote_end"!==this.next().type;)s+=this.tok();return this.renderer.blockquote(s);case"list_start":s="";for(var o=this.token.ordered,a=this.token.start;"list_end"!==this.next().type;)s+=this.tok();return this.renderer.list(s,o,a);case"list_item_start":s="";var l=this.token.loose,c=this.token.checked,u=this.token.task;for(this.token.task&&(s+=this.renderer.checkbox(c));"list_item_end"!==this.next().type;)s+=l||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(s,u,c);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var p='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(p);console.log(p)}},c.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},u.escapeTest=/[&<>"']/,u.escapeReplace=/[&<>"']/g,u.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},u.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,u.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var f={},m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(){}function g(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function y(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function _(e,t,n){if(0===e.length)return"";for(var r=0;r<e.length;){var i=e.charAt(e.length-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.substr(0,e.length-r)}function b(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&--n<0)return r;return-1}function w(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function x(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),w(t=g({},x.defaults,t||{}));var i,s,o=t.highlight,a=0;try{i=r.lex(e,t)}catch(e){return n(e)}s=i.length;var c=function(e){if(e)return t.highlight=o,n(e);var r;try{r=l.parse(i,t)}catch(t){e=t}return t.highlight=o,e?n(e):n(null,r)};if(!o||o.length<3)return c();if(delete t.highlight,!s)return c();for(;a<i.length;a++)!function(e){"code"!==e.type?--s||c():o(e.text,e.lang,(function(t,n){return t?c(t):null==n||n===e.text?--s||c():(e.text=n,e.escaped=!0,void(--s||c()))}))}(i[a])}else try{return t&&(t=g({},x.defaults,t)),w(t),l.parse(r.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||x.defaults).silent)return"<p>An error occurred:</p><pre>"+u(e.message+"",!0)+"</pre>";throw e}}v.exec=v,x.options=x.setOptions=function(e){return g(x.defaults,e),x},x.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new o,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},x.defaults=x.getDefaults(),x.Parser=l,x.parser=l.parse,x.Renderer=o,x.TextRenderer=a,x.Lexer=r,x.lexer=r.lex,x.InlineLexer=s,x.inlineLexer=s.output,x.Slugger=c,x.parse=x,e.exports=x}()})),_r={"&":"&","<":"<",">":">",'"':""","'":"'"},br={"&":"&","<":"<",">":">",""":'"',"'":"'"},wr=/(&|<|>|"|')/g,xr=/[&<>"']/g;function Cr(e){return _r[e]}function kr(e){return br[e]}function Ar(e){return null==e?"":String(e).replace(xr,Cr)}function $r(e){return null==e?"":String(e).replace(wr,kr)}Ar.options=$r.options={};var Sr={encode:Ar,escape:Ar,decode:$r,unescape:$r,version:"1.0.0-browser"};var Or=function e(t){for(var n,r,i=Array.prototype.slice.call(arguments,1);i.length;)for(r in n=i.shift())n.hasOwnProperty(r)&&("[object Object]"===Object.prototype.toString.call(t[r])?t[r]=e(t[r],n[r]):t[r]=n[r]);return t},Er=function(e){return"string"==typeof e?e.toLowerCase():e};function Dr(e,t){return e[t]=!0,e}var Nr=function(e){return e.reduce(Dr,{})},Tr=Nr(["background","base","cite","href","longdesc","src","usemap"]),jr={voids:Nr(["area","br","col","hr","img","wbr","input","base","basefont","link","meta"])},Lr=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,Pr=/^<\s*\/\s*([\w:-]+)[^>]*>/,Fr=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,Mr=/^</,Ir=/^<\s*\//;var Br=function(e,t){for(var n,r=function(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}(),i=e;e;)s();function s(){n=!0,function(){"\x3c!--"===e.substr(0,4)?function(){var r=e.indexOf("--\x3e");r>=0&&(t.comment&&t.comment(e.substring(4,r)),e=e.substring(r+3),n=!1)}():Ir.test(e)?o(Pr,l):Mr.test(e)&&o(Lr,a);!function(){if(!n)return;var r,i=e.indexOf("<");i>=0?(r=e.substring(0,i),e=e.substring(i)):(r=e,e="");t.chars&&t.chars(r)}()}();var r=e===i;i=e,r&&(e="")}function o(t,r){var i=e.match(t);i&&(e=e.substring(i[0].length),i[0].replace(t,r),n=!1)}function a(e,n,i,s){var o={},a=Er(n),l=jr.voids[a]||!!s;i.replace(Fr,(function(e,t,n,r,i){o[t]=void 0===n&&void 0===r&&void 0===i?void 0:Sr.decode(n||r||i||"")})),l||r.push(a),t.start&&t.start(a,o,l)}function l(e,n){var i,s=0,o=Er(n);if(o)for(s=r.length-1;s>=0&&r[s]!==o;s--);if(s>=0){for(i=r.length-1;i>=s;i--)t.end&&t.end(r[i]);r.length=s}}l()};var Rr=function(e,t){var n,r=t||{};return a(),{start:function(e,t,o){var a=Er(e);if(n.ignoring)return void s(a);if(-1===(r.allowedTags||[]).indexOf(a))return void s(a);if(r.filter&&!r.filter({tag:a,attrs:t}))return void s(a);i("<"),i(a),Object.keys(t).forEach((function(e){var n=t[e],s=(r.allowedClasses||{})[a]||[],o=(r.allowedAttributes||{})[a]||[],l=Er(e);("class"===l&&-1===o.indexOf(l)?(n=n.split(" ").filter((function(e){return s&&-1!==s.indexOf(e)})).join(" ").trim()).length:-1!==o.indexOf(l)&&(!0!==Tr[l]||function(e){var t=e[0];if("#"===t||"/"===t)return!0;var n=e.indexOf(":");if(-1===n)return!0;var i=e.indexOf("?");if(-1!==i&&n>i)return!0;var s=e.indexOf("#");if(-1!==s&&n>s)return!0;return r.allowedSchemes.some((function(t){return 0===e.indexOf(t+":")}))}(n)))&&(i(" "),i(e),"string"==typeof n&&(i('="'),i(Sr.encode(n)),i('"')))})),i(o?"/>":">")},end:function(e){var t=Er(e);-1!==(r.allowedTags||[]).indexOf(t)&&!1===n.ignoring?(i("</"),i(t),i(">")):o(t)},chars:function(e){!1===n.ignoring&&i(r.transformText?r.transformText(e):e)}};function i(t){e.push(t)}function s(e){jr.voids[e]||(!1===n.ignoring?n={ignoring:e,depth:1}:n.ignoring===e&&n.depth++)}function o(e){n.ignoring===e&&--n.depth<=0&&a()}function a(){n={ignoring:!1,depth:0}}},Vr={allowedAttributes:{a:["href","name","target","title","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null};function zr(e,t,n){var r=[],i=!0===n?t:Or({},Vr,t),s=Rr(r,i);return Br(e,s),r.join("")}zr.defaults=Vr;var qr=zr;const Hr=["editor","preview"],Ur={heading:{icon:"font-size",token:{start:"### "}},bold:{icon:"bold",token:{start:"**",end:"**"}},italic:{icon:"italic",token:{start:"_",end:"_"}},quote:{icon:"quote",token:{start:"\n\n> "}}};yr.setOptions({headerIds:!1,breaks:!0,highlight(e,t="markup"){try{const n=ve(kn.languages.markup,t,kn.languages);return kn.highlight(e,n,t)}catch(t){return e}}}),qr.defaults.allowedAttributes.th=["align"],qr.defaults.allowedAttributes.td=["align"];const Wr=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bg-surface shadow"},[n("AwTabNav",{staticClass:"px-3",attrs:{items:e.switchers,active:e.activeSwitcher},on:{"update:active":function(t){e.activeSwitcher=t}}}),e._v(" "),n("div",{staticClass:"relative"},[n("div",{staticClass:"flex border-b",style:e.isEditorVisible},e._l(e.shortcuts,(function(t,r){var i=t.name,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(t,["name"]);return n("AwButton",e._b({key:i+"-"+r,attrs:{theme:"icon"},on:{click:function(t){return e._applyShortcut(i)}}},"AwButton",s,!1))})),1),e._v(" "),n("textarea",{ref:"editor",staticClass:"font-mono bg-surface min-h-xxs max-h-screen w-full p-3",style:e.isEditorVisible,domProps:{value:e.source},on:{change:function(t){return e.$emit("change",t.target.value)}}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isPreview,expression:"isPreview"}],staticClass:"absolute inset-0 overflow-auto p-3 content",domProps:{innerHTML:e._s(e.html)}})])],1)},staticRenderFns:[]},void 0,{name:"AwMarkdownEditor",model:{prop:"source",event:"change"},props:{source:{type:String,default:""}},data:()=>({activeSwitcher:0,html:""}),computed:{switchers(){return Hr.map(e=>this.$t(`AwMarkdownEditor.${e}`))},isPreview(){return"preview"===Hr[this.activeSwitcher]},isEditorVisible(){return{visibility:this.isPreview?"hidden":"visible"}},shortcuts(){return xe(Ur).map(([e,{icon:t}])=>({name:e,icon:t,text:this.$t(`AwMarkdownEditor.${e}`)}))}},watch:{isPreview(e){e&&(this.html=this.getHtml(),this.$emit("change",this.$refs.editor.value))}},mounted(){this.$nextTick(()=>{gr(this.$refs.editor)})},beforeDestroy(){gr.destroy(this.$refs.editor)},methods:{getHtml(){return qr(yr(this.source))},async _applyShortcut(e){const t=Ur[e],n=this.$refs.editor;if(!t||!n)return;const{start:r="",end:i=""}=ve({},"token",t);let s=n.selectionStart,o=n.selectionEnd,{startChunk:a,selection:l,endChunk:c}=this._getSourceChunks(s,o,this.source);this._isTokenApplied(r,i,a,c)?(a=a.substr(0,a.length-r.length),c=c.substr(i.length),s-=r.length,o-=r.length):(a+=r,c=i+c,s+=r.length,o+=r.length),n.value=a+l+c,this.$emit("change",n.value),await this.$nextTick(),n.focus(),n.setSelectionRange(s,o)},_getSourceChunks:(e,t,n)=>({startChunk:ne(e,n),selection:ye(n,e,t),endChunk:we(n.length-t,n)}),_isTokenApplied:(e,t,n,r)=>e&&t&&function e(t,n){return 1===arguments.length?n=>e(t,n):n.endsWith(t)}(e,n)&&be(t,r)}},void 0,!1,void 0,!1,void 0,void 0,void 0);let Yr=!1;if("undefined"!=typeof window){const e={get passive(){Yr=!0}};window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}const Zr="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform);let Kr,Xr,Gr=[],Jr=!1,Qr=-1;const ei=e=>Gr.some(t=>!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))),ti=e=>{const t=e||window.event;return!!ei(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},ni=(e,t)=>{if(Zr){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!Gr.some(t=>t.targetElement===e)){const n={targetElement:e,options:t||{}};Gr=[...Gr,n],e.ontouchstart=e=>{1===e.targetTouches.length&&(Qr=e.targetTouches[0].clientY)},e.ontouchmove=t=>{1===t.targetTouches.length&&((e,t)=>{const n=e.targetTouches[0].clientY-Qr;!ei(e.target)&&(t&&0===t.scrollTop&&n>0?ti(e):(e=>!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight)(t)&&n<0?ti(e):e.stopPropagation())})(t,e)},Jr||(document.addEventListener("touchmove",ti,Yr?{passive:!1}:void 0),Jr=!0)}}else{(e=>{setTimeout(()=>{if(void 0===Xr){const t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Xr=document.body.style.paddingRight,document.body.style.paddingRight=`${n}px`)}void 0===Kr&&(Kr=document.body.style.overflow,document.body.style.overflow="hidden")})})(t);const n={targetElement:e,options:t||{}};Gr=[...Gr,n]}},ri=e=>{if(Zr){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,Gr=Gr.filter(t=>t.targetElement!==e),Jr&&0===Gr.length&&(document.removeEventListener("touchmove",ti,Yr?{passive:!1}:void 0),Jr=!1)}else Gr=Gr.filter(t=>t.targetElement!==e),Gr.length||setTimeout(()=>{void 0!==Xr&&(document.body.style.paddingRight=Xr,Xr=void 0),void 0!==Kr&&(document.body.style.overflow=Kr,Kr=void 0)})},ii=["default","fullscreen","bottom"];let si=0;const oi=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Transition",{attrs:{name:"modal-transition-"+e.theme,appear:""},on:{"before-enter":e._preOpen,"before-appear":e._preOpen,"after-leave":e._afterLeave}},[n("aside",{directives:[{name:"show",rawName:"v-show",value:e.isOpened,expression:"isOpened"}],class:[e.className,"is-"+e.theme],attrs:{tabindex:e.isOpened?"0":"-1",role:"dialog","aria-hidden":e.isOpened?"false":"true","aria-label":e.title}},[n("div",{ref:"container",class:e.elClasses.container,on:{mousedown:function(t){return t.target!==t.currentTarget?null:e.selfClose(t)}}},[n("div",{class:e.elClasses.dialog,attrs:{role:"document"}},[n("div",{class:e.elClasses.header},[n("div",{class:e.elClasses.title},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),n("AwButton",{class:e.elClasses.close,attrs:{title:e.$t("AwModal.close"),"aria-label":e.$t("AwModal.close"),theme:"ghost",color:"default","content-class":"p-2",icon:"close",tabindex:"0"},on:{click:function(t){return t.preventDefault(),e.close()}}})],1),e._v(" "),e.$scopedSlots.subtitle?n("div",{class:e.elClasses.subtitle},[e._t("subtitle")],2):e._e(),e._v(" "),n("div",{class:e.elClasses.body},[e.stay||e.showContent?n("div",{class:[e.elClasses.content,e.$scopedSlots.buttons?e.elClasses.content+"--buttons":""]},[e._t("default",null,{closeModal:e.close})],2):e._e()]),e._v(" "),e.$scopedSlots.buttons?n("div",{class:[e.elClasses.buttons,"aw-button-group"]},[e._t("buttons")],2):e._e()])])])])},staticRenderFns:[]},void 0,{name:"AwModal",_config:{baseClass:"aw-modal",stay:!1,bgClickClose:!0},components:{AwButton:Ie},props:{title:String,stay:{type:Boolean,default(){return ke(this,"stay")}},bgClickClose:{type:Boolean,default(){return ke(this,"bgClickClose")}},name:{type:String,default:()=>`modal-${si++}`},param:{type:[String,Boolean],default:"modal"},theme:{type:String,default:"default"},disableScroll:{type:Boolean,default(){return ii.includes(this.theme)}},className:{type:String,default(){return ke(this,"baseClass","modal")}}},data:()=>({showContent:!1,lastFocused:null,localOpened:!1}),computed:{eventBus(){return ke(this,"eventBus",this.$root)},isOpened(){return this.paramComputed?this.$route.query[this.paramComputed]===this.name:this.localOpened},elClasses(){return Me(this.className,["dialog","header","back","title","subtitle","close","body","content","container","buttons"])},paramComputed(){switch(typeof this.param){case"string":return this.param||"modal";case"boolean":default:return this.param?"modal":null}}},provide(){return{modal:{name:this.name,open:this.open,close:this.close}}},watch:{isOpened(e){if(!e){let e={prevented:!1,preventClose(){this.prevented=!0}};this.eventBus.$emit(`modal::${this.name}:before-close`,e),e.prevented&&this.open()}},showContent(e){if(e){if("undefined"==typeof document)return;this.lastFocused=document.activeElement,this.$nextTick(()=>this.$el.focus()),window.addEventListener("keyup",this._escButtonHandler)}else window.removeEventListener("keyup",this._escButtonHandler),this.lastFocused&&(this.lastFocused.focus(),this.lastFocused=null)}},methods:{_toggleBodyScroll(e){e?ri(this.$el):this.disableScroll&&ni(this.$el,{reserveScrollBarGap:!0})},_preOpen(){this.showContent=!0,this._toggleBodyScroll(!1)},_afterLeave(){this._toggleBodyScroll(!0),this.showContent=!1},open(){this.paramComputed?this.$router.push(Ve({[this.paramComputed]:this.name},this.$route)):this.localOpened=!0},selfClose(){if(this.fullscreen||!this.bgClickClose)return;let e=this;window.addEventListener("mouseup",(function t(n){window.removeEventListener("mouseup",t),n.target===e.$refs.container&&e.close()}))},close(){this.paramComputed?this.$router.push(Ve({[this.paramComputed]:null},this.$route)):this.localOpened=!1,this.eventBus.$emit(`modal::${this.name}:closed`),this.$emit("closed")},_escButtonHandler(e){27===e.keyCode&&this.close()}},created(){this.showContent=this.isOpened},mounted(){this.eventBus.$on(`modal::${this.name}:open`,this.open),this.eventBus.$on(`modal::${this.name}:close`,this.close)},beforeDestroy(){this._afterLeave(),this.eventBus.$off(`modal::${this.name}:open`,this.open),this.eventBus.$off(`modal::${this.name}:close`,this.close),this.lastFocused=null,window.removeEventListener("keyup",this._escButtonHandler)}},void 0,!1,void 0,!1,void 0,void 0,void 0);const ai=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._onEnterKeydown(t)}}},[e._l(e.models,(function(t,r){return n("div",{key:t.id||"new-block-"+r,class:{"mt-4":r>0}},[e._t("title",[n("h5",{staticClass:"flex items-center draggable"},[n("span",[e._v("\n "+e._s(e.$t("AwMultiBlockBuilder.title",{title:e.title,iteration:r+1}))+"\n ")]),e._v(" "),n("AwButton",{attrs:{icon:"close",theme:"icon",text:e.$t("AwMultiBlockBuilder.remove")},on:{click:function(n){return e.remove(t)}}})],1)],null,{title:e.title,iteration:r+1,collection:e.collection,model:t,collectionCount:e.collectionCount,remove:e.remove}),e._v(" "),e._t("default",null,null,{model:t,remove:e.remove})],2)})),e._v(" "),e.collectionCount<e.max?n("div",{staticClass:"mt-4"},[e._t("add",[n("AwLink",{staticClass:"text-sm font-bold uppercase",on:{click:e.add}},[e._v("\n "+e._s(e.$t("AwMultiBlockBuilder.add",{title:e.title}))+"\n ")])],null,{collection:e.collection,title:e.title,add:e.add})],2):e._e(),e._v(" "),e._t("save",[n("div",{staticClass:"mt-8"},[n("AwButton",{attrs:{disabled:e.buttonDisabled},on:{click:function(t){return e.collection.save()}}},[e._v("\n "+e._s(e.$t("AwMultiBlockBuilder.save"))+"\n ")])],1)],null,{collectionChanged:e.collectionChanged,collection:e.collection})],2)},staticRenderFns:[]},void 0,{name:"AwMultiBlockBuilder",mixins:[Fn],props:{collection:{type:Object,required:!0,validator:Ae({fetch:"function",save:"function",add:"function",remove:"function",models:"array"})},title:{type:String,default:""},max:{type:Number,default:1/0},fetch:Boolean},data:()=>({modelsSnapshot:[]}),computed:{models(){return this.collection.models},currentModels(){return this.models.map(function e(t,n){return 1===arguments.length?n=>e(t,n):n?n[t]:void 0}("_attributes"))},collectionCount(){return this.models.length},collectionChanged(){return!M(this.modelsSnapshot,this.currentModels)},collectionRequest(){return this.collection.saving||this.collection.loading},buttonDisabled(){return!this.collectionChanged||this.collectionRequest}},watch:{collection:{handler(e,t){t&&(this._removeCollectionListener("fetch",this.fetchListener,t),this._removeCollectionListener("save",this.saveListener,t)),e.on("fetch",this.fetchListener),e.on("save",this.saveListener),this._updateSnapshot()},immediate:!0}},mounted(){this.fetch&&this.collection.fetch()},beforeDestroy(){this._removeCollectionListener("fetch",this.fetchListener),this._removeCollectionListener("save",this.saveListener)},methods:{add(){this.collection.add(),this.$emit("add:model",this.collection)},remove(e){e&&(this.collection.remove(e),this.$emit("remove:model",this.collection))},fetchListener(e){this._updateSnapshot(e),this.$emit("fetch:collection",this.collection,e)},saveListener(e){this._updateSnapshot(e),this.$emit("save:collection",this.collection,e)},_updateSnapshot(e={}){pe(e.error)&&(this.modelsSnapshot=le(this.currentModels))},_removeCollectionListener(e,t,n=this.collection){const r=n._listeners[e]||[],i=r.indexOf(t);i>-1&&r.splice(i,1)},_onEnterKeydownAction(){this.buttonDisabled||this.collection.save()}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var li={empty:{width:91,height:91,viewBox:"0 0 91 91",content:' <path fill="#7FC876" d="M9 22h72V12H9v10z"/> <path fill="#fff" d="M9 21.8h72.2v57.4H9V21.8z" opacity=".1"/> <path fill="#0F1012" fill-rule="evenodd" d="M80.2 22.8H10v55.4h70.2V22.8zM9 21.8v57.4h72.2V21.8H9z" clip-rule="evenodd" opacity=".1"/> <path fill="#0F1012" d="M23.6 18.8H13a1 1 0 01-1-1.1v-.8c0-.6.4-1 1-1h10.6c.6 0 1 .4 1 1v.8c0 .6-.4 1-1 1zM68.7 27.8H24v1.5h44.7v-1.5zM68.7 32.9H24v1.5h44.7V33zM68.7 37.8H24v1.5h44.7v-1.5zM68.7 42.8H24v1.6h44.7v-1.6zM68.7 48.5H24v1.6h44.7v-1.6zM68.7 53.6H24v1.6h44.7v-1.6zM68.7 58.5H24v1.6h44.7v-1.6zM68.7 63.6H24v1.6h44.7v-1.6z" opacity=".3"/> <path fill="#5F9CD4" fill-rule="evenodd" d="M18 30.8h-2.3v-2.4h2.4v2.4zm.8 2H15c-.7 0-1.3-.6-1.3-1.3v-3.8c0-.7.6-1.3 1.3-1.3h3.8c.7 0 1.3.6 1.3 1.3v3.8c0 .7-.6 1.3-1.3 1.3z" clip-rule="evenodd"/> <path fill="#5F9CD4" d="M15 52.7h3.8c.7 0 1.3-.6 1.3-1.3v-3.8c0-.7-.6-1.2-1.3-1.2H15c-.7 0-1.3.5-1.3 1.2v3.8c0 .7.6 1.3 1.3 1.3z"/> <path fill="#fff" d="M16.7 51l-1.8-1.5a.3.3 0 010-.4c.1-.2.3-.2.5 0l1.2 1 1.8-2h.5v.5L16.7 51z"/> <path fill="#5F9CD4" d="M15 42.7h3.8c.7 0 1.3-.5 1.3-1.2v-3.9c0-.7-.6-1.2-1.3-1.2H15c-.7 0-1.3.5-1.3 1.2v3.9c0 .6.6 1.2 1.3 1.2z"/> <path fill="#fff" d="M16.7 41l-1.8-1.5a.3.3 0 010-.4c.1-.2.3-.2.5 0l1.2 1 1.8-2h.5v.5L16.7 41z"/> <path fill="#5F9CD4" d="M15 62.7h3.8c.7 0 1.3-.6 1.3-1.3v-3.8c0-.7-.6-1.3-1.3-1.3H15c-.7 0-1.3.6-1.3 1.3v3.8c0 .7.6 1.3 1.3 1.3z"/> <path fill="#fff" d="M16.7 61l-1.8-1.5a.3.3 0 010-.5h.5l1.2 1 1.8-1.9h.5v.5L16.7 61z"/> <path fill="#fff" d="M66.3 65.8A14.5 14.5 0 1046 45.3a14.5 14.5 0 0020.4 20.5z" opacity=".2"/> <path fill="#202873" d="M56 70.5a15 15 0 11.1-30 15 15 0 010 30zm0-29a14 14 0 10.1 28 14 14 0 000-28z" opacity=".6"/> <path fill="#45A4DC" d="M69.4 66v-.1a16.9 16.9 0 10-3 3l2-2 1-1zM56 70a14.5 14.5 0 110-29 14.5 14.5 0 010 29z"/> <path fill="#3DA5E2" d="M56 72.7A17.1 17.1 0 1169.7 66l-3.1 3.1a17 17 0 01-10.4 3.6zm0-33.8a16.7 16.7 0 1010.2 29.9l3-3 .1-.1a16.7 16.7 0 00-13.2-26.8zm0 31.3a14.7 14.7 0 11.1-29.4 14.7 14.7 0 010 29.4zm0-28.9a14.3 14.3 0 10.1 28.5 14.3 14.3 0 000-28.5z"/> <path fill="#202873" d="M69 68.6l-.7-.7a.6.6 0 010-1l-2 2c-.2.3-.2.7 0 1l.8.8c.3-.5 1-1.3 1.9-2.1z"/> <path fill="#4F66AF" d="M68.3 67c-.2.2-.2.6 0 .9l.7.7a18 18 0 012-2l-.7-.7a.6.6 0 00-.8 0h-.1l-1 1z"/> <path fill="#202873" d="M68.3 67c-.2.2-.2.6 0 .9l.7.7a18 18 0 012-2l-.7-.7a.6.6 0 00-.8 0h-.1l-1 1z" opacity=".4"/> <path fill="#45A4DC" d="M83.3 78.6l-11.9-12h-.3l-2.1 2-1.9 2v.4l11.8 12a3 3 0 004.4 0 3.2 3.2 0 000-4.4z"/> <path fill="#45A4DC" d="M83.3 78.6l-11.9-12c-.1-.2-1.5 1-2.7 2.2-1 1 13.4 15.4 14.6 14.2a3.2 3.2 0 000-4.4z" opacity=".1"/>'},spinner:{width:100,height:100,viewBox:"0 0 100 100",content:' <rect width="22" height="22" x="39" y="5" fill="#7fc876" rx="11" ry="11"> <animate attributeName="opacity" begin="-0.8333333333333334s" dur="1s" keyTimes="0;1" repeatCount="indefinite" values="1;0"/> </rect> <rect width="22" height="22" x="39" y="5" fill="#202873" rx="11" ry="11" transform="rotate(60 50 50)"> <animate attributeName="opacity" begin="-0.6666666666666666s" dur="1s" keyTimes="0;1" repeatCount="indefinite" values="1;0"/> </rect> <rect width="22" height="22" x="39" y="5" fill="#7fc876" rx="11" ry="11" transform="rotate(120 50 50)"> <animate attributeName="opacity" begin="-0.5s" dur="1s" keyTimes="0;1" repeatCount="indefinite" values="1;0"/> </rect> <rect width="22" height="22" x="39" y="5" fill="#202873" rx="11" ry="11" transform="rotate(180 50 50)"> <animate attributeName="opacity" begin="-0.3333333333333333s" dur="1s" keyTimes="0;1" repeatCount="indefinite" values="1;0"/> </rect> <rect width="22" height="22" x="39" y="5" fill="#7fc876" rx="11" ry="11" transform="rotate(240 50 50)"> <animate attributeName="opacity" begin="-0.16666666666666666s" dur="1s" keyTimes="0;1" repeatCount="indefinite" values="1;0"/> </rect> <rect width="22" height="22" x="39" y="5" fill="#202873" rx="11" ry="11" transform="rotate(300 50 50)"> <animate attributeName="opacity" begin="0s" dur="1s" keyTimes="0;1" repeatCount="indefinite" values="1;0"/> </rect>'}};const ci=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.icon?n("svg",{attrs:{width:e.$attrs.width||e.icon.width,height:e.$attrs.height||e.icon.height,viewBox:e.icon.viewBox},domProps:{innerHTML:e._s(e.icon.content)}}):e._e()},staticRenderFns:[]},void 0,{name:"AwSvgImage",props:{name:{type:String,required:!0}},computed:{icon(){return li[this.name]}}},void 0,!1,void 0,!1,void 0,void 0,void 0),ui=(e="")=>e.charAt(0).toUpperCase()+e.substr(1);const di=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.columns.length?n("thead",[n("tr",{staticClass:"bg-muted-dark border-b"},e._l(e.columns,(function(t,r){return n("th",{key:r,staticClass:"py-3 px-4 lg:py-5 lg:px-6 text-left font-normal",class:[t.align,t.orderable?"hover:bg-muted-darker cursor-pointer":""],on:{click:function(n){e.$listeners.click&&e.$listeners.click(t,r)}}},[e._t("th",[n("span",{class:e.getArrowClasses(t)},[e._v("\n "+e._s(t.text)+"\n ")])],null,{column:t,key:r})],2)})),0)]):e._e()},staticRenderFns:[]},void 0,{name:"AwTableHead",props:{columns:{type:Array,default:()=>[],validator:Ae([{text:"string","align?":"string"}])}},methods:{getArrowClasses(e){return{"inline-flex":!0,"col-orderable":e.orderable,"col-orderable--asc":this._isParamEqual(e,"asc",!0),"col-orderable--desc":this._isParamEqual(e,"desc")}},_isParamEqual(e,t,n=!1){if(!e.orderable)return!1;const r=this.$route.query[e.orderable.param];return n?r===e.orderable[`${t}Value`]||this._isColDefault(e):r===e.orderable[`${t}Value`]},_isColDefault(e){return!(Object.keys(this.$route.query).indexOf(e.orderable.param)>-1)&&e.orderable.default}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const pi=Se({},void 0,{name:"AwTableCol",props:{field:{type:String,default:null},title:{type:String,default:null},textAlign:{type:String,default:"left",validator:e=>["text-left","text-center","text-right"].includes(`text-${e}`)},verticalAlign:{type:String,validator:e=>["align-bottom","align-middle","align-top"].includes(`align-${e}`),default:"top"},priority:{type:Number,default:0},orderable:{type:[Boolean,Object],default:!1}},render:e=>e("td",{},"stub")},void 0,void 0,void 0,!1,void 0,void 0,void 0);const hi=Se({render:function(e,t){var n=t._c;return n("td",t._b({directives:[{name:"show",rawName:"v-show",value:t.props.show,expression:"props.show"}],staticClass:"w-12 px-5 border-l cursor-pointer outline-none text-center align-middle",class:{"bg-muted":t.props.active,"border-t":t.props.index>0},attrs:{role:"button",tabindex:t.props.show?0:-1}},"td",t.$options.dataAttrs(t.props),!1),[n("AwIcon",{staticClass:"transition-200",class:{"rotate-180":t.props.active},attrs:{name:"chevron-d",size:"xxs"}})],1)},staticRenderFns:[]},void 0,{name:"AwTableRowToggler",props:{show:Boolean,active:Boolean,index:{type:Number,required:!0}},dataAttrs:e=>({"data-priority":"-Infinity","data-toggle-hidden":e.index})},void 0,!0,void 0,!1,void 0,void 0,void 0);const fi=Se({render:function(e,t){var n=t._c;return n("tr",[n("td",{staticClass:"p-2 align-top"},[t.props.title?n("strong",[t._v(t._s(t.props.title)+":")]):t._e()]),t._v(" "),n("td",{staticClass:"p-2"},[t._t("default",[t._v(t._s(t.props.cell))],null,t.props)],2)])},staticRenderFns:[]},void 0,{name:"AwTableRowHidden",props:{title:String,cell:{},index:Number}},void 0,!0,void 0,!1,void 0,void 0,void 0);function mi(e,t){return e?q(e,t):t}const vi=Se({},void 0,{name:"AwTableRow",functional:!0,props:{rowData:{},rowIndex:{required:!0},active:Boolean,hasRowClickListener:Boolean,visibleColumns:{type:Array,required:!0},hiddenColumns:{type:Array,default:()=>[]}},render(e,{props:t}){const{rowData:n,rowIndex:r,active:i,hasRowClickListener:s,visibleColumns:o,hiddenColumns:a}=t,l=!!a.length;return[e("tr",{staticClass:"bg-surface hover:bgcolor-muted hover:text-on-muted",class:{"cursor-pointer":s},attrs:{"data-row-index":s?r:null}},o.map(({field:t,slot:i,verticalAlign:s,textAlign:o,priority:a,staticClass:l})=>e("td",{staticClass:"py-3 px-4 lg:px-6",class:[l,`align-${s}`,{[`text-${o}`]:o,"border-t":r>0}],attrs:{"data-priority":r>0?null:a}},function(e,t,n){return t?t({cell:e,index:n}):e}(mi(t,n),i,r))).concat(e(hi,{props:{show:l,active:i,index:r}}))),e("tr",{class:{"cursor-pointer":s},attrs:{"data-row-index":s?r:null}},[e("AwAccordionFold",{props:{tag:"td",show:i},staticClass:"bg-surface border-t",attrs:{colspan:o.length+1}},[e("table",{staticClass:"m-2 lg:mx-4"},[e("tbody",{},a.map(({field:t,title:i,slot:s})=>e(fi,{props:{title:i,cell:mi(t,n),index:r},scopedSlots:{default:s}})))])])])]}},void 0,void 0,void 0,!1,void 0,void 0,void 0);const gi=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"w-full text-sm leading-snug overflow-hidden max-w-full shadow-md"},[e._t("thead",[n("AwTableHead",{attrs:{columns:e.theadVisible},on:{click:e.onTheadClick}})],{thead:e.theadVisible}),e._v(" "),n("tbody",{on:{click:e.handleRowClick}},[e._t("tr",[e._l(e.rows,(function(t,r){return[n("AwTableRow",e._b({key:t.id||r},"AwTableRow",Object.assign({},{rowData:t,rowIndex:r,active:e.openedRow===r,hasRowClickListener:e.hasRowClickListener},e.groupedColumns),!1))]}))],{rows:e.rows})],2),e._v(" "),e._t("tfoot")],2)},staticRenderFns:[]},void 0,{name:"AwTable",components:{AwTableHead:di,AwTableRow:vi},props:{rows:{type:Array,required:!0},verticalAlign:{type:String,validator:e=>["align-bottom","align-middle","align-top"].includes(`align-${e}`),default:"middle"},orderable:{type:Object,default:null}},data:()=>({hiddenColsIndexes:[],openedRow:null,isDefaultColSet:!1}),computed:{_tableBuilderConfig(){return ve({},"$awesConfig.AwTableBuilder",this)},columns(){const e=this.$slots.default;return Array.isArray(e)?e.filter(this._isColumnComponent).map(({componentOptions:e,data:t},n)=>{const r=e.propsData,i=q("scopedSlots.default",t),s=ve("","staticClass",t),o=q("field",r),a=ve(o?ui(o):"","title",r),l=ve(!1,"orderable",r),c=this._getOredableConfig(l,o);return{field:o,verticalAlign:ve(this.verticalAlign,"verticalAlign",r),priority:ve(n,"priority",r),title:a,textAlign:q("textAlign",r),slot:i,staticClass:s,orderable:c}}):fe(this.rows[0]).map((e,t)=>({field:e,title:ui(e),priority:t,verticalAlign:this.verticalAlign}))},groupedColumns(){const e=this.columns,t=[],n=[];for(let r=0,i=e.length;r<i;r++)this.hiddenColsIndexes.includes(r)?n.push(e[r]):t.push(e[r]);return{visibleColumns:t,hiddenColumns:n}},theadVisible(){const{visibleColumns:e,hiddenColumns:t}=this.groupedColumns;return e.map(({title:e,textAlign:t,orderable:n})=>({text:e,align:t&&`text-${t}`,orderable:n})).concat(t.length?[{text:""}]:[])},hasRowClickListener(){return"click:row"in this.$listeners}},watch:{rows(){this.openedRow=null}},mounted(){this.$scopedSlots.tr||this.setResizeListener()},methods:{toggleRow(e){this.openedRow=this.openedRow===e?null:e},onTheadClick(e,t){this.$emit("click:head",this.columns[t])},_getOredableConfig(e,t){const n=re(this._tableBuilderConfig,this.orderable||{});if(ue(Object,e)){const r={...e};delete r.param;const i=re(n,r);return!this.isDefaultColSet&&i.default?this.isDefaultColSet=!0:i.default=!1,this._unmaskOrderableConfig(i,t)}return ue(Boolean,e)&&!e?null:(!this.isDefaultColSet&&n.default?this.isDefaultColSet=!0:n.default=!1,this._unmaskOrderableConfig(n,t))},_unmaskOrderableConfig(e,t){const n=e.templateValue||t,r=this._unmaskParams(e.ascTemplate,n),i=this._unmaskParams(e.descTemplate,n);return{...e,ascValue:r,descValue:i}},_unmaskParams:(e,t,n="%s")=>e.split(n).join(t),setResizeListener(){let e;const t=()=>{clearTimeout(e),e=setTimeout(async()=>{this.hiddenColsIndexes.length&&(this.hiddenColsIndexes=[],await this.$nextTick());const e=this._getHiddenColsIndexes();e.length||(this.openedRow=null),this.hiddenColsIndexes=e},500)};this.$nextTick(()=>{this.hiddenColsIndexes=this._getHiddenColsIndexes()}),window.addEventListener("resize",t),this.$once("hook:beforeDestroy",()=>{clearTimeout(e),window.removeEventListener("resize",t)})},checkIfButtonOrLink(e){const t=["BUTTON","A"];let n=e;for(;n;){if(t.indexOf(n.tagName.toUpperCase())>-1)return!0;n=n.parentElement}return!1},handleRowClick(e){const t=e.target;if(this.checkIfButtonOrLink(t))return;const n=t.hasAttribute("data-toggle-hidden")?t:t.closest("[data-toggle-hidden]");if(n){const e=parseInt(n.getAttribute("data-toggle-hidden"));return void this.toggleRow(e)}if(!this.hasRowClickListener)return;const r=t.closest("[data-row-index]");if(r){const t=parseInt(r.getAttribute("data-row-index")),n=this.rows[t];this.$emit("click:row",n,t,e)}},_isColumnComponent:e=>((e="")=>ge((e,t)=>t?e+ui(t):e,"",_e("-",e)))(q("componentOptions.tag",e))===pi.name,_getParentEl(){return ve(null,"$el.parentElement",this)},_getFirstRow(){return Array.from(this.$el.querySelectorAll("tbody > :first-child > [data-priority]"))},_hasOverflowWidth(){const e=this._getParentEl();return!!e&&e.clientWidth<this.$el.scrollWidth},_sortColumnsByPriority:e=>e.map((e,t)=>({el:e,index:t})).sort((e,t)=>parseFloat(e.el.getAttribute("data-priority"))-parseFloat(t.el.getAttribute("data-priority"))),_getHiddenColsIndexes(){const e=this._getFirstRow();let t=[];if(this._hasOverflowWidth()){const n=this._sortColumnsByPriority(e);let r=this._getParentEl().clientWidth;t=n.reduce((e,{el:t,index:n})=>(r-=t.offsetWidth,r<50?e.concat(n):e),[])}return t}}},void 0,!1,void 0,!1,void 0,void 0,void 0),yi=[15,50,100];const _i=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative"},[e.isEmpty&&!e.collection.loading?n("div",[e.isWatchParamsPresent?e._e():e._t("empty-container",[n("AwCard",{staticClass:"flex items-center justify-center min-h-full mb-5",class:"h-"+e.defaultHeight},[n("div",{staticClass:"text-center"},[e._t("empty-icon",[n("AwSvgImage",{staticClass:"block m-auto mb-4",attrs:{name:"empty"}})]),e._v(" "),e._t("empty-title",[n("div",{staticClass:"text-disabled mb-4"},[e._v("\n "+e._s(e.$t("AwTableBuilder.empty"))+"\n ")])]),e._v(" "),e._t("empty-button")],2)])]),e._v(" "),e.isWatchParamsPresent?e._t("empty-filter-container",[n("AwCard",{staticClass:"flex items-center justify-center min-h-full mb-5",class:"h-"+e.defaultHeight},[n("div",{staticClass:"text-center"},[e._t("empty-filter-icon",[n("AwSvgImage",{staticClass:"block m-auto mb-4",attrs:{name:"empty"}})]),e._v(" "),e._t("empty-filter-title",[n("div",{staticClass:"text-disabled mb-4"},[e._v("\n "+e._s(e.$t("AwTableBuilder.emptyFilter"))+"\n ")])]),e._v(" "),e._t("empty-filter-button")],2)])]):e._e()],2):e._e(),e._v(" "),e.$scopedSlots.list?n("ul",{staticClass:"list-none",style:e.collection.loading?"filter: blur(3px);":null},e._l(e.items,(function(t){return n("li",{key:t.id},[e._t("list",null,{item:t})],2)})),0):e._e(),e._v(" "),e.items&&e.items.length&&!e.$scopedSlots.list?n("AwTable",e._g({key:"table",ref:"table",style:e.collection.loading?"filter: blur(3px);":null,attrs:{rows:e.items,"vertical-align":e.verticalAlign,orderable:e.orderable},on:{"click:head":e.onTheadClick},scopedSlots:e._u([{key:"thead",fn:function(t){var n=t.thead;return[e._t("thead",null,{thead:n})]}}],null,!0)},e.tableListeners),[e._v(" "),e._t("default"),e._v(" "),e.$slots.dropdown||e.$scopedSlots.dropdown?n("AwTableCol",{staticClass:"w-20 lg:w-24",attrs:{priority:1},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.cell;return[n("AwContextMenu",[e._t("dropdown",null,{cell:r})],2)]}}],null,!0)}):e._e()],2):e.collection.loading&&!e.$scopedSlots.list?n("div",{key:"empty-loading-container"},[e._t("empty-loading-container",[n("AwCard",{staticClass:"flex items-center justify-center min-h-full mb-5",class:"h-"+e.defaultHeight})])],2):e._e(),e._v(" "),null===e.pagination.total||e.isEmpty?e._e():n("AwPagination",e._b({staticClass:"mt-3 lg:mt-8",attrs:{page:e.page,limits:e.limitsMerged,"arrow-nav":e.arrowNav},on:{"click:page":function(t){e.page=t},"click:limit":function(t){e.limit=t}}},"AwPagination",e.pagination,!1)),e._v(" "),e.collection.loading?n("div",{staticClass:"absolute inset-0 flex items-center justify-center",class:"h-"+e.defaultHeight},[e._t("loading",[n("AwChip",{staticClass:"bgcolor-muted-dark"},[n("AwSvgImage",{staticClass:"h-5 w-5",attrs:{slot:"left",name:"spinner"},slot:"left"}),e._v("\n "+e._s(e.$t("AwTableBuilder.loading"))+"\n ")],1)])],2):e._e()],1)},staticRenderFns:[]},void 0,{name:"AwTableBuilder",mixins:[$n],components:{AwCard:fn,AwChip:gn,AwSvgImage:ci,AwPagination:vr},props:{collection:{type:Object,required:!0,validator:e=>Array.isArray(e.models)&&"function"==typeof e.fetch&&"function"==typeof e.on},pageParam:{type:String,default:"page"},limitParam:{type:String,default:"limit"},limits:{type:Array,default:()=>yi,validator:e=>e.every(e=>"number"==typeof e)},scrollOnPage:{type:Boolean,default:!0},verticalAlign:String,defaultHeight:{type:String,default:"50vh",validator:e=>["10vh","30vh","50vh","70vh"].includes(e)},arrowNav:{type:Boolean,default:!0},orderable:{type:Object,default:null}},data:()=>({pagination:{total:null,limit:yi[0]}}),computed:{page:{get(){return Number(this.$route.query[this.pageParam]||1)},set(e){this.$router.replace(Ve({[this.pageParam]:1===e?null:String(e)},this.$route))}},limit:{get(){return Number(this.$route.query[this.limitParam]||yi[0])},set(e){const t=parseInt(e)===this.limits[0]?null:String(e);this.$router.replace(Ve({[this.pageParam]:null,[this.limitParam]:t},this.$route))}},items(){return this.collection.models},isEmpty(){return 0===this.collection.models.length},isWatchParamsPresent(){return!(!this.watchParams||!this.watchParams.length)&&this.watchParams.some(e=>!!this.$route.query[e])},placeholderRows(){return[...Array(this.limit).keys()].map(()=>({}))},fetchAllQuery(){const e={page:this.page,limit:this.limit,...this.fetchQuery()},t=this._currentOrderableConfig.param;return this.$route.query[t]&&(e[t]=this.$route.query[t]),e},limitsMerged(){return this.limits.includes(this.pagination.limit)?this.limits:this.limits.concat(this.pagination.limit).sort((e,t)=>e>t)},tableListeners(){return V((e,t)=>"click:row"===t,this.$listeners)},_currentOrderableConfig(){return re(ve({},"$awesConfig.AwTableBuilder",this),ve({},"orderable",this))}},watch:{page:{handler(e,t){t&&this.scrollOnPage&&this._scrollTop(),this.fetch()},immediate:!0},limit(){this.scrollOnPage&&this._scrollTop(),this.fetch()}},created(){this.watchParams&&this.collection.on("delete",this._fetchOnDelete)},methods:{fetch(e={}){this.collection.fetch({params:{...this.fetchAllQuery,...e}}).then(this._setPagination)},onTheadClick(e){const t=e.orderable;if(this.$emit("click:head",e),t){const n=this.$route.query[t.param]===t.ascValue,r=this.$route.query[t.param]===t.descValue,i=n||this._isColDefault(e)?t.descValue:r?null:t.ascValue;this.$router.replace(Ve({[t.param]:i},this.$route)),this.fetch({[t.param]:i})}},_isColDefault(e){return!(Object.keys(this.$route.query).indexOf(e.orderable.param)>-1)&&e.orderable.default},_fetchFromWatcher(){1!==this.page?this.$router.push(Ve({page:null},this.$route)):this.fetch()},_fetchOnDelete(){if(this.items&&!this.items.length&&this.page>1){const e=this.page>2?this.page-1:null;this.$router.push(Ve({page:e},this.$route))}this.fetch()},_setPagination(e){const t=ve(null,"response.data.meta.total",e),n=ve(yi[0],"response.data.meta.per_page",e);this.limit!==n&&(this.limit=n),this.pagination={total:t,limit:n}},_scrollTop(){if(this.$isServer)return;const e=this.$el,{y:t=0}=e.getBoundingClientRect();window.pageYOffset+t<window.innerHeight?document.body.scrollIntoView({behavior:"smooth"}):t<0&&e.scrollIntoView({behavior:"smooth"})}}},void 0,!1,void 0,!1,void 0,void 0,void 0);let bi=0;const wi=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{on:{dragenter:function(t){e.dragOver=!0}}},[n("label",{staticClass:"relative p-4 rounded border overflow-y-hidden flex items-center justify-center cursor-pointer group",on:{dragleave:function(t){e.dragOver=!1},dragover:function(e){e.preventDefault()},drop:function(t){return t.preventDefault(),e._onDrop(t)}}},[n("input",e._b({staticClass:"sr-only",attrs:{type:"file",accept:e.format?e.formatString:null,multiple:e.multiple},on:{change:function(t){return e._uploadFile(t.target.files)}}},"input",e.mergedAttrs,!1)),e._v(" "),n("span",{staticClass:"text-lg pointer-events-none opacity-60 group-hover:opacity-90 block text-center",class:{"opacity-90":e.dragOver}},[e._t("drag-over",[n("AwIcon",{attrs:{name:"upload",size:"4xl"}}),e._v(" "),n("span",{staticClass:"block mt-2"},[e._v("\n "+e._s(e.$t("AwUploader.drop"))+"\n ")])],{dragOver:e.dragOver})],2)]),e._v(" "),e._t("file-list",[n("AwUploaderFiles",{attrs:{files:e.filesStats,"remove-file":e.removeFile}})],null,{files:e.filesStats,removeFile:e.removeFile}),e._v(" "),e.name?[e._l(e.files,(function(t){var r=t.uploadedId;return[r?n("input",{key:r,attrs:{type:"hidden",tabindex:"-1",name:e.name},domProps:{value:r}}):e._e()]}))]:e._e()],2)},staticRenderFns:[]},void 0,{name:"AwUploader",inheritAttrs:!1,props:{url:{type:String,required:!0},name:{type:String,default:""},format:{type:Array,default:()=>[]},max:{type:Number,default:2},getFileId:{type:Function,default:q("data.fileId")},multiple:Boolean},data:()=>({dragOver:!1,files:{},cancelFiles:{}}),filters:{bytesToMb(e){let t=e/1024/1024;return(t<1?t.toFixed(3):t.toFixed(1))+"Mb"}},computed:{formatString(){return this.format.map(e=>`*.${e}`).join(", ")},maxSizeBytes(){return 1024*this.size*1024},filesStats(){return"Object"!==t(e=this.files)?[]:Object.values(e);var e},mergedAttrs(){return{...this.$attrs,"data-enter-skip":""}}},methods:{_validateFile(e){const t=[],n=e.name;return this.format.length&&!this._extensionMatch(e)&&t.push(this.$t("AwUploader.errorExtension",{fileName:n})),this.size&&e.size>this.maxSizeBytes&&t.push(this.$t("AwUploader.errorSize",{fileName:n})),t},_createFileRecord(e){const t=bi++;return this.$set(this.files,t,{id:t,name:e,progress:0,loaded:!1}),t},_onDrop(e){this.dragOver=!1;const t=e.dataTransfer.files;this._uploadFile(this.multiple?t:[t[0]])},_uploadFile(e){for(var t=e.length-1;t>=0;t--){const n=e[t],r=this._validateFile(n);if(r.length)return void this.$emit("error",r);const i=this._createFileRecord(n.name),s=new FormData;s.append("file",n),this.cancelFiles[i]=sr.source(),this.$axios.request({method:"post",url:this.url,data:s,cancelToken:this.cancelFiles[i].token,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:this._setFileProgress(i)}).then(e=>{delete this.cancelFiles[i];const t=this.getFileId(e);this.$set(this.files[i],"uploadedId",t),this.$set(this.files[i],"loaded",!0)}).catch(e=>{or(e)||console.log(e)})}},removeFile(e){const t=this.cancelFiles[e];t&&(t.cancel(),delete this.cancelFiles[e]),this.$delete(this.files,e)},_setFileProgress(e){return t=>{const{total:n,loaded:r}=t,i=Math.round(r/n*100);this.$set(this.files[e],"progress",i)}},_getFileExtension:e=>e.split(".").pop(),_extensionMatch(e){let t=this._getFileExtension(e.name);return this.format.includes(t)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const xi=Se({render:function(e,t){var n=t._c;return t.props.files.length?n("AwTable",{staticClass:"table-fixed",class:[t.data.class,t.data.staticClass],style:[t.data.style,t.data.staticStyle],attrs:{rows:t.props.files},scopedSlots:t._u([{key:"thead",fn:function(){return[n("thead")]},proxy:!0}],null,!1,717023432)},[t._v(" "),n("AwTableCol",{staticClass:"text-center w-1/6",attrs:{"vertical-align":"middle"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.index;return[t._v(t._s(n+1))]}}],null,!1,3036303403)}),t._v(" "),n("AwTableCol",{staticClass:"truncate",attrs:{field:"name","vertical-align":"middle"}}),t._v(" "),n("AwTableCol",{staticClass:"hidden md:table-cell text-center",attrs:{"vertical-align":"middle"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.cell;return[t._v("\n "+t._s(n.loaded?t.parent.$t("AwUploader.loaded"):n.progress+"%")+"\n ")]}}],null,!1,3359254715)}),t._v(" "),n("AwTableCol",{staticClass:"text-center w-1/6",attrs:{"vertical-align":"middle"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.cell;return[n("AwButton",{attrs:{theme:"icon",icon:"close",size:"sm",text:t.parent.$t("AwUploader.remove")},on:{click:function(e){return t.props.removeFile(r.id)}}})]}}],null,!1,2055640295)})],1):t._e()},staticRenderFns:[]},void 0,{name:"AwUploaderFiles",props:{files:{type:Array,default:()=>[]},removeFile:{type:Function,required:!0}}},void 0,!0,void 0,!1,void 0,void 0,void 0);const Ci=Se({render:function(e,t){var n=t._c;return n("span",{staticClass:"flex items-center",class:[t.data.staticClass,t.data.class],style:[t.data.staticStyle,t.data.style]},[n("AwAvatar",{attrs:{size:t.props.hideName?36:22,src:t.props.src,name:t.props.name,"is-colored":t.$options.isColor(t.props.src,t.props.name),type:t.$options.getType(t.props.src,t.props.hideName)}}),t._v(" "),t.props.hideName?t._e():n("span",{staticClass:"ml-2"},[n("span",[t._v(t._s(t.props.name))])])],1)},staticRenderFns:[]},void 0,{name:"AwAvatar",components:{AwAvatar:Te},props:{src:{type:String,default:""},name:{type:String,default:""},hideName:{type:Boolean,default:!1}},isColor:(e,t)=>!(""===e&&(""===t||""===t.replace(/ /g,""))),getType:(e,t)=>""!==e&&e||t?"initials":"no-img"},void 0,!0,void 0,!1,void 0,void 0,void 0);const ki=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("button",{staticClass:"align-middle focus:outline-none rounded-full focus:shadow-outline",attrs:{"aria-label":e.$t("AwUserMenu.openMenu")},on:{click:function(t){e.isOpened=!e.isOpened}}},[n("AwUserpic",{attrs:{src:e.avatar,name:e.name,"hide-name":""}})],1),e._v(" "),n("AwDropdown",{staticClass:"mt-1 lg:mt-0",staticStyle:{width:"300px"},attrs:{show:e.isOpened,options:{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"computeStyles",options:{adaptive:!1}}]}},on:{"update:show":function(t){e.isOpened=t}}},[e.name||e.info?n("div",{staticClass:"p-6 bg-muted"},[e.name?n("h5",{staticClass:"text-xl font-semibold"},[e._v("\n "+e._s(e.name)+"\n ")]):e._e(),e._v(" "),e.info?n("p",{staticClass:"mb-0 mt-1 text-xs text-grey leading-snug",domProps:{innerHTML:e._s(e.info)}}):e._e()]):e._e(),e._v(" "),e.$slots.default?[n("hr"),e._v(" "),n("div",{staticClass:"px-6 pb-4 "},[e._t("default")],2)]:e._e(),e._v(" "),n("hr"),e._v(" "),n("div",{staticClass:"px-6 py-2"},[n("AwSwitcher",{attrs:{checked:e.darkTheme,label:e.$t("AwUserMenu.darkTheme")},on:{change:function(t){return e.$emit("switch-dark-theme",t)}}})],1)],2)],1)},staticRenderFns:[]},void 0,{name:"AwUserMenu",components:{AwUserpic:Ci,AwDropdown:Qt,AwSwitcher:Kn},props:{avatar:{type:String,default:""},name:{type:String,default:""},info:{type:String,default:""},darkTheme:Boolean},data:()=>({isOpened:!1})},void 0,!1,void 0,!1,void 0,void 0,void 0);const Ai=Se({render:function(){var e=this.$createElement,t=this._self._c||e;return t("transition",{attrs:{name:"collapse"},on:{enter:this.open,"after-enter":this.removeMaxHeight,leave:this.close,"after-leave":this.removeMaxHeight}},[t("div",{directives:[{name:"show",rawName:"v-show",value:this.show,expression:"show"}],ref:"wrapper",staticClass:"aw-toggler overflow-hidden"},[t("div",{staticClass:"aw-toggler__content bg-muted-dark rounded p-4 relative"},[this._t("default")],2)])])},staticRenderFns:[]},void 0,{name:"AwToggler",props:{show:{type:Boolean,default:!0}},methods:{open(){this.setMaxHeight(),this.$emit("open")},close(){this.setMaxHeight(),this.$emit("close")},setMaxHeight(){const e=this.$refs.wrapper.scrollHeight;this.$refs.wrapper.style.maxHeight=`${e}px`},removeMaxHeight(){this.$refs.wrapper.style.maxHeight=null}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const $i=Se({},void 0,{name:"AwContextMenu",mixins:[yn],props:{options:{type:Object,default:()=>({})},buttonClass:{type:String,default:""}},render(e){const t=this.$slots.default.filter(e=>!!e.tag).map(t=>e("li",{staticClass:"aw-cm-item"},[{...t,data:{...t.data,attrs:{...t.data.attrs,"data-arrow-focus":""}}}])),n=e("ul",{class:{"list-none":!0,"mb-0":!0,"aw-context-menu__list":!0},style:{marginBottom:0}},t),r=e("AwDropdown",{ref:"drop",props:{show:this.isOpened,options:this.options},class:{"w-20":!0,"aw-context-menu__toggler":!0},scopedSlots:{default:()=>n},on:{"update:show":e=>this.isOpened=e}}),i=e("AwButton",{props:{theme:"icon",icon:"more"},staticClass:this.buttonClass,attrs:{"data-arrow-focus":""},on:{click:this.toggle}});return e("div",{staticClass:"aw-context-menu",on:{keydown:this.onKeydown}},[i,r])},data:()=>({isOpened:!1}),methods:{toggle(){this.isOpened=!this.isOpened},onKeydown(e){"ArrowDown"===e.key&&(e.stopPropagation(),this._arrowFocusItem(1,e)),"ArrowUp"===e.key&&(e.stopPropagation(),this._arrowFocusItem(-1,e))}}},void 0,void 0,void 0,!1,void 0,void 0,void 0);var Si=Object.freeze({__proto__:null,AwAccordionFold:Oe,AwAvatar:Te,AwInfo:je,AwButton:Ie,AwBadge:Be,AwButtonNav:We,AwLink:Fe,AwDropdown:Qt,AwDropdownButton:en,AwCalendar:pn,AwCalendarView:hn,AwCard:fn,AwChart:vn,AwChip:gn,AwChipSelect:_n,AwCropper:xn,AwCodeSnippet:An,AwContentWrapper:Sn,AwGrid:Nn,AwForm:Mn,AwInput:qn,AwCheckbox:Hn,AwDate:Un,AwRadio:Wn,AwSearch:Zn,AwSwitcher:Kn,AwTextarea:Xn,AwTimelineBuilder:Gn,AwCode:Qn,AwPassword:er,AwTel:tr,AwSelect:ar,AwAddress:lr,AwIcon:Ne,AwLayoutDefault:hr,AwLayoutFrameCenter:fr,AwPage:mr,AwPagination:vr,AwMarkdownEditor:Wr,AwModal:oi,AwMultiBlockBuilder:ai,AwSlider:qe,AwSvgImage:ci,AwTabNav:He,AwTable:gi,AwTableBuilder:_i,AwTableCol:pi,AwUploader:wi,AwUploaderFiles:xi,AwUserpic:Ci,AwUserMenu:ki,AwToggler:Ai,AwContextMenu:$i});const Oi=new Map;function Ei(){const e=this.__tooltip__,t=e.__placement__,n=e.__options__;e.setAttribute("data-visible","");const r=[{name:"arrow",options:{padding:6}},{name:"preventOverflow",options:{padding:16}}],i=ve([0,6],"offset",n);i&&r.push({name:"offset",options:{offset:i}});const s=Xt(this,e,{placement:t,modifiers:r});Oi.set(e,s)}const Di=[{names:["mouseenter","focus"],handler:Ei},{names:["mouseleave","blur"],handler:function(){const e=this.__tooltip__;Oi.get(e).destroy(),e.removeAttribute("data-visible")}}];function Ni(e,t=!1,n=Di){const r=t?"addEventListener":"removeEventListener";n.forEach(({names:t,handler:n})=>{t.forEach(t=>{e[r](t,n)})})}function Ti(e,t){return e.__content__=t,e.innerHTML=t+"</span><span data-popper-arrow></span>",e}function ji(e){return Q("String",e)?e:ve("","content",e)}function Li(e){return Q("Object",e)?se("content",e):{}}function Pi(e){if(e.__tooltip__){clearTimeout(e.__async_tooltip__);const t=e.__tooltip__,n=Oi.get(t);n&&(n.destroy(),Oi.delete(t)),Ni(e,!1),t.parentElement&&t.parentElement.removeChild(t),t.onclick=null,delete t.__placement__,delete t.__options__,delete t.__content__,delete e.__tooltip__,delete e.__async_tooltip__}}function Fi(e,{value:t,arg:n="top",modifiers:r}){const i=ji(t);if(i){const s=Li(t);e.__tooltip__=function(e,t,n){const r=document.createElement("div");let i=ve("","class",t);const s=ve(null,"id",t),o=ve(oe,"onclick",t);return Q("Function",o)&&(i+=" cursor-pointer",r.onclick=o),r.__placement__=n,r.__options__=le(t),r.className="aw-tooltip "+i,s&&r.setAttribute("id",s),Ti(r,e),r}(i,s,n),r.prepend?e.__async_tooltip__=setTimeout(()=>{e.parentElement.insertBefore(e.__tooltip__,e),Oi.get(e.__tooltip__).update()},10):document.body.appendChild(e.__tooltip__),r.show?Ei.call(e):Ni(e,!0)}}var Mi={bind:Fi,update:function(e,{value:t,arg:n="top",modifiers:r}){const i=ji(t);if(i&&!e.__tooltip__)return void Fi(e,{value:t,arg:n,modifiers:r});if(!i)return void Pi(e);const s=Li(t);if(n!==e.__tooltip__.__placement__||!M(s,e.__tooltip__.__options__))return Pi(e),void Fi(e,{value:t,arg:n,modifiers:r});i!==e.__tooltip__.__content__&&Ti(e.__tooltip__,i)},unbind:Pi},Ii=Object.freeze({});
|
|
16
|
+
/*!
|
|
17
|
+
* Vue.js v2.6.11
|
|
18
|
+
* (c) 2014-2019 Evan You
|
|
19
|
+
* Released under the MIT License.
|
|
20
|
+
*/function Bi(e){return null==e}function Ri(e){return null!=e}function Vi(e){return!0===e}function zi(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function qi(e){return null!==e&&"object"==typeof e}var Hi=Object.prototype.toString;function Ui(e){return Hi.call(e).slice(8,-1)}function Wi(e){return"[object Object]"===Hi.call(e)}function Yi(e){return"[object RegExp]"===Hi.call(e)}function Zi(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function Ki(e){return Ri(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function Xi(e){return null==e?"":Array.isArray(e)||Wi(e)&&e.toString===Hi?JSON.stringify(e,null,2):String(e)}function Gi(e){var t=parseFloat(e);return isNaN(t)?e:t}function Ji(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var Qi=Ji("slot,component",!0),es=Ji("key,ref,slot,slot-scope,is");function ts(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var ns=Object.prototype.hasOwnProperty;function rs(e,t){return ns.call(e,t)}function is(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var ss=/-(\w)/g,os=is((function(e){return e.replace(ss,(function(e,t){return t?t.toUpperCase():""}))})),as=is((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),ls=/\B([A-Z])/g,cs=is((function(e){return e.replace(ls,"-$1").toLowerCase()}));var us=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function ds(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function ps(e,t){for(var n in t)e[n]=t[n];return e}function hs(e){for(var t={},n=0;n<e.length;n++)e[n]&&ps(t,e[n]);return t}function fs(e,t,n){}var ms=function(e,t,n){return!1},vs=function(e){return e};function gs(e,t){if(e===t)return!0;var n=qi(e),r=qi(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),s=Array.isArray(t);if(i&&s)return e.length===t.length&&e.every((function(e,n){return gs(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||s)return!1;var o=Object.keys(e),a=Object.keys(t);return o.length===a.length&&o.every((function(n){return gs(e[n],t[n])}))}catch(e){return!1}}function ys(e,t){for(var n=0;n<e.length;n++)if(gs(e[n],t))return n;return-1}function _s(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var bs=["component","directive","filter"],ws=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],xs={optionMergeStrategies:Object.create(null),silent:!1,productionTip:"production"!==process.env.NODE_ENV,devtools:"production"!==process.env.NODE_ENV,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:ms,isReservedAttr:ms,isUnknownElement:ms,getTagNamespace:fs,parsePlatformTagName:vs,mustUseProp:ms,async:!0,_lifecycleHooks:ws},Cs=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function ks(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function As(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var $s=new RegExp("[^"+Cs.source+".$_\\d]");var Ss,Os="__proto__"in{},Es="undefined"!=typeof window,Ds="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Ns=Ds&&WXEnvironment.platform.toLowerCase(),Ts=Es&&window.navigator.userAgent.toLowerCase(),js=Ts&&/msie|trident/.test(Ts),Ls=Ts&&Ts.indexOf("msie 9.0")>0,Ps=Ts&&Ts.indexOf("edge/")>0,Fs=(Ts&&Ts.indexOf("android"),Ts&&/iphone|ipad|ipod|ios/.test(Ts)||"ios"===Ns),Ms=(Ts&&/chrome\/\d+/.test(Ts),Ts&&/phantomjs/.test(Ts),Ts&&Ts.match(/firefox\/(\d+)/)),Is={}.watch,Bs=!1;if(Es)try{var Rs={};Object.defineProperty(Rs,"passive",{get:function(){Bs=!0}}),window.addEventListener("test-passive",null,Rs)}catch(e){}var Vs=function(){return void 0===Ss&&(Ss=!Es&&!Ds&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),Ss},zs=Es&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function qs(e){return"function"==typeof e&&/native code/.test(e.toString())}var Hs,Us="undefined"!=typeof Symbol&&qs(Symbol)&&"undefined"!=typeof Reflect&&qs(Reflect.ownKeys);Hs="undefined"!=typeof Set&&qs(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Ws=fs,Ys=fs,Zs=fs,Ks=fs;if("production"!==process.env.NODE_ENV){var Xs="undefined"!=typeof console,Gs=/(?:^|[-_])(\w)/g;Ws=function(e,t){var n=t?Zs(t):"";xs.warnHandler?xs.warnHandler.call(null,e,t,n):Xs&&!xs.silent&&console.error("[Vue warn]: "+e+n)},Ys=function(e,t){Xs&&!xs.silent&&console.warn("[Vue tip]: "+e+(t?Zs(t):""))},Ks=function(e,t){if(e.$root===e)return"<Root>";var n="function"==typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e,r=n.name||n._componentTag,i=n.__file;if(!r&&i){var s=i.match(/([^/\\]+)\.vue$/);r=s&&s[1]}return(r?"<"+r.replace(Gs,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")+">":"<Anonymous>")+(i&&!1!==t?" at "+i:"")};Zs=function(e){if(e._isVue&&e.$parent){for(var t=[],n=0;e;){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((function(e,t){return""+(0===t?"---\x3e ":function(e,t){for(var n="";t;)t%2==1&&(n+=e),t>1&&(e+=e),t>>=1;return n}(" ",5+2*t))+(Array.isArray(e)?Ks(e[0])+"... ("+e[1]+" recursive calls)":Ks(e))})).join("\n")}return"\n\n(found in "+Ks(e)+")"}}var Js=0,Qs=function(){this.id=Js++,this.subs=[]};Qs.prototype.addSub=function(e){this.subs.push(e)},Qs.prototype.removeSub=function(e){ts(this.subs,e)},Qs.prototype.depend=function(){Qs.target&&Qs.target.addDep(this)},Qs.prototype.notify=function(){var e=this.subs.slice();"production"===process.env.NODE_ENV||xs.async||e.sort((function(e,t){return e.id-t.id}));for(var t=0,n=e.length;t<n;t++)e[t].update()},Qs.target=null;var eo=[];function to(e){eo.push(e),Qs.target=e}function no(){eo.pop(),Qs.target=eo[eo.length-1]}var ro=function(e,t,n,r,i,s,o,a){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,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=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},io={child:{configurable:!0}};io.child.get=function(){return this.componentInstance},Object.defineProperties(ro.prototype,io);var so=function(e){void 0===e&&(e="");var t=new ro;return t.text=e,t.isComment=!0,t};function oo(e){return new ro(void 0,void 0,void 0,String(e))}function ao(e){var t=new ro(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var lo=Array.prototype,co=Object.create(lo);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=lo[e];As(co,e,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,s=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&o.observeArray(i),o.dep.notify(),s}))}));var uo=Object.getOwnPropertyNames(co),po=!0;function ho(e){po=e}var fo=function(e){this.value=e,this.dep=new Qs,this.vmCount=0,As(e,"__ob__",this),Array.isArray(e)?(Os?function(e,t){e.__proto__=t}(e,co):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var s=n[r];As(e,s,t[s])}}(e,co,uo),this.observeArray(e)):this.walk(e)};function mo(e,t){var n;if(qi(e)&&!(e instanceof ro))return rs(e,"__ob__")&&e.__ob__ instanceof fo?n=e.__ob__:po&&!Vs()&&(Array.isArray(e)||Wi(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new fo(e)),t&&n&&n.vmCount++,n}function vo(e,t,n,r,i){var s=new Qs,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var a=o&&o.get,l=o&&o.set;a&&!l||2!==arguments.length||(n=e[t]);var c=!i&&mo(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=a?a.call(e):n;return Qs.target&&(s.depend(),c&&(c.dep.depend(),Array.isArray(t)&&_o(t))),t},set:function(t){var o=a?a.call(e):n;t===o||t!=t&&o!=o||("production"!==process.env.NODE_ENV&&r&&r(),a&&!l||(l?l.call(e,t):n=t,c=!i&&mo(t),s.notify()))}})}}function go(e,t,n){if("production"!==process.env.NODE_ENV&&(Bi(e)||zi(e))&&Ws("Cannot set reactive property on undefined, null, or primitive value: "+e),Array.isArray(e)&&Zi(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?("production"!==process.env.NODE_ENV&&Ws("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),n):r?(vo(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function yo(e,t){if("production"!==process.env.NODE_ENV&&(Bi(e)||zi(e))&&Ws("Cannot delete reactive property on undefined, null, or primitive value: "+e),Array.isArray(e)&&Zi(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount?"production"!==process.env.NODE_ENV&&Ws("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):rs(e,t)&&(delete e[t],n&&n.dep.notify())}}function _o(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&_o(t)}fo.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)vo(e,t[n])},fo.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)mo(e[t])};var bo=xs.optionMergeStrategies;function wo(e,t){if(!t)return e;for(var n,r,i,s=Us?Reflect.ownKeys(t):Object.keys(t),o=0;o<s.length;o++)"__ob__"!==(n=s[o])&&(r=e[n],i=t[n],rs(e,n)?r!==i&&Wi(r)&&Wi(i)&&wo(r,i):go(e,n,i));return e}function xo(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?wo(r,i):i}:t?e?function(){return wo("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Co(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function ko(e,t,n,r){var i=Object.create(e||null);return t?("production"!==process.env.NODE_ENV&&So(r,t,n),ps(i,t)):i}"production"!==process.env.NODE_ENV&&(bo.el=bo.propsData=function(e,t,n,r){return n||Ws('option "'+r+'" can only be used during instance creation with the `new` keyword.'),Ao(e,t)}),bo.data=function(e,t,n){return n?xo(e,t,n):t&&"function"!=typeof t?("production"!==process.env.NODE_ENV&&Ws('The "data" option should be a function that returns a per-instance value in component definitions.',n),e):xo(e,t)},ws.forEach((function(e){bo[e]=Co})),bs.forEach((function(e){bo[e+"s"]=ko})),bo.watch=function(e,t,n,r){if(e===Is&&(e=void 0),t===Is&&(t=void 0),!t)return Object.create(e||null);if("production"!==process.env.NODE_ENV&&So(r,t,n),!e)return t;var i={};for(var s in ps(i,e),t){var o=i[s],a=t[s];o&&!Array.isArray(o)&&(o=[o]),i[s]=o?o.concat(a):Array.isArray(a)?a:[a]}return i},bo.props=bo.methods=bo.inject=bo.computed=function(e,t,n,r){if(t&&"production"!==process.env.NODE_ENV&&So(r,t,n),!e)return t;var i=Object.create(null);return ps(i,e),t&&ps(i,t),i},bo.provide=xo;var Ao=function(e,t){return void 0===t?e:t};function $o(e){new RegExp("^[a-zA-Z][\\-\\.0-9_"+Cs.source+"]*$").test(e)||Ws('Invalid component name: "'+e+'". Component names should conform to valid custom element name in html5 specification.'),(Qi(e)||xs.isReservedTag(e))&&Ws("Do not use built-in or reserved HTML elements as component id: "+e)}function So(e,t,n){Wi(t)||Ws('Invalid value for option "'+e+'": expected an Object, but got '+Ui(t)+".",n)}function Oo(e,t,n){if("production"!==process.env.NODE_ENV&&function(e){for(var t in e.components)$o(t)}(t),"function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,s={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])?s[os(i)]={type:null}:"production"!==process.env.NODE_ENV&&Ws("props must be strings when using array syntax.");else if(Wi(n))for(var o in n)i=n[o],s[os(o)]=Wi(i)?i:{type:i};else"production"!==process.env.NODE_ENV&&Ws('Invalid value for option "props": expected an Array or an Object, but got '+Ui(n)+".",t);e.props=s}}(t,n),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(Wi(n))for(var s in n){var o=n[s];r[s]=Wi(o)?ps({from:s},o):{from:o}}else"production"!==process.env.NODE_ENV&&Ws('Invalid value for option "inject": expected an Array or an Object, but got '+Ui(n)+".",t)}}(t,n),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=Oo(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Oo(e,t.mixins[r],n);var s,o={};for(s in e)a(s);for(s in t)rs(e,s)||a(s);function a(r){var i=bo[r]||Ao;o[r]=i(e[r],t[r],n,r)}return o}function Eo(e,t,n,r){if("string"==typeof n){var i=e[t];if(rs(i,n))return i[n];var s=os(n);if(rs(i,s))return i[s];var o=as(s);if(rs(i,o))return i[o];var a=i[n]||i[s]||i[o];return"production"!==process.env.NODE_ENV&&r&&!a&&Ws("Failed to resolve "+t.slice(0,-1)+": "+n,e),a}}function Do(e,t,n,r){var i=t[e],s=!rs(n,e),o=n[e],a=Po(Boolean,i.type);if(a>-1)if(s&&!rs(i,"default"))o=!1;else if(""===o||o===cs(e)){var l=Po(String,i.type);(l<0||a<l)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(!rs(t,"default"))return;var r=t.default;"production"!==process.env.NODE_ENV&&qi(r)&&Ws('Invalid default value for prop "'+n+'": Props with type Object/Array must use a factory function to return the default value.',e);if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==jo(t.type)?r.call(e):r}(r,i,e);var c=po;ho(!0),mo(o),ho(c)}return"production"!==process.env.NODE_ENV&&function(e,t,n,r,i){if(e.required&&i)return void Ws('Missing required prop: "'+t+'"',r);if(null==n&&!e.required)return;var s=e.type,o=!s||!0===s,a=[];if(s){Array.isArray(s)||(s=[s]);for(var l=0;l<s.length&&!o;l++){var c=To(n,s[l]);a.push(c.expectedType||""),o=c.valid}}if(!o)return void Ws(function(e,t,n){var r='Invalid prop: type check failed for prop "'+e+'". Expected '+n.map(as).join(", "),i=n[0],s=Ui(t),o=Fo(t,i),a=Fo(t,s);1===n.length&&Mo(i)&&!function(){var e=[],t=arguments.length;for(;t--;)e[t]=arguments[t];return e.some((function(e){return"boolean"===e.toLowerCase()}))}(i,s)&&(r+=" with value "+o);r+=", got "+s+" ",Mo(s)&&(r+="with value "+a+".");return r}(t,n,a),r);var u=e.validator;u&&(u(n)||Ws('Invalid prop: custom validator check failed for prop "'+t+'".',r))}(i,e,o,r,s),o}var No=/^(String|Number|Boolean|Function|Symbol)$/;function To(e,t){var n,r=jo(t);if(No.test(r)){var i=typeof e;(n=i===r.toLowerCase())||"object"!==i||(n=e instanceof t)}else n="Object"===r?Wi(e):"Array"===r?Array.isArray(e):e instanceof t;return{valid:n,expectedType:r}}function jo(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Lo(e,t){return jo(e)===jo(t)}function Po(e,t){if(!Array.isArray(t))return Lo(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Lo(t[n],e))return n;return-1}function Fo(e,t){return"String"===t?'"'+e+'"':"Number"===t?""+Number(e):""+e}function Mo(e){return["string","number","boolean"].some((function(t){return e.toLowerCase()===t}))}function Io(e,t,n){to();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var s=0;s<i.length;s++)try{if(!1===i[s].call(r,e,t,n))return}catch(e){Ro(e,r,"errorCaptured hook")}}Ro(e,t,n)}finally{no()}}function Bo(e,t,n,r,i){var s;try{(s=n?e.apply(t,n):e.call(t))&&!s._isVue&&Ki(s)&&!s._handled&&(s.catch((function(e){return Io(e,r,i+" (Promise/async)")})),s._handled=!0)}catch(e){Io(e,r,i)}return s}function Ro(e,t,n){if(xs.errorHandler)try{return xs.errorHandler.call(null,e,t,n)}catch(t){t!==e&&Vo(t,null,"config.errorHandler")}Vo(e,t,n)}function Vo(e,t,n){if("production"!==process.env.NODE_ENV&&Ws("Error in "+n+': "'+e.toString()+'"',t),!Es&&!Ds||"undefined"==typeof console)throw e;console.error(e)}var zo,qo,Ho=!1,Uo=[],Wo=!1;function Yo(){Wo=!1;var e=Uo.slice(0);Uo.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&qs(Promise)){var Zo=Promise.resolve();zo=function(){Zo.then(Yo),Fs&&setTimeout(fs)},Ho=!0}else if(js||"undefined"==typeof MutationObserver||!qs(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())zo="undefined"!=typeof setImmediate&&qs(setImmediate)?function(){setImmediate(Yo)}:function(){setTimeout(Yo,0)};else{var Ko=1,Xo=new MutationObserver(Yo),Go=document.createTextNode(String(Ko));Xo.observe(Go,{characterData:!0}),zo=function(){Ko=(Ko+1)%2,Go.data=String(Ko)},Ho=!0}function Jo(e,t){var n;if(Uo.push((function(){if(e)try{e.call(t)}catch(e){Io(e,t,"nextTick")}else n&&n(t)})),Wo||(Wo=!0,zo()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}if("production"!==process.env.NODE_ENV){var Qo=Ji("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),ea=function(e,t){Ws('Property or method "'+t+'" 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://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',e)},ta=function(e,t){Ws('Property "'+t+'" must be accessed with "$data.'+t+'" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals. See: https://vuejs.org/v2/api/#data',e)},na="undefined"!=typeof Proxy&&qs(Proxy);if(na){var ra=Ji("stop,prevent,self,ctrl,shift,alt,meta,exact");xs.keyCodes=new Proxy(xs.keyCodes,{set:function(e,t,n){return ra(t)?(Ws("Avoid overwriting built-in modifier in config.keyCodes: ."+t),!1):(e[t]=n,!0)}})}var ia={has:function(e,t){var n=t in e,r=Qo(t)||"string"==typeof t&&"_"===t.charAt(0)&&!(t in e.$data);return n||r||(t in e.$data?ta(e,t):ea(e,t)),n||!r}},sa={get:function(e,t){return"string"!=typeof t||t in e||(t in e.$data?ta(e,t):ea(e,t)),e[t]}};qo=function(e){if(na){var t=e.$options,n=t.render&&t.render._withStripped?sa:ia;e._renderProxy=new Proxy(e,n)}else e._renderProxy=e}}var oa,aa,la=new Hs;function ca(e){!function e(t,n){var r,i,s=Array.isArray(t);if(!s&&!qi(t)||Object.isFrozen(t)||t instanceof ro)return;if(t.__ob__){var o=t.__ob__.dep.id;if(n.has(o))return;n.add(o)}if(s)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,la),la.clear()}if("production"!==process.env.NODE_ENV){var ua=Es&&window.performance;ua&&ua.mark&&ua.measure&&ua.clearMarks&&ua.clearMeasures&&(oa=function(e){return ua.mark(e)},aa=function(e,t,n){ua.measure(e,t,n),ua.clearMarks(t),ua.clearMarks(n)})}var da=is((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function pa(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Bo(r,null,arguments,t,"v-on handler");for(var i=r.slice(),s=0;s<i.length;s++)Bo(i[s],null,e,t,"v-on handler")}return n.fns=e,n}function ha(e,t,n,r,i,s){var o,a,l,c;for(o in e)a=e[o],l=t[o],c=da(o),Bi(a)?"production"!==process.env.NODE_ENV&&Ws('Invalid handler for event "'+c.name+'": got '+String(a),s):Bi(l)?(Bi(a.fns)&&(a=e[o]=pa(a,s)),Vi(c.once)&&(a=e[o]=i(c.name,a,c.capture)),n(c.name,a,c.capture,c.passive,c.params)):a!==l&&(l.fns=a,e[o]=l);for(o in t)Bi(e[o])&&r((c=da(o)).name,t[o],c.capture)}function fa(e,t,n){var r;e instanceof ro&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function s(){n.apply(this,arguments),ts(r.fns,s)}Bi(i)?r=pa([s]):Ri(i.fns)&&Vi(i.merged)?(r=i).fns.push(s):r=pa([i,s]),r.merged=!0,e[t]=r}function ma(e,t,n,r,i){if(Ri(t)){if(rs(t,n))return e[n]=t[n],i||delete t[n],!0;if(rs(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function va(e){return zi(e)?[oo(e)]:Array.isArray(e)?function e(t,n){var r,i,s,o,a=[];for(r=0;r<t.length;r++)Bi(i=t[r])||"boolean"==typeof i||(s=a.length-1,o=a[s],Array.isArray(i)?i.length>0&&(ga((i=e(i,(n||"")+"_"+r))[0])&&ga(o)&&(a[s]=oo(o.text+i[0].text),i.shift()),a.push.apply(a,i)):zi(i)?ga(o)?a[s]=oo(o.text+i):""!==i&&a.push(oo(i)):ga(i)&&ga(o)?a[s]=oo(o.text+i.text):(Vi(t._isVList)&&Ri(i.tag)&&Bi(i.key)&&Ri(n)&&(i.key="__vlist"+n+"_"+r+"__"),a.push(i)));return a}(e):void 0}function ga(e){return Ri(e)&&Ri(e.text)&&!1===e.isComment}function ya(e,t){if(e){for(var n=Object.create(null),r=Us?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var s=r[i];if("__ob__"!==s){for(var o=e[s].from,a=t;a;){if(a._provided&&rs(a._provided,o)){n[s]=a._provided[o];break}a=a.$parent}if(!a)if("default"in e[s]){var l=e[s].default;n[s]="function"==typeof l?l.call(t):l}else"production"!==process.env.NODE_ENV&&Ws('Injection "'+s+'" not found',t)}}return n}}function _a(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var s=e[r],o=s.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,s.context!==t&&s.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(s);else{var a=o.slot,l=n[a]||(n[a]=[]);"template"===s.tag?l.push.apply(l,s.children||[]):l.push(s)}}for(var c in n)n[c].every(ba)&&delete n[c];return n}function ba(e){return e.isComment&&!e.asyncFactory||" "===e.text}function wa(e,t,n){var r,i=Object.keys(t).length>0,s=e?!!e.$stable:!i,o=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&n&&n!==Ii&&o===n.$key&&!i&&!n.$hasNormal)return n;for(var a in r={},e)e[a]&&"$"!==a[0]&&(r[a]=xa(t,a,e[a]))}else r={};for(var l in t)l in r||(r[l]=Ca(t,l));return e&&Object.isExtensible(e)&&(e._normalized=r),As(r,"$stable",s),As(r,"$key",o),As(r,"$hasNormal",i),r}function xa(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:va(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Ca(e,t){return function(){return e[t]}}function ka(e,t){var n,r,i,s,o;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(qi(e))if(Us&&e[Symbol.iterator]){n=[];for(var a=e[Symbol.iterator](),l=a.next();!l.done;)n.push(t(l.value,n.length)),l=a.next()}else for(s=Object.keys(e),n=new Array(s.length),r=0,i=s.length;r<i;r++)o=s[r],n[r]=t(e[o],o,r);return Ri(n)||(n=[]),n._isVList=!0,n}function Aa(e,t,n,r){var i,s=this.$scopedSlots[e];s?(n=n||{},r&&("production"===process.env.NODE_ENV||qi(r)||Ws("slot v-bind without argument expects an Object",this),n=ps(ps({},r),n)),i=s(n)||t):i=this.$slots[e]||t;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},i):i}function $a(e){return Eo(this.$options,"filters",e,!0)||vs}function Sa(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Oa(e,t,n,r,i){var s=xs.keyCodes[t]||n;return i&&r&&!xs.keyCodes[t]?Sa(i,r):s?Sa(s,e):r?cs(r)!==t:void 0}function Ea(e,t,n,r,i){if(n)if(qi(n)){var s;Array.isArray(n)&&(n=hs(n));var o=function(o){if("class"===o||"style"===o||es(o))s=e;else{var a=e.attrs&&e.attrs.type;s=r||xs.mustUseProp(t,a,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=os(o),c=cs(o);l in s||c in s||(s[o]=n[o],i&&((e.on||(e.on={}))["update:"+o]=function(e){n[o]=e}))};for(var a in n)o(a)}else"production"!==process.env.NODE_ENV&&Ws("v-bind without argument expects an Object or Array value",this);return e}function Da(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t?r:(Ta(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r)}function Na(e,t,n){return Ta(e,"__once__"+t+(n?"_"+n:""),!0),e}function Ta(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&ja(e[r],t+"_"+r,n);else ja(e,t,n)}function ja(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function La(e,t){if(t)if(Wi(t)){var n=e.on=e.on?ps({},e.on):{};for(var r in t){var i=n[r],s=t[r];n[r]=i?[].concat(i,s):s}}else"production"!==process.env.NODE_ENV&&Ws("v-on without argument expects an Object value",this);return e}function Pa(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var s=e[i];Array.isArray(s)?Pa(s,t,n):s&&(s.proxy&&(s.fn.proxy=!0),t[s.key]=s.fn)}return r&&(t.$key=r),t}function Fa(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r?e[t[n]]=t[n+1]:"production"!==process.env.NODE_ENV&&""!==r&&null!==r&&Ws("Invalid value for dynamic directive argument (expected string or null): "+r,this)}return e}function Ma(e,t){return"string"==typeof e?t+e:e}function Ia(e){e._o=Na,e._n=Gi,e._s=Xi,e._l=ka,e._t=Aa,e._q=gs,e._i=ys,e._m=Da,e._f=$a,e._k=Oa,e._b=Ea,e._v=oo,e._e=so,e._u=Pa,e._g=La,e._d=Fa,e._p=Ma}function Ba(e,t,n,r,i){var s,o=this,a=i.options;rs(r,"_uid")?(s=Object.create(r))._original=r:(s=r,r=r._original);var l=Vi(a._compiled),c=!l;this.data=e,this.props=t,this.children=n,this.parent=r,this.listeners=e.on||Ii,this.injections=ya(a.inject,r),this.slots=function(){return o.$slots||wa(e.scopedSlots,o.$slots=_a(n,r)),o.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return wa(e.scopedSlots,this.slots())}}),l&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=wa(e.scopedSlots,this.$slots)),a._scopeId?this._c=function(e,t,n,i){var o=Wa(s,e,t,n,i,c);return o&&!Array.isArray(o)&&(o.fnScopeId=a._scopeId,o.fnContext=r),o}:this._c=function(e,t,n,r){return Wa(s,e,t,n,r,c)}}function Ra(e,t,n,r,i){var s=ao(e);return s.fnContext=n,s.fnOptions=r,"production"!==process.env.NODE_ENV&&((s.devtoolsMeta=s.devtoolsMeta||{}).renderContext=i),t.slot&&((s.data||(s.data={})).slot=t.slot),s}function Va(e,t){for(var n in t)e[os(n)]=t[n]}Ia(Ba.prototype);var za={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;za.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;Ri(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,nl)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,i){"production"!==process.env.NODE_ENV&&(rl=!0);var s=r.data.scopedSlots,o=e.$scopedSlots,a=!!(s&&!s.$stable||o!==Ii&&!o.$stable||s&&e.$scopedSlots.$key!==s.$key),l=!!(i||e.$options._renderChildren||a);e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r);if(e.$options._renderChildren=i,e.$attrs=r.data.attrs||Ii,e.$listeners=n||Ii,t&&e.$options.props){ho(!1);for(var c=e._props,u=e.$options._propKeys||[],d=0;d<u.length;d++){var p=u[d],h=e.$options.props;c[p]=Do(p,h,t,e)}ho(!0),e.$options.propsData=t}n=n||Ii;var f=e.$options._parentListeners;e.$options._parentListeners=n,tl(e,n,f),l&&(e.$slots=_a(i,r.context),e.$forceUpdate());"production"!==process.env.NODE_ENV&&(rl=!1)}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,al(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,cl.push(t)):ol(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,sl(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);al(t,"deactivated")}}(t,!0):t.$destroy())}},qa=Object.keys(za);function Ha(e,t,n,r,i){if(!Bi(e)){var s=n.$options._base;if(qi(e)&&(e=s.extend(e)),"function"==typeof e){var o;if(Bi(e.cid)&&void 0===(e=function(e,t){if(Vi(e.error)&&Ri(e.errorComp))return e.errorComp;if(Ri(e.resolved))return e.resolved;var n=Za;n&&Ri(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(Vi(e.loading)&&Ri(e.loadingComp))return e.loadingComp;if(n&&!Ri(e.owners)){var r=e.owners=[n],i=!0,s=null,o=null;n.$on("hook:destroyed",(function(){return ts(r,n)}));var a=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==s&&(clearTimeout(s),s=null),null!==o&&(clearTimeout(o),o=null))},l=_s((function(n){e.resolved=Ka(n,t),i?r.length=0:a(!0)})),c=_s((function(t){"production"!==process.env.NODE_ENV&&Ws("Failed to resolve async component: "+String(e)+(t?"\nReason: "+t:"")),Ri(e.errorComp)&&(e.error=!0,a(!0))})),u=e(l,c);return qi(u)&&(Ki(u)?Bi(e.resolved)&&u.then(l,c):Ki(u.component)&&(u.component.then(l,c),Ri(u.error)&&(e.errorComp=Ka(u.error,t)),Ri(u.loading)&&(e.loadingComp=Ka(u.loading,t),0===u.delay?e.loading=!0:s=setTimeout((function(){s=null,Bi(e.resolved)&&Bi(e.error)&&(e.loading=!0,a(!1))}),u.delay||200)),Ri(u.timeout)&&(o=setTimeout((function(){o=null,Bi(e.resolved)&&c("production"!==process.env.NODE_ENV?"timeout ("+u.timeout+"ms)":null)}),u.timeout)))),i=!1,e.loading?e.loadingComp:e.resolved}}(o=e,s)))return function(e,t,n,r,i){var s=so();return s.asyncFactory=e,s.asyncMeta={data:t,context:n,children:r,tag:i},s}(o,t,n,r,i);t=t||{},Dl(e),Ri(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),s=i[r],o=t.model.callback;Ri(s)?(Array.isArray(s)?-1===s.indexOf(o):s!==o)&&(i[r]=[o].concat(s)):i[r]=o}(e.options,t);var a=function(e,t,n){var r=t.options.props;if(!Bi(r)){var i={},s=e.attrs,o=e.props;if(Ri(s)||Ri(o))for(var a in r){var l=cs(a);if("production"!==process.env.NODE_ENV){var c=a.toLowerCase();a!==c&&s&&rs(s,c)&&Ys('Prop "'+c+'" is passed to component '+Ks(n||t)+', but the declared prop name is "'+a+'". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "'+l+'" instead of "'+a+'".')}ma(i,o,a,l,!0)||ma(i,s,a,l,!1)}return i}}(t,e,i);if(Vi(e.options.functional))return function(e,t,n,r,i){var s=e.options,o={},a=s.props;if(Ri(a))for(var l in a)o[l]=Do(l,a,t||Ii);else Ri(n.attrs)&&Va(o,n.attrs),Ri(n.props)&&Va(o,n.props);var c=new Ba(n,o,i,r,e),u=s.render.call(null,c._c,c);if(u instanceof ro)return Ra(u,n,c.parent,s,c);if(Array.isArray(u)){for(var d=va(u)||[],p=new Array(d.length),h=0;h<d.length;h++)p[h]=Ra(d[h],n,c.parent,s,c);return p}}(e,a,t,n,r);var l=t.on;if(t.on=t.nativeOn,Vi(e.options.abstract)){var c=t.slot;t={},c&&(t.slot=c)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<qa.length;n++){var r=qa[n],i=t[r],s=za[r];i===s||i&&i._merged||(t[r]=i?Ua(s,i):s)}}(t);var u=e.options.name||i;return new ro("vue-component-"+e.cid+(u?"-"+u:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:a,listeners:l,tag:i,children:r},o)}"production"!==process.env.NODE_ENV&&Ws("Invalid Component definition: "+String(e),n)}}function Ua(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Wa(e,t,n,r,i,s){return(Array.isArray(n)||zi(n))&&(i=r,r=n,n=void 0),Vi(s)&&(i=2),function(e,t,n,r,i){if(Ri(n)&&Ri(n.__ob__))return"production"!==process.env.NODE_ENV&&Ws("Avoid using observed data object as vnode data: "+JSON.stringify(n)+"\nAlways create fresh vnode data objects in each render!",e),so();Ri(n)&&Ri(n.is)&&(t=n.is);if(!t)return so();"production"!==process.env.NODE_ENV&&Ri(n)&&Ri(n.key)&&!zi(n.key)&&Ws("Avoid using non-primitive value as key, use string/number value instead.",e);Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);2===i?r=va(r):1===i&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var s,o;if("string"==typeof t){var a;o=e.$vnode&&e.$vnode.ns||xs.getTagNamespace(t),xs.isReservedTag(t)?("production"!==process.env.NODE_ENV&&Ri(n)&&Ri(n.nativeOn)&&Ws("The .native modifier for v-on is only valid on components but it was used on <"+t+">.",e),s=new ro(xs.parsePlatformTagName(t),n,r,void 0,void 0,e)):s=n&&n.pre||!Ri(a=Eo(e.$options,"components",t))?new ro(t,n,r,void 0,void 0,e):Ha(a,n,e,r,t)}else s=Ha(t,n,e,r);return Array.isArray(s)?s:Ri(s)?(Ri(o)&&function e(t,n,r){t.ns=n,"foreignObject"===t.tag&&(n=void 0,r=!0);if(Ri(t.children))for(var i=0,s=t.children.length;i<s;i++){var o=t.children[i];Ri(o.tag)&&(Bi(o.ns)||Vi(r)&&"svg"!==o.tag)&&e(o,n,r)}}(s,o),Ri(n)&&function(e){qi(e.style)&&ca(e.style);qi(e.class)&&ca(e.class)}(n),s):so()}(e,t,n,r,i)}var Ya,Za=null;function Ka(e,t){return(e.__esModule||Us&&"Module"===e[Symbol.toStringTag])&&(e=e.default),qi(e)?t.extend(e):e}function Xa(e){return e.isComment&&e.asyncFactory}function Ga(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(Ri(n)&&(Ri(n.componentOptions)||Xa(n)))return n}}function Ja(e,t){Ya.$on(e,t)}function Qa(e,t){Ya.$off(e,t)}function el(e,t){var n=Ya;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function tl(e,t,n){Ya=e,ha(t,n||{},Ja,Qa,el,e),Ya=void 0}var nl=null,rl=!1;function il(e){var t=nl;return nl=e,function(){nl=t}}function sl(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function ol(e,t){if(t){if(e._directInactive=!1,sl(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)ol(e.$children[n]);al(e,"activated")}}function al(e,t){to();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,s=n.length;i<s;i++)Bo(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),no()}var ll=[],cl=[],ul={},dl={},pl=!1,hl=!1,fl=0;var ml=0,vl=Date.now;if(Es&&!js){var gl=window.performance;gl&&"function"==typeof gl.now&&vl()>document.createEvent("Event").timeStamp&&(vl=function(){return gl.now()})}function yl(){var e,t;for(ml=vl(),hl=!0,ll.sort((function(e,t){return e.id-t.id})),fl=0;fl<ll.length;fl++)if((e=ll[fl]).before&&e.before(),t=e.id,ul[t]=null,e.run(),"production"!==process.env.NODE_ENV&&null!=ul[t]&&(dl[t]=(dl[t]||0)+1,dl[t]>100)){Ws("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}var n=cl.slice(),r=ll.slice();fl=ll.length=cl.length=0,ul={},"production"!==process.env.NODE_ENV&&(dl={}),pl=hl=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,ol(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&al(r,"updated")}}(r),zs&&xs.devtools&&zs.emit("flush")}var _l=0,bl=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++_l,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Hs,this.newDepIds=new Hs,this.expression="production"!==process.env.NODE_ENV?t.toString():"","function"==typeof t?this.getter=t:(this.getter=function(e){if(!$s.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=fs,"production"!==process.env.NODE_ENV&&Ws('Failed watching path: "'+t+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',e))),this.value=this.lazy?void 0:this.get()};bl.prototype.get=function(){var e;to(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Io(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ca(e),no(),this.cleanupDeps()}return e},bl.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},bl.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},bl.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==ul[t]){if(ul[t]=!0,hl){for(var n=ll.length-1;n>fl&&ll[n].id>e.id;)n--;ll.splice(n+1,0,e)}else ll.push(e);if(!pl){if(pl=!0,"production"!==process.env.NODE_ENV&&!xs.async)return void yl();Jo(yl)}}}(this)},bl.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||qi(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Io(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},bl.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},bl.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},bl.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||ts(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var wl={enumerable:!0,configurable:!0,get:fs,set:fs};function xl(e,t,n){wl.get=function(){return this[t][n]},wl.set=function(e){this[t][n]=e},Object.defineProperty(e,n,wl)}function Cl(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],s=!e.$parent;s||ho(!1);var o=function(o){i.push(o);var a=Do(o,t,n,e);if("production"!==process.env.NODE_ENV){var l=cs(o);(es(l)||xs.isReservedAttr(l))&&Ws('"'+l+'" is a reserved attribute and cannot be used as component prop.',e),vo(r,o,a,(function(){s||rl||Ws("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+o+'"',e)}))}else vo(r,o,a);o in e||xl(e,"_props",o)};for(var a in t)o(a);ho(!0)}(e,t.props),t.methods&&function(e,t){var n=e.$options.props;for(var r in t)"production"!==process.env.NODE_ENV&&("function"!=typeof t[r]&&Ws('Method "'+r+'" has type "'+typeof t[r]+'" in the component definition. Did you reference the function correctly?',e),n&&rs(n,r)&&Ws('Method "'+r+'" has already been defined as a prop.',e),r in e&&ks(r)&&Ws('Method "'+r+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.')),e[r]="function"!=typeof t[r]?fs:us(t[r],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;Wi(t=e._data="function"==typeof t?function(e,t){to();try{return e.call(t,t)}catch(e){return Io(e,t,"data()"),{}}finally{no()}}(t,e):t||{})||(t={},"production"!==process.env.NODE_ENV&&Ws("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));var n=Object.keys(t),r=e.$options.props,i=e.$options.methods,s=n.length;for(;s--;){var o=n[s];"production"!==process.env.NODE_ENV&&i&&rs(i,o)&&Ws('Method "'+o+'" has already been defined as a data property.',e),r&&rs(r,o)?"production"!==process.env.NODE_ENV&&Ws('The data property "'+o+'" is already declared as a prop. Use prop default value instead.',e):ks(o)||xl(e,"_data",o)}mo(t,!0)}(e):mo(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Vs();for(var i in t){var s=t[i],o="function"==typeof s?s:s.get;"production"!==process.env.NODE_ENV&&null==o&&Ws('Getter is missing for computed property "'+i+'".',e),r||(n[i]=new bl(e,o||fs,fs,kl)),i in e?"production"!==process.env.NODE_ENV&&(i in e.$data?Ws('The computed property "'+i+'" is already defined in data.',e):e.$options.props&&i in e.$options.props&&Ws('The computed property "'+i+'" is already defined as a prop.',e)):Al(e,i,s)}}(e,t.computed),t.watch&&t.watch!==Is&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Ol(e,n,r[i]);else Ol(e,n,r)}}(e,t.watch)}var kl={lazy:!0};function Al(e,t,n){var r=!Vs();"function"==typeof n?(wl.get=r?$l(t):Sl(n),wl.set=fs):(wl.get=n.get?r&&!1!==n.cache?$l(t):Sl(n.get):fs,wl.set=n.set||fs),"production"!==process.env.NODE_ENV&&wl.set===fs&&(wl.set=function(){Ws('Computed property "'+t+'" was assigned to but it has no setter.',this)}),Object.defineProperty(e,t,wl)}function $l(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Qs.target&&t.depend(),t.value}}function Sl(e){return function(){return e.call(this,this)}}function Ol(e,t,n,r){return Wi(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var El=0;function Dl(e){var t=e.options;if(e.super){var n=Dl(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&ps(e.extendOptions,r),(t=e.options=Oo(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Nl(e){"production"===process.env.NODE_ENV||this instanceof Nl||Ws("Vue is a constructor and should be called with the `new` keyword"),this._init(e)}function Tl(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var s=e.name||n.options.name;"production"!==process.env.NODE_ENV&&s&&$o(s);var o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=Oo(n.options,e),o.super=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)xl(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)Al(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,bs.forEach((function(e){o[e]=n[e]})),s&&(o.options.components[s]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=ps({},o.options),i[r]=o,o}}function jl(e){return e&&(e.Ctor.options.name||e.tag)}function Ll(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!Yi(e)&&e.test(t)}function Pl(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var s in n){var o=n[s];if(o){var a=jl(o.componentOptions);a&&!t(a)&&Fl(n,s,r,i)}}}function Fl(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,ts(n,t)}!function(e){e.prototype._init=function(e){var t,n,r=this;r._uid=El++,"production"!==process.env.NODE_ENV&&xs.performance&&oa&&(t="vue-perf-start:"+r._uid,n="vue-perf-end:"+r._uid,oa(t)),r._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(r,e):r.$options=Oo(Dl(r.constructor),e||{},r),"production"!==process.env.NODE_ENV?qo(r):r._renderProxy=r,r._self=r,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(r),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&tl(e,t)}(r),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=_a(t._renderChildren,r),e.$scopedSlots=Ii,e._c=function(t,n,r,i){return Wa(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Wa(e,t,n,r,i,!0)};var i=n&&n.data;"production"!==process.env.NODE_ENV?(vo(e,"$attrs",i&&i.attrs||Ii,(function(){!rl&&Ws("$attrs is readonly.",e)}),!0),vo(e,"$listeners",t._parentListeners||Ii,(function(){!rl&&Ws("$listeners is readonly.",e)}),!0)):(vo(e,"$attrs",i&&i.attrs||Ii,null,!0),vo(e,"$listeners",t._parentListeners||Ii,null,!0))}(r),al(r,"beforeCreate"),function(e){var t=ya(e.$options.inject,e);t&&(ho(!1),Object.keys(t).forEach((function(n){"production"!==process.env.NODE_ENV?vo(e,n,t[n],(function(){Ws('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+n+'"',e)})):vo(e,n,t[n])})),ho(!0))}(r),Cl(r),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(r),al(r,"created"),"production"!==process.env.NODE_ENV&&xs.performance&&oa&&(r._name=Ks(r,!1),oa(n),aa("vue "+r._name+" init",t,n)),r.$options.el&&r.$mount(r.$options.el)}}(Nl),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};"production"!==process.env.NODE_ENV&&(t.set=function(){Ws("Avoid replacing instance root $data. Use nested data properties instead.",this)},n.set=function(){Ws("$props is readonly.",this)}),Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=go,e.prototype.$delete=yo,e.prototype.$watch=function(e,t,n){if(Wi(t))return Ol(this,e,t,n);(n=n||{}).user=!0;var r=new bl(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Io(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(Nl),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,s=e.length;i<s;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var s,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;for(var a=o.length;a--;)if((s=o[a])===t||s.fn===t){o.splice(a,1);break}return n},e.prototype.$emit=function(e){var t=this;if("production"!==process.env.NODE_ENV){var n=e.toLowerCase();n!==e&&t._events[n]&&Ys('Event "'+n+'" is emitted in component '+Ks(t)+' but the handler is registered for "'+e+'". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "'+cs(e)+'" instead of "'+e+'".')}var r=t._events[e];if(r){r=r.length>1?ds(r):r;for(var i=ds(arguments,1),s='event handler for "'+e+'"',o=0,a=r.length;o<a;o++)Bo(r[o],t,i,t,s)}return t}}(Nl),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,s=il(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),s(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){al(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||ts(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),al(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Nl),function(e){Ia(e.prototype),e.prototype.$nextTick=function(e){return Jo(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=wa(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Za=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){if(Io(n,t,"render"),"production"!==process.env.NODE_ENV&&t.$options.renderError)try{e=t.$options.renderError.call(t._renderProxy,t.$createElement,n)}catch(n){Io(n,t,"renderError"),e=t._vnode}else e=t._vnode}finally{Za=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ro||("production"!==process.env.NODE_ENV&&Array.isArray(e)&&Ws("Multiple root nodes returned from render function. Render function should return a single root node.",t),e=so()),e.parent=i,e}}(Nl);var Ml=[String,RegExp,Array],Il={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Ml,exclude:Ml,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Fl(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Pl(e,(function(e){return Ll(t,e)}))})),this.$watch("exclude",(function(t){Pl(e,(function(e){return!Ll(t,e)}))}))},render:function(){var e=this.$slots.default,t=Ga(e),n=t&&t.componentOptions;if(n){var r=jl(n),i=this.include,s=this.exclude;if(i&&(!r||!Ll(i,r))||s&&r&&Ll(s,r))return t;var o=this.cache,a=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;o[l]?(t.componentInstance=o[l].componentInstance,ts(a,l),a.push(l)):(o[l]=t,a.push(l),this.max&&a.length>parseInt(this.max)&&Fl(o,a[0],a,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return xs}};"production"!==process.env.NODE_ENV&&(t.set=function(){Ws("Do not replace the Vue.config object, set individual fields instead.")}),Object.defineProperty(e,"config",t),e.util={warn:Ws,extend:ps,mergeOptions:Oo,defineReactive:vo},e.set=go,e.delete=yo,e.nextTick=Jo,e.observable=function(e){return mo(e),e},e.options=Object.create(null),bs.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,ps(e.options.components,Il),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=ds(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Oo(this.options,e),this}}(e),Tl(e),function(e){bs.forEach((function(t){e[t]=function(e,n){return n?("production"!==process.env.NODE_ENV&&"component"===t&&$o(e),"component"===t&&Wi(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Nl),Object.defineProperty(Nl.prototype,"$isServer",{get:Vs}),Object.defineProperty(Nl.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Nl,"FunctionalRenderContext",{value:Ba}),Nl.version="2.6.11";var Bl=Ji("style,class"),Rl=Ji("input,textarea,option,select,progress"),Vl=Ji("contenteditable,draggable,spellcheck"),zl=Ji("events,caret,typing,plaintext-only"),ql=Ji("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,translate,truespeed,typemustmatch,visible"),Hl="http://www.w3.org/1999/xlink",Ul=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Wl=function(e){return Ul(e)?e.slice(6,e.length):""},Yl=function(e){return null==e||!1===e};function Zl(e){for(var t=e.data,n=e,r=e;Ri(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Kl(r.data,t));for(;Ri(n=n.parent);)n&&n.data&&(t=Kl(t,n.data));return function(e,t){if(Ri(e)||Ri(t))return Xl(e,Gl(t));return""}(t.staticClass,t.class)}function Kl(e,t){return{staticClass:Xl(e.staticClass,t.staticClass),class:Ri(e.class)?[e.class,t.class]:t.class}}function Xl(e,t){return e?t?e+" "+t:e:t||""}function Gl(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)Ri(t=Gl(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):qi(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Jl={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Ql=Ji("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ec=Ji("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),tc=function(e){return Ql(e)||ec(e)};var nc=Object.create(null);var rc=Ji("text,number,password,search,email,tel,url");var ic=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(Jl[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),sc={create:function(e,t){oc(t)},update:function(e,t){e.data.ref!==t.data.ref&&(oc(e,!0),oc(t))},destroy:function(e){oc(e,!0)}};function oc(e,t){var n=e.data.ref;if(Ri(n)){var r=e.context,i=e.componentInstance||e.elm,s=r.$refs;t?Array.isArray(s[n])?ts(s[n],i):s[n]===i&&(s[n]=void 0):e.data.refInFor?Array.isArray(s[n])?s[n].indexOf(i)<0&&s[n].push(i):s[n]=[i]:s[n]=i}}var ac=new ro("",{},[]),lc=["create","activate","update","remove","destroy"];function cc(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&Ri(e.data)===Ri(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=Ri(n=e.data)&&Ri(n=n.attrs)&&n.type,i=Ri(n=t.data)&&Ri(n=n.attrs)&&n.type;return r===i||rc(r)&&rc(i)}(e,t)||Vi(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&Bi(t.asyncFactory.error))}function uc(e,t,n){var r,i,s={};for(r=t;r<=n;++r)Ri(i=e[r].key)&&(s[i]=r);return s}var dc={create:pc,update:pc,destroy:function(e){pc(e,ac)}};function pc(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,s=e===ac,o=t===ac,a=fc(e.data.directives,e.context),l=fc(t.data.directives,t.context),c=[],u=[];for(n in l)r=a[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,vc(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(vc(i,"bind",t,e),i.def&&i.def.inserted&&c.push(i));if(c.length){var d=function(){for(var n=0;n<c.length;n++)vc(c[n],"inserted",t,e)};s?fa(t,"insert",d):d()}u.length&&fa(t,"postpatch",(function(){for(var n=0;n<u.length;n++)vc(u[n],"componentUpdated",t,e)}));if(!s)for(n in a)l[n]||vc(a[n],"unbind",e,e,o)}(e,t)}var hc=Object.create(null);function fc(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=hc),i[mc(r)]=r,r.def=Eo(t.$options,"directives",r.name,!0);return i}function mc(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function vc(e,t,n,r,i){var s=e.def&&e.def[t];if(s)try{s(n.elm,e,n,r,i)}catch(r){Io(r,n.context,"directive "+e.name+" "+t+" hook")}}var gc=[sc,dc];function yc(e,t){var n=t.componentOptions;if(!(Ri(n)&&!1===n.Ctor.options.inheritAttrs||Bi(e.data.attrs)&&Bi(t.data.attrs))){var r,i,s=t.elm,o=e.data.attrs||{},a=t.data.attrs||{};for(r in Ri(a.__ob__)&&(a=t.data.attrs=ps({},a)),a)i=a[r],o[r]!==i&&_c(s,r,i);for(r in(js||Ps)&&a.value!==o.value&&_c(s,"value",a.value),o)Bi(a[r])&&(Ul(r)?s.removeAttributeNS(Hl,Wl(r)):Vl(r)||s.removeAttribute(r))}}function _c(e,t,n){e.tagName.indexOf("-")>-1?bc(e,t,n):ql(t)?Yl(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Vl(t)?e.setAttribute(t,function(e,t){return Yl(t)||"false"===t?"false":"contenteditable"===e&&zl(t)?t:"true"}(t,n)):Ul(t)?Yl(n)?e.removeAttributeNS(Hl,Wl(t)):e.setAttributeNS(Hl,t,n):bc(e,t,n)}function bc(e,t,n){if(Yl(n))e.removeAttribute(t);else{if(js&&!Ls&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var wc={create:yc,update:yc};function xc(e,t){var n=t.elm,r=t.data,i=e.data;if(!(Bi(r.staticClass)&&Bi(r.class)&&(Bi(i)||Bi(i.staticClass)&&Bi(i.class)))){var s=Zl(t),o=n._transitionClasses;Ri(o)&&(s=Xl(s,Gl(o))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Cc,kc={create:xc,update:xc};function Ac(e,t,n){var r=Cc;return function i(){var s=t.apply(null,arguments);null!==s&&Oc(e,i,n,r)}}var $c=Ho&&!(Ms&&Number(Ms[1])<=53);function Sc(e,t,n,r){if($c){var i=ml,s=t;t=s._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return s.apply(this,arguments)}}Cc.addEventListener(e,t,Bs?{capture:n,passive:r}:n)}function Oc(e,t,n,r){(r||Cc).removeEventListener(e,t._wrapper||t,n)}function Ec(e,t){if(!Bi(e.data.on)||!Bi(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Cc=t.elm,function(e){if(Ri(e.__r)){var t=js?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}Ri(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),ha(n,r,Sc,Oc,Ac,t.context),Cc=void 0}}var Dc,Nc={create:Ec,update:Ec};function Tc(e,t){if(!Bi(e.data.domProps)||!Bi(t.data.domProps)){var n,r,i=t.elm,s=e.data.domProps||{},o=t.data.domProps||{};for(n in Ri(o.__ob__)&&(o=t.data.domProps=ps({},o)),s)n in o||(i[n]="");for(n in o){if(r=o[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var a=Bi(r)?"":String(r);jc(i,a)&&(i.value=a)}else if("innerHTML"===n&&ec(i.tagName)&&Bi(i.innerHTML)){(Dc=Dc||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var l=Dc.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}else if(r!==s[n])try{i[n]=r}catch(e){}}}}function jc(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(Ri(r)){if(r.number)return Gi(n)!==Gi(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Lc={create:Tc,update:Tc},Pc=is((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Fc(e){var t=Mc(e.style);return e.staticStyle?ps(e.staticStyle,t):t}function Mc(e){return Array.isArray(e)?hs(e):"string"==typeof e?Pc(e):e}var Ic,Bc=/^--/,Rc=/\s*!important$/,Vc=function(e,t,n){if(Bc.test(t))e.style.setProperty(t,n);else if(Rc.test(n))e.style.setProperty(cs(t),n.replace(Rc,""),"important");else{var r=qc(t);if(Array.isArray(n))for(var i=0,s=n.length;i<s;i++)e.style[r]=n[i];else e.style[r]=n}},zc=["Webkit","Moz","ms"],qc=is((function(e){if(Ic=Ic||document.createElement("div").style,"filter"!==(e=os(e))&&e in Ic)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<zc.length;n++){var r=zc[n]+t;if(r in Ic)return r}}));function Hc(e,t){var n=t.data,r=e.data;if(!(Bi(n.staticStyle)&&Bi(n.style)&&Bi(r.staticStyle)&&Bi(r.style))){var i,s,o=t.elm,a=r.staticStyle,l=r.normalizedStyle||r.style||{},c=a||l,u=Mc(t.data.style)||{};t.data.normalizedStyle=Ri(u.__ob__)?ps({},u):u;var d=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Fc(i.data))&&ps(r,n);(n=Fc(e.data))&&ps(r,n);for(var s=e;s=s.parent;)s.data&&(n=Fc(s.data))&&ps(r,n);return r}(t,!0);for(s in c)Bi(d[s])&&Vc(o,s,"");for(s in d)(i=d[s])!==c[s]&&Vc(o,s,null==i?"":i)}}var Uc={create:Hc,update:Hc},Wc=/\s+/;function Yc(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Wc).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Zc(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Wc).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Kc(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&ps(t,Xc(e.name||"v")),ps(t,e),t}return"string"==typeof e?Xc(e):void 0}}var Xc=is((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Gc=Es&&!Ls,Jc="transition",Qc="transitionend",eu="animation",tu="animationend";Gc&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Jc="WebkitTransition",Qc="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(eu="WebkitAnimation",tu="webkitAnimationEnd"));var nu=Es?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ru(e){nu((function(){nu(e)}))}function iu(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Yc(e,t))}function su(e,t){e._transitionClasses&&ts(e._transitionClasses,t),Zc(e,t)}function ou(e,t,n){var r=lu(e,t),i=r.type,s=r.timeout,o=r.propCount;if(!i)return n();var a="transition"===i?Qc:tu,l=0,c=function(){e.removeEventListener(a,u),n()},u=function(t){t.target===e&&++l>=o&&c()};setTimeout((function(){l<o&&c()}),s+1),e.addEventListener(a,u)}var au=/\b(transform|all)(,|$)/;function lu(e,t){var n,r=window.getComputedStyle(e),i=(r[Jc+"Delay"]||"").split(", "),s=(r[Jc+"Duration"]||"").split(", "),o=cu(i,s),a=(r[eu+"Delay"]||"").split(", "),l=(r[eu+"Duration"]||"").split(", "),c=cu(a,l),u=0,d=0;return"transition"===t?o>0&&(n="transition",u=o,d=s.length):"animation"===t?c>0&&(n="animation",u=c,d=l.length):d=(n=(u=Math.max(o,c))>0?o>c?"transition":"animation":null)?"transition"===n?s.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:"transition"===n&&au.test(r[Jc+"Property"])}}function cu(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return uu(t)+uu(e[n])})))}function uu(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function du(e,t){var n=e.elm;Ri(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Kc(e.data.transition);if(!Bi(r)&&!Ri(n._enterCb)&&1===n.nodeType){for(var i=r.css,s=r.type,o=r.enterClass,a=r.enterToClass,l=r.enterActiveClass,c=r.appearClass,u=r.appearToClass,d=r.appearActiveClass,p=r.beforeEnter,h=r.enter,f=r.afterEnter,m=r.enterCancelled,v=r.beforeAppear,g=r.appear,y=r.afterAppear,_=r.appearCancelled,b=r.duration,w=nl,x=nl.$vnode;x&&x.parent;)w=x.context,x=x.parent;var C=!w._isMounted||!e.isRootInsert;if(!C||g||""===g){var k=C&&c?c:o,A=C&&d?d:l,$=C&&u?u:a,S=C&&v||p,O=C&&"function"==typeof g?g:h,E=C&&y||f,D=C&&_||m,N=Gi(qi(b)?b.enter:b);"production"!==process.env.NODE_ENV&&null!=N&&hu(N,"enter",e);var T=!1!==i&&!Ls,j=mu(O),L=n._enterCb=_s((function(){T&&(su(n,$),su(n,A)),L.cancelled?(T&&su(n,k),D&&D(n)):E&&E(n),n._enterCb=null}));e.data.show||fa(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),O&&O(n,L)})),S&&S(n),T&&(iu(n,k),iu(n,A),ru((function(){su(n,k),L.cancelled||(iu(n,$),j||(fu(N)?setTimeout(L,N):ou(n,s,L)))}))),e.data.show&&(t&&t(),O&&O(n,L)),T||j||L()}}}function pu(e,t){var n=e.elm;Ri(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=Kc(e.data.transition);if(Bi(r)||1!==n.nodeType)return t();if(!Ri(n._leaveCb)){var i=r.css,s=r.type,o=r.leaveClass,a=r.leaveToClass,l=r.leaveActiveClass,c=r.beforeLeave,u=r.leave,d=r.afterLeave,p=r.leaveCancelled,h=r.delayLeave,f=r.duration,m=!1!==i&&!Ls,v=mu(u),g=Gi(qi(f)?f.leave:f);"production"!==process.env.NODE_ENV&&Ri(g)&&hu(g,"leave",e);var y=n._leaveCb=_s((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),m&&(su(n,a),su(n,l)),y.cancelled?(m&&su(n,o),p&&p(n)):(t(),d&&d(n)),n._leaveCb=null}));h?h(_):_()}function _(){y.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),c&&c(n),m&&(iu(n,o),iu(n,l),ru((function(){su(n,o),y.cancelled||(iu(n,a),v||(fu(g)?setTimeout(y,g):ou(n,s,y)))}))),u&&u(n,y),m||v||y())}}function hu(e,t,n){"number"!=typeof e?Ws("<transition> explicit "+t+" duration is not a valid number - got "+JSON.stringify(e)+".",n.context):isNaN(e)&&Ws("<transition> explicit "+t+" duration is NaN - the duration expression might be incorrect.",n.context)}function fu(e){return"number"==typeof e&&!isNaN(e)}function mu(e){if(Bi(e))return!1;var t=e.fns;return Ri(t)?mu(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function vu(e,t){!0!==t.data.show&&du(t)}var gu=function(e){var t,n,r={},i=e.modules,s=e.nodeOps;for(t=0;t<lc.length;++t)for(r[lc[t]]=[],n=0;n<i.length;++n)Ri(i[n][lc[t]])&&r[lc[t]].push(i[n][lc[t]]);function o(e){var t=s.parentNode(e);Ri(t)&&s.removeChild(t,e)}function a(e,t){return!t&&!e.ns&&!(xs.ignoredElements.length&&xs.ignoredElements.some((function(t){return Yi(t)?t.test(e.tag):t===e.tag})))&&xs.isUnknownElement(e.tag)}var l=0;function c(e,t,n,i,o,c,h){if(Ri(e.elm)&&Ri(c)&&(e=c[h]=ao(e)),e.isRootInsert=!o,!function(e,t,n,i){var s=e.data;if(Ri(s)){var o=Ri(e.componentInstance)&&s.keepAlive;if(Ri(s=s.hook)&&Ri(s=s.init)&&s(e,!1),Ri(e.componentInstance))return u(e,t),d(n,e.elm,i),Vi(o)&&function(e,t,n,i){var s,o=e;for(;o.componentInstance;)if(o=o.componentInstance._vnode,Ri(s=o.data)&&Ri(s=s.transition)){for(s=0;s<r.activate.length;++s)r.activate[s](ac,o);t.push(o);break}d(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var v=e.data,g=e.children,y=e.tag;Ri(y)?("production"!==process.env.NODE_ENV&&(v&&v.pre&&l++,a(e,l)&&Ws("Unknown custom element: <"+y+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',e.context)),e.elm=e.ns?s.createElementNS(e.ns,y):s.createElement(y,e),m(e),p(e,g,t),Ri(v)&&f(e,t),d(n,e.elm,i),"production"!==process.env.NODE_ENV&&v&&v.pre&&l--):Vi(e.isComment)?(e.elm=s.createComment(e.text),d(n,e.elm,i)):(e.elm=s.createTextNode(e.text),d(n,e.elm,i))}}function u(e,t){Ri(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,h(e)?(f(e,t),m(e)):(oc(e),t.push(e))}function d(e,t,n){Ri(e)&&(Ri(n)?s.parentNode(n)===e&&s.insertBefore(e,t,n):s.appendChild(e,t))}function p(e,t,n){if(Array.isArray(t)){"production"!==process.env.NODE_ENV&&b(t);for(var r=0;r<t.length;++r)c(t[r],n,e.elm,null,!0,t,r)}else zi(e.text)&&s.appendChild(e.elm,s.createTextNode(String(e.text)))}function h(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return Ri(e.tag)}function f(e,n){for(var i=0;i<r.create.length;++i)r.create[i](ac,e);Ri(t=e.data.hook)&&(Ri(t.create)&&t.create(ac,e),Ri(t.insert)&&n.push(e))}function m(e){var t;if(Ri(t=e.fnScopeId))s.setStyleScope(e.elm,t);else for(var n=e;n;)Ri(t=n.context)&&Ri(t=t.$options._scopeId)&&s.setStyleScope(e.elm,t),n=n.parent;Ri(t=nl)&&t!==e.context&&t!==e.fnContext&&Ri(t=t.$options._scopeId)&&s.setStyleScope(e.elm,t)}function v(e,t,n,r,i,s){for(;r<=i;++r)c(n[r],s,e,t,!1,n,r)}function g(e){var t,n,i=e.data;if(Ri(i))for(Ri(t=i.hook)&&Ri(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(Ri(t=e.children))for(n=0;n<e.children.length;++n)g(e.children[n])}function y(e,t,n){for(;t<=n;++t){var r=e[t];Ri(r)&&(Ri(r.tag)?(_(r),g(r)):o(r.elm))}}function _(e,t){if(Ri(t)||Ri(e.data)){var n,i=r.remove.length+1;for(Ri(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&o(e)}return n.listeners=t,n}(e.elm,i),Ri(n=e.componentInstance)&&Ri(n=n._vnode)&&Ri(n.data)&&_(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);Ri(n=e.data.hook)&&Ri(n=n.remove)?n(e,t):t()}else o(e.elm)}function b(e){for(var t={},n=0;n<e.length;n++){var r=e[n],i=r.key;Ri(i)&&(t[i]?Ws("Duplicate keys detected: '"+i+"'. This may cause an update error.",r.context):t[i]=!0)}}function w(e,t,n,r){for(var i=n;i<r;i++){var s=t[i];if(Ri(s)&&cc(e,s))return i}}function x(e,t,n,i,o,a){if(e!==t){Ri(t.elm)&&Ri(i)&&(t=i[o]=ao(t));var l=t.elm=e.elm;if(Vi(e.isAsyncPlaceholder))Ri(t.asyncFactory.resolved)?$(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(Vi(t.isStatic)&&Vi(e.isStatic)&&t.key===e.key&&(Vi(t.isCloned)||Vi(t.isOnce)))t.componentInstance=e.componentInstance;else{var u,d=t.data;Ri(d)&&Ri(u=d.hook)&&Ri(u=u.prepatch)&&u(e,t);var p=e.children,f=t.children;if(Ri(d)&&h(t)){for(u=0;u<r.update.length;++u)r.update[u](e,t);Ri(u=d.hook)&&Ri(u=u.update)&&u(e,t)}Bi(t.text)?Ri(p)&&Ri(f)?p!==f&&function(e,t,n,r,i){var o,a,l,u=0,d=0,p=t.length-1,h=t[0],f=t[p],m=n.length-1,g=n[0],_=n[m],C=!i;for("production"!==process.env.NODE_ENV&&b(n);u<=p&&d<=m;)Bi(h)?h=t[++u]:Bi(f)?f=t[--p]:cc(h,g)?(x(h,g,r,n,d),h=t[++u],g=n[++d]):cc(f,_)?(x(f,_,r,n,m),f=t[--p],_=n[--m]):cc(h,_)?(x(h,_,r,n,m),C&&s.insertBefore(e,h.elm,s.nextSibling(f.elm)),h=t[++u],_=n[--m]):cc(f,g)?(x(f,g,r,n,d),C&&s.insertBefore(e,f.elm,h.elm),f=t[--p],g=n[++d]):(Bi(o)&&(o=uc(t,u,p)),Bi(a=Ri(g.key)?o[g.key]:w(g,t,u,p))?c(g,r,e,h.elm,!1,n,d):cc(l=t[a],g)?(x(l,g,r,n,d),t[a]=void 0,C&&s.insertBefore(e,l.elm,h.elm)):c(g,r,e,h.elm,!1,n,d),g=n[++d]);u>p?v(e,Bi(n[m+1])?null:n[m+1].elm,n,d,m,r):d>m&&y(t,u,p)}(l,p,f,n,a):Ri(f)?("production"!==process.env.NODE_ENV&&b(f),Ri(e.text)&&s.setTextContent(l,""),v(l,null,f,0,f.length-1,n)):Ri(p)?y(p,0,p.length-1):Ri(e.text)&&s.setTextContent(l,""):e.text!==t.text&&s.setTextContent(l,t.text),Ri(d)&&Ri(u=d.hook)&&Ri(u=u.postpatch)&&u(e,t)}}}function C(e,t,n){if(Vi(n)&&Ri(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var k=!1,A=Ji("attrs,class,staticClass,staticStyle,key");function $(e,t,n,r){var i,s=t.tag,o=t.data,l=t.children;if(r=r||o&&o.pre,t.elm=e,Vi(t.isComment)&&Ri(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if("production"!==process.env.NODE_ENV&&!function(e,t,n){return Ri(t.tag)?0===t.tag.indexOf("vue-component")||!a(t,n)&&t.tag.toLowerCase()===(e.tagName&&e.tagName.toLowerCase()):e.nodeType===(t.isComment?8:3)}(e,t,r))return!1;if(Ri(o)&&(Ri(i=o.hook)&&Ri(i=i.init)&&i(t,!0),Ri(i=t.componentInstance)))return u(t,n),!0;if(Ri(s)){if(Ri(l))if(e.hasChildNodes())if(Ri(i=o)&&Ri(i=i.domProps)&&Ri(i=i.innerHTML)){if(i!==e.innerHTML)return"production"===process.env.NODE_ENV||"undefined"==typeof console||k||(k=!0,console.warn("Parent: ",e),console.warn("server innerHTML: ",i),console.warn("client innerHTML: ",e.innerHTML)),!1}else{for(var c=!0,d=e.firstChild,h=0;h<l.length;h++){if(!d||!$(d,l[h],n,r)){c=!1;break}d=d.nextSibling}if(!c||d)return"production"===process.env.NODE_ENV||"undefined"==typeof console||k||(k=!0,console.warn("Parent: ",e),console.warn("Mismatching childNodes vs. VNodes: ",e.childNodes,l)),!1}else p(t,l,n);if(Ri(o)){var m=!1;for(var v in o)if(!A(v)){m=!0,f(t,n);break}!m&&o.class&&ca(o.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,i){if(!Bi(t)){var o,a=!1,l=[];if(Bi(e))a=!0,c(t,l);else{var u=Ri(e.nodeType);if(!u&&cc(e,t))x(e,t,l,null,null,i);else{if(u){if(1===e.nodeType&&e.hasAttribute("data-server-rendered")&&(e.removeAttribute("data-server-rendered"),n=!0),Vi(n)){if($(e,t,l))return C(t,l,!0),e;"production"!==process.env.NODE_ENV&&Ws("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")}o=e,e=new ro(s.tagName(o).toLowerCase(),{},[],void 0,o)}var d=e.elm,p=s.parentNode(d);if(c(t,l,d._leaveCb?null:p,s.nextSibling(d)),Ri(t.parent))for(var f=t.parent,m=h(t);f;){for(var v=0;v<r.destroy.length;++v)r.destroy[v](f);if(f.elm=t.elm,m){for(var _=0;_<r.create.length;++_)r.create[_](ac,f);var b=f.data.hook.insert;if(b.merged)for(var w=1;w<b.fns.length;w++)b.fns[w]()}else oc(f);f=f.parent}Ri(p)?y([e],0,0):Ri(e.tag)&&g(e)}}return C(t,l,a),t.elm}Ri(e)&&g(e)}}({nodeOps:ic,modules:[wc,kc,Nc,Lc,Uc,Es?{create:vu,activate:vu,remove:function(e,t){!0!==e.data.show?pu(e,t):t()}}:{}].concat(gc)});Ls&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Au(e,"input")}));var yu={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?fa(n,"postpatch",(function(){yu.componentUpdated(e,t,n)})):_u(e,t,n.context),e._vOptions=[].map.call(e.options,xu)):("textarea"===n.tag||rc(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Cu),e.addEventListener("compositionend",ku),e.addEventListener("change",ku),Ls&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){_u(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,xu);if(i.some((function(e,t){return!gs(e,r[t])})))(e.multiple?t.value.some((function(e){return wu(e,i)})):t.value!==t.oldValue&&wu(t.value,i))&&Au(e,"change")}}};function _u(e,t,n){bu(e,t,n),(js||Ps)&&setTimeout((function(){bu(e,t,n)}),0)}function bu(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var s,o,a=0,l=e.options.length;a<l;a++)if(o=e.options[a],i)s=ys(r,xu(o))>-1,o.selected!==s&&(o.selected=s);else if(gs(xu(o),r))return void(e.selectedIndex!==a&&(e.selectedIndex=a));i||(e.selectedIndex=-1)}else"production"!==process.env.NODE_ENV&&Ws('<select multiple v-model="'+t.expression+'"> expects an Array value for its binding, but got '+Object.prototype.toString.call(r).slice(8,-1),n)}function wu(e,t){return t.every((function(t){return!gs(t,e)}))}function xu(e){return"_value"in e?e._value:e.value}function Cu(e){e.target.composing=!0}function ku(e){e.target.composing&&(e.target.composing=!1,Au(e.target,"input"))}function Au(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function $u(e){return!e.componentInstance||e.data&&e.data.transition?e:$u(e.componentInstance._vnode)}var Su={model:yu,show:{bind:function(e,t,n){var r=t.value,i=(n=$u(n)).data&&n.data.transition,s=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,du(n,(function(){e.style.display=s}))):e.style.display=r?s:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=$u(n)).data&&n.data.transition?(n.data.show=!0,r?du(n,(function(){e.style.display=e.__vOriginalDisplay})):pu(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Ou={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Eu(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Eu(Ga(t.children)):e}function Du(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var s in i)t[os(s)]=i[s];return t}function Nu(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Tu=function(e){return e.tag||Xa(e)},ju=function(e){return"show"===e.name},Lu={name:"transition",props:Ou,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Tu)).length){"production"!==process.env.NODE_ENV&&n.length>1&&Ws("<transition> can only be used on a single element. Use <transition-group> for lists.",this.$parent);var r=this.mode;"production"!==process.env.NODE_ENV&&r&&"in-out"!==r&&"out-in"!==r&&Ws("invalid <transition> mode: "+r,this.$parent);var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var s=Eu(i);if(!s)return i;if(this._leaving)return Nu(e,i);var o="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?o+"comment":o+s.tag:zi(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var a=(s.data||(s.data={})).transition=Du(this),l=this._vnode,c=Eu(l);if(s.data.directives&&s.data.directives.some(ju)&&(s.data.show=!0),c&&c.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(s,c)&&!Xa(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var u=c.data.transition=ps({},a);if("out-in"===r)return this._leaving=!0,fa(u,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Nu(e,i);if("in-out"===r){if(Xa(s))return l;var d,p=function(){d()};fa(a,"afterEnter",p),fa(a,"enterCancelled",p),fa(u,"delayLeave",(function(e){d=e}))}}return i}}},Pu=ps({tag:String,moveClass:String},Ou);function Fu(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Mu(e){e.data.newPos=e.elm.getBoundingClientRect()}function Iu(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var s=e.elm.style;s.transform=s.WebkitTransform="translate("+r+"px,"+i+"px)",s.transitionDuration="0s"}}delete Pu.mode;var Bu={Transition:Lu,TransitionGroup:{props:Pu,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=il(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],s=this.children=[],o=Du(this),a=0;a<i.length;a++){var l=i[a];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))s.push(l),n[l.key]=l,(l.data||(l.data={})).transition=o;else if("production"!==process.env.NODE_ENV){var c=l.componentOptions,u=c?c.Ctor.options.name||c.tag||"":l.tag;Ws("<transition-group> children must be keyed: <"+u+">")}}if(r){for(var d=[],p=[],h=0;h<r.length;h++){var f=r[h];f.data.transition=o,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?d.push(f):p.push(f)}this.kept=e(t,null,d),this.removed=p}return e(t,null,s)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Fu),e.forEach(Mu),e.forEach(Iu),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;iu(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Qc,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Qc,e),n._moveCb=null,su(n,t))})}})))},methods:{hasMove:function(e,t){if(!Gc)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Zc(n,e)})),Yc(n,t),n.style.display="none",this.$el.appendChild(n);var r=lu(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};Nl.config.mustUseProp=function(e,t,n){return"value"===n&&Rl(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Nl.config.isReservedTag=tc,Nl.config.isReservedAttr=Bl,Nl.config.getTagNamespace=function(e){return ec(e)?"svg":"math"===e?"math":void 0},Nl.config.isUnknownElement=function(e){if(!Es)return!0;if(tc(e))return!1;if(e=e.toLowerCase(),null!=nc[e])return nc[e];var t=document.createElement(e);return e.indexOf("-")>-1?nc[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:nc[e]=/HTMLUnknownElement/.test(t.toString())},ps(Nl.options.directives,Su),ps(Nl.options.components,Bu),Nl.prototype.__patch__=Es?gu:fs,Nl.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=so,"production"!==process.env.NODE_ENV&&(e.$options.template&&"#"!==e.$options.template.charAt(0)||e.$options.el||t?Ws("You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",e):Ws("Failed to mount component: template or render function not defined.",e))),al(e,"beforeMount"),r="production"!==process.env.NODE_ENV&&xs.performance&&oa?function(){var t=e._name,r=e._uid,i="vue-perf-start:"+r,s="vue-perf-end:"+r;oa(i);var o=e._render();oa(s),aa("vue "+t+" render",i,s),oa(i),e._update(o,n),oa(s),aa("vue "+t+" patch",i,s)}:function(){e._update(e._render(),n)},new bl(e,r,fs,{before:function(){e._isMounted&&!e._isDestroyed&&al(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,al(e,"mounted")),e}(this,e=e&&Es?function(e){if("string"==typeof e){var t=document.querySelector(e);return t||("production"!==process.env.NODE_ENV&&Ws("Cannot find element: "+e),document.createElement("div"))}return e}(e):void 0,t)},Es&&setTimeout((function(){xs.devtools&&(zs?zs.emit("init",Nl):"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&console[console.info?"info":"log"]("Download the Vue Devtools extension for a better development experience:\nhttps://github.com/vuejs/vue-devtools")),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&!1!==xs.productionTip&&"undefined"!=typeof console&&console[console.info?"info":"log"]("You are running Vue in development mode.\nMake sure to turn on production mode when deploying for production.\nSee more tips at https://vuejs.org/guide/deployment.html")}),0);const Ru=Se({render:function(e,t){var n=t._c;return n("div",{staticClass:"aw-noty",class:"bg-"+t.props.type},["string"==typeof t.props.icon&&t.props.icon?n(t.$options.components.AwIcon,{tag:"Component",staticClass:"aw-noty__icon",attrs:{name:t.props.icon,size:"2xl"}}):t._e(),t._v(" "),n("div",{staticClass:"aw-noty__content"},[n("div",{staticClass:"aw-noty__title"},[t._v(t._s(t.props.title))]),t._v(" "),t.props.text?n("div",{staticClass:"aw-noty__text",domProps:{innerHTML:t._s(t.$options.sanitize(t.props.text))}}):t._e()]),t._v(" "),t.props.remove?n("button",{staticClass:"aw-noty__button",on:{click:t.props.remove}},[n(t.$options.components.AwIcon,{tag:"Component",attrs:{name:"close"}})],1):t._e()],1)},staticRenderFns:[]},void 0,{name:"AwNoty",components:{AwIcon:le(Ne)},props:{type:{type:String,required:!0,validator:e=>["bg-info","bg-warning","bg-success","bg-error"].includes(`bg-${e}`)},title:{type:String,required:!0},text:{type:String,default:""},icon:{type:[String,Boolean],default:!1},remove:{type:Function,default:null}},sanitize:qr},void 0,!0,void 0,!1,void 0,void 0,void 0);let Vu=0;const zu=Se({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("TransitionGroup",{staticClass:"aw-noty-container",class:e.positionClass,attrs:{tag:"ul",name:"aw-noty","aria-live":"polite","aria-relevant":"additions"}},e._l(e.stack,(function(t){return n("li",{key:t.id,staticClass:"aw-noty-container__item"},[e._t("default",[n("AwNoty",e._b({},"AwNoty",t,!1))],null,t)],2)})),0)},staticRenderFns:[]},void 0,{name:"AwNotyContainer",components:{AwNoty:Ru},data:()=>({stack:[]}),beforeDestroy(){this.stack.forEach(e=>{clearTimeout(e.timeout)}),this.stack=[]},computed:{positionClass(){return this.$options.position?this.$options.position.split(" ").filter(Boolean).map(e=>`aw-noty-container_${e}`):null}},methods:{add(e){if(!Q("Object",e))throw new TypeError("item must be an object");const t=Vu++;e.id=t;const n=parseInt(e.timeout);return n&&!isNaN(n)&&(e.timeout=setTimeout(this.remove,n,t)),e.remove=()=>this.remove(t),this.stack.push(e),t},remove(e){let t=this.stack.findIndex(t=>t.id===e);return t>-1&&(clearTimeout(this.stack[t].timeout),this.stack.splice(t,1),!0)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);class qu{constructor(e){this.defaults={timeout:5e3,icon:"check-circle",type:"info",...e},this.containers={}}add(e){const t=ve("default","position",e),n=this.containers[t]||this._initContainer(t);if(n)return n.add({...this.defaults,...e})}_initContainer(e){if("undefined"==typeof window)return null;const t=new Nl(zu);return t.$options.position=e,document.body.appendChild(t.$mount().$el),this.containers[e]=t,t}}const Hu={install:function e(t,n){if(e.installed)return;e.installed=!0,fe(Si).forEach(e=>{t.component(e,Si[e])}),t.directive("tooltip",Mi),function(e,t={}){e.prototype.$awesConfig=re(t,ve({},Ce,e.prototype))}(t,n);const r=new qu(ve({},"Notification",n));t.prototype.$notify=r.add.bind(r)}};let Uu=null;return"undefined"!=typeof window?Uu=window.Vue:"undefined"!=typeof global&&(Uu=global.Vue),Uu&&Uu.use(Hu),e.AwAccordionFold=Oe,e.AwAddress=lr,e.AwAvatar=Te,e.AwBadge=Be,e.AwButton=Ie,e.AwButtonNav=We,e.AwCalendar=pn,e.AwCalendarView=hn,e.AwCard=fn,e.AwChart=vn,e.AwCheckbox=Hn,e.AwChip=gn,e.AwChipSelect=_n,e.AwCode=Qn,e.AwCodeSnippet=An,e.AwContentWrapper=Sn,e.AwContextMenu=$i,e.AwCropper=xn,e.AwDate=Un,e.AwDropdown=Qt,e.AwDropdownButton=en,e.AwForm=Mn,e.AwGrid=Nn,e.AwIcon=Ne,e.AwInfo=je,e.AwInput=qn,e.AwLayoutDefault=hr,e.AwLayoutFrameCenter=fr,e.AwLink=Fe,e.AwMarkdownEditor=Wr,e.AwModal=oi,e.AwMultiBlockBuilder=ai,e.AwPage=mr,e.AwPagination=vr,e.AwPassword=er,e.AwRadio=Wn,e.AwSearch=Zn,e.AwSelect=ar,e.AwSlider=qe,e.AwSvgImage=ci,e.AwSwitcher=Kn,e.AwTabNav=He,e.AwTable=gi,e.AwTableBuilder=_i,e.AwTableCol=pi,e.AwTel=tr,e.AwTextarea=Xn,e.AwTimelineBuilder=Gn,e.AwToggler=Ai,e.AwUploader=wi,e.AwUploaderFiles=xi,e.AwUserMenu=ki,e.AwUserpic=Ci,e.default=Hu,e}({});
|