@awes-io/ui 2.32.3 → 2.34.0
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/AwMoney.vue +3 -0
- package/components/3_organisms/AwTel.vue +306 -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 -14
- 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:22
|
|
5
|
+
*
|
|
6
|
+
* Version: 1.71.0
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
function type(input){const typeOf=typeof input,asStr=input&&input.toString?input.toString():"";return null===input?"Null":void 0===input?"Undefined":"boolean"===typeOf?"Boolean":"number"===typeOf?Number.isNaN(input)?"NaN":"Number":"string"===typeOf?"String":Array.isArray(input)?"Array":input instanceof RegExp?"RegExp":["true","false"].includes(asStr)?"Boolean":Number.isNaN(Number(asStr))?asStr.startsWith("async")?"Async":"[object Promise]"===asStr?"Promise":"function"===typeOf?"Function":input instanceof String?"String":"Object":"Number"}const reLeadingDot=/^\./,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,reIsHostCtor=/^\[object .+?Constructor\]$/,freeGlobal="object"==typeof global&&global&&global.Object===Object&&global,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")();const arrayProto=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype,coreJsData=root["__core-js_shared__"],maskSrcKey=function(){const uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:""}(),funcToString=funcProto.toString,{hasOwnProperty}=objectProto,objectToString=objectProto.toString,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),{Symbol:Symbol$1}=root,{splice}=arrayProto,Map$1=getNative(root,"Map"),nativeCreate=getNative(Object,"create"),symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function Hash(entries){let index=-1,length=entries?entries.length:0;for(this.clear();++index<length;){const entry=entries[index];this.set(entry[0],entry[1])}}function ListCache(entries){let index=-1;const length=entries?entries.length:0;for(this.clear();++index<length;){const entry=entries[index];this.set(entry[0],entry[1])}}function MapCache(entries){let index=-1;const length=entries?entries.length:0;for(this.clear();++index<length;){const entry=entries[index];this.set(entry[0],entry[1])}}function assocIndexOf(array,key){let{length}=array;for(;length--;)if((value=array[length][0])===(other=key)||value!=value&&other!=other)return length;var value,other;return-1}function baseIsNative(value){if(!isObject(value)||(func=value,Boolean(maskSrcKey)&&maskSrcKey in func))return!1;var func;return(function(value){const tag=isObject(value)?objectToString.call(value):"";return"[object Function]"==tag||"[object GeneratorFunction]"==tag}(value)||function(value){let result=!1;if(null!=value&&"function"!=typeof value.toString)try{result=Boolean(String(value))}catch(e){}return result}(value)?reIsNative:reIsHostCtor).test(function(func){if(null!=func){try{return funcToString.call(func)}catch(e){}try{return String(func)}catch(e){}}return""}(value))}function baseToString(value){if("string"==typeof value)return value;if(function(value){return"symbol"==typeof value||function(value){return Boolean(value)&&"object"==typeof value}(value)&&"[object Symbol]"==objectToString.call(value)}(value))return symbolToString?symbolToString.call(value):"";const result=String(value);return"0"==result&&1/value==-1/0?"-0":result}function getMapData(map,key){const data=map.__data__;return function(value){const type=typeof value;return"string"==type||"number"==type||"symbol"==type||"boolean"==type?"__proto__"!==value:null===value}(key)?data["string"==typeof key?"string":"hash"]:data.map}function getNative(object,key){const value=function(object,key){return null==object?void 0:object[key]}(object,key);return baseIsNative(value)?value:void 0}Hash.prototype.clear=function(){this.__data__=nativeCreate?nativeCreate(null):{}},Hash.prototype.delete=function(key){return this.has(key)&&delete this.__data__[key]},Hash.prototype.get=function(key){const data=this.__data__;if(nativeCreate){const result=data[key];return"__lodash_hash_undefined__"===result?void 0:result}return hasOwnProperty.call(data,key)?data[key]:void 0},Hash.prototype.has=function(key){const data=this.__data__;return nativeCreate?void 0!==data[key]:hasOwnProperty.call(data,key)},Hash.prototype.set=function(key,value){return this.__data__[key]=nativeCreate&&void 0===value?"__lodash_hash_undefined__":value,this},ListCache.prototype.clear=function(){this.__data__=[]},ListCache.prototype.delete=function(key){const data=this.__data__,index=assocIndexOf(data,key);return!(index<0)&&(index==data.length-1?data.pop():splice.call(data,index,1),!0)},ListCache.prototype.get=function(key){const data=this.__data__,index=assocIndexOf(data,key);return index<0?void 0:data[index][1]},ListCache.prototype.has=function(key){return assocIndexOf(this.__data__,key)>-1},ListCache.prototype.set=function(key,value){const data=this.__data__,index=assocIndexOf(data,key);return index<0?data.push([key,value]):data[index][1]=value,this},MapCache.prototype.clear=function(){this.__data__={hash:new Hash,map:new(Map$1||ListCache),string:new Hash}},MapCache.prototype.delete=function(key){return getMapData(this,key).delete(key)},MapCache.prototype.get=function(key){return getMapData(this,key).get(key)},MapCache.prototype.has=function(key){return getMapData(this,key).has(key)},MapCache.prototype.set=function(key,value){return getMapData(this,key).set(key,value),this};memoize(string=>{var value;string=null==(value=string)?"":baseToString(value);const result=[];return reLeadingDot.test(string)&&result.push(""),string.replace(rePropName,(match,number,quote,string)=>{result.push(quote?string.replace(reEscapeChar,"$1"):number||match)}),result});function memoize(func,resolver){if("function"!=typeof func||resolver&&"function"!=typeof resolver)throw new TypeError("Expected a function");var memoized=function(){const args=arguments,key=resolver?resolver.apply(this,args):args[0],{cache}=memoized;if(cache.has(key))return cache.get(key);const result=func.apply(this,args);return memoized.cache=cache.set(key,result),result};return memoized.cache=new(memoize.Cache||MapCache),memoized}function isObject(value){const type=typeof value;return Boolean(value)&&("object"==type||"function"==type)}function parseError(maybeError){const typeofError=maybeError.__proto__.toString();return["Error","TypeError"].includes(typeofError)?[typeofError,maybeError.message]:[]}function parseDate(maybeDate){return maybeDate.toDateString?[!0,maybeDate.getTime()]:[!1]}function parseRegex(maybeRegex){return maybeRegex.constructor!==RegExp?[!1]:[!0,maybeRegex.toString()]}function equals(a,b){if(1===arguments.length)return _b=>equals(a,_b);const aType=type(a);if(aType!==type(b))return!1;if(["NaN","Undefined","Null"].includes(aType))return!0;if(["Boolean","Number","String"].includes(aType))return a.toString()===b.toString();if("Array"===aType){const aClone=Array.from(a),bClone=Array.from(b);if(aClone.toString()!==bClone.toString())return!1;let loopArrayFlag=!0;return aClone.forEach((aCloneInstance,aCloneIndex)=>{loopArrayFlag&&(aCloneInstance===bClone[aCloneIndex]||equals(aCloneInstance,bClone[aCloneIndex])||(loopArrayFlag=!1))}),loopArrayFlag}const aRegex=parseRegex(a),bRegex=parseRegex(b);if(aRegex[0])return!!bRegex[0]&&aRegex[1]===bRegex[1];if(bRegex[0])return!1;const aDate=parseDate(a),bDate=parseDate(b);if(aDate[0])return!!bDate[0]&&aDate[1]===bDate[1];if(bDate[0])return!1;const aError=parseError(a),bError=parseError(b);if(aError[0])return!!bError[0]&&(aError[0]===bError[0]&&aError[1]===bError[1]);if("Object"===aType){const aKeys=Object.keys(a);if(aKeys.length!==Object.keys(b).length)return!1;let loopObjectFlag=!0;return aKeys.forEach(aKeyInstance=>{if(loopObjectFlag){const aValue=a[aKeyInstance],bValue=b[aKeyInstance];aValue===bValue||equals(aValue,bValue)||(loopObjectFlag=!1)}}),loopObjectFlag}return!1}function compose(...fns){if(0===fns.length)throw new Error("compose requires at least one argument");return(...args)=>{const list=fns.slice();if(list.length>0){let result=list.pop()(...args);for(;list.length>0;)result=list.pop()(result);return result}}}function baseSlice(array,start,end){let index=-1,{length}=array;(end=end>length?length:end)<0&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;const result=Array(length);for(;++index<length;)result[index]=array[index+start];return result}function filterObject(fn,obj){const willReturn={};for(const prop in obj)fn(obj[prop],prop,obj)&&(willReturn[prop]=obj[prop]);return willReturn}function filter(fn,list){if(1===arguments.length)return _list=>filter(fn,_list);if(null==list)return[];if(!Array.isArray(list))return filterObject(fn,list);let index=-1,resIndex=0;const len=list.length,willReturn=[];for(;++index<len;){const value=list[index];fn(value,index)&&(willReturn[resIndex++]=value)}return willReturn}function pick(keys,obj){if(1===arguments.length)return _obj=>pick(keys,_obj);if(null==obj)return;const keysValue="string"==typeof keys?keys.split(","):keys,willReturn={};let counter=0;for(;counter<keysValue.length;)keysValue[counter]in obj&&(willReturn[keysValue[counter]]=obj[keysValue[counter]]),counter++;return willReturn}function path(list,obj){if(1===arguments.length)return _obj=>path(list,_obj);if(null==obj)return;let willReturn=obj,counter=0;const pathArrValue="string"==typeof list?list.split("."):list;for(;counter<pathArrValue.length;){if(null==willReturn)return;willReturn=willReturn[pathArrValue[counter]],counter++}return willReturn}function any(fn,list){if(1===arguments.length)return _list=>any(fn,_list);let counter=0;for(;counter<list.length;){if(fn(list[counter],counter))return!0;counter++}return!1}function range(from,to){if(1===arguments.length)return _to=>range(from,_to);if(Number.isNaN(Number(from))||Number.isNaN(Number(to)))throw new TypeError("Both arguments to range must be numbers");if(to<from)return[];const len=to-from,willReturn=Array(len);for(let i=0;i<len;i++)willReturn[i]=from+i;return willReturn}memoize.Cache=MapCache;range(65,90),range(97,122),range(49,57);function includes(target,list){if(1===arguments.length)return _input=>includes(target,_input);if("string"==typeof list)return list.includes(target);if(!Array.isArray(list))return!1;let index=-1;for(;++index<list.length;)if(equals(list[index],target))return!0;return!1}function test(pattern,str){if(1===arguments.length)return _str=>test(pattern,_str);if("string"==typeof pattern)throw new TypeError(`‘test’ requires a value of type RegExp as its first argument; received "${pattern}"`);return-1!==str.search(pattern)}function all(fn,list){if(1===arguments.length)return _list=>all(fn,_list);for(let i=0;i<list.length;i++)if(!fn(list[i],i))return!1;return!0}function isPrototype(input){const currentPrototype=input.prototype,list=[Number,String,Boolean,Promise];let toReturn=!1,counter=-1;for(;++counter<list.length&&!toReturn;)currentPrototype===list[counter].prototype&&(toReturn=!0);return toReturn}function prototypeToString(input){const currentPrototype=input.prototype,list=[Number,String,Boolean,Promise];let found,counter=-1;for(;++counter<list.length;)currentPrototype===list[counter].prototype&&(found=counter);return["Number","String","Boolean","Promise"][found]}const typesWithoutPrototype=["any","promise","async","function"];function getRuleAndType(schema,requirementRaw){const ruleRaw=schema[requirementRaw],typeIs=type(ruleRaw),{rule,parsed}=function(rule){return Array.isArray(rule)||null==rule||void 0===rule.prototype||typesWithoutPrototype.includes(rule)?{rule,parsed:!1}:String.prototype===rule.prototype?{rule:"string",parsed:!0}:Boolean.prototype===rule.prototype?{rule:"boolean",parsed:!0}:Number.prototype===rule.prototype?{rule:"number",parsed:!0}:{rule:type(rule.prototype).toLowerCase(),parsed:!0}}(ruleRaw);return{rule,ruleType:parsed?"String":typeIs}}function isType(xType,x){return 1===arguments.length?xHolder=>isType(xType,xHolder):type(x)===xType}function mapObject(fn,obj){const willReturn={};for(const prop in obj)willReturn[prop]=fn(obj[prop],prop,obj);return willReturn}function map(fn,list){if(1===arguments.length)return _list=>map(fn,_list);if(void 0===list)return[];if(!Array.isArray(list))return mapObject(fn,list);let index=-1;const len=list.length,willReturn=Array(len);for(;++index<len;)willReturn[index]=fn(list[index],index);return willReturn}function take(n,list){return 1===arguments.length?_list=>take(n,_list):n<0?list.slice():"string"==typeof list?list.slice(0,n):baseSlice(list,0,n)}function mergeDeep(target,source){if(1===arguments.length)return sourceHolder=>mergeDeep(target,sourceHolder);const willReturn=JSON.parse(JSON.stringify(target));return Object.keys(source).forEach(key=>{"Object"===type(source[key])&&"Object"===type(target[key])?willReturn[key]=mergeDeep(target[key],source[key]):willReturn[key]=source[key]}),willReturn}function curry(fn,args=[]){return(..._args)=>{return(rest=[...args,..._args]).length>=fn.length?fn(...rest):curry(fn,rest);var rest}}function omit(keys,obj){if(1===arguments.length)return _obj=>omit(keys,_obj);if(null==obj)return;const keysValue="string"==typeof keys?keys.split(","):keys,willReturn={};for(const key in obj)keysValue.includes(key)||(willReturn[key]=obj[key]);return willReturn}function F(){return!1}function anyPass(predicates){return input=>{let counter=0;for(;counter<predicates.length;){if(predicates[counter](input))return!0;counter++}return!1}}function clone(val){const out=Array.isArray(val)?Array(val.length):{};if(val&&val.getTime)return new Date(val.getTime());for(const key in val){const v=val[key];out[key]="object"==typeof v&&null!==v?v.getTime?new Date(v.getTime()):clone(v):v}return out}function flagIs$1(inputArguments){return null==inputArguments||!0===Number.isNaN(inputArguments)}function is$1(ctor,val){return 1===arguments.length?_val=>is$1(ctor,_val):null!=val&&val.constructor===ctor||val instanceof ctor}function isEmpty(input){const inputType=type(input);return!["Undefined","NaN","Number","Null"].includes(inputType)&&(!input||("Object"===inputType?0===Object.keys(input).length:"Array"===inputType&&0===input.length))}function isNil(x){return null==x}function join(separator,list){return 1===arguments.length?_list=>join(separator,_list):list.join(separator)}function keys(obj){return Object.keys(obj)}function not(a){return!a}const pathOr=curry((function(defaultValue,list,obj){return function defaultTo(defaultArgument,...inputArguments){if(1===arguments.length)return _inputArguments=>defaultTo(defaultArgument,_inputArguments);if(2===arguments.length)return flagIs$1(inputArguments[0])?defaultArgument:inputArguments[0];const limit=inputArguments.length-1;let holder,len=limit+1,ready=!1;for(;!ready;){const instance=inputArguments[limit-len+1];0===len?ready=!0:flagIs$1(instance)?len-=1:(holder=instance,ready=!0)}return void 0===holder?defaultArgument:holder}(defaultValue,path(list,obj))}));const reduce=curry((function(fn,acc,list){return list.reduce(fn,acc)}));reduce((function multiply(a,b){return 1===arguments.length?_b=>multiply(a,_b):a*b}),1);const slice=curry((function(fromIndex,toIndex,list){return list.slice(fromIndex,toIndex)}));function split(separator,str){return 1===arguments.length?_str=>split(separator,_str):str.split(separator)}function startsWith(prefix,list){return 1===arguments.length?_list=>startsWith(prefix,_list):list.startsWith(prefix)}function takeLast(n,list){if(1===arguments.length)return _list=>takeLast(n,_list);const len=list.length;if(n<0)return list.slice();let numValue=n>len?len:n;return"string"==typeof list?list.slice(len-numValue):(numValue=len-numValue,baseSlice(list,numValue,len))}function toPairs(obj){return Object.entries(obj)}const CONFIG_PATH=["$awesConfig"];function conf(thisArg,val,def){return pathOr(pathOr(def,["$options","_config",val],thisArg),[CONFIG_PATH,path("$options.name",thisArg),val],thisArg)}function validateBySchema(schema){return input=>{const valid=function isValid({input,schema}){if(void 0===input||void 0===schema)return!1;let flag=!0;const boom=boomFlag=>{boomFlag||(flag=!1)};for(const requirementRaw in schema)if(flag){const isOptional=requirementRaw.endsWith("?"),requirement=isOptional?"string"==typeof(list=requirementRaw)?list.slice(0,-1):list.length?baseSlice(list,0,-1):[]:requirementRaw,{rule,ruleType}=getRuleAndType(schema,requirementRaw),inputProp=input[requirement],inputPropType=type(input[requirement]);if(!(isOptional&&void 0!==inputProp||!isOptional)||"any"===rule&&null!=inputProp||rule===inputProp)continue;if("Object"===ruleType){boom(isValid({input:inputProp,schema:rule}))}else if("String"===ruleType)boom(inputPropType.toLowerCase()===rule);else if("function"==typeof rule)boom(rule(inputProp));else if("Array"===ruleType&&"String"===inputPropType)boom(includes(inputProp,rule));else if("Array"===ruleType&&1===rule.length&&"Array"===inputPropType){const[currentRule]=rule,currentRuleType=type(currentRule);if(boom("String"===currentRuleType||"Object"===currentRuleType||isPrototype(currentRule)),"Object"===currentRuleType&&flag){boom(all(inputPropInstance=>isValid({input:inputPropInstance,schema:currentRule}),inputProp))}else if(flag){const actualRule="String"===currentRuleType?currentRule:prototypeToString(currentRule);boom(!any(inputPropInstance=>type(inputPropInstance).toLowerCase()!==actualRule.toLowerCase(),inputProp))}}else boom("RegExp"===ruleType&&"String"===inputPropType&&test(rule,inputProp))}var list;return flag}({input:{input},schema:{input:schema}});return valid||console.error("Expected: ",JSON.stringify(schema)),valid}}var script={name:"AwAccordionFold",props:{show:{type:Boolean,default:!1},tag:{type:String,default:"div"}},methods:{setMaxHeight(el){const maxHeight=el.scrollHeight;this.$el.style.maxHeight=`${maxHeight}px`},removeMaxHeight(){this.$el.style.maxHeight=null}}};function normalizeComponent(template,style,script,scopeId,isFunctionalTemplate,moduleIdentifier,shadowMode,createInjector,createInjectorSSR,createInjectorShadow){"boolean"!=typeof shadowMode&&(createInjectorSSR=createInjector,createInjector=shadowMode,shadowMode=!1);const options="function"==typeof script?script.options:script;let hook;if(template&&template.render&&(options.render=template.render,options.staticRenderFns=template.staticRenderFns,options._compiled=!0,isFunctionalTemplate&&(options.functional=!0)),scopeId&&(options._scopeId=scopeId),moduleIdentifier?(hook=function(context){(context=context||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(context=__VUE_SSR_CONTEXT__),style&&style.call(this,createInjectorSSR(context)),context&&context._registeredComponents&&context._registeredComponents.add(moduleIdentifier)},options._ssrRegister=hook):style&&(hook=shadowMode?function(context){style.call(this,createInjectorShadow(context,this.$root.$options.shadowRoot))}:function(context){style.call(this,createInjector(context))}),hook)if(options.functional){const originalRender=options.render;options.render=function(h,context){return hook.call(context),originalRender(h,context)}}else{const existing=options.beforeCreate;options.beforeCreate=existing?[].concat(existing,hook):[hook]}return script}"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());const __vue_component__=normalizeComponent({render:function(){var _h=this.$createElement,_c=this._self._c||_h;return _c("transition",{attrs:{name:"collapse"},on:{enter:this.setMaxHeight,"after-enter":this.removeMaxHeight,leave:this.setMaxHeight,"after-leave":this.removeMaxHeight}},[_c(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,script,void 0,!1,void 0,!1,void 0,void 0,void 0),AwForm={baseClass:"aw-form",method:"post",setErrors(errors){const unsetErrors={};Object.keys(errors).forEach(fieldName=>{const field=this.$el[fieldName];let text=errors[fieldName];Array.isArray(text)&&(text=text.join(" ")),field&&"function"==typeof field.setCustomValidity&&"function"==typeof Event?(field.setCustomValidity(text),field.dispatchEvent(new Event("invalid"))):unsetErrors[fieldName]=text}),isEmpty(unsetErrors)||(this.errors=unsetErrors)},submit($event){$event.preventDefault(),this.errors=null;const _tm=setTimeout(()=>{this.loading=!0},200),form=$event.target,method=form.method.toLowerCase(),data=new FormData($event.target);let request={url:form.action,method};return"get"===method?request.params=new URLSearchParams(data):request.data=data,this.$axios.request(request).then(response=>(this.$emit("sended",response),response)).catch(err=>{const errors=pathOr({},"response.data.errors",err);if("function"==typeof this.setErrors&&this.setErrors(errors),err.response)return this.$emit("error",err.response),err.response}).finally(()=>{clearTimeout(_tm),this.loading=!1})}},AwInput={baseClass:"aw-text-field",sizes:["sm","md"]};const __vue_component__$1=normalizeComponent({render:function(){var _h=this.$createElement;return(this._self._c||_h)("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 conf(this,"size")}},className:{type:String,default(){return conf(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 __vue_component__$2=normalizeComponent({render:function(_h,_vm){var _c=_vm._c;return _c("span",{staticClass:"inline-block align-middle rounded-full relative text-center text-surface",class:[_vm.data.staticClass,_vm.data.class,_vm.props.isColored?"":"bg-disabled"],style:[_vm.data.staticStyle,_vm.data.style,{"background-color":_vm.props.isColored?_vm.$options.getColor(_vm.props.name):"",width:_vm.props.size+"px",height:_vm.props.size+"px","min-width":_vm.props.size+"px","min-height":_vm.props.size+"px","font-size":_vm.props.size/100*3+"rem"}]},[_vm._t("default",[_vm.$options.getSrc(_vm.props.src)?_c("img",{staticClass:"rounded-full min-h-full min-w-full",attrs:{height:_vm.props.size,src:_vm.props.src,alt:_vm.props.name||_vm.props.src}}):_vm._e()],null,Object.assign({},_vm.props,{initials:_vm.$options.getColor(_vm.props.name)})),_vm._v(" "),_vm.$options.getSrc(_vm.props.src)||"initials"!==_vm.props.type?_vm._e():_c("span",{staticClass:"absolute top-1/2 left-1/2 uppercase",staticStyle:{transform:"translate(-50%, -50%)"}},[_vm._v(_vm._s(_vm.$options.getLetters(_vm.props.name)))]),_vm._v(" "),_vm._t("no-img",[_vm.$options.getSrc(_vm.props.src)||"no-img"!==_vm.props.type?_vm._e():_c("AwIcon",{staticClass:"absolute text-surface top-1/2 left-1/2",staticStyle:{transform:"translate(-50%, -50%)"},attrs:{size:"",name:"user-solid"}})],null,Object.assign({},_vm.props,{initials:_vm.$options.getColor(_vm.props.name)}))],2)},staticRenderFns:[]},void 0,{name:"AwAvatar",components:{AwIcon:__vue_component__$1},props:{src:{type:String,default:""},name:{type:String,default:""},size:{type:[Number,String],default:36,validator(val){const isValid=!Number.isNaN(1*val);return"development"!==process.env.NODE_ENV||isValid||console.error(`Incorrect size. Only numbers or strings as numbers allowed. Given value - ${val}`),isValid}},type:{type:String,default:"initials",validator:value=>["initials","empty","no-img"].includes(value)},isColored:{type:Boolean,default:!0}},getSrc:src=>src,getLetters:compose(join(""),map(take(1)),take(2),split(/[ -]/)),getColor(name){let hash=0;const colors=["#E0AB61","#E29D5D","#E68262","#E45284","#DF54BD","#DA61D9","#BF55CF","#AF57DB","#9C55D3","#834EE3","#634EE3","#594FCF","#6086E3","#66B9E4","#66C3D1","#66C7B9","#5CBC98","#9A6F66"];if(!name.length)return colors[0];for(var i=0;i<name.length;i++)hash=name.charCodeAt(i)+((hash<<5)-hash),hash&=hash;return hash=(hash%colors.length+colors.length)%colors.length,colors[hash]}},void 0,!0,void 0,!1,void 0,void 0,void 0);const __vue_component__$3=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",[_vm.label?_c("div",{staticClass:"opacity-50 text-xs"},[_vm._v(_vm._s(_vm.label))]):_vm._e(),_vm._v(" "),_vm._t("default",[_vm._v(_vm._s(_vm.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),LINK_REGEX=/^(https?:)?\/\//gm,SPECIAL_URL_REGEX=/tel:|mailto:/gm;const __vue_component__$4=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement;return(_vm._self._c||_h)("component",_vm._g(_vm._b({class:_vm.className},"component",_vm.componentProps,!1),_vm.$listeners),[_vm._t("default",[_vm._v(_vm._s(_vm.text))])],2)},staticRenderFns:[]},void 0,{name:"AwLink",_config:{routerComponent:"router-link",baseClass:"link"},props:{href:[String,Object],className:{type:String,default(){return conf(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(LINK_REGEX))return{is:this.tag||"a",role:this.tag?"link":null,href:this.href,target:"_blank",rel:"nofollow"};if(this.href.match(SPECIAL_URL_REGEX))return{is:this.tag||"a",role:this.tag?"link":null,href:this.href}}return{is:conf(this,"routerComponent"),to:this.href}}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function getBemClasses(block,els=[]){let _cls={};return els.forEach(el=>{var str;_cls[(str=el,str.replace(/[-_]([a-z])/g,m=>m[1].toUpperCase()))]=`${block}__${el}`}),_cls}const __vue_component__$5=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("component",_vm._g(_vm._b({class:_vm.classes,attrs:{disabled:_vm.$attrs.disabled||_vm.loading},on:{mousedown:_vm._setPressed,mouseup:_vm._setPressed,touchstart:_vm._setPressed,touchend:_vm._setPressed}},"component",_vm.componentProps,!1),_vm.$listeners),[_c("span",{class:_vm.elClasses.overlay}),_vm._v(" "),_c("span",{class:[_vm.elClasses.content,_vm.elClasses.content+"_"+_vm.size,_vm.contentClass],attrs:{tabindex:"-1"}},[_vm.loading?_c("AwSvgImage",{staticClass:"h-5 w-5 inline-block mr-1",attrs:{slot:"left",name:"spinner"},slot:"left"}):_vm._e(),_vm._v(" "),_vm.icon&&!_vm.loading?_c("AwIcon",{staticClass:"flex-shrink-0",class:{"mr-1":"icon"!==_vm.theme&&_vm.text},attrs:{name:_vm.icon}}):_vm._e(),_vm._v(" "),_c("span",{class:[{"sr-only":"icon"===_vm.theme&&_vm.icon},_vm.elClasses.text]},[_vm.loading?_c("span",[_vm._v("\n "+_vm._s(_vm.loadingText)+"\n ")]):_vm._t("default",[_vm._v(_vm._s(_vm.text))])],2)],1)])},staticRenderFns:[]},void 0,{name:"AwButton",extends:__vue_component__$4,_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 getBemClasses(this.className,["content","overlay","text"])},loadingText(){return isType("String",this.loading)&&this.loading||this.$t("AwButton.loading")}},methods:{_setPressed($event){this.isPressed="mousedown"===$event.type||"touchstart"===$event.type},focus(){this.$el&&this.$el.focus()}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$6=normalizeComponent({render:function(_h,_vm){var _c=_vm._c;return _c("span",{staticClass:"aw-badge inline-flex items-center",class:[_vm.data.staticClass,_vm.data.class],style:[_vm.data.staticStyle,_vm.data.style]},[_vm._t("default"),_vm._v(" "),_c("span",{directives:[{name:"show",rawName:"v-show",value:!_vm.props.hideIfEmpty||_vm.props.hideIfEmpty&&!!(1*_vm.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-"+(_vm.props.color||"brand")]},[_vm._v("\n "+_vm._s(_vm.props.text)+"\n "),_vm.props.icon?_c("AwIcon",{attrs:{name:_vm.props.icon,size:"xs"}}):_vm._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),cleanRouteQuery=filter(val=>!isNil(val)&&""!==val);function mergeRouteQuery(query,route){return{...route,query:(acceptor=query,donor=route.query,cleanRouteQuery(mergeDeep(donor,acceptor)))};var acceptor,donor}function trimSlash(path=""){if("string"!=typeof path)throw new TypeError("Path must be a string");const[_path,_query]=path.split("?");return _path.replace(/\/$/,"")+(_query?`?${_query}`:"")}const __vue_component__$7=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c(_vm.tag,{tag:"Component",staticClass:"aw-slider",on:{"!mousedown":function($event){return _vm._activate($event)},"!touchstart":function($event){return _vm._activate($event)},"!dragstart":function($event){return _vm._prevent($event)},"!focus":function($event){return _vm._onFocus($event)},scroll:_vm._prevent}},[_c("span",{ref:"scroller",staticClass:"aw-slider__scroller",style:_vm.scrollStyle},[_vm._t("default")],2),_vm._v(" "),_c("span",{staticClass:"aw-slider__shadow aw-slider__shadow_left",style:_vm.shadowLeftStyle,attrs:{"aria-hidden":"true"}}),_vm._v(" "),_c("span",{staticClass:"aw-slider__shadow aw-slider__shadow_right",style:_vm.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"===pathOr("","type",this.$event)},maxScrollLeft(){const diff=this.scrollWidth-this.width;return diff>1?diff: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(isActive){const method=isActive?"addEventListener":"removeEventListener",moveEvent=this._isTouch?"touchmove":"mousemove",endEvent=this._isTouch?"touchend":"mouseup",cancelEvent=this._isTouch?"touchcancel":"mouseleave";window[method](moveEvent,this._move),window[method](moveEvent,this._checkDragging),window[method](endEvent,this._deactivate),window[method](cancelEvent,this._deactivate)},_activate($event){this.active||(this._setDimensions(),this.scrollStart=this.scrollLeft,this.$event=pick("type,timeStamp,pageX",$event),this.$event.pageX=pathOr($event.pageX,"touches.0.pageX",$event),this.active=!0)},_deactivate(){this.active=!1,this.$nextTick(()=>{this._snap(),setTimeout(()=>{this.$el.removeEventListener("click",this._prevent,!0)},10)})},_move($event){const end=pathOr($event.pageX,"touches.0.pageX",$event),diff=this.$event.pageX-end;this.scrollLeft=this._withBorders(this.scrollStart+diff)},_checkDragging($event){const{pageX,timeStamp}=$event,time=timeStamp-this.$event.timeStamp,x=this.$event.pageX-pageX;if(time>300||x>5){this.$el.addEventListener("click",this._prevent,!0);const moveEvent=this._isTouch?"touchmove":"mousemove";window.removeEventListener(moveEvent,this._checkDragging)}},_snap(){const els=this.$refs.scroller.childNodes,left=this.scrollLeft,right=this.width+this.scrollLeft;let _width=0,bestFitLeft=1/0,bestFitRight=1/0;for(let i=0,length=els.length;i<length;i++){let elWidth=this._getFullWidth(els[i]),offsetLeft=_width-left,offsetRight=right-_width-elWidth;Math.abs(offsetLeft)<Math.abs(bestFitLeft)&&(bestFitLeft=offsetLeft),Math.abs(offsetRight)<Math.abs(bestFitRight)&&(bestFitRight=offsetRight),_width+=elWidth}Math.abs(bestFitLeft)<Math.abs(bestFitRight)?this.scrollLeft=this._withBorders(this.scrollLeft+bestFitLeft):this.scrollLeft=this._withBorders(this.scrollLeft-bestFitRight)},_setDimensions(){const el=this.$refs.scroller;this.width=el.offsetWidth,this.scrollWidth=Array.from(el.children).reduce((acc,_el)=>acc+this._getFullWidth(_el),0)},_withBorders(scrollLeft){return scrollLeft>this.maxScrollLeft?this.maxScrollLeft:scrollLeft<0?0:scrollLeft},scrollTo(el){try{const els=this.$refs.scroller.childNodes;let scrollLeft=0;for(let i=0,length=els.length;i<length;i++){if(el===els[i]){this.scrollLeft=this._withBorders(scrollLeft);break}scrollLeft+=this._getFullWidth(els[i])}}catch(e){console.log(e)}},_getFullWidth(el){const elWidth=el.scrollWidth,style=el.currentStyle||getComputedStyle(el);return elWidth+(parseFloat(style.marginLeft)+parseFloat(style.marginRight))+(parseFloat(style.borderLeftWidth)+parseFloat(style.borderRightWidth))},_onResize(){clearTimeout(this._resizetm),this._resizetm=setTimeout(()=>{this._setDimensions(),this.scrollLeft=this._withBorders(this.scrollLeft),this.$emit("resized")},300)},_onFocus($event){const el=$event.target,bounds=el.getBoundingClientRect(),wrapBounds=this.$el.getBoundingClientRect();(wrapBounds.left>bounds.left||wrapBounds.right<bounds.right)&&(this._prevent($event),this.scrollTo(el))},_prevent:$event=>($event.preventDefault(),$event.stopImmediatePropagation(),$event.stopPropagation(),!1)}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$8=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("AwSlider",{ref:"slider",class:_vm._cssClasses.base,on:{resized:function($event){return _vm.scrollToActive(!1)}}},[_vm._l(_vm.togglers,(function(ref,i){var _obj,_obj$1,_obj$2,_obj$3,text=ref.text,key=ref.key,route=ref.route,isActive=ref.isActive,isDisabled=ref.isDisabled,item=function(obj,exclude){var target={};for(var k in obj)Object.prototype.hasOwnProperty.call(obj,k)&&-1===exclude.indexOf(k)&&(target[k]=obj[k]);return target}(ref,["text","key","route","isActive","isDisabled"]);return[_vm._t("default",[route?_c("a",{key,class:[_vm._cssClasses.toggler,(_obj={},_obj[_vm._cssClasses.togglerActive]=isActive,_obj),(_obj$1={},_obj$1[_vm._cssClasses.togglerDisabled]=isDisabled,_obj$1)],attrs:{href:isDisabled?null:route.fullPath},on:{click:function($event){return $event.preventDefault(),_vm.navigate(route)}}},[_c("span",{attrs:{tabindex:"-1"}},[_vm._v("\n "+_vm._s(text)+"\n "),item.badge?_c("AwBadge",_vm._b({},"AwBadge",item.badge,!1)):_vm._e()],1)]):_c("button",{key,class:[_vm._cssClasses.toggler,(_obj$2={},_obj$2[_vm._cssClasses.togglerActive]=isActive,_obj$2),(_obj$3={},_obj$3[_vm._cssClasses.togglerDisabled]=isDisabled,_obj$3)],attrs:{disabled:isDisabled?"":null,type:"button"},on:{click:function($event){return $event.preventDefault(),_vm.update(i)}}},[_c("span",{attrs:{tabindex:"-1"}},[_vm._v("\n "+_vm._s(text)+"\n "),item.badge?_c("AwBadge",_vm._b({},"AwBadge",item.badge,!1)):_vm._e()],1)])],null,Object.assign({},{text,key,route,isActive},item))]}))],2)},staticRenderFns:[]},void 0,{name:"AwTabNav",components:{AwSlider:__vue_component__$7,AwBadge:__vue_component__$6},_config:{baseClass:"aw-tab-nav"},props:{items:{type:Array,required:!0,validator:items=>items.every(item=>isType("String",item)||validateBySchema({text:"string","href?":"any","badge?":"object"}))},active:{type:[Number,Array],default:0,validator:val=>Array.isArray(val)?!val.every(isNaN):!isNaN(val)}},computed:{_cssClasses(){const base=this.$options._config.baseClass;return{base,...getBemClasses(base,["toggler","toggler_active","toggler_disabled"])}},_currentPath(){return trimSlash(this.$route.path)},_allParams(){return function(list){let index=-1;const willReturn=[];for(;++index<list.length;){const value=list[index];includes(value,willReturn)||willReturn.push(value)}return willReturn}(this.items.reduce((acc,item)=>acc.concat(keys(pathOr({},"href.query",item))),[]))},_resetParamsQuery(){return function(list){const toReturn={};return list.forEach(([prop,value])=>toReturn[prop]=value),toReturn}(this._allParams.map(param=>[param,null]))},togglers(){return this.items.map((item,i)=>{const text=pathOr(item,"text",item),isDisabled=pathOr(!1,"disabled",item),href=pathOr(!1,"href",item),route=!!href&&this._normalizeRoute(href),isActive=href?this._isSameRoute(route):Array.isArray(this.active)?this.active.includes(i):i===this.active;return{...omit("text,href",item),route,isActive,isDisabled,text,key:`${text}-${i}`}})}},mounted(){this.$nextTick(this.scrollToActive)},methods:{navigate(route){const toggler=this.togglers.find(item=>item.route===route);toggler&&!toggler.isActive&&this.$router.push({...route,query:cleanRouteQuery({...this._isSamePath(route)?this.$route.query:{},...route.query})})},update(i){let active=i;Array.isArray(this.active)&&(active=this.active.includes(i)?this.active.filter(item=>item!==i):this.active.concat(i)),this.$emit("update:active",active)},scrollToActive(force=!0){const el=this.$el.querySelectorAll("."+this._cssClasses.togglerActive);(1===el.length||el.length>1&&force)&&this.$refs.slider.scrollTo(el[0])},_normalizeRoute(href){const route=this.$router.resolve(href).route;return{...route,query:{...this._resetParamsQuery,...cleanRouteQuery(route.query)}}},_isSamePath(route){return trimSlash(route.path)===this._currentPath},_isSameRoute(route){if(!this._isSamePath(route))return!1;return equals({...this._resetParamsQuery,...pick(this._allParams,this.$route.query)},route.query)}}},void 0,!1,void 0,!1,void 0,void 0,void 0),AwButtonNav=clone(__vue_component__$8);AwButtonNav.name="AwButtonNav",AwButtonNav._config.baseClass="aw-button-nav";const __vue_component__$9=normalizeComponent({},void 0,AwButtonNav,void 0,void 0,void 0,!1,void 0,void 0,void 0);function getBoundingClientRect(element){var rect=element.getBoundingClientRect();return{width:rect.width,height:rect.height,top:rect.top,right:rect.right,bottom:rect.bottom,left:rect.left,x:rect.left,y:rect.top}}function getWindow(node){if("[object Window]"!==node.toString()){var ownerDocument=node.ownerDocument;return ownerDocument?ownerDocument.defaultView:window}return node}function getWindowScroll(node){var win=getWindow(node);return{scrollLeft:win.pageXOffset,scrollTop:win.pageYOffset}}function isElement(node){return node instanceof getWindow(node).Element}function isHTMLElement(node){return node instanceof getWindow(node).HTMLElement}function getNodeName(element){return element?(element.nodeName||"").toLowerCase():null}function getDocumentElement(element){return(isElement(element)?element.ownerDocument:element.document).documentElement}function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft}function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){var documentElement;void 0===isFixed&&(isFixed=!1);var node,element,rect=getBoundingClientRect(elementOrVirtualElement),scroll={scrollLeft:0,scrollTop:0},offsets={x:0,y:0};return isFixed||("body"!==getNodeName(offsetParent)&&(scroll=(node=offsetParent)!==getWindow(node)&&isHTMLElement(node)?{scrollLeft:(element=node).scrollLeft,scrollTop:element.scrollTop}:getWindowScroll(node)),isHTMLElement(offsetParent)?((offsets=getBoundingClientRect(offsetParent)).x+=offsetParent.clientLeft,offsets.y+=offsetParent.clientTop):(documentElement=getDocumentElement(offsetParent))&&(offsets.x=getWindowScrollBarX(documentElement))),{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function getLayoutRect(element){return{x:element.offsetLeft,y:element.offsetTop,width:element.offsetWidth,height:element.offsetHeight}}function getParentNode(element){return"html"===getNodeName(element)?element:element.parentNode||element.host||document.ownerDocument||document.documentElement}function getComputedStyle$1(element){return getWindow(element).getComputedStyle(element)}function listScrollParents(element,list){void 0===list&&(list=[]);var scrollParent=function getScrollParent(node){if(["html","body","#document"].indexOf(getNodeName(node))>=0)return node.ownerDocument.body;if(isHTMLElement(node)){var _getComputedStyle=getComputedStyle$1(node),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;if(/auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX))return node}return getScrollParent(getParentNode(node))}(element),isBody="body"===getNodeName(scrollParent),target=isBody?getWindow(scrollParent):scrollParent,updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)))}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0}function getTrueOffsetParent(element){var offsetParent;return!isHTMLElement(element)||!(offsetParent=element.offsetParent)||void 0!==window.InstallTrigger&&"fixed"===getComputedStyle$1(offsetParent).position?null:offsetParent}function getOffsetParent(element){for(var window=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent);)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&"body"===getNodeName(offsetParent)&&"static"===getComputedStyle$1(offsetParent).position?window:offsetParent||window}var top="top",bottom="bottom",right="right",left="left",basePlacements=[top,bottom,right,left],variationPlacements=basePlacements.reduce((function(acc,placement){return acc.concat([placement+"-start",placement+"-end"])}),[]),placements=[].concat(basePlacements,["auto"]).reduce((function(acc,placement){return acc.concat([placement,placement+"-start",placement+"-end"])}),[]),modifierPhases=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function order(modifiers){var map=new Map,visited=new Set,result=[];return modifiers.forEach((function(modifier){map.set(modifier.name,modifier)})),modifiers.forEach((function(modifier){visited.has(modifier.name)||function sort(modifier){visited.add(modifier.name),[].concat(modifier.requires||[],modifier.requiresIfExists||[]).forEach((function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);depModifier&&sort(depModifier)}})),result.push(modifier)}(modifier)})),result}function debounce(fn){var pending;return function(){return pending||(pending=new Promise((function(resolve){Promise.resolve().then((function(){pending=void 0,resolve(fn())}))}))),pending}}function format(str){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return[].concat(args).reduce((function(p,c){return p.replace(/%s/,c)}),str)}var INVALID_MODIFIER_ERROR='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',VALID_PROPERTIES=["name","enabled","phase","fn","effect","requires","options"];function uniqueBy(arr,fn){var identifiers=new Set;return arr.filter((function(item){var identifier=fn(item);if(!identifiers.has(identifier))return identifiers.add(identifier),!0}))}function getBasePlacement(placement){return placement.split("-")[0]}var INVALID_ELEMENT_ERROR="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.",DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return!args.some((function(element){return!(element&&"function"==typeof element.getBoundingClientRect)}))}function popperGenerator(generatorOptions){void 0===generatorOptions&&(generatorOptions={});var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers=void 0===_generatorOptions$def?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=void 0===_generatorOptions$def2?DEFAULT_OPTIONS:_generatorOptions$def2;return function(reference,popper,options){void 0===options&&(options=defaultOptions);var state={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,{},defaultOptions),modifiersData:{},elements:{reference,popper},attributes:{},styles:{}},effectCleanupFns=[],isDestroyed=!1,instance={state,setOptions:function(options){cleanupModifierEffects(),state.options=Object.assign({},defaultOptions,{},state.options,{},options),state.scrollParents={reference:isElement(reference)?listScrollParents(reference):[],popper:listScrollParents(popper)};var orderedModifiers=function(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce((function(acc,phase){return acc.concat(orderedModifiers.filter((function(modifier){return modifier.phase===phase})))}),[])}([].concat(state.options.modifiers.filter((function(modifier){return!defaultModifiers.find((function(_ref){return _ref.name===modifier.name}))})),defaultModifiers.map((function(defaultModifier){return Object.assign({},defaultModifier,{},state.options.modifiers.find((function(_ref2){return _ref2.name===defaultModifier.name})))}))));if("production"!==process.env.NODE_ENV){if(function(modifiers){modifiers.forEach((function(modifier){Object.keys(modifier).forEach((function(key){switch(key){case"name":"string"!=typeof modifier.name&&console.error(format(INVALID_MODIFIER_ERROR,String(modifier.name),'"name"','"string"','"'+String(modifier.name)+'"'));break;case"enabled":"boolean"!=typeof modifier.enabled&&console.error(format(INVALID_MODIFIER_ERROR,modifier.name,'"enabled"','"boolean"','"'+String(modifier.enabled)+'"'));case"phase":modifierPhases.indexOf(modifier.phase)<0&&console.error(format(INVALID_MODIFIER_ERROR,modifier.name,'"phase"',"either "+modifierPhases.join(", "),'"'+String(modifier.phase)+'"'));break;case"fn":"function"!=typeof modifier.fn&&console.error(format(INVALID_MODIFIER_ERROR,modifier.name,'"fn"','"function"','"'+String(modifier.fn)+'"'));break;case"effect":"function"!=typeof modifier.effect&&console.error(format(INVALID_MODIFIER_ERROR,modifier.name,'"effect"','"function"','"'+String(modifier.fn)+'"'));break;case"requires":Array.isArray(modifier.requires)||console.error(format(INVALID_MODIFIER_ERROR,modifier.name,'"requires"','"array"','"'+String(modifier.requires)+'"'));break;case"requiresIfExists":Array.isArray(modifier.requiresIfExists)||console.error(format(INVALID_MODIFIER_ERROR,modifier.name,'"requiresIfExists"','"array"','"'+String(modifier.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+modifier.name+'" modifier, valid properties are '+VALID_PROPERTIES.map((function(s){return'"'+s+'"'})).join(", ")+'; but "'+key+'" was provided.')}modifier.requires&&modifier.requires.forEach((function(requirement){null==modifiers.find((function(mod){return mod.name===requirement}))&&console.error(format('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(modifier.name),requirement,requirement))}))}))}))}(uniqueBy([].concat(orderedModifiers,state.options.modifiers),(function(_ref3){return _ref3.name}))),"auto"===getBasePlacement(state.options.placement))orderedModifiers.find((function(_ref4){return"flip"===_ref4.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "));var _getComputedStyle=getComputedStyle$1(popper);[_getComputedStyle.marginTop,_getComputedStyle.marginRight,_getComputedStyle.marginBottom,_getComputedStyle.marginLeft].some((function(margin){return parseFloat(margin)}))&&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 state.orderedModifiers=orderedModifiers.filter((function(m){return m.enabled})),state.orderedModifiers.forEach((function(_ref5){var name=_ref5.name,_ref5$options=_ref5.options,options=void 0===_ref5$options?{}:_ref5$options,effect=_ref5.effect;if("function"==typeof effect){var cleanupFn=effect({state,name,instance,options});effectCleanupFns.push(cleanupFn||function(){})}})),instance.update()},forceUpdate:function(){if(!isDestroyed){var _state$elements=state.elements,reference=_state$elements.reference,popper=_state$elements.popper;if(areValidElements(reference,popper)){state.rects={reference:getCompositeRect(reference,getOffsetParent(popper),"fixed"===state.options.strategy),popper:getLayoutRect(popper)},state.reset=!1,state.placement=state.options.placement,state.orderedModifiers.forEach((function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data)}));for(var __debug_loops__=0,index=0;index<state.orderedModifiers.length;index++){if("production"!==process.env.NODE_ENV&&(__debug_loops__+=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!==state.reset){var _state$orderedModifie=state.orderedModifiers[index],fn=_state$orderedModifie.fn,_state$orderedModifie2=_state$orderedModifie.options,_options=void 0===_state$orderedModifie2?{}:_state$orderedModifie2,name=_state$orderedModifie.name;"function"==typeof fn&&(state=fn({state,options:_options,name,instance})||state)}else state.reset=!1,index=-1}}else"production"!==process.env.NODE_ENV&&console.error(INVALID_ELEMENT_ERROR)}},update:debounce((function(){return new Promise((function(resolve){instance.forceUpdate(),resolve(state)}))})),destroy:function(){cleanupModifierEffects(),isDestroyed=!0}};if(!areValidElements(reference,popper))return"production"!==process.env.NODE_ENV&&console.error(INVALID_ELEMENT_ERROR),instance;function cleanupModifierEffects(){effectCleanupFns.forEach((function(fn){return fn()})),effectCleanupFns=[]}return instance.setOptions(options).then((function(state){!isDestroyed&&options.onFirstUpdate&&options.onFirstUpdate(state)})),instance}}var passive={passive:!0};function getVariation(placement){return placement.split("-")[1]}function getMainAxisFromPlacement(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y"}function computeOffsets(_ref){var offsets,reference=_ref.reference,element=_ref.element,placement=_ref.placement,basePlacement=placement?getBasePlacement(placement):null,variation=placement?getVariation(placement):null,commonX=reference.x+reference.width/2-element.width/2,commonY=reference.y+reference.height/2-element.height/2;switch(basePlacement){case top:offsets={x:commonX,y:reference.y-element.height};break;case bottom:offsets={x:commonX,y:reference.y+reference.height};break;case right:offsets={x:reference.x+reference.width,y:commonY};break;case left:offsets={x:reference.x-element.width,y:commonY};break;default:offsets={x:reference.x,y:reference.y}}var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(null!=mainAxis){var len="y"===mainAxis?"height":"width";switch(variation){case"start":offsets[mainAxis]=Math.floor(offsets[mainAxis])-Math.floor(reference[len]/2-element[len]/2);break;case"end":offsets[mainAxis]=Math.floor(offsets[mainAxis])+Math.ceil(reference[len]/2-element[len]/2)}}return offsets}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(_ref2){var _Object$assign2,popper=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,_roundOffsets=function(_ref){var x=_ref.x,y=_ref.y,dpr=window.devicePixelRatio||1;return{x:Math.round(x*dpr)/dpr||0,y:Math.round(y*dpr)/dpr||0}}(offsets),x=_roundOffsets.x,y=_roundOffsets.y,hasX=offsets.hasOwnProperty("x"),hasY=offsets.hasOwnProperty("y"),sideX=left,sideY=top;if(adaptive){var offsetParent=getOffsetParent(popper);offsetParent===getWindow(popper)&&(offsetParent=getDocumentElement(popper)),placement===top&&(sideY=bottom,y-=offsetParent.clientHeight-popperRect.height,y*=gpuAcceleration?1:-1),placement===left&&(sideX=right,x-=offsetParent.clientWidth-popperRect.width,x*=gpuAcceleration?1:-1)}var _Object$assign,commonStyles=Object.assign({position},adaptive&&unsetSides);return gpuAcceleration?Object.assign({},commonStyles,((_Object$assign={})[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(window.devicePixelRatio||1)<2?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign)):Object.assign({},commonStyles,((_Object$assign2={})[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2))}var hash={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,(function(matched){return hash[matched]}))}var hash$1={start:"end",end:"start"};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,(function(matched){return hash$1[matched]}))}function toNumber(cssValue){return parseFloat(cssValue)||0}function getDecorations(element){var win=getWindow(element),borders=function(element){var computedStyle=isHTMLElement(element)?getComputedStyle$1(element):{};return{top:toNumber(computedStyle.borderTopWidth),right:toNumber(computedStyle.borderRightWidth),bottom:toNumber(computedStyle.borderBottomWidth),left:toNumber(computedStyle.borderLeftWidth)}}(element),isHTML="html"===getNodeName(element),winScrollBarX=getWindowScrollBarX(element),x=element.clientWidth+borders.right,y=element.clientHeight+borders.bottom;return isHTML&&win.innerHeight-element.clientHeight>50&&(y=win.innerHeight-borders.bottom),{top:isHTML?0:element.clientTop,right:element.clientLeft>borders.left?borders.right:isHTML?win.innerWidth-x-winScrollBarX:element.offsetWidth-x,bottom:isHTML?win.innerHeight-y:element.offsetHeight-y,left:isHTML?winScrollBarX:element.clientLeft}}function contains(parent,child){var isShadow=Boolean(child.getRootNode&&child.getRootNode().host);if(parent.contains(child))return!0;if(isShadow){var next=child;do{if(next&&parent.isSameNode(next))return!0;next=next.parentNode||next.host}while(next)}return!1}function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function getClientRectFromMixedType(element,clippingParent){return"viewport"===clippingParent?rectToClientRect(function(element){var win=getWindow(element);return{width:win.innerWidth,height:win.innerHeight,x:0,y:0}}(element)):isHTMLElement(clippingParent)?getBoundingClientRect(clippingParent):rectToClientRect(function(element){var win=getWindow(element),winScroll=getWindowScroll(element),documentRect=getCompositeRect(getDocumentElement(element),win);return documentRect.height=Math.max(documentRect.height,win.innerHeight),documentRect.width=Math.max(documentRect.width,win.innerWidth),documentRect.x=-winScroll.scrollLeft,documentRect.y=-winScroll.scrollTop,documentRect}(getDocumentElement(element)))}function getClippingRect(element,boundary,rootBoundary){var mainClippingParents="clippingParents"===boundary?function(element){var clippingParents=listScrollParents(element),clipperElement=["absolute","fixed"].indexOf(getComputedStyle$1(element).position)>=0&&isHTMLElement(element)?getOffsetParent(element):element;return isElement(clipperElement)?clippingParents.filter((function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)})):[]}(element):[].concat(boundary),clippingParents=[].concat(mainClippingParents,[rootBoundary]),firstClippingParent=clippingParents[0],clippingRect=clippingParents.reduce((function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent),decorations=getDecorations(isHTMLElement(clippingParent)?clippingParent:getDocumentElement(element));return accRect.top=Math.max(rect.top+decorations.top,accRect.top),accRect.right=Math.min(rect.right-decorations.right,accRect.right),accRect.bottom=Math.min(rect.bottom-decorations.bottom,accRect.bottom),accRect.left=Math.max(rect.left+decorations.left,accRect.left),accRect}),getClientRectFromMixedType(element,firstClippingParent));return clippingRect.width=clippingRect.right-clippingRect.left,clippingRect.height=clippingRect.bottom-clippingRect.top,clippingRect.x=clippingRect.left,clippingRect.y=clippingRect.top,clippingRect}function mergePaddingObject(paddingObject){return Object.assign({},{top:0,right:0,bottom:0,left:0},{},paddingObject)}function expandToHashMap(value,keys){return keys.reduce((function(hashMap,key){return hashMap[key]=value,hashMap}),{})}function detectOverflow(state,options){void 0===options&&(options={});var _options=options,_options$placement=_options.placement,placement=void 0===_options$placement?state.placement:_options$placement,_options$boundary=_options.boundary,boundary=void 0===_options$boundary?"clippingParents":_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=void 0===_options$rootBoundary?"viewport":_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=void 0===_options$elementConte?"popper":_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=void 0!==_options$altBoundary&&_options$altBoundary,_options$padding=_options.padding,padding=void 0===_options$padding?0:_options$padding,paddingObject=mergePaddingObject("number"!=typeof padding?padding:expandToHashMap(padding,basePlacements)),altContext="popper"===elementContext?"reference":"popper",referenceElement=state.elements.reference,popperRect=state.rects.popper,element=state.elements[altBoundary?altContext:elementContext],clippingClientRect=getClippingRect(isElement(element)?element:getDocumentElement(state.elements.popper),boundary,rootBoundary),referenceClientRect=getBoundingClientRect(referenceElement),popperOffsets=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:"absolute",placement}),popperClientRect=rectToClientRect(Object.assign({},popperRect,{},popperOffsets)),elementClientRect="popper"===elementContext?popperClientRect:referenceClientRect,overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right},offsetData=state.modifiersData.offset;if("popper"===elementContext&&offsetData){var offset=offsetData[placement];Object.keys(overflowOffsets).forEach((function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1,axis=[top,bottom].indexOf(key)>=0?"y":"x";overflowOffsets[key]+=offset[axis]*multiply}))}return overflowOffsets}function within(min,value,max){return Math.max(min,Math.min(value,max))}function getSideOffsets(overflow,rect,preventedOffsets){return void 0===preventedOffsets&&(preventedOffsets={x:0,y:0}),{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x}}function isAnySideFullyClipped(overflow){return[top,right,bottom,left].some((function(side){return overflow[side]>=0}))}var createPopper=popperGenerator({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(_ref){var state=_ref.state,instance=_ref.instance,options=_ref.options,_options$scroll=options.scroll,scroll=void 0===_options$scroll||_options$scroll,_options$resize=options.resize,resize=void 0===_options$resize||_options$resize,window=getWindow(state.elements.popper),scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);return scroll&&scrollParents.forEach((function(scrollParent){scrollParent.addEventListener("scroll",instance.update,passive)})),resize&&window.addEventListener("resize",instance.update,passive),function(){scroll&&scrollParents.forEach((function(scrollParent){scrollParent.removeEventListener("scroll",instance.update,passive)})),resize&&window.removeEventListener("resize",instance.update,passive)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(_ref){var state=_ref.state,name=_ref.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,strategy:"absolute",placement:state.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(_ref3){var state=_ref3.state,options=_ref3.options,_options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=void 0===_options$gpuAccelerat||_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=void 0===_options$adaptive||_options$adaptive;"production"!==process.env.NODE_ENV&&adaptive&&parseFloat(getComputedStyle$1(state.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 commonStyles={placement:getBasePlacement(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration};state.styles.popper=Object.assign({},state.styles.popper,{},mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive}))),null!=state.modifiersData.arrow&&(state.styles.arrow=Object.assign({},state.styles.arrow,{},mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:"absolute",adaptive:!1})))),state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-placement":state.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(_ref){var state=_ref.state;Object.keys(state.elements).forEach((function(name){var style=state.styles[name]||{},attributes=state.attributes[name]||{},element=state.elements[name];isHTMLElement(element)&&getNodeName(element)&&(Object.assign(element.style,style),Object.keys(attributes).forEach((function(name){var value=attributes[name];!1===value?element.removeAttribute(name):element.setAttribute(name,!0===value?"":value)})))}))},effect:function(_ref2){var state=_ref2.state,initialStyles={position:"absolute",left:"0",top:"0",margin:"0"};return Object.assign(state.elements.popper.style,initialStyles),function(){Object.keys(state.elements).forEach((function(name){var element=state.elements[name],styleProperties=Object.keys(state.styles.hasOwnProperty(name)?Object.assign({},state.styles[name]):initialStyles),attributes=state.attributes[name]||{},style=styleProperties.reduce((function(style,property){var _Object$assign;return Object.assign({},style,((_Object$assign={})[String(property)]="",_Object$assign))}),{});isHTMLElement(element)&&getNodeName(element)&&(Object.assign(element.style,style),Object.keys(attributes).forEach((function(attribute){return element.removeAttribute(attribute)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name,_options$offset=options.offset,offset=void 0===_options$offset?[0,0]:_options$offset,data=placements.reduce((function(acc,placement){return acc[placement]=function(placement,rects,offset){var basePlacement=getBasePlacement(placement),invertDistance=[left,top].indexOf(basePlacement)>=0?-1:1,_ref="function"==typeof offset?offset(Object.assign({},rects,{placement})):offset,skidding=_ref[0],distance=_ref[1];return skidding=skidding||0,distance=(distance||0)*invertDistance,[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance}}(placement,state.rects,offset),acc}),{}),_data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;state.modifiersData.popperOffsets.x+=x,state.modifiersData.popperOffsets.y+=y,state.modifiersData[name]=data}},{name:"flip",enabled:!0,phase:"main",fn:function(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(!state.modifiersData[name]._skip){for(var specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,_options$flipVariatio=options.flipVariations,flipVariations=void 0===_options$flipVariatio||_options$flipVariatio,preferredPlacement=state.options.placement,basePlacement=getBasePlacement(preferredPlacement),fallbackPlacements=specifiedFallbackPlacements||(basePlacement===preferredPlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:function(placement){if("auto"===getBasePlacement(placement))return[];var oppositePlacement=getOppositePlacement(placement);return[getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)]}(preferredPlacement)),placements=uniqueBy([preferredPlacement].concat(fallbackPlacements).reduce((function(acc,placement){return"auto"===getBasePlacement(placement)?acc.concat(function(state,options){void 0===options&&(options={});var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,variation=getVariation(placement),overflows=(variation?flipVariations?variationPlacements:variationPlacements.filter((function(placement){return getVariation(placement)===variation})):basePlacements).reduce((function(acc,placement){return acc[placement]=detectOverflow(state,{placement,boundary,rootBoundary,padding})[getBasePlacement(placement)],acc}),{});return Object.keys(overflows).sort((function(a,b){return overflows[a]-overflows[b]}))}(state,{placement,boundary,rootBoundary,padding,flipVariations})):acc.concat(placement)}),[]),(function(placement){return placement})),referenceRect=state.rects.reference,popperRect=state.rects.popper,checksMap=new Map,makeFallbackChecks=!0,firstFittingPlacement=placements[0],i=0;i<placements.length;i++){var placement=placements[i],_basePlacement=getBasePlacement(placement),isStartVariation="start"===getVariation(placement),isVertical=[top,bottom].indexOf(_basePlacement)>=0,len=isVertical?"width":"height",overflow=detectOverflow(state,{placement,boundary,rootBoundary,padding}),mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:top;referenceRect[len]>popperRect[len]&&(mainVariationSide=getOppositePlacement(mainVariationSide));var altVariationSide=getOppositePlacement(mainVariationSide),checks=[overflow[_basePlacement]<=0,overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0];if(checks.every((function(check){return check}))){firstFittingPlacement=placement,makeFallbackChecks=!1;break}checksMap.set(placement,checks)}if(makeFallbackChecks)for(var _loop=function(_i){var fittingPlacement=placements.find((function(placement){var checks=checksMap.get(placement);if(checks)return checks.slice(0,_i).every((function(check){return check}))}));if(fittingPlacement)return firstFittingPlacement=fittingPlacement,"break"},_i=flipVariations?3:1;_i>0;_i--){if("break"===_loop(_i))break}state.placement!==firstFittingPlacement&&(state.modifiersData[name]._skip=!0,state.placement=firstFittingPlacement,state.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(_ref){var state=_ref.state,options=_ref.options,name=_ref.name,_options$mainAxis=options.mainAxis,checkMainAxis=void 0===_options$mainAxis||_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=void 0!==_options$altAxis&&_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,padding=options.padding,_options$tether=options.tether,tether=void 0===_options$tether||_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=void 0===_options$tetherOffset?0:_options$tetherOffset,overflow=detectOverflow(state,{boundary,rootBoundary,padding}),basePlacement=getBasePlacement(state.placement),variation=getVariation(state.placement),isBasePlacement=!variation,mainAxis=getMainAxisFromPlacement(basePlacement),altAxis="x"===mainAxis?"y":"x",popperOffsets=state.modifiersData.popperOffsets,referenceRect=state.rects.reference,popperRect=state.rects.popper,tetherOffsetValue="function"==typeof tetherOffset?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset,data={x:0,y:0};if(checkMainAxis){var mainSide="y"===mainAxis?top:left,altSide="y"===mainAxis?bottom:right,len="y"===mainAxis?"height":"width",offset=popperOffsets[mainAxis],min=popperOffsets[mainAxis]+overflow[mainSide],max=popperOffsets[mainAxis]-overflow[altSide],additive=tether?-popperRect[len]/2:0,minLen="start"===variation?referenceRect[len]:popperRect[len],maxLen="start"===variation?-popperRect[len]:-referenceRect[len],arrowElement=state.elements.arrow,arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0},arrowPaddingObject=state.modifiersData["arrow#persistent"]?state.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},arrowPaddingMin=arrowPaddingObject[mainSide],arrowPaddingMax=arrowPaddingObject[altSide],arrowLen=within(0,Math.abs(referenceRect[len]-arrowRect[len]),arrowRect[len]),minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-tetherOffsetValue:minLen-arrowLen-arrowPaddingMin-tetherOffsetValue,maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+tetherOffsetValue:maxLen+arrowLen+arrowPaddingMax+tetherOffsetValue,offsetModifierValue=state.modifiersData.offset?state.modifiersData.offset[state.placement][mainAxis]:0,tetherMin=state.modifiersData.popperOffsets[mainAxis]+minOffset-offsetModifierValue,tetherMax=state.modifiersData.popperOffsets[mainAxis]+maxOffset-offsetModifierValue,preventedOffset=within(tether?Math.min(min,tetherMin):min,offset,tether?Math.max(max,tetherMax):max);state.modifiersData.popperOffsets[mainAxis]=preventedOffset,data[mainAxis]=preventedOffset-offset}if(checkAltAxis){var _mainSide="x"===mainAxis?top:left,_altSide="x"===mainAxis?bottom:right,_offset=popperOffsets[altAxis],_preventedOffset=within(_offset+overflow[_mainSide],_offset,_offset-overflow[_altSide]);state.modifiersData.popperOffsets[altAxis]=_preventedOffset,data[altAxis]=_preventedOffset-_offset}state.modifiersData[name]=data},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,arrowElement=state.elements.arrow,popperOffsets=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),len=[left,right].indexOf(basePlacement)>=0?"height":"width";if(arrowElement){var paddingObject=state.modifiersData[name+"#persistent"].padding,arrowRect=getLayoutRect(arrowElement),minProp="y"===axis?top:left,maxProp="y"===axis?bottom:right,centerToReference=(state.rects.reference[len]+state.rects.reference[axis]-popperOffsets[axis]-state.rects.popper[len])/2-(popperOffsets[axis]-state.rects.reference[axis])/2,center=within(paddingObject[minProp],state.rects.popper[len]/2-arrowRect[len]/2+centerToReference,state.rects.popper[len]-arrowRect[len]-paddingObject[maxProp]),axisProp=axis;state.modifiersData[name]=((_state$modifiersData$={})[axisProp]=center,_state$modifiersData$)}},effect:function(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name,_options$element=options.element,arrowElement=void 0===_options$element?"[data-popper-arrow]":_options$element,_options$padding=options.padding,padding=void 0===_options$padding?0:_options$padding;("string"!=typeof arrowElement||(arrowElement=state.elements.popper.querySelector(arrowElement)))&&(contains(state.elements.popper,arrowElement)?(state.elements.arrow=arrowElement,state.modifiersData[name+"#persistent"]={padding:mergePaddingObject("number"!=typeof padding?padding:expandToHashMap(padding,basePlacements))}):"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(_ref){var state=_ref.state,name=_ref.name,referenceRect=state.rects.reference,popperRect=state.rects.popper,preventedOffsets=state.modifiersData.preventOverflow,referenceOverflow=detectOverflow(state,{elementContext:"reference"}),popperAltOverflow=detectOverflow(state,{altBoundary:!0}),referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect),popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets),isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets),hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets,popperEscapeOffsets,isReferenceHidden,hasPopperEscaped},state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-reference-hidden":isReferenceHidden,"data-popper-escaped":hasPopperEscaped})}}]});const containsTargets=curry((function(targetTags=[],$event){let contains=!1,eventTarget=$event.target;for(;!contains&&eventTarget;)el=eventTarget,targetTags.includes(el.tagName)&&(contains=!0),eventTarget=eventTarget.parentElement;var el;return contains})),ACTION_TAGS=["A","BUTTON"];const __vue_component__$a=normalizeComponent({render:function(){var _h=this.$createElement,_c=this._self._c||_h;return _c("Transition",{attrs:{name:"fade"},on:{beforeLeave:this.removeOutsideClick,afterEnter:this.setOutsideClick}},[_c(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 listeners={};return this.closeOnAction&&(listeners.click=this._onClickAction),listeners}},watch:{visible(isVisible){isVisible&&!this.popper?this._createPopper():isVisible&&this.popper.update(),this.$emit("update:show",isVisible)},show(value){this.visible=value}},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=createPopper(this.targetEl,this.$el,this._popperOptions))},_destroyPopper(){this.targetEl=null,this.popper&&this.popper.destroy()},_onClickOutside($event){this.$el.contains($event.target)||(this.visible=!1)},_onClickAction($event){containsTargets(ACTION_TAGS,$event)&&(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 __vue_component__$b=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("component",_vm._g(_vm._b({staticClass:"aw-dropdown-button",class:["aw-dropdown-button_"+_vm.color,{"is-active":_vm.active}]},"component",_vm.componentProps,!1),_vm.$listeners),[_c("span",{attrs:{tabindex:"-1"}},[_vm._t("default",[_vm._v("\n "+_vm._s(_vm.text)+"\n ")])],2)])},staticRenderFns:[]},void 0,{name:"AwDropdownButton",extends:__vue_component__$4,props:{color:{type:String,default:"default",validator:color=>["aw-dropdown-button_default","aw-dropdown-button_success","aw-dropdown-button_warning","aw-dropdown-button_error"].includes(`aw-dropdown-button_${color}`)},active:Boolean}},void 0,!1,void 0,!1,void 0,void 0,void 0);var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(fn,module){return fn(module={exports:{}},module.exports),module.exports}var dayjs_min=createCommonjsModule((function(module,exports){module.exports=function(){var t="millisecond",n="second",e="minute",r="hour",i="day",s="week",u="month",o="quarter",a="year",h=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,f=/\[([^\]]+)]|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,c=function(t,n,e){var r=String(t);return!r||r.length>=n?t:""+Array(n+1-r.length).join(e)+t},d={s:c,z:function(t){var n=-t.utcOffset(),e=Math.abs(n),r=Math.floor(e/60),i=e%60;return(n<=0?"+":"-")+c(r,2,"0")+":"+c(i,2,"0")},m:function(t,n){var e=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(e,u),i=n-r<0,s=t.clone().add(e+(i?-1:1),u);return Number(-(e+(n-r)/(i?r-s:s-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(h){return{M:u,y:a,w:s,d:i,h:r,m:e,s:n,ms:t,Q:o}[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$={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("_")},l="en",m={};m[l]=$;var y=function(t){return t instanceof v},M=function(t,n,e){var r;if(!t)return l;if("string"==typeof t)m[t]&&(r=t),n&&(m[t]=n,r=t);else{var i=t.name;m[i]=t,r=i}return e||(l=r),r},g=function(t,n,e){if(y(t))return t.clone();var r=n?"string"==typeof n?{format:n,pl:e}:n:{};return r.date=t,new v(r)},D=d;D.l=M,D.i=y,D.w=function(t,n){return g(t,{locale:n.$L,utc:n.$u,$offset:n.$offset})};var v=function(){function c(t){this.$L=this.$L||M(t.locale,null,!0),this.parse(t)}var d=c.prototype;return d.parse=function(t){this.$d=function(t){var n=t.date,e=t.utc;if(null===n)return new Date(NaN);if(D.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var r=n.match(h);if(r)return e?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(n)}(t),this.init()},d.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},d.$utils=function(){return D},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(t,n){var e=g(t);return this.startOf(n)<=e&&e<=this.endOf(n)},d.isAfter=function(t,n){return g(t)<this.startOf(n)},d.isBefore=function(t,n){return this.endOf(n)<g(t)},d.$g=function(t,n,e){return D.u(t)?this[n]:this.set(e,t)},d.year=function(t){return this.$g(t,"$y",a)},d.month=function(t){return this.$g(t,"$M",u)},d.day=function(t){return this.$g(t,"$W",i)},d.date=function(t){return this.$g(t,"$D","date")},d.hour=function(t){return this.$g(t,"$H",r)},d.minute=function(t){return this.$g(t,"$m",e)},d.second=function(t){return this.$g(t,"$s",n)},d.millisecond=function(n){return this.$g(n,"$ms",t)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(t,o){var h=this,f=!!D.u(o)||o,c=D.p(t),d=function(t,n){var e=D.w(h.$u?Date.UTC(h.$y,n,t):new Date(h.$y,n,t),h);return f?e:e.endOf(i)},$=function(t,n){return D.w(h.toDate()[t].apply(h.toDate(),(f?[0,0,0,0]:[23,59,59,999]).slice(n)),h)},l=this.$W,m=this.$M,y=this.$D,M="set"+(this.$u?"UTC":"");switch(c){case a:return f?d(1,0):d(31,11);case u:return f?d(1,m):d(0,m+1);case s:var g=this.$locale().weekStart||0,v=(l<g?l+7:l)-g;return d(f?y-v:y+(6-v),m);case i:case"date":return $(M+"Hours",0);case r:return $(M+"Minutes",1);case e:return $(M+"Seconds",2);case n:return $(M+"Milliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(s,o){var h,f=D.p(s),c="set"+(this.$u?"UTC":""),d=(h={},h[i]=c+"Date",h.date=c+"Date",h[u]=c+"Month",h[a]=c+"FullYear",h[r]=c+"Hours",h[e]=c+"Minutes",h[n]=c+"Seconds",h[t]=c+"Milliseconds",h)[f],$=f===i?this.$D+(o-this.$W):o;if(f===u||f===a){var l=this.clone().set("date",1);l.$d[d]($),l.init(),this.$d=l.set("date",Math.min(this.$D,l.daysInMonth())).toDate()}else d&&this.$d[d]($);return this.init(),this},d.set=function(t,n){return this.clone().$set(t,n)},d.get=function(t){return this[D.p(t)]()},d.add=function(t,o){var h,f=this;t=Number(t);var c=D.p(o),d=function(n){var e=g(f);return D.w(e.date(e.date()+Math.round(n*t)),f)};if(c===u)return this.set(u,this.$M+t);if(c===a)return this.set(a,this.$y+t);if(c===i)return d(1);if(c===s)return d(7);var $=(h={},h[e]=6e4,h[r]=36e5,h[n]=1e3,h)[c]||1,l=this.$d.getTime()+t*$;return D.w(l,this)},d.subtract=function(t,n){return this.add(-1*t,n)},d.format=function(t){var n=this;if(!this.isValid())return"Invalid Date";var e=t||"YYYY-MM-DDTHH:mm:ssZ",r=D.z(this),i=this.$locale(),s=this.$H,u=this.$m,o=this.$M,a=i.weekdays,h=i.months,c=function(t,r,i,s){return t&&(t[r]||t(n,e))||i[r].substr(0,s)},d=function(t){return D.s(s%12||12,t,"0")},$=i.meridiem||function(t,n,e){var r=t<12?"AM":"PM";return e?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:D.s(o+1,2,"0"),MMM:c(i.monthsShort,o,h,3),MMMM:h[o]||h(this,e),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:c(i.weekdaysMin,this.$W,a,2),ddd:c(i.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(s),HH:D.s(s,2,"0"),h:d(1),hh:d(2),a:$(s,u,!0),A:$(s,u,!1),m:String(u),mm:D.s(u,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:r};return e.replace(f,(function(t,n){return n||l[t]||r.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(t,h,f){var c,d=D.p(h),$=g(t),l=6e4*($.utcOffset()-this.utcOffset()),m=this-$,y=D.m(this,$);return y=(c={},c[a]=y/12,c[u]=y,c[o]=y/3,c[s]=(m-l)/6048e5,c[i]=(m-l)/864e5,c[r]=m/36e5,c[e]=m/6e4,c[n]=m/1e3,c)[d]||m,f?y:D.a(y)},d.daysInMonth=function(){return this.endOf(u).$D},d.$locale=function(){return m[this.$L]},d.locale=function(t,n){if(!t)return this.$L;var e=this.clone(),r=M(t,n,!0);return r&&(e.$L=r),e},d.clone=function(){return D.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},c}();return g.prototype=v.prototype,g.extend=function(t,n){return t(n,v,g),g},g.locale=M,g.isDayjs=y,g.unix=function(t){return g(1e3*t)},g.en=m[l],g.Ls=m,g}()})),customParseFormat=createCommonjsModule((function(module,exports){var t,n,e,r,o,s,i,a,u;module.exports=(n=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d*[^\s\d-:/.()]+/,i=[/[+-]\d\d:?\d\d/,function(t){var n,e;(this.zone||(this.zone={})).offset=0==(e=60*(n=t.match(/([+-]|\d\d)/g))[1]+ +n[2])?0:"+"===n[0]?-e:e}],a={A:[/[AP]M/,function(t){this.afternoon="PM"===t}],a:[/[ap]m/,function(t){this.afternoon="pm"===t}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[e=/\d\d/,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[r=/\d\d?/,(s=function(t){return function(n){this[t]=+n}})("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[e,s("day")],Do:[o,function(n){var e=t.ordinal,r=n.match(/\d+/);if(this.day=r[0],e)for(var o=1;o<=31;o+=1)e(o).replace(/\[|\]/g,"")===n&&(this.day=o)}],M:[r,s("month")],MM:[e,s("month")],MMM:[o,function(n){var e=t,r=e.months,o=e.monthsShort,s=o?o.findIndex((function(t){return t===n})):r.findIndex((function(t){return t.substr(0,3)===n}));if(s<0)throw new Error;this.month=s+1}],MMMM:[o,function(n){var e=t.months.indexOf(n);if(e<0)throw new Error;this.month=e+1}],Y:[/[+-]?\d+/,s("year")],YY:[e,function(t){t=+t,this.year=t+(t>68?1900:2e3)}],YYYY:[/\d{4}/,s("year")],Z:i,ZZ:i},u=function(t,e,r){try{var o=function(t){for(var e=t.match(n),r=e.length,o=0;o<r;o+=1){var s=e[o],i=a[s],u=i&&i[0],f=i&&i[1];e[o]=f?{regex:u,parser:f}:s.replace(/^\[|\]$/g,"")}return function(t){for(var n={},o=0,s=0;o<r;o+=1){var i=e[o];if("string"==typeof i)s+=i.length;else{var a=i.regex,u=i.parser,f=t.substr(s),h=a.exec(f)[0];u.call(n,h),t=t.replace(h,"")}}return function(t){var n=t.afternoon;if(void 0!==n){var e=t.hours;n?e<12&&(t.hours+=12):12===e&&(t.hours=0),delete t.afternoon}}(n),n}}(e)(t),s=o.year,i=o.month,u=o.day,f=o.hours,h=o.minutes,d=o.seconds,c=o.milliseconds,m=o.zone;if(m)return new Date(Date.UTC(s,i-1,u,f||0,h||0,d||0,c||0)+60*m.offset*1e3);var l=new Date,v=u||(s||i?1:l.getDate()),p=s||l.getFullYear(),M=i>0?i-1:l.getMonth(),y=f||0,D=h||0,Y=d||0,g=c||0;return r?new Date(Date.UTC(p,M,v,y,D,Y,g)):new Date(p,M,v,y,D,Y,g)}catch(t){return new Date("")}},function(n,e,r){var o=e.prototype,s=o.parse;o.parse=function(n){var e=n.date,o=n.format,i=n.pl,a=n.utc;this.$u=a,o?(t=i?r.Ls[i]:this.$locale(),this.$d=u(e,o,a),this.init(n),i&&(this.$L=i)):s.call(this,n)}})}));dayjs_min.extend(customParseFormat);function getDateFromEvent($event){let button=$event.target;if(button.hasAttribute("data-time")||(button=button.closest("[data-time]")),!button)return!1;const timestamp=parseInt(button.getAttribute("data-time"));return new Date(timestamp)}var calendarMixin={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:F},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 start=this._toDayjs(this.range?pathOr(null,"start",this.value):this.value);return start.isValid()&&start}},_endDayjs(){if(this.hoverValue)return this.hoverValue.isAfter(this.tempValue)?this.hoverValue:this.tempValue;{const end=this._toDayjs(pathOr(null,"end",this.value));return end.isValid()&&end}},_minDayjs(){const minDayjs=this._toDayjs(this.min);return minDayjs.isValid()&&minDayjs},_maxDayjs(){const maxDayjs=this._toDayjs(this.max);return maxDayjs.isValid()&&maxDayjs},_isDisabled(){const fns=[this.disabledDays];return this._minDayjs&&fns.push(date=>this._minDayjs.isAfter(this._toDayjs(date),"days")),this._maxDayjs&&fns.push(date=>this._maxDayjs.isBefore(this._toDayjs(date),"days")),anyPass(fns)},_isActive(){if(this.range){const verifiers=[];return this._startDayjs&&verifiers.push(date=>this._startDayjs.isSame(this._toDayjs(date),"day")),this._endDayjs&&verifiers.push(date=>this._endDayjs.isSame(this._toDayjs(date),"day")),anyPass(verifiers)}return date=>{const _date=this._toDayjs(date);return this._isMultiple?this._valueDayjs.some(val=>val.isSame(_date)):this._valueDayjs.isSame(_date,"day")}},_isRangeStart(){return date=>this._startDayjs&&this._startDayjs.isSame(this._toDayjs(date),"day")},_isRangeEnd(){return date=>this._endDayjs&&this._endDayjs.isSame(this._toDayjs(date),"day")},_inRange(){return date=>{if(this._startDayjs&&this._endDayjs){const dayjs=this._toDayjs(date);return this._startDayjs.isBefore(dayjs,"day")&&this._endDayjs.isAfter(dayjs,"day")}return!1}},_getDayClass(){return this.range?date=>({"aw-calendar__day_active":this._isActive(date),"aw-date__range":this._inRange(date),"aw-date__range-start":this._isRangeStart(date),"aw-date__range-end":this._isRangeEnd(date)}):date=>({"aw-calendar__day_active":this._isActive(date)})},_stringFormat(){return this.parseFormat||this.outputFormat},_fromDayjs(){return"toDayjs"===this.outputFormat?_dayjs=>_dayjs:startsWith("to",this.outputFormat)?_dayjs=>_dayjs[this.outputFormat]():_dayjs=>_dayjs.format(this.outputFormat)}},created(){const date=this._toDayjs(this.range?pathOr(null,"start",this.value):Array.isArray(this.value)?this.value[0]:this.value);date.isValid()?this.viewDate=date:this.viewDate=this._toDayjs(new Date)},beforeDestroy(){this._toggleHoverListener(!1)},methods:{shiftMonth(offset=0){const method=offset>0?"add":"subtract";this.viewDate=this.viewDate[method](Math.abs(offset),"month")},_toggleHoverListener(on=!1){this.$el[on?"addEventListener":"removeEventListener"]("mouseover",this.onHover)},_toDayjs(input){return this._stringFormat&&"string"==typeof input?dayjs_min(input,this._stringFormat):dayjs_min(input)},_getDateFromEvent:getDateFromEvent,onDateClick($event){const date=this._getDateFromEvent($event);if(!date||this._isDisabled(date))return;const dayjs=this._toDayjs(date);let value;if(this.range){if(!this.tempValue)return this.$emit("input",null),this.tempValue=dayjs,this.hoverValue=null,void this._toggleHoverListener(!0);{if(dayjs.isSame(this.tempValue,"day"))return;const start=this._fromDayjs(this._startDayjs),end=this._fromDayjs(this._endDayjs);this._toggleHoverListener(!1),this.tempValue=null,this.hoverValue=null,value={start,end}}}else value=this._getNonRangeValue(dayjs);this.$emit("input",value)},_getNonRangeValue(dayjs){if(this._isMultiple){const index=this.valueDayjs.findIndex(val=>val.isSame(dayjs));return-1===index?this.valueDayjs.concat(dayjs).map(this._fromDayjs):this.valueDayjs.filter((val,i)=>i!==index).map(this._fromDayjs)}return this._fromDayjs(dayjs)},onHover($event){const date=this._getDateFromEvent($event),dayjs=this._toDayjs(date);dayjs.isValid()&&(this.hoverValue=dayjs)}}};const __vue_component__$c=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"aw-calendar__nav"},[_c("AwButton",{directives:[{name:"show",rawName:"v-show",value:_vm.$listeners["click:prev"],expression:"$listeners['click:prev']"}],attrs:{theme:"icon",icon:"chevron-l",disabled:_vm.disabledPrev},on:{click:function($event){return $event.stopPropagation(),_vm.$emit("click:prev")}}}),_vm._v(" "),_c("div",{staticClass:"aw-calendar__nav-title",class:{"mr-12":!_vm.$listeners["click:next"],"ml-12":!_vm.$listeners["click:prev"]}},[_vm._v("\n "+_vm._s(_vm.months[_vm.month])+" "+_vm._s(_vm.year)+"\n ")]),_vm._v(" "),_c("AwButton",{directives:[{name:"show",rawName:"v-show",value:_vm.$listeners["click:next"],expression:"$listeners['click:next']"}],attrs:{theme:"icon",icon:"chevron-r",disabled:_vm.disabledNext},on:{click:function($event){return $event.stopPropagation(),_vm.$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 __vue_component__$d=normalizeComponent({},void 0,{name:"AwCalendarWeekdays",functional:!0,props:{firstDay:{type:Number,default:1},weekdayNames:{type:Array,required:!0}},render(h,{props}){const{firstDay,weekdayNames}=props;return weekdayNames.slice(firstDay).concat(weekdayNames.slice(0,firstDay)).map(name=>h("span",{key:name,staticClass:"aw-calendar__weekday"},name))}},void 0,void 0,void 0,!1,void 0,void 0,void 0);const __vue_component__$e=normalizeComponent({render:function(_h,_vm){var _c=_vm._c;return _c("button",{staticClass:"aw-calendar__day",class:[_vm.data.staticClass,_vm.data.class],attrs:{"data-time":_vm.props.timestamp,disabled:_vm.data.attrs.disabled||null,type:"button",tabindex:"-1"}},[_c("span",[_vm._v(" "+_vm._s(_vm.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 __vue_component__$f=normalizeComponent({},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(h,{props}){const{year,month,firstDay,dayDisabled,dayClass}=props;return function(year,month,firstDay){const result=[];let day=new Date(year,month);day.setDate(1-day.getDay()+firstDay),firstDay&&day.getDate()===firstDay+1&&day.setDate(firstDay-6);for(let i=0;i<42;++i){const date=new Date(day);result.push(date),day.setDate(day.getDate()+1)}return result}(year,month,firstDay).map(date=>{const timestamp=date.getTime();return h(__vue_component__$e,{key:timestamp,props:{timestamp,day:date.getDate()},class:[{"aw-calendar__day_outside":date.getMonth()!==month},dayClass(date)],attrs:{disabled:dayDisabled(date)}})})}},void 0,void 0,void 0,!1,void 0,void 0,void 0);const __vue_component__$g=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"aw-calendar",on:{click:_vm.onDateClick}},[_vm._t("header",[_c("AwCalendarNav",{attrs:{month:_vm.viewDate.month(),year:_vm.viewDate.year(),"disabled-prev":_vm.isDisabledPrev,"disabled-next":_vm.isDisabledNext},on:{"click:prev":function($event){return _vm.shiftMonth(-1)},"click:next":function($event){return _vm.shiftMonth(1)}}})],null,{viewDate:_vm.viewDate,isDisabledPrev:_vm.isDisabledPrev,isDisabledNext:_vm.isDisabledNext,shiftMonth:_vm.shiftMonth}),_vm._v(" "),_c("AwCalendarWeekdays",{attrs:{"first-day":_vm.firstDay,"weekday-names":_vm.$t("AwCalendar.weekdaysShort")}}),_vm._v(" "),_c("AwCalendarDays",{attrs:{"first-day":_vm.firstDay,month:_vm.viewDate.month(),year:_vm.viewDate.year(),"day-class":_vm._getDayClass,"day-disabled":_vm._isDisabled}}),_vm._v(" "),_vm._t("footer")],2)},staticRenderFns:[]},void 0,{name:"AwCalendar",mixins:[calendarMixin],components:{AwCalendarNav:__vue_component__$c,AwCalendarWeekdays:__vue_component__$d,AwCalendarDays:__vue_component__$f},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 __vue_component__$h=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"aw-calendar",on:{click:_vm.onClick}},[_c("AwCalendarWeekdays",{attrs:{"first-day":_vm.firstDay,"weekday-names":_vm.$t("AwCalendar.weekdaysShort")}}),_vm._v(" "),_c("AwCalendarDays",{attrs:{"first-day":_vm.firstDay,month:_vm.month,year:_vm.year,"day-class":_vm.dayClass,"day-disabled":_vm.dayDisabled}})],1)},staticRenderFns:[]},void 0,{name:"",components:{AwCalendarWeekdays:__vue_component__$d,AwCalendarDays:__vue_component__$f},props:__vue_component__$f.props,methods:{onClick($event){const date=getDateFromEvent($event);date&&this.$emit("click:date",date)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$i=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{class:"rounded overflow-hidden shadow-md "+_vm.backgroundCss},[_c("div",{staticClass:"px-6 py-4"},[""!=_vm.title?_c("div",{staticClass:"text-xl mb-2"},[""==_vm.link?_c("div",{staticClass:"font-bold"},[_vm._v("\n "+_vm._s(_vm.title)+"\n ")]):_c("div",[_c("AwLink",{staticClass:"font-bold",attrs:{href:_vm.link}},[_vm._v(_vm._s(_vm.title))])],1)]):_vm._e(),_vm._v(" "),""!=_vm.text?_c("p",{staticClass:"text-gray-700 text-base"},[_vm._v("\n "+_vm._s(_vm.text)+"\n ")]):_vm._e(),_vm._v(" "),_vm._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 loadjs_umd=createCommonjsModule((function(module,exports){module.exports=function(){var devnull=function(){},bundleIdCache={},bundleResultCache={},bundleCallbackQueue={};function publish(bundleId,pathsNotFound){if(bundleId){var q=bundleCallbackQueue[bundleId];if(bundleResultCache[bundleId]=pathsNotFound,q)for(;q.length;)q[0](bundleId,pathsNotFound),q.splice(0,1)}}function executeCallbacks(args,depsNotFound){args.call&&(args={success:args}),depsNotFound.length?(args.error||devnull)(depsNotFound):(args.success||devnull)(args)}function loadFile(path,callbackFn,args,numTries){var isLegacyIECss,e,doc=document,async=args.async,maxTries=(args.numRetries||0)+1,beforeCallbackFn=args.before||devnull,pathStripped=path.replace(/^(css|img)!/,"");numTries=numTries||0,/(^css!|\.css$)/.test(path)?((e=doc.createElement("link")).rel="stylesheet",e.href=pathStripped,(isLegacyIECss="hideFocus"in e)&&e.relList&&(isLegacyIECss=0,e.rel="preload",e.as="style")):/(^img!|\.(png|gif|jpg|svg)$)/.test(path)?(e=doc.createElement("img")).src=pathStripped:((e=doc.createElement("script")).src=path,e.async=void 0===async||async),e.onload=e.onerror=e.onbeforeload=function(ev){var result=ev.type[0];if(isLegacyIECss)try{e.sheet.cssText.length||(result="e")}catch(x){18!=x.code&&(result="e")}if("e"==result){if((numTries+=1)<maxTries)return loadFile(path,callbackFn,args,numTries)}else if("preload"==e.rel&&"style"==e.as)return e.rel="stylesheet";callbackFn(path,result,ev.defaultPrevented)},!1!==beforeCallbackFn(path,e)&&doc.head.appendChild(e)}function loadjs(paths,arg1,arg2){var bundleId,args;if(arg1&&arg1.trim&&(bundleId=arg1),args=(bundleId?arg2:arg1)||{},bundleId){if(bundleId in bundleIdCache)throw"LoadJS";bundleIdCache[bundleId]=!0}function loadFn(resolve,reject){!function(paths,callbackFn,args){var fn,i,numWaiting=(paths=paths.push?paths:[paths]).length,x=numWaiting,pathsNotFound=[];for(fn=function(path,result,defaultPrevented){if("e"==result&&pathsNotFound.push(path),"b"==result){if(!defaultPrevented)return;pathsNotFound.push(path)}--numWaiting||callbackFn(pathsNotFound)},i=0;i<x;i++)loadFile(paths[i],fn,args)}(paths,(function(pathsNotFound){executeCallbacks(args,pathsNotFound),resolve&&executeCallbacks({success:resolve,error:reject},pathsNotFound),publish(bundleId,pathsNotFound)}),args)}if(args.returnPromise)return new Promise(loadFn);loadFn()}return loadjs.ready=function(deps,args){return function(bundleIds,callbackFn){bundleIds=bundleIds.push?bundleIds:[bundleIds];var fn,bundleId,r,depsNotFound=[],i=bundleIds.length,numWaiting=i;for(fn=function(bundleId,pathsNotFound){pathsNotFound.length&&depsNotFound.push(bundleId),--numWaiting||callbackFn(depsNotFound)};i--;)bundleId=bundleIds[i],(r=bundleResultCache[bundleId])?fn(bundleId,r):(bundleCallbackQueue[bundleId]=bundleCallbackQueue[bundleId]||[]).push(fn)}(deps,(function(depsNotFound){executeCallbacks(args,depsNotFound)})),loadjs},loadjs.done=function(bundleId){publish(bundleId,[])},loadjs.reset=function(){bundleIdCache={},bundleResultCache={},bundleCallbackQueue={}},loadjs.isDefined=function(bundleId){return bundleId in bundleIdCache},loadjs}()}));const __vue_component__$j=normalizeComponent({render:function(){var _h=this.$createElement,_c=this._self._c||_h;return _c("div",{staticClass:"chart"},[_c("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(isShown){this.chart&&(this.chart[isShown?"update":"reset"](),this.chart.render())},data(newData,oldData){equals(newData,oldData)||(this.chart?(this.chart.data=newData,this.chart.update()):this.generateChart())},type(newType,oldType){newType!==oldType&&(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 loadjs_umd.isDefined("chart")?new Promise((resolve,reject)=>loadjs_umd.ready("chart",{success:resolve,error:reject})):loadjs_umd([this.libUrl],"chart",{returnPromise:!0})},isInited:()=>loadjs_umd.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 __vue_component__$k=normalizeComponent({render:function(_h,_vm){var _obj,_obj$1,_c=_vm._c;return _c("span",_vm._b({staticClass:"aw-chip",class:[_vm.data.staticClass,_vm.data.class],style:[_vm.data.staticStyle,_vm.data.style]},"span",_vm.data.attrs,!1),[_vm._t("left",[_c("span",{staticClass:"aw-chip__decor",class:(_obj={},_obj["text-"+_vm.props.color+" border-"+_vm.props.color]=_vm.props.color,_obj["border-text"]=!_vm.props.color&&!_vm.props.image,_obj["aw-chip__decor_image"]=_vm.props.image,_obj),style:{backgroundImage:_vm.props.image?"url("+_vm.props.image+")":null},attrs:{"aria-hidden":"true"}},[_vm.props.image?_vm._e():_c("span",{staticClass:"aw-chip__decor-circle",class:(_obj$1={},_obj$1["bg-"+_vm.props.color]=_vm.props.color,_obj$1["bgcolor-text"]=!_vm.props.icon&&!_vm.props.color,_obj$1["animation-pulse"]=_vm.props.loading,_obj$1)},[_vm.props.icon?_c("AwIcon",{staticClass:"aw-chip__decor-icon",class:{"aw-chip__decor-icon_color":_vm.props.color},attrs:{name:_vm.props.icon}}):_vm._e()],1)])],null,_vm.props),_vm._v(" "),_vm._t("center",[_vm.props.text||_vm.slots().default?_c("span",{staticClass:"aw-chip__text"},[_vm._t("default",[_vm._v("\n "+_vm._s(_vm.props.text)+"\n ")])],2):_vm._e()],null,_vm.props),_vm._v(" "),_vm._t("right",null,null,_vm.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 arrowFocusMixin={methods:{_arrowFocusItem(offset=0,$event){if(!this.isOpened)return;const buttons=Array.from(this.$el.querySelectorAll("[data-arrow-focus]")),active=document.activeElement,activeIndex=buttons.indexOf(active);let nextIndex;nextIndex=activeIndex<0?0:activeIndex+offset;const button=buttons[nextIndex];button&&($event&&($event.preventDefault(),$event.stopPropagation()),button.focus())}}};const __vue_component__$l=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("span",{staticClass:"inline-flex",on:{keydown:[function($event){return!$event.type.indexOf("key")&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])?null:_vm._arrowFocusItem(-1,$event)},function($event){return!$event.type.indexOf("key")&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])?null:_vm._arrowFocusItem(1,$event)}],focusout:_vm.onBlur}},[_c("button",{staticClass:"focus-outline",attrs:{"data-arrow-focus":""},on:{click:function($event){return $event.stopPropagation(),_vm.open($event)}}},[_vm._t("selected",[_c("AwChip",_vm._b({staticClass:"px-0",attrs:{loading:_vm.loading,tabindex:"-1"},scopedSlots:_vm._u([{key:"right",fn:function(){return[_vm.readonly?_vm._e():_c("AwIcon",{staticClass:"transition-200 flex-shrink-0 text-disabled",class:{"rotate-180":_vm.isOpened},attrs:{name:"triangle-d",size:"lg"}})]},proxy:!0}])},"AwChip",_vm.selected,!1))],null,_vm.selected)],2),_vm._v(" "),_c("AwDropdown",{staticClass:"block",attrs:{show:_vm.isOpened,options:{modifiers:[{name:"offset",options:{offset:[-14,0]}},{name:"computeStyles",options:{adaptive:!1}}]},tag:"span"},on:{"update:show":function($event){_vm.isOpened=$event}}},_vm._l(_vm.options,(function(ref,i){var id=ref.id,text=ref.text,props=function(obj,exclude){var target={};for(var k in obj)Object.prototype.hasOwnProperty.call(obj,k)&&-1===exclude.indexOf(k)&&(target[k]=obj[k]);return target}(ref,["id","text"]);return _c("AwDropdownButton",{key:id||"chip-"+i,attrs:{active:id===_vm.value,"data-arrow-focus":""},on:{click:function($event){return $event.stopPropagation(),_vm.select(id)}}},[_vm._t("option",[_c("AwChip",_vm._b({staticClass:"p-0",attrs:{text:_vm.noText?"":text}},"AwChip",props,!1))],null,Object.assign({},{id,text},props,{index:i,select:_vm.select}))],2)})),1)],1)},staticRenderFns:[]},void 0,{name:"AwChipSelect",mixins:[arrowFocusMixin],props:{value:{type:Number,required:!0},options:{type:Array,required:!0,validator:validateBySchema([{id:"number","color?":"string","text?":"string"}])},readonly:Boolean,noText:Boolean,loading:Boolean,disabled:Boolean},data:()=>({isOpened:!1}),computed:{selected(){const chip=this.options.find(({id})=>id===this.value);return this.noText?omit("text",chip):chip},isDisabled(){return this.readonly||this.disabled||this.loading}},watch:{isDisabled(disabled){disabled&&(this.isOpened=!1)}},methods:{open(){this.isDisabled||(this.isOpened=!this.isOpened)},onBlur(e={}){const target=e.relatedTarget;this.isOpened&&!this.$el.contains(target)&&(this.isOpened=!1)},select(id){this.isDisabled||id===this.value||this.$emit("input",id),this.isOpened=!1}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function preventPinchResize(enable){if(document[enable?"addEventListener":"removeEventListener"]("touchmove",onZoom,!1),enable){let viewportMeta=document.querySelector('meta[name="viewport"]');if(viewportMeta){let _currentValue=viewportMeta.content;viewportMeta.setAttribute("data-old",_currentValue);let newValue=_currentValue.replace(/,? ?user-scalable=(yes|no)/,"")+", user-scalable=no";viewportMeta.content=newValue}else viewportMeta=document.createElement("META"),viewportMeta.name="viewport",viewportMeta.content="user-scalable=no",document.head.appendChild(viewportMeta)}else{let viewportMeta=document.querySelector('meta[name="viewport"]'),oldValue=viewportMeta.getAttribute("data-old");oldValue?(viewportMeta.content=oldValue,viewportMeta.removeAttribute("data-old")):viewportMeta.parentElement.removeChild(viewportMeta)}}function onZoom($event){1!==$event.scale&&$event.preventDefault()}const __vue_component__$m=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{directives:[{name:"show",rawName:"v-show",value:!!_vm.croppie,expression:"!!croppie"}],staticClass:"aw-cropper"},[_c("div",[_c("img",{ref:"image",attrs:{src:_vm.src,alt:""}})]),_vm._v(" "),_c("AwButton",{staticClass:"appearance-none",attrs:{tag:"label"}},[_c("input",{ref:"file",staticClass:"sr-only",attrs:{type:"file",accept:"image/*"},on:{change:_vm.bindImage}}),_vm._v(" "),_vm._t("upload",[_vm._v("\n "+_vm._s(_vm.$t("AwCropper.upload"))+"\n ")])],2),_vm._v(" "),_vm._t("buttons",[_c("AwButton",{attrs:{text:_vm.$t("AwCropper.rotate")},on:{click:_vm.rotate}}),_vm._v(" "),_c("AwButton",{attrs:{text:_vm.$t("AwCropper.save")},on:{click:_vm.save}}),_vm._v(" "),_vm.$listeners.cancel?_c("AwButton",{attrs:{text:_vm.$t("AwCropper.cancel")},on:{click:_vm.cancel}}):_vm._e()],{rotate:_vm.rotate,save:_vm.save,cancel:_vm.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:()=>loadjs_umd(["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 file=e.target.files[0];if(!file)return;let url=URL.createObjectURL(file);this.croppie.bind({url})},rotate(){this.croppie.rotate(90)},async save(){let file=await this.croppie.result({type:"blob",size:"original",format:this.format,quality:this.quality});this.$emit("save",file),this.cancel()},cancel(){this.$emit("cancel")}},mounted(){preventPinchResize(!0),this.$nextTick(this.initCroppie)},beforeDestroy(){preventPinchResize(!1),this.croppie&&this.croppie.destroy()}},void 0,!1,void 0,!1,void 0,void 0,void 0);var clipboardCopy_1=function(text){if(navigator.clipboard)return navigator.clipboard.writeText(text).catch((function(err){throw void 0!==err?err:new DOMException("The request is not allowed","NotAllowedError")}));var span=document.createElement("span");span.textContent=text,span.style.whiteSpace="pre",document.body.appendChild(span);var selection=window.getSelection(),range=window.document.createRange();selection.removeAllRanges(),range.selectNode(span),selection.addRange(range);var success=!1;try{success=window.document.execCommand("copy")}catch(err){console.log("error",err)}return selection.removeAllRanges(),window.document.body.removeChild(span),success?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))};var prism=createCommonjsModule((function(module){var Prism=function(_self){var lang=/\blang(?:uage)?-([\w-]+)\b/i,uniqueId=0,_={manual:_self.Prism&&_self.Prism.manual,disableWorkerMessageHandler:_self.Prism&&_self.Prism.disableWorkerMessageHandler,util:{encode:function(tokens){return tokens instanceof Token?new Token(tokens.type,_.util.encode(tokens.content),tokens.alias):Array.isArray(tokens)?tokens.map(_.util.encode):tokens.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(o){return Object.prototype.toString.call(o).slice(8,-1)},objId:function(obj){return obj.__id||Object.defineProperty(obj,"__id",{value:++uniqueId}),obj.__id},clone:function deepClone(o,visited){var clone,id,type=_.util.type(o);switch(visited=visited||{},type){case"Object":if(id=_.util.objId(o),visited[id])return visited[id];for(var key in clone={},visited[id]=clone,o)o.hasOwnProperty(key)&&(clone[key]=deepClone(o[key],visited));return clone;case"Array":return id=_.util.objId(o),visited[id]?visited[id]:(clone=[],visited[id]=clone,o.forEach((function(v,i){clone[i]=deepClone(v,visited)})),clone);default:return o}},getLanguage:function(element){for(;element&&!lang.test(element.className);)element=element.parentElement;return element?(element.className.match(lang)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(err){var src=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(err.stack)||[])[1];if(src){var scripts=document.getElementsByTagName("script");for(var i in scripts)if(scripts[i].src==src)return scripts[i]}return null}}},languages:{extend:function(id,redef){var lang=_.util.clone(_.languages[id]);for(var key in redef)lang[key]=redef[key];return lang},insertBefore:function(inside,before,insert,root){var grammar=(root=root||_.languages)[inside],ret={};for(var token in grammar)if(grammar.hasOwnProperty(token)){if(token==before)for(var newToken in insert)insert.hasOwnProperty(newToken)&&(ret[newToken]=insert[newToken]);insert.hasOwnProperty(token)||(ret[token]=grammar[token])}var old=root[inside];return root[inside]=ret,_.languages.DFS(_.languages,(function(key,value){value===old&&key!=inside&&(this[key]=ret)})),ret},DFS:function DFS(o,callback,type,visited){visited=visited||{};var objId=_.util.objId;for(var i in o)if(o.hasOwnProperty(i)){callback.call(o,i,o[i],type||i);var property=o[i],propertyType=_.util.type(property);"Object"!==propertyType||visited[objId(property)]?"Array"!==propertyType||visited[objId(property)]||(visited[objId(property)]=!0,DFS(property,callback,i,visited)):(visited[objId(property)]=!0,DFS(property,callback,null,visited))}}},plugins:{},highlightAll:function(async,callback){_.highlightAllUnder(document,async,callback)},highlightAllUnder:function(container,async,callback){var env={callback,container,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};_.hooks.run("before-highlightall",env),env.elements=Array.prototype.slice.apply(env.container.querySelectorAll(env.selector)),_.hooks.run("before-all-elements-highlight",env);for(var element,i=0;element=env.elements[i++];)_.highlightElement(element,!0===async,env.callback)},highlightElement:function(element,async,callback){var language=_.util.getLanguage(element),grammar=_.languages[language];element.className=element.className.replace(lang,"").replace(/\s+/g," ")+" language-"+language;var parent=element.parentNode;parent&&"pre"===parent.nodeName.toLowerCase()&&(parent.className=parent.className.replace(lang,"").replace(/\s+/g," ")+" language-"+language);var env={element,language,grammar,code:element.textContent};function insertHighlightedCode(highlightedCode){env.highlightedCode=highlightedCode,_.hooks.run("before-insert",env),env.element.innerHTML=env.highlightedCode,_.hooks.run("after-highlight",env),_.hooks.run("complete",env),callback&&callback.call(env.element)}if(_.hooks.run("before-sanity-check",env),!env.code)return _.hooks.run("complete",env),void(callback&&callback.call(env.element));if(_.hooks.run("before-highlight",env),env.grammar)if(async&&_self.Worker){var worker=new Worker(_.filename);worker.onmessage=function(evt){insertHighlightedCode(evt.data)},worker.postMessage(JSON.stringify({language:env.language,code:env.code,immediateClose:!0}))}else insertHighlightedCode(_.highlight(env.code,env.grammar,env.language));else insertHighlightedCode(_.util.encode(env.code))},highlight:function(text,grammar,language){var env={code:text,grammar,language};return _.hooks.run("before-tokenize",env),env.tokens=_.tokenize(env.code,env.grammar),_.hooks.run("after-tokenize",env),Token.stringify(_.util.encode(env.tokens),env.language)},matchGrammar:function(text,strarr,grammar,index,startPos,oneshot,target){for(var token in grammar)if(grammar.hasOwnProperty(token)&&grammar[token]){var patterns=grammar[token];patterns=Array.isArray(patterns)?patterns:[patterns];for(var j=0;j<patterns.length;++j){if(target&&target==token+","+j)return;var pattern=patterns[j],inside=pattern.inside,lookbehind=!!pattern.lookbehind,greedy=!!pattern.greedy,lookbehindLength=0,alias=pattern.alias;if(greedy&&!pattern.pattern.global){var flags=pattern.pattern.toString().match(/[imsuy]*$/)[0];pattern.pattern=RegExp(pattern.pattern.source,flags+"g")}pattern=pattern.pattern||pattern;for(var i=index,pos=startPos;i<strarr.length;pos+=strarr[i].length,++i){var str=strarr[i];if(strarr.length>text.length)return;if(!(str instanceof Token)){if(greedy&&i!=strarr.length-1){if(pattern.lastIndex=pos,!(match=pattern.exec(text)))break;for(var from=match.index+(lookbehind&&match[1]?match[1].length:0),to=match.index+match[0].length,k=i,p=pos,len=strarr.length;k<len&&(p<to||!strarr[k].type&&!strarr[k-1].greedy);++k)from>=(p+=strarr[k].length)&&(++i,pos=p);if(strarr[i]instanceof Token)continue;delNum=k-i,str=text.slice(pos,p),match.index-=pos}else{pattern.lastIndex=0;var match=pattern.exec(str),delNum=1}if(match){lookbehind&&(lookbehindLength=match[1]?match[1].length:0);to=(from=match.index+lookbehindLength)+(match=match[0].slice(lookbehindLength)).length;var before=str.slice(0,from),after=str.slice(to),args=[i,delNum];before&&(++i,pos+=before.length,args.push(before));var wrapped=new Token(token,inside?_.tokenize(match,inside):match,alias,match,greedy);if(args.push(wrapped),after&&args.push(after),Array.prototype.splice.apply(strarr,args),1!=delNum&&_.matchGrammar(text,strarr,grammar,i,pos,!0,token+","+j),oneshot)break}else if(oneshot)break}}}}},tokenize:function(text,grammar){var strarr=[text],rest=grammar.rest;if(rest){for(var token in rest)grammar[token]=rest[token];delete grammar.rest}return _.matchGrammar(text,strarr,grammar,0,0,!1),strarr},hooks:{all:{},add:function(name,callback){var hooks=_.hooks.all;hooks[name]=hooks[name]||[],hooks[name].push(callback)},run:function(name,env){var callbacks=_.hooks.all[name];if(callbacks&&callbacks.length)for(var callback,i=0;callback=callbacks[i++];)callback(env)}},Token};function Token(type,content,alias,matchedStr,greedy){this.type=type,this.content=content,this.alias=alias,this.length=0|(matchedStr||"").length,this.greedy=!!greedy}if(_self.Prism=_,Token.stringify=function(o,language){if("string"==typeof o)return o;if(Array.isArray(o))return o.map((function(element){return Token.stringify(element,language)})).join("");var env={type:o.type,content:Token.stringify(o.content,language),tag:"span",classes:["token",o.type],attributes:{},language};if(o.alias){var aliases=Array.isArray(o.alias)?o.alias:[o.alias];Array.prototype.push.apply(env.classes,aliases)}_.hooks.run("wrap",env);var attributes=Object.keys(env.attributes).map((function(name){return name+'="'+(env.attributes[name]||"").replace(/"/g,""")+'"'})).join(" ");return"<"+env.tag+' class="'+env.classes.join(" ")+'"'+(attributes?" "+attributes:"")+">"+env.content+"</"+env.tag+">"},!_self.document)return _self.addEventListener?(_.disableWorkerMessageHandler||_self.addEventListener("message",(function(evt){var message=JSON.parse(evt.data),lang=message.language,code=message.code,immediateClose=message.immediateClose;_self.postMessage(_.highlight(code,_.languages[lang],lang)),immediateClose&&_self.close()}),!1),_):_;var script=_.util.currentScript();if(script&&(_.filename=script.src,script.hasAttribute("data-manual")&&(_.manual=!0)),!_.manual){function highlightAutomaticallyCallback(){_.manual||_.highlightAll()}var readyState=document.readyState;"loading"===readyState||"interactive"===readyState&&script&&script.defer?document.addEventListener("DOMContentLoaded",highlightAutomaticallyCallback):window.requestAnimationFrame?window.requestAnimationFrame(highlightAutomaticallyCallback):window.setTimeout(highlightAutomaticallyCallback,16)}return _}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});module.exports&&(module.exports=Prism),void 0!==commonjsGlobal&&(commonjsGlobal.Prism=Prism),Prism.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},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.hooks.add("wrap",(function(env){"entity"===env.type&&(env.attributes.title=env.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(tagName,lang){var includedCdataInside={};includedCdataInside["language-"+lang]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[lang]},includedCdataInside.cdata=/^<!\[CDATA\[|\]\]>$/i;var inside={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:includedCdataInside}};inside["language-"+lang]={pattern:/[\s\S]+/,inside:Prism.languages[lang]};var def={};def[tagName]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,tagName),"i"),lookbehind:!0,greedy:!0,inside},Prism.languages.insertBefore("markup","cdata",def)}}),Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,function(Prism){var string=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;Prism.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/@[\w-]+/}},url:{pattern:RegExp("url\\((?:"+string.source+"|[^\n\r()]*)\\)","i"),inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+string.source+")*?(?=\\s*\\{)"),string:{pattern:string,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},Prism.languages.css.atrule.inside.rest=Prism.languages.css;var markup=Prism.languages.markup;markup&&(markup.tag.addInlined("style","css"),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},markup.tag))}(Prism),Prism.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:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.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}|\?[.?]?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.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:Prism.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.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:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.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:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.js=Prism.languages.javascript,"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(container){container=container||document;var Extensions={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(container.querySelectorAll("pre[data-src]")).forEach((function(pre){if(!pre.hasAttribute("data-src-loaded")){for(var language,src=pre.getAttribute("data-src"),parent=pre,lang=/\blang(?:uage)?-([\w-]+)\b/i;parent&&!lang.test(parent.className);)parent=parent.parentNode;if(parent&&(language=(pre.className.match(lang)||[,""])[1]),!language){var extension=(src.match(/\.(\w+)$/)||[,""])[1];language=Extensions[extension]||extension}var code=document.createElement("code");code.className="language-"+language,pre.textContent="",code.textContent="Loading…",pre.appendChild(code);var xhr=new XMLHttpRequest;xhr.open("GET",src,!0),xhr.onreadystatechange=function(){4==xhr.readyState&&(xhr.status<400&&xhr.responseText?(code.textContent=xhr.responseText,Prism.highlightElement(code),pre.setAttribute("data-src-loaded","")):xhr.status>=400?code.textContent="✖ Error "+xhr.status+" while fetching file: "+xhr.statusText:code.textContent="✖ Error: File does not exist or is empty")},xhr.send(null)}}))},document.addEventListener("DOMContentLoaded",(function(){self.Prism.fileHighlight()})))}));const __vue_component__$n=normalizeComponent({},void 0,{name:"AwCodeSnippet",functional:!0,props:{language:{type:String,default:"markup"}},render(h,{data,children,props,parent}){const codeText=pathOr(pathOr("","domProps.textContent",data),"0.text",children);let innerHTML="";try{innerHTML=prism.highlight(codeText,prism.languages[props.language],props.language)}catch(e){console.log(e)}return h("div",{staticClass:`${data.staticClass} overflow-auto relative`},[h("AwButton",{staticClass:"absolute top-0 right-0 mr-4 mt-4",props:{theme:"outline",size:"sm",color:"surface"},on:{click:()=>clipboardCopy_1(codeText)}},[parent.$t("AwCodeSnippet.copy")]),h("pre",{staticClass:`pre min-h-xxs language-${props.language}`},[h("code",{staticClass:`language-${props.language}`,domProps:{innerHTML}})])])}},void 0,void 0,void 0,!1,void 0,void 0,void 0);var WatchParams={props:{watchParams:{type:Array,default:null}},methods:{_fetchFromWatcher(){},fetchQuery(){const params={};return this.watchParams&&this.watchParams.forEach(name=>{const value=this.$route.query[name];value&&(params[name]=value)}),params}},created(){if(this.watchParams){const unwatchers=[];this.$once("hook:beforeDestroy",()=>{unwatchers.forEach(unwatch=>{unwatch()})}),this.watchParams.forEach(param=>{const unwatcher=this.$watch(`$route.query.${param}`,this._fetchFromWatcher);unwatchers.push(unwatcher)})}}};const __vue_component__$o=normalizeComponent({render:function(){var _h=this.$createElement;return(this._self._c||_h)(this.tag,{tag:"component"},[this._t("default",null,null,{data:this.data})],2)},staticRenderFns:[]},void 0,{name:"AwContentWrapper",mixins:[WatchParams],props:{tag:{type:String,default:"div"},url:{type:String,required:!0}},data:()=>({data:null}),created(){this._fetchFromWatcher()},methods:{async _fetchFromWatcher(){const res=await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(this.fetchQuery())});this.data=await res.json()}}},void 0,!1,void 0,!1,void 0,void 0,void 0),getWidthFraction=(col,span=1)=>span===col?"w-full":`w-${span}/${col}`,makeWidthClass=(col,span=1)=>"number"==typeof col?`${getWidthFraction(col,span)}`:col?toPairs({default:1,...col}).reduce((acc,[res,col])=>{const _span="object"==typeof span?pathOr(1,res,span):span;return`${acc} ${(res=>"default"===res?"":`${res}:`)(res)}${getWidthFraction(col,_span)}`},""):"",makeColClass=(widthClass,gap)=>`block ${widthClass} pt-${gap} pl-${gap}`;const __vue_component__$p=normalizeComponent({},void 0,{name:"AwGrid",functional:!0,props:{col:{type:[Number,Object],default:1},gap:{type:[Number],default:4}},render(h,{props,children=[],data}){const{col,gap}=props,colClass=makeColClass(makeWidthClass(col),gap);return h("div",{staticClass:data.staticClass,class:data.calss},[h("div",{staticClass:`flex flex-wrap -ml-${gap} -mt-${gap}`},children.reduce((acc,child)=>{if((({tag,text=""})=>!tag&&!text.trim())(child))return acc;let span=path("data.attrs.span",child);return span&&(span=isNaN(parseInt(span))?new Object(span):Number(span),delete child.data.attrs.span),acc.concat(h("div",{staticClass:span?makeColClass(makeWidthClass(col,span),gap):colClass},[child]))},[]))])}},void 0,void 0,void 0,!1,void 0,void 0,void 0),FIELDS=[{tag:"input",exclude:['[type="hidden"]']},{tag:"select"},{tag:"textarea"}],GLOBAL_EXCLUDE=["[data-enter-skip]","[disabled]"],TAG_NAMES=FIELDS.map(({tag})=>tag.toUpperCase()),FIELDS_SELECTOR=FIELDS.map(({tag,exclude=[]})=>`${tag}${GLOBAL_EXCLUDE.concat(exclude).map(rule=>`:not(${rule})`).join("")}`).join(", ");var exterNextFieldMixin={methods:{_onEnterKeydown(e){const target=path("target",e),targetTag=path("target.tagName",e);if(13!==path("keyCode",e)||-1===TAG_NAMES.indexOf(targetTag))return;const elements=Array.from(this.$el.querySelectorAll(FIELDS_SELECTOR)),index=elements.indexOf(target);index<0||(e.preventDefault(),index===elements.length-1||e.ctrlKey||e.shiftKey||e.metaKey?this._onEnterKeydownAction():elements[index+1].focus())},_onEnterKeydownAction(){}}};const __vue_component__$q=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("form",_vm._g({class:[_vm.className,{"is-loading":_vm.loading}],attrs:{method:_vm.method,action:_vm.url}},_vm.listeners),[_vm.errorsList.length?_c("div",{staticClass:"px-4 py-2 text-sm bg-error mb-2 rounded"},_vm._l(_vm.errors,(function(err,i){return _c("p",{key:i},[_vm._v("\n "+_vm._s(err)+"\n ")])})),0):_vm._e(),_vm._v(" "),_vm._t("default")],2)},staticRenderFns:[]},void 0,{name:"AwForm",_config:AwForm,mixins:[exterNextFieldMixin],props:{url:String,method:{type:String,default(){return conf(this,"method")},validator:method=>["get","post","delete","patch"].includes(method.toLowerCase())},className:{type:String,default(){return conf(this,"baseClass")}}},data:()=>({loading:!1,errors:null}),computed:{listeners(){return{mousedown:this._onSubmitBtnClick,submit:this._submit,keydown:this._onEnterKeydown,...this.$listeners}},errorsList(){return function(x){const typeIs=type(x);return["Array","String"].includes(typeIs)?0===x.length:"Object"===typeIs?0===Object.keys(x).length:!!["Null","Undefined"].includes(typeIs)}(this.errors)?[]:Object.values(this.errors).filter(Boolean)}},methods:{_onSubmitBtnClick(e){e.target&&e.target.closest('[type="submit"]')&&this.resetErrors()},_onEnterKeydownAction(){const submitBtn=this.$el.querySelector('[type="submit"]');submitBtn&&submitBtn.click()},_submit(){return conf(this,"submit",(function(){})).apply(this,arguments)},resetErrors(){const fields=this.$el.elements;for(let i=0,max=fields.length;i<max;i++){const field=fields[i];"function"==typeof field.setCustomValidity&&(field.setCustomValidity(""),field.dispatchEvent(new Event("invalid")))}},setErrors(){return conf(this,"setErrors",(function(errors){this.errors=errors})).apply(this,arguments)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);let fieldId=0;var fieldMixin={inheritAttrs:!1,props:{label:{type:String,default:""},id:{type:String,default:""},enterSkip:Boolean},data:()=>({defaultId:`input-${fieldId++}`}),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 errorId=0;var errorMixin={props:{error:String},data:()=>({errorId:`error-${errorId++}`,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(val){this.setError(val)},immediate:!0}},methods:{setError(value){this.errorText=value,this.hasError=!!value,value||this._resetCustomError()},_getElement(){return this.$refs.element},_onInvalid($event){$event.preventDefault(),this.setError($event.target.validationMessage)},_onErrorClick(){this.errorText="";const el=this._getElement();el&&(el.focus(),this._resetCustomError(el))},_resetCustomError(el=this._getElement()){el&&"function"==typeof el.setCustomValidity&&el.setCustomValidity("")}}},TextFieldMixin={mixins:[fieldMixin,errorMixin],props:{value:{default:""}},data(){return{inputValue:this.value,autoFilled:!1}},computed:{wrapperClasses(){return[{"is-filled":this.autoFilled||!isNil(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(newValue){this.inputValue=newValue},immediate:!0}},methods:{_onInput($event){let value=$event.target.value;this.inputValue=value,this.hasError&&this.setError(""),this.$emit($event.type,value)},_autoFillHack($event){switch($event.animationName){case"autoFillStart":this.autoFilled=!0;break;case"autoFillEnd":this.autoFilled=!1}}}};const __vue_component__$r=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{class:[_vm.elClasses.base,"is-"+_vm.type].concat(_vm.wrapperClasses,[{"has-icon":_vm.$slots.icon}])},[_c("input",_vm._g(_vm._b({directives:[{name:"tooltip",rawName:"v-tooltip.show.prepend",value:_vm.errorTooltip,expression:"errorTooltip",modifiers:{show:!0,prepend:!0}}],ref:"element",class:[_vm.elClasses.el,_vm.paddingClass],attrs:{id:_vm.id||_vm.defaultId,"aria-describedby":_vm.errorText?_vm.errorId:null}},"input",Object.assign({},{type:_vm.type,value:_vm.inputValue},_vm.skipAttr,_vm.$attrs),!1),_vm.mergedListeners)),_vm.label?_c("label",{class:_vm.elClasses.label,attrs:{for:_vm.id||_vm.defaultId}},[_vm._v("\n "+_vm._s(_vm.label)+"\n ")]):_vm._e(),_vm._v(" "),_vm.$slots.icon?_c("span",{class:_vm.elClasses.icon},[_vm._t("icon")],2):_vm._e()])},staticRenderFns:[]},void 0,{name:"AwInput",_config:AwInput,mixins:[TextFieldMixin],props:{type:{type:String,default:"text",validator:type=>!["checkbox","radio","date"].includes(type)||(console.error(`Use <fb-${type}> instead`),!1)},size:{type:String,default:"md",validator:type=>!!AwInput.sizes.includes(type)||(console.error(`You must use only one from ${AwInput.sizes.join(", ")}`),!1)}},computed:{elClasses(){let base=this.$options._config.baseClass;return{base,el:`${base}__element`,label:`${base}__label`,icon:`${base}__icon`}},paddingClass(){return"md"===this.size?"p-3":"p-2"}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$s=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"aw-switch-field is-checkbox",class:_vm.wrapperClasses},[_vm._t("default",[_c("input",_vm._g(_vm._b({directives:[{name:"tooltip",rawName:"v-tooltip:top-start.show.prepend",value:_vm.errorTooltip,expression:"errorTooltip",arg:"top-start",modifiers:{show:!0,prepend:!0}}],staticClass:"aw-switch-field__element",attrs:{type:"checkbox",id:_vm.id||_vm.defaultId,"aria-describedby":_vm.errorText?_vm.errorId:null}},"input",Object.assign({},{value:_vm.value,checked:_vm.isChecked},_vm.skipAttr,_vm.$attrs),!1),_vm.mergedListeners)),_vm.label?_c("label",{staticClass:"aw-switch-field__label",attrs:{for:_vm.id||_vm.defaultId}},[_vm._t("label",[_vm._v("\n "+_vm._s(_vm.label)+"\n ")],null,{label:_vm.label,value:_vm.value,isChecked:_vm.isChecked})],2):_vm._e()],null,{id:_vm.id||_vm.defaultId,checked:_vm.isChecked,onChange:_vm._onChange,setError:_vm.setError,value:_vm.value})],2)},staticRenderFns:[]},void 0,{name:"AwCheckbox",mixins:[fieldMixin,errorMixin],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($event){let value=this._createValue($event.target.checked);void 0!==value&&(this.hasError&&this.setError(""),this.$emit("change",value))},_createValue(isChecked){if(!Array.isArray(this.checked))return"number"==typeof this.checked?Number(isChecked):isChecked;{let index=this.checked.indexOf(this.value);if(isChecked&&-1===index)return this.checked.concat(this.value);if(!isChecked&&index>-1){let result=this.checked.slice();return index>-1&&result.splice(index,1),result}}}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$t=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"aw-date",on:{click:_vm.onDateClick}},[_c("AwInput",_vm._b({attrs:{value:_vm.inputValue,readonly:""},on:{focus:function($event){_vm.isOpened=!0},click:function($event){$event.stopPropagation(),_vm.isOpened=!0}}},"AwInput",Object.assign({},_vm.$attrs,{label:_vm.label,id:_vm.id}),!1)),_vm._v(" "),_c("AwDropdown",{ref:"dropdown",staticClass:"aw-date__dropdown",attrs:{show:_vm.isOpened,"close-on-action":!1},on:{"update:show":function($event){_vm.isOpened=$event}}},_vm._l(_vm.views,(function(ref){var key=ref.key,month=ref.month,year=ref.year,view=function(obj,exclude){var target={};for(var k in obj)Object.prototype.hasOwnProperty.call(obj,k)&&-1===exclude.indexOf(k)&&(target[k]=obj[k]);return target}(ref,["key","month","year"]);return _c("div",{key,staticClass:"aw-calendar aw-date__calendar"},[_c("AwCalendarNav",_vm._g({attrs:{month,year,"disabled-prev":view.disabledPrev,"disabled-next":view.disabledNext}},view.navListeners)),_vm._v(" "),_c("AwCalendarWeekdays",{attrs:{"weekday-names":_vm.$t("AwCalendar.weekdaysShort")}}),_vm._v(" "),_c("AwCalendarDays",{attrs:{month,year,"day-disabled":view.dayDisabled,"day-class":view.dayClass}})],1)})),0)],1)},staticRenderFns:[]},void 0,{name:"AwDate",components:{AwCalendarNav:__vue_component__$c,AwCalendarWeekdays:__vue_component__$d,AwCalendarDays:__vue_component__$f},mixins:[fieldMixin,calendarMixin],props:{format:{type:String,default(){return this.$t("AwDate.format")}}},data:()=>({isOpened:!1,maxViews:1}),computed:{inputValue(){const result=[];return this._startDayjs&&result.push(this._startDayjs),this._endDayjs&&result.push(this._endDayjs),result.map(dayjs=>dayjs.format(this.format)).join(" - ")},views(){const views=[],maxViews=Math.min(this.maxViews,this.range?2:1);let index=0;for(;index<maxViews;){const viewDate=this.viewDate.add(index,"month"),view={key:viewDate.toString(),month:viewDate.month(),year:viewDate.year(),navListeners:{},dayDisabled:this._isDisabled,dayClass:this._getDayClass};0===index&&(view.disabledPrev=this._minDayjs&&viewDate.isSame(this._minDayjs,"month"),view.navListeners["click:prev"]=()=>this.shiftMonth(-1)),index===maxViews-1&&(view.disabledNext=this._maxDayjs&&viewDate.isSame(this._maxDayjs,"month"),view.navListeners["click:next"]=()=>this.shiftMonth(1)),views.push(view),index+=1}return views}},watch:{value(value){null!==value&&this.isOpened&&(this.isOpened=!1)},maxViews(){this.$nextTick(this.$refs.dropdown.update)},isOpened(isOpened){this.$nextTick(()=>{this._checkMaxViews(),this._toggleMaxViewsListener(!0)}),isOpened||(this.tempValue=null,this.hoverValue=null)}},beforeDestroy(){clearTimeout(this._tmMaxViews),this._toggleMaxViewsListener(!1)},methods:{_checkMaxViews(){const el=this.$el,calendar=el&&el.querySelector(".aw-date__calendar");el&&calendar&&(this.maxViews=Math.floor(el.clientWidth/calendar.clientWidth)||1)},_checkMaxViewsOnResize(){clearTimeout(this._tmMaxViews),this._tmMaxViews=setTimeout(this._checkIsSingle,300)},_toggleMaxViewsListener(on=!1){window[on?"addEventListener":"removeEventListener"]("resize",this._checkMaxViewsOnResize)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$u=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"aw-switch-field is-radio",class:_vm.wrapperClasses},[_c("input",_vm._g(_vm._b({directives:[{name:"tooltip",rawName:"v-tooltip:top-start.show.prepend",value:_vm.errorTooltip,expression:"errorTooltip",arg:"top-start",modifiers:{show:!0,prepend:!0}}],staticClass:"aw-switch-field__element",attrs:{type:"radio",id:_vm.id||_vm.defaultId,"aria-describedby":_vm.errorText?_vm.errorId:null}},"input",Object.assign({},{value:_vm.value,checked:_vm.isChecked},_vm.skipAttr,_vm.$attrs),!1),_vm.mergedListeners)),_vm.label?_c("label",{staticClass:"aw-switch-field__label",attrs:{for:_vm.id||_vm.defaultId}},[_vm._t("label",[_vm._v("\n "+_vm._s(_vm.label)+"\n ")],null,{label:_vm.label,value:_vm.value,isChecked:_vm.isChecked})],2):_vm._e()])},staticRenderFns:[]},void 0,{name:"AwRadio",mixins:[fieldMixin,errorMixin],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),INPUT_ELEMENTS=["input","textarea"];const __vue_component__$v=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("AwInput",_vm._b({ref:"input",attrs:{size:"sm",autocomplete:"off",placeholder:_vm.placeholder},on:{keydown:function($event){return!$event.type.indexOf("key")&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")?null:($event.preventDefault(),_vm._setSearchImmediate($event))}},scopedSlots:_vm._u([{key:"icon",fn:function(){return[_vm.$route.query[_vm.param]?_c("button",{staticClass:"focus:outline-none",on:{click:_vm._clear}},[_c("AwIcon",{staticClass:"h-full w-10 p-3",attrs:{name:"close"}})],1):_c("AwIcon",{staticClass:"h-full w-10 p-3",attrs:{name:"search"}})]},proxy:!0}]),model:{value:_vm.text,callback:function($$v){_vm.text=$$v},expression:"text"}},"AwInput",_vm.$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:key=>"string"!=typeof key||key.length<2}},computed:{placeholder(){const basicPlaceholder=this.$t("AwSearch.text");return this.globalKeyBind?basicPlaceholder+this.$t("AwSearch.keyBind",{key:this.globalKeyBind}):basicPlaceholder}},watch:{text:function(newValue){newValue!==(this.$route.query[this.param]||"")&&(clearTimeout(this._tm),this._tm=setTimeout(this._setSearchParam,this.debounce,newValue))},"$route.query":{immediate:!0,handler(query){clearTimeout(this._tm),this.text=query[this.param]||""}},globalKeyBind:{immediate:!0,handler(key,prevKey){!this.$isServer&&key?this._toggleKeyBind(!0):prevKey&&this._toggleKeyBind(!1)}}},beforeDestroy(){clearTimeout(this._tm)},methods:{_setSearchParam(text){this.$router.replace(mergeRouteQuery({[this.param]:text},this.$route)).catch(e=>{console.log(e)})},_setSearchImmediate($event){clearTimeout(this._tm),this._setSearchParam($event.target.value)},_clear(){this._setSearchParam(""),this.$refs.input.focus()},_toggleKeyBind(on=!1){on&&this.globalKeyBind?(document.addEventListener("keydown",this._globalKeyListener),this.$once("hook:beforeDestroy",this._toggleKeyBind)):document.removeEventListener("keydown",this._globalKeyListener)},_globalKeyListener($event={}){if($event.key!==this.globalKeyBind)return;const activeElement=document.activeElement;activeElement&&-1!==INPUT_ELEMENTS.indexOf(activeElement.tagName.toLowerCase())||($event.preventDefault(),$event.stopPropagation(),this.$refs.input.focus())}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$w=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"aw-switch-field is-switcher",class:_vm.wrapperClasses},[_vm._t("default",[_c("input",_vm._b({ref:"element",staticClass:"aw-switch-field__element sr-only",attrs:{type:"checkbox",id:_vm.id||_vm.defaultId,"aria-describedby":_vm.errorText?_vm.errorId:null},on:{change:_vm._onChange}},"input",Object.assign({},{value:_vm.value,checked:_vm.isChecked},_vm.skipAttr,_vm.$attrs),!1)),_vm.label?_c("label",{staticClass:"aw-switch-field__label",attrs:{for:_vm.id||_vm.defaultId}},[_vm._t("label",[_vm._v("\n "+_vm._s(_vm.label)+"\n ")],null,{label:_vm.label,value:_vm.value,isChecked:_vm.isChecked})],2):_vm._e(),_vm._v(" "),_c("div",{directives:[{name:"tooltip",rawName:"v-tooltip:top-start.show.prepend",value:_vm.errorTooltip,expression:"errorTooltip",arg:"top-start",modifiers:{show:!0,prepend:!0}}],staticClass:"aw-switch-field__switch",attrs:{"aria-hidden":"true"},on:{mousedown:_vm._onPointerDown,touchstart:_vm._onPointerDown}},[_c("span",{staticClass:"aw-switch-field__toggle"})])],null,{id:_vm.id||_vm.defaultId,checked:_vm.isChecked,onChange:_vm._onChange,setError:_vm.setError,value:_vm.value})],2)},staticRenderFns:[]},void 0,{name:"AwSwitcher",extends:__vue_component__$s,mixins:[fieldMixin],data:()=>({startPos:null,isTouch:!1,isSwitched:!1}),methods:{_onChange($event){let value=this._createValue($event.target.checked);void 0!==value&&(this.hasError&&this.setError(""),this.$emit("change",value))},_onPointerDown($event){const isDisabled=Object.keys(this.$attrs).includes("disabled")&&(this.$attrs.disabled||!this.$attrs.disabled.length),hasTooltip=!!this.errorText;null!==this.startPos||isDisabled||hasTooltip||(this.startPos=$event.screenX,this.isTouch="touchstart"===$event.type,this.isSwitched=!1,this._toggleListeners(!0,this.isTouch))},_onPointerMove($event){const el=this.$refs.element,diff=$event.screenX-this.startPos;el.checked&&diff<-5?(el.checked=!1,this.isSwitched=!0):!el.checked&&diff>5&&(el.checked=!0,this.isSwitched=!0)},_onPointerUp($event){const el=this.$refs.element,diff=Math.abs($event.screenX-this.startPos);this.isSwitched?setTimeout(()=>this._onChange({target:{checked:el.checked}}),10):diff<5&&(el.checked=!el.checked,this._onChange({target:{checked:el.checked}})),this._toggleListeners(!1,this.isTouch),this.startPos=null},_toggleListeners(on=!1,isTouch=!1){[{type:isTouch?"touchmove":"mousemove",handler:this._onPointerMove},{type:isTouch?"touchend":"mouseup",handler:this._onPointerUp}].forEach(({type,handler})=>{window[on?"addEventListener":"removeEventListener"](type,handler)})}},beforeDestroy(){this._toggleListeners(!1,this.isTouch)}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$x=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"aw-text-field is-textarea",class:_vm.wrapperClasses},[_c("textarea",_vm._g(_vm._b({directives:[{name:"tooltip",rawName:"v-tooltip.show.prepend",value:_vm.errorTooltip,expression:"errorTooltip",modifiers:{show:!0,prepend:!0}}],ref:"element",staticClass:"aw-text-field__element p-3",attrs:{id:_vm.id||_vm.defaultId,"aria-describedby":_vm.errorText?_vm.errorId:null}},"textarea",Object.assign({},{value:_vm.inputValue},_vm.skipAttr,_vm.$attrs),!1),_vm.mergedListeners)),_vm.label?_c("label",{staticClass:"aw-text-field__label",attrs:{for:_vm.id||_vm.defaultId}},[_vm._v("\n "+_vm._s(_vm.label)+"\n ")]):_vm._e()])},staticRenderFns:[]},void 0,{name:"AwTextarea",mixins:[TextFieldMixin]},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$y=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"aw-timeline-builder"},[_vm._l(_vm.items,(function(ref,index){var title=ref.title,subtitle=ref.subtitle,author=ref.author,createdAt=ref.createdAt;return _c("div",{key:"item-"+index,staticClass:"flex",class:{"mt-2":index}},[_c("div",{staticClass:"w-6 flex flex-col items-center",attrs:{"aria-hidden":"true"}},[_c("AwIcon",{staticClass:"text-error mt-1 mb-2",attrs:{name:"circle",size:"sm"}}),_vm._v(" "),_c("div",{staticClass:"w-px flex-grow bgcolor-overlay opacity-20"})],1),_vm._v(" "),_c("div",{staticClass:"pl-2 pb-4"},[_vm._t("default",[_c("div",{staticClass:"font-bold"},[_vm._v(_vm._s(title))]),_vm._v(" "),_c("div",{staticClass:"mb-2"},[_vm._v(_vm._s(subtitle))]),_vm._v(" "),author?_c("div",{staticClass:"flex items-center"},[_c("AwAvatar",{staticClass:"w-5",attrs:{src:author.avatar,name:author.fullName}}),_vm._v(" "),_c("span",{staticClass:"ml-2 opacity-50"},[_vm._v("\n "+_vm._s(author.fullName)+"\n ")])],1):_vm._e(),_vm._v(" "),_c("div",{staticClass:"text-xs mt-2 opacity-50"},[_vm._v("\n "+_vm._s(createdAt)+"\n ")])],null,{title,subtitle,author,createdAt})],2)])})),_vm._v(" "),_c("AwLink",{staticClass:"text-sm text-overlay opacity-50 ml-3 mt-3",on:{click:_vm.fetch}},[_vm._v("\n "+_vm._s(_vm.$t("AwTimelineBuilder.more"))+"\n ")])],2)},staticRenderFns:[]},void 0,{name:"AwTimelineBuilder",props:{collection:{type:Object,required:!0,validator:obj=>Array.isArray(obj.models)&&"function"==typeof obj.fetch&&"function"==typeof obj.on}},data:()=>({items:[],page:0}),mounted(){this.$nextTick(this.fetch)},methods:{async fetch(){++this.page;const{response:{data:{data}}}=await this.collection.fetch({params:{page:this.page}});this.items=[...this.items,...data]}}},void 0,!1,void 0,!1,void 0,void 0,void 0),SPACER_RE=/-/g;const __vue_component__$z=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{directives:[{name:"tooltip",rawName:"v-tooltip.show.prepend",value:_vm.errorTooltip,expression:"errorTooltip",modifiers:{show:!0,prepend:!0}}],staticClass:"flex items-center -mx-1",class:_vm.wrapperClasses},[_c("input",_vm._g(_vm._b({ref:"element",staticClass:"sr-only",attrs:{tabindex:"-1"},domProps:{value:_vm.cleanValue}},"input",_vm.$attrs,!1),_vm.mergedListeners)),_vm._v(" "),_vm._l(_vm.pattern,(function(char,i){return["-"===char?_c("span",{key:"d-"+i,staticClass:"mx-1"},[_vm._v("-")]):_c("div",{key:"i-"+i,staticClass:"mx-1 flex-1"},[_c("input",_vm._b({ref:"fields",refInFor:!0,class:[_vm.elClasses.element,"text-center p-3"],attrs:{type:"tel",inputmode:"numeric",pattern:"[0-9]*",maxlength:"1",autocomplete:"off"},domProps:{value:_vm.codeValue[i]},on:{input:function($event){return _vm._onInput($event,i)},keydown:[function($event){return!$event.type.indexOf("key")&&_vm._k($event.keyCode,"left",37,$event.key,["Left","ArrowLeft"])?null:"button"in $event&&0!==$event.button?null:_vm._focus($event.target,-1)},function($event){return!$event.type.indexOf("key")&&_vm._k($event.keyCode,"right",39,$event.key,["Right","ArrowRight"])?null:"button"in $event&&2!==$event.button?null:_vm._focus($event.target)},function($event){return!$event.type.indexOf("key")&&_vm._k($event.keyCode,"backspace",void 0,$event.key,void 0)?null:_vm._focus($event.target,-1)}],paste:function($event){return $event.preventDefault(),_vm._onPaste($event)}}},"input",_vm.skipAttr,!1))])]}))],2)},staticRenderFns:[]},void 0,{name:"AwCode",_config:{baseClass:"aw-text-field",pattern:"XXX-XXX"},mixins:[fieldMixin,errorMixin],props:{className:{type:String,default(){return conf(this,"baseClass")}},pattern:{type:String,default(){return conf(this,"pattern")}}},data(){return{codeValue:this.pattern.split("").map(v=>SPACER_RE.test(v)?"-":"")}},computed:{mergedListeners(){return{...this.$listeners,focus:this._focus,invalid:this._onInvalid}},inputValue:{get(){return this.codeValue.join("")},set(value){value=value.trim();for(let i=0,j=0,max=this.pattern.length;i<max;i++)SPACER_RE.test(this.pattern[i])||(this.$set(this.codeValue,i,value[j]),j++)}},cleanValue(){return this.inputValue.replace(SPACER_RE,"")},elClasses(){return getBemClasses(this.className,["element"])},wrapperClasses(){return[this.className,{"has-error":this.hasError}]},length(){return this.pattern.replace(SPACER_RE,"").length}},watch:{codeValue(){this.$emit("input",this.cleanValue),this.cleanValue.length===this.length&&this.$emit("change",this.cleanValue)}},methods:{_onInput($event,index){const field=$event.target,parsed=field.value.replace(/\D/g,"");field.value=parsed,this.$set(this.codeValue,index,parsed),parsed.length===field.maxLength&&this._focus(field),this.hasError&&this.setError("")},_focus(currentField,increment=1){const nextIndex=this.$refs.fields.indexOf(currentField)+increment,next=this.$refs.fields[nextIndex];next&&setTimeout(()=>{next.focus(),next.setSelectionRange(0,next.value.length)},10)},_onPaste($event){this.inputValue=$event.clipboardData.getData("text")}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$A=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("AwInput",_vm._g(_vm._b({scopedSlots:_vm._u([{key:"icon",fn:function(){return[_c("AwButton",{key:"eye",attrs:{theme:"icon"},on:{click:function($event){_vm.type=_vm.isShown?"password":"text"}}},[_c("Transition",{attrs:{name:"fade-from-bottom",mode:"out-in"}},[_vm.isShown?_c("AwIcon",{key:"hide",attrs:{name:"eye-no"}}):_c("AwIcon",{key:"show",attrs:{name:"eye"}})],1)],1)]},proxy:!0}])},"AwInput",Object.assign({},_vm.$props,_vm.$attrs,{type:_vm.type}),!1),_vm.$listeners))},staticRenderFns:[]},void 0,{name:"FbPassword",mixins:[TextFieldMixin],data:()=>({type:"password"}),computed:{isShown(){return"text"===this.type}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$B=normalizeComponent({},void 0,{name:"AwTel",inheritAttrs:!1,mixins:[errorMixin],data:()=>({VueTelInput:null}),mounted(){this.loadTelInput().then(()=>{this.VueTelInput=window.VueTelInput.VueTelInput,this.$nextTick(this.bindErrorListener)})},beforeDestroy(){this.VueTelInput&&this.bindErrorListener(!1)},render(h){return this.VueTelInput?h("div",{staticClass:"aw-text-field is-tel",class:{"has-error":this.hasError}},[h(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}}]})]):h("AwInput",{attrs:{type:"tel",...this.$attrs}})},methods:{loadTelInput:()=>window.VueTelInput?Promise.resolve():loadjs_umd(["https://unpkg.com/vue-tel-input"],"vue-tel-input",{returnPromise:!0}),bindErrorListener(attach=!0){const method=attach?"addEventListener":"removeEventListener";this._getElement()[method]("invalid",this._onInvalid)},_getElement(){return this.$el&&this.$el.querySelector('input[type="tel"]')},_onInputProxy(text){this.hasError&&text&&this.setError(""),this.$emit("input",...arguments)}}},void 0,void 0,void 0,!1,void 0,void 0,void 0);function Cancel(message){this.message=message}Cancel.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0;var Cancel_1=Cancel;function CancelToken(executor){if("function"!=typeof executor)throw new TypeError("executor must be a function.");var resolvePromise;this.promise=new Promise((function(resolve){resolvePromise=resolve}));var token=this;executor((function(message){token.reason||(token.reason=new Cancel_1(message),resolvePromise(token.reason))}))}CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},CancelToken.source=function(){var cancel;return{token:new CancelToken((function(c){cancel=c})),cancel}};var CancelToken_1=CancelToken,isCancel=function(value){return!(!value||!value.__CANCEL__)};const __vue_component__$C=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"relative",on:{keydown:[function($event){return!$event.type.indexOf("key")&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])?null:_vm._arrowFocusItem(-1,$event)},function($event){return!$event.type.indexOf("key")&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])?null:_vm._arrowFocusItem(1,$event)}],click:_vm._selectOnClick}},[_c("AwInput",_vm._b({ref:"input",class:{"is-filled":_vm.searchable&&_vm.isOpened},attrs:{value:_vm._inputValue,label:_vm.label,placeholder:_vm._selectedLabel,readonly:!_vm.searchable,autocomplete:"off","data-arrow-focus":""},on:{focus:_vm._onFocus,blur:_vm._onBlur,input:_vm._applySearch,keydown:function($event){return!$event.type.indexOf("key")&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")?null:_vm._selectOnEnter($event)}},scopedSlots:_vm._u([_vm.multiple&&_vm.selectedIndexes.length?{key:"element",fn:function(){return[_vm._v("\n "+_vm._s(_vm.selectedIndexes)+"\n ")]},proxy:!0}:null,{key:"icon",fn:function(){return[_vm.clearable?_c("AwButton",{directives:[{name:"show",rawName:"v-show",value:!_vm.isOpened&&_vm.selectedIndexes.length,expression:"!isOpened && selectedIndexes.length"}],attrs:{icon:"close",theme:"icon"},on:{click:function($event){_vm.selectedIndexes=[]}}}):_vm._e(),_vm._v(" "),_c("AwButton",{attrs:{tabindex:"-1",theme:"icon"},on:{click:_vm.toggleDropdown}},[_vm.isLoading?_c("AwIcon",{key:"loader",staticClass:"text-brand animation-rotate",attrs:{name:"loader",size:"xl"}}):_c("AwIcon",{key:"arrow",staticClass:"transition-200",class:{"rotate-180":_vm.isOpened},attrs:{name:"triangle-d",size:"xl"}})],1)]},proxy:!0}],null,!0)},"AwInput",_vm.$attrs,!1)),_vm._v(" "),_c("AwDropdown",{ref:"dropdown",staticClass:"w-full",attrs:{show:_vm.isOpened,"close-outside":!1},on:{"update:show":function($event){_vm.isOpened=$event}}},[_vm._t("dropdown",[_vm._showNotEqual?_c("AwDropdownButton",{attrs:{tabindex:"-1","data-arrow-focus":""},on:{click:_vm._onClickNotEqual}},[_vm._t("not-equal",null,{searchPhrase:_vm.searchPhrase})],2):_vm._e(),_vm._v(" "),_vm.optionsList.length?_vm._l(_vm.optionsList,(function(ref,i){var optionLabel=ref.optionLabel,index=ref.index,active=ref.active;return _c("AwDropdownButton",{key:optionLabel+"-"+index,attrs:{active,"data-select-index":index,tabindex:"-1","data-arrow-focus":""}},[_vm._t("option-label",[_vm._v("\n "+_vm._s(optionLabel)+"\n ")],null,Object.assign({},_vm.optionsList[i],{searchPhrase:_vm.searchPhrase}))],2)})):_c("AwDropdownButton",{attrs:{tabindex:"-1","data-arrow-focus":""},on:{click:_vm._selectOnEnter}},[_vm._t("not-found",[_vm._v("\n "+_vm._s(_vm.$t("AwSelect.notFound"))+"\n ")],{searchPhrase:_vm.searchPhrase})],2)],null,{optionsList:_vm.optionsList,isOpened:_vm.isOpened})],2)],1)},staticRenderFns:[]},void 0,{inheritAttrs:!1,name:"AwSelect",components:{AwIcon:__vue_component__$1,AwInput:__vue_component__$r,AwButton:__vue_component__$5,AwDropdown:__vue_component__$a,AwDropdownButton:__vue_component__$b},mixins:[arrowFocusMixin],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(isNil(this.value))return[];return(Array.isArray(this.value)?this.value:[this.value]).reduce((acc,option)=>{const index=this.selectOptions.findIndex(_option=>this._getValue(_option)===option);return-1===index?acc:acc.concat(index)},[])},set(indexes){if(!Array.isArray(indexes))return;const options=indexes.reduce((acc,index)=>{const option=this.selectOptions[index];return isNil(option)?acc:acc.concat(option)},[]),values=options.map(this._getValue);this.multiple?this.$emit("input",values,options):this.$emit("input",values[0],options[0]),this._close()}},optionsList(){return this.selectOptions.reduce((acc,option,index)=>{const active=this.selectedIndexes.includes(index),inRange=acc.length<this.maxSearchItems,matchSerach=!this._hasInternalSearch||this._matchSearch(option);return inRange&&matchSerach?acc.concat({option,optionLabel:this._getLabel(option),index,active}):acc},[])},_selectedLabel(){return this.selectedIndexes.map(index=>this._getLabel(this.selectOptions[index])).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(option=>this._getLabel(option)===this.searchPhrase))}},watch:{value(){this.$refs.input.setError()},isOpened(opened){opened?(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 unwatch=this.$watch("options",{handler(options){this.selectOptions=options},immediate:!0});this.$once("hook:beforeDestroy",unwatch)}if(this.searchable){const unwatch=this.$watch("searchPhrase",()=>{this.$nextTick(()=>{this.$refs.dropdown.update()})});this.$once("hook:beforeDestroy",unwatch)}},mounted(){this._isAjax&&this.searchPreload&&this._preloadOptions()},beforeDestroy(){clearTimeout(this._tm),this._toggleOutsideHandler(!1)},methods:{_getLabel(option){return this.optionLabel?path(this.optionLabel,option):option},_getValue(option){return this.trackBy?path(this.trackBy,option):option},_matchSearch(option){return this._optionSearchRegEx.test(this._getLabel(option))},_applySearch(text){this.searchPhrase=text,this.$refs.dropdown.update(),this.$listeners.search&&this.$emit("search",text),this._isAjax&&(clearTimeout(this._tm),text.length>this.searchMin?this._tm=setTimeout(this.fetch,this.debounce):(this.cancelRequest(),!text.length&&this._preloadOptions()))},toggleDropdown(){this.isOpened?this.isOpened=!1:this.$refs.input.focus()},_onFocus(){this.isOpened||setTimeout(()=>{this.isOpened=!0},5)},_onBlur($event){this.$el.contains($event.relatedTarget)||(this.isOpened=!1)},_selectIndex(index){if(this.multiple){const selected=this.selectedIndexes;-1!==selected.indexOf(index)?this.selectedIndexes=selected.filter(_index=>_index!==index):this.selectedIndexes=selected.concat(index)}else this.selectedIndexes=[index]},_selectOnClick($event){let target=$event.target;target.hasAttribute("data-select-index")||(target=target.closest("[data-select-index]")),target&&($event.stopPropagation(),$event.preventDefault(),this._selectIndex(parseInt(target.getAttribute("data-select-index"))))},_selectOnEnter(){if(!this.searchPhrase)return this.isOpened=!1,void this._close();const firstOption=this.optionsList[0];firstOption?this._selectIndex(firstOption.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($event){this.$el.contains($event.target)||(this.isOpened=!1)},_toggleOutsideHandler(activate=!1){const method=activate?"addEventListener":"removeEventListener";document.body[method]("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(enable=!1){enable?this._ltm=setTimeout(()=>{this.isLoading=!0},200):(clearTimeout(this._ltm),this.isLoading=!1)},async fetch(){this.cancelRequest(),this.toggleLoader(!0),this.cancellation=CancelToken_1.source();try{const fetchUrl=this.options(encodeURIComponent(this.searchPhrase)),{data}=await this.$axios.request({cancelToken:this.cancellation.token,method:"get",url:fetchUrl});this.selectOptions=pathOr([],"data",data)}catch(e){isCancel(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 __vue_component__$D=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"relative"},[_c("AwInput",_vm._b({attrs:{autocomplete:"off"},model:{value:_vm.search,callback:function($$v){_vm.search=$$v},expression:"search"}},"AwInput",_vm.$attrs,!1)),_vm._v(" "),_c("AwDropdown",{staticClass:"w-full z-10",attrs:{show:!!_vm.suggestions.length,"close-on-action":""}},[_c("AwGrid",{attrs:{col:1,gap:0}},[_vm._l(_vm.suggestions,(function(place){return _c("AwButton",{key:place.place_id,staticClass:"w-full text-left",attrs:{icon:"location",theme:"toggle"},on:{click:function($event){return _vm.select(place)}}},[_vm._v("\n "+_vm._s(place.description)+"\n ")])})),_vm._v(" "),_c("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),_vm._v(" "),_c("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 params={key:this.gmKey,libraries:this.gmLibraries.join(","),language:this.gmLanguage};return`//maps.googleapis.com/maps/api/js?${join("&",map(join("="),toPairs(filter(compose(not,isEmpty),params))))}`}},methods:{gmInit(){return loadjs_umd([this.gmLibUrl],"google-maps",{returnPromise:!0})},isGmInited:()=>loadjs_umd.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(text){this.placeDescription=text,this.autocomplete&&(text?this._query(text):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(input){this.sessionToken||(this.sessionToken=new window.google.maps.places.AutocompleteSessionToken),this.autocomplete.getPlacePredictions({...this.queryOptions,sessionToken:this.sessionToken,input},this._setSuggestions)},_setSuggestions(data){this.suggestions=data||[]},_resetSearch(){this.suggestions=[],this.sessionToken=null},_formatAddressResponse(details){if(details&&details.address_components){const response={};return details.address_components.forEach(({long_name,types})=>{response[types[0]]=long_name}),response.location=details.geometry.location,response}return null},select(place){if(!place||!place.place_id)return this.place=null,void(this.placeDescription="");this.placesService.getDetails({placeId:place.place_id,sessionToken:this.sessionToken},details=>{this.place=details,this.placeDescription=details.formatted_address,this._resetSearch(),this.$emit("input",this._formatAddressResponse(details))})}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$E=normalizeComponent({render:function(_h,_vm){var _c=_vm._c;return _c("svg",{class:[_vm.data.staticClass,_vm.data.class],style:[_vm.data.staticStyle,_vm.data.style],attrs:{width:_vm.props.size||20,height:_vm.props.size||20,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"}},[_c("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 __vue_component__$F=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("nav",{staticClass:"aw-menu"},[_c("ul",{staticClass:"aw-menu__menu"},[_vm._t("default")],2),_vm._v(" "),_c("div",{staticClass:"aw-menu__logo"},[_c("button",{staticClass:"aw-menu__width-toggler",attrs:{"aria-label":_vm.$t("AwLayoutDefault.shrinkMenu")},on:{click:function($event){return _vm.$emit("toggle-width")}}},[_c("AwIconCaret",{attrs:{size:"10"}})],1),_vm._v(" "),_c("RouterLink",{staticClass:"aw-menu__homelink truncate",attrs:{to:_vm.homeUrl},domProps:{innerHTML:_vm._s(_vm.$t("AwLayoutDefault.caption"))}})],1)])},staticRenderFns:[]},void 0,{name:"AwMenu",components:{AwIconCaret:__vue_component__$E},computed:{homeUrl(){return"function"==typeof this.localePath?this.localePath({path:"/"}):"/"}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$G=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c(_vm.tag,{tag:"Component",staticClass:"aw-menu-item",class:{"aw-menu-item_opened":_vm.opened,"aw-menu-item_expanded":_vm.expanded,"aw-menu-item_has-icon":!!_vm.icon,"aw-menu-item_has-badge":!!_vm._badge,"aw-menu-item_has-toggler":_vm.children.length&&!_vm.expanded,"aw-menu-item_has-active":_vm.hasActiveChild}},[_c(_vm.href?"RouterLink":"button",_vm._g(_vm._b({tag:"Component",staticClass:"aw-menu-item__button",class:{"is-active":_vm.isSamePage(_vm.href)},attrs:{to:_vm.href||null,"aria-current":_vm.isSamePage(_vm.href)?"page":null}},"Component",_vm.$attrs,!1),!_vm.href&&_vm.children.length?{click:_vm.toggle}:{}),[_vm.icon?_c("AwIcon",{staticClass:"mr-5",attrs:{name:_vm.icon,size:"xl"}}):_vm._e(),_vm._v(" "),_c("span",{staticClass:"truncate"},[_vm._v(_vm._s(_vm.text))]),_vm._v(" "),_vm._badge?_c("AwBadge",_vm._b({staticClass:"aw-menu-item__badge"},"AwBadge",_vm._badge,!1)):_vm._e()],1),_vm._v(" "),_vm.children.length&&!_vm.expanded?_c("button",{staticClass:"aw-menu-item__toggler",attrs:{"aria-label":_vm.$t("AwLayoutDefault.toggleSubmenu")},on:{click:function($event){return $event.stopPropagation(),$event.preventDefault(),_vm.toggle()}}},[_c("AwIconCaret",{staticClass:"aw-menu-item__caret",attrs:{size:"10"}})],1):_vm._e(),_vm._v(" "),_vm.children.length?_c("AwAccordionFold",{staticClass:"aw-menu-item__children",attrs:{show:_vm.opened||_vm.expanded}},_vm._l(_vm.children,(function(child,j){return _c("RouterLink",{key:"child-"+j,staticClass:"aw-menu-item__child",class:{"is-active":_vm.isSamePage(child.href)},attrs:{to:child.href,"aria-current":_vm.isSamePage(child.href)?"page":null}},[_c("span",{staticClass:"truncate"},[_vm._v(_vm._s(child.text))])])})),1):_vm._e()],1)},staticRenderFns:[]},void 0,{name:"AwMenuItem",inheritAttrs:!1,components:{AwIcon:__vue_component__$1,AwBadge:__vue_component__$6,AwIconCaret:__vue_component__$E,AwAccordionFold:__vue_component__},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 isNil(this.badge)||isEmpty(this.badge)?null:{color:"surface",...this.badge}},currentPath(){return trimSlash(this.$route.path)},hasActiveChild(){return this.children.some(({href})=>!!href&&this.isSamePage(href))}},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(href){return this.currentPath===trimSlash(href)}}},void 0,!1,void 0,!1,void 0,void 0,void 0),menuSort=(a,b)=>a.order>b.order;const __vue_component__$H=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"layout layout--default",attrs:{id:"layout-default"}},[_c("div",{staticClass:"layout__content",class:{"is-wide":_vm.menuThin,"relative z-0":_vm.showMobileMenu}},[_vm._t("before-header"),_vm._v(" "),_c("div",{staticClass:"layout__header"},[_c("div",{staticClass:"container flex items-center"},[_c("div",{staticClass:"flex-1 lg:hidden"},[_c("button",{staticClass:"w-8 h-8 -ml-1 flex items-center justify-center focus:outline-none",on:{click:function($event){_vm.showMobileMenu=!_vm.showMobileMenu}}},[_c("AwIcon",{attrs:{name:"burger",size:"2xl"}}),_vm._v(" "),_c("span",{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.$t("AwLayoutDefault.toggleMenu"))+"\n ")])],1)]),_vm._v(" "),_c("div",{staticClass:"flex-1 text-center lg:hidden"},[_c("RouterLink",{staticClass:"truncate",attrs:{to:"/"},domProps:{innerHTML:_vm._s(_vm.$t("AwLayoutDefault.caption"))}})],1),_vm._v(" "),_c("div",{staticClass:"w-full flex-1 flex items-center justify-end"},[_vm._t("navbar")],2)])]),_vm._v(" "),_vm._t("default"),_vm._v(" "),_c("div",{staticClass:"bg-muted mt-auto text-center text-sm text-disabled footer__link"},[_c("div",{staticClass:"container py-4",domProps:{innerHTML:_vm._s(_vm.$t("AwLayoutDefault.footer"))}})])],2),_vm._v(" "),_c("Transition",{attrs:{name:"fade"}},[_c("button",{directives:[{name:"show",rawName:"v-show",value:_vm.showMobileMenu,expression:"showMobileMenu"}],staticClass:"block w-full fixed inset-0 bg-overlay opacity-50 lg:hidden",on:{click:function($event){_vm.showMobileMenu=!1}}},[_c("span",{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.$t("AwLayoutDefault.toggleMenu"))+"\n ")])])]),_vm._v(" "),_c("AwMenu",{class:{"is-visible":_vm.showMobileMenu,"is-thin":_vm.menuThin},on:{"toggle-width":_vm.toggleWidth,close:function($event){_vm.showMobileMenu=!1}}},_vm._l(_vm.menuItems,(function(ref,i){var key=ref.key,menuItem=function(obj,exclude){var target={};for(var k in obj)Object.prototype.hasOwnProperty.call(obj,k)&&-1===exclude.indexOf(k)&&(target[k]=obj[k]);return target}(ref,["key"]);return _c("AwMenuItem",_vm._b({key:key||"item-"+i,style:{transitionDelay:30*i+"ms"}},"AwMenuItem",menuItem,!1))})),1)],1)},staticRenderFns:[]},void 0,{name:"AwLayoutDefault",components:{AwIcon:__vue_component__$1,AwMenu:__vue_component__$F,AwMenuItem:__vue_component__$G},props:{menu:{type:Array,default:()=>[]}},data:()=>({menuThin:!1,showMobileMenu:!1}),computed:{menuItems(){return this.menu.map(({props,order,children=[]})=>({...props,order,children:children.map(({props,order})=>({...props,order})).sort(menuSort)})).sort(menuSort)}},watch:{"$route.path":function(newPath,oldPath){trimSlash(oldPath)!==trimSlash(newPath)&&(this.showMobileMenu=!1)}},mounted(){try{const menuThin=localStorage.getItem("AW_MENU_THIN");this.menuThin="true"===menuThin}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 __vue_component__$I=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"layout layout--frame-center",class:_vm.background.class,style:{backgroundImage:_vm.backgroundImage},attrs:{id:"layout-frame-center"}},[_c("div",{staticClass:"layout__container mx-auto"},[_vm.logo?_c("img",_vm._b({staticClass:"hidden sm:block mt-auto"},"img",_vm.logo,!1)):_vm._e(),_vm._v(" "),_c("div",{staticClass:"layout__frame w-full my-auto",class:{"sm:mt-8":_vm.logo}},[_vm._t("default")],2),_vm._v(" "),_c("div",{staticClass:"pt-8",domProps:{innerHTML:_vm._s(_vm.$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 __vue_component__$J=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{class:_vm.className},[_c("div",{staticClass:"flex items-end container"},[_c("div",{staticClass:"flex-auto"},[_c(_vm.titleTag,{key:_vm.title.key||_vm.title,tag:"Component",class:[_vm.elClasses.title]},[_vm._t("breadcrumb",[_vm.breadcrumb&&_vm.breadcrumb.href&&_vm.breadcrumb.title?_c("div",[_c("span",{staticClass:"hidden sm:inline-block"},[_c("AwLink",{staticClass:"mr-2",attrs:{href:_vm.breadcrumb.href}},[_vm._v(_vm._s(_vm.breadcrumb.title))]),_vm._v(" "),_c("span",{staticClass:"text-sm text-disabled align-middle mr-4"},[_vm._v("/")])],1),_vm._v(" "),_c("AwButton",{staticClass:"sm:hidden mr-4",attrs:{href:_vm.breadcrumb.href,title:_vm.breadcrumb.title,"content-class":"p-2",size:"sm",icon:"chevron-l",color:"default"}})],1):_vm._e()]),_vm._v(" "),_vm._t("title",[_vm._v("\n "+_vm._s(_vm.title)+"\n ")],{title:_vm.title})],2)],1),_vm._v(" "),_vm.$slots.buttons?_c("div",{staticClass:"py-4 flex-none pl-4"},[_vm._t("buttons")],2):_vm._e()]),_vm._v(" "),_c("div",[_vm._t("subnav",[_vm.subnav.length?_c("div",{staticClass:"border-b bg-muted"},[_c("div",{staticClass:"container"},[_c("div",{staticClass:"-mb-px -mx-4"},[_c("AwTabNav",{staticClass:"border-transparent",attrs:{items:_vm.subnav}})],1)])]):_vm._e()])],2),_vm._v(" "),_c("div",{staticClass:"content",class:_vm.elClasses.content},[_c("div",{staticClass:"container"},[_vm._t("default")],2)])])},staticRenderFns:[]},void 0,{name:"AwPage",_config:{baseClass:"aw-page",titleTag:"h1"},props:{title:{type:String,default:""},titleTag:{type:String,default(){return conf(this,"titleTag")}},className:{type:String,default(){return conf(this,"baseClass")}},subnav:{type:Array,default:()=>[]},breadcrumb:{type:Object,default:()=>{},validator:params=>void 0!==params.title&&void 0!==params.href}},head(){return{title:this.getTitle}},computed:{getTitle(){let title=this.title;return this.breadcrumb&&(title+=" / "+this.breadcrumb.title),title},elClasses(){return getBemClasses(this.className,["title","subnav","tabs","content"])}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$K=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _vm.pagesTotal>1?_c("div",{staticClass:"flex items-center lg:px-6"},[_c("span",{staticClass:"flex-1 text-sm opacity-50 hidden lg:block"},[_vm._v(_vm._s(_vm.$t("AwPagination.info",Object.assign({},_vm.itemsRange,{total:_vm.total}))))]),_vm._v(" "),_c("div",{staticClass:"flex-grow flex justify-between lg:justify-center items-center",on:{click:_vm._onPageClick}},[_c("AwButton",{staticClass:"mr-1 lg:hidden",attrs:{"data-page":_vm.prevPage,disabled:null===_vm.prevPage,icon:"arrow-l",color:"default","content-class":"p-3"}}),_vm._v(" "),_c("AwButton",{staticClass:"hidden lg:inline-flex mr-1",attrs:{"data-page":_vm.prevPage,disabled:null===_vm.prevPage,theme:"icon",size:"sm",icon:"arrow-l"}}),_vm._v(" "),_c("span",{staticClass:"lg:hidden"},[_vm._v("\n "+_vm._s(_vm.$t("AwPagination.page",{page:_vm.page,pagesTotal:_vm.pagesTotal}))+"\n ")]),_vm._v(" "),_c("div",{staticClass:"hidden lg:inline-flex aw-button-nav py-1"},_vm._l(_vm.pageButtons,(function(ref,i){var component=ref.component,text=ref.text;return _c(component,{key:i+"-"+text,tag:"Component",staticClass:"aw-button-nav__toggler",class:{"aw-button-nav__toggler_active":text===_vm.page,"aw-button-nav__toggler_disabled":"button"!==component},attrs:{"data-page":"button"===component?text:null}},[_c("span",{staticClass:"w-8 h-8",attrs:{tabindex:"-1"}},[_vm._v("\n "+_vm._s(text)+"\n ")])])})),1),_vm._v(" "),_c("AwButton",{staticClass:"hidden lg:inline-flex ml-1",attrs:{"data-page":_vm.nextPage,disabled:null===_vm.nextPage,theme:"icon",size:"sm",icon:"arrow-r"}}),_vm._v(" "),_c("AwButton",{staticClass:"ml-1 lg:hidden",attrs:{"data-page":_vm.nextPage,disabled:null===_vm.nextPage,icon:"arrow-r",color:"default","content-class":"p-3"}})],1),_vm._v(" "),_c("div",{staticClass:"flex-1 hidden lg:block"},[_c("div",{staticClass:"flex justify-end"},[_vm.limits?[_c("AwButton",{attrs:{theme:"toggle","content-class":"p-0"},on:{click:function($event){_vm.limitsOpened=!_vm.limitsOpened}}},[_vm._v("\n "+_vm._s(_vm.limit)+"\n "),_c("AwIcon",{staticClass:"transition-200",class:{"rotate-180":_vm.limitsOpened},attrs:{name:"triangle-d"}})],1),_vm._v(" "),_c("AwDropdown",{ref:"limits",staticClass:"w-32",attrs:{show:_vm.limitsOpened,options:{placement:"bottom-end"}},on:{"update:show":function($event){_vm.limitsOpened=$event}}},_vm._l(_vm.limits,(function(_limit){return _c("AwDropdownButton",{key:_limit,attrs:{active:_limit===_vm.limit},on:{click:function($event){return _vm.$emit("click:limit",_limit)}}},[_vm._v("\n "+_vm._s(_limit)+"\n ")])})),1)]:_c("span",{staticClass:"text-sm opacity-50"},[_vm._v("\n "+_vm._s(_vm.$t("AwPagination.limit",{limit:_vm.limit}))+"\n ")])],2)])]):_vm._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 range(1,this.pagesTotal+1);{const current=this.page,last=this.pagesTotal;return current<6?[...range(1,7),null,last]:last-current<5?[1,null,...range(last-5,last+1)]:[1,null,...range(current-2,current+2),null,last]}},nextPage(){const next=this.page+1;return next<this.pagesTotal+1?next:null},prevPage(){const prev=this.page-1;return prev>0?prev:null},itemsRange(){const index=this.page,lastItem=index*this.limit;return{from:(index-1)*this.limit+1,to:lastItem<this.total?lastItem:this.total}}},watch:{arrowNav:{immediate:!0,handler(value,prevValue){!this.$isServer&&value?this._toggleArrowNav(!0):prevValue&&this._toggleArrowNav(!1)}}},methods:{_getButtonProps:page=>isNil(page)?{component:"span",text:"..."}:{component:"button",text:page},_onPageClick($event){let target=$event.target;target&&!target.hasAttribute("data-page")&&(target=target.closest("[data-page]")),target&&this.$emit("click:page",parseInt(target.getAttribute("data-page")))},_toggleArrowNav(on=!1){on?(document.addEventListener("keydown",this._globalKeyListener),this.$once("hook:beforeDestroy",this._toggleArrowNav)):document.removeEventListener("keydown",this._globalKeyListener)},_globalKeyListener($event={}){const key=$event.key;!$event.ctrlKey&&!$event.metaKey||["ArrowLeft","ArrowRight"].indexOf(key)<0||($event.preventDefault(),$event.stopPropagation(),"ArrowLeft"===key&&null!==this.prevPage?this.$emit("click:page",this.prevPage):"ArrowRight"===key&&null!==this.nextPage&&this.$emit("click:page",this.nextPage))}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var autosize=createCommonjsModule((function(module,exports){
|
|
10
|
+
/*!
|
|
11
|
+
autosize 4.0.2
|
|
12
|
+
license: MIT
|
|
13
|
+
http://www.jacklmoore.com/autosize
|
|
14
|
+
*/
|
|
15
|
+
!function(module,exports){var map="function"==typeof Map?new Map:function(){var keys=[],values=[];return{has:function(key){return keys.indexOf(key)>-1},get:function(key){return values[keys.indexOf(key)]},set:function(key,value){-1===keys.indexOf(key)&&(keys.push(key),values.push(value))},delete:function(key){var index=keys.indexOf(key);index>-1&&(keys.splice(index,1),values.splice(index,1))}}}(),createEvent=function(name){return new Event(name,{bubbles:!0})};try{new Event("test")}catch(e){createEvent=function(name){var evt=document.createEvent("Event");return evt.initEvent(name,!0,!1),evt}}function assign(ta){if(ta&&ta.nodeName&&"TEXTAREA"===ta.nodeName&&!map.has(ta)){var heightOffset=null,clientWidth=null,cachedHeight=null,pageResize=function(){ta.clientWidth!==clientWidth&&update()},destroy=function(style){window.removeEventListener("resize",pageResize,!1),ta.removeEventListener("input",update,!1),ta.removeEventListener("keyup",update,!1),ta.removeEventListener("autosize:destroy",destroy,!1),ta.removeEventListener("autosize:update",update,!1),Object.keys(style).forEach((function(key){ta.style[key]=style[key]})),map.delete(ta)}.bind(ta,{height:ta.style.height,resize:ta.style.resize,overflowY:ta.style.overflowY,overflowX:ta.style.overflowX,wordWrap:ta.style.wordWrap});ta.addEventListener("autosize:destroy",destroy,!1),"onpropertychange"in ta&&"oninput"in ta&&ta.addEventListener("keyup",update,!1),window.addEventListener("resize",pageResize,!1),ta.addEventListener("input",update,!1),ta.addEventListener("autosize:update",update,!1),ta.style.overflowX="hidden",ta.style.wordWrap="break-word",map.set(ta,{destroy,update}),function(){var style=window.getComputedStyle(ta,null);"vertical"===style.resize?ta.style.resize="none":"both"===style.resize&&(ta.style.resize="horizontal"),heightOffset="content-box"===style.boxSizing?-(parseFloat(style.paddingTop)+parseFloat(style.paddingBottom)):parseFloat(style.borderTopWidth)+parseFloat(style.borderBottomWidth),isNaN(heightOffset)&&(heightOffset=0),update()}()}function changeOverflow(value){var width=ta.style.width;ta.style.width="0px",ta.offsetWidth,ta.style.width=width,ta.style.overflowY=value}function resize(){if(0!==ta.scrollHeight){var overflows=function(el){for(var arr=[];el&&el.parentNode&&el.parentNode instanceof Element;)el.parentNode.scrollTop&&arr.push({node:el.parentNode,scrollTop:el.parentNode.scrollTop}),el=el.parentNode;return arr}(ta),docTop=document.documentElement&&document.documentElement.scrollTop;ta.style.height="",ta.style.height=ta.scrollHeight+heightOffset+"px",clientWidth=ta.clientWidth,overflows.forEach((function(el){el.node.scrollTop=el.scrollTop})),docTop&&(document.documentElement.scrollTop=docTop)}}function update(){resize();var styleHeight=Math.round(parseFloat(ta.style.height)),computed=window.getComputedStyle(ta,null),actualHeight="content-box"===computed.boxSizing?Math.round(parseFloat(computed.height)):ta.offsetHeight;if(actualHeight<styleHeight?"hidden"===computed.overflowY&&(changeOverflow("scroll"),resize(),actualHeight="content-box"===computed.boxSizing?Math.round(parseFloat(window.getComputedStyle(ta,null).height)):ta.offsetHeight):"hidden"!==computed.overflowY&&(changeOverflow("hidden"),resize(),actualHeight="content-box"===computed.boxSizing?Math.round(parseFloat(window.getComputedStyle(ta,null).height)):ta.offsetHeight),cachedHeight!==actualHeight){cachedHeight=actualHeight;var evt=createEvent("autosize:resized");try{ta.dispatchEvent(evt)}catch(err){}}}}function destroy(ta){var methods=map.get(ta);methods&&methods.destroy()}function update(ta){var methods=map.get(ta);methods&&methods.update()}var autosize=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((autosize=function(el){return el}).destroy=function(el){return el},autosize.update=function(el){return el}):((autosize=function(el,options){return el&&Array.prototype.forEach.call(el.length?el:[el],(function(x){return assign(x)})),el}).destroy=function(el){return el&&Array.prototype.forEach.call(el.length?el:[el],destroy),el},autosize.update=function(el){return el&&Array.prototype.forEach.call(el.length?el:[el],update),el}),exports.default=autosize,module.exports=exports.default}(module,exports)})),marked=createCommonjsModule((function(module,exports){!function(root){var block={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:noop,table:noop,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function Lexer(options){this.tokens=[],this.tokens.links=Object.create(null),this.options=options||marked.defaults,this.rules=block.normal,this.options.pedantic?this.rules=block.pedantic:this.options.gfm&&(this.rules=block.gfm)}block._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,block._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,block.def=edit(block.def).replace("label",block._label).replace("title",block._title).getRegex(),block.bullet=/(?:[*+-]|\d{1,9}\.)/,block.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,block.item=edit(block.item,"gm").replace(/bull/g,block.bullet).getRegex(),block.list=edit(block.list).replace(/bull/g,block.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+block.def.source+")").getRegex(),block._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",block._comment=/<!--(?!-?>)[\s\S]*?-->/,block.html=edit(block.html,"i").replace("comment",block._comment).replace("tag",block._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),block.paragraph=edit(block._paragraph).replace("hr",block.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",block._tag).getRegex(),block.blockquote=edit(block.blockquote).replace("paragraph",block.paragraph).getRegex(),block.normal=merge({},block),block.gfm=merge({},block.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),block.pedantic=merge({},block.normal,{html:edit("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",block._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:noop,paragraph:edit(block.normal._paragraph).replace("hr",block.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",block.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),Lexer.rules=block,Lexer.lex=function(src,options){return new Lexer(options).lex(src)},Lexer.prototype.lex=function(src){return src=src.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(src,!0)},Lexer.prototype.token=function(src,top){var next,loose,cap,bull,b,item,listStart,listItems,t,space,i,tag,l,isordered,istask,ischecked;for(src=src.replace(/^ +$/gm,"");src;)if((cap=this.rules.newline.exec(src))&&(src=src.substring(cap[0].length),cap[0].length>1&&this.tokens.push({type:"space"})),cap=this.rules.code.exec(src)){var lastToken=this.tokens[this.tokens.length-1];src=src.substring(cap[0].length),lastToken&&"paragraph"===lastToken.type?lastToken.text+="\n"+cap[0].trimRight():(cap=cap[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?cap:rtrim(cap,"\n")}))}else if(cap=this.rules.fences.exec(src))src=src.substring(cap[0].length),this.tokens.push({type:"code",lang:cap[2]?cap[2].trim():cap[2],text:cap[3]||""});else if(cap=this.rules.heading.exec(src))src=src.substring(cap[0].length),this.tokens.push({type:"heading",depth:cap[1].length,text:cap[2]});else if((cap=this.rules.nptable.exec(src))&&(item={type:"table",header:splitCells(cap[1].replace(/^ *| *\| *$/g,"")),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3]?cap[3].replace(/\n$/,"").split("\n"):[]}).header.length===item.align.length){for(src=src.substring(cap[0].length),i=0;i<item.align.length;i++)/^ *-+: *$/.test(item.align[i])?item.align[i]="right":/^ *:-+: *$/.test(item.align[i])?item.align[i]="center":/^ *:-+ *$/.test(item.align[i])?item.align[i]="left":item.align[i]=null;for(i=0;i<item.cells.length;i++)item.cells[i]=splitCells(item.cells[i],item.header.length);this.tokens.push(item)}else if(cap=this.rules.hr.exec(src))src=src.substring(cap[0].length),this.tokens.push({type:"hr"});else if(cap=this.rules.blockquote.exec(src))src=src.substring(cap[0].length),this.tokens.push({type:"blockquote_start"}),cap=cap[0].replace(/^ *> ?/gm,""),this.token(cap,top),this.tokens.push({type:"blockquote_end"});else if(cap=this.rules.list.exec(src)){for(src=src.substring(cap[0].length),listStart={type:"list_start",ordered:isordered=(bull=cap[2]).length>1,start:isordered?+bull:"",loose:!1},this.tokens.push(listStart),listItems=[],next=!1,l=(cap=cap[0].match(this.rules.item)).length,i=0;i<l;i++)space=(item=cap[i]).length,~(item=item.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(space-=item.length,item=this.options.pedantic?item.replace(/^ {1,4}/gm,""):item.replace(new RegExp("^ {1,"+space+"}","gm"),"")),i!==l-1&&(b=block.bullet.exec(cap[i+1])[0],(bull.length>1?1===b.length:b.length>1||this.options.smartLists&&b!==bull)&&(src=cap.slice(i+1).join("\n")+src,i=l-1)),loose=next||/\n\n(?!\s*$)/.test(item),i!==l-1&&(next="\n"===item.charAt(item.length-1),loose||(loose=next)),loose&&(listStart.loose=!0),ischecked=void 0,(istask=/^\[[ xX]\] /.test(item))&&(ischecked=" "!==item[1],item=item.replace(/^\[[ xX]\] +/,"")),t={type:"list_item_start",task:istask,checked:ischecked,loose},listItems.push(t),this.tokens.push(t),this.token(item,!1),this.tokens.push({type:"list_item_end"});if(listStart.loose)for(l=listItems.length,i=0;i<l;i++)listItems[i].loose=!0;this.tokens.push({type:"list_end"})}else if(cap=this.rules.html.exec(src))src=src.substring(cap[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===cap[1]||"script"===cap[1]||"style"===cap[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(cap[0]):escape(cap[0]):cap[0]});else if(top&&(cap=this.rules.def.exec(src)))src=src.substring(cap[0].length),cap[3]&&(cap[3]=cap[3].substring(1,cap[3].length-1)),tag=cap[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[tag]||(this.tokens.links[tag]={href:cap[2],title:cap[3]});else if((cap=this.rules.table.exec(src))&&(item={type:"table",header:splitCells(cap[1].replace(/^ *| *\| *$/g,"")),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3]?cap[3].replace(/\n$/,"").split("\n"):[]}).header.length===item.align.length){for(src=src.substring(cap[0].length),i=0;i<item.align.length;i++)/^ *-+: *$/.test(item.align[i])?item.align[i]="right":/^ *:-+: *$/.test(item.align[i])?item.align[i]="center":/^ *:-+ *$/.test(item.align[i])?item.align[i]="left":item.align[i]=null;for(i=0;i<item.cells.length;i++)item.cells[i]=splitCells(item.cells[i].replace(/^ *\| *| *\| *$/g,""),item.header.length);this.tokens.push(item)}else if(cap=this.rules.lheading.exec(src))src=src.substring(cap[0].length),this.tokens.push({type:"heading",depth:"="===cap[2].charAt(0)?1:2,text:cap[1]});else if(top&&(cap=this.rules.paragraph.exec(src)))src=src.substring(cap[0].length),this.tokens.push({type:"paragraph",text:"\n"===cap[1].charAt(cap[1].length-1)?cap[1].slice(0,-1):cap[1]});else if(cap=this.rules.text.exec(src))src=src.substring(cap[0].length),this.tokens.push({type:"text",text:cap[0]});else if(src)throw new Error("Infinite loop on byte: "+src.charCodeAt(0));return this.tokens};var inline={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noop,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:noop,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function InlineLexer(links,options){if(this.options=options||marked.defaults,this.links=links,this.rules=inline.normal,this.renderer=this.options.renderer||new Renderer,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=inline.pedantic:this.options.gfm&&(this.options.breaks?this.rules=inline.breaks:this.rules=inline.gfm)}function Renderer(options){this.options=options||marked.defaults}function TextRenderer(){}function Parser(options){this.tokens=[],this.token=null,this.options=options||marked.defaults,this.options.renderer=this.options.renderer||new Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Slugger}function Slugger(){this.seen={}}function escape(html,encode){if(encode){if(escape.escapeTest.test(html))return html.replace(escape.escapeReplace,(function(ch){return escape.replacements[ch]}))}else if(escape.escapeTestNoEncode.test(html))return html.replace(escape.escapeReplaceNoEncode,(function(ch){return escape.replacements[ch]}));return html}function unescape(html){return html.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(_,n){return"colon"===(n=n.toLowerCase())?":":"#"===n.charAt(0)?"x"===n.charAt(1)?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""}))}function edit(regex,opt){return regex=regex.source||regex,opt=opt||"",{replace:function(name,val){return val=(val=val.source||val).replace(/(^|[^\[])\^/g,"$1"),regex=regex.replace(name,val),this},getRegex:function(){return new RegExp(regex,opt)}}}function cleanUrl(sanitize,base,href){if(sanitize){try{var prot=decodeURIComponent(unescape(href)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===prot.indexOf("javascript:")||0===prot.indexOf("vbscript:")||0===prot.indexOf("data:"))return null}base&&!originIndependentUrl.test(href)&&(href=function(base,href){baseUrls[" "+base]||(/^[^:]+:\/*[^/]*$/.test(base)?baseUrls[" "+base]=base+"/":baseUrls[" "+base]=rtrim(base,"/",!0));return base=baseUrls[" "+base],"//"===href.slice(0,2)?base.replace(/:[\s\S]*/,":")+href:"/"===href.charAt(0)?base.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+href:base+href}(base,href));try{href=encodeURI(href).replace(/%25/g,"%")}catch(e){return null}return href}inline._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",inline.em=edit(inline.em).replace(/punctuation/g,inline._punctuation).getRegex(),inline._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,inline._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,inline._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])?)+(?![-_])/,inline.autolink=edit(inline.autolink).replace("scheme",inline._scheme).replace("email",inline._email).getRegex(),inline._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,inline.tag=edit(inline.tag).replace("comment",block._comment).replace("attribute",inline._attribute).getRegex(),inline._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,inline._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,inline._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,inline.link=edit(inline.link).replace("label",inline._label).replace("href",inline._href).replace("title",inline._title).getRegex(),inline.reflink=edit(inline.reflink).replace("label",inline._label).getRegex(),inline.normal=merge({},inline),inline.pedantic=merge({},inline.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",inline._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",inline._label).getRegex()}),inline.gfm=merge({},inline.normal,{escape:edit(inline.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),inline.gfm.url=edit(inline.gfm.url,"i").replace("email",inline.gfm._extended_email).getRegex(),inline.breaks=merge({},inline.gfm,{br:edit(inline.br).replace("{2,}","*").getRegex(),text:edit(inline.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),InlineLexer.rules=inline,InlineLexer.output=function(src,links,options){return new InlineLexer(links,options).output(src)},InlineLexer.prototype.output=function(src){for(var link,text,href,title,cap,prevCapZero,out="";src;)if(cap=this.rules.escape.exec(src))src=src.substring(cap[0].length),out+=escape(cap[1]);else if(cap=this.rules.tag.exec(src))!this.inLink&&/^<a /i.test(cap[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(cap[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(cap[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(cap[0])&&(this.inRawBlock=!1),src=src.substring(cap[0].length),out+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(cap[0]):escape(cap[0]):cap[0];else if(cap=this.rules.link.exec(src)){var lastParenIndex=findClosingBracket(cap[2],"()");if(lastParenIndex>-1){var linkLen=4+cap[1].length+lastParenIndex;cap[2]=cap[2].substring(0,lastParenIndex),cap[0]=cap[0].substring(0,linkLen).trim(),cap[3]=""}src=src.substring(cap[0].length),this.inLink=!0,href=cap[2],this.options.pedantic?(link=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(href))?(href=link[1],title=link[3]):title="":title=cap[3]?cap[3].slice(1,-1):"",href=href.trim().replace(/^<([\s\S]*)>$/,"$1"),out+=this.outputLink(cap,{href:InlineLexer.escapes(href),title:InlineLexer.escapes(title)}),this.inLink=!1}else if((cap=this.rules.reflink.exec(src))||(cap=this.rules.nolink.exec(src))){if(src=src.substring(cap[0].length),link=(cap[2]||cap[1]).replace(/\s+/g," "),!(link=this.links[link.toLowerCase()])||!link.href){out+=cap[0].charAt(0),src=cap[0].substring(1)+src;continue}this.inLink=!0,out+=this.outputLink(cap,link),this.inLink=!1}else if(cap=this.rules.strong.exec(src))src=src.substring(cap[0].length),out+=this.renderer.strong(this.output(cap[4]||cap[3]||cap[2]||cap[1]));else if(cap=this.rules.em.exec(src))src=src.substring(cap[0].length),out+=this.renderer.em(this.output(cap[6]||cap[5]||cap[4]||cap[3]||cap[2]||cap[1]));else if(cap=this.rules.code.exec(src))src=src.substring(cap[0].length),out+=this.renderer.codespan(escape(cap[2].trim(),!0));else if(cap=this.rules.br.exec(src))src=src.substring(cap[0].length),out+=this.renderer.br();else if(cap=this.rules.del.exec(src))src=src.substring(cap[0].length),out+=this.renderer.del(this.output(cap[1]));else if(cap=this.rules.autolink.exec(src))src=src.substring(cap[0].length),href="@"===cap[2]?"mailto:"+(text=escape(this.mangle(cap[1]))):text=escape(cap[1]),out+=this.renderer.link(href,null,text);else if(this.inLink||!(cap=this.rules.url.exec(src))){if(cap=this.rules.text.exec(src))src=src.substring(cap[0].length),this.inRawBlock?out+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(cap[0]):escape(cap[0]):cap[0]):out+=this.renderer.text(escape(this.smartypants(cap[0])));else if(src)throw new Error("Infinite loop on byte: "+src.charCodeAt(0))}else{if("@"===cap[2])href="mailto:"+(text=escape(cap[0]));else{do{prevCapZero=cap[0],cap[0]=this.rules._backpedal.exec(cap[0])[0]}while(prevCapZero!==cap[0]);text=escape(cap[0]),href="www."===cap[1]?"http://"+text:text}src=src.substring(cap[0].length),out+=this.renderer.link(href,null,text)}return out},InlineLexer.escapes=function(text){return text?text.replace(InlineLexer.rules._escapes,"$1"):text},InlineLexer.prototype.outputLink=function(cap,link){var href=link.href,title=link.title?escape(link.title):null;return"!"!==cap[0].charAt(0)?this.renderer.link(href,title,this.output(cap[1])):this.renderer.image(href,title,escape(cap[1]))},InlineLexer.prototype.smartypants=function(text){return this.options.smartypants?text.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):text},InlineLexer.prototype.mangle=function(text){if(!this.options.mangle)return text;for(var ch,out="",l=text.length,i=0;i<l;i++)ch=text.charCodeAt(i),Math.random()>.5&&(ch="x"+ch.toString(16)),out+="&#"+ch+";";return out},Renderer.prototype.code=function(code,infostring,escaped){var lang=(infostring||"").match(/\S*/)[0];if(this.options.highlight){var out=this.options.highlight(code,lang);null!=out&&out!==code&&(escaped=!0,code=out)}return lang?'<pre><code class="'+this.options.langPrefix+escape(lang,!0)+'">'+(escaped?code:escape(code,!0))+"</code></pre>\n":"<pre><code>"+(escaped?code:escape(code,!0))+"</code></pre>"},Renderer.prototype.blockquote=function(quote){return"<blockquote>\n"+quote+"</blockquote>\n"},Renderer.prototype.html=function(html){return html},Renderer.prototype.heading=function(text,level,raw,slugger){return this.options.headerIds?"<h"+level+' id="'+this.options.headerPrefix+slugger.slug(raw)+'">'+text+"</h"+level+">\n":"<h"+level+">"+text+"</h"+level+">\n"},Renderer.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},Renderer.prototype.list=function(body,ordered,start){var type=ordered?"ol":"ul";return"<"+type+(ordered&&1!==start?' start="'+start+'"':"")+">\n"+body+"</"+type+">\n"},Renderer.prototype.listitem=function(text){return"<li>"+text+"</li>\n"},Renderer.prototype.checkbox=function(checked){return"<input "+(checked?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Renderer.prototype.paragraph=function(text){return"<p>"+text+"</p>\n"},Renderer.prototype.table=function(header,body){return body&&(body="<tbody>"+body+"</tbody>"),"<table>\n<thead>\n"+header+"</thead>\n"+body+"</table>\n"},Renderer.prototype.tablerow=function(content){return"<tr>\n"+content+"</tr>\n"},Renderer.prototype.tablecell=function(content,flags){var type=flags.header?"th":"td";return(flags.align?"<"+type+' align="'+flags.align+'">':"<"+type+">")+content+"</"+type+">\n"},Renderer.prototype.strong=function(text){return"<strong>"+text+"</strong>"},Renderer.prototype.em=function(text){return"<em>"+text+"</em>"},Renderer.prototype.codespan=function(text){return"<code>"+text+"</code>"},Renderer.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},Renderer.prototype.del=function(text){return"<del>"+text+"</del>"},Renderer.prototype.link=function(href,title,text){if(null===(href=cleanUrl(this.options.sanitize,this.options.baseUrl,href)))return text;var out='<a href="'+escape(href)+'"';return title&&(out+=' title="'+title+'"'),out+=">"+text+"</a>"},Renderer.prototype.image=function(href,title,text){if(null===(href=cleanUrl(this.options.sanitize,this.options.baseUrl,href)))return text;var out='<img src="'+href+'" alt="'+text+'"';return title&&(out+=' title="'+title+'"'),out+=this.options.xhtml?"/>":">"},Renderer.prototype.text=function(text){return text},TextRenderer.prototype.strong=TextRenderer.prototype.em=TextRenderer.prototype.codespan=TextRenderer.prototype.del=TextRenderer.prototype.text=function(text){return text},TextRenderer.prototype.link=TextRenderer.prototype.image=function(href,title,text){return""+text},TextRenderer.prototype.br=function(){return""},Parser.parse=function(src,options){return new Parser(options).parse(src)},Parser.prototype.parse=function(src){this.inline=new InlineLexer(src.links,this.options),this.inlineText=new InlineLexer(src.links,merge({},this.options,{renderer:new TextRenderer})),this.tokens=src.reverse();for(var out="";this.next();)out+=this.tok();return out},Parser.prototype.next=function(){return this.token=this.tokens.pop(),this.token},Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},Parser.prototype.parseText=function(){for(var body=this.token.text;"text"===this.peek().type;)body+="\n"+this.next().text;return this.inline.output(body)},Parser.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,unescape(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 i,row,cell,j,header="",body="";for(cell="",i=0;i<this.token.header.length;i++)cell+=this.renderer.tablecell(this.inline.output(this.token.header[i]),{header:!0,align:this.token.align[i]});for(header+=this.renderer.tablerow(cell),i=0;i<this.token.cells.length;i++){for(row=this.token.cells[i],cell="",j=0;j<row.length;j++)cell+=this.renderer.tablecell(this.inline.output(row[j]),{header:!1,align:this.token.align[j]});body+=this.renderer.tablerow(cell)}return this.renderer.table(header,body);case"blockquote_start":for(body="";"blockquote_end"!==this.next().type;)body+=this.tok();return this.renderer.blockquote(body);case"list_start":body="";for(var ordered=this.token.ordered,start=this.token.start;"list_end"!==this.next().type;)body+=this.tok();return this.renderer.list(body,ordered,start);case"list_item_start":body="";var loose=this.token.loose,checked=this.token.checked,task=this.token.task;for(this.token.task&&(body+=this.renderer.checkbox(checked));"list_item_end"!==this.next().type;)body+=loose||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(body,task,checked);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 errMsg='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(errMsg);console.log(errMsg)}},Slugger.prototype.slug=function(value){var slug=value.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(slug)){var originalSlug=slug;do{this.seen[originalSlug]++,slug=originalSlug+"-"+this.seen[originalSlug]}while(this.seen.hasOwnProperty(slug))}return this.seen[slug]=0,slug},escape.escapeTest=/[&<>"']/,escape.escapeReplace=/[&<>"']/g,escape.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},escape.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escape.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var baseUrls={},originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function noop(){}function merge(obj){for(var target,key,i=1;i<arguments.length;i++)for(key in target=arguments[i])Object.prototype.hasOwnProperty.call(target,key)&&(obj[key]=target[key]);return obj}function splitCells(tableRow,count){var cells=tableRow.replace(/\|/g,(function(match,offset,str){for(var escaped=!1,curr=offset;--curr>=0&&"\\"===str[curr];)escaped=!escaped;return escaped?"|":" |"})).split(/ \|/),i=0;if(cells.length>count)cells.splice(count);else for(;cells.length<count;)cells.push("");for(;i<cells.length;i++)cells[i]=cells[i].trim().replace(/\\\|/g,"|");return cells}function rtrim(str,c,invert){if(0===str.length)return"";for(var suffLen=0;suffLen<str.length;){var currChar=str.charAt(str.length-suffLen-1);if(currChar!==c||invert){if(currChar===c||!invert)break;suffLen++}else suffLen++}return str.substr(0,str.length-suffLen)}function findClosingBracket(str,b){if(-1===str.indexOf(b[1]))return-1;for(var level=0,i=0;i<str.length;i++)if("\\"===str[i])i++;else if(str[i]===b[0])level++;else if(str[i]===b[1]&&--level<0)return i;return-1}function checkSanitizeDeprecation(opt){opt&&opt.sanitize&&!opt.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 marked(src,opt,callback){if(null==src)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof src)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(src)+", string expected");if(callback||"function"==typeof opt){callback||(callback=opt,opt=null),checkSanitizeDeprecation(opt=merge({},marked.defaults,opt||{}));var tokens,pending,highlight=opt.highlight,i=0;try{tokens=Lexer.lex(src,opt)}catch(e){return callback(e)}pending=tokens.length;var done=function(err){if(err)return opt.highlight=highlight,callback(err);var out;try{out=Parser.parse(tokens,opt)}catch(e){err=e}return opt.highlight=highlight,err?callback(err):callback(null,out)};if(!highlight||highlight.length<3)return done();if(delete opt.highlight,!pending)return done();for(;i<tokens.length;i++)!function(token){"code"!==token.type?--pending||done():highlight(token.text,token.lang,(function(err,code){return err?done(err):null==code||code===token.text?--pending||done():(token.text=code,token.escaped=!0,void(--pending||done()))}))}(tokens[i])}else try{return opt&&(opt=merge({},marked.defaults,opt)),checkSanitizeDeprecation(opt),Parser.parse(Lexer.lex(src,opt),opt)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(opt||marked.defaults).silent)return"<p>An error occurred:</p><pre>"+escape(e.message+"",!0)+"</pre>";throw e}}noop.exec=noop,marked.options=marked.setOptions=function(opt){return merge(marked.defaults,opt),marked},marked.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new Renderer,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},marked.defaults=marked.getDefaults(),marked.Parser=Parser,marked.parser=Parser.parse,marked.Renderer=Renderer,marked.TextRenderer=TextRenderer,marked.Lexer=Lexer,marked.lexer=Lexer.lex,marked.InlineLexer=InlineLexer,marked.inlineLexer=InlineLexer.output,marked.Slugger=Slugger,marked.parse=marked,module.exports=marked}()})),escapes={"&":"&","<":"<",">":">",'"':""","'":"'"},unescapes={"&":"&","<":"<",">":">",""":'"',"'":"'"},rescaped=/(&|<|>|"|')/g,runescaped=/[&<>"']/g;function escapeHtmlChar(match){return escapes[match]}function unescapeHtmlChar(match){return unescapes[match]}function escapeHtml(text){return null==text?"":String(text).replace(runescaped,escapeHtmlChar)}function unescapeHtml(html){return null==html?"":String(html).replace(rescaped,unescapeHtmlChar)}escapeHtml.options=unescapeHtml.options={};var she={encode:escapeHtml,escape:escapeHtml,decode:unescapeHtml,unescape:unescapeHtml,version:"1.0.0-browser"};var assignment_1=function assignment(result){for(var item,key,stack=Array.prototype.slice.call(arguments,1);stack.length;)for(key in item=stack.shift())item.hasOwnProperty(key)&&("[object Object]"===Object.prototype.toString.call(result[key])?result[key]=assignment(result[key],item[key]):result[key]=item[key]);return result},lowercase=function(string){return"string"==typeof string?string.toLowerCase():string};function asKey(accumulator,item){return accumulator[item]=!0,accumulator}var toMap_1=function(list){return list.reduce(asKey,{})},attributes_uris=toMap_1(["background","base","cite","href","longdesc","src","usemap"]),elements={voids:toMap_1(["area","br","col","hr","img","wbr","input","base","basefont","link","meta"])},rstart=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,rend=/^<\s*\/\s*([\w:-]+)[^>]*>/,rattrs=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,rtag=/^</,rtagend=/^<\s*\//;var parser_1=function(html,handler){for(var chars,stack=function(){var stack=[];return stack.lastItem=function(){return stack[stack.length-1]},stack}(),last=html;html;)parsePart();function parsePart(){chars=!0,function(){"\x3c!--"===html.substr(0,4)?function(){var index=html.indexOf("--\x3e");index>=0&&(handler.comment&&handler.comment(html.substring(4,index)),html=html.substring(index+3),chars=!1)}():rtagend.test(html)?parseEdge(rend,parseEndTag):rtag.test(html)&&parseEdge(rstart,parseStartTag);!function(){if(!chars)return;var text,index=html.indexOf("<");index>=0?(text=html.substring(0,index),html=html.substring(index)):(text=html,html="");handler.chars&&handler.chars(text)}()}();var same=html===last;last=html,same&&(html="")}function parseEdge(regex,parser){var match=html.match(regex);match&&(html=html.substring(match[0].length),match[0].replace(regex,parser),chars=!1)}function parseStartTag(tag,tagName,rest,unary){var attrs={},low=lowercase(tagName),u=elements.voids[low]||!!unary;rest.replace(rattrs,(function(match,name,doubleQuotedValue,singleQuotedValue,unquotedValue){attrs[name]=void 0===doubleQuotedValue&&void 0===singleQuotedValue&&void 0===unquotedValue?void 0:she.decode(doubleQuotedValue||singleQuotedValue||unquotedValue||"")})),u||stack.push(low),handler.start&&handler.start(low,attrs,u)}function parseEndTag(tag,tagName){var i,pos=0,low=lowercase(tagName);if(low)for(pos=stack.length-1;pos>=0&&stack[pos]!==low;pos--);if(pos>=0){for(i=stack.length-1;i>=pos;i--)handler.end&&handler.end(stack[i]);stack.length=pos}}parseEndTag()};var sanitizer_1=function(buffer,options){var context,o=options||{};return reset(),{start:function(tag,attrs,unary){var low=lowercase(tag);if(context.ignoring)return void ignore(low);if(-1===(o.allowedTags||[]).indexOf(low))return void ignore(low);if(o.filter&&!o.filter({tag:low,attrs}))return void ignore(low);out("<"),out(low),Object.keys(attrs).forEach((function(key){var value=attrs[key],classesOk=(o.allowedClasses||{})[low]||[],attrsOk=(o.allowedAttributes||{})[low]||[],lkey=lowercase(key);("class"===lkey&&-1===attrsOk.indexOf(lkey)?(value=value.split(" ").filter((function(className){return classesOk&&-1!==classesOk.indexOf(className)})).join(" ").trim()).length:-1!==attrsOk.indexOf(lkey)&&(!0!==attributes_uris[lkey]||function(text){var start=text[0];if("#"===start||"/"===start)return!0;var colon=text.indexOf(":");if(-1===colon)return!0;var questionmark=text.indexOf("?");if(-1!==questionmark&&colon>questionmark)return!0;var hash=text.indexOf("#");if(-1!==hash&&colon>hash)return!0;return o.allowedSchemes.some((function(scheme){return 0===text.indexOf(scheme+":")}))}(value)))&&(out(" "),out(key),"string"==typeof value&&(out('="'),out(she.encode(value)),out('"')))})),out(unary?"/>":">")},end:function(tag){var low=lowercase(tag);-1!==(o.allowedTags||[]).indexOf(low)&&!1===context.ignoring?(out("</"),out(low),out(">")):unignore(low)},chars:function(text){!1===context.ignoring&&out(o.transformText?o.transformText(text):text)}};function out(value){buffer.push(value)}function ignore(tag){elements.voids[tag]||(!1===context.ignoring?context={ignoring:tag,depth:1}:context.ignoring===tag&&context.depth++)}function unignore(tag){context.ignoring===tag&&--context.depth<=0&&reset()}function reset(){context={ignoring:!1,depth:0}}},defaults_1={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 insane(html,options,strict){var buffer=[],configuration=!0===strict?options:assignment_1({},defaults_1,options),handler=sanitizer_1(buffer,configuration);return parser_1(html,handler),buffer.join("")}insane.defaults=defaults_1;var insane_1=insane;const MODES=["editor","preview"],SHORTCUTS={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> "}}};marked.setOptions({headerIds:!1,breaks:!0,highlight(code,lang="markup"){try{const grammar=pathOr(prism.languages.markup,lang,prism.languages);return prism.highlight(code,grammar,lang)}catch(e){return code}}}),insane_1.defaults.allowedAttributes.th=["align"],insane_1.defaults.allowedAttributes.td=["align"];const __vue_component__$L=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"bg-surface shadow"},[_c("AwTabNav",{staticClass:"px-3",attrs:{items:_vm.switchers,active:_vm.activeSwitcher},on:{"update:active":function($event){_vm.activeSwitcher=$event}}}),_vm._v(" "),_c("div",{staticClass:"relative"},[_c("div",{staticClass:"flex border-b",style:_vm.isEditorVisible},_vm._l(_vm.shortcuts,(function(ref,i){var name=ref.name,props=function(obj,exclude){var target={};for(var k in obj)Object.prototype.hasOwnProperty.call(obj,k)&&-1===exclude.indexOf(k)&&(target[k]=obj[k]);return target}(ref,["name"]);return _c("AwButton",_vm._b({key:name+"-"+i,attrs:{theme:"icon"},on:{click:function($event){return _vm._applyShortcut(name)}}},"AwButton",props,!1))})),1),_vm._v(" "),_c("textarea",{ref:"editor",staticClass:"font-mono bg-surface min-h-xxs max-h-screen w-full p-3",style:_vm.isEditorVisible,domProps:{value:_vm.source},on:{change:function($event){return _vm.$emit("change",$event.target.value)}}}),_vm._v(" "),_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.isPreview,expression:"isPreview"}],staticClass:"absolute inset-0 overflow-auto p-3 content",domProps:{innerHTML:_vm._s(_vm.html)}})])],1)},staticRenderFns:[]},void 0,{name:"AwMarkdownEditor",model:{prop:"source",event:"change"},props:{source:{type:String,default:""}},data:()=>({activeSwitcher:0,html:""}),computed:{switchers(){return MODES.map(mode=>this.$t(`AwMarkdownEditor.${mode}`))},isPreview(){return"preview"===MODES[this.activeSwitcher]},isEditorVisible(){return{visibility:this.isPreview?"hidden":"visible"}},shortcuts(){return toPairs(SHORTCUTS).map(([name,{icon}])=>({name,icon,text:this.$t(`AwMarkdownEditor.${name}`)}))}},watch:{isPreview(isActive){isActive&&(this.html=this.getHtml(),this.$emit("change",this.$refs.editor.value))}},mounted(){this.$nextTick(()=>{autosize(this.$refs.editor)})},beforeDestroy(){autosize.destroy(this.$refs.editor)},methods:{getHtml(){return insane_1(marked(this.source))},async _applyShortcut(name){const shortcut=SHORTCUTS[name],editor=this.$refs.editor;if(!shortcut||!editor)return;const{start="",end=""}=pathOr({},"token",shortcut);let selStart=editor.selectionStart,selEnd=editor.selectionEnd,{startChunk,selection,endChunk}=this._getSourceChunks(selStart,selEnd,this.source);this._isTokenApplied(start,end,startChunk,endChunk)?(startChunk=startChunk.substr(0,startChunk.length-start.length),endChunk=endChunk.substr(end.length),selStart-=start.length,selEnd-=start.length):(startChunk+=start,endChunk=end+endChunk,selStart+=start.length,selEnd+=start.length),editor.value=startChunk+selection+endChunk,this.$emit("change",editor.value),await this.$nextTick(),editor.focus(),editor.setSelectionRange(selStart,selEnd)},_getSourceChunks:(selStart,selEnd,source)=>({startChunk:take(selStart,source),selection:slice(source,selStart,selEnd),endChunk:takeLast(source.length-selEnd,source)}),_isTokenApplied:(startToken,endToken,startChunk,endChunk)=>startToken&&endToken&&function endsWith(suffix,list){return 1===arguments.length?_list=>endsWith(suffix,_list):list.endsWith(suffix)}(startToken,startChunk)&&startsWith(endToken,endChunk)}},void 0,!1,void 0,!1,void 0,void 0,void 0);let hasPassiveEvents=!1;if("undefined"!=typeof window){const passiveTestOptions={get passive(){hasPassiveEvents=!0}};window.addEventListener("testPassive",null,passiveTestOptions),window.removeEventListener("testPassive",null,passiveTestOptions)}const isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform);let previousBodyOverflowSetting,previousBodyPaddingRight,locks=[],documentListenerAdded=!1,initialClientY=-1;const allowTouchMove=el=>locks.some(lock=>!(!lock.options.allowTouchMove||!lock.options.allowTouchMove(el))),preventDefault=rawEvent=>{const e=rawEvent||window.event;return!!allowTouchMove(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))},disableBodyScroll=(targetElement,options)=>{if(isIosDevice){if(!targetElement)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(targetElement&&!locks.some(lock=>lock.targetElement===targetElement)){const lock={targetElement,options:options||{}};locks=[...locks,lock],targetElement.ontouchstart=event=>{1===event.targetTouches.length&&(initialClientY=event.targetTouches[0].clientY)},targetElement.ontouchmove=event=>{1===event.targetTouches.length&&((event,targetElement)=>{const clientY=event.targetTouches[0].clientY-initialClientY;!allowTouchMove(event.target)&&(targetElement&&0===targetElement.scrollTop&&clientY>0?preventDefault(event):(targetElement=>!!targetElement&&targetElement.scrollHeight-targetElement.scrollTop<=targetElement.clientHeight)(targetElement)&&clientY<0?preventDefault(event):event.stopPropagation())})(event,targetElement)},documentListenerAdded||(document.addEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!0)}}else{(options=>{setTimeout(()=>{if(void 0===previousBodyPaddingRight){const reserveScrollBarGap=!!options&&!0===options.reserveScrollBarGap,scrollBarGap=window.innerWidth-document.documentElement.clientWidth;reserveScrollBarGap&&scrollBarGap>0&&(previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight=`${scrollBarGap}px`)}void 0===previousBodyOverflowSetting&&(previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden")})})(options);const lock={targetElement,options:options||{}};locks=[...locks,lock]}},enableBodyScroll=targetElement=>{if(isIosDevice){if(!targetElement)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");targetElement.ontouchstart=null,targetElement.ontouchmove=null,locks=locks.filter(lock=>lock.targetElement!==targetElement),documentListenerAdded&&0===locks.length&&(document.removeEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!1)}else locks=locks.filter(lock=>lock.targetElement!==targetElement),locks.length||setTimeout(()=>{void 0!==previousBodyPaddingRight&&(document.body.style.paddingRight=previousBodyPaddingRight,previousBodyPaddingRight=void 0),void 0!==previousBodyOverflowSetting&&(document.body.style.overflow=previousBodyOverflowSetting,previousBodyOverflowSetting=void 0)})},DISABLE_SCROLL_THEMES=["default","fullscreen","bottom"];let _uniqModalId=0;const __vue_component__$M=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("Transition",{attrs:{name:"modal-transition-"+_vm.theme,appear:""},on:{"before-enter":_vm._preOpen,"before-appear":_vm._preOpen,"after-leave":_vm._afterLeave}},[_c("aside",{directives:[{name:"show",rawName:"v-show",value:_vm.isOpened,expression:"isOpened"}],class:[_vm.className,"is-"+_vm.theme],attrs:{tabindex:_vm.isOpened?"0":"-1",role:"dialog","aria-hidden":_vm.isOpened?"false":"true","aria-label":_vm.title}},[_c("div",{ref:"container",class:_vm.elClasses.container,on:{mousedown:function($event){return $event.target!==$event.currentTarget?null:_vm.selfClose($event)}}},[_c("div",{class:_vm.elClasses.dialog,attrs:{role:"document"}},[_c("div",{class:_vm.elClasses.header},[_c("div",{class:_vm.elClasses.title},[_vm._v("\n "+_vm._s(_vm.title)+"\n ")]),_vm._v(" "),_c("AwButton",{class:_vm.elClasses.close,attrs:{title:_vm.$t("AwModal.close"),"aria-label":_vm.$t("AwModal.close"),theme:"ghost",color:"default","content-class":"p-2",icon:"close",tabindex:"0"},on:{click:function($event){return $event.preventDefault(),_vm.close()}}})],1),_vm._v(" "),_vm.$scopedSlots.subtitle?_c("div",{class:_vm.elClasses.subtitle},[_vm._t("subtitle")],2):_vm._e(),_vm._v(" "),_c("div",{class:_vm.elClasses.body},[_vm.stay||_vm.showContent?_c("div",{class:[_vm.elClasses.content,_vm.$scopedSlots.buttons?_vm.elClasses.content+"--buttons":""]},[_vm._t("default",null,{closeModal:_vm.close})],2):_vm._e()]),_vm._v(" "),_vm.$scopedSlots.buttons?_c("div",{class:[_vm.elClasses.buttons,"aw-button-group"]},[_vm._t("buttons")],2):_vm._e()])])])])},staticRenderFns:[]},void 0,{name:"AwModal",_config:{baseClass:"aw-modal",stay:!1,bgClickClose:!0},components:{AwButton:__vue_component__$5},props:{title:String,stay:{type:Boolean,default(){return conf(this,"stay")}},bgClickClose:{type:Boolean,default(){return conf(this,"bgClickClose")}},name:{type:String,default:()=>`modal-${_uniqModalId++}`},param:{type:[String,Boolean],default:"modal"},theme:{type:String,default:"default"},disableScroll:{type:Boolean,default(){return DISABLE_SCROLL_THEMES.includes(this.theme)}},className:{type:String,default(){return conf(this,"baseClass","modal")}}},data:()=>({showContent:!1,lastFocused:null,localOpened:!1}),computed:{eventBus(){return conf(this,"eventBus",this.$root)},isOpened(){return this.paramComputed?this.$route.query[this.paramComputed]===this.name:this.localOpened},elClasses(){return getBemClasses(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(isOpened){if(!isOpened){let stopper={prevented:!1,preventClose(){this.prevented=!0}};this.eventBus.$emit(`modal::${this.name}:before-close`,stopper),stopper.prevented&&this.open()}},showContent(isVisible){if(isVisible){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(enable){enable?enableBodyScroll(this.$el):this.disableScroll&&disableBodyScroll(this.$el,{reserveScrollBarGap:!0})},_preOpen(){this.showContent=!0,this._toggleBodyScroll(!1)},_afterLeave(){this._toggleBodyScroll(!0),this.showContent=!1},open(){this.paramComputed?this.$router.push(mergeRouteQuery({[this.paramComputed]:this.name},this.$route)):this.localOpened=!0},selfClose(){if(this.fullscreen||!this.bgClickClose)return;let self=this;window.addEventListener("mouseup",(function onUp(e){window.removeEventListener("mouseup",onUp),e.target===self.$refs.container&&self.close()}))},close(){this.paramComputed?this.$router.push(mergeRouteQuery({[this.paramComputed]:null},this.$route)):this.localOpened=!1,this.eventBus.$emit(`modal::${this.name}:closed`),this.$emit("closed")},_escButtonHandler($event){27===$event.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 __vue_component__$N=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{on:{keydown:function($event){return!$event.type.indexOf("key")&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")?null:_vm._onEnterKeydown($event)}}},[_vm._l(_vm.models,(function(model,index){return _c("div",{key:model.id||"new-block-"+index,class:{"mt-4":index>0}},[_vm._t("title",[_c("h5",{staticClass:"flex items-center draggable"},[_c("span",[_vm._v("\n "+_vm._s(_vm.$t("AwMultiBlockBuilder.title",{title:_vm.title,iteration:index+1}))+"\n ")]),_vm._v(" "),_c("AwButton",{attrs:{icon:"close",theme:"icon",text:_vm.$t("AwMultiBlockBuilder.remove")},on:{click:function($event){return _vm.remove(model)}}})],1)],null,{title:_vm.title,iteration:index+1,collection:_vm.collection,model,collectionCount:_vm.collectionCount,remove:_vm.remove}),_vm._v(" "),_vm._t("default",null,null,{model,remove:_vm.remove})],2)})),_vm._v(" "),_vm.collectionCount<_vm.max?_c("div",{staticClass:"mt-4"},[_vm._t("add",[_c("AwLink",{staticClass:"text-sm font-bold uppercase",on:{click:_vm.add}},[_vm._v("\n "+_vm._s(_vm.$t("AwMultiBlockBuilder.add",{title:_vm.title}))+"\n ")])],null,{collection:_vm.collection,title:_vm.title,add:_vm.add})],2):_vm._e(),_vm._v(" "),_vm._t("save",[_c("div",{staticClass:"mt-8"},[_c("AwButton",{attrs:{disabled:_vm.buttonDisabled},on:{click:function($event){return _vm.collection.save()}}},[_vm._v("\n "+_vm._s(_vm.$t("AwMultiBlockBuilder.save"))+"\n ")])],1)],null,{collectionChanged:_vm.collectionChanged,collection:_vm.collection})],2)},staticRenderFns:[]},void 0,{name:"AwMultiBlockBuilder",mixins:[exterNextFieldMixin],props:{collection:{type:Object,required:!0,validator:validateBySchema({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 prop(key,obj){return 1===arguments.length?_obj=>prop(key,_obj):obj?obj[key]:void 0}("_attributes"))},collectionCount(){return this.models.length},collectionChanged(){return!equals(this.modelsSnapshot,this.currentModels)},collectionRequest(){return this.collection.saving||this.collection.loading},buttonDisabled(){return!this.collectionChanged||this.collectionRequest}},watch:{collection:{handler(newCollection,oldCollection){oldCollection&&(this._removeCollectionListener("fetch",this.fetchListener,oldCollection),this._removeCollectionListener("save",this.saveListener,oldCollection)),newCollection.on("fetch",this.fetchListener),newCollection.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(model){model&&(this.collection.remove(model),this.$emit("remove:model",this.collection))},fetchListener($event){this._updateSnapshot($event),this.$emit("fetch:collection",this.collection,$event)},saveListener($event){this._updateSnapshot($event),this.$emit("save:collection",this.collection,$event)},_updateSnapshot($event={}){isNil($event.error)&&(this.modelsSnapshot=clone(this.currentModels))},_removeCollectionListener(event,listener,collection=this.collection){const listeners=collection._listeners[event]||[],index=listeners.indexOf(listener);index>-1&&listeners.splice(index,1)},_onEnterKeydownAction(){this.buttonDisabled||this.collection.save()}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var icons={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 __vue_component__$O=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _vm.icon?_c("svg",{attrs:{width:_vm.$attrs.width||_vm.icon.width,height:_vm.$attrs.height||_vm.icon.height,viewBox:_vm.icon.viewBox},domProps:{innerHTML:_vm._s(_vm.icon.content)}}):_vm._e()},staticRenderFns:[]},void 0,{name:"AwSvgImage",props:{name:{type:String,required:!0}},computed:{icon(){return icons[this.name]}}},void 0,!1,void 0,!1,void 0,void 0,void 0),ucFirst=(text="")=>text.charAt(0).toUpperCase()+text.substr(1);const __vue_component__$P=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _vm.columns.length?_c("thead",[_c("tr",{staticClass:"bg-muted-dark border-b"},_vm._l(_vm.columns,(function(column,key){return _c("th",{key,staticClass:"py-3 px-4 lg:py-5 lg:px-6 text-left font-normal",class:[column.align,column.orderable?"hover:bg-muted-darker cursor-pointer":""],on:{click:function($event){_vm.$listeners.click&&_vm.$listeners.click(column,key)}}},[_vm._t("th",[_c("span",{class:_vm.getArrowClasses(column)},[_vm._v("\n "+_vm._s(column.text)+"\n ")])],null,{column,key})],2)})),0)]):_vm._e()},staticRenderFns:[]},void 0,{name:"AwTableHead",props:{columns:{type:Array,default:()=>[],validator:validateBySchema([{text:"string","align?":"string"}])}},methods:{getArrowClasses(col){return{"inline-flex":!0,"col-orderable":col.orderable,"col-orderable--asc":this._isParamEqual(col,"asc",!0),"col-orderable--desc":this._isParamEqual(col,"desc")}},_isParamEqual(col,type,checkDefault=!1){if(!col.orderable)return!1;const q=this.$route.query[col.orderable.param];return checkDefault?q===col.orderable[`${type}Value`]||this._isColDefault(col):q===col.orderable[`${type}Value`]},_isColDefault(col){return!(Object.keys(this.$route.query).indexOf(col.orderable.param)>-1)&&col.orderable.default}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$Q=normalizeComponent({},void 0,{name:"AwTableCol",props:{field:{type:String,default:null},title:{type:String,default:null},textAlign:{type:String,default:"left",validator:value=>["text-left","text-center","text-right"].includes(`text-${value}`)},verticalAlign:{type:String,validator:value=>["align-bottom","align-middle","align-top"].includes(`align-${value}`),default:"top"},priority:{type:Number,default:0},orderable:{type:[Boolean,Object],default:!1}},render:h=>h("td",{},"stub")},void 0,void 0,void 0,!1,void 0,void 0,void 0);const __vue_component__$R=normalizeComponent({render:function(_h,_vm){var _c=_vm._c;return _c("td",_vm._b({directives:[{name:"show",rawName:"v-show",value:_vm.props.show,expression:"props.show"}],staticClass:"w-12 px-5 border-l cursor-pointer outline-none text-center align-middle",class:{"bg-muted":_vm.props.active,"border-t":_vm.props.index>0},attrs:{role:"button",tabindex:_vm.props.show?0:-1}},"td",_vm.$options.dataAttrs(_vm.props),!1),[_c("AwIcon",{staticClass:"transition-200",class:{"rotate-180":_vm.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:props=>({"data-priority":"-Infinity","data-toggle-hidden":props.index})},void 0,!0,void 0,!1,void 0,void 0,void 0);const __vue_component__$S=normalizeComponent({render:function(_h,_vm){var _c=_vm._c;return _c("tr",[_c("td",{staticClass:"p-2 align-top"},[_vm.props.title?_c("strong",[_vm._v(_vm._s(_vm.props.title)+":")]):_vm._e()]),_vm._v(" "),_c("td",{staticClass:"p-2"},[_vm._t("default",[_vm._v(_vm._s(_vm.props.cell))],null,_vm.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 getCellData(field,rowData){return field?path(field,rowData):rowData}const __vue_component__$T=normalizeComponent({},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(h,{props}){const{rowData,rowIndex:index,active,hasRowClickListener,visibleColumns,hiddenColumns}=props,hasHidden=!!hiddenColumns.length;return[h("tr",{staticClass:"bg-surface hover:bgcolor-muted hover:text-on-muted",class:{"cursor-pointer":hasRowClickListener},attrs:{"data-row-index":hasRowClickListener?index:null}},visibleColumns.map(({field,slot,verticalAlign,textAlign,priority,staticClass})=>h("td",{staticClass:"py-3 px-4 lg:px-6",class:[staticClass,`align-${verticalAlign}`,{[`text-${textAlign}`]:textAlign,"border-t":index>0}],attrs:{"data-priority":index>0?null:priority}},function(cell,slot,index){return slot?slot({cell,index}):cell}(getCellData(field,rowData),slot,index))).concat(h(__vue_component__$R,{props:{show:hasHidden,active,index}}))),h("tr",{class:{"cursor-pointer":hasRowClickListener},attrs:{"data-row-index":hasRowClickListener?index:null}},[h("AwAccordionFold",{props:{tag:"td",show:active},staticClass:"bg-surface border-t",attrs:{colspan:visibleColumns.length+1}},[h("table",{staticClass:"m-2 lg:mx-4"},[h("tbody",{},hiddenColumns.map(({field,title,slot})=>h(__vue_component__$S,{props:{title,cell:getCellData(field,rowData),index},scopedSlots:{default:slot}})))])])])]}},void 0,void 0,void 0,!1,void 0,void 0,void 0);const __vue_component__$U=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("table",{staticClass:"w-full text-sm leading-snug overflow-hidden max-w-full shadow-md"},[_vm._t("thead",[_c("AwTableHead",{attrs:{columns:_vm.theadVisible},on:{click:_vm.onTheadClick}})],{thead:_vm.theadVisible}),_vm._v(" "),_c("tbody",{on:{click:_vm.handleRowClick}},[_vm._t("tr",[_vm._l(_vm.rows,(function(rowData,rowIndex){return[_c("AwTableRow",_vm._b({key:rowData.id||rowIndex},"AwTableRow",Object.assign({},{rowData,rowIndex,active:_vm.openedRow===rowIndex,hasRowClickListener:_vm.hasRowClickListener},_vm.groupedColumns),!1))]}))],{rows:_vm.rows})],2),_vm._v(" "),_vm._t("tfoot")],2)},staticRenderFns:[]},void 0,{name:"AwTable",components:{AwTableHead:__vue_component__$P,AwTableRow:__vue_component__$T},props:{rows:{type:Array,required:!0},verticalAlign:{type:String,validator:value=>["align-bottom","align-middle","align-top"].includes(`align-${value}`),default:"middle"},orderable:{type:Object,default:null}},data:()=>({hiddenColsIndexes:[],openedRow:null,isDefaultColSet:!1}),computed:{_tableBuilderConfig(){return pathOr({},"$awesConfig.AwTableBuilder",this)},columns(){const _slots=this.$slots.default;return Array.isArray(_slots)?_slots.filter(this._isColumnComponent).map(({componentOptions,data},i)=>{const props=componentOptions.propsData,slot=path("scopedSlots.default",data),staticClass=pathOr("","staticClass",data),field=path("field",props),title=pathOr(field?ucFirst(field):"","title",props),colOrderableConfig=pathOr(!1,"orderable",props),orderable=this._getOredableConfig(colOrderableConfig,field);return{field,verticalAlign:pathOr(this.verticalAlign,"verticalAlign",props),priority:pathOr(i,"priority",props),title,textAlign:path("textAlign",props),slot,staticClass,orderable}}):keys(this.rows[0]).map((field,priority)=>({field,title:ucFirst(field),priority,verticalAlign:this.verticalAlign}))},groupedColumns(){const columns=this.columns,visibleColumns=[],hiddenColumns=[];for(let i=0,max=columns.length;i<max;i++)this.hiddenColsIndexes.includes(i)?hiddenColumns.push(columns[i]):visibleColumns.push(columns[i]);return{visibleColumns,hiddenColumns}},theadVisible(){const{visibleColumns,hiddenColumns}=this.groupedColumns;return visibleColumns.map(({title,textAlign,orderable})=>({text:title,align:textAlign&&`text-${textAlign}`,orderable})).concat(hiddenColumns.length?[{text:""}]:[])},hasRowClickListener(){return"click:row"in this.$listeners}},watch:{rows(){this.openedRow=null}},mounted(){this.$scopedSlots.tr||this.setResizeListener()},methods:{toggleRow(index){this.openedRow=this.openedRow===index?null:index},onTheadClick(column,key){this.$emit("click:head",this.columns[key])},_getOredableConfig(colConfig,field){const baseConfig=mergeDeep(this._tableBuilderConfig,this.orderable||{});if(is$1(Object,colConfig)){const config={...colConfig};delete config.param;const conf=mergeDeep(baseConfig,config);return!this.isDefaultColSet&&conf.default?this.isDefaultColSet=!0:conf.default=!1,this._unmaskOrderableConfig(conf,field)}return is$1(Boolean,colConfig)&&!colConfig?null:(!this.isDefaultColSet&&baseConfig.default?this.isDefaultColSet=!0:baseConfig.default=!1,this._unmaskOrderableConfig(baseConfig,field))},_unmaskOrderableConfig(orderable,field){const templateDefaultVal=orderable.templateValue||field,ascValue=this._unmaskParams(orderable.ascTemplate,templateDefaultVal),descValue=this._unmaskParams(orderable.descTemplate,templateDefaultVal);return{...orderable,ascValue,descValue}},_unmaskParams:(str,value,mask="%s")=>str.split(mask).join(value),setResizeListener(){let resizeTm;const onResize=()=>{clearTimeout(resizeTm),resizeTm=setTimeout(async()=>{this.hiddenColsIndexes.length&&(this.hiddenColsIndexes=[],await this.$nextTick());const newIndexes=this._getHiddenColsIndexes();newIndexes.length||(this.openedRow=null),this.hiddenColsIndexes=newIndexes},500)};this.$nextTick(()=>{this.hiddenColsIndexes=this._getHiddenColsIndexes()}),window.addEventListener("resize",onResize),this.$once("hook:beforeDestroy",()=>{clearTimeout(resizeTm),window.removeEventListener("resize",onResize)})},checkIfButtonOrLink(el){const elements=["BUTTON","A"];let node=el;for(;node;){if(elements.indexOf(node.tagName.toUpperCase())>-1)return!0;node=node.parentElement}return!1},handleRowClick($event){const target=$event.target;if(this.checkIfButtonOrLink(target))return;const toggler=target.hasAttribute("data-toggle-hidden")?target:target.closest("[data-toggle-hidden]");if(toggler){const index=parseInt(toggler.getAttribute("data-toggle-hidden"));return void this.toggleRow(index)}if(!this.hasRowClickListener)return;const row=target.closest("[data-row-index]");if(row){const index=parseInt(row.getAttribute("data-row-index")),data=this.rows[index];this.$emit("click:row",data,index,$event)}},_isColumnComponent:vNode=>((text="")=>reduce((str,chunk)=>chunk?str+ucFirst(chunk):str,"",split("-",text)))(path("componentOptions.tag",vNode))===__vue_component__$Q.name,_getParentEl(){return pathOr(null,"$el.parentElement",this)},_getFirstRow(){return Array.from(this.$el.querySelectorAll("tbody > :first-child > [data-priority]"))},_hasOverflowWidth(){const parent=this._getParentEl();return!!parent&&parent.clientWidth<this.$el.scrollWidth},_sortColumnsByPriority:columns=>columns.map((el,index)=>({el,index})).sort((a,b)=>parseFloat(a.el.getAttribute("data-priority"))-parseFloat(b.el.getAttribute("data-priority"))),_getHiddenColsIndexes(){const columns=this._getFirstRow();let hiddenIndexes=[];if(this._hasOverflowWidth()){const sorted=this._sortColumnsByPriority(columns);let maxWidth=this._getParentEl().clientWidth;hiddenIndexes=sorted.reduce((acc,{el,index})=>(maxWidth-=el.offsetWidth,maxWidth<50?acc.concat(index):acc),[])}return hiddenIndexes}}},void 0,!1,void 0,!1,void 0,void 0,void 0),DEFAULT_LIMITS=[15,50,100];const __vue_component__$V=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"relative"},[_vm.isEmpty&&!_vm.collection.loading?_c("div",[_vm.isWatchParamsPresent?_vm._e():_vm._t("empty-container",[_c("AwCard",{staticClass:"flex items-center justify-center min-h-full mb-5",class:"h-"+_vm.defaultHeight},[_c("div",{staticClass:"text-center"},[_vm._t("empty-icon",[_c("AwSvgImage",{staticClass:"block m-auto mb-4",attrs:{name:"empty"}})]),_vm._v(" "),_vm._t("empty-title",[_c("div",{staticClass:"text-disabled mb-4"},[_vm._v("\n "+_vm._s(_vm.$t("AwTableBuilder.empty"))+"\n ")])]),_vm._v(" "),_vm._t("empty-button")],2)])]),_vm._v(" "),_vm.isWatchParamsPresent?_vm._t("empty-filter-container",[_c("AwCard",{staticClass:"flex items-center justify-center min-h-full mb-5",class:"h-"+_vm.defaultHeight},[_c("div",{staticClass:"text-center"},[_vm._t("empty-filter-icon",[_c("AwSvgImage",{staticClass:"block m-auto mb-4",attrs:{name:"empty"}})]),_vm._v(" "),_vm._t("empty-filter-title",[_c("div",{staticClass:"text-disabled mb-4"},[_vm._v("\n "+_vm._s(_vm.$t("AwTableBuilder.emptyFilter"))+"\n ")])]),_vm._v(" "),_vm._t("empty-filter-button")],2)])]):_vm._e()],2):_vm._e(),_vm._v(" "),_vm.$scopedSlots.list?_c("ul",{staticClass:"list-none",style:_vm.collection.loading?"filter: blur(3px);":null},_vm._l(_vm.items,(function(item){return _c("li",{key:item.id},[_vm._t("list",null,{item})],2)})),0):_vm._e(),_vm._v(" "),_vm.items&&_vm.items.length&&!_vm.$scopedSlots.list?_c("AwTable",_vm._g({key:"table",ref:"table",style:_vm.collection.loading?"filter: blur(3px);":null,attrs:{rows:_vm.items,"vertical-align":_vm.verticalAlign,orderable:_vm.orderable},on:{"click:head":_vm.onTheadClick},scopedSlots:_vm._u([{key:"thead",fn:function(ref){var thead=ref.thead;return[_vm._t("thead",null,{thead})]}}],null,!0)},_vm.tableListeners),[_vm._v(" "),_vm._t("default"),_vm._v(" "),_vm.$slots.dropdown||_vm.$scopedSlots.dropdown?_c("AwTableCol",{staticClass:"w-20 lg:w-24",attrs:{priority:1},scopedSlots:_vm._u([{key:"default",fn:function(ref){var cell=ref.cell;return[_c("AwContextMenu",[_vm._t("dropdown",null,{cell})],2)]}}],null,!0)}):_vm._e()],2):_vm.collection.loading&&!_vm.$scopedSlots.list?_c("div",{key:"empty-loading-container"},[_vm._t("empty-loading-container",[_c("AwCard",{staticClass:"flex items-center justify-center min-h-full mb-5",class:"h-"+_vm.defaultHeight})])],2):_vm._e(),_vm._v(" "),null===_vm.pagination.total||_vm.isEmpty?_vm._e():_c("AwPagination",_vm._b({staticClass:"mt-3 lg:mt-8",attrs:{page:_vm.page,limits:_vm.limitsMerged,"arrow-nav":_vm.arrowNav},on:{"click:page":function($event){_vm.page=$event},"click:limit":function($event){_vm.limit=$event}}},"AwPagination",_vm.pagination,!1)),_vm._v(" "),_vm.collection.loading?_c("div",{staticClass:"absolute inset-0 flex items-center justify-center",class:"h-"+_vm.defaultHeight},[_vm._t("loading",[_c("AwChip",{staticClass:"bgcolor-muted-dark"},[_c("AwSvgImage",{staticClass:"h-5 w-5",attrs:{slot:"left",name:"spinner"},slot:"left"}),_vm._v("\n "+_vm._s(_vm.$t("AwTableBuilder.loading"))+"\n ")],1)])],2):_vm._e()],1)},staticRenderFns:[]},void 0,{name:"AwTableBuilder",mixins:[WatchParams],components:{AwCard:__vue_component__$i,AwChip:__vue_component__$k,AwSvgImage:__vue_component__$O,AwPagination:__vue_component__$K},props:{collection:{type:Object,required:!0,validator:obj=>Array.isArray(obj.models)&&"function"==typeof obj.fetch&&"function"==typeof obj.on},pageParam:{type:String,default:"page"},limitParam:{type:String,default:"limit"},limits:{type:Array,default:()=>DEFAULT_LIMITS,validator:arr=>arr.every(el=>"number"==typeof el)},scrollOnPage:{type:Boolean,default:!0},verticalAlign:String,defaultHeight:{type:String,default:"50vh",validator:value=>["10vh","30vh","50vh","70vh"].includes(value)},arrowNav:{type:Boolean,default:!0},orderable:{type:Object,default:null}},data:()=>({pagination:{total:null,limit:DEFAULT_LIMITS[0]}}),computed:{page:{get(){return Number(this.$route.query[this.pageParam]||1)},set(val){this.$router.replace(mergeRouteQuery({[this.pageParam]:1===val?null:String(val)},this.$route))}},limit:{get(){return Number(this.$route.query[this.limitParam]||DEFAULT_LIMITS[0])},set(val){const limit=parseInt(val)===this.limits[0]?null:String(val);this.$router.replace(mergeRouteQuery({[this.pageParam]:null,[this.limitParam]:limit},this.$route))}},items(){return this.collection.models},isEmpty(){return 0===this.collection.models.length},isWatchParamsPresent(){return!(!this.watchParams||!this.watchParams.length)&&this.watchParams.some(el=>!!this.$route.query[el])},placeholderRows(){return[...Array(this.limit).keys()].map(()=>({}))},fetchAllQuery(){const params={page:this.page,limit:this.limit,...this.fetchQuery()},orderableParam=this._currentOrderableConfig.param;return this.$route.query[orderableParam]&&(params[orderableParam]=this.$route.query[orderableParam]),params},limitsMerged(){return this.limits.includes(this.pagination.limit)?this.limits:this.limits.concat(this.pagination.limit).sort((a,b)=>a>b)},tableListeners(){return filter((val,key)=>"click:row"===key,this.$listeners)},_currentOrderableConfig(){return mergeDeep(pathOr({},"$awesConfig.AwTableBuilder",this),pathOr({},"orderable",this))}},watch:{page:{handler(newVal,oldVal){oldVal&&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(params={}){this.collection.fetch({params:{...this.fetchAllQuery,...params}}).then(this._setPagination)},onTheadClick(col){const orderable=col.orderable;if(this.$emit("click:head",col),orderable){const isAskValPresent=this.$route.query[orderable.param]===orderable.ascValue,isDescValPresent=this.$route.query[orderable.param]===orderable.descValue,paramValue=isAskValPresent||this._isColDefault(col)?orderable.descValue:isDescValPresent?null:orderable.ascValue;this.$router.replace(mergeRouteQuery({[orderable.param]:paramValue},this.$route)),this.fetch({[orderable.param]:paramValue})}},_isColDefault(col){return!(Object.keys(this.$route.query).indexOf(col.orderable.param)>-1)&&col.orderable.default},_fetchFromWatcher(){1!==this.page?this.$router.push(mergeRouteQuery({page:null},this.$route)):this.fetch()},_fetchOnDelete(){if(this.items&&!this.items.length&&this.page>1){const page=this.page>2?this.page-1:null;this.$router.push(mergeRouteQuery({page},this.$route))}this.fetch()},_setPagination(fetched){const total=pathOr(null,"response.data.meta.total",fetched),limit=pathOr(DEFAULT_LIMITS[0],"response.data.meta.per_page",fetched);this.limit!==limit&&(this.limit=limit),this.pagination={total,limit}},_scrollTop(){if(this.$isServer)return;const table=this.$el,{y=0}=table.getBoundingClientRect();window.pageYOffset+y<window.innerHeight?document.body.scrollIntoView({behavior:"smooth"}):y<0&&table.scrollIntoView({behavior:"smooth"})}}},void 0,!1,void 0,!1,void 0,void 0,void 0);let _fileId=0;const __vue_component__$W=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{on:{dragenter:function($event){_vm.dragOver=!0}}},[_c("label",{staticClass:"relative p-4 rounded border overflow-y-hidden flex items-center justify-center cursor-pointer group",on:{dragleave:function($event){_vm.dragOver=!1},dragover:function($event){$event.preventDefault()},drop:function($event){return $event.preventDefault(),_vm._onDrop($event)}}},[_c("input",_vm._b({staticClass:"sr-only",attrs:{type:"file",accept:_vm.format?_vm.formatString:null,multiple:_vm.multiple},on:{change:function($event){return _vm._uploadFile($event.target.files)}}},"input",_vm.mergedAttrs,!1)),_vm._v(" "),_c("span",{staticClass:"text-lg pointer-events-none opacity-60 group-hover:opacity-90 block text-center",class:{"opacity-90":_vm.dragOver}},[_vm._t("drag-over",[_c("AwIcon",{attrs:{name:"upload",size:"4xl"}}),_vm._v(" "),_c("span",{staticClass:"block mt-2"},[_vm._v("\n "+_vm._s(_vm.$t("AwUploader.drop"))+"\n ")])],{dragOver:_vm.dragOver})],2)]),_vm._v(" "),_vm._t("file-list",[_c("AwUploaderFiles",{attrs:{files:_vm.filesStats,"remove-file":_vm.removeFile}})],null,{files:_vm.filesStats,removeFile:_vm.removeFile}),_vm._v(" "),_vm.name?[_vm._l(_vm.files,(function(ref){var uploadedId=ref.uploadedId;return[uploadedId?_c("input",{key:uploadedId,attrs:{type:"hidden",tabindex:"-1",name:_vm.name},domProps:{value:uploadedId}}):_vm._e()]}))]:_vm._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:path("data.fileId")},multiple:Boolean},data:()=>({dragOver:!1,files:{},cancelFiles:{}}),filters:{bytesToMb(val){let mb=val/1024/1024;return(mb<1?mb.toFixed(3):mb.toFixed(1))+"Mb"}},computed:{formatString(){return this.format.map(extension=>`*.${extension}`).join(", ")},maxSizeBytes(){return 1024*this.size*1024},filesStats(){return"Object"!==type(obj=this.files)?[]:Object.values(obj);var obj},mergedAttrs(){return{...this.$attrs,"data-enter-skip":""}}},methods:{_validateFile(file){const errors=[],fileName=file.name;return this.format.length&&!this._extensionMatch(file)&&errors.push(this.$t("AwUploader.errorExtension",{fileName})),this.size&&file.size>this.maxSizeBytes&&errors.push(this.$t("AwUploader.errorSize",{fileName})),errors},_createFileRecord(name){const id=_fileId++;return this.$set(this.files,id,{id,name,progress:0,loaded:!1}),id},_onDrop($event){this.dragOver=!1;const files=$event.dataTransfer.files;this._uploadFile(this.multiple?files:[files[0]])},_uploadFile(files){for(var i=files.length-1;i>=0;i--){const file=files[i],errors=this._validateFile(file);if(errors.length)return void this.$emit("error",errors);const id=this._createFileRecord(file.name),data=new FormData;data.append("file",file),this.cancelFiles[id]=CancelToken_1.source(),this.$axios.request({method:"post",url:this.url,data,cancelToken:this.cancelFiles[id].token,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:this._setFileProgress(id)}).then(data=>{delete this.cancelFiles[id];const fileId=this.getFileId(data);this.$set(this.files[id],"uploadedId",fileId),this.$set(this.files[id],"loaded",!0)}).catch(e=>{isCancel(e)||console.log(e)})}},removeFile(id){const fileLoader=this.cancelFiles[id];fileLoader&&(fileLoader.cancel(),delete this.cancelFiles[id]),this.$delete(this.files,id)},_setFileProgress(id){return $event=>{const{total,loaded}=$event,progress=Math.round(loaded/total*100);this.$set(this.files[id],"progress",progress)}},_getFileExtension:fileName=>fileName.split(".").pop(),_extensionMatch(file){let extension=this._getFileExtension(file.name);return this.format.includes(extension)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$X=normalizeComponent({render:function(_h,_vm){var _c=_vm._c;return _vm.props.files.length?_c("AwTable",{staticClass:"table-fixed",class:[_vm.data.class,_vm.data.staticClass],style:[_vm.data.style,_vm.data.staticStyle],attrs:{rows:_vm.props.files},scopedSlots:_vm._u([{key:"thead",fn:function(){return[_c("thead")]},proxy:!0}],null,!1,717023432)},[_vm._v(" "),_c("AwTableCol",{staticClass:"text-center w-1/6",attrs:{"vertical-align":"middle"},scopedSlots:_vm._u([{key:"default",fn:function(ref){var index=ref.index;return[_vm._v(_vm._s(index+1))]}}],null,!1,3036303403)}),_vm._v(" "),_c("AwTableCol",{staticClass:"truncate",attrs:{field:"name","vertical-align":"middle"}}),_vm._v(" "),_c("AwTableCol",{staticClass:"hidden md:table-cell text-center",attrs:{"vertical-align":"middle"},scopedSlots:_vm._u([{key:"default",fn:function(ref){var file=ref.cell;return[_vm._v("\n "+_vm._s(file.loaded?_vm.parent.$t("AwUploader.loaded"):file.progress+"%")+"\n ")]}}],null,!1,3359254715)}),_vm._v(" "),_c("AwTableCol",{staticClass:"text-center w-1/6",attrs:{"vertical-align":"middle"},scopedSlots:_vm._u([{key:"default",fn:function(ref){var file=ref.cell;return[_c("AwButton",{attrs:{theme:"icon",icon:"close",size:"sm",text:_vm.parent.$t("AwUploader.remove")},on:{click:function($event){return _vm.props.removeFile(file.id)}}})]}}],null,!1,2055640295)})],1):_vm._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 __vue_component__$Y=normalizeComponent({render:function(_h,_vm){var _c=_vm._c;return _c("span",{staticClass:"flex items-center",class:[_vm.data.staticClass,_vm.data.class],style:[_vm.data.staticStyle,_vm.data.style]},[_c("AwAvatar",{attrs:{size:_vm.props.hideName?36:22,src:_vm.props.src,name:_vm.props.name,"is-colored":_vm.$options.isColor(_vm.props.src,_vm.props.name),type:_vm.$options.getType(_vm.props.src,_vm.props.hideName)}}),_vm._v(" "),_vm.props.hideName?_vm._e():_c("span",{staticClass:"ml-2"},[_c("span",[_vm._v(_vm._s(_vm.props.name))])])],1)},staticRenderFns:[]},void 0,{name:"AwAvatar",components:{AwAvatar:__vue_component__$2},props:{src:{type:String,default:""},name:{type:String,default:""},hideName:{type:Boolean,default:!1}},isColor:(src,name)=>!(""===src&&(""===name||""===name.replace(/ /g,""))),getType:(src,hideName)=>""!==src&&src||hideName?"initials":"no-img"},void 0,!0,void 0,!1,void 0,void 0,void 0);const __vue_component__$Z=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",[_c("button",{staticClass:"align-middle focus:outline-none rounded-full focus:shadow-outline",attrs:{"aria-label":_vm.$t("AwUserMenu.openMenu")},on:{click:function($event){_vm.isOpened=!_vm.isOpened}}},[_c("AwUserpic",{attrs:{src:_vm.avatar,name:_vm.name,"hide-name":""}})],1),_vm._v(" "),_c("AwDropdown",{staticClass:"mt-1 lg:mt-0",staticStyle:{width:"300px"},attrs:{show:_vm.isOpened,options:{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"computeStyles",options:{adaptive:!1}}]}},on:{"update:show":function($event){_vm.isOpened=$event}}},[_vm.name||_vm.info?_c("div",{staticClass:"p-6 bg-muted"},[_vm.name?_c("h5",{staticClass:"text-xl font-semibold"},[_vm._v("\n "+_vm._s(_vm.name)+"\n ")]):_vm._e(),_vm._v(" "),_vm.info?_c("p",{staticClass:"mb-0 mt-1 text-xs text-grey leading-snug",domProps:{innerHTML:_vm._s(_vm.info)}}):_vm._e()]):_vm._e(),_vm._v(" "),_vm.$slots.default?[_c("hr"),_vm._v(" "),_c("div",{staticClass:"px-6 pb-4 "},[_vm._t("default")],2)]:_vm._e(),_vm._v(" "),_c("hr"),_vm._v(" "),_c("div",{staticClass:"px-6 py-2"},[_c("AwSwitcher",{attrs:{checked:_vm.darkTheme,label:_vm.$t("AwUserMenu.darkTheme")},on:{change:function($event){return _vm.$emit("switch-dark-theme",$event)}}})],1)],2)],1)},staticRenderFns:[]},void 0,{name:"AwUserMenu",components:{AwUserpic:__vue_component__$Y,AwDropdown:__vue_component__$a,AwSwitcher:__vue_component__$w},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 __vue_component__$_=normalizeComponent({render:function(){var _h=this.$createElement,_c=this._self._c||_h;return _c("transition",{attrs:{name:"collapse"},on:{enter:this.open,"after-enter":this.removeMaxHeight,leave:this.close,"after-leave":this.removeMaxHeight}},[_c("div",{directives:[{name:"show",rawName:"v-show",value:this.show,expression:"show"}],ref:"wrapper",staticClass:"aw-toggler overflow-hidden"},[_c("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 maxHeight=this.$refs.wrapper.scrollHeight;this.$refs.wrapper.style.maxHeight=`${maxHeight}px`},removeMaxHeight(){this.$refs.wrapper.style.maxHeight=null}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const __vue_component__$$=normalizeComponent({},void 0,{name:"AwContextMenu",mixins:[arrowFocusMixin],props:{options:{type:Object,default:()=>({})},buttonClass:{type:String,default:""}},render(h){const slotContextList=this.$slots.default.filter(el=>!!el.tag).map(el=>h("li",{staticClass:"aw-cm-item"},[{...el,data:{...el.data,attrs:{...el.data.attrs,"data-arrow-focus":""}}}])),renderList=h("ul",{class:{"list-none":!0,"mb-0":!0,"aw-context-menu__list":!0},style:{marginBottom:0}},slotContextList),dropdown=h("AwDropdown",{ref:"drop",props:{show:this.isOpened,options:this.options},class:{"w-20":!0,"aw-context-menu__toggler":!0},scopedSlots:{default:()=>renderList},on:{"update:show":val=>this.isOpened=val}}),button=h("AwButton",{props:{theme:"icon",icon:"more"},staticClass:this.buttonClass,attrs:{"data-arrow-focus":""},on:{click:this.toggle}});return h("div",{staticClass:"aw-context-menu",on:{keydown:this.onKeydown}},[button,dropdown])},data:()=>({isOpened:!1}),methods:{toggle(){this.isOpened=!this.isOpened},onKeydown($event){"ArrowDown"===$event.key&&($event.stopPropagation(),this._arrowFocusItem(1,$event)),"ArrowUp"===$event.key&&($event.stopPropagation(),this._arrowFocusItem(-1,$event))}}},void 0,void 0,void 0,!1,void 0,void 0,void 0);var components=Object.freeze({__proto__:null,AwAccordionFold:__vue_component__,AwAvatar:__vue_component__$2,AwInfo:__vue_component__$3,AwButton:__vue_component__$5,AwBadge:__vue_component__$6,AwButtonNav:__vue_component__$9,AwLink:__vue_component__$4,AwDropdown:__vue_component__$a,AwDropdownButton:__vue_component__$b,AwCalendar:__vue_component__$g,AwCalendarView:__vue_component__$h,AwCard:__vue_component__$i,AwChart:__vue_component__$j,AwChip:__vue_component__$k,AwChipSelect:__vue_component__$l,AwCropper:__vue_component__$m,AwCodeSnippet:__vue_component__$n,AwContentWrapper:__vue_component__$o,AwGrid:__vue_component__$p,AwForm:__vue_component__$q,AwInput:__vue_component__$r,AwCheckbox:__vue_component__$s,AwDate:__vue_component__$t,AwRadio:__vue_component__$u,AwSearch:__vue_component__$v,AwSwitcher:__vue_component__$w,AwTextarea:__vue_component__$x,AwTimelineBuilder:__vue_component__$y,AwCode:__vue_component__$z,AwPassword:__vue_component__$A,AwTel:__vue_component__$B,AwSelect:__vue_component__$C,AwAddress:__vue_component__$D,AwIcon:__vue_component__$1,AwLayoutDefault:__vue_component__$H,AwLayoutFrameCenter:__vue_component__$I,AwPage:__vue_component__$J,AwPagination:__vue_component__$K,AwMarkdownEditor:__vue_component__$L,AwModal:__vue_component__$M,AwMultiBlockBuilder:__vue_component__$N,AwSlider:__vue_component__$7,AwSvgImage:__vue_component__$O,AwTabNav:__vue_component__$8,AwTable:__vue_component__$U,AwTableBuilder:__vue_component__$V,AwTableCol:__vue_component__$Q,AwUploader:__vue_component__$W,AwUploaderFiles:__vue_component__$X,AwUserpic:__vue_component__$Y,AwUserMenu:__vue_component__$Z,AwToggler:__vue_component__$_,AwContextMenu:__vue_component__$$});const POPPERS=new Map;function showTooltip(){const tooltip=this.__tooltip__,placement=tooltip.__placement__,options=tooltip.__options__;tooltip.setAttribute("data-visible","");const modifiers=[{name:"arrow",options:{padding:6}},{name:"preventOverflow",options:{padding:16}}],offset=pathOr([0,6],"offset",options);offset&&modifiers.push({name:"offset",options:{offset}});const popper=createPopper(this,tooltip,{placement,modifiers});POPPERS.set(tooltip,popper)}const EVENTS=[{names:["mouseenter","focus"],handler:showTooltip},{names:["mouseleave","blur"],handler:function(){const tooltip=this.__tooltip__;POPPERS.get(tooltip).destroy(),tooltip.removeAttribute("data-visible")}}];function toggleEvents(el,on=!1,$events=EVENTS){const useMethod=on?"addEventListener":"removeEventListener";$events.forEach(({names,handler})=>{names.forEach(name=>{el[useMethod](name,handler)})})}function _updateTooltipContent(tooltip,content){return tooltip.__content__=content,tooltip.innerHTML=content+"</span><span data-popper-arrow></span>",tooltip}function _getContent(value){return isType("String",value)?value:pathOr("","content",value)}function _getOptions(value){return isType("Object",value)?omit("content",value):{}}function unbind(el){if(el.__tooltip__){clearTimeout(el.__async_tooltip__);const tooltip=el.__tooltip__,popper=POPPERS.get(tooltip);popper&&(popper.destroy(),POPPERS.delete(tooltip)),toggleEvents(el,!1),tooltip.parentElement&&tooltip.parentElement.removeChild(tooltip),tooltip.onclick=null,delete tooltip.__placement__,delete tooltip.__options__,delete tooltip.__content__,delete el.__tooltip__,delete el.__async_tooltip__}}function bind(el,{value,arg="top",modifiers}){const content=_getContent(value);if(content){const options=_getOptions(value);el.__tooltip__=function(content,options,placement){const tooltip=document.createElement("div");let cssClass=pathOr("","class",options);const id=pathOr(null,"id",options),onclick=pathOr(F,"onclick",options);return isType("Function",onclick)&&(cssClass+=" cursor-pointer",tooltip.onclick=onclick),tooltip.__placement__=placement,tooltip.__options__=clone(options),tooltip.className="aw-tooltip "+cssClass,id&&tooltip.setAttribute("id",id),_updateTooltipContent(tooltip,content),tooltip}(content,options,arg),modifiers.prepend?el.__async_tooltip__=setTimeout(()=>{el.parentElement.insertBefore(el.__tooltip__,el),POPPERS.get(el.__tooltip__).update()},10):document.body.appendChild(el.__tooltip__),modifiers.show?showTooltip.call(el):toggleEvents(el,!0)}}var tooltip={bind,update:function(el,{value,arg="top",modifiers}){const content=_getContent(value);if(content&&!el.__tooltip__)return void bind(el,{value,arg,modifiers});if(!content)return void unbind(el);const options=_getOptions(value);if(arg!==el.__tooltip__.__placement__||!equals(options,el.__tooltip__.__options__))return unbind(el),void bind(el,{value,arg,modifiers});content!==el.__tooltip__.__content__&&_updateTooltipContent(el.__tooltip__,content)},unbind},emptyObject=Object.freeze({});
|
|
16
|
+
/*!
|
|
17
|
+
* Vue.js v2.6.11
|
|
18
|
+
* (c) 2014-2019 Evan You
|
|
19
|
+
* Released under the MIT License.
|
|
20
|
+
*/function isUndef(v){return null==v}function isDef(v){return null!=v}function isTrue(v){return!0===v}function isPrimitive(value){return"string"==typeof value||"number"==typeof value||"symbol"==typeof value||"boolean"==typeof value}function isObject$1(obj){return null!==obj&&"object"==typeof obj}var _toString=Object.prototype.toString;function toRawType(value){return _toString.call(value).slice(8,-1)}function isPlainObject(obj){return"[object Object]"===_toString.call(obj)}function isRegExp(v){return"[object RegExp]"===_toString.call(v)}function isValidArrayIndex(val){var n=parseFloat(String(val));return n>=0&&Math.floor(n)===n&&isFinite(val)}function isPromise(val){return isDef(val)&&"function"==typeof val.then&&"function"==typeof val.catch}function toString$1(val){return null==val?"":Array.isArray(val)||isPlainObject(val)&&val.toString===_toString?JSON.stringify(val,null,2):String(val)}function toNumber$1(val){var n=parseFloat(val);return isNaN(n)?val:n}function makeMap(str,expectsLowerCase){for(var map=Object.create(null),list=str.split(","),i=0;i<list.length;i++)map[list[i]]=!0;return expectsLowerCase?function(val){return map[val.toLowerCase()]}:function(val){return map[val]}}var isBuiltInTag=makeMap("slot,component",!0),isReservedAttribute=makeMap("key,ref,slot,slot-scope,is");function remove(arr,item){if(arr.length){var index=arr.indexOf(item);if(index>-1)return arr.splice(index,1)}}var hasOwnProperty$1=Object.prototype.hasOwnProperty;function hasOwn(obj,key){return hasOwnProperty$1.call(obj,key)}function cached(fn){var cache=Object.create(null);return function(str){return cache[str]||(cache[str]=fn(str))}}var camelizeRE=/-(\w)/g,camelize=cached((function(str){return str.replace(camelizeRE,(function(_,c){return c?c.toUpperCase():""}))})),capitalize=cached((function(str){return str.charAt(0).toUpperCase()+str.slice(1)})),hyphenateRE=/\B([A-Z])/g,hyphenate=cached((function(str){return str.replace(hyphenateRE,"-$1").toLowerCase()}));var bind$1=Function.prototype.bind?function(fn,ctx){return fn.bind(ctx)}:function(fn,ctx){function boundFn(a){var l=arguments.length;return l?l>1?fn.apply(ctx,arguments):fn.call(ctx,a):fn.call(ctx)}return boundFn._length=fn.length,boundFn};function toArray(list,start){start=start||0;for(var i=list.length-start,ret=new Array(i);i--;)ret[i]=list[i+start];return ret}function extend(to,_from){for(var key in _from)to[key]=_from[key];return to}function toObject(arr){for(var res={},i=0;i<arr.length;i++)arr[i]&&extend(res,arr[i]);return res}function noop(a,b,c){}var no=function(a,b,c){return!1},identity=function(_){return _};function looseEqual(a,b){if(a===b)return!0;var isObjectA=isObject$1(a),isObjectB=isObject$1(b);if(!isObjectA||!isObjectB)return!isObjectA&&!isObjectB&&String(a)===String(b);try{var isArrayA=Array.isArray(a),isArrayB=Array.isArray(b);if(isArrayA&&isArrayB)return a.length===b.length&&a.every((function(e,i){return looseEqual(e,b[i])}));if(a instanceof Date&&b instanceof Date)return a.getTime()===b.getTime();if(isArrayA||isArrayB)return!1;var keysA=Object.keys(a),keysB=Object.keys(b);return keysA.length===keysB.length&&keysA.every((function(key){return looseEqual(a[key],b[key])}))}catch(e){return!1}}function looseIndexOf(arr,val){for(var i=0;i<arr.length;i++)if(looseEqual(arr[i],val))return i;return-1}function once(fn){var called=!1;return function(){called||(called=!0,fn.apply(this,arguments))}}var ASSET_TYPES=["component","directive","filter"],LIFECYCLE_HOOKS=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],config={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:no,isReservedAttr:no,isUnknownElement:no,getTagNamespace:noop,parsePlatformTagName:identity,mustUseProp:no,async:!0,_lifecycleHooks:LIFECYCLE_HOOKS},unicodeRegExp=/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 isReserved(str){var c=(str+"").charCodeAt(0);return 36===c||95===c}function def(obj,key,val,enumerable){Object.defineProperty(obj,key,{value:val,enumerable:!!enumerable,writable:!0,configurable:!0})}var bailRE=new RegExp("[^"+unicodeRegExp.source+".$_\\d]");var _isServer,hasProto="__proto__"in{},inBrowser="undefined"!=typeof window,inWeex="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,weexPlatform=inWeex&&WXEnvironment.platform.toLowerCase(),UA=inBrowser&&window.navigator.userAgent.toLowerCase(),isIE=UA&&/msie|trident/.test(UA),isIE9=UA&&UA.indexOf("msie 9.0")>0,isEdge=UA&&UA.indexOf("edge/")>0,isIOS=(UA&&UA.indexOf("android"),UA&&/iphone|ipad|ipod|ios/.test(UA)||"ios"===weexPlatform),isFF=(UA&&/chrome\/\d+/.test(UA),UA&&/phantomjs/.test(UA),UA&&UA.match(/firefox\/(\d+)/)),nativeWatch={}.watch,supportsPassive=!1;if(inBrowser)try{var opts={};Object.defineProperty(opts,"passive",{get:function(){supportsPassive=!0}}),window.addEventListener("test-passive",null,opts)}catch(e){}var isServerRendering=function(){return void 0===_isServer&&(_isServer=!inBrowser&&!inWeex&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),_isServer},devtools=inBrowser&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function isNative(Ctor){return"function"==typeof Ctor&&/native code/.test(Ctor.toString())}var _Set,hasSymbol="undefined"!=typeof Symbol&&isNative(Symbol)&&"undefined"!=typeof Reflect&&isNative(Reflect.ownKeys);_Set="undefined"!=typeof Set&&isNative(Set)?Set:function(){function Set(){this.set=Object.create(null)}return Set.prototype.has=function(key){return!0===this.set[key]},Set.prototype.add=function(key){this.set[key]=!0},Set.prototype.clear=function(){this.set=Object.create(null)},Set}();var warn=noop,tip=noop,generateComponentTrace=noop,formatComponentName=noop;if("production"!==process.env.NODE_ENV){var hasConsole="undefined"!=typeof console,classifyRE=/(?:^|[-_])(\w)/g;warn=function(msg,vm){var trace=vm?generateComponentTrace(vm):"";config.warnHandler?config.warnHandler.call(null,msg,vm,trace):hasConsole&&!config.silent&&console.error("[Vue warn]: "+msg+trace)},tip=function(msg,vm){hasConsole&&!config.silent&&console.warn("[Vue tip]: "+msg+(vm?generateComponentTrace(vm):""))},formatComponentName=function(vm,includeFile){if(vm.$root===vm)return"<Root>";var options="function"==typeof vm&&null!=vm.cid?vm.options:vm._isVue?vm.$options||vm.constructor.options:vm,name=options.name||options._componentTag,file=options.__file;if(!name&&file){var match=file.match(/([^/\\]+)\.vue$/);name=match&&match[1]}return(name?"<"+name.replace(classifyRE,(function(c){return c.toUpperCase()})).replace(/[-_]/g,"")+">":"<Anonymous>")+(file&&!1!==includeFile?" at "+file:"")};generateComponentTrace=function(vm){if(vm._isVue&&vm.$parent){for(var tree=[],currentRecursiveSequence=0;vm;){if(tree.length>0){var last=tree[tree.length-1];if(last.constructor===vm.constructor){currentRecursiveSequence++,vm=vm.$parent;continue}currentRecursiveSequence>0&&(tree[tree.length-1]=[last,currentRecursiveSequence],currentRecursiveSequence=0)}tree.push(vm),vm=vm.$parent}return"\n\nfound in\n\n"+tree.map((function(vm,i){return""+(0===i?"---\x3e ":function(str,n){for(var res="";n;)n%2==1&&(res+=str),n>1&&(str+=str),n>>=1;return res}(" ",5+2*i))+(Array.isArray(vm)?formatComponentName(vm[0])+"... ("+vm[1]+" recursive calls)":formatComponentName(vm))})).join("\n")}return"\n\n(found in "+formatComponentName(vm)+")"}}var uid=0,Dep=function(){this.id=uid++,this.subs=[]};Dep.prototype.addSub=function(sub){this.subs.push(sub)},Dep.prototype.removeSub=function(sub){remove(this.subs,sub)},Dep.prototype.depend=function(){Dep.target&&Dep.target.addDep(this)},Dep.prototype.notify=function(){var subs=this.subs.slice();"production"===process.env.NODE_ENV||config.async||subs.sort((function(a,b){return a.id-b.id}));for(var i=0,l=subs.length;i<l;i++)subs[i].update()},Dep.target=null;var targetStack=[];function pushTarget(target){targetStack.push(target),Dep.target=target}function popTarget(){targetStack.pop(),Dep.target=targetStack[targetStack.length-1]}var VNode=function(tag,data,children,text,elm,context,componentOptions,asyncFactory){this.tag=tag,this.data=data,this.children=children,this.text=text,this.elm=elm,this.ns=void 0,this.context=context,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=data&&data.key,this.componentOptions=componentOptions,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=asyncFactory,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},prototypeAccessors={child:{configurable:!0}};prototypeAccessors.child.get=function(){return this.componentInstance},Object.defineProperties(VNode.prototype,prototypeAccessors);var createEmptyVNode=function(text){void 0===text&&(text="");var node=new VNode;return node.text=text,node.isComment=!0,node};function createTextVNode(val){return new VNode(void 0,void 0,void 0,String(val))}function cloneVNode(vnode){var cloned=new VNode(vnode.tag,vnode.data,vnode.children&&vnode.children.slice(),vnode.text,vnode.elm,vnode.context,vnode.componentOptions,vnode.asyncFactory);return cloned.ns=vnode.ns,cloned.isStatic=vnode.isStatic,cloned.key=vnode.key,cloned.isComment=vnode.isComment,cloned.fnContext=vnode.fnContext,cloned.fnOptions=vnode.fnOptions,cloned.fnScopeId=vnode.fnScopeId,cloned.asyncMeta=vnode.asyncMeta,cloned.isCloned=!0,cloned}var arrayProto$1=Array.prototype,arrayMethods=Object.create(arrayProto$1);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(method){var original=arrayProto$1[method];def(arrayMethods,method,(function(){for(var args=[],len=arguments.length;len--;)args[len]=arguments[len];var inserted,result=original.apply(this,args),ob=this.__ob__;switch(method){case"push":case"unshift":inserted=args;break;case"splice":inserted=args.slice(2)}return inserted&&ob.observeArray(inserted),ob.dep.notify(),result}))}));var arrayKeys=Object.getOwnPropertyNames(arrayMethods),shouldObserve=!0;function toggleObserving(value){shouldObserve=value}var Observer=function(value){this.value=value,this.dep=new Dep,this.vmCount=0,def(value,"__ob__",this),Array.isArray(value)?(hasProto?function(target,src){target.__proto__=src}(value,arrayMethods):function(target,src,keys){for(var i=0,l=keys.length;i<l;i++){var key=keys[i];def(target,key,src[key])}}(value,arrayMethods,arrayKeys),this.observeArray(value)):this.walk(value)};function observe(value,asRootData){var ob;if(isObject$1(value)&&!(value instanceof VNode))return hasOwn(value,"__ob__")&&value.__ob__ instanceof Observer?ob=value.__ob__:shouldObserve&&!isServerRendering()&&(Array.isArray(value)||isPlainObject(value))&&Object.isExtensible(value)&&!value._isVue&&(ob=new Observer(value)),asRootData&&ob&&ob.vmCount++,ob}function defineReactive$$1(obj,key,val,customSetter,shallow){var dep=new Dep,property=Object.getOwnPropertyDescriptor(obj,key);if(!property||!1!==property.configurable){var getter=property&&property.get,setter=property&&property.set;getter&&!setter||2!==arguments.length||(val=obj[key]);var childOb=!shallow&&observe(val);Object.defineProperty(obj,key,{enumerable:!0,configurable:!0,get:function(){var value=getter?getter.call(obj):val;return Dep.target&&(dep.depend(),childOb&&(childOb.dep.depend(),Array.isArray(value)&&dependArray(value))),value},set:function(newVal){var value=getter?getter.call(obj):val;newVal===value||newVal!=newVal&&value!=value||("production"!==process.env.NODE_ENV&&customSetter&&customSetter(),getter&&!setter||(setter?setter.call(obj,newVal):val=newVal,childOb=!shallow&&observe(newVal),dep.notify()))}})}}function set(target,key,val){if("production"!==process.env.NODE_ENV&&(isUndef(target)||isPrimitive(target))&&warn("Cannot set reactive property on undefined, null, or primitive value: "+target),Array.isArray(target)&&isValidArrayIndex(key))return target.length=Math.max(target.length,key),target.splice(key,1,val),val;if(key in target&&!(key in Object.prototype))return target[key]=val,val;var ob=target.__ob__;return target._isVue||ob&&ob.vmCount?("production"!==process.env.NODE_ENV&&warn("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),val):ob?(defineReactive$$1(ob.value,key,val),ob.dep.notify(),val):(target[key]=val,val)}function del(target,key){if("production"!==process.env.NODE_ENV&&(isUndef(target)||isPrimitive(target))&&warn("Cannot delete reactive property on undefined, null, or primitive value: "+target),Array.isArray(target)&&isValidArrayIndex(key))target.splice(key,1);else{var ob=target.__ob__;target._isVue||ob&&ob.vmCount?"production"!==process.env.NODE_ENV&&warn("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):hasOwn(target,key)&&(delete target[key],ob&&ob.dep.notify())}}function dependArray(value){for(var e=void 0,i=0,l=value.length;i<l;i++)(e=value[i])&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&dependArray(e)}Observer.prototype.walk=function(obj){for(var keys=Object.keys(obj),i=0;i<keys.length;i++)defineReactive$$1(obj,keys[i])},Observer.prototype.observeArray=function(items){for(var i=0,l=items.length;i<l;i++)observe(items[i])};var strats=config.optionMergeStrategies;function mergeData(to,from){if(!from)return to;for(var key,toVal,fromVal,keys=hasSymbol?Reflect.ownKeys(from):Object.keys(from),i=0;i<keys.length;i++)"__ob__"!==(key=keys[i])&&(toVal=to[key],fromVal=from[key],hasOwn(to,key)?toVal!==fromVal&&isPlainObject(toVal)&&isPlainObject(fromVal)&&mergeData(toVal,fromVal):set(to,key,fromVal));return to}function mergeDataOrFn(parentVal,childVal,vm){return vm?function(){var instanceData="function"==typeof childVal?childVal.call(vm,vm):childVal,defaultData="function"==typeof parentVal?parentVal.call(vm,vm):parentVal;return instanceData?mergeData(instanceData,defaultData):defaultData}:childVal?parentVal?function(){return mergeData("function"==typeof childVal?childVal.call(this,this):childVal,"function"==typeof parentVal?parentVal.call(this,this):parentVal)}:childVal:parentVal}function mergeHook(parentVal,childVal){var res=childVal?parentVal?parentVal.concat(childVal):Array.isArray(childVal)?childVal:[childVal]:parentVal;return res?function(hooks){for(var res=[],i=0;i<hooks.length;i++)-1===res.indexOf(hooks[i])&&res.push(hooks[i]);return res}(res):res}function mergeAssets(parentVal,childVal,vm,key){var res=Object.create(parentVal||null);return childVal?("production"!==process.env.NODE_ENV&&assertObjectType(key,childVal,vm),extend(res,childVal)):res}"production"!==process.env.NODE_ENV&&(strats.el=strats.propsData=function(parent,child,vm,key){return vm||warn('option "'+key+'" can only be used during instance creation with the `new` keyword.'),defaultStrat(parent,child)}),strats.data=function(parentVal,childVal,vm){return vm?mergeDataOrFn(parentVal,childVal,vm):childVal&&"function"!=typeof childVal?("production"!==process.env.NODE_ENV&&warn('The "data" option should be a function that returns a per-instance value in component definitions.',vm),parentVal):mergeDataOrFn(parentVal,childVal)},LIFECYCLE_HOOKS.forEach((function(hook){strats[hook]=mergeHook})),ASSET_TYPES.forEach((function(type){strats[type+"s"]=mergeAssets})),strats.watch=function(parentVal,childVal,vm,key){if(parentVal===nativeWatch&&(parentVal=void 0),childVal===nativeWatch&&(childVal=void 0),!childVal)return Object.create(parentVal||null);if("production"!==process.env.NODE_ENV&&assertObjectType(key,childVal,vm),!parentVal)return childVal;var ret={};for(var key$1 in extend(ret,parentVal),childVal){var parent=ret[key$1],child=childVal[key$1];parent&&!Array.isArray(parent)&&(parent=[parent]),ret[key$1]=parent?parent.concat(child):Array.isArray(child)?child:[child]}return ret},strats.props=strats.methods=strats.inject=strats.computed=function(parentVal,childVal,vm,key){if(childVal&&"production"!==process.env.NODE_ENV&&assertObjectType(key,childVal,vm),!parentVal)return childVal;var ret=Object.create(null);return extend(ret,parentVal),childVal&&extend(ret,childVal),ret},strats.provide=mergeDataOrFn;var defaultStrat=function(parentVal,childVal){return void 0===childVal?parentVal:childVal};function validateComponentName(name){new RegExp("^[a-zA-Z][\\-\\.0-9_"+unicodeRegExp.source+"]*$").test(name)||warn('Invalid component name: "'+name+'". Component names should conform to valid custom element name in html5 specification.'),(isBuiltInTag(name)||config.isReservedTag(name))&&warn("Do not use built-in or reserved HTML elements as component id: "+name)}function assertObjectType(name,value,vm){isPlainObject(value)||warn('Invalid value for option "'+name+'": expected an Object, but got '+toRawType(value)+".",vm)}function mergeOptions(parent,child,vm){if("production"!==process.env.NODE_ENV&&function(options){for(var key in options.components)validateComponentName(key)}(child),"function"==typeof child&&(child=child.options),function(options,vm){var props=options.props;if(props){var i,val,res={};if(Array.isArray(props))for(i=props.length;i--;)"string"==typeof(val=props[i])?res[camelize(val)]={type:null}:"production"!==process.env.NODE_ENV&&warn("props must be strings when using array syntax.");else if(isPlainObject(props))for(var key in props)val=props[key],res[camelize(key)]=isPlainObject(val)?val:{type:val};else"production"!==process.env.NODE_ENV&&warn('Invalid value for option "props": expected an Array or an Object, but got '+toRawType(props)+".",vm);options.props=res}}(child,vm),function(options,vm){var inject=options.inject;if(inject){var normalized=options.inject={};if(Array.isArray(inject))for(var i=0;i<inject.length;i++)normalized[inject[i]]={from:inject[i]};else if(isPlainObject(inject))for(var key in inject){var val=inject[key];normalized[key]=isPlainObject(val)?extend({from:key},val):{from:val}}else"production"!==process.env.NODE_ENV&&warn('Invalid value for option "inject": expected an Array or an Object, but got '+toRawType(inject)+".",vm)}}(child,vm),function(options){var dirs=options.directives;if(dirs)for(var key in dirs){var def$$1=dirs[key];"function"==typeof def$$1&&(dirs[key]={bind:def$$1,update:def$$1})}}(child),!child._base&&(child.extends&&(parent=mergeOptions(parent,child.extends,vm)),child.mixins))for(var i=0,l=child.mixins.length;i<l;i++)parent=mergeOptions(parent,child.mixins[i],vm);var key,options={};for(key in parent)mergeField(key);for(key in child)hasOwn(parent,key)||mergeField(key);function mergeField(key){var strat=strats[key]||defaultStrat;options[key]=strat(parent[key],child[key],vm,key)}return options}function resolveAsset(options,type,id,warnMissing){if("string"==typeof id){var assets=options[type];if(hasOwn(assets,id))return assets[id];var camelizedId=camelize(id);if(hasOwn(assets,camelizedId))return assets[camelizedId];var PascalCaseId=capitalize(camelizedId);if(hasOwn(assets,PascalCaseId))return assets[PascalCaseId];var res=assets[id]||assets[camelizedId]||assets[PascalCaseId];return"production"!==process.env.NODE_ENV&&warnMissing&&!res&&warn("Failed to resolve "+type.slice(0,-1)+": "+id,options),res}}function validateProp(key,propOptions,propsData,vm){var prop=propOptions[key],absent=!hasOwn(propsData,key),value=propsData[key],booleanIndex=getTypeIndex(Boolean,prop.type);if(booleanIndex>-1)if(absent&&!hasOwn(prop,"default"))value=!1;else if(""===value||value===hyphenate(key)){var stringIndex=getTypeIndex(String,prop.type);(stringIndex<0||booleanIndex<stringIndex)&&(value=!0)}if(void 0===value){value=function(vm,prop,key){if(!hasOwn(prop,"default"))return;var def=prop.default;"production"!==process.env.NODE_ENV&&isObject$1(def)&&warn('Invalid default value for prop "'+key+'": Props with type Object/Array must use a factory function to return the default value.',vm);if(vm&&vm.$options.propsData&&void 0===vm.$options.propsData[key]&&void 0!==vm._props[key])return vm._props[key];return"function"==typeof def&&"Function"!==getType(prop.type)?def.call(vm):def}(vm,prop,key);var prevShouldObserve=shouldObserve;toggleObserving(!0),observe(value),toggleObserving(prevShouldObserve)}return"production"!==process.env.NODE_ENV&&function(prop,name,value,vm,absent){if(prop.required&&absent)return void warn('Missing required prop: "'+name+'"',vm);if(null==value&&!prop.required)return;var type=prop.type,valid=!type||!0===type,expectedTypes=[];if(type){Array.isArray(type)||(type=[type]);for(var i=0;i<type.length&&!valid;i++){var assertedType=assertType(value,type[i]);expectedTypes.push(assertedType.expectedType||""),valid=assertedType.valid}}if(!valid)return void warn(function(name,value,expectedTypes){var message='Invalid prop: type check failed for prop "'+name+'". Expected '+expectedTypes.map(capitalize).join(", "),expectedType=expectedTypes[0],receivedType=toRawType(value),expectedValue=styleValue(value,expectedType),receivedValue=styleValue(value,receivedType);1===expectedTypes.length&&isExplicable(expectedType)&&!function(){var args=[],len=arguments.length;for(;len--;)args[len]=arguments[len];return args.some((function(elem){return"boolean"===elem.toLowerCase()}))}(expectedType,receivedType)&&(message+=" with value "+expectedValue);message+=", got "+receivedType+" ",isExplicable(receivedType)&&(message+="with value "+receivedValue+".");return message}(name,value,expectedTypes),vm);var validator=prop.validator;validator&&(validator(value)||warn('Invalid prop: custom validator check failed for prop "'+name+'".',vm))}(prop,key,value,vm,absent),value}var simpleCheckRE=/^(String|Number|Boolean|Function|Symbol)$/;function assertType(value,type){var valid,expectedType=getType(type);if(simpleCheckRE.test(expectedType)){var t=typeof value;(valid=t===expectedType.toLowerCase())||"object"!==t||(valid=value instanceof type)}else valid="Object"===expectedType?isPlainObject(value):"Array"===expectedType?Array.isArray(value):value instanceof type;return{valid,expectedType}}function getType(fn){var match=fn&&fn.toString().match(/^\s*function (\w+)/);return match?match[1]:""}function isSameType(a,b){return getType(a)===getType(b)}function getTypeIndex(type,expectedTypes){if(!Array.isArray(expectedTypes))return isSameType(expectedTypes,type)?0:-1;for(var i=0,len=expectedTypes.length;i<len;i++)if(isSameType(expectedTypes[i],type))return i;return-1}function styleValue(value,type){return"String"===type?'"'+value+'"':"Number"===type?""+Number(value):""+value}function isExplicable(value){return["string","number","boolean"].some((function(elem){return value.toLowerCase()===elem}))}function handleError(err,vm,info){pushTarget();try{if(vm)for(var cur=vm;cur=cur.$parent;){var hooks=cur.$options.errorCaptured;if(hooks)for(var i=0;i<hooks.length;i++)try{if(!1===hooks[i].call(cur,err,vm,info))return}catch(e){globalHandleError(e,cur,"errorCaptured hook")}}globalHandleError(err,vm,info)}finally{popTarget()}}function invokeWithErrorHandling(handler,context,args,vm,info){var res;try{(res=args?handler.apply(context,args):handler.call(context))&&!res._isVue&&isPromise(res)&&!res._handled&&(res.catch((function(e){return handleError(e,vm,info+" (Promise/async)")})),res._handled=!0)}catch(e){handleError(e,vm,info)}return res}function globalHandleError(err,vm,info){if(config.errorHandler)try{return config.errorHandler.call(null,err,vm,info)}catch(e){e!==err&&logError(e,null,"config.errorHandler")}logError(err,vm,info)}function logError(err,vm,info){if("production"!==process.env.NODE_ENV&&warn("Error in "+info+': "'+err.toString()+'"',vm),!inBrowser&&!inWeex||"undefined"==typeof console)throw err;console.error(err)}var timerFunc,initProxy,isUsingMicroTask=!1,callbacks=[],pending=!1;function flushCallbacks(){pending=!1;var copies=callbacks.slice(0);callbacks.length=0;for(var i=0;i<copies.length;i++)copies[i]()}if("undefined"!=typeof Promise&&isNative(Promise)){var p=Promise.resolve();timerFunc=function(){p.then(flushCallbacks),isIOS&&setTimeout(noop)},isUsingMicroTask=!0}else if(isIE||"undefined"==typeof MutationObserver||!isNative(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())timerFunc="undefined"!=typeof setImmediate&&isNative(setImmediate)?function(){setImmediate(flushCallbacks)}:function(){setTimeout(flushCallbacks,0)};else{var counter=1,observer=new MutationObserver(flushCallbacks),textNode=document.createTextNode(String(counter));observer.observe(textNode,{characterData:!0}),timerFunc=function(){counter=(counter+1)%2,textNode.data=String(counter)},isUsingMicroTask=!0}function nextTick(cb,ctx){var _resolve;if(callbacks.push((function(){if(cb)try{cb.call(ctx)}catch(e){handleError(e,ctx,"nextTick")}else _resolve&&_resolve(ctx)})),pending||(pending=!0,timerFunc()),!cb&&"undefined"!=typeof Promise)return new Promise((function(resolve){_resolve=resolve}))}if("production"!==process.env.NODE_ENV){var allowedGlobals=makeMap("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),warnNonPresent=function(target,key){warn('Property or method "'+key+'" 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.',target)},warnReservedPrefix=function(target,key){warn('Property "'+key+'" must be accessed with "$data.'+key+'" 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',target)},hasProxy="undefined"!=typeof Proxy&&isNative(Proxy);if(hasProxy){var isBuiltInModifier=makeMap("stop,prevent,self,ctrl,shift,alt,meta,exact");config.keyCodes=new Proxy(config.keyCodes,{set:function(target,key,value){return isBuiltInModifier(key)?(warn("Avoid overwriting built-in modifier in config.keyCodes: ."+key),!1):(target[key]=value,!0)}})}var hasHandler={has:function(target,key){var has=key in target,isAllowed=allowedGlobals(key)||"string"==typeof key&&"_"===key.charAt(0)&&!(key in target.$data);return has||isAllowed||(key in target.$data?warnReservedPrefix(target,key):warnNonPresent(target,key)),has||!isAllowed}},getHandler={get:function(target,key){return"string"!=typeof key||key in target||(key in target.$data?warnReservedPrefix(target,key):warnNonPresent(target,key)),target[key]}};initProxy=function(vm){if(hasProxy){var options=vm.$options,handlers=options.render&&options.render._withStripped?getHandler:hasHandler;vm._renderProxy=new Proxy(vm,handlers)}else vm._renderProxy=vm}}var mark,measure,seenObjects=new _Set;function traverse(val){!function _traverse(val,seen){var i,keys,isA=Array.isArray(val);if(!isA&&!isObject$1(val)||Object.isFrozen(val)||val instanceof VNode)return;if(val.__ob__){var depId=val.__ob__.dep.id;if(seen.has(depId))return;seen.add(depId)}if(isA)for(i=val.length;i--;)_traverse(val[i],seen);else for(keys=Object.keys(val),i=keys.length;i--;)_traverse(val[keys[i]],seen)}(val,seenObjects),seenObjects.clear()}if("production"!==process.env.NODE_ENV){var perf=inBrowser&&window.performance;perf&&perf.mark&&perf.measure&&perf.clearMarks&&perf.clearMeasures&&(mark=function(tag){return perf.mark(tag)},measure=function(name,startTag,endTag){perf.measure(name,startTag,endTag),perf.clearMarks(startTag),perf.clearMarks(endTag)})}var normalizeEvent=cached((function(name){var passive="&"===name.charAt(0),once$$1="~"===(name=passive?name.slice(1):name).charAt(0),capture="!"===(name=once$$1?name.slice(1):name).charAt(0);return{name:name=capture?name.slice(1):name,once:once$$1,capture,passive}}));function createFnInvoker(fns,vm){function invoker(){var arguments$1=arguments,fns=invoker.fns;if(!Array.isArray(fns))return invokeWithErrorHandling(fns,null,arguments,vm,"v-on handler");for(var cloned=fns.slice(),i=0;i<cloned.length;i++)invokeWithErrorHandling(cloned[i],null,arguments$1,vm,"v-on handler")}return invoker.fns=fns,invoker}function updateListeners(on,oldOn,add,remove$$1,createOnceHandler,vm){var name,cur,old,event;for(name in on)cur=on[name],old=oldOn[name],event=normalizeEvent(name),isUndef(cur)?"production"!==process.env.NODE_ENV&&warn('Invalid handler for event "'+event.name+'": got '+String(cur),vm):isUndef(old)?(isUndef(cur.fns)&&(cur=on[name]=createFnInvoker(cur,vm)),isTrue(event.once)&&(cur=on[name]=createOnceHandler(event.name,cur,event.capture)),add(event.name,cur,event.capture,event.passive,event.params)):cur!==old&&(old.fns=cur,on[name]=old);for(name in oldOn)isUndef(on[name])&&remove$$1((event=normalizeEvent(name)).name,oldOn[name],event.capture)}function mergeVNodeHook(def,hookKey,hook){var invoker;def instanceof VNode&&(def=def.data.hook||(def.data.hook={}));var oldHook=def[hookKey];function wrappedHook(){hook.apply(this,arguments),remove(invoker.fns,wrappedHook)}isUndef(oldHook)?invoker=createFnInvoker([wrappedHook]):isDef(oldHook.fns)&&isTrue(oldHook.merged)?(invoker=oldHook).fns.push(wrappedHook):invoker=createFnInvoker([oldHook,wrappedHook]),invoker.merged=!0,def[hookKey]=invoker}function checkProp(res,hash,key,altKey,preserve){if(isDef(hash)){if(hasOwn(hash,key))return res[key]=hash[key],preserve||delete hash[key],!0;if(hasOwn(hash,altKey))return res[key]=hash[altKey],preserve||delete hash[altKey],!0}return!1}function normalizeChildren(children){return isPrimitive(children)?[createTextVNode(children)]:Array.isArray(children)?function normalizeArrayChildren(children,nestedIndex){var i,c,lastIndex,last,res=[];for(i=0;i<children.length;i++)isUndef(c=children[i])||"boolean"==typeof c||(lastIndex=res.length-1,last=res[lastIndex],Array.isArray(c)?c.length>0&&(isTextNode((c=normalizeArrayChildren(c,(nestedIndex||"")+"_"+i))[0])&&isTextNode(last)&&(res[lastIndex]=createTextVNode(last.text+c[0].text),c.shift()),res.push.apply(res,c)):isPrimitive(c)?isTextNode(last)?res[lastIndex]=createTextVNode(last.text+c):""!==c&&res.push(createTextVNode(c)):isTextNode(c)&&isTextNode(last)?res[lastIndex]=createTextVNode(last.text+c.text):(isTrue(children._isVList)&&isDef(c.tag)&&isUndef(c.key)&&isDef(nestedIndex)&&(c.key="__vlist"+nestedIndex+"_"+i+"__"),res.push(c)));return res}(children):void 0}function isTextNode(node){return isDef(node)&&isDef(node.text)&&!1===node.isComment}function resolveInject(inject,vm){if(inject){for(var result=Object.create(null),keys=hasSymbol?Reflect.ownKeys(inject):Object.keys(inject),i=0;i<keys.length;i++){var key=keys[i];if("__ob__"!==key){for(var provideKey=inject[key].from,source=vm;source;){if(source._provided&&hasOwn(source._provided,provideKey)){result[key]=source._provided[provideKey];break}source=source.$parent}if(!source)if("default"in inject[key]){var provideDefault=inject[key].default;result[key]="function"==typeof provideDefault?provideDefault.call(vm):provideDefault}else"production"!==process.env.NODE_ENV&&warn('Injection "'+key+'" not found',vm)}}return result}}function resolveSlots(children,context){if(!children||!children.length)return{};for(var slots={},i=0,l=children.length;i<l;i++){var child=children[i],data=child.data;if(data&&data.attrs&&data.attrs.slot&&delete data.attrs.slot,child.context!==context&&child.fnContext!==context||!data||null==data.slot)(slots.default||(slots.default=[])).push(child);else{var name=data.slot,slot=slots[name]||(slots[name]=[]);"template"===child.tag?slot.push.apply(slot,child.children||[]):slot.push(child)}}for(var name$1 in slots)slots[name$1].every(isWhitespace)&&delete slots[name$1];return slots}function isWhitespace(node){return node.isComment&&!node.asyncFactory||" "===node.text}function normalizeScopedSlots(slots,normalSlots,prevSlots){var res,hasNormalSlots=Object.keys(normalSlots).length>0,isStable=slots?!!slots.$stable:!hasNormalSlots,key=slots&&slots.$key;if(slots){if(slots._normalized)return slots._normalized;if(isStable&&prevSlots&&prevSlots!==emptyObject&&key===prevSlots.$key&&!hasNormalSlots&&!prevSlots.$hasNormal)return prevSlots;for(var key$1 in res={},slots)slots[key$1]&&"$"!==key$1[0]&&(res[key$1]=normalizeScopedSlot(normalSlots,key$1,slots[key$1]))}else res={};for(var key$2 in normalSlots)key$2 in res||(res[key$2]=proxyNormalSlot(normalSlots,key$2));return slots&&Object.isExtensible(slots)&&(slots._normalized=res),def(res,"$stable",isStable),def(res,"$key",key),def(res,"$hasNormal",hasNormalSlots),res}function normalizeScopedSlot(normalSlots,key,fn){var normalized=function(){var res=arguments.length?fn.apply(null,arguments):fn({});return(res=res&&"object"==typeof res&&!Array.isArray(res)?[res]:normalizeChildren(res))&&(0===res.length||1===res.length&&res[0].isComment)?void 0:res};return fn.proxy&&Object.defineProperty(normalSlots,key,{get:normalized,enumerable:!0,configurable:!0}),normalized}function proxyNormalSlot(slots,key){return function(){return slots[key]}}function renderList(val,render){var ret,i,l,keys,key;if(Array.isArray(val)||"string"==typeof val)for(ret=new Array(val.length),i=0,l=val.length;i<l;i++)ret[i]=render(val[i],i);else if("number"==typeof val)for(ret=new Array(val),i=0;i<val;i++)ret[i]=render(i+1,i);else if(isObject$1(val))if(hasSymbol&&val[Symbol.iterator]){ret=[];for(var iterator=val[Symbol.iterator](),result=iterator.next();!result.done;)ret.push(render(result.value,ret.length)),result=iterator.next()}else for(keys=Object.keys(val),ret=new Array(keys.length),i=0,l=keys.length;i<l;i++)key=keys[i],ret[i]=render(val[key],key,i);return isDef(ret)||(ret=[]),ret._isVList=!0,ret}function renderSlot(name,fallback,props,bindObject){var nodes,scopedSlotFn=this.$scopedSlots[name];scopedSlotFn?(props=props||{},bindObject&&("production"===process.env.NODE_ENV||isObject$1(bindObject)||warn("slot v-bind without argument expects an Object",this),props=extend(extend({},bindObject),props)),nodes=scopedSlotFn(props)||fallback):nodes=this.$slots[name]||fallback;var target=props&&props.slot;return target?this.$createElement("template",{slot:target},nodes):nodes}function resolveFilter(id){return resolveAsset(this.$options,"filters",id,!0)||identity}function isKeyNotMatch(expect,actual){return Array.isArray(expect)?-1===expect.indexOf(actual):expect!==actual}function checkKeyCodes(eventKeyCode,key,builtInKeyCode,eventKeyName,builtInKeyName){var mappedKeyCode=config.keyCodes[key]||builtInKeyCode;return builtInKeyName&&eventKeyName&&!config.keyCodes[key]?isKeyNotMatch(builtInKeyName,eventKeyName):mappedKeyCode?isKeyNotMatch(mappedKeyCode,eventKeyCode):eventKeyName?hyphenate(eventKeyName)!==key:void 0}function bindObjectProps(data,tag,value,asProp,isSync){if(value)if(isObject$1(value)){var hash;Array.isArray(value)&&(value=toObject(value));var loop=function(key){if("class"===key||"style"===key||isReservedAttribute(key))hash=data;else{var type=data.attrs&&data.attrs.type;hash=asProp||config.mustUseProp(tag,type,key)?data.domProps||(data.domProps={}):data.attrs||(data.attrs={})}var camelizedKey=camelize(key),hyphenatedKey=hyphenate(key);camelizedKey in hash||hyphenatedKey in hash||(hash[key]=value[key],isSync&&((data.on||(data.on={}))["update:"+key]=function($event){value[key]=$event}))};for(var key in value)loop(key)}else"production"!==process.env.NODE_ENV&&warn("v-bind without argument expects an Object or Array value",this);return data}function renderStatic(index,isInFor){var cached=this._staticTrees||(this._staticTrees=[]),tree=cached[index];return tree&&!isInFor?tree:(markStatic(tree=cached[index]=this.$options.staticRenderFns[index].call(this._renderProxy,null,this),"__static__"+index,!1),tree)}function markOnce(tree,index,key){return markStatic(tree,"__once__"+index+(key?"_"+key:""),!0),tree}function markStatic(tree,key,isOnce){if(Array.isArray(tree))for(var i=0;i<tree.length;i++)tree[i]&&"string"!=typeof tree[i]&&markStaticNode(tree[i],key+"_"+i,isOnce);else markStaticNode(tree,key,isOnce)}function markStaticNode(node,key,isOnce){node.isStatic=!0,node.key=key,node.isOnce=isOnce}function bindObjectListeners(data,value){if(value)if(isPlainObject(value)){var on=data.on=data.on?extend({},data.on):{};for(var key in value){var existing=on[key],ours=value[key];on[key]=existing?[].concat(existing,ours):ours}}else"production"!==process.env.NODE_ENV&&warn("v-on without argument expects an Object value",this);return data}function resolveScopedSlots(fns,res,hasDynamicKeys,contentHashKey){res=res||{$stable:!hasDynamicKeys};for(var i=0;i<fns.length;i++){var slot=fns[i];Array.isArray(slot)?resolveScopedSlots(slot,res,hasDynamicKeys):slot&&(slot.proxy&&(slot.fn.proxy=!0),res[slot.key]=slot.fn)}return contentHashKey&&(res.$key=contentHashKey),res}function bindDynamicKeys(baseObj,values){for(var i=0;i<values.length;i+=2){var key=values[i];"string"==typeof key&&key?baseObj[values[i]]=values[i+1]:"production"!==process.env.NODE_ENV&&""!==key&&null!==key&&warn("Invalid value for dynamic directive argument (expected string or null): "+key,this)}return baseObj}function prependModifier(value,symbol){return"string"==typeof value?symbol+value:value}function installRenderHelpers(target){target._o=markOnce,target._n=toNumber$1,target._s=toString$1,target._l=renderList,target._t=renderSlot,target._q=looseEqual,target._i=looseIndexOf,target._m=renderStatic,target._f=resolveFilter,target._k=checkKeyCodes,target._b=bindObjectProps,target._v=createTextVNode,target._e=createEmptyVNode,target._u=resolveScopedSlots,target._g=bindObjectListeners,target._d=bindDynamicKeys,target._p=prependModifier}function FunctionalRenderContext(data,props,children,parent,Ctor){var contextVm,this$1=this,options=Ctor.options;hasOwn(parent,"_uid")?(contextVm=Object.create(parent))._original=parent:(contextVm=parent,parent=parent._original);var isCompiled=isTrue(options._compiled),needNormalization=!isCompiled;this.data=data,this.props=props,this.children=children,this.parent=parent,this.listeners=data.on||emptyObject,this.injections=resolveInject(options.inject,parent),this.slots=function(){return this$1.$slots||normalizeScopedSlots(data.scopedSlots,this$1.$slots=resolveSlots(children,parent)),this$1.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return normalizeScopedSlots(data.scopedSlots,this.slots())}}),isCompiled&&(this.$options=options,this.$slots=this.slots(),this.$scopedSlots=normalizeScopedSlots(data.scopedSlots,this.$slots)),options._scopeId?this._c=function(a,b,c,d){var vnode=createElement(contextVm,a,b,c,d,needNormalization);return vnode&&!Array.isArray(vnode)&&(vnode.fnScopeId=options._scopeId,vnode.fnContext=parent),vnode}:this._c=function(a,b,c,d){return createElement(contextVm,a,b,c,d,needNormalization)}}function cloneAndMarkFunctionalResult(vnode,data,contextVm,options,renderContext){var clone=cloneVNode(vnode);return clone.fnContext=contextVm,clone.fnOptions=options,"production"!==process.env.NODE_ENV&&((clone.devtoolsMeta=clone.devtoolsMeta||{}).renderContext=renderContext),data.slot&&((clone.data||(clone.data={})).slot=data.slot),clone}function mergeProps(to,from){for(var key in from)to[camelize(key)]=from[key]}installRenderHelpers(FunctionalRenderContext.prototype);var componentVNodeHooks={init:function(vnode,hydrating){if(vnode.componentInstance&&!vnode.componentInstance._isDestroyed&&vnode.data.keepAlive){var mountedNode=vnode;componentVNodeHooks.prepatch(mountedNode,mountedNode)}else{(vnode.componentInstance=function(vnode,parent){var options={_isComponent:!0,_parentVnode:vnode,parent},inlineTemplate=vnode.data.inlineTemplate;isDef(inlineTemplate)&&(options.render=inlineTemplate.render,options.staticRenderFns=inlineTemplate.staticRenderFns);return new vnode.componentOptions.Ctor(options)}(vnode,activeInstance)).$mount(hydrating?vnode.elm:void 0,hydrating)}},prepatch:function(oldVnode,vnode){var options=vnode.componentOptions;!function(vm,propsData,listeners,parentVnode,renderChildren){"production"!==process.env.NODE_ENV&&(isUpdatingChildComponent=!0);var newScopedSlots=parentVnode.data.scopedSlots,oldScopedSlots=vm.$scopedSlots,hasDynamicScopedSlot=!!(newScopedSlots&&!newScopedSlots.$stable||oldScopedSlots!==emptyObject&&!oldScopedSlots.$stable||newScopedSlots&&vm.$scopedSlots.$key!==newScopedSlots.$key),needsForceUpdate=!!(renderChildren||vm.$options._renderChildren||hasDynamicScopedSlot);vm.$options._parentVnode=parentVnode,vm.$vnode=parentVnode,vm._vnode&&(vm._vnode.parent=parentVnode);if(vm.$options._renderChildren=renderChildren,vm.$attrs=parentVnode.data.attrs||emptyObject,vm.$listeners=listeners||emptyObject,propsData&&vm.$options.props){toggleObserving(!1);for(var props=vm._props,propKeys=vm.$options._propKeys||[],i=0;i<propKeys.length;i++){var key=propKeys[i],propOptions=vm.$options.props;props[key]=validateProp(key,propOptions,propsData,vm)}toggleObserving(!0),vm.$options.propsData=propsData}listeners=listeners||emptyObject;var oldListeners=vm.$options._parentListeners;vm.$options._parentListeners=listeners,updateComponentListeners(vm,listeners,oldListeners),needsForceUpdate&&(vm.$slots=resolveSlots(renderChildren,parentVnode.context),vm.$forceUpdate());"production"!==process.env.NODE_ENV&&(isUpdatingChildComponent=!1)}(vnode.componentInstance=oldVnode.componentInstance,options.propsData,options.listeners,vnode,options.children)},insert:function(vnode){var vm,context=vnode.context,componentInstance=vnode.componentInstance;componentInstance._isMounted||(componentInstance._isMounted=!0,callHook(componentInstance,"mounted")),vnode.data.keepAlive&&(context._isMounted?((vm=componentInstance)._inactive=!1,activatedChildren.push(vm)):activateChildComponent(componentInstance,!0))},destroy:function(vnode){var componentInstance=vnode.componentInstance;componentInstance._isDestroyed||(vnode.data.keepAlive?function deactivateChildComponent(vm,direct){if(direct&&(vm._directInactive=!0,isInInactiveTree(vm)))return;if(!vm._inactive){vm._inactive=!0;for(var i=0;i<vm.$children.length;i++)deactivateChildComponent(vm.$children[i]);callHook(vm,"deactivated")}}(componentInstance,!0):componentInstance.$destroy())}},hooksToMerge=Object.keys(componentVNodeHooks);function createComponent(Ctor,data,context,children,tag){if(!isUndef(Ctor)){var baseCtor=context.$options._base;if(isObject$1(Ctor)&&(Ctor=baseCtor.extend(Ctor)),"function"==typeof Ctor){var asyncFactory;if(isUndef(Ctor.cid)&&void 0===(Ctor=function(factory,baseCtor){if(isTrue(factory.error)&&isDef(factory.errorComp))return factory.errorComp;if(isDef(factory.resolved))return factory.resolved;var owner=currentRenderingInstance;owner&&isDef(factory.owners)&&-1===factory.owners.indexOf(owner)&&factory.owners.push(owner);if(isTrue(factory.loading)&&isDef(factory.loadingComp))return factory.loadingComp;if(owner&&!isDef(factory.owners)){var owners=factory.owners=[owner],sync=!0,timerLoading=null,timerTimeout=null;owner.$on("hook:destroyed",(function(){return remove(owners,owner)}));var forceRender=function(renderCompleted){for(var i=0,l=owners.length;i<l;i++)owners[i].$forceUpdate();renderCompleted&&(owners.length=0,null!==timerLoading&&(clearTimeout(timerLoading),timerLoading=null),null!==timerTimeout&&(clearTimeout(timerTimeout),timerTimeout=null))},resolve=once((function(res){factory.resolved=ensureCtor(res,baseCtor),sync?owners.length=0:forceRender(!0)})),reject=once((function(reason){"production"!==process.env.NODE_ENV&&warn("Failed to resolve async component: "+String(factory)+(reason?"\nReason: "+reason:"")),isDef(factory.errorComp)&&(factory.error=!0,forceRender(!0))})),res=factory(resolve,reject);return isObject$1(res)&&(isPromise(res)?isUndef(factory.resolved)&&res.then(resolve,reject):isPromise(res.component)&&(res.component.then(resolve,reject),isDef(res.error)&&(factory.errorComp=ensureCtor(res.error,baseCtor)),isDef(res.loading)&&(factory.loadingComp=ensureCtor(res.loading,baseCtor),0===res.delay?factory.loading=!0:timerLoading=setTimeout((function(){timerLoading=null,isUndef(factory.resolved)&&isUndef(factory.error)&&(factory.loading=!0,forceRender(!1))}),res.delay||200)),isDef(res.timeout)&&(timerTimeout=setTimeout((function(){timerTimeout=null,isUndef(factory.resolved)&&reject("production"!==process.env.NODE_ENV?"timeout ("+res.timeout+"ms)":null)}),res.timeout)))),sync=!1,factory.loading?factory.loadingComp:factory.resolved}}(asyncFactory=Ctor,baseCtor)))return function(factory,data,context,children,tag){var node=createEmptyVNode();return node.asyncFactory=factory,node.asyncMeta={data,context,children,tag},node}(asyncFactory,data,context,children,tag);data=data||{},resolveConstructorOptions(Ctor),isDef(data.model)&&function(options,data){var prop=options.model&&options.model.prop||"value",event=options.model&&options.model.event||"input";(data.attrs||(data.attrs={}))[prop]=data.model.value;var on=data.on||(data.on={}),existing=on[event],callback=data.model.callback;isDef(existing)?(Array.isArray(existing)?-1===existing.indexOf(callback):existing!==callback)&&(on[event]=[callback].concat(existing)):on[event]=callback}(Ctor.options,data);var propsData=function(data,Ctor,tag){var propOptions=Ctor.options.props;if(!isUndef(propOptions)){var res={},attrs=data.attrs,props=data.props;if(isDef(attrs)||isDef(props))for(var key in propOptions){var altKey=hyphenate(key);if("production"!==process.env.NODE_ENV){var keyInLowerCase=key.toLowerCase();key!==keyInLowerCase&&attrs&&hasOwn(attrs,keyInLowerCase)&&tip('Prop "'+keyInLowerCase+'" is passed to component '+formatComponentName(tag||Ctor)+', but the declared prop name is "'+key+'". 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 "'+altKey+'" instead of "'+key+'".')}checkProp(res,props,key,altKey,!0)||checkProp(res,attrs,key,altKey,!1)}return res}}(data,Ctor,tag);if(isTrue(Ctor.options.functional))return function(Ctor,propsData,data,contextVm,children){var options=Ctor.options,props={},propOptions=options.props;if(isDef(propOptions))for(var key in propOptions)props[key]=validateProp(key,propOptions,propsData||emptyObject);else isDef(data.attrs)&&mergeProps(props,data.attrs),isDef(data.props)&&mergeProps(props,data.props);var renderContext=new FunctionalRenderContext(data,props,children,contextVm,Ctor),vnode=options.render.call(null,renderContext._c,renderContext);if(vnode instanceof VNode)return cloneAndMarkFunctionalResult(vnode,data,renderContext.parent,options,renderContext);if(Array.isArray(vnode)){for(var vnodes=normalizeChildren(vnode)||[],res=new Array(vnodes.length),i=0;i<vnodes.length;i++)res[i]=cloneAndMarkFunctionalResult(vnodes[i],data,renderContext.parent,options,renderContext);return res}}(Ctor,propsData,data,context,children);var listeners=data.on;if(data.on=data.nativeOn,isTrue(Ctor.options.abstract)){var slot=data.slot;data={},slot&&(data.slot=slot)}!function(data){for(var hooks=data.hook||(data.hook={}),i=0;i<hooksToMerge.length;i++){var key=hooksToMerge[i],existing=hooks[key],toMerge=componentVNodeHooks[key];existing===toMerge||existing&&existing._merged||(hooks[key]=existing?mergeHook$1(toMerge,existing):toMerge)}}(data);var name=Ctor.options.name||tag;return new VNode("vue-component-"+Ctor.cid+(name?"-"+name:""),data,void 0,void 0,void 0,context,{Ctor,propsData,listeners,tag,children},asyncFactory)}"production"!==process.env.NODE_ENV&&warn("Invalid Component definition: "+String(Ctor),context)}}function mergeHook$1(f1,f2){var merged=function(a,b){f1(a,b),f2(a,b)};return merged._merged=!0,merged}function createElement(context,tag,data,children,normalizationType,alwaysNormalize){return(Array.isArray(data)||isPrimitive(data))&&(normalizationType=children,children=data,data=void 0),isTrue(alwaysNormalize)&&(normalizationType=2),function(context,tag,data,children,normalizationType){if(isDef(data)&&isDef(data.__ob__))return"production"!==process.env.NODE_ENV&&warn("Avoid using observed data object as vnode data: "+JSON.stringify(data)+"\nAlways create fresh vnode data objects in each render!",context),createEmptyVNode();isDef(data)&&isDef(data.is)&&(tag=data.is);if(!tag)return createEmptyVNode();"production"!==process.env.NODE_ENV&&isDef(data)&&isDef(data.key)&&!isPrimitive(data.key)&&warn("Avoid using non-primitive value as key, use string/number value instead.",context);Array.isArray(children)&&"function"==typeof children[0]&&((data=data||{}).scopedSlots={default:children[0]},children.length=0);2===normalizationType?children=normalizeChildren(children):1===normalizationType&&(children=function(children){for(var i=0;i<children.length;i++)if(Array.isArray(children[i]))return Array.prototype.concat.apply([],children);return children}(children));var vnode,ns;if("string"==typeof tag){var Ctor;ns=context.$vnode&&context.$vnode.ns||config.getTagNamespace(tag),config.isReservedTag(tag)?("production"!==process.env.NODE_ENV&&isDef(data)&&isDef(data.nativeOn)&&warn("The .native modifier for v-on is only valid on components but it was used on <"+tag+">.",context),vnode=new VNode(config.parsePlatformTagName(tag),data,children,void 0,void 0,context)):vnode=data&&data.pre||!isDef(Ctor=resolveAsset(context.$options,"components",tag))?new VNode(tag,data,children,void 0,void 0,context):createComponent(Ctor,data,context,children,tag)}else vnode=createComponent(tag,data,context,children);return Array.isArray(vnode)?vnode:isDef(vnode)?(isDef(ns)&&function applyNS(vnode,ns,force){vnode.ns=ns,"foreignObject"===vnode.tag&&(ns=void 0,force=!0);if(isDef(vnode.children))for(var i=0,l=vnode.children.length;i<l;i++){var child=vnode.children[i];isDef(child.tag)&&(isUndef(child.ns)||isTrue(force)&&"svg"!==child.tag)&&applyNS(child,ns,force)}}(vnode,ns),isDef(data)&&function(data){isObject$1(data.style)&&traverse(data.style);isObject$1(data.class)&&traverse(data.class)}(data),vnode):createEmptyVNode()}(context,tag,data,children,normalizationType)}var target,currentRenderingInstance=null;function ensureCtor(comp,base){return(comp.__esModule||hasSymbol&&"Module"===comp[Symbol.toStringTag])&&(comp=comp.default),isObject$1(comp)?base.extend(comp):comp}function isAsyncPlaceholder(node){return node.isComment&&node.asyncFactory}function getFirstComponentChild(children){if(Array.isArray(children))for(var i=0;i<children.length;i++){var c=children[i];if(isDef(c)&&(isDef(c.componentOptions)||isAsyncPlaceholder(c)))return c}}function add(event,fn){target.$on(event,fn)}function remove$1(event,fn){target.$off(event,fn)}function createOnceHandler(event,fn){var _target=target;return function onceHandler(){var res=fn.apply(null,arguments);null!==res&&_target.$off(event,onceHandler)}}function updateComponentListeners(vm,listeners,oldListeners){target=vm,updateListeners(listeners,oldListeners||{},add,remove$1,createOnceHandler,vm),target=void 0}var activeInstance=null,isUpdatingChildComponent=!1;function setActiveInstance(vm){var prevActiveInstance=activeInstance;return activeInstance=vm,function(){activeInstance=prevActiveInstance}}function isInInactiveTree(vm){for(;vm&&(vm=vm.$parent);)if(vm._inactive)return!0;return!1}function activateChildComponent(vm,direct){if(direct){if(vm._directInactive=!1,isInInactiveTree(vm))return}else if(vm._directInactive)return;if(vm._inactive||null===vm._inactive){vm._inactive=!1;for(var i=0;i<vm.$children.length;i++)activateChildComponent(vm.$children[i]);callHook(vm,"activated")}}function callHook(vm,hook){pushTarget();var handlers=vm.$options[hook],info=hook+" hook";if(handlers)for(var i=0,j=handlers.length;i<j;i++)invokeWithErrorHandling(handlers[i],vm,null,vm,info);vm._hasHookEvent&&vm.$emit("hook:"+hook),popTarget()}var queue=[],activatedChildren=[],has={},circular={},waiting=!1,flushing=!1,index=0;var currentFlushTimestamp=0,getNow=Date.now;if(inBrowser&&!isIE){var performance=window.performance;performance&&"function"==typeof performance.now&&getNow()>document.createEvent("Event").timeStamp&&(getNow=function(){return performance.now()})}function flushSchedulerQueue(){var watcher,id;for(currentFlushTimestamp=getNow(),flushing=!0,queue.sort((function(a,b){return a.id-b.id})),index=0;index<queue.length;index++)if((watcher=queue[index]).before&&watcher.before(),id=watcher.id,has[id]=null,watcher.run(),"production"!==process.env.NODE_ENV&&null!=has[id]&&(circular[id]=(circular[id]||0)+1,circular[id]>100)){warn("You may have an infinite update loop "+(watcher.user?'in watcher with expression "'+watcher.expression+'"':"in a component render function."),watcher.vm);break}var activatedQueue=activatedChildren.slice(),updatedQueue=queue.slice();index=queue.length=activatedChildren.length=0,has={},"production"!==process.env.NODE_ENV&&(circular={}),waiting=flushing=!1,function(queue){for(var i=0;i<queue.length;i++)queue[i]._inactive=!0,activateChildComponent(queue[i],!0)}(activatedQueue),function(queue){var i=queue.length;for(;i--;){var watcher=queue[i],vm=watcher.vm;vm._watcher===watcher&&vm._isMounted&&!vm._isDestroyed&&callHook(vm,"updated")}}(updatedQueue),devtools&&config.devtools&&devtools.emit("flush")}var uid$2=0,Watcher=function(vm,expOrFn,cb,options,isRenderWatcher){this.vm=vm,isRenderWatcher&&(vm._watcher=this),vm._watchers.push(this),options?(this.deep=!!options.deep,this.user=!!options.user,this.lazy=!!options.lazy,this.sync=!!options.sync,this.before=options.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=cb,this.id=++uid$2,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new _Set,this.newDepIds=new _Set,this.expression="production"!==process.env.NODE_ENV?expOrFn.toString():"","function"==typeof expOrFn?this.getter=expOrFn:(this.getter=function(path){if(!bailRE.test(path)){var segments=path.split(".");return function(obj){for(var i=0;i<segments.length;i++){if(!obj)return;obj=obj[segments[i]]}return obj}}}(expOrFn),this.getter||(this.getter=noop,"production"!==process.env.NODE_ENV&&warn('Failed watching path: "'+expOrFn+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',vm))),this.value=this.lazy?void 0:this.get()};Watcher.prototype.get=function(){var value;pushTarget(this);var vm=this.vm;try{value=this.getter.call(vm,vm)}catch(e){if(!this.user)throw e;handleError(e,vm,'getter for watcher "'+this.expression+'"')}finally{this.deep&&traverse(value),popTarget(),this.cleanupDeps()}return value},Watcher.prototype.addDep=function(dep){var id=dep.id;this.newDepIds.has(id)||(this.newDepIds.add(id),this.newDeps.push(dep),this.depIds.has(id)||dep.addSub(this))},Watcher.prototype.cleanupDeps=function(){for(var i=this.deps.length;i--;){var dep=this.deps[i];this.newDepIds.has(dep.id)||dep.removeSub(this)}var tmp=this.depIds;this.depIds=this.newDepIds,this.newDepIds=tmp,this.newDepIds.clear(),tmp=this.deps,this.deps=this.newDeps,this.newDeps=tmp,this.newDeps.length=0},Watcher.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(watcher){var id=watcher.id;if(null==has[id]){if(has[id]=!0,flushing){for(var i=queue.length-1;i>index&&queue[i].id>watcher.id;)i--;queue.splice(i+1,0,watcher)}else queue.push(watcher);if(!waiting){if(waiting=!0,"production"!==process.env.NODE_ENV&&!config.async)return void flushSchedulerQueue();nextTick(flushSchedulerQueue)}}}(this)},Watcher.prototype.run=function(){if(this.active){var value=this.get();if(value!==this.value||isObject$1(value)||this.deep){var oldValue=this.value;if(this.value=value,this.user)try{this.cb.call(this.vm,value,oldValue)}catch(e){handleError(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,value,oldValue)}}},Watcher.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Watcher.prototype.depend=function(){for(var i=this.deps.length;i--;)this.deps[i].depend()},Watcher.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||remove(this.vm._watchers,this);for(var i=this.deps.length;i--;)this.deps[i].removeSub(this);this.active=!1}};var sharedPropertyDefinition={enumerable:!0,configurable:!0,get:noop,set:noop};function proxy(target,sourceKey,key){sharedPropertyDefinition.get=function(){return this[sourceKey][key]},sharedPropertyDefinition.set=function(val){this[sourceKey][key]=val},Object.defineProperty(target,key,sharedPropertyDefinition)}function initState(vm){vm._watchers=[];var opts=vm.$options;opts.props&&function(vm,propsOptions){var propsData=vm.$options.propsData||{},props=vm._props={},keys=vm.$options._propKeys=[],isRoot=!vm.$parent;isRoot||toggleObserving(!1);var loop=function(key){keys.push(key);var value=validateProp(key,propsOptions,propsData,vm);if("production"!==process.env.NODE_ENV){var hyphenatedKey=hyphenate(key);(isReservedAttribute(hyphenatedKey)||config.isReservedAttr(hyphenatedKey))&&warn('"'+hyphenatedKey+'" is a reserved attribute and cannot be used as component prop.',vm),defineReactive$$1(props,key,value,(function(){isRoot||isUpdatingChildComponent||warn("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: \""+key+'"',vm)}))}else defineReactive$$1(props,key,value);key in vm||proxy(vm,"_props",key)};for(var key in propsOptions)loop(key);toggleObserving(!0)}(vm,opts.props),opts.methods&&function(vm,methods){var props=vm.$options.props;for(var key in methods)"production"!==process.env.NODE_ENV&&("function"!=typeof methods[key]&&warn('Method "'+key+'" has type "'+typeof methods[key]+'" in the component definition. Did you reference the function correctly?',vm),props&&hasOwn(props,key)&&warn('Method "'+key+'" has already been defined as a prop.',vm),key in vm&&isReserved(key)&&warn('Method "'+key+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.')),vm[key]="function"!=typeof methods[key]?noop:bind$1(methods[key],vm)}(vm,opts.methods),opts.data?function(vm){var data=vm.$options.data;isPlainObject(data=vm._data="function"==typeof data?function(data,vm){pushTarget();try{return data.call(vm,vm)}catch(e){return handleError(e,vm,"data()"),{}}finally{popTarget()}}(data,vm):data||{})||(data={},"production"!==process.env.NODE_ENV&&warn("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",vm));var keys=Object.keys(data),props=vm.$options.props,methods=vm.$options.methods,i=keys.length;for(;i--;){var key=keys[i];"production"!==process.env.NODE_ENV&&methods&&hasOwn(methods,key)&&warn('Method "'+key+'" has already been defined as a data property.',vm),props&&hasOwn(props,key)?"production"!==process.env.NODE_ENV&&warn('The data property "'+key+'" is already declared as a prop. Use prop default value instead.',vm):isReserved(key)||proxy(vm,"_data",key)}observe(data,!0)}(vm):observe(vm._data={},!0),opts.computed&&function(vm,computed){var watchers=vm._computedWatchers=Object.create(null),isSSR=isServerRendering();for(var key in computed){var userDef=computed[key],getter="function"==typeof userDef?userDef:userDef.get;"production"!==process.env.NODE_ENV&&null==getter&&warn('Getter is missing for computed property "'+key+'".',vm),isSSR||(watchers[key]=new Watcher(vm,getter||noop,noop,computedWatcherOptions)),key in vm?"production"!==process.env.NODE_ENV&&(key in vm.$data?warn('The computed property "'+key+'" is already defined in data.',vm):vm.$options.props&&key in vm.$options.props&&warn('The computed property "'+key+'" is already defined as a prop.',vm)):defineComputed(vm,key,userDef)}}(vm,opts.computed),opts.watch&&opts.watch!==nativeWatch&&function(vm,watch){for(var key in watch){var handler=watch[key];if(Array.isArray(handler))for(var i=0;i<handler.length;i++)createWatcher(vm,key,handler[i]);else createWatcher(vm,key,handler)}}(vm,opts.watch)}var computedWatcherOptions={lazy:!0};function defineComputed(target,key,userDef){var shouldCache=!isServerRendering();"function"==typeof userDef?(sharedPropertyDefinition.get=shouldCache?createComputedGetter(key):createGetterInvoker(userDef),sharedPropertyDefinition.set=noop):(sharedPropertyDefinition.get=userDef.get?shouldCache&&!1!==userDef.cache?createComputedGetter(key):createGetterInvoker(userDef.get):noop,sharedPropertyDefinition.set=userDef.set||noop),"production"!==process.env.NODE_ENV&&sharedPropertyDefinition.set===noop&&(sharedPropertyDefinition.set=function(){warn('Computed property "'+key+'" was assigned to but it has no setter.',this)}),Object.defineProperty(target,key,sharedPropertyDefinition)}function createComputedGetter(key){return function(){var watcher=this._computedWatchers&&this._computedWatchers[key];if(watcher)return watcher.dirty&&watcher.evaluate(),Dep.target&&watcher.depend(),watcher.value}}function createGetterInvoker(fn){return function(){return fn.call(this,this)}}function createWatcher(vm,expOrFn,handler,options){return isPlainObject(handler)&&(options=handler,handler=handler.handler),"string"==typeof handler&&(handler=vm[handler]),vm.$watch(expOrFn,handler,options)}var uid$3=0;function resolveConstructorOptions(Ctor){var options=Ctor.options;if(Ctor.super){var superOptions=resolveConstructorOptions(Ctor.super);if(superOptions!==Ctor.superOptions){Ctor.superOptions=superOptions;var modifiedOptions=function(Ctor){var modified,latest=Ctor.options,sealed=Ctor.sealedOptions;for(var key in latest)latest[key]!==sealed[key]&&(modified||(modified={}),modified[key]=latest[key]);return modified}(Ctor);modifiedOptions&&extend(Ctor.extendOptions,modifiedOptions),(options=Ctor.options=mergeOptions(superOptions,Ctor.extendOptions)).name&&(options.components[options.name]=Ctor)}}return options}function Vue(options){"production"===process.env.NODE_ENV||this instanceof Vue||warn("Vue is a constructor and should be called with the `new` keyword"),this._init(options)}function initExtend(Vue){Vue.cid=0;var cid=1;Vue.extend=function(extendOptions){extendOptions=extendOptions||{};var Super=this,SuperId=Super.cid,cachedCtors=extendOptions._Ctor||(extendOptions._Ctor={});if(cachedCtors[SuperId])return cachedCtors[SuperId];var name=extendOptions.name||Super.options.name;"production"!==process.env.NODE_ENV&&name&&validateComponentName(name);var Sub=function(options){this._init(options)};return(Sub.prototype=Object.create(Super.prototype)).constructor=Sub,Sub.cid=cid++,Sub.options=mergeOptions(Super.options,extendOptions),Sub.super=Super,Sub.options.props&&function(Comp){var props=Comp.options.props;for(var key in props)proxy(Comp.prototype,"_props",key)}(Sub),Sub.options.computed&&function(Comp){var computed=Comp.options.computed;for(var key in computed)defineComputed(Comp.prototype,key,computed[key])}(Sub),Sub.extend=Super.extend,Sub.mixin=Super.mixin,Sub.use=Super.use,ASSET_TYPES.forEach((function(type){Sub[type]=Super[type]})),name&&(Sub.options.components[name]=Sub),Sub.superOptions=Super.options,Sub.extendOptions=extendOptions,Sub.sealedOptions=extend({},Sub.options),cachedCtors[SuperId]=Sub,Sub}}function getComponentName(opts){return opts&&(opts.Ctor.options.name||opts.tag)}function matches(pattern,name){return Array.isArray(pattern)?pattern.indexOf(name)>-1:"string"==typeof pattern?pattern.split(",").indexOf(name)>-1:!!isRegExp(pattern)&&pattern.test(name)}function pruneCache(keepAliveInstance,filter){var cache=keepAliveInstance.cache,keys=keepAliveInstance.keys,_vnode=keepAliveInstance._vnode;for(var key in cache){var cachedNode=cache[key];if(cachedNode){var name=getComponentName(cachedNode.componentOptions);name&&!filter(name)&&pruneCacheEntry(cache,key,keys,_vnode)}}}function pruneCacheEntry(cache,key,keys,current){var cached$$1=cache[key];!cached$$1||current&&cached$$1.tag===current.tag||cached$$1.componentInstance.$destroy(),cache[key]=null,remove(keys,key)}!function(Vue){Vue.prototype._init=function(options){var startTag,endTag,vm=this;vm._uid=uid$3++,"production"!==process.env.NODE_ENV&&config.performance&&mark&&(startTag="vue-perf-start:"+vm._uid,endTag="vue-perf-end:"+vm._uid,mark(startTag)),vm._isVue=!0,options&&options._isComponent?function(vm,options){var opts=vm.$options=Object.create(vm.constructor.options),parentVnode=options._parentVnode;opts.parent=options.parent,opts._parentVnode=parentVnode;var vnodeComponentOptions=parentVnode.componentOptions;opts.propsData=vnodeComponentOptions.propsData,opts._parentListeners=vnodeComponentOptions.listeners,opts._renderChildren=vnodeComponentOptions.children,opts._componentTag=vnodeComponentOptions.tag,options.render&&(opts.render=options.render,opts.staticRenderFns=options.staticRenderFns)}(vm,options):vm.$options=mergeOptions(resolveConstructorOptions(vm.constructor),options||{},vm),"production"!==process.env.NODE_ENV?initProxy(vm):vm._renderProxy=vm,vm._self=vm,function(vm){var options=vm.$options,parent=options.parent;if(parent&&!options.abstract){for(;parent.$options.abstract&&parent.$parent;)parent=parent.$parent;parent.$children.push(vm)}vm.$parent=parent,vm.$root=parent?parent.$root:vm,vm.$children=[],vm.$refs={},vm._watcher=null,vm._inactive=null,vm._directInactive=!1,vm._isMounted=!1,vm._isDestroyed=!1,vm._isBeingDestroyed=!1}(vm),function(vm){vm._events=Object.create(null),vm._hasHookEvent=!1;var listeners=vm.$options._parentListeners;listeners&&updateComponentListeners(vm,listeners)}(vm),function(vm){vm._vnode=null,vm._staticTrees=null;var options=vm.$options,parentVnode=vm.$vnode=options._parentVnode,renderContext=parentVnode&&parentVnode.context;vm.$slots=resolveSlots(options._renderChildren,renderContext),vm.$scopedSlots=emptyObject,vm._c=function(a,b,c,d){return createElement(vm,a,b,c,d,!1)},vm.$createElement=function(a,b,c,d){return createElement(vm,a,b,c,d,!0)};var parentData=parentVnode&&parentVnode.data;"production"!==process.env.NODE_ENV?(defineReactive$$1(vm,"$attrs",parentData&&parentData.attrs||emptyObject,(function(){!isUpdatingChildComponent&&warn("$attrs is readonly.",vm)}),!0),defineReactive$$1(vm,"$listeners",options._parentListeners||emptyObject,(function(){!isUpdatingChildComponent&&warn("$listeners is readonly.",vm)}),!0)):(defineReactive$$1(vm,"$attrs",parentData&&parentData.attrs||emptyObject,null,!0),defineReactive$$1(vm,"$listeners",options._parentListeners||emptyObject,null,!0))}(vm),callHook(vm,"beforeCreate"),function(vm){var result=resolveInject(vm.$options.inject,vm);result&&(toggleObserving(!1),Object.keys(result).forEach((function(key){"production"!==process.env.NODE_ENV?defineReactive$$1(vm,key,result[key],(function(){warn('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+key+'"',vm)})):defineReactive$$1(vm,key,result[key])})),toggleObserving(!0))}(vm),initState(vm),function(vm){var provide=vm.$options.provide;provide&&(vm._provided="function"==typeof provide?provide.call(vm):provide)}(vm),callHook(vm,"created"),"production"!==process.env.NODE_ENV&&config.performance&&mark&&(vm._name=formatComponentName(vm,!1),mark(endTag),measure("vue "+vm._name+" init",startTag,endTag)),vm.$options.el&&vm.$mount(vm.$options.el)}}(Vue),function(Vue){var dataDef={get:function(){return this._data}},propsDef={get:function(){return this._props}};"production"!==process.env.NODE_ENV&&(dataDef.set=function(){warn("Avoid replacing instance root $data. Use nested data properties instead.",this)},propsDef.set=function(){warn("$props is readonly.",this)}),Object.defineProperty(Vue.prototype,"$data",dataDef),Object.defineProperty(Vue.prototype,"$props",propsDef),Vue.prototype.$set=set,Vue.prototype.$delete=del,Vue.prototype.$watch=function(expOrFn,cb,options){if(isPlainObject(cb))return createWatcher(this,expOrFn,cb,options);(options=options||{}).user=!0;var watcher=new Watcher(this,expOrFn,cb,options);if(options.immediate)try{cb.call(this,watcher.value)}catch(error){handleError(error,this,'callback for immediate watcher "'+watcher.expression+'"')}return function(){watcher.teardown()}}}(Vue),function(Vue){var hookRE=/^hook:/;Vue.prototype.$on=function(event,fn){var vm=this;if(Array.isArray(event))for(var i=0,l=event.length;i<l;i++)vm.$on(event[i],fn);else(vm._events[event]||(vm._events[event]=[])).push(fn),hookRE.test(event)&&(vm._hasHookEvent=!0);return vm},Vue.prototype.$once=function(event,fn){var vm=this;function on(){vm.$off(event,on),fn.apply(vm,arguments)}return on.fn=fn,vm.$on(event,on),vm},Vue.prototype.$off=function(event,fn){var vm=this;if(!arguments.length)return vm._events=Object.create(null),vm;if(Array.isArray(event)){for(var i$1=0,l=event.length;i$1<l;i$1++)vm.$off(event[i$1],fn);return vm}var cb,cbs=vm._events[event];if(!cbs)return vm;if(!fn)return vm._events[event]=null,vm;for(var i=cbs.length;i--;)if((cb=cbs[i])===fn||cb.fn===fn){cbs.splice(i,1);break}return vm},Vue.prototype.$emit=function(event){var vm=this;if("production"!==process.env.NODE_ENV){var lowerCaseEvent=event.toLowerCase();lowerCaseEvent!==event&&vm._events[lowerCaseEvent]&&tip('Event "'+lowerCaseEvent+'" is emitted in component '+formatComponentName(vm)+' but the handler is registered for "'+event+'". 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 "'+hyphenate(event)+'" instead of "'+event+'".')}var cbs=vm._events[event];if(cbs){cbs=cbs.length>1?toArray(cbs):cbs;for(var args=toArray(arguments,1),info='event handler for "'+event+'"',i=0,l=cbs.length;i<l;i++)invokeWithErrorHandling(cbs[i],vm,args,vm,info)}return vm}}(Vue),function(Vue){Vue.prototype._update=function(vnode,hydrating){var vm=this,prevEl=vm.$el,prevVnode=vm._vnode,restoreActiveInstance=setActiveInstance(vm);vm._vnode=vnode,vm.$el=prevVnode?vm.__patch__(prevVnode,vnode):vm.__patch__(vm.$el,vnode,hydrating,!1),restoreActiveInstance(),prevEl&&(prevEl.__vue__=null),vm.$el&&(vm.$el.__vue__=vm),vm.$vnode&&vm.$parent&&vm.$vnode===vm.$parent._vnode&&(vm.$parent.$el=vm.$el)},Vue.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},Vue.prototype.$destroy=function(){var vm=this;if(!vm._isBeingDestroyed){callHook(vm,"beforeDestroy"),vm._isBeingDestroyed=!0;var parent=vm.$parent;!parent||parent._isBeingDestroyed||vm.$options.abstract||remove(parent.$children,vm),vm._watcher&&vm._watcher.teardown();for(var i=vm._watchers.length;i--;)vm._watchers[i].teardown();vm._data.__ob__&&vm._data.__ob__.vmCount--,vm._isDestroyed=!0,vm.__patch__(vm._vnode,null),callHook(vm,"destroyed"),vm.$off(),vm.$el&&(vm.$el.__vue__=null),vm.$vnode&&(vm.$vnode.parent=null)}}}(Vue),function(Vue){installRenderHelpers(Vue.prototype),Vue.prototype.$nextTick=function(fn){return nextTick(fn,this)},Vue.prototype._render=function(){var vnode,vm=this,ref=vm.$options,render=ref.render,_parentVnode=ref._parentVnode;_parentVnode&&(vm.$scopedSlots=normalizeScopedSlots(_parentVnode.data.scopedSlots,vm.$slots,vm.$scopedSlots)),vm.$vnode=_parentVnode;try{currentRenderingInstance=vm,vnode=render.call(vm._renderProxy,vm.$createElement)}catch(e){if(handleError(e,vm,"render"),"production"!==process.env.NODE_ENV&&vm.$options.renderError)try{vnode=vm.$options.renderError.call(vm._renderProxy,vm.$createElement,e)}catch(e){handleError(e,vm,"renderError"),vnode=vm._vnode}else vnode=vm._vnode}finally{currentRenderingInstance=null}return Array.isArray(vnode)&&1===vnode.length&&(vnode=vnode[0]),vnode instanceof VNode||("production"!==process.env.NODE_ENV&&Array.isArray(vnode)&&warn("Multiple root nodes returned from render function. Render function should return a single root node.",vm),vnode=createEmptyVNode()),vnode.parent=_parentVnode,vnode}}(Vue);var patternTypes=[String,RegExp,Array],builtInComponents={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:patternTypes,exclude:patternTypes,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var key in this.cache)pruneCacheEntry(this.cache,key,this.keys)},mounted:function(){var this$1=this;this.$watch("include",(function(val){pruneCache(this$1,(function(name){return matches(val,name)}))})),this.$watch("exclude",(function(val){pruneCache(this$1,(function(name){return!matches(val,name)}))}))},render:function(){var slot=this.$slots.default,vnode=getFirstComponentChild(slot),componentOptions=vnode&&vnode.componentOptions;if(componentOptions){var name=getComponentName(componentOptions),include=this.include,exclude=this.exclude;if(include&&(!name||!matches(include,name))||exclude&&name&&matches(exclude,name))return vnode;var cache=this.cache,keys=this.keys,key=null==vnode.key?componentOptions.Ctor.cid+(componentOptions.tag?"::"+componentOptions.tag:""):vnode.key;cache[key]?(vnode.componentInstance=cache[key].componentInstance,remove(keys,key),keys.push(key)):(cache[key]=vnode,keys.push(key),this.max&&keys.length>parseInt(this.max)&&pruneCacheEntry(cache,keys[0],keys,this._vnode)),vnode.data.keepAlive=!0}return vnode||slot&&slot[0]}}};!function(Vue){var configDef={get:function(){return config}};"production"!==process.env.NODE_ENV&&(configDef.set=function(){warn("Do not replace the Vue.config object, set individual fields instead.")}),Object.defineProperty(Vue,"config",configDef),Vue.util={warn,extend,mergeOptions,defineReactive:defineReactive$$1},Vue.set=set,Vue.delete=del,Vue.nextTick=nextTick,Vue.observable=function(obj){return observe(obj),obj},Vue.options=Object.create(null),ASSET_TYPES.forEach((function(type){Vue.options[type+"s"]=Object.create(null)})),Vue.options._base=Vue,extend(Vue.options.components,builtInComponents),function(Vue){Vue.use=function(plugin){var installedPlugins=this._installedPlugins||(this._installedPlugins=[]);if(installedPlugins.indexOf(plugin)>-1)return this;var args=toArray(arguments,1);return args.unshift(this),"function"==typeof plugin.install?plugin.install.apply(plugin,args):"function"==typeof plugin&&plugin.apply(null,args),installedPlugins.push(plugin),this}}(Vue),function(Vue){Vue.mixin=function(mixin){return this.options=mergeOptions(this.options,mixin),this}}(Vue),initExtend(Vue),function(Vue){ASSET_TYPES.forEach((function(type){Vue[type]=function(id,definition){return definition?("production"!==process.env.NODE_ENV&&"component"===type&&validateComponentName(id),"component"===type&&isPlainObject(definition)&&(definition.name=definition.name||id,definition=this.options._base.extend(definition)),"directive"===type&&"function"==typeof definition&&(definition={bind:definition,update:definition}),this.options[type+"s"][id]=definition,definition):this.options[type+"s"][id]}}))}(Vue)}(Vue),Object.defineProperty(Vue.prototype,"$isServer",{get:isServerRendering}),Object.defineProperty(Vue.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Vue,"FunctionalRenderContext",{value:FunctionalRenderContext}),Vue.version="2.6.11";var isReservedAttr=makeMap("style,class"),acceptValue=makeMap("input,textarea,option,select,progress"),isEnumeratedAttr=makeMap("contenteditable,draggable,spellcheck"),isValidContentEditableValue=makeMap("events,caret,typing,plaintext-only"),isBooleanAttr=makeMap("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"),xlinkNS="http://www.w3.org/1999/xlink",isXlink=function(name){return":"===name.charAt(5)&&"xlink"===name.slice(0,5)},getXlinkProp=function(name){return isXlink(name)?name.slice(6,name.length):""},isFalsyAttrValue=function(val){return null==val||!1===val};function genClassForVnode(vnode){for(var data=vnode.data,parentNode=vnode,childNode=vnode;isDef(childNode.componentInstance);)(childNode=childNode.componentInstance._vnode)&&childNode.data&&(data=mergeClassData(childNode.data,data));for(;isDef(parentNode=parentNode.parent);)parentNode&&parentNode.data&&(data=mergeClassData(data,parentNode.data));return function(staticClass,dynamicClass){if(isDef(staticClass)||isDef(dynamicClass))return concat(staticClass,stringifyClass(dynamicClass));return""}(data.staticClass,data.class)}function mergeClassData(child,parent){return{staticClass:concat(child.staticClass,parent.staticClass),class:isDef(child.class)?[child.class,parent.class]:parent.class}}function concat(a,b){return a?b?a+" "+b:a:b||""}function stringifyClass(value){return Array.isArray(value)?function(value){for(var stringified,res="",i=0,l=value.length;i<l;i++)isDef(stringified=stringifyClass(value[i]))&&""!==stringified&&(res&&(res+=" "),res+=stringified);return res}(value):isObject$1(value)?function(value){var res="";for(var key in value)value[key]&&(res&&(res+=" "),res+=key);return res}(value):"string"==typeof value?value:""}var namespaceMap={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},isHTMLTag=makeMap("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"),isSVG=makeMap("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),isReservedTag=function(tag){return isHTMLTag(tag)||isSVG(tag)};var unknownElementCache=Object.create(null);var isTextInputType=makeMap("text,number,password,search,email,tel,url");var nodeOps=Object.freeze({createElement:function(tagName,vnode){var elm=document.createElement(tagName);return"select"!==tagName?elm:(vnode.data&&vnode.data.attrs&&void 0!==vnode.data.attrs.multiple&&elm.setAttribute("multiple","multiple"),elm)},createElementNS:function(namespace,tagName){return document.createElementNS(namespaceMap[namespace],tagName)},createTextNode:function(text){return document.createTextNode(text)},createComment:function(text){return document.createComment(text)},insertBefore:function(parentNode,newNode,referenceNode){parentNode.insertBefore(newNode,referenceNode)},removeChild:function(node,child){node.removeChild(child)},appendChild:function(node,child){node.appendChild(child)},parentNode:function(node){return node.parentNode},nextSibling:function(node){return node.nextSibling},tagName:function(node){return node.tagName},setTextContent:function(node,text){node.textContent=text},setStyleScope:function(node,scopeId){node.setAttribute(scopeId,"")}}),ref={create:function(_,vnode){registerRef(vnode)},update:function(oldVnode,vnode){oldVnode.data.ref!==vnode.data.ref&&(registerRef(oldVnode,!0),registerRef(vnode))},destroy:function(vnode){registerRef(vnode,!0)}};function registerRef(vnode,isRemoval){var key=vnode.data.ref;if(isDef(key)){var vm=vnode.context,ref=vnode.componentInstance||vnode.elm,refs=vm.$refs;isRemoval?Array.isArray(refs[key])?remove(refs[key],ref):refs[key]===ref&&(refs[key]=void 0):vnode.data.refInFor?Array.isArray(refs[key])?refs[key].indexOf(ref)<0&&refs[key].push(ref):refs[key]=[ref]:refs[key]=ref}}var emptyNode=new VNode("",{},[]),hooks=["create","activate","update","remove","destroy"];function sameVnode(a,b){return a.key===b.key&&(a.tag===b.tag&&a.isComment===b.isComment&&isDef(a.data)===isDef(b.data)&&function(a,b){if("input"!==a.tag)return!0;var i,typeA=isDef(i=a.data)&&isDef(i=i.attrs)&&i.type,typeB=isDef(i=b.data)&&isDef(i=i.attrs)&&i.type;return typeA===typeB||isTextInputType(typeA)&&isTextInputType(typeB)}(a,b)||isTrue(a.isAsyncPlaceholder)&&a.asyncFactory===b.asyncFactory&&isUndef(b.asyncFactory.error))}function createKeyToOldIdx(children,beginIdx,endIdx){var i,key,map={};for(i=beginIdx;i<=endIdx;++i)isDef(key=children[i].key)&&(map[key]=i);return map}var directives={create:updateDirectives,update:updateDirectives,destroy:function(vnode){updateDirectives(vnode,emptyNode)}};function updateDirectives(oldVnode,vnode){(oldVnode.data.directives||vnode.data.directives)&&function(oldVnode,vnode){var key,oldDir,dir,isCreate=oldVnode===emptyNode,isDestroy=vnode===emptyNode,oldDirs=normalizeDirectives$1(oldVnode.data.directives,oldVnode.context),newDirs=normalizeDirectives$1(vnode.data.directives,vnode.context),dirsWithInsert=[],dirsWithPostpatch=[];for(key in newDirs)oldDir=oldDirs[key],dir=newDirs[key],oldDir?(dir.oldValue=oldDir.value,dir.oldArg=oldDir.arg,callHook$1(dir,"update",vnode,oldVnode),dir.def&&dir.def.componentUpdated&&dirsWithPostpatch.push(dir)):(callHook$1(dir,"bind",vnode,oldVnode),dir.def&&dir.def.inserted&&dirsWithInsert.push(dir));if(dirsWithInsert.length){var callInsert=function(){for(var i=0;i<dirsWithInsert.length;i++)callHook$1(dirsWithInsert[i],"inserted",vnode,oldVnode)};isCreate?mergeVNodeHook(vnode,"insert",callInsert):callInsert()}dirsWithPostpatch.length&&mergeVNodeHook(vnode,"postpatch",(function(){for(var i=0;i<dirsWithPostpatch.length;i++)callHook$1(dirsWithPostpatch[i],"componentUpdated",vnode,oldVnode)}));if(!isCreate)for(key in oldDirs)newDirs[key]||callHook$1(oldDirs[key],"unbind",oldVnode,oldVnode,isDestroy)}(oldVnode,vnode)}var emptyModifiers=Object.create(null);function normalizeDirectives$1(dirs,vm){var i,dir,res=Object.create(null);if(!dirs)return res;for(i=0;i<dirs.length;i++)(dir=dirs[i]).modifiers||(dir.modifiers=emptyModifiers),res[getRawDirName(dir)]=dir,dir.def=resolveAsset(vm.$options,"directives",dir.name,!0);return res}function getRawDirName(dir){return dir.rawName||dir.name+"."+Object.keys(dir.modifiers||{}).join(".")}function callHook$1(dir,hook,vnode,oldVnode,isDestroy){var fn=dir.def&&dir.def[hook];if(fn)try{fn(vnode.elm,dir,vnode,oldVnode,isDestroy)}catch(e){handleError(e,vnode.context,"directive "+dir.name+" "+hook+" hook")}}var baseModules=[ref,directives];function updateAttrs(oldVnode,vnode){var opts=vnode.componentOptions;if(!(isDef(opts)&&!1===opts.Ctor.options.inheritAttrs||isUndef(oldVnode.data.attrs)&&isUndef(vnode.data.attrs))){var key,cur,elm=vnode.elm,oldAttrs=oldVnode.data.attrs||{},attrs=vnode.data.attrs||{};for(key in isDef(attrs.__ob__)&&(attrs=vnode.data.attrs=extend({},attrs)),attrs)cur=attrs[key],oldAttrs[key]!==cur&&setAttr(elm,key,cur);for(key in(isIE||isEdge)&&attrs.value!==oldAttrs.value&&setAttr(elm,"value",attrs.value),oldAttrs)isUndef(attrs[key])&&(isXlink(key)?elm.removeAttributeNS(xlinkNS,getXlinkProp(key)):isEnumeratedAttr(key)||elm.removeAttribute(key))}}function setAttr(el,key,value){el.tagName.indexOf("-")>-1?baseSetAttr(el,key,value):isBooleanAttr(key)?isFalsyAttrValue(value)?el.removeAttribute(key):(value="allowfullscreen"===key&&"EMBED"===el.tagName?"true":key,el.setAttribute(key,value)):isEnumeratedAttr(key)?el.setAttribute(key,function(key,value){return isFalsyAttrValue(value)||"false"===value?"false":"contenteditable"===key&&isValidContentEditableValue(value)?value:"true"}(key,value)):isXlink(key)?isFalsyAttrValue(value)?el.removeAttributeNS(xlinkNS,getXlinkProp(key)):el.setAttributeNS(xlinkNS,key,value):baseSetAttr(el,key,value)}function baseSetAttr(el,key,value){if(isFalsyAttrValue(value))el.removeAttribute(key);else{if(isIE&&!isIE9&&"TEXTAREA"===el.tagName&&"placeholder"===key&&""!==value&&!el.__ieph){var blocker=function(e){e.stopImmediatePropagation(),el.removeEventListener("input",blocker)};el.addEventListener("input",blocker),el.__ieph=!0}el.setAttribute(key,value)}}var attrs={create:updateAttrs,update:updateAttrs};function updateClass(oldVnode,vnode){var el=vnode.elm,data=vnode.data,oldData=oldVnode.data;if(!(isUndef(data.staticClass)&&isUndef(data.class)&&(isUndef(oldData)||isUndef(oldData.staticClass)&&isUndef(oldData.class)))){var cls=genClassForVnode(vnode),transitionClass=el._transitionClasses;isDef(transitionClass)&&(cls=concat(cls,stringifyClass(transitionClass))),cls!==el._prevClass&&(el.setAttribute("class",cls),el._prevClass=cls)}}var target$1,klass={create:updateClass,update:updateClass};function createOnceHandler$1(event,handler,capture){var _target=target$1;return function onceHandler(){var res=handler.apply(null,arguments);null!==res&&remove$2(event,onceHandler,capture,_target)}}var useMicrotaskFix=isUsingMicroTask&&!(isFF&&Number(isFF[1])<=53);function add$1(name,handler,capture,passive){if(useMicrotaskFix){var attachedTimestamp=currentFlushTimestamp,original=handler;handler=original._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=attachedTimestamp||e.timeStamp<=0||e.target.ownerDocument!==document)return original.apply(this,arguments)}}target$1.addEventListener(name,handler,supportsPassive?{capture,passive}:capture)}function remove$2(name,handler,capture,_target){(_target||target$1).removeEventListener(name,handler._wrapper||handler,capture)}function updateDOMListeners(oldVnode,vnode){if(!isUndef(oldVnode.data.on)||!isUndef(vnode.data.on)){var on=vnode.data.on||{},oldOn=oldVnode.data.on||{};target$1=vnode.elm,function(on){if(isDef(on.__r)){var event=isIE?"change":"input";on[event]=[].concat(on.__r,on[event]||[]),delete on.__r}isDef(on.__c)&&(on.change=[].concat(on.__c,on.change||[]),delete on.__c)}(on),updateListeners(on,oldOn,add$1,remove$2,createOnceHandler$1,vnode.context),target$1=void 0}}var svgContainer,events={create:updateDOMListeners,update:updateDOMListeners};function updateDOMProps(oldVnode,vnode){if(!isUndef(oldVnode.data.domProps)||!isUndef(vnode.data.domProps)){var key,cur,elm=vnode.elm,oldProps=oldVnode.data.domProps||{},props=vnode.data.domProps||{};for(key in isDef(props.__ob__)&&(props=vnode.data.domProps=extend({},props)),oldProps)key in props||(elm[key]="");for(key in props){if(cur=props[key],"textContent"===key||"innerHTML"===key){if(vnode.children&&(vnode.children.length=0),cur===oldProps[key])continue;1===elm.childNodes.length&&elm.removeChild(elm.childNodes[0])}if("value"===key&&"PROGRESS"!==elm.tagName){elm._value=cur;var strCur=isUndef(cur)?"":String(cur);shouldUpdateValue(elm,strCur)&&(elm.value=strCur)}else if("innerHTML"===key&&isSVG(elm.tagName)&&isUndef(elm.innerHTML)){(svgContainer=svgContainer||document.createElement("div")).innerHTML="<svg>"+cur+"</svg>";for(var svg=svgContainer.firstChild;elm.firstChild;)elm.removeChild(elm.firstChild);for(;svg.firstChild;)elm.appendChild(svg.firstChild)}else if(cur!==oldProps[key])try{elm[key]=cur}catch(e){}}}}function shouldUpdateValue(elm,checkVal){return!elm.composing&&("OPTION"===elm.tagName||function(elm,checkVal){var notInFocus=!0;try{notInFocus=document.activeElement!==elm}catch(e){}return notInFocus&&elm.value!==checkVal}(elm,checkVal)||function(elm,newVal){var value=elm.value,modifiers=elm._vModifiers;if(isDef(modifiers)){if(modifiers.number)return toNumber$1(value)!==toNumber$1(newVal);if(modifiers.trim)return value.trim()!==newVal.trim()}return value!==newVal}(elm,checkVal))}var domProps={create:updateDOMProps,update:updateDOMProps},parseStyleText=cached((function(cssText){var res={},propertyDelimiter=/:(.+)/;return cssText.split(/;(?![^(]*\))/g).forEach((function(item){if(item){var tmp=item.split(propertyDelimiter);tmp.length>1&&(res[tmp[0].trim()]=tmp[1].trim())}})),res}));function normalizeStyleData(data){var style=normalizeStyleBinding(data.style);return data.staticStyle?extend(data.staticStyle,style):style}function normalizeStyleBinding(bindingStyle){return Array.isArray(bindingStyle)?toObject(bindingStyle):"string"==typeof bindingStyle?parseStyleText(bindingStyle):bindingStyle}var emptyStyle,cssVarRE=/^--/,importantRE=/\s*!important$/,setProp=function(el,name,val){if(cssVarRE.test(name))el.style.setProperty(name,val);else if(importantRE.test(val))el.style.setProperty(hyphenate(name),val.replace(importantRE,""),"important");else{var normalizedName=normalize(name);if(Array.isArray(val))for(var i=0,len=val.length;i<len;i++)el.style[normalizedName]=val[i];else el.style[normalizedName]=val}},vendorNames=["Webkit","Moz","ms"],normalize=cached((function(prop){if(emptyStyle=emptyStyle||document.createElement("div").style,"filter"!==(prop=camelize(prop))&&prop in emptyStyle)return prop;for(var capName=prop.charAt(0).toUpperCase()+prop.slice(1),i=0;i<vendorNames.length;i++){var name=vendorNames[i]+capName;if(name in emptyStyle)return name}}));function updateStyle(oldVnode,vnode){var data=vnode.data,oldData=oldVnode.data;if(!(isUndef(data.staticStyle)&&isUndef(data.style)&&isUndef(oldData.staticStyle)&&isUndef(oldData.style))){var cur,name,el=vnode.elm,oldStaticStyle=oldData.staticStyle,oldStyleBinding=oldData.normalizedStyle||oldData.style||{},oldStyle=oldStaticStyle||oldStyleBinding,style=normalizeStyleBinding(vnode.data.style)||{};vnode.data.normalizedStyle=isDef(style.__ob__)?extend({},style):style;var newStyle=function(vnode,checkChild){var styleData,res={};if(checkChild)for(var childNode=vnode;childNode.componentInstance;)(childNode=childNode.componentInstance._vnode)&&childNode.data&&(styleData=normalizeStyleData(childNode.data))&&extend(res,styleData);(styleData=normalizeStyleData(vnode.data))&&extend(res,styleData);for(var parentNode=vnode;parentNode=parentNode.parent;)parentNode.data&&(styleData=normalizeStyleData(parentNode.data))&&extend(res,styleData);return res}(vnode,!0);for(name in oldStyle)isUndef(newStyle[name])&&setProp(el,name,"");for(name in newStyle)(cur=newStyle[name])!==oldStyle[name]&&setProp(el,name,null==cur?"":cur)}}var style={create:updateStyle,update:updateStyle},whitespaceRE=/\s+/;function addClass(el,cls){if(cls&&(cls=cls.trim()))if(el.classList)cls.indexOf(" ")>-1?cls.split(whitespaceRE).forEach((function(c){return el.classList.add(c)})):el.classList.add(cls);else{var cur=" "+(el.getAttribute("class")||"")+" ";cur.indexOf(" "+cls+" ")<0&&el.setAttribute("class",(cur+cls).trim())}}function removeClass(el,cls){if(cls&&(cls=cls.trim()))if(el.classList)cls.indexOf(" ")>-1?cls.split(whitespaceRE).forEach((function(c){return el.classList.remove(c)})):el.classList.remove(cls),el.classList.length||el.removeAttribute("class");else{for(var cur=" "+(el.getAttribute("class")||"")+" ",tar=" "+cls+" ";cur.indexOf(tar)>=0;)cur=cur.replace(tar," ");(cur=cur.trim())?el.setAttribute("class",cur):el.removeAttribute("class")}}function resolveTransition(def$$1){if(def$$1){if("object"==typeof def$$1){var res={};return!1!==def$$1.css&&extend(res,autoCssTransition(def$$1.name||"v")),extend(res,def$$1),res}return"string"==typeof def$$1?autoCssTransition(def$$1):void 0}}var autoCssTransition=cached((function(name){return{enterClass:name+"-enter",enterToClass:name+"-enter-to",enterActiveClass:name+"-enter-active",leaveClass:name+"-leave",leaveToClass:name+"-leave-to",leaveActiveClass:name+"-leave-active"}})),hasTransition=inBrowser&&!isIE9,transitionProp="transition",transitionEndEvent="transitionend",animationProp="animation",animationEndEvent="animationend";hasTransition&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(transitionProp="WebkitTransition",transitionEndEvent="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(animationProp="WebkitAnimation",animationEndEvent="webkitAnimationEnd"));var raf=inBrowser?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(fn){return fn()};function nextFrame(fn){raf((function(){raf(fn)}))}function addTransitionClass(el,cls){var transitionClasses=el._transitionClasses||(el._transitionClasses=[]);transitionClasses.indexOf(cls)<0&&(transitionClasses.push(cls),addClass(el,cls))}function removeTransitionClass(el,cls){el._transitionClasses&&remove(el._transitionClasses,cls),removeClass(el,cls)}function whenTransitionEnds(el,expectedType,cb){var ref=getTransitionInfo(el,expectedType),type=ref.type,timeout=ref.timeout,propCount=ref.propCount;if(!type)return cb();var event="transition"===type?transitionEndEvent:animationEndEvent,ended=0,end=function(){el.removeEventListener(event,onEnd),cb()},onEnd=function(e){e.target===el&&++ended>=propCount&&end()};setTimeout((function(){ended<propCount&&end()}),timeout+1),el.addEventListener(event,onEnd)}var transformRE=/\b(transform|all)(,|$)/;function getTransitionInfo(el,expectedType){var type,styles=window.getComputedStyle(el),transitionDelays=(styles[transitionProp+"Delay"]||"").split(", "),transitionDurations=(styles[transitionProp+"Duration"]||"").split(", "),transitionTimeout=getTimeout(transitionDelays,transitionDurations),animationDelays=(styles[animationProp+"Delay"]||"").split(", "),animationDurations=(styles[animationProp+"Duration"]||"").split(", "),animationTimeout=getTimeout(animationDelays,animationDurations),timeout=0,propCount=0;return"transition"===expectedType?transitionTimeout>0&&(type="transition",timeout=transitionTimeout,propCount=transitionDurations.length):"animation"===expectedType?animationTimeout>0&&(type="animation",timeout=animationTimeout,propCount=animationDurations.length):propCount=(type=(timeout=Math.max(transitionTimeout,animationTimeout))>0?transitionTimeout>animationTimeout?"transition":"animation":null)?"transition"===type?transitionDurations.length:animationDurations.length:0,{type,timeout,propCount,hasTransform:"transition"===type&&transformRE.test(styles[transitionProp+"Property"])}}function getTimeout(delays,durations){for(;delays.length<durations.length;)delays=delays.concat(delays);return Math.max.apply(null,durations.map((function(d,i){return toMs(d)+toMs(delays[i])})))}function toMs(s){return 1e3*Number(s.slice(0,-1).replace(",","."))}function enter(vnode,toggleDisplay){var el=vnode.elm;isDef(el._leaveCb)&&(el._leaveCb.cancelled=!0,el._leaveCb());var data=resolveTransition(vnode.data.transition);if(!isUndef(data)&&!isDef(el._enterCb)&&1===el.nodeType){for(var css=data.css,type=data.type,enterClass=data.enterClass,enterToClass=data.enterToClass,enterActiveClass=data.enterActiveClass,appearClass=data.appearClass,appearToClass=data.appearToClass,appearActiveClass=data.appearActiveClass,beforeEnter=data.beforeEnter,enter=data.enter,afterEnter=data.afterEnter,enterCancelled=data.enterCancelled,beforeAppear=data.beforeAppear,appear=data.appear,afterAppear=data.afterAppear,appearCancelled=data.appearCancelled,duration=data.duration,context=activeInstance,transitionNode=activeInstance.$vnode;transitionNode&&transitionNode.parent;)context=transitionNode.context,transitionNode=transitionNode.parent;var isAppear=!context._isMounted||!vnode.isRootInsert;if(!isAppear||appear||""===appear){var startClass=isAppear&&appearClass?appearClass:enterClass,activeClass=isAppear&&appearActiveClass?appearActiveClass:enterActiveClass,toClass=isAppear&&appearToClass?appearToClass:enterToClass,beforeEnterHook=isAppear&&beforeAppear||beforeEnter,enterHook=isAppear&&"function"==typeof appear?appear:enter,afterEnterHook=isAppear&&afterAppear||afterEnter,enterCancelledHook=isAppear&&appearCancelled||enterCancelled,explicitEnterDuration=toNumber$1(isObject$1(duration)?duration.enter:duration);"production"!==process.env.NODE_ENV&&null!=explicitEnterDuration&&checkDuration(explicitEnterDuration,"enter",vnode);var expectsCSS=!1!==css&&!isIE9,userWantsControl=getHookArgumentsLength(enterHook),cb=el._enterCb=once((function(){expectsCSS&&(removeTransitionClass(el,toClass),removeTransitionClass(el,activeClass)),cb.cancelled?(expectsCSS&&removeTransitionClass(el,startClass),enterCancelledHook&&enterCancelledHook(el)):afterEnterHook&&afterEnterHook(el),el._enterCb=null}));vnode.data.show||mergeVNodeHook(vnode,"insert",(function(){var parent=el.parentNode,pendingNode=parent&&parent._pending&&parent._pending[vnode.key];pendingNode&&pendingNode.tag===vnode.tag&&pendingNode.elm._leaveCb&&pendingNode.elm._leaveCb(),enterHook&&enterHook(el,cb)})),beforeEnterHook&&beforeEnterHook(el),expectsCSS&&(addTransitionClass(el,startClass),addTransitionClass(el,activeClass),nextFrame((function(){removeTransitionClass(el,startClass),cb.cancelled||(addTransitionClass(el,toClass),userWantsControl||(isValidDuration(explicitEnterDuration)?setTimeout(cb,explicitEnterDuration):whenTransitionEnds(el,type,cb)))}))),vnode.data.show&&(toggleDisplay&&toggleDisplay(),enterHook&&enterHook(el,cb)),expectsCSS||userWantsControl||cb()}}}function leave(vnode,rm){var el=vnode.elm;isDef(el._enterCb)&&(el._enterCb.cancelled=!0,el._enterCb());var data=resolveTransition(vnode.data.transition);if(isUndef(data)||1!==el.nodeType)return rm();if(!isDef(el._leaveCb)){var css=data.css,type=data.type,leaveClass=data.leaveClass,leaveToClass=data.leaveToClass,leaveActiveClass=data.leaveActiveClass,beforeLeave=data.beforeLeave,leave=data.leave,afterLeave=data.afterLeave,leaveCancelled=data.leaveCancelled,delayLeave=data.delayLeave,duration=data.duration,expectsCSS=!1!==css&&!isIE9,userWantsControl=getHookArgumentsLength(leave),explicitLeaveDuration=toNumber$1(isObject$1(duration)?duration.leave:duration);"production"!==process.env.NODE_ENV&&isDef(explicitLeaveDuration)&&checkDuration(explicitLeaveDuration,"leave",vnode);var cb=el._leaveCb=once((function(){el.parentNode&&el.parentNode._pending&&(el.parentNode._pending[vnode.key]=null),expectsCSS&&(removeTransitionClass(el,leaveToClass),removeTransitionClass(el,leaveActiveClass)),cb.cancelled?(expectsCSS&&removeTransitionClass(el,leaveClass),leaveCancelled&&leaveCancelled(el)):(rm(),afterLeave&&afterLeave(el)),el._leaveCb=null}));delayLeave?delayLeave(performLeave):performLeave()}function performLeave(){cb.cancelled||(!vnode.data.show&&el.parentNode&&((el.parentNode._pending||(el.parentNode._pending={}))[vnode.key]=vnode),beforeLeave&&beforeLeave(el),expectsCSS&&(addTransitionClass(el,leaveClass),addTransitionClass(el,leaveActiveClass),nextFrame((function(){removeTransitionClass(el,leaveClass),cb.cancelled||(addTransitionClass(el,leaveToClass),userWantsControl||(isValidDuration(explicitLeaveDuration)?setTimeout(cb,explicitLeaveDuration):whenTransitionEnds(el,type,cb)))}))),leave&&leave(el,cb),expectsCSS||userWantsControl||cb())}}function checkDuration(val,name,vnode){"number"!=typeof val?warn("<transition> explicit "+name+" duration is not a valid number - got "+JSON.stringify(val)+".",vnode.context):isNaN(val)&&warn("<transition> explicit "+name+" duration is NaN - the duration expression might be incorrect.",vnode.context)}function isValidDuration(val){return"number"==typeof val&&!isNaN(val)}function getHookArgumentsLength(fn){if(isUndef(fn))return!1;var invokerFns=fn.fns;return isDef(invokerFns)?getHookArgumentsLength(Array.isArray(invokerFns)?invokerFns[0]:invokerFns):(fn._length||fn.length)>1}function _enter(_,vnode){!0!==vnode.data.show&&enter(vnode)}var patch=function(backend){var i,j,cbs={},modules=backend.modules,nodeOps=backend.nodeOps;for(i=0;i<hooks.length;++i)for(cbs[hooks[i]]=[],j=0;j<modules.length;++j)isDef(modules[j][hooks[i]])&&cbs[hooks[i]].push(modules[j][hooks[i]]);function removeNode(el){var parent=nodeOps.parentNode(el);isDef(parent)&&nodeOps.removeChild(parent,el)}function isUnknownElement$$1(vnode,inVPre){return!inVPre&&!vnode.ns&&!(config.ignoredElements.length&&config.ignoredElements.some((function(ignore){return isRegExp(ignore)?ignore.test(vnode.tag):ignore===vnode.tag})))&&config.isUnknownElement(vnode.tag)}var creatingElmInVPre=0;function createElm(vnode,insertedVnodeQueue,parentElm,refElm,nested,ownerArray,index){if(isDef(vnode.elm)&&isDef(ownerArray)&&(vnode=ownerArray[index]=cloneVNode(vnode)),vnode.isRootInsert=!nested,!function(vnode,insertedVnodeQueue,parentElm,refElm){var i=vnode.data;if(isDef(i)){var isReactivated=isDef(vnode.componentInstance)&&i.keepAlive;if(isDef(i=i.hook)&&isDef(i=i.init)&&i(vnode,!1),isDef(vnode.componentInstance))return initComponent(vnode,insertedVnodeQueue),insert(parentElm,vnode.elm,refElm),isTrue(isReactivated)&&function(vnode,insertedVnodeQueue,parentElm,refElm){var i,innerNode=vnode;for(;innerNode.componentInstance;)if(innerNode=innerNode.componentInstance._vnode,isDef(i=innerNode.data)&&isDef(i=i.transition)){for(i=0;i<cbs.activate.length;++i)cbs.activate[i](emptyNode,innerNode);insertedVnodeQueue.push(innerNode);break}insert(parentElm,vnode.elm,refElm)}(vnode,insertedVnodeQueue,parentElm,refElm),!0}}(vnode,insertedVnodeQueue,parentElm,refElm)){var data=vnode.data,children=vnode.children,tag=vnode.tag;isDef(tag)?("production"!==process.env.NODE_ENV&&(data&&data.pre&&creatingElmInVPre++,isUnknownElement$$1(vnode,creatingElmInVPre)&&warn("Unknown custom element: <"+tag+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',vnode.context)),vnode.elm=vnode.ns?nodeOps.createElementNS(vnode.ns,tag):nodeOps.createElement(tag,vnode),setScope(vnode),createChildren(vnode,children,insertedVnodeQueue),isDef(data)&&invokeCreateHooks(vnode,insertedVnodeQueue),insert(parentElm,vnode.elm,refElm),"production"!==process.env.NODE_ENV&&data&&data.pre&&creatingElmInVPre--):isTrue(vnode.isComment)?(vnode.elm=nodeOps.createComment(vnode.text),insert(parentElm,vnode.elm,refElm)):(vnode.elm=nodeOps.createTextNode(vnode.text),insert(parentElm,vnode.elm,refElm))}}function initComponent(vnode,insertedVnodeQueue){isDef(vnode.data.pendingInsert)&&(insertedVnodeQueue.push.apply(insertedVnodeQueue,vnode.data.pendingInsert),vnode.data.pendingInsert=null),vnode.elm=vnode.componentInstance.$el,isPatchable(vnode)?(invokeCreateHooks(vnode,insertedVnodeQueue),setScope(vnode)):(registerRef(vnode),insertedVnodeQueue.push(vnode))}function insert(parent,elm,ref$$1){isDef(parent)&&(isDef(ref$$1)?nodeOps.parentNode(ref$$1)===parent&&nodeOps.insertBefore(parent,elm,ref$$1):nodeOps.appendChild(parent,elm))}function createChildren(vnode,children,insertedVnodeQueue){if(Array.isArray(children)){"production"!==process.env.NODE_ENV&&checkDuplicateKeys(children);for(var i=0;i<children.length;++i)createElm(children[i],insertedVnodeQueue,vnode.elm,null,!0,children,i)}else isPrimitive(vnode.text)&&nodeOps.appendChild(vnode.elm,nodeOps.createTextNode(String(vnode.text)))}function isPatchable(vnode){for(;vnode.componentInstance;)vnode=vnode.componentInstance._vnode;return isDef(vnode.tag)}function invokeCreateHooks(vnode,insertedVnodeQueue){for(var i$1=0;i$1<cbs.create.length;++i$1)cbs.create[i$1](emptyNode,vnode);isDef(i=vnode.data.hook)&&(isDef(i.create)&&i.create(emptyNode,vnode),isDef(i.insert)&&insertedVnodeQueue.push(vnode))}function setScope(vnode){var i;if(isDef(i=vnode.fnScopeId))nodeOps.setStyleScope(vnode.elm,i);else for(var ancestor=vnode;ancestor;)isDef(i=ancestor.context)&&isDef(i=i.$options._scopeId)&&nodeOps.setStyleScope(vnode.elm,i),ancestor=ancestor.parent;isDef(i=activeInstance)&&i!==vnode.context&&i!==vnode.fnContext&&isDef(i=i.$options._scopeId)&&nodeOps.setStyleScope(vnode.elm,i)}function addVnodes(parentElm,refElm,vnodes,startIdx,endIdx,insertedVnodeQueue){for(;startIdx<=endIdx;++startIdx)createElm(vnodes[startIdx],insertedVnodeQueue,parentElm,refElm,!1,vnodes,startIdx)}function invokeDestroyHook(vnode){var i,j,data=vnode.data;if(isDef(data))for(isDef(i=data.hook)&&isDef(i=i.destroy)&&i(vnode),i=0;i<cbs.destroy.length;++i)cbs.destroy[i](vnode);if(isDef(i=vnode.children))for(j=0;j<vnode.children.length;++j)invokeDestroyHook(vnode.children[j])}function removeVnodes(vnodes,startIdx,endIdx){for(;startIdx<=endIdx;++startIdx){var ch=vnodes[startIdx];isDef(ch)&&(isDef(ch.tag)?(removeAndInvokeRemoveHook(ch),invokeDestroyHook(ch)):removeNode(ch.elm))}}function removeAndInvokeRemoveHook(vnode,rm){if(isDef(rm)||isDef(vnode.data)){var i,listeners=cbs.remove.length+1;for(isDef(rm)?rm.listeners+=listeners:rm=function(childElm,listeners){function remove$$1(){0==--remove$$1.listeners&&removeNode(childElm)}return remove$$1.listeners=listeners,remove$$1}(vnode.elm,listeners),isDef(i=vnode.componentInstance)&&isDef(i=i._vnode)&&isDef(i.data)&&removeAndInvokeRemoveHook(i,rm),i=0;i<cbs.remove.length;++i)cbs.remove[i](vnode,rm);isDef(i=vnode.data.hook)&&isDef(i=i.remove)?i(vnode,rm):rm()}else removeNode(vnode.elm)}function checkDuplicateKeys(children){for(var seenKeys={},i=0;i<children.length;i++){var vnode=children[i],key=vnode.key;isDef(key)&&(seenKeys[key]?warn("Duplicate keys detected: '"+key+"'. This may cause an update error.",vnode.context):seenKeys[key]=!0)}}function findIdxInOld(node,oldCh,start,end){for(var i=start;i<end;i++){var c=oldCh[i];if(isDef(c)&&sameVnode(node,c))return i}}function patchVnode(oldVnode,vnode,insertedVnodeQueue,ownerArray,index,removeOnly){if(oldVnode!==vnode){isDef(vnode.elm)&&isDef(ownerArray)&&(vnode=ownerArray[index]=cloneVNode(vnode));var elm=vnode.elm=oldVnode.elm;if(isTrue(oldVnode.isAsyncPlaceholder))isDef(vnode.asyncFactory.resolved)?hydrate(oldVnode.elm,vnode,insertedVnodeQueue):vnode.isAsyncPlaceholder=!0;else if(isTrue(vnode.isStatic)&&isTrue(oldVnode.isStatic)&&vnode.key===oldVnode.key&&(isTrue(vnode.isCloned)||isTrue(vnode.isOnce)))vnode.componentInstance=oldVnode.componentInstance;else{var i,data=vnode.data;isDef(data)&&isDef(i=data.hook)&&isDef(i=i.prepatch)&&i(oldVnode,vnode);var oldCh=oldVnode.children,ch=vnode.children;if(isDef(data)&&isPatchable(vnode)){for(i=0;i<cbs.update.length;++i)cbs.update[i](oldVnode,vnode);isDef(i=data.hook)&&isDef(i=i.update)&&i(oldVnode,vnode)}isUndef(vnode.text)?isDef(oldCh)&&isDef(ch)?oldCh!==ch&&function(parentElm,oldCh,newCh,insertedVnodeQueue,removeOnly){var oldKeyToIdx,idxInOld,vnodeToMove,oldStartIdx=0,newStartIdx=0,oldEndIdx=oldCh.length-1,oldStartVnode=oldCh[0],oldEndVnode=oldCh[oldEndIdx],newEndIdx=newCh.length-1,newStartVnode=newCh[0],newEndVnode=newCh[newEndIdx],canMove=!removeOnly;for("production"!==process.env.NODE_ENV&&checkDuplicateKeys(newCh);oldStartIdx<=oldEndIdx&&newStartIdx<=newEndIdx;)isUndef(oldStartVnode)?oldStartVnode=oldCh[++oldStartIdx]:isUndef(oldEndVnode)?oldEndVnode=oldCh[--oldEndIdx]:sameVnode(oldStartVnode,newStartVnode)?(patchVnode(oldStartVnode,newStartVnode,insertedVnodeQueue,newCh,newStartIdx),oldStartVnode=oldCh[++oldStartIdx],newStartVnode=newCh[++newStartIdx]):sameVnode(oldEndVnode,newEndVnode)?(patchVnode(oldEndVnode,newEndVnode,insertedVnodeQueue,newCh,newEndIdx),oldEndVnode=oldCh[--oldEndIdx],newEndVnode=newCh[--newEndIdx]):sameVnode(oldStartVnode,newEndVnode)?(patchVnode(oldStartVnode,newEndVnode,insertedVnodeQueue,newCh,newEndIdx),canMove&&nodeOps.insertBefore(parentElm,oldStartVnode.elm,nodeOps.nextSibling(oldEndVnode.elm)),oldStartVnode=oldCh[++oldStartIdx],newEndVnode=newCh[--newEndIdx]):sameVnode(oldEndVnode,newStartVnode)?(patchVnode(oldEndVnode,newStartVnode,insertedVnodeQueue,newCh,newStartIdx),canMove&&nodeOps.insertBefore(parentElm,oldEndVnode.elm,oldStartVnode.elm),oldEndVnode=oldCh[--oldEndIdx],newStartVnode=newCh[++newStartIdx]):(isUndef(oldKeyToIdx)&&(oldKeyToIdx=createKeyToOldIdx(oldCh,oldStartIdx,oldEndIdx)),isUndef(idxInOld=isDef(newStartVnode.key)?oldKeyToIdx[newStartVnode.key]:findIdxInOld(newStartVnode,oldCh,oldStartIdx,oldEndIdx))?createElm(newStartVnode,insertedVnodeQueue,parentElm,oldStartVnode.elm,!1,newCh,newStartIdx):sameVnode(vnodeToMove=oldCh[idxInOld],newStartVnode)?(patchVnode(vnodeToMove,newStartVnode,insertedVnodeQueue,newCh,newStartIdx),oldCh[idxInOld]=void 0,canMove&&nodeOps.insertBefore(parentElm,vnodeToMove.elm,oldStartVnode.elm)):createElm(newStartVnode,insertedVnodeQueue,parentElm,oldStartVnode.elm,!1,newCh,newStartIdx),newStartVnode=newCh[++newStartIdx]);oldStartIdx>oldEndIdx?addVnodes(parentElm,isUndef(newCh[newEndIdx+1])?null:newCh[newEndIdx+1].elm,newCh,newStartIdx,newEndIdx,insertedVnodeQueue):newStartIdx>newEndIdx&&removeVnodes(oldCh,oldStartIdx,oldEndIdx)}(elm,oldCh,ch,insertedVnodeQueue,removeOnly):isDef(ch)?("production"!==process.env.NODE_ENV&&checkDuplicateKeys(ch),isDef(oldVnode.text)&&nodeOps.setTextContent(elm,""),addVnodes(elm,null,ch,0,ch.length-1,insertedVnodeQueue)):isDef(oldCh)?removeVnodes(oldCh,0,oldCh.length-1):isDef(oldVnode.text)&&nodeOps.setTextContent(elm,""):oldVnode.text!==vnode.text&&nodeOps.setTextContent(elm,vnode.text),isDef(data)&&isDef(i=data.hook)&&isDef(i=i.postpatch)&&i(oldVnode,vnode)}}}function invokeInsertHook(vnode,queue,initial){if(isTrue(initial)&&isDef(vnode.parent))vnode.parent.data.pendingInsert=queue;else for(var i=0;i<queue.length;++i)queue[i].data.hook.insert(queue[i])}var hydrationBailed=!1,isRenderedModule=makeMap("attrs,class,staticClass,staticStyle,key");function hydrate(elm,vnode,insertedVnodeQueue,inVPre){var i,tag=vnode.tag,data=vnode.data,children=vnode.children;if(inVPre=inVPre||data&&data.pre,vnode.elm=elm,isTrue(vnode.isComment)&&isDef(vnode.asyncFactory))return vnode.isAsyncPlaceholder=!0,!0;if("production"!==process.env.NODE_ENV&&!function(node,vnode,inVPre){return isDef(vnode.tag)?0===vnode.tag.indexOf("vue-component")||!isUnknownElement$$1(vnode,inVPre)&&vnode.tag.toLowerCase()===(node.tagName&&node.tagName.toLowerCase()):node.nodeType===(vnode.isComment?8:3)}(elm,vnode,inVPre))return!1;if(isDef(data)&&(isDef(i=data.hook)&&isDef(i=i.init)&&i(vnode,!0),isDef(i=vnode.componentInstance)))return initComponent(vnode,insertedVnodeQueue),!0;if(isDef(tag)){if(isDef(children))if(elm.hasChildNodes())if(isDef(i=data)&&isDef(i=i.domProps)&&isDef(i=i.innerHTML)){if(i!==elm.innerHTML)return"production"===process.env.NODE_ENV||"undefined"==typeof console||hydrationBailed||(hydrationBailed=!0,console.warn("Parent: ",elm),console.warn("server innerHTML: ",i),console.warn("client innerHTML: ",elm.innerHTML)),!1}else{for(var childrenMatch=!0,childNode=elm.firstChild,i$1=0;i$1<children.length;i$1++){if(!childNode||!hydrate(childNode,children[i$1],insertedVnodeQueue,inVPre)){childrenMatch=!1;break}childNode=childNode.nextSibling}if(!childrenMatch||childNode)return"production"===process.env.NODE_ENV||"undefined"==typeof console||hydrationBailed||(hydrationBailed=!0,console.warn("Parent: ",elm),console.warn("Mismatching childNodes vs. VNodes: ",elm.childNodes,children)),!1}else createChildren(vnode,children,insertedVnodeQueue);if(isDef(data)){var fullInvoke=!1;for(var key in data)if(!isRenderedModule(key)){fullInvoke=!0,invokeCreateHooks(vnode,insertedVnodeQueue);break}!fullInvoke&&data.class&&traverse(data.class)}}else elm.data!==vnode.text&&(elm.data=vnode.text);return!0}return function(oldVnode,vnode,hydrating,removeOnly){if(!isUndef(vnode)){var elm,isInitialPatch=!1,insertedVnodeQueue=[];if(isUndef(oldVnode))isInitialPatch=!0,createElm(vnode,insertedVnodeQueue);else{var isRealElement=isDef(oldVnode.nodeType);if(!isRealElement&&sameVnode(oldVnode,vnode))patchVnode(oldVnode,vnode,insertedVnodeQueue,null,null,removeOnly);else{if(isRealElement){if(1===oldVnode.nodeType&&oldVnode.hasAttribute("data-server-rendered")&&(oldVnode.removeAttribute("data-server-rendered"),hydrating=!0),isTrue(hydrating)){if(hydrate(oldVnode,vnode,insertedVnodeQueue))return invokeInsertHook(vnode,insertedVnodeQueue,!0),oldVnode;"production"!==process.env.NODE_ENV&&warn("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.")}elm=oldVnode,oldVnode=new VNode(nodeOps.tagName(elm).toLowerCase(),{},[],void 0,elm)}var oldElm=oldVnode.elm,parentElm=nodeOps.parentNode(oldElm);if(createElm(vnode,insertedVnodeQueue,oldElm._leaveCb?null:parentElm,nodeOps.nextSibling(oldElm)),isDef(vnode.parent))for(var ancestor=vnode.parent,patchable=isPatchable(vnode);ancestor;){for(var i=0;i<cbs.destroy.length;++i)cbs.destroy[i](ancestor);if(ancestor.elm=vnode.elm,patchable){for(var i$1=0;i$1<cbs.create.length;++i$1)cbs.create[i$1](emptyNode,ancestor);var insert=ancestor.data.hook.insert;if(insert.merged)for(var i$2=1;i$2<insert.fns.length;i$2++)insert.fns[i$2]()}else registerRef(ancestor);ancestor=ancestor.parent}isDef(parentElm)?removeVnodes([oldVnode],0,0):isDef(oldVnode.tag)&&invokeDestroyHook(oldVnode)}}return invokeInsertHook(vnode,insertedVnodeQueue,isInitialPatch),vnode.elm}isDef(oldVnode)&&invokeDestroyHook(oldVnode)}}({nodeOps,modules:[attrs,klass,events,domProps,style,inBrowser?{create:_enter,activate:_enter,remove:function(vnode,rm){!0!==vnode.data.show?leave(vnode,rm):rm()}}:{}].concat(baseModules)});isIE9&&document.addEventListener("selectionchange",(function(){var el=document.activeElement;el&&el.vmodel&&trigger(el,"input")}));var directive={inserted:function(el,binding,vnode,oldVnode){"select"===vnode.tag?(oldVnode.elm&&!oldVnode.elm._vOptions?mergeVNodeHook(vnode,"postpatch",(function(){directive.componentUpdated(el,binding,vnode)})):setSelected(el,binding,vnode.context),el._vOptions=[].map.call(el.options,getValue$1)):("textarea"===vnode.tag||isTextInputType(el.type))&&(el._vModifiers=binding.modifiers,binding.modifiers.lazy||(el.addEventListener("compositionstart",onCompositionStart),el.addEventListener("compositionend",onCompositionEnd),el.addEventListener("change",onCompositionEnd),isIE9&&(el.vmodel=!0)))},componentUpdated:function(el,binding,vnode){if("select"===vnode.tag){setSelected(el,binding,vnode.context);var prevOptions=el._vOptions,curOptions=el._vOptions=[].map.call(el.options,getValue$1);if(curOptions.some((function(o,i){return!looseEqual(o,prevOptions[i])})))(el.multiple?binding.value.some((function(v){return hasNoMatchingOption(v,curOptions)})):binding.value!==binding.oldValue&&hasNoMatchingOption(binding.value,curOptions))&&trigger(el,"change")}}};function setSelected(el,binding,vm){actuallySetSelected(el,binding,vm),(isIE||isEdge)&&setTimeout((function(){actuallySetSelected(el,binding,vm)}),0)}function actuallySetSelected(el,binding,vm){var value=binding.value,isMultiple=el.multiple;if(!isMultiple||Array.isArray(value)){for(var selected,option,i=0,l=el.options.length;i<l;i++)if(option=el.options[i],isMultiple)selected=looseIndexOf(value,getValue$1(option))>-1,option.selected!==selected&&(option.selected=selected);else if(looseEqual(getValue$1(option),value))return void(el.selectedIndex!==i&&(el.selectedIndex=i));isMultiple||(el.selectedIndex=-1)}else"production"!==process.env.NODE_ENV&&warn('<select multiple v-model="'+binding.expression+'"> expects an Array value for its binding, but got '+Object.prototype.toString.call(value).slice(8,-1),vm)}function hasNoMatchingOption(value,options){return options.every((function(o){return!looseEqual(o,value)}))}function getValue$1(option){return"_value"in option?option._value:option.value}function onCompositionStart(e){e.target.composing=!0}function onCompositionEnd(e){e.target.composing&&(e.target.composing=!1,trigger(e.target,"input"))}function trigger(el,type){var e=document.createEvent("HTMLEvents");e.initEvent(type,!0,!0),el.dispatchEvent(e)}function locateNode(vnode){return!vnode.componentInstance||vnode.data&&vnode.data.transition?vnode:locateNode(vnode.componentInstance._vnode)}var platformDirectives={model:directive,show:{bind:function(el,ref,vnode){var value=ref.value,transition$$1=(vnode=locateNode(vnode)).data&&vnode.data.transition,originalDisplay=el.__vOriginalDisplay="none"===el.style.display?"":el.style.display;value&&transition$$1?(vnode.data.show=!0,enter(vnode,(function(){el.style.display=originalDisplay}))):el.style.display=value?originalDisplay:"none"},update:function(el,ref,vnode){var value=ref.value;!value!=!ref.oldValue&&((vnode=locateNode(vnode)).data&&vnode.data.transition?(vnode.data.show=!0,value?enter(vnode,(function(){el.style.display=el.__vOriginalDisplay})):leave(vnode,(function(){el.style.display="none"}))):el.style.display=value?el.__vOriginalDisplay:"none")},unbind:function(el,binding,vnode,oldVnode,isDestroy){isDestroy||(el.style.display=el.__vOriginalDisplay)}}},transitionProps={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 getRealChild(vnode){var compOptions=vnode&&vnode.componentOptions;return compOptions&&compOptions.Ctor.options.abstract?getRealChild(getFirstComponentChild(compOptions.children)):vnode}function extractTransitionData(comp){var data={},options=comp.$options;for(var key in options.propsData)data[key]=comp[key];var listeners=options._parentListeners;for(var key$1 in listeners)data[camelize(key$1)]=listeners[key$1];return data}function placeholder(h,rawChild){if(/\d-keep-alive$/.test(rawChild.tag))return h("keep-alive",{props:rawChild.componentOptions.propsData})}var isNotTextNode=function(c){return c.tag||isAsyncPlaceholder(c)},isVShowDirective=function(d){return"show"===d.name},Transition={name:"transition",props:transitionProps,abstract:!0,render:function(h){var this$1=this,children=this.$slots.default;if(children&&(children=children.filter(isNotTextNode)).length){"production"!==process.env.NODE_ENV&&children.length>1&&warn("<transition> can only be used on a single element. Use <transition-group> for lists.",this.$parent);var mode=this.mode;"production"!==process.env.NODE_ENV&&mode&&"in-out"!==mode&&"out-in"!==mode&&warn("invalid <transition> mode: "+mode,this.$parent);var rawChild=children[0];if(function(vnode){for(;vnode=vnode.parent;)if(vnode.data.transition)return!0}(this.$vnode))return rawChild;var child=getRealChild(rawChild);if(!child)return rawChild;if(this._leaving)return placeholder(h,rawChild);var id="__transition-"+this._uid+"-";child.key=null==child.key?child.isComment?id+"comment":id+child.tag:isPrimitive(child.key)?0===String(child.key).indexOf(id)?child.key:id+child.key:child.key;var data=(child.data||(child.data={})).transition=extractTransitionData(this),oldRawChild=this._vnode,oldChild=getRealChild(oldRawChild);if(child.data.directives&&child.data.directives.some(isVShowDirective)&&(child.data.show=!0),oldChild&&oldChild.data&&!function(child,oldChild){return oldChild.key===child.key&&oldChild.tag===child.tag}(child,oldChild)&&!isAsyncPlaceholder(oldChild)&&(!oldChild.componentInstance||!oldChild.componentInstance._vnode.isComment)){var oldData=oldChild.data.transition=extend({},data);if("out-in"===mode)return this._leaving=!0,mergeVNodeHook(oldData,"afterLeave",(function(){this$1._leaving=!1,this$1.$forceUpdate()})),placeholder(h,rawChild);if("in-out"===mode){if(isAsyncPlaceholder(child))return oldRawChild;var delayedLeave,performLeave=function(){delayedLeave()};mergeVNodeHook(data,"afterEnter",performLeave),mergeVNodeHook(data,"enterCancelled",performLeave),mergeVNodeHook(oldData,"delayLeave",(function(leave){delayedLeave=leave}))}}return rawChild}}},props=extend({tag:String,moveClass:String},transitionProps);function callPendingCbs(c){c.elm._moveCb&&c.elm._moveCb(),c.elm._enterCb&&c.elm._enterCb()}function recordPosition(c){c.data.newPos=c.elm.getBoundingClientRect()}function applyTranslation(c){var oldPos=c.data.pos,newPos=c.data.newPos,dx=oldPos.left-newPos.left,dy=oldPos.top-newPos.top;if(dx||dy){c.data.moved=!0;var s=c.elm.style;s.transform=s.WebkitTransform="translate("+dx+"px,"+dy+"px)",s.transitionDuration="0s"}}delete props.mode;var platformComponents={Transition,TransitionGroup:{props,beforeMount:function(){var this$1=this,update=this._update;this._update=function(vnode,hydrating){var restoreActiveInstance=setActiveInstance(this$1);this$1.__patch__(this$1._vnode,this$1.kept,!1,!0),this$1._vnode=this$1.kept,restoreActiveInstance(),update.call(this$1,vnode,hydrating)}},render:function(h){for(var tag=this.tag||this.$vnode.data.tag||"span",map=Object.create(null),prevChildren=this.prevChildren=this.children,rawChildren=this.$slots.default||[],children=this.children=[],transitionData=extractTransitionData(this),i=0;i<rawChildren.length;i++){var c=rawChildren[i];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))children.push(c),map[c.key]=c,(c.data||(c.data={})).transition=transitionData;else if("production"!==process.env.NODE_ENV){var opts=c.componentOptions,name=opts?opts.Ctor.options.name||opts.tag||"":c.tag;warn("<transition-group> children must be keyed: <"+name+">")}}if(prevChildren){for(var kept=[],removed=[],i$1=0;i$1<prevChildren.length;i$1++){var c$1=prevChildren[i$1];c$1.data.transition=transitionData,c$1.data.pos=c$1.elm.getBoundingClientRect(),map[c$1.key]?kept.push(c$1):removed.push(c$1)}this.kept=h(tag,null,kept),this.removed=removed}return h(tag,null,children)},updated:function(){var children=this.prevChildren,moveClass=this.moveClass||(this.name||"v")+"-move";children.length&&this.hasMove(children[0].elm,moveClass)&&(children.forEach(callPendingCbs),children.forEach(recordPosition),children.forEach(applyTranslation),this._reflow=document.body.offsetHeight,children.forEach((function(c){if(c.data.moved){var el=c.elm,s=el.style;addTransitionClass(el,moveClass),s.transform=s.WebkitTransform=s.transitionDuration="",el.addEventListener(transitionEndEvent,el._moveCb=function cb(e){e&&e.target!==el||e&&!/transform$/.test(e.propertyName)||(el.removeEventListener(transitionEndEvent,cb),el._moveCb=null,removeTransitionClass(el,moveClass))})}})))},methods:{hasMove:function(el,moveClass){if(!hasTransition)return!1;if(this._hasMove)return this._hasMove;var clone=el.cloneNode();el._transitionClasses&&el._transitionClasses.forEach((function(cls){removeClass(clone,cls)})),addClass(clone,moveClass),clone.style.display="none",this.$el.appendChild(clone);var info=getTransitionInfo(clone);return this.$el.removeChild(clone),this._hasMove=info.hasTransform}}}};Vue.config.mustUseProp=function(tag,type,attr){return"value"===attr&&acceptValue(tag)&&"button"!==type||"selected"===attr&&"option"===tag||"checked"===attr&&"input"===tag||"muted"===attr&&"video"===tag},Vue.config.isReservedTag=isReservedTag,Vue.config.isReservedAttr=isReservedAttr,Vue.config.getTagNamespace=function(tag){return isSVG(tag)?"svg":"math"===tag?"math":void 0},Vue.config.isUnknownElement=function(tag){if(!inBrowser)return!0;if(isReservedTag(tag))return!1;if(tag=tag.toLowerCase(),null!=unknownElementCache[tag])return unknownElementCache[tag];var el=document.createElement(tag);return tag.indexOf("-")>-1?unknownElementCache[tag]=el.constructor===window.HTMLUnknownElement||el.constructor===window.HTMLElement:unknownElementCache[tag]=/HTMLUnknownElement/.test(el.toString())},extend(Vue.options.directives,platformDirectives),extend(Vue.options.components,platformComponents),Vue.prototype.__patch__=inBrowser?patch:noop,Vue.prototype.$mount=function(el,hydrating){return function(vm,el,hydrating){var updateComponent;return vm.$el=el,vm.$options.render||(vm.$options.render=createEmptyVNode,"production"!==process.env.NODE_ENV&&(vm.$options.template&&"#"!==vm.$options.template.charAt(0)||vm.$options.el||el?warn("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.",vm):warn("Failed to mount component: template or render function not defined.",vm))),callHook(vm,"beforeMount"),updateComponent="production"!==process.env.NODE_ENV&&config.performance&&mark?function(){var name=vm._name,id=vm._uid,startTag="vue-perf-start:"+id,endTag="vue-perf-end:"+id;mark(startTag);var vnode=vm._render();mark(endTag),measure("vue "+name+" render",startTag,endTag),mark(startTag),vm._update(vnode,hydrating),mark(endTag),measure("vue "+name+" patch",startTag,endTag)}:function(){vm._update(vm._render(),hydrating)},new Watcher(vm,updateComponent,noop,{before:function(){vm._isMounted&&!vm._isDestroyed&&callHook(vm,"beforeUpdate")}},!0),hydrating=!1,null==vm.$vnode&&(vm._isMounted=!0,callHook(vm,"mounted")),vm}(this,el=el&&inBrowser?function(el){if("string"==typeof el){var selected=document.querySelector(el);return selected||("production"!==process.env.NODE_ENV&&warn("Cannot find element: "+el),document.createElement("div"))}return el}(el):void 0,hydrating)},inBrowser&&setTimeout((function(){config.devtools&&(devtools?devtools.emit("init",Vue):"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!==config.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 __vue_component__$10=normalizeComponent({render:function(_h,_vm){var _c=_vm._c;return _c("div",{staticClass:"aw-noty",class:"bg-"+_vm.props.type},["string"==typeof _vm.props.icon&&_vm.props.icon?_c(_vm.$options.components.AwIcon,{tag:"Component",staticClass:"aw-noty__icon",attrs:{name:_vm.props.icon,size:"2xl"}}):_vm._e(),_vm._v(" "),_c("div",{staticClass:"aw-noty__content"},[_c("div",{staticClass:"aw-noty__title"},[_vm._v(_vm._s(_vm.props.title))]),_vm._v(" "),_vm.props.text?_c("div",{staticClass:"aw-noty__text",domProps:{innerHTML:_vm._s(_vm.$options.sanitize(_vm.props.text))}}):_vm._e()]),_vm._v(" "),_vm.props.remove?_c("button",{staticClass:"aw-noty__button",on:{click:_vm.props.remove}},[_c(_vm.$options.components.AwIcon,{tag:"Component",attrs:{name:"close"}})],1):_vm._e()],1)},staticRenderFns:[]},void 0,{name:"AwNoty",components:{AwIcon:clone(__vue_component__$1)},props:{type:{type:String,required:!0,validator:type=>["bg-info","bg-warning","bg-success","bg-error"].includes(`bg-${type}`)},title:{type:String,required:!0},text:{type:String,default:""},icon:{type:[String,Boolean],default:!1},remove:{type:Function,default:null}},sanitize:insane_1},void 0,!0,void 0,!1,void 0,void 0,void 0);let _notifyId=0;const __vue_component__$11=normalizeComponent({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("TransitionGroup",{staticClass:"aw-noty-container",class:_vm.positionClass,attrs:{tag:"ul",name:"aw-noty","aria-live":"polite","aria-relevant":"additions"}},_vm._l(_vm.stack,(function(item){return _c("li",{key:item.id,staticClass:"aw-noty-container__item"},[_vm._t("default",[_c("AwNoty",_vm._b({},"AwNoty",item,!1))],null,item)],2)})),0)},staticRenderFns:[]},void 0,{name:"AwNotyContainer",components:{AwNoty:__vue_component__$10},data:()=>({stack:[]}),beforeDestroy(){this.stack.forEach(item=>{clearTimeout(item.timeout)}),this.stack=[]},computed:{positionClass(){return this.$options.position?this.$options.position.split(" ").filter(Boolean).map(cls=>`aw-noty-container_${cls}`):null}},methods:{add(item){if(!isType("Object",item))throw new TypeError("item must be an object");const id=_notifyId++;item.id=id;const removeAfter=parseInt(item.timeout);return removeAfter&&!isNaN(removeAfter)&&(item.timeout=setTimeout(this.remove,removeAfter,id)),item.remove=()=>this.remove(id),this.stack.push(item),id},remove(id){let i=this.stack.findIndex(item=>item.id===id);return i>-1&&(clearTimeout(this.stack[i].timeout),this.stack.splice(i,1),!0)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);class Notification{constructor(defaults){this.defaults={timeout:5e3,icon:"check-circle",type:"info",...defaults},this.containers={}}add(noty){const position=pathOr("default","position",noty),container=this.containers[position]||this._initContainer(position);if(container)return container.add({...this.defaults,...noty})}_initContainer(name){if("undefined"==typeof window)return null;const container=new Vue(__vue_component__$11);return container.$options.position=name,document.body.appendChild(container.$mount().$el),this.containers[name]=container,container}}const plugin={install:function install(Vue,config){if(install.installed)return;install.installed=!0,keys(components).forEach(componentName=>{Vue.component(componentName,components[componentName])}),Vue.directive("tooltip",tooltip),function(_vue,config={}){_vue.prototype.$awesConfig=mergeDeep(config,pathOr({},CONFIG_PATH,_vue.prototype))}(Vue,config);const Noty=new Notification(pathOr({},"Notification",config));Vue.prototype.$notify=Noty.add.bind(Noty)}};let GlobalVue=null;"undefined"!=typeof window?GlobalVue=window.Vue:"undefined"!=typeof global&&(GlobalVue=global.Vue),GlobalVue&&GlobalVue.use(plugin);export default plugin;export{__vue_component__ as AwAccordionFold,__vue_component__$D as AwAddress,__vue_component__$2 as AwAvatar,__vue_component__$6 as AwBadge,__vue_component__$5 as AwButton,__vue_component__$9 as AwButtonNav,__vue_component__$g as AwCalendar,__vue_component__$h as AwCalendarView,__vue_component__$i as AwCard,__vue_component__$j as AwChart,__vue_component__$s as AwCheckbox,__vue_component__$k as AwChip,__vue_component__$l as AwChipSelect,__vue_component__$z as AwCode,__vue_component__$n as AwCodeSnippet,__vue_component__$o as AwContentWrapper,__vue_component__$$ as AwContextMenu,__vue_component__$m as AwCropper,__vue_component__$t as AwDate,__vue_component__$a as AwDropdown,__vue_component__$b as AwDropdownButton,__vue_component__$q as AwForm,__vue_component__$p as AwGrid,__vue_component__$1 as AwIcon,__vue_component__$3 as AwInfo,__vue_component__$r as AwInput,__vue_component__$H as AwLayoutDefault,__vue_component__$I as AwLayoutFrameCenter,__vue_component__$4 as AwLink,__vue_component__$L as AwMarkdownEditor,__vue_component__$M as AwModal,__vue_component__$N as AwMultiBlockBuilder,__vue_component__$J as AwPage,__vue_component__$K as AwPagination,__vue_component__$A as AwPassword,__vue_component__$u as AwRadio,__vue_component__$v as AwSearch,__vue_component__$C as AwSelect,__vue_component__$7 as AwSlider,__vue_component__$O as AwSvgImage,__vue_component__$w as AwSwitcher,__vue_component__$8 as AwTabNav,__vue_component__$U as AwTable,__vue_component__$V as AwTableBuilder,__vue_component__$Q as AwTableCol,__vue_component__$B as AwTel,__vue_component__$x as AwTextarea,__vue_component__$y as AwTimelineBuilder,__vue_component__$_ as AwToggler,__vue_component__$W as AwUploader,__vue_component__$X as AwUploaderFiles,__vue_component__$Z as AwUserMenu,__vue_component__$Y as AwUserpic};
|