From c068b36ced2120dce334cfce10e66842f18dbd88 Mon Sep 17 00:00:00 2001 From: Leonardo Cavalcante Date: Wed, 28 Apr 2021 15:29:50 -0300 Subject: [PATCH 1/5] rename shallowEqualObjects to equals --- lib/index.js | 20 ++++++++++---------- src/components/FormulateForm.vue | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/index.js b/lib/index.js index 6d8b1b2..e52a5bf 100644 --- a/lib/index.js +++ b/lib/index.js @@ -393,13 +393,13 @@ __vue_render__._withStripped = true; /* functional template */ const __vue_is_functional_template__ = false; /* style inject */ - + /* style inject SSR */ - + /* style inject shadow dom */ - - + + const __vue_component__ = /*#__PURE__*/normalizeComponent( { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, __vue_inject_styles__, @@ -513,11 +513,11 @@ var script$1 = { new Set(Object.keys(values).concat(Object.keys(this.proxy))) ); keys.forEach((field) => { - if (!utils_js.shallowEqualObjects(values[field], this.proxy[field])) { + if (!utils_js.equals(values[field], this.proxy[field])) { this.setFieldValue(field, values[field]); if ( this.registry.has(field) && - !utils_js.shallowEqualObjects( + !utils_js.equals( values[field], this.registry.get(field).proxy ) @@ -589,13 +589,13 @@ __vue_render__$1._withStripped = true; /* functional template */ const __vue_is_functional_template__$1 = false; /* style inject */ - + /* style inject SSR */ - + /* style inject shadow dom */ - - + + const __vue_component__$1 = /*#__PURE__*/normalizeComponent( { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, __vue_inject_styles__$1, diff --git a/src/components/FormulateForm.vue b/src/components/FormulateForm.vue index cc1e949..854e56e 100644 --- a/src/components/FormulateForm.vue +++ b/src/components/FormulateForm.vue @@ -13,7 +13,7 @@ \ No newline at end of file diff --git a/dist/js/app.ded62620.js b/dist/js/app.ded62620.js new file mode 100644 index 0000000..1586e8f --- /dev/null +++ b/dist/js/app.ded62620.js @@ -0,0 +1,2 @@ +(function(e){function t(t){for(var n,a,l=t[0],i=t[1],c=t[2],m=0,p=[];m0&&void 0!==arguments[0]?arguments[0]:[];return Object(c["a"])(this,e),this.defaultHook=function(e){return e},this.setHooks(t)}return Object(u["a"])(e,[{key:"parse",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Array.isArray(t)?t:[],n=Object(i["a"])(o);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.isProperHook(r)&&this.hooks.push(r)}}catch(s){n.e(s)}finally{n.f()}return this}},{key:"addHook",value:function(e){return this.isProperHook(e)&&this.isNewHook(e)&&this.hooks.push(e),this}},{key:"setHooks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.hooks=e.filter(this.isProperHook),this}},{key:"setDefault",value:function(e){return this.defaultHook=e,this}},{key:"isProperHook",value:function(e){return e&&"object"===Object(l["a"])(e)&&"function"===typeof e.handler}},{key:"isNewHook",value:function(e){return this.hooks.findIndex((function(t){return t===e}))<0}},{key:"getHooks",value:function(){return this.hooks}},{key:"empty",value:function(){return 0===this.hooks.length}},{key:"apply",value:function(e,t){return this.empty()?this.defaultHook(e,t):this.hooks.reduce((function(e,o){return o.handler(e,t)}),e)}},{key:"asSingleHook",value:function(){var e=this;return{handler:function(t,o){return e.apply(t,o)}}}}]),e}(),p={type:Object,default:function(){return{model:[],schema:[],schemaOptions:[],schemaNode:[],schemaComponent:[]}}},f=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{class:e.context.classes.outer,attrs:{"data-classification":e.classification,"data-has-errors":e.hasErrors,"data-is-showing-errors":e.hasVisibleErrors,"data-has-value":e.hasValue,"data-type":e.type},on:{click:function(t){return e.$emit("outer-click")}}},[o("div",{class:e.context.classes.wrapper,on:{click:function(t){return e.$emit("wrapper-click")}}},["before"===e.context.labelPosition?e._t("label",[e.context.hasLabel?o(e.context.slotComponents.label,e._b({tag:"component",attrs:{context:e.context}},"component",e.context.slotProps.label,!1)):e._e()],null,e.context):e._e(),"before"===e.context.helpPosition?e._t("help",[e.context.help?o(e.context.slotComponents.help,e._b({tag:"component",attrs:{context:e.context}},"component",e.context.slotProps.help,!1)):e._e()],null,e.context):e._e(),e._t("element",[o(e.context.component,e._g(e._b({tag:"component",attrs:{context:e.context}},"component",e.context.slotProps.component,!1),e.listeners),[e._t("default",null,null,e.context)],2)],null,e.context),"after"===e.context.labelPosition?e._t("label",[e.context.hasLabel?o(e.context.slotComponents.label,e._b({tag:"component",attrs:{context:e.context}},"component",e.context.slotProps.label,!1)):e._e()],null,e.context):e._e()],2),"after"===e.context.helpPosition?e._t("help",[e.context.help?o(e.context.slotComponents.help,e._b({tag:"component",attrs:{context:e.context}},"component",e.context.slotProps.help,!1)):e._e()],null,e.context):e._e(),e._t("errors",[e.context.disableErrors?e._e():o(e.context.slotComponents.errors,e._b({tag:"component",attrs:{type:"FormulateErrors"===e.context.slotComponents.errors&&"input",context:e.context}},"component",e.context.slotProps.errors,!1))],null,e.context)],2)},h=[],d=(o("c0b6"),r["a"].defaults.components.FormulateInput),v=d.props,b=(d.created,d.watch),y=d.computed,k=Object(a["a"])(d,["props","created","watch","computed"]),x=Object(s["a"])(Object(s["a"])({},k),{},{props:Object(s["a"])(Object(s["a"])({},v),{},{modelHook:{type:[Function,Object,Array],default:null},standalone:{type:Boolean,default:function(){return!1}}}),created:function(){this.applyInitialValue(),!this.standalone&&this.formulateRegister&&"function"===typeof this.formulateRegister&&this.formulateRegister(this.nameOrFallback,this),this.applyDefaultValue(),this.disableErrors||"function"!==typeof this.observeErrors||this.observeErrors({callback:this.setErrors,type:"input",field:this.nameOrFallback}),this.updateLocalAttributes(this.$attrs),this.performValidation()},computed:Object(s["a"])(Object(s["a"])({},y),{},{slotProps:function(){var e=this.$formulate.slotProps.bind(this.$formulate);return{label:e(this.type,"label",this.typeProps),help:e(this.type,"help",this.typeProps),errors:e(this.type,"errors",this.typeProps),repeatable:e(this.type,"repeatable",this.typeProps),addMore:e(this.type,"addMore",this.typeProps),remove:e(this.type,"remove",this.typeProps),component:e(this.type,"component",this.typeProps)}}}),watch:Object(s["a"])(Object(s["a"])({},b),{},{"context.model":{handler:function(e,t){var o=new m;Array.isArray(this.modelHook)?this.modelHook.map((function(e){return o.addHook(e)})):"function"===typeof this.modelHook?o.addHook({handler:this.modelHook}):o.addHook(this.modelHook);var n=this.$formulate.options.hooks&&this.$formulate.options.hooks.model?this.$formulate.options.hooks.model:[];n.map((function(e){return o.addHook(e)}));var r=e;"box"===this.context.classification&&"string"===typeof e&&0===e.length&&(r=!1),e!==t&&o.hooks.length>0&&(this.context.model=o.apply(r,{oldModel:t,context:this.context}))}}})}),g=x,_=o("2877"),O=Object(_["a"])(g,f,h,!1,null,null,null),j=O.exports;function H(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=o.hooks,r=o.h,i=o.state;if(e&&"object"===Object(l["a"])(e)&&!Array.isArray(e)){var c=e.children,u=void 0===c?null:c,p=e.component,f=void 0===p?j:p,h=e.depth,d=void 0===h?1:h,v=e.modelHook,b=Object(a["a"])(e,["children","component","depth","modelHook"]),y=f===j?b.type||"text":"",k=b.name||y||"el",x=b.id||"".concat(k,"-").concat(d,"-").concat(t),g=Array.isArray(u)?u.map((function(e){return Object.assign(e,{depth:d+1})})):u,_=(new m).setHooks(n.model).addHook(v).asSingleHook(),O=Object.assign({name:k,type:y,key:x,depth:d,component:f,definition:{attrs:Object(s["a"])(Object(s["a"])({},b),{},{modelHook:_})},children:S(g,{hooks:n,h:r,state:i})});return(new m).setHooks(n.schemaNode).setDefault((function(){return O})).apply(O,{state:i})}return null}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.hooks,n=t.h,r=t.state;return Array.isArray(e)?e.map((function(e,t){var s=H(e,t,{hooks:o,h:n,state:r});return(new m).setHooks(o.schemaComponent).setDefault((function(){return n(s.component,s.definition,s.children)})).apply(s)})):e}var P={functional:!1,name:"FormulateSchema",props:{schema:r["a"].defaults.components.FormulateForm.props.schema,hooks:p,formClass:{type:String,default:null}},data:function(){return{schemaHooks:null,schemaOptionsHooks:null}},methods:{emit:function(e,t){this.$emit(e,t)}},beforeMount:function(){this.schemaHooks=(new m).setHooks(this.hooks.schema),this.schemaOptionsHooks=(new m).setHooks(this.hooks.schemaOptions).setDefault((function(e){return e}))},render:function(e){return this.schemaHooks.apply(e("div",{class:this.$props.formClass},S(this.schema,this.schemaOptionsHooks.apply({hooks:this.hooks,h:e,state:{}},{emit:this.emit,props:this.$props}))),{emit:this.emit,props:this.$props})}},F=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("form",{class:e.classes,on:{submit:function(t){return t.preventDefault(),e.formSubmitted(t)}}},[e.schema?o("FormulateSchema",{attrs:{schema:e.schema,hooks:e.cleanedHooks,formClass:e.formClass},on:{events:function(t){return e.$emit("events",t)}}}):e._e(),e.hasFormErrorObservers?e._e():o("FormulateErrors",{attrs:{context:e.formContext}}),e._t("default")],2)},$=[],w=(o("4160"),o("a630"),o("b64b"),o("d3b7"),o("6062"),o("3ca3"),o("159b"),o("ddb0"),o("79d7")),E={extends:r["a"].defaults.components.FormulateForm,components:{FormulateSchema:P},props:{hooks:p,formClass:{type:String,default:null}},computed:{cleanedHooks:function(){var e=this,t=p["default"]();return Object.keys(t).forEach((function(o){t[o]=(new m).parse(e.hooks[o]).getHooks()})),r["a"].merge(this.$formulate.options.hooks||{},t)}},watch:{formulateValue:{handler:function(e){var t=this;if(this.isVmodeled&&e&&"object"===Object(l["a"])(e)){var o=Array.from(new Set(Object.keys(e).concat(Object.keys(this.proxy))));o.forEach((function(o){Object(w["equals"])(e[o],t.proxy[o])||(t.setFieldValue(o,e[o]),t.registry.has(o)&&!Object(w["equals"])(e[o],t.registry.get(o).proxy)&&(t.registry.get(o).context.model=e[o]))}))}},deep:!0}}},A=E,C=Object(_["a"])(A,F,$,!1,null,null,null),M=C.exports,N=(o("c975"),o("fb6a"),o("a434"),o("4ec9"),function(){function e(){Object(c["a"])(this,e),this.store=new Map}return Object(u["a"])(e,[{key:"on",value:function(e,t){var o=this.store.get(e),n=o&&o.push(t);n||this.store.set(e,[t])}},{key:"off",value:function(e,t){var o=this.store.get(e),n=o.indexOf(t);o&&n>-1&&o.splice(n,1)}},{key:"emit",value:function(e,t){this.store.get(e).slice().map((function(e){return e(t)}))}}]),e}()),B={hooks:{schemaOptions:[{handler:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.emit;return e.state=e.state||{},e.state.eventBus=new N,e.state.eventBus.on("events",(function(e){return o("events",e)})),e}}],schemaNode:[{handler:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.state,n=e.definition.attrs,r=n.events,l=void 0===r?[]:r,i=n.on,c=void 0===i?{}:i,u=Object(a["a"])(n,["events","on"]);return e.definition.attrs=u,e.definition.on=Object(s["a"])(Object(s["a"])({},c),l.reduce((function(t,n){return t[n]=function(t){c[n]&&c[n](t),o.eventBus.emit("events",{eventName:n,name:e.name,type:e.type,key:e.key,payload:t})},t}),{})),e}}]}},V=o("0d16"),I={hooks:{model:[{handler:function(e,t){var o=t.context,n="vfe-mask"in o.attributes||"vfeMask"in o.attributes;if("text"===o.classification&&n){var r=o.attributes["vfe-mask"]||o.attributes.vfeMask,s="object"===Object(l["a"])(r)&&r.mask?r:{mask:r},a=V["a"].createMask(s),i=a.resolve(e);return i}return e}}]}},J={hooks:{model:[{handler:function(e,t){var o=t.context,n="string"===typeof o.attributes.vfeNumber||o.attributes.vfeNumber||"string"===typeof o.attributes["vfe-number"]||o.attributes["vfe-number"];return"number"===o.type&&"string"===typeof e&&n?+e:e}}]}},z=o("5082"),D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={options:z["a"].merge({features:{formEvents:!0,textMask:!1,enforceNumber:!1},override:{FormulateForm:!0,FormulateInput:!0,FormulateSchema:!0}},e)};return function(e){t.options.override.FormulateForm&&e.extend({components:{FormulateForm:M}}),t.options.override.FormulateInput&&e.extend({components:{FormulateInput:j}}),t.options.override.FormulateSchema&&e.extend({components:{FormulateSchema:P}}),t.options.features.formEvents&&e.extend(B),t.options.features.textMask&&e.extend(I),t.options.features.enforceNumber&&e.extend(J)}},Z=(o("42a7"),function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticStyle:{display:"flex","justify-items":"center","align-items":"center","min-height":"100vh"}},[o("Base",{staticStyle:{width:"300px"}})],1)}),T=[],L=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"hello"},[o("FormulateForm",{attrs:{schema:e.schema},on:{events:e.onEvents},model:{value:e.values,callback:function(t){e.values=t},expression:"values"}}),o("div",{staticClass:"mt-3"},[e._v(e._s(JSON.stringify(e.values,null,2)))])],1)},R=[],q=o("e4fd"),G={name:"Sandbox",setup:function(){var e=Object(q["ref"])({}),t=Object(q["ref"])([{type:"number",name:"age",label:"Age",events:["input"]},{name:"phone",label:"Phone",type:"text","vfe-mask":"+33 \\02 00 00 00 00 00"}]),o=function(e){return console.log(e)};return{values:e,schema:t,onEvents:o}}},K=G,Q=Object(_["a"])(K,L,R,!1,null,null,null),U=Q.exports,W=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("FormSyncComp",{model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)},X=[],Y=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"flex flex-col items-center space-y-6"},[o("div",{staticStyle:{"margin-bottom":"4rem"}},[o("formulate-form",{ref:"form0",staticStyle:{"margin-bottom":"2rem"},attrs:{schema:[{type:"select",name:"first",events:["input"],options:e.options}]},on:{events:e.onEvents},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}}),e.$refs["form0"]?o("div",{staticStyle:{"margin-bottom":"2rem"}},[o("p",[e._v("Proxy:")]),e._v(" "+e._s(JSON.stringify(e.$refs["form0"].proxy,null,2))+" ")]):e._e()],1),o("div",{staticStyle:{"margin-bottom":"4rem"}},[o("formulate-form",{ref:"form1",staticStyle:{"margin-bottom":"2rem"},attrs:{formulateValue:e.model,schema:[{type:"select",name:"second",options:e.options}]},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}}),e.$refs["form1"]?o("div",{staticStyle:{"margin-bottom":"2rem"}},[o("p",[e._v("Proxy:")]),e._v(" "+e._s(JSON.stringify(e.$refs["form1"].proxy,null,2))+" ")]):e._e()],1),o("div",{staticStyle:{"margin-bottom":"4rem"}},[o("formulate-form",{ref:"form2",staticStyle:{"margin-bottom":"2rem"},attrs:{schema:[{type:"select",name:"second",options:e.options}]},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}}),e.$refs["form2"]?o("div",{staticStyle:{"margin-bottom":"2rem"}},[o("p",[e._v("Proxy:")]),e._v(" "+e._s(JSON.stringify(e.$refs["form2"].proxy,null,2))+" ")]):e._e()],1),o("div",{staticStyle:{"margin-bottom":"2rem"}},[o("p",[e._v("Model:")]),e._v(" "+e._s(JSON.stringify(e.model,null,2))+" ")]),o("p",[e._v("Value: "+e._s(e.value))])])},ee=[],te={layout:"default",name:"Test",props:["value"],setup:function(e,t){var o=t.emit,n=(t.set,Object(q["reactive"])({1:"AAAA",2:"BBBB"})),r=Object(q["ref"])(Object.assign({},e.value));Object(q["watch"])((function(){return r.value}),(function(e,t){o("input",e)}));var s=function(e){return console.log(e)};return{model:r,options:n,onEvents:s}}},oe=te,ne=Object(_["a"])(oe,Y,ee,!1,null,null,null),re=ne.exports,se={layout:"default",components:{FormSyncComp:re},setup:function(){var e=Object(q["ref"])({first:1,second:null,otherProp:!0});return{value:e}}},ae=se,le=Object(_["a"])(ae,W,X,!1,null,null,null),ie=le.exports,ce=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticStyle:{margin:"20px auto"}},[o("div",[o("div",{staticStyle:{"margin-bottom":"20px"}},[e._v("Basic")]),o("FormulateForm",{attrs:{schema:e.schema},on:{events:e.eventsHandler},model:{value:e.values,callback:function(t){e.values=t},expression:"values"}}),o("FormulateInput",{attrs:{type:"number","vfe-number":""},model:{value:e.values.age,callback:function(t){e.$set(e.values,"age",t)},expression:"values.age"}}),o("FormulateInput",{attrs:{type:"text","vfe-mask":"+7 (000) 000-00-00"},model:{value:e.values.phone,callback:function(t){e.$set(e.values,"phone",t)},expression:"values.phone"}}),e._v(" "+e._s(e.values)+" ")],1)])},ue=[],me={components:{},methods:{eventsHandler:function(){var e;(e=console).log.apply(e,arguments)}},data:function(){return{values:{age:7},schema:[{name:"age",label:"Age",type:"number",events:["outer-click","label-click"]},{name:"phone",label:"Phone",type:"text",mask:"+7 (000) 000-00-00"},{name:"email",label:"Email or phone",type:"text",mask:[{mask:"+{7}(000)000-00-00"},{mask:/^[a-zA-Z0-9_\-\.]*@?[a-zA-Z0-9_\-\.]*\.?[a-zA-Z]{0,5}$/}]}]}}},pe=me,fe=Object(_["a"])(pe,ce,ue,!1,null,null,null),he=fe.exports,de=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticStyle:{margin:"20px auto"}},[o("div",[o("div",{staticStyle:{"margin-bottom":"20px"}},[e._v("Mask")]),o("FormulateForm",{attrs:{schema:e.schema},model:{value:e.values,callback:function(t){e.values=t},expression:"values"}}),o("div",{staticStyle:{"margin-top":"20px"}},[e._v(e._s(e.values))])],1)])},ve=[],be="+33 \\02 00 00 00 00 00",ye=/^[a-zA-Z0-9_\-\.]*@?[a-zA-Z0-9_\-\.]*\.?[a-zA-Z]{0,5}$/,ke={components:{},data:function(){return{values:null,schema:[{name:"phone",label:"Phone",type:"text",mask:be},{name:"email",label:"Email",type:"text",mask:ye},{name:"emailOrPhone",label:"Email or phone",type:"text",mask:[{mask:be},{mask:ye}]}]}}},xe=ke,ge=Object(_["a"])(xe,de,ve,!1,null,null,null),_e=ge.exports,Oe={components:{Test:U,FormSync:ie,Base:he,MaskPage:_e}},je=Oe,He=Object(_["a"])(je,Z,T,!1,null,null,null),Se=He.exports;n["default"].config.productionTip=!1,n["default"].use(r["a"],{plugins:[D({features:{formEvents:!0,textMask:!0,enforceNumber:!0}})]}),new n["default"]({render:function(e){return e(Se)}}).$mount("#app")}}); +//# sourceMappingURL=app.ded62620.js.map \ No newline at end of file diff --git a/dist/js/app.ded62620.js.map b/dist/js/app.ded62620.js.map new file mode 100644 index 0000000..45a275e --- /dev/null +++ b/dist/js/app.ded62620.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/libs/hooks.js","webpack:///./src/composables/hooksProp.js","webpack:///./src/components/FormulateInput.vue?a86e","webpack:///src/components/FormulateInput.vue","webpack:///./src/components/FormulateInput.vue?476f","webpack:///./src/components/FormulateInput.vue","webpack:///./src/components/FormulateSchema.js","webpack:///./src/components/FormulateForm.vue?6613","webpack:///src/components/FormulateForm.vue","webpack:///./src/components/FormulateForm.vue?bd17","webpack:///./src/components/FormulateForm.vue","webpack:///./src/libs/event-bus.js","webpack:///./src/features/form-events.js","webpack:///./src/features/text-mask.js","webpack:///./src/features/enforce-number.js","webpack:///./src/index.js","webpack:///./example/App.vue?f7fa","webpack:///./example/Test.vue?6d39","webpack:///example/Test.vue","webpack:///./example/Test.vue?13ac","webpack:///./example/Test.vue","webpack:///./example/FormSync.vue?4424","webpack:///./example/FormSync/FormSyncComp.vue?bba2","webpack:///example/FormSync/FormSyncComp.vue","webpack:///./example/FormSync/FormSyncComp.vue?9add","webpack:///./example/FormSync/FormSyncComp.vue","webpack:///example/FormSync.vue","webpack:///./example/FormSync.vue?7e42","webpack:///./example/FormSync.vue","webpack:///./example/Base.vue?6fc7","webpack:///example/Base.vue","webpack:///./example/Base.vue?4592","webpack:///./example/Base.vue","webpack:///./example/Mask.vue?bfd7","webpack:///example/Mask.vue","webpack:///./example/Mask.vue?3ee3","webpack:///./example/Mask.vue","webpack:///example/App.vue","webpack:///./example/App.vue?710d","webpack:///./example/App.vue","webpack:///./example/main.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","Hooks","hooks","this","defaultHook","v","setHooks","_hookList","Array","isArray","_hook","isProperHook","hook","isNewHook","filter","handler","findIndex","h","options","empty","reduce","self","type","default","model","schema","schemaOptions","schemaNode","schemaComponent","_vm","_h","$createElement","_c","_self","class","context","classes","outer","attrs","classification","hasErrors","hasVisibleErrors","hasValue","on","$event","$emit","wrapper","labelPosition","_t","slotComponents","label","_b","tag","slotProps","_e","helpPosition","help","component","_g","listeners","disableErrors","errors","staticRenderFns","props","modelHook","Function","standalone","Boolean","created","applyInitialValue","formulateRegister","nameOrFallback","applyDefaultValue","observeErrors","callback","setErrors","field","updateLocalAttributes","$attrs","performValidation","computed","fn","typeProps","repeatable","addMore","remove","watch","map","_modelHook","addHook","defaultModelHooks","newModel","updatedModel","oldModel","leaf","item","index","state","children","FormulateInput","depth","id","els","child","assign","asSingleHook","node","definition","tree","setDefault","el","idx","functional","Formulate","defaults","components","FormulateForm","hooksProp","formClass","String","schemaHooks","schemaOptionsHooks","methods","emit","event","payload","beforeMount","x","render","createElement","$props","preventDefault","formSubmitted","cleanedHooks","hasFormErrorObservers","formContext","extends","FormulateSchema","keys","_hooks","forEach","formulateValue","isVmodeled","values","deep","EventBus","store","Map","handlers","added","set","indexOf","eventBus","events","onEvents","eventName","hasMask","attributes","vfeMask","maskOptions","mask","masked","IMask","createMask","resolved","resolve","hasEnforceNumber","vfeNumber","extended","merge","features","formEvents","textMask","enforceNumber","override","instance","extend","staticStyle","staticClass","$$v","expression","_v","_s","JSON","stringify","setup","ref","$refs","proxy","layout","eventsHandler","$set","frenchPhoneMask","emailMask","Test","FormSync","Base","MaskPage","Mask","Vue","config","productionTip","use","VueFormulate","plugins","VueFormulateExtended","App","$mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB,CACrB,IAAO,GAGJK,EAAkB,GAGtB,SAASS,EAAoB1B,GAG5B,GAAG4B,EAAiB5B,GACnB,OAAO4B,EAAiB5B,GAAU6B,QAGnC,IAAIC,EAASF,EAAiB5B,GAAY,CACzCK,EAAGL,EACH+B,GAAG,EACHF,QAAS,IAUV,OANAf,EAAQd,GAAUW,KAAKmB,EAAOD,QAASC,EAAQA,EAAOD,QAASH,GAG/DI,EAAOC,GAAI,EAGJD,EAAOD,QAKfH,EAAoBM,EAAIlB,EAGxBY,EAAoBO,EAAIL,EAGxBF,EAAoBQ,EAAI,SAASL,EAASM,EAAMC,GAC3CV,EAAoBW,EAAER,EAASM,IAClC3B,OAAO8B,eAAeT,EAASM,EAAM,CAAEI,YAAY,EAAMC,IAAKJ,KAKhEV,EAAoBe,EAAI,SAASZ,GACX,qBAAXa,QAA0BA,OAAOC,aAC1CnC,OAAO8B,eAAeT,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DpC,OAAO8B,eAAeT,EAAS,aAAc,CAAEe,OAAO,KAQvDlB,EAAoBmB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQlB,EAAoBkB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,kBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKxC,OAAOyC,OAAO,MAGvB,GAFAvB,EAAoBe,EAAEO,GACtBxC,OAAO8B,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOlB,EAAoBQ,EAAEc,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRtB,EAAoB0B,EAAI,SAAStB,GAChC,IAAIM,EAASN,GAAUA,EAAOiB,WAC7B,WAAwB,OAAOjB,EAAO,YACtC,WAA8B,OAAOA,GAEtC,OADAJ,EAAoBQ,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRV,EAAoBW,EAAI,SAASgB,EAAQC,GAAY,OAAO9C,OAAOC,UAAUC,eAAeC,KAAK0C,EAAQC,IAGzG5B,EAAoB6B,EAAI,IAExB,IAAIC,EAAaC,OAAO,gBAAkBA,OAAO,iBAAmB,GAChEC,EAAmBF,EAAW3C,KAAKsC,KAAKK,GAC5CA,EAAW3C,KAAOf,EAClB0D,EAAaA,EAAWG,QACxB,IAAI,IAAItD,EAAI,EAAGA,EAAImD,EAAWjD,OAAQF,IAAKP,EAAqB0D,EAAWnD,IAC3E,IAAIU,EAAsB2C,EAI1BzC,EAAgBJ,KAAK,CAAC,OAAO,kBAEtBM,K,iQCvJIyC,EAAb,WACE,aAAwB,IAAZC,EAAY,uDAAJ,GAElB,OAFsB,uBACtBC,KAAKC,YAAc,SAACC,GAAD,OAAOA,GACnBF,KAAKG,SAASJ,GAHzB,uDAQoB,MAAZA,EAAY,uDAAJ,GACNK,EAAYC,MAAMC,QAAQP,GAASA,EAAQ,GADjC,iBAEEK,GAFF,IAEhB,2BAA6B,KAApBG,EAAoB,QACvBP,KAAKQ,aAAaD,IACpBP,KAAKD,MAAMhD,KAAKwD,IAJJ,8BAOhB,OAAOP,OAfX,8BAkBUS,GAIN,OAHIT,KAAKQ,aAAaC,IAAST,KAAKU,UAAUD,IAC5CT,KAAKD,MAAMhD,KAAK0D,GAEXT,OAtBX,iCAyBuB,IAAZD,EAAY,uDAAJ,GAEf,OADAC,KAAKD,MAAQA,EAAMY,OAAOX,KAAKQ,cACxBR,OA3BX,iCA8BaS,GAET,OADAT,KAAKC,YAAcQ,EACZT,OAhCX,mCAqCeS,GACX,OAAOA,GAAwB,WAAhB,eAAOA,IAA6C,oBAAjBA,EAAKG,UAtC3D,gCAyCYH,GACR,OAAOT,KAAKD,MAAMc,WAAU,SAACC,GAAD,OAAOA,IAAML,KAAQ,IA1CrD,iCA8CI,OAAOT,KAAKD,QA9ChB,8BAkDI,OAA6B,IAAtBC,KAAKD,MAAMtD,SAlDtB,4BAqDQqC,EAAOiC,GACX,OAAIf,KAAKgB,QACAhB,KAAKC,YAAYnB,EAAOiC,GAExBf,KAAKD,MAAMkB,QAAO,SAAC3D,EAAQmD,GAAT,OAAkBA,EAAKG,QAAQtD,EAAQyD,KAAUjC,KAzDhF,qCA8DI,IAAMoC,EAAOlB,KACb,MAAO,CACLY,QADK,SACG9B,EAAOiC,GACb,OAAOG,EAAK9D,MAAM0B,EAAOiC,SAjEjC,KCAe,GACbI,KAAMzE,OACN0E,QAAS,iBAAO,CACdC,MAAO,GACPC,OAAQ,GACRC,cAAe,GACfC,WAAY,GACZC,gBAAiB,MCPjB,EAAS,WAAa,IAAIC,EAAI1B,KAAS2B,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAML,EAAIM,QAAQC,QAAQC,MAAMC,MAAM,CAAC,sBAAsBT,EAAIU,eAAe,kBAAkBV,EAAIW,UAAU,yBAAyBX,EAAIY,iBAAiB,iBAAiBZ,EAAIa,SAAS,YAAYb,EAAIP,MAAMqB,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOf,EAAIgB,MAAM,kBAAkB,CAACb,EAAG,MAAM,CAACE,MAAML,EAAIM,QAAQC,QAAQU,QAAQH,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOf,EAAIgB,MAAM,oBAAoB,CAAgC,WAA9BhB,EAAIM,QAAQY,cAA4BlB,EAAImB,GAAG,QAAQ,CAAEnB,EAAIM,QAAgB,SAAEH,EAAGH,EAAIM,QAAQc,eAAeC,MAAMrB,EAAIsB,GAAG,CAACC,IAAI,YAAYd,MAAM,CAAC,QAAUT,EAAIM,UAAU,YAAYN,EAAIM,QAAQkB,UAAUH,OAAM,IAAQrB,EAAIyB,MAAM,KAAKzB,EAAIM,SAASN,EAAIyB,KAAmC,WAA7BzB,EAAIM,QAAQoB,aAA2B1B,EAAImB,GAAG,OAAO,CAAEnB,EAAIM,QAAY,KAAEH,EAAGH,EAAIM,QAAQc,eAAeO,KAAK3B,EAAIsB,GAAG,CAACC,IAAI,YAAYd,MAAM,CAAC,QAAUT,EAAIM,UAAU,YAAYN,EAAIM,QAAQkB,UAAUG,MAAK,IAAQ3B,EAAIyB,MAAM,KAAKzB,EAAIM,SAASN,EAAIyB,KAAKzB,EAAImB,GAAG,UAAU,CAAChB,EAAGH,EAAIM,QAAQsB,UAAU5B,EAAI6B,GAAG7B,EAAIsB,GAAG,CAACC,IAAI,YAAYd,MAAM,CAAC,QAAUT,EAAIM,UAAU,YAAYN,EAAIM,QAAQkB,UAAUI,WAAU,GAAO5B,EAAI8B,WAAW,CAAC9B,EAAImB,GAAG,UAAU,KAAK,KAAKnB,EAAIM,UAAU,IAAI,KAAKN,EAAIM,SAAwC,UAA9BN,EAAIM,QAAQY,cAA2BlB,EAAImB,GAAG,QAAQ,CAAEnB,EAAIM,QAAgB,SAAEH,EAAGH,EAAIM,QAAQc,eAAeC,MAAMrB,EAAIsB,GAAG,CAACC,IAAI,YAAYd,MAAM,CAAC,QAAUT,EAAIM,UAAU,YAAYN,EAAIM,QAAQkB,UAAUH,OAAM,IAAQrB,EAAIyB,MAAM,KAAKzB,EAAIM,SAASN,EAAIyB,MAAM,GAAiC,UAA7BzB,EAAIM,QAAQoB,aAA0B1B,EAAImB,GAAG,OAAO,CAAEnB,EAAIM,QAAY,KAAEH,EAAGH,EAAIM,QAAQc,eAAeO,KAAK3B,EAAIsB,GAAG,CAACC,IAAI,YAAYd,MAAM,CAAC,QAAUT,EAAIM,UAAU,YAAYN,EAAIM,QAAQkB,UAAUG,MAAK,IAAQ3B,EAAIyB,MAAM,KAAKzB,EAAIM,SAASN,EAAIyB,KAAKzB,EAAImB,GAAG,SAAS,CAAGnB,EAAIM,QAAQyB,cAA6O/B,EAAIyB,KAAlOtB,EAAGH,EAAIM,QAAQc,eAAeY,OAAOhC,EAAIsB,GAAG,CAACC,IAAI,YAAYd,MAAM,CAAC,KAA6C,oBAAtCT,EAAIM,QAAQc,eAAeY,QAA+B,QAAgB,QAAUhC,EAAIM,UAAU,YAAYN,EAAIM,QAAQkB,UAAUQ,QAAO,KAAkB,KAAKhC,EAAIM,UAAU,IAC9+D2B,EAAkB,G,aC8FtB,2CALA,E,EAAA,MAEA,G,EADA,Q,EACA,OACA,E,EAAA,SACA,E,yDAGe,mCACf,GADA,IAEEC,MAAO,OAAT,OAAS,CAAT,kBACA,GADA,IAEIC,UAAW,CACT1C,KAAM,CAAC2C,SAAUpH,OAAQ2D,OACzBe,QAAN,MAEI2C,WAAY,CACV5C,KAAM6C,QACN5C,QAAN,wBAIE6C,QAdF,WAeIjE,KAAKkE,qBAET,iBACA,wBACA,4CAEMlE,KAAKmE,kBAAkBnE,KAAKoE,eAAgBpE,MAE9CA,KAAKqE,oBACArE,KAAKyD,eAA+C,oBAAvBzD,KAAKsE,eACrCtE,KAAKsE,cAAc,CACjBC,SAAUvE,KAAKwE,UACfrD,KAAM,QACNsD,MAAOzE,KAAKoE,iBAGhBpE,KAAK0E,sBAAsB1E,KAAK2E,QAChC3E,KAAK4E,qBAEPC,SAAU,OAAZ,OAAY,CAAZ,kBACA,GADA,IAEI3B,UAFJ,WAGM,IAAN,kDACM,MAAO,CACLH,MAAO+B,EAAG9E,KAAKmB,KAAM,QAASnB,KAAK+E,WACnC1B,KAAMyB,EAAG9E,KAAKmB,KAAM,OAAQnB,KAAK+E,WACjCrB,OAAQoB,EAAG9E,KAAKmB,KAAM,SAAUnB,KAAK+E,WACrCC,WAAYF,EAAG9E,KAAKmB,KAAM,aAAcnB,KAAK+E,WAC7CE,QAASH,EAAG9E,KAAKmB,KAAM,UAAWnB,KAAK+E,WACvCG,OAAQJ,EAAG9E,KAAKmB,KAAM,SAAUnB,KAAK+E,WACrCzB,UAAWwB,EAAG9E,KAAKmB,KAAM,YAAanB,KAAK+E,eAIjDI,MAAO,OAAT,OAAS,CAAT,kBACA,GADA,IAEI,gBAAiB,CACfvE,QADN,SACA,KACQ,IAAR,QACYP,MAAMC,QAAQN,KAAK6D,WACrB7D,KAAK6D,UAAUuB,KAAI,SAA7B,0BACA,mCACUC,EAAWC,QAAQ,CAA7B,yBAEUD,EAAWC,QAAQtF,KAAK6D,WAG1B,IAAR,EACA,mEACA,oCACA,GAEQ0B,EAAkBH,KAAI,SAA9B,0BAEQ,IAAR,IAE4C,QAAhCpF,KAAKgC,QAAQI,gBACS,kBAAboD,GAA6C,IAApBA,EAAS/I,SAC3CgJ,GAAe,GAIfD,IAAaE,GAAYL,EAAWtF,MAAMtD,OAAS,IACrDuD,KAAKgC,QAAQX,MAAQgE,EAAWjI,MAAMqI,EAAc,CAClDC,SAAUA,EACV1D,QAAShC,KAAKgC,iBCjL8T,I,YCOpV,EAAY,eACd,EACA,EACA2B,GACA,EACA,KACA,KACA,MAIa,I,QCZf,SAASgC,EAAKC,EAAMC,GAAiC,6DAAJ,GAApB9F,EAAwB,EAAxBA,MAAOe,EAAiB,EAAjBA,EAAGgF,EAAc,EAAdA,MACrC,GAAIF,GAAwB,WAAhB,eAAOA,KAAsBvF,MAAMC,QAAQsF,GAAO,OAC4BA,EAAhFG,gBADoD,MACzC,KADyC,IAC4BH,EAA/DtC,iBADmC,MACvB0C,EADuB,IAC4BJ,EAAnCK,aADO,MACC,EADD,EACIpC,EAAwB+B,EAAxB/B,UAAc1B,EADlB,eAC4ByD,EAD5B,8CAEtDzE,EAAOmC,IAAc0C,EAAiB7D,EAAMhB,MAAQ,OAAS,GAC7D9C,EAAO8D,EAAM9D,MAAQ8C,GAAQ,KAC7B/B,EAAM+C,EAAM+D,IAAN,UAAe7H,EAAf,YAAuB4H,EAAvB,YAAgCJ,GACtCM,EAAM9F,MAAMC,QAAQyF,GAAYA,EAASX,KAAI,SAACgB,GAAD,OAAW1J,OAAO2J,OAAOD,EAAO,CAAEH,MAAOA,EAAQ,OAAQF,EACtGV,GAAa,IAAIvF,GACpBK,SAASJ,EAAMsB,OACfiE,QAAQzB,GACRyC,eAEGC,EAAO7J,OAAO2J,OAAO,CAAEhI,OAAM8C,OAAM/B,MAAK6G,QAAO3C,YAAWkD,WAAY,CAAErE,MAAO,iCAAKA,GAAP,IAAc0B,UAAWwB,KAAgBU,SAAUU,EAAKN,EAAK,CAAEpG,QAAOe,IAAGgF,YAE5J,OAAO,IAAIhG,GACRK,SAASJ,EAAMyB,YACfkF,YAAW,kBAAMH,KACjBnJ,MAAMmJ,EAAM,CAAET,UAEnB,OAAO,KAGT,SAASW,EAAKnF,GAAkC,6DAAJ,GAApBvB,EAAwB,EAAxBA,MAAOe,EAAiB,EAAjBA,EAAGgF,EAAc,EAAdA,MAChC,OAAIzF,MAAMC,QAAQgB,GACTA,EAAO8D,KAAI,SAACuB,EAAIC,GACrB,IAAMhB,EAAOD,EAAKgB,EAAIC,EAAK,CAAE7G,QAAOe,IAAGgF,UACvC,OAAO,IAAIhG,GACRK,SAASJ,EAAM0B,iBACfiF,YAAW,kBAAM5F,EAAE8E,EAAKtC,UAAWsC,EAAKY,WAAYZ,EAAKG,aACzD3I,MAAMwI,MAGNtE,EAGM,OACbuF,YAAY,EACZxI,KAAM,kBACNuF,MAAO,CACLtC,OAAQwF,OAAUC,SAASC,WAAWC,cAAcrD,MAAMtC,OAC1DvB,MAAOmH,EACPC,UAAW,CACThG,KAAMiG,OACNhG,QAAS,OAGbnF,KAAM,iBAAO,CACXoL,YAAa,KACbC,mBAAoB,OAEtBC,QAAS,CACPC,KADO,SACFC,EAAOC,GACV1H,KAAK0C,MAAM+E,EAAOC,KAGtBC,YApBa,WAqBX3H,KAAKqH,aAAc,IAAIvH,GAAQK,SAASH,KAAKD,MAAMuB,QACnDtB,KAAKsH,oBAAqB,IAAIxH,GAAQK,SAASH,KAAKD,MAAMwB,eAAemF,YAAW,SAACkB,GAAD,OAAOA,MAE7FC,OAxBa,SAwBNC,GACL,OAAO9H,KAAKqH,YAAYjK,MAAM0K,EAAc,MAAO,CAAE/F,MAAO/B,KAAK+H,OAAOZ,WAAaV,EAAKzG,KAAKsB,OAAQtB,KAAKsH,mBAAmBlK,MAAM,CAAE2C,MAAOC,KAAKD,MAAOe,EAAGgH,EAAehC,MAAO,IAAM,CAAE0B,KAAMxH,KAAKwH,KAAM5D,MAAO5D,KAAK+H,WAAa,CAAEP,KAAMxH,KAAKwH,KAAM5D,MAAO5D,KAAK+H,WClEpQ,EAAS,WAAa,IAAIrG,EAAI1B,KAAS2B,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACE,MAAML,EAAIO,QAAQO,GAAG,CAAC,OAAS,SAASC,GAAgC,OAAxBA,EAAOuF,iBAAwBtG,EAAIuG,cAAcxF,MAAW,CAAEf,EAAU,OAAEG,EAAG,kBAAkB,CAACM,MAAM,CAAC,OAAST,EAAIJ,OAAO,MAAQI,EAAIwG,aAAa,UAAYxG,EAAIyF,WAAW3E,GAAG,CAAC,OAAS,SAASC,GAAQ,OAAOf,EAAIgB,MAAM,SAAUD,OAAYf,EAAIyB,KAAOzB,EAAIyG,sBAAiFzG,EAAIyB,KAA9DtB,EAAG,kBAAkB,CAACM,MAAM,CAAC,QAAUT,EAAI0G,eAAwB1G,EAAImB,GAAG,YAAY,IACvgB,EAAkB,G,8FCqBtB,GACEwF,QAAF,yCACErB,WAAY,CACVsB,gBAAJ,GAEE1E,MAAO,CACL7D,MAAOmH,EACPC,UAAW,CACThG,KAAMiG,OACNhG,QAAN,OAGEyD,SAAU,CACRqD,aADJ,WACA,WACA,iBAMM,OAJAxL,OAAO6L,KAAKC,GAAQC,SAAQ,SAAlC,GACQD,EAAOpJ,IAAO,IAAI,GAA1B,gCAGa,EAAb,kDAGE+F,MAAO,CACLuD,eAAgB,CACd9H,QADN,SACA,cAIQ,GAAIZ,KAAK2I,YAAcC,GAA/B,WAAyC,OAAzC,OAAyC,CAAzC,IACU,IAAV,aACA,yDAEUL,EAAKE,SAAQ,SAAvB,GACiB,OAAjB,YAAiB,CAAjB,mBACc,EAAd,sBAEA,oBACA,oBACA,KACA,2BAGgB,EAAhB,0CAMMI,MAAM,KCvE2U,ICOnV,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,I,QClBFC,G,wCAAb,WACE,aAAc,uBACZ9I,KAAK+I,MAAQ,IAAIC,IAFrB,kDAKK7H,EAAMP,GACP,IAAMqI,EAAWjJ,KAAK+I,MAAMrK,IAAIyC,GAC1B+H,EAAQD,GAAYA,EAASlM,KAAK6D,GACnCsI,GACHlJ,KAAK+I,MAAMI,IAAIhI,EAAM,CAACP,MAT5B,0BAaMO,EAAMP,GACR,IAAMqI,EAAWjJ,KAAK+I,MAAMrK,IAAIyC,GAC1B0E,EAAQoD,EAASG,QAAQxI,GAC3BqI,GAAYpD,GAAS,GACvBoD,EAAStL,OAAOkI,EAAO,KAjB7B,2BAqBO1E,EAAMuG,GACT1H,KAAK+I,MACFrK,IAAIyC,GACJtB,QACAuF,KAAI,SAACxE,GAAD,OAAaA,EAAQ8G,UAzBhC,MCEe,GACb3H,MAAO,CACLwB,cAAe,CACb,CACEX,QADF,SACUG,GAAwB,6DAAJ,GAATyG,EAAa,EAAbA,KAIjB,OAHAzG,EAAQ+E,MAAQ/E,EAAQ+E,OAAS,GACjC/E,EAAQ+E,MAAMuD,SAAW,IAAIP,EAC7B/H,EAAQ+E,MAAMuD,SAAS7G,GAAG,UAAU,SAACkF,GAAD,OAAaF,EAAK,SAAUE,MACzD3G,KAIbS,WAAY,CACV,CACEZ,QADF,SACU2F,GAAsB,6DAAJ,GAAVT,EAAc,EAAdA,MAAc,EACeS,EAAKC,WAAWrE,MAD/B,IACpBmH,cADoB,MACX,GADW,MACP9G,UADO,MACF,GADE,EACKL,EADL,kCAc5B,OAZAoE,EAAKC,WAAWrE,MAAQA,EACxBoE,EAAKC,WAAWhE,GAAhB,iCACKA,GACA8G,EAAOrI,QAAO,SAACsI,EAAUC,GAK1B,OAJAD,EAASC,GAAa,SAAS9B,GACzBlF,EAAGgH,IAAYhH,EAAGgH,GAAW9B,GACjC5B,EAAMuD,SAAS7B,KAAK,SAAU,CAAEgC,YAAWnL,KAAMkI,EAAKlI,KAAM8C,KAAMoF,EAAKpF,KAAM/B,IAAKmH,EAAKnH,IAAKsI,aAEvF6B,IACN,KAGEhD,O,YC5BF,GACbxG,MAAO,CACLsB,MAAO,CACL,CACET,QADF,SACU9B,EADV,GAC8B,IAAXkD,EAAW,EAAXA,QACTyH,EAAU,aAAczH,EAAQ0H,YAAc,YAAa1H,EAAQ0H,WACzE,GAA+B,SAA3B1H,EAAQI,gBAA6BqH,EAAS,CAChD,IAAM1I,EAAUiB,EAAQ0H,WAAW,aAAe1H,EAAQ0H,WAAWC,QAC/DC,EAAiC,WAAnB,eAAO7I,IAAwBA,EAAQ8I,KAAO9I,EAAU,CAAE8I,KAAM9I,GAC9E+I,EAASC,OAAMC,WAAWJ,GAC1BK,EAAWH,EAAOI,QAAQpL,GAChC,OAAOmL,EAEP,OAAOnL,OCfJ,GACbiB,MAAO,CACLsB,MAAO,CACL,CACET,QADF,SACU9B,EADV,GAC8B,IAAXkD,EAAW,EAAXA,QACTmI,EAA4D,kBAAjCnI,EAAQ0H,WAAWU,WAAgCpI,EAAQ0H,WAAWU,WAA2D,kBAArCpI,EAAQ0H,WAAW,eAAoC1H,EAAQ0H,WAAW,cAEvM,MAAqB,WAAjB1H,EAAQb,MAAsC,kBAAVrC,GAAsBqL,GACpDrL,EAEDA,O,YCGJ,aAAuB,IAAdiC,EAAc,uDAAJ,GAC5BsJ,EAAW,CACbtJ,QAAS+F,OAAUwD,MACjB,CACEC,SAAU,CACRC,YAAY,EACZC,UAAU,EACVC,eAAe,GAEjBC,SAAU,CACR1D,eAAe,EACfjB,gBAAgB,EAChBsC,iBAAiB,IAGrBvH,IAIJ,OAAO,SAAgB6J,GACjBP,EAAStJ,QAAQ4J,SAAS1D,eAC5B2D,EAASC,OAAO,CAAE7D,WAAY,CAAEC,mBAG9BoD,EAAStJ,QAAQ4J,SAAS3E,gBAC5B4E,EAASC,OAAO,CAAE7D,WAAY,CAAEhB,oBAG9BqE,EAAStJ,QAAQ4J,SAASrC,iBAC5BsC,EAASC,OAAO,CAAE7D,WAAY,CAAEsB,qBAG9B+B,EAAStJ,QAAQwJ,SAASC,YAC5BI,EAASC,OAAOL,GAGdH,EAAStJ,QAAQwJ,SAASE,UAC5BG,EAASC,OAAOJ,GAOdJ,EAAStJ,QAAQwJ,SAASG,eAC5BE,EAASC,OAAOH,KC1DlB,G,UAAS,WAAa,IAAIhJ,EAAI1B,KAAS2B,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACiJ,YAAY,CAAC,QAAU,OAAO,gBAAgB,SAAS,cAAc,SAAS,aAAa,UAAU,CAACjJ,EAAG,OAAO,CAACiJ,YAAY,CAAC,MAAQ,YAAY,KACxP,EAAkB,GCDlB,EAAS,WAAa,IAAIpJ,EAAI1B,KAAS2B,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACkJ,YAAY,SAAS,CAAClJ,EAAG,gBAAgB,CAACM,MAAM,CAAC,OAAST,EAAIJ,QAAQkB,GAAG,CAAC,OAASd,EAAI6H,UAAUlI,MAAM,CAACvC,MAAO4C,EAAU,OAAE6C,SAAS,SAAUyG,GAAMtJ,EAAIkH,OAAOoC,GAAKC,WAAW,YAAYpJ,EAAG,MAAM,CAACkJ,YAAY,QAAQ,CAACrJ,EAAIwJ,GAAGxJ,EAAIyJ,GAAGC,KAAKC,UAAU3J,EAAIkH,OAAQ,KAAM,QAAQ,IACvX,EAAkB,G,YCQtB,GACEvK,KAAM,UACNiN,MAFF,WAGI,IAAJ,uBAEA,oBACA,CACM,KAAN,SACM,KAAN,MACM,MAAN,MAEM,OAAN,WAEA,CACM,KAAN,QACM,MAAN,QACM,KAAN,OACM,WAAN,6BAIA,qCAEI,MAAO,CAAX,gCChC+T,ICO3T,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,I,QClBX,EAAS,WAAa,IAAI5J,EAAI1B,KAAS2B,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,eAAe,CAACR,MAAM,CAACvC,MAAO4C,EAAS,MAAE6C,SAAS,SAAUyG,GAAMtJ,EAAI5C,MAAMkM,GAAKC,WAAW,YAAY,IACjN,EAAkB,GCDlB,EAAS,WAAa,IAAIvJ,EAAI1B,KAAS2B,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACkJ,YAAY,wCAAwC,CAAClJ,EAAG,MAAM,CAACiJ,YAAY,CAAC,gBAAgB,SAAS,CAACjJ,EAAG,iBAAiB,CAAC0J,IAAI,QAAQT,YAAY,CAAC,gBAAgB,QAAQ3I,MAAM,CAAC,OAAS,CAAC,CAAEhB,KAAM,SAAU9C,KAAM,QAASiL,OAAQ,CAAC,SAAUvI,QAASW,EAAIX,WAAWyB,GAAG,CAAC,OAASd,EAAI6H,UAAUlI,MAAM,CAACvC,MAAO4C,EAAS,MAAE6C,SAAS,SAAUyG,GAAMtJ,EAAIL,MAAM2J,GAAKC,WAAW,WAAYvJ,EAAI8J,MAAM,SAAU3J,EAAG,MAAM,CAACiJ,YAAY,CAAC,gBAAgB,SAAS,CAACjJ,EAAG,IAAI,CAACH,EAAIwJ,GAAG,YAAYxJ,EAAIwJ,GAAG,IAAIxJ,EAAIyJ,GAAGC,KAAKC,UAAU3J,EAAI8J,MAAM,SAASC,MAAO,KAAM,IAAI,OAAO/J,EAAIyB,MAAM,GAAGtB,EAAG,MAAM,CAACiJ,YAAY,CAAC,gBAAgB,SAAS,CAACjJ,EAAG,iBAAiB,CAAC0J,IAAI,QAAQT,YAAY,CAAC,gBAAgB,QAAQ3I,MAAM,CAAC,eAAiBT,EAAIL,MAAM,OAAS,CAAC,CAAEF,KAAM,SAAU9C,KAAM,SAAU0C,QAASW,EAAIX,WAAWM,MAAM,CAACvC,MAAO4C,EAAS,MAAE6C,SAAS,SAAUyG,GAAMtJ,EAAIL,MAAM2J,GAAKC,WAAW,WAAYvJ,EAAI8J,MAAM,SAAU3J,EAAG,MAAM,CAACiJ,YAAY,CAAC,gBAAgB,SAAS,CAACjJ,EAAG,IAAI,CAACH,EAAIwJ,GAAG,YAAYxJ,EAAIwJ,GAAG,IAAIxJ,EAAIyJ,GAAGC,KAAKC,UAAU3J,EAAI8J,MAAM,SAASC,MAAO,KAAM,IAAI,OAAO/J,EAAIyB,MAAM,GAAGtB,EAAG,MAAM,CAACiJ,YAAY,CAAC,gBAAgB,SAAS,CAACjJ,EAAG,iBAAiB,CAAC0J,IAAI,QAAQT,YAAY,CAAC,gBAAgB,QAAQ3I,MAAM,CAAC,OAAS,CAAC,CAAEhB,KAAM,SAAU9C,KAAM,SAAU0C,QAASW,EAAIX,WAAWM,MAAM,CAACvC,MAAO4C,EAAS,MAAE6C,SAAS,SAAUyG,GAAMtJ,EAAIL,MAAM2J,GAAKC,WAAW,WAAYvJ,EAAI8J,MAAM,SAAU3J,EAAG,MAAM,CAACiJ,YAAY,CAAC,gBAAgB,SAAS,CAACjJ,EAAG,IAAI,CAACH,EAAIwJ,GAAG,YAAYxJ,EAAIwJ,GAAG,IAAIxJ,EAAIyJ,GAAGC,KAAKC,UAAU3J,EAAI8J,MAAM,SAASC,MAAO,KAAM,IAAI,OAAO/J,EAAIyB,MAAM,GAAGtB,EAAG,MAAM,CAACiJ,YAAY,CAAC,gBAAgB,SAAS,CAACjJ,EAAG,IAAI,CAACH,EAAIwJ,GAAG,YAAYxJ,EAAIwJ,GAAG,IAAIxJ,EAAIyJ,GAAGC,KAAKC,UAAU3J,EAAIL,MAAO,KAAM,IAAI,OAAOQ,EAAG,IAAI,CAACH,EAAIwJ,GAAG,UAAUxJ,EAAIyJ,GAAGzJ,EAAI5C,aACzwD,GAAkB,GCoDtB,IACE4M,OAAQ,UACRrN,KAAM,OACNuF,MAAO,CAAC,SACR0H,MAJF,SAIA,EAJA,GAIA,aACA,GADA,MACA,4CACA,8CACI,OAAJ,WAAI,EAAJ,2CACM9D,EAAK,QAAShC,MAGhB,IAAJ,qCAEI,MAAO,CAAX,gCClEsV,MCOlV,GAAY,eACd,GACA,EACA,IACA,EACA,KACA,KACA,MAIa,M,QCTf,IACEkG,OAAQ,UACR1E,WAAY,CAAd,iBACEsE,MAHF,WAII,IAAJ,uDACI,MAAO,CAAX,WCdmU,MCO/T,GAAY,eACd,GACA,EACA,GACA,EACA,KACA,KACA,MAIa,M,QClBX,GAAS,WAAa,IAAI5J,EAAI1B,KAAS2B,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACiJ,YAAY,CAAC,OAAS,cAAc,CAACjJ,EAAG,MAAM,CAACA,EAAG,MAAM,CAACiJ,YAAY,CAAC,gBAAgB,SAAS,CAACpJ,EAAIwJ,GAAG,WAAWrJ,EAAG,gBAAgB,CAACM,MAAM,CAAC,OAAST,EAAIJ,QAAQkB,GAAG,CAAC,OAASd,EAAIiK,eAAetK,MAAM,CAACvC,MAAO4C,EAAU,OAAE6C,SAAS,SAAUyG,GAAMtJ,EAAIkH,OAAOoC,GAAKC,WAAW,YAAYpJ,EAAG,iBAAiB,CAACM,MAAM,CAAC,KAAO,SAAS,aAAa,IAAId,MAAM,CAACvC,MAAO4C,EAAIkH,OAAU,IAAErE,SAAS,SAAUyG,GAAMtJ,EAAIkK,KAAKlK,EAAIkH,OAAQ,MAAOoC,IAAMC,WAAW,gBAAgBpJ,EAAG,iBAAiB,CAACM,MAAM,CAAC,KAAO,OAAO,WAAW,sBAAsBd,MAAM,CAACvC,MAAO4C,EAAIkH,OAAY,MAAErE,SAAS,SAAUyG,GAAMtJ,EAAIkK,KAAKlK,EAAIkH,OAAQ,QAASoC,IAAMC,WAAW,kBAAkBvJ,EAAIwJ,GAAG,IAAIxJ,EAAIyJ,GAAGzJ,EAAIkH,QAAQ,MAAM,MAC5xB,GAAkB,GCetB,IACE5B,WAAY,GAGZO,QAAS,CACPoE,cADJ,WACA,OACA,oCAGE1P,KAAM,WAAR,OACA,QACA,OAEA,QACA,CACQoC,KAAM,MACN0E,MAAO,MACP5B,KAAM,SACNmI,OAAQ,CAAC,cAAe,gBAEhC,CACQjL,KAAM,QACN0E,MAAO,QACP5B,KAAM,OACN0I,KAAM,sBAEd,CACQxL,KAAM,QACN0E,MAAO,iBACP5B,KAAM,OACN0I,KAAM,CACd,CACU,KAAV,sBAEA,CAEU,KAAV,gECpD+T,MCO3T,GAAY,eACd,GACA,GACA,IACA,EACA,KACA,KACA,MAIa,M,QClBX,GAAS,WAAa,IAAInI,EAAI1B,KAAS2B,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACiJ,YAAY,CAAC,OAAS,cAAc,CAACjJ,EAAG,MAAM,CAACA,EAAG,MAAM,CAACiJ,YAAY,CAAC,gBAAgB,SAAS,CAACpJ,EAAIwJ,GAAG,UAAUrJ,EAAG,gBAAgB,CAACM,MAAM,CAAC,OAAST,EAAIJ,QAAQD,MAAM,CAACvC,MAAO4C,EAAU,OAAE6C,SAAS,SAAUyG,GAAMtJ,EAAIkH,OAAOoC,GAAKC,WAAW,YAAYpJ,EAAG,MAAM,CAACiJ,YAAY,CAAC,aAAa,SAAS,CAACpJ,EAAIwJ,GAAGxJ,EAAIyJ,GAAGzJ,EAAIkH,YAAY,MAC7a,GAAkB,GCWtB,6BACA,4DACA,IACE5B,WAAY,GAGZ/K,KAAM,WAAR,OACA,YACA,QACA,CACQoC,KAAM,QACN0E,MAAO,QACP5B,KAAM,OACN0I,KAAMgC,IAEd,CACQxN,KAAM,QACN0E,MAAO,QACP5B,KAAM,OACN0I,KAAMiC,IAEd,CACQzN,KAAM,eACN0E,MAAO,iBACP5B,KAAM,OACN0I,KAAM,CACd,CACU,KAAV,IAEA,CACU,KAAV,UC1C+T,MCO3T,GAAY,eACd,GACA,GACA,IACA,EACA,KACA,KACA,MAIa,M,QCJf,IACE7C,WAAY,CACV+E,KAAJ,EACIC,SAAJ,GACIC,KAAJ,GACIC,SAAUC,KCnBgT,MCO1T,GAAY,eACd,GACA,EACA,GACA,EACA,KACA,KACA,MAIa,M,QCbfC,aAAIC,OAAOC,eAAgB,EAE3BF,aAAIG,IAAIC,OAAc,CACpBC,QAAS,CACPC,EAAqB,CACnBnC,SAAU,CACRC,YAAY,EACZC,UAAU,EACVC,eAAe,QAUvB,IAAI0B,aAAI,CACNvE,OAAQ,SAAC/G,GAAD,OAAOA,EAAE6L,OAChBC,OAAO","file":"js/app.ded62620.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([\"e35a\",\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","export class Hooks {\n constructor(hooks = []) {\n this.defaultHook = (v) => v\n return this.setHooks(hooks)\n }\n\n // chainables\n\n parse(hooks = []) {\n const _hookList = Array.isArray(hooks) ? hooks : []\n for (let _hook of _hookList) {\n if (this.isProperHook(_hook)) {\n this.hooks.push(_hook)\n }\n }\n return this\n }\n\n addHook(hook) {\n if (this.isProperHook(hook) && this.isNewHook(hook)) {\n this.hooks.push(hook)\n }\n return this\n }\n\n setHooks(hooks = []) {\n this.hooks = hooks.filter(this.isProperHook)\n return this\n }\n\n setDefault(hook) {\n this.defaultHook = hook\n return this\n }\n\n // not chainables\n\n isProperHook(hook) {\n return hook && typeof hook === 'object' && typeof hook.handler === 'function'\n }\n\n isNewHook(hook) {\n return this.hooks.findIndex((h) => h === hook) < 0\n }\n\n getHooks() {\n return this.hooks\n }\n\n empty() {\n return this.hooks.length === 0\n }\n\n apply(value, options) {\n if (this.empty()) {\n return this.defaultHook(value, options)\n } else {\n return this.hooks.reduce((result, hook) => hook.handler(result, options), value)\n }\n }\n\n asSingleHook() {\n const self = this\n return {\n handler(value, options) {\n return self.apply(value, options)\n },\n }\n }\n}\n","export default {\n type: Object,\n default: () => ({\n model: [],\n schema: [],\n schemaOptions: [],\n schemaNode: [],\n schemaComponent: [],\n }),\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.context.classes.outer,attrs:{\"data-classification\":_vm.classification,\"data-has-errors\":_vm.hasErrors,\"data-is-showing-errors\":_vm.hasVisibleErrors,\"data-has-value\":_vm.hasValue,\"data-type\":_vm.type},on:{\"click\":function($event){return _vm.$emit('outer-click')}}},[_c('div',{class:_vm.context.classes.wrapper,on:{\"click\":function($event){return _vm.$emit('wrapper-click')}}},[(_vm.context.labelPosition === 'before')?_vm._t(\"label\",[(_vm.context.hasLabel)?_c(_vm.context.slotComponents.label,_vm._b({tag:\"component\",attrs:{\"context\":_vm.context}},'component',_vm.context.slotProps.label,false)):_vm._e()],null,_vm.context):_vm._e(),(_vm.context.helpPosition === 'before')?_vm._t(\"help\",[(_vm.context.help)?_c(_vm.context.slotComponents.help,_vm._b({tag:\"component\",attrs:{\"context\":_vm.context}},'component',_vm.context.slotProps.help,false)):_vm._e()],null,_vm.context):_vm._e(),_vm._t(\"element\",[_c(_vm.context.component,_vm._g(_vm._b({tag:\"component\",attrs:{\"context\":_vm.context}},'component',_vm.context.slotProps.component,false),_vm.listeners),[_vm._t(\"default\",null,null,_vm.context)],2)],null,_vm.context),(_vm.context.labelPosition === 'after')?_vm._t(\"label\",[(_vm.context.hasLabel)?_c(_vm.context.slotComponents.label,_vm._b({tag:\"component\",attrs:{\"context\":_vm.context}},'component',_vm.context.slotProps.label,false)):_vm._e()],null,_vm.context):_vm._e()],2),(_vm.context.helpPosition === 'after')?_vm._t(\"help\",[(_vm.context.help)?_c(_vm.context.slotComponents.help,_vm._b({tag:\"component\",attrs:{\"context\":_vm.context}},'component',_vm.context.slotProps.help,false)):_vm._e()],null,_vm.context):_vm._e(),_vm._t(\"errors\",[(!_vm.context.disableErrors)?_c(_vm.context.slotComponents.errors,_vm._b({tag:\"component\",attrs:{\"type\":_vm.context.slotComponents.errors === 'FormulateErrors' ? 'input' : false,\"context\":_vm.context}},'component',_vm.context.slotProps.errors,false)):_vm._e()],null,_vm.context)],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormulateInput.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormulateInput.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FormulateInput.vue?vue&type=template&id=06cd8787&\"\nimport script from \"./FormulateInput.vue?vue&type=script&lang=js&\"\nexport * from \"./FormulateInput.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Formulate from '@braid/vue-formulate'\n\nimport { Hooks } from '../libs/hooks'\nimport hooksProp from '../composables/hooksProp'\nimport FormulateInput from './FormulateInput.vue'\n\nfunction leaf(item, index, { hooks, h, state } = {}) {\n if (item && typeof item === 'object' && !Array.isArray(item)) {\n const { children = null, component = FormulateInput, depth = 1, modelHook, ...attrs } = item\n const type = component === FormulateInput ? attrs.type || 'text' : ''\n const name = attrs.name || type || 'el'\n const key = attrs.id || `${name}-${depth}-${index}`\n const els = Array.isArray(children) ? children.map((child) => Object.assign(child, { depth: depth + 1 })) : children\n const _modelHook = new Hooks()\n .setHooks(hooks.model)\n .addHook(modelHook)\n .asSingleHook()\n\n const node = Object.assign({ name, type, key, depth, component, definition: { attrs: { ...attrs, modelHook: _modelHook } }, children: tree(els, { hooks, h, state }) })\n\n return new Hooks()\n .setHooks(hooks.schemaNode)\n .setDefault(() => node)\n .apply(node, { state })\n }\n return null\n}\n\nfunction tree(schema, { hooks, h, state } = {}) {\n if (Array.isArray(schema)) {\n return schema.map((el, idx) => {\n const item = leaf(el, idx, { hooks, h, state })\n return new Hooks()\n .setHooks(hooks.schemaComponent)\n .setDefault(() => h(item.component, item.definition, item.children))\n .apply(item)\n })\n }\n return schema\n}\n\nexport default {\n functional: false,\n name: 'FormulateSchema',\n props: {\n schema: Formulate.defaults.components.FormulateForm.props.schema,\n hooks: hooksProp,\n formClass: {\n type: String,\n default: null,\n },\n },\n data: () => ({\n schemaHooks: null,\n schemaOptionsHooks: null,\n }),\n methods: {\n emit(event, payload) {\n this.$emit(event, payload)\n },\n },\n beforeMount() {\n this.schemaHooks = new Hooks().setHooks(this.hooks.schema)\n this.schemaOptionsHooks = new Hooks().setHooks(this.hooks.schemaOptions).setDefault((x) => x)\n },\n render(createElement) {\n return this.schemaHooks.apply(createElement('div', { class: this.$props.formClass }, tree(this.schema, this.schemaOptionsHooks.apply({ hooks: this.hooks, h: createElement, state: {} }, { emit: this.emit, props: this.$props }))), { emit: this.emit, props: this.$props })\n },\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('form',{class:_vm.classes,on:{\"submit\":function($event){$event.preventDefault();return _vm.formSubmitted($event)}}},[(_vm.schema)?_c('FormulateSchema',{attrs:{\"schema\":_vm.schema,\"hooks\":_vm.cleanedHooks,\"formClass\":_vm.formClass},on:{\"events\":function($event){return _vm.$emit('events', $event)}}}):_vm._e(),(!_vm.hasFormErrorObservers)?_c('FormulateErrors',{attrs:{\"context\":_vm.formContext}}):_vm._e(),_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormulateForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormulateForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FormulateForm.vue?vue&type=template&id=353e5d38&\"\nimport script from \"./FormulateForm.vue?vue&type=script&lang=js&\"\nexport * from \"./FormulateForm.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export class EventBus {\n constructor() {\n this.store = new Map()\n }\n\n on(type, handler) {\n const handlers = this.store.get(type)\n const added = handlers && handlers.push(handler)\n if (!added) {\n this.store.set(type, [handler])\n }\n }\n\n off(type, handler) {\n const handlers = this.store.get(type)\n const index = handlers.indexOf(handler)\n if (handlers && index > -1) {\n handlers.splice(index, 1)\n }\n }\n\n emit(type, payload) {\n this.store\n .get(type)\n .slice()\n .map((handler) => handler(payload))\n }\n}","import { EventBus } from '../libs/event-bus'\n\nexport default {\n hooks: {\n schemaOptions: [\n {\n handler(options, { emit } = {}) {\n options.state = options.state || {}\n options.state.eventBus = new EventBus()\n options.state.eventBus.on('events', (payload) => emit('events', payload))\n return options\n },\n },\n ],\n schemaNode: [\n {\n handler(node, { state } = {}) {\n const { events = [], on = {}, ...attrs } = node.definition.attrs\n node.definition.attrs = attrs\n node.definition.on = {\n ...on,\n ...events.reduce((onEvents, eventName) => {\n onEvents[eventName] = function(payload) {\n if (on[eventName]) on[eventName](payload)\n state.eventBus.emit('events', { eventName, name: node.name, type: node.type, key: node.key, payload })\n }\n return onEvents\n }, {}),\n }\n\n return node\n },\n },\n ],\n },\n}\n","import IMask from 'imask'\n\nexport default {\n hooks: {\n model: [\n {\n handler(value, { context }) {\n const hasMask = 'vfe-mask' in context.attributes || 'vfeMask' in context.attributes\n if (context.classification === 'text' && hasMask) {\n const options = context.attributes['vfe-mask'] || context.attributes.vfeMask\n const maskOptions = typeof options === 'object' && options.mask ? options : { mask: options }\n const masked = IMask.createMask(maskOptions)\n const resolved = masked.resolve(value)\n return resolved\n } else {\n return value\n }\n },\n },\n ],\n },\n}\n","export default {\n hooks: {\n model: [\n {\n handler(value, { context }) {\n const hasEnforceNumber = (typeof context.attributes.vfeNumber === 'string' ? true : context.attributes.vfeNumber) || (typeof context.attributes['vfe-number'] === 'string' ? true : context.attributes['vfe-number'])\n\n if (context.type === 'number' && typeof value === 'string' && hasEnforceNumber) {\n return +value\n } else {\n return value\n }\n },\n },\n ],\n },\n}\n","import FormulateSchema from './components/FormulateSchema'\nimport FormulateForm from './components/FormulateForm.vue'\nimport FormulateInput from './components/FormulateInput.vue'\n\nimport formEvents from './features/form-events'\nimport textMask from './features/text-mask'\nimport enforceNumber from './features/enforce-number'\n\nimport Formulate from '@braid/vue-formulate/src/Formulate'\n\nexport const components = { FormulateForm, FormulateSchema, FormulateInput }\nexport const features = { formEvents, enforceNumber, textMask } // textMask - need to be removed to avoid required dependency\n\nexport default function(options = {}) {\n let extended = {\n options: Formulate.merge(\n {\n features: {\n formEvents: true,\n textMask: false,\n enforceNumber: false,\n },\n override: {\n FormulateForm: true,\n FormulateInput: true,\n FormulateSchema: true,\n },\n },\n options\n ),\n }\n\n return function plugin(instance) {\n if (extended.options.override.FormulateForm) {\n instance.extend({ components: { FormulateForm } })\n }\n\n if (extended.options.override.FormulateInput) {\n instance.extend({ components: { FormulateInput } })\n }\n\n if (extended.options.override.FormulateSchema) {\n instance.extend({ components: { FormulateSchema } })\n }\n\n if (extended.options.features.formEvents) {\n instance.extend(formEvents)\n }\n\n if (extended.options.features.textMask) {\n instance.extend(textMask)\n // lazy loaded\n // import('./features/text-mask').then((textMask) => {\n // instance.extend(textMask.default)\n // })\n }\n\n if (extended.options.features.enforceNumber) {\n instance.extend(enforceNumber)\n }\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"display\":\"flex\",\"justify-items\":\"center\",\"align-items\":\"center\",\"min-height\":\"100vh\"}},[_c('Base',{staticStyle:{\"width\":\"300px\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"hello\"},[_c('FormulateForm',{attrs:{\"schema\":_vm.schema},on:{\"events\":_vm.onEvents},model:{value:(_vm.values),callback:function ($$v) {_vm.values=$$v},expression:\"values\"}}),_c('div',{staticClass:\"mt-3\"},[_vm._v(_vm._s(JSON.stringify(_vm.values, null, 2)))])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./Test.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./Test.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Test.vue?vue&type=template&id=2027a220&\"\nimport script from \"./Test.vue?vue&type=script&lang=js&\"\nexport * from \"./Test.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('FormSyncComp',{model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"flex flex-col items-center space-y-6\"},[_c('div',{staticStyle:{\"margin-bottom\":\"4rem\"}},[_c('formulate-form',{ref:\"form0\",staticStyle:{\"margin-bottom\":\"2rem\"},attrs:{\"schema\":[{ type: 'select', name: 'first', events: ['input'], options: _vm.options}]},on:{\"events\":_vm.onEvents},model:{value:(_vm.model),callback:function ($$v) {_vm.model=$$v},expression:\"model\"}}),(_vm.$refs['form0'])?_c('div',{staticStyle:{\"margin-bottom\":\"2rem\"}},[_c('p',[_vm._v(\"Proxy:\")]),_vm._v(\" \"+_vm._s(JSON.stringify(_vm.$refs['form0'].proxy, null, 2))+\" \")]):_vm._e()],1),_c('div',{staticStyle:{\"margin-bottom\":\"4rem\"}},[_c('formulate-form',{ref:\"form1\",staticStyle:{\"margin-bottom\":\"2rem\"},attrs:{\"formulateValue\":_vm.model,\"schema\":[{ type: 'select', name: 'second', options: _vm.options}]},model:{value:(_vm.model),callback:function ($$v) {_vm.model=$$v},expression:\"model\"}}),(_vm.$refs['form1'])?_c('div',{staticStyle:{\"margin-bottom\":\"2rem\"}},[_c('p',[_vm._v(\"Proxy:\")]),_vm._v(\" \"+_vm._s(JSON.stringify(_vm.$refs['form1'].proxy, null, 2))+\" \")]):_vm._e()],1),_c('div',{staticStyle:{\"margin-bottom\":\"4rem\"}},[_c('formulate-form',{ref:\"form2\",staticStyle:{\"margin-bottom\":\"2rem\"},attrs:{\"schema\":[{ type: 'select', name: 'second', options: _vm.options}]},model:{value:(_vm.model),callback:function ($$v) {_vm.model=$$v},expression:\"model\"}}),(_vm.$refs['form2'])?_c('div',{staticStyle:{\"margin-bottom\":\"2rem\"}},[_c('p',[_vm._v(\"Proxy:\")]),_vm._v(\" \"+_vm._s(JSON.stringify(_vm.$refs['form2'].proxy, null, 2))+\" \")]):_vm._e()],1),_c('div',{staticStyle:{\"margin-bottom\":\"2rem\"}},[_c('p',[_vm._v(\"Model:\")]),_vm._v(\" \"+_vm._s(JSON.stringify(_vm.model, null, 2))+\" \")]),_c('p',[_vm._v(\"Value: \"+_vm._s(_vm.value))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormSyncComp.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormSyncComp.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FormSyncComp.vue?vue&type=template&id=221b5e3e&\"\nimport script from \"./FormSyncComp.vue?vue&type=script&lang=js&\"\nexport * from \"./FormSyncComp.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormSync.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormSync.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FormSync.vue?vue&type=template&id=d7c05734&\"\nimport script from \"./FormSync.vue?vue&type=script&lang=js&\"\nexport * from \"./FormSync.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"margin\":\"20px auto\"}},[_c('div',[_c('div',{staticStyle:{\"margin-bottom\":\"20px\"}},[_vm._v(\"Basic\")]),_c('FormulateForm',{attrs:{\"schema\":_vm.schema},on:{\"events\":_vm.eventsHandler},model:{value:(_vm.values),callback:function ($$v) {_vm.values=$$v},expression:\"values\"}}),_c('FormulateInput',{attrs:{\"type\":\"number\",\"vfe-number\":\"\"},model:{value:(_vm.values.age),callback:function ($$v) {_vm.$set(_vm.values, \"age\", $$v)},expression:\"values.age\"}}),_c('FormulateInput',{attrs:{\"type\":\"text\",\"vfe-mask\":\"+7 (000) 000-00-00\"},model:{value:(_vm.values.phone),callback:function ($$v) {_vm.$set(_vm.values, \"phone\", $$v)},expression:\"values.phone\"}}),_vm._v(\" \"+_vm._s(_vm.values)+\" \")],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./Base.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./Base.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Base.vue?vue&type=template&id=3343e48a&\"\nimport script from \"./Base.vue?vue&type=script&lang=js&\"\nexport * from \"./Base.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"margin\":\"20px auto\"}},[_c('div',[_c('div',{staticStyle:{\"margin-bottom\":\"20px\"}},[_vm._v(\"Mask\")]),_c('FormulateForm',{attrs:{\"schema\":_vm.schema},model:{value:(_vm.values),callback:function ($$v) {_vm.values=$$v},expression:\"values\"}}),_c('div',{staticStyle:{\"margin-top\":\"20px\"}},[_vm._v(_vm._s(_vm.values))])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./Mask.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./Mask.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Mask.vue?vue&type=template&id=6f66b502&\"\nimport script from \"./Mask.vue?vue&type=script&lang=js&\"\nexport * from \"./Mask.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=f9b5ab86&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\n\nimport VueFormulate from '@braid/vue-formulate'\n// import VueFormulateExtended from '../lib/vue-formulate-extended.umd'\nimport VueFormulateExtended from '../src'\nVue.config.productionTip = false\n\nVue.use(VueFormulate, {\n plugins: [\n VueFormulateExtended({\n features: {\n formEvents: true,\n textMask: true,\n enforceNumber: true,\n },\n }),\n ],\n})\n\nimport '@braid/vue-formulate/themes/snow/snow.scss'\n\nimport App from './App.vue'\n\nnew Vue({\n render: (h) => h(App),\n}).$mount('#app')\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/chunk-vendors.2c117e4a.js b/dist/js/chunk-vendors.2c117e4a.js new file mode 100644 index 0000000..827f98c --- /dev/null +++ b/dist/js/chunk-vendors.2c117e4a.js @@ -0,0 +1,34 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(t,e,r){var n=r("b622"),i=n("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,r){var n=r("1c0b");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},"0538":function(t,e,r){"use strict";var n=r("1c0b"),i=r("861d"),o=[].slice,s={},a=function(t,e,r){if(!(e in s)){for(var n=[],i=0;i=0||(i[r]=t[r]);return i}function p(t,e){if(null==t)return{};var r,n,i=d(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?h(t):e}function m(t){var e=f();return function(){var r,n=l(t);if(e){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function y(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=l(t),null===t)break;return t}function g(t,e,r){return g="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=y(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(r):i.value}},g(t,e,r||t)}function b(t,e,r,n){return b="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(t,e,r,n){var i,o=y(t,e);if(o){if(i=Object.getOwnPropertyDescriptor(o,e),i.set)return i.set.call(n,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(n,e),i){if(!i.writable)return!1;i.value=r,Object.defineProperty(n,e,i)}else a(n,e,r);return!0},b(t,e,r,n)}function x(t,e,r,n,i){var o=b(t,e,r,n||t);if(!o&&i)throw new Error("failed to set property");return r}function _(t,e){return w(t)||k(t,e)||E(t,e)||O()}function w(t){if(Array.isArray(t))return t}function k(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done);n=!0)if(r.push(s.value),e&&r.length===e)break}catch(u){i=!0,o=u}finally{try{n||null==a["return"]||a["return"]()}finally{if(i)throw o}}return r}}function E(t,e){if(t){if("string"===typeof t)return A(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(t,e):void 0}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;i(this,t),this.value=e,this.from=r,this.stop=n}return s(t,[{key:"toString",value:function(){return this.value}},{key:"extend",value:function(t){this.value+=String(t)}},{key:"appendTo",value:function(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}},{key:"state",get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(t){Object.assign(this,t)}},{key:"shiftBefore",value:function(t){if(this.from>=t||!this.value.length)return"";var e=this.value[0];return this.value=this.value.slice(1),e}}]),t}(),T=R;function N(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new N.InputMask(t,e)}var B=N,M=function(){function t(e){i(this,t),this._value="",this._update(Object.assign({},t.DEFAULTS,e)),this.isInitialized=!0}return s(t,[{key:"updateOptions",value:function(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}},{key:"_update",value:function(t){Object.assign(this,t)}},{key:"state",get:function(){return{_value:this.value}},set:function(t){this._value=t._value}},{key:"reset",value:function(){this._value=""}},{key:"value",get:function(){return this._value},set:function(t){this.resolve(t)}},{key:"resolve",value:function(t){return this.reset(),this.append(t,{input:!0},""),this.doCommit(),this.value}},{key:"unmaskedValue",get:function(){return this.value},set:function(t){this.reset(),this.append(t,{},""),this.doCommit()}},{key:"typedValue",get:function(){return this.doParse(this.value)},set:function(t){this.value=this.doFormat(t)}},{key:"rawInputValue",get:function(){return this.extractInput(0,this.value.length,{raw:!0})},set:function(t){this.reset(),this.append(t,{raw:!0},""),this.doCommit()}},{key:"isComplete",get:function(){return!0}},{key:"nearestInputPos",value:function(t,e){return t}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(t,e)}},{key:"extractTail",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return new T(this.extractInput(t,e),t)}},{key:"appendTail",value:function(t){return S(t)&&(t=new T(String(t))),t.appendTo(this)}},{key:"_appendCharRaw",value:function(t){return t?(this._value+=t,new I({inserted:t,rawInserted:t})):new I}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=this.state,i=this._appendCharRaw(this.doPrepare(t,e),e);if(i.inserted){var o,s=!1!==this.doValidate(e);if(s&&null!=r){var a=this.state;this.overwrite&&(o=r.state,r.shiftBefore(this.value.length));var u=this.appendTail(r);s=u.rawInserted===r.toString(),s&&u.inserted&&(this.state=a)}s||(i=new I,this.state=n,r&&o&&(r.state=o))}return i}},{key:"_appendPlaceholder",value:function(){return new I}},{key:"append",value:function(t,e,r){if(!S(t))throw new Error("value should be string");var n=new I,i=S(r)?new T(String(r)):r;e&&e.tail&&(e._beforeTailState=this.state);for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,t)+this.value.slice(e),new I}},{key:"withValueRefresh",value:function(t){if(this._refreshing||!this.isInitialized)return t();this._refreshing=!0;var e=this.rawInputValue,r=this.value,n=t();return this.rawInputValue=e,this.value&&this.value!==r&&0===r.indexOf(this.value)&&this.append(r.slice(this.value.length),{},""),delete this._refreshing,n}},{key:"runIsolated",value:function(t){if(this._isolated||!this.isInitialized)return t(this);this._isolated=!0;var e=this.state,r=t(this);return this.state=e,delete this._isolated,r}},{key:"doPrepare",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.prepare?this.prepare(t,this,e):t}},{key:"doValidate",value:function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}},{key:"doCommit",value:function(){this.commit&&this.commit(this.value,this)}},{key:"doFormat",value:function(t){return this.format?this.format(t,this):t}},{key:"doParse",value:function(t){return this.parse?this.parse(t,this):t}},{key:"splice",value:function(t,e,r,n){var i=t+e,o=this.extractTail(i),s=this.nearestInputPos(t,n),a=new I({tailShift:s-t}).aggregate(this.remove(s)).aggregate(this.append(r,{input:!0},o));return a}}]),t}();M.DEFAULTS={format:function(t){return t},parse:function(t){return t}},B.Masked=M;var L=M;function U(t){if(null==t)throw new Error("mask property should be defined");return t instanceof RegExp?B.MaskedRegExp:S(t)?B.MaskedPattern:t instanceof Date||t===Date?B.MaskedDate:t instanceof Number||"number"===typeof t||t===Number?B.MaskedNumber:Array.isArray(t)||t===Array?B.MaskedDynamic:B.Masked&&t.prototype instanceof B.Masked?t:t instanceof Function?B.MaskedFunction:t instanceof B.Masked?t.constructor:(console.warn("Mask not found for mask",t),B.Masked)}function H(t){if(B.Masked&&t instanceof B.Masked)return t;t=Object.assign({},t);var e=t.mask;if(B.Masked&&e instanceof B.Masked)return e;var r=U(e);if(!r)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new r(t)}B.createMask=H;var G=H,z={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},q=function(){function t(e){i(this,t);var r=e.mask,n=p(e,["mask"]);this.masked=G({mask:r}),Object.assign(this,n)}return s(t,[{key:"reset",value:function(){this._isFilled=!1,this.masked.reset()}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===t&&e>=1?(this._isFilled=!1,this.masked.remove(t,e)):new I}},{key:"value",get:function(){return this.masked.value||(this._isFilled&&!this.isOptional?this.placeholderChar:"")}},{key:"unmaskedValue",get:function(){return this.masked.unmaskedValue}},{key:"isComplete",get:function(){return Boolean(this.masked.value)||this.isOptional}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._isFilled)return new I;var r=this.masked.state,n=this.masked._appendChar(t,e);return n.inserted&&!1===this.doValidate(e)&&(n.inserted=n.rawInserted="",this.masked.state=r),n.inserted||this.isOptional||this.lazy||e.input||(n.inserted=this.placeholderChar),n.skip=!n.inserted&&!this.isOptional,this._isFilled=Boolean(n.inserted),n}},{key:"append",value:function(){var t;return(t=this.masked).append.apply(t,arguments)}},{key:"_appendPlaceholder",value:function(){var t=new I;return this._isFilled||this.isOptional||(this._isFilled=!0,t.inserted=this.placeholderChar),t}},{key:"extractTail",value:function(){var t;return(t=this.masked).extractTail.apply(t,arguments)}},{key:"appendTail",value:function(){var t;return(t=this.masked).appendTail.apply(t,arguments)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(t,e,r)}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F.NONE,r=0,n=this.value.length,i=Math.min(Math.max(t,r),n);switch(e){case F.LEFT:case F.FORCE_LEFT:return this.isComplete?i:r;case F.RIGHT:case F.FORCE_RIGHT:return this.isComplete?i:n;case F.NONE:default:return i}}},{key:"doValidate",value:function(){var t,e;return(t=this.masked).doValidate.apply(t,arguments)&&(!this.parent||(e=this.parent).doValidate.apply(e,arguments))}},{key:"doCommit",value:function(){this.masked.doCommit()}},{key:"state",get:function(){return{masked:this.masked.state,_isFilled:this._isFilled}},set:function(t){this.masked.state=t.masked,this._isFilled=t._isFilled}}]),t}(),W=q,K=function(){function t(e){i(this,t),Object.assign(this,e),this._value=""}return s(t,[{key:"value",get:function(){return this._value}},{key:"unmaskedValue",get:function(){return this.isUnmasking?this.value:""}},{key:"reset",value:function(){this._isRawInput=!1,this._value=""}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,t)+this._value.slice(e),this._value||(this._isRawInput=!1),new I}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F.NONE,r=0,n=this._value.length;switch(e){case F.LEFT:case F.FORCE_LEFT:return r;case F.NONE:case F.RIGHT:case F.FORCE_RIGHT:default:return n}}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.raw&&this._isRawInput&&this._value.slice(t,e)||""}},{key:"isComplete",get:function(){return!0}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new I;if(this._value)return r;var n=this.char===t[0],i=n&&(this.isUnmasking||e.input||e.raw)&&!e.tail;return i&&(r.rawInserted=this.char),this._value=r.inserted=this.char,this._isRawInput=i&&(e.raw||e.input),r}},{key:"_appendPlaceholder",value:function(){var t=new I;return this._value||(this._value=t.inserted=this.char),t}},{key:"extractTail",value:function(){return arguments.length>1&&void 0!==arguments[1]||this.value.length,new T("")}},{key:"appendTail",value:function(t){return S(t)&&(t=new T(String(t))),t.appendTo(this)}},{key:"append",value:function(t,e,r){var n=this._appendChar(t,e);return null!=r&&(n.tailShift+=this.appendTail(r).tailShift),n}},{key:"doCommit",value:function(){}},{key:"state",get:function(){return{_value:this._value,_isRawInput:this._isRawInput}},set:function(t){Object.assign(this,t)}}]),t}(),Y=K,Z=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(this,t),this.chunks=e,this.from=r}return s(t,[{key:"toString",value:function(){return this.chunks.map(String).join("")}},{key:"extend",value:function(e){if(String(e)){S(e)&&(e=new T(String(e)));var r=this.chunks[this.chunks.length-1],n=r&&(r.stop===e.stop||null==e.stop)&&e.from===r.from+r.toString().length;if(e instanceof T)n?r.extend(e.toString()):this.chunks.push(e);else if(e instanceof t){var i;if(null==e.stop)while(e.chunks.length&&null==e.chunks[0].stop)i=e.chunks.shift(),i.from+=e.from,this.extend(i);e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}}},{key:"appendTo",value:function(e){if(!(e instanceof B.MaskedPattern)){var r=new T(this.toString());return r.appendTo(e)}for(var n=new I,i=0;i=0)&&n.aggregate(e._appendPlaceholder(a)),u=o instanceof t&&e._blocks[a]),u){var l=u.appendTail(o);l.skip=!1,n.aggregate(l),e._value+=l.inserted;var c=o.toString().slice(l.rawInserted.length);c&&n.aggregate(e.append(c,{tail:!0}))}else n.aggregate(e.append(o.toString(),{tail:!0}))}return n}},{key:"state",get:function(){return{chunks:this.chunks.map((function(t){return t.state})),from:this.from,stop:this.stop,blockIndex:this.blockIndex}},set:function(e){var r=e.chunks,n=p(e,["chunks"]);Object.assign(this,n),this.chunks=r.map((function(e){var r="chunks"in e?new t:new T;return r.state=e,r}))}},{key:"shiftBefore",value:function(t){if(this.from>=t||!this.chunks.length)return"";var e=t-this.from,r=0;while(r=0}),g(l(r.prototype),"_update",this).call(this,t)}}]),r}(L);B.MaskedRegExp=J;var Q=function(t){u(r,t);var e=m(r);function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,r),t.definitions=Object.assign({},z,t.definitions),e.call(this,Object.assign({},r.DEFAULTS,t))}return s(r,[{key:"_update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.definitions=Object.assign({},this.definitions,t.definitions),g(l(r.prototype),"_update",this).call(this,t),this._rebuildMask()}},{key:"_rebuildMask",value:function(){var t=this,e=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};var n=this.mask;if(n&&e)for(var i=!1,o=!1,s=0;s1&&void 0!==arguments[1]?arguments[1]:{},r=this._mapPosToBlock(this.value.length),n=new I;if(!r)return n;for(var i=r.index;;++i){var o=this._blocks[i];if(!o)break;var s=o._appendChar(t,e),a=s.skip;if(n.aggregate(s),a||s.rawInserted)break}return n}},{key:"extractTail",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=new X;return e===r||this._forEachBlocksInRange(e,r,(function(e,r,i,o){var s=e.extractTail(i,o);s.stop=t._findStopBefore(r),s.from=t._blockStartPos(r),s instanceof X&&(s.blockIndex=r),n.extend(s)})),n}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t===e)return"";var n="";return this._forEachBlocksInRange(t,e,(function(t,e,i,o){n+=t.extractInput(i,o,r)})),n}},{key:"_findStopBefore",value:function(t){for(var e,r=0;r1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2?arguments[2]:void 0,n=this._mapPosToBlock(t);if(n){var i=this._mapPosToBlock(e),o=i&&n.index===i.index,s=n.offset,a=i&&o?i.offset:this._blocks[n.index].value.length;if(r(this._blocks[n.index],n.index,s,a),i&&!o){for(var u=n.index+1;u0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=g(l(r.prototype),"remove",this).call(this,t,e);return this._forEachBlocksInRange(t,e,(function(t,e,r,i){n.aggregate(t.remove(r,i))})),n}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F.NONE,r=this._mapPosToBlock(t)||{index:0,offset:0},n=r.offset,i=r.index,o=this._blocks[i];if(!o)return t;var s=n;0!==s&&s0){var c=l-1,f=this._blocks[c],d=f.nearestInputPos(0,F.NONE);if(!f.value.length||d!==f.value.length)return this._blockStartPos(l)}for(var p=l,h=p;h=0;--y){var g=this._blocks[y],b=g.nearestInputPos(0,F.NONE);if(!g.value.length||b!==g.value.length)return this._blockStartPos(y)+g.value.length}return t}if(e===F.LEFT||e===F.FORCE_LEFT){for(var x,_=l;_=0;--O){var S=this._blocks[O],j=S.nearestInputPos(S.value.length,F.FORCE_LEFT);if(S.value&&0===j||(E=O),0!==j){if(j!==S.value.length)return this._blockStartPos(O)+j;A=O;break}}if(e===F.LEFT)for(var P=A+1;P<=Math.min(l,this._blocks.length-1);++P){var $=this._blocks[P],V=$.nearestInputPos(0,F.NONE),D=this._blockStartPos(P)+V;if(D>t)break;if(V!==$.value.length)return D}if(A>=0)return this._blockStartPos(A)+this._blocks[A].value.length;if(e===F.FORCE_LEFT||this.lazy&&!this.extractInput()&&!tt(this._blocks[l]))return 0;if(null!=E)return this._blockStartPos(E);for(var I=l;I=0;--q){var W=this._blocks[q],K=W.nearestInputPos(W.value.length,F.LEFT);if(0!==K){var Y=this._blockStartPos(q)+K;if(Y>=t)return Y;break}}}return t}},{key:"maskedBlock",value:function(t){return this.maskedBlocks(t)[0]}},{key:"maskedBlocks",value:function(t){var e=this,r=this._maskedBlocks[t];return r?r.map((function(t){return e._blocks[t]})):[]}}]),r}(L);function tt(t){if(!t)return!1;var e=t.value;return!e||t.nearestInputPos(0,F.NONE)!==e.length}Q.DEFAULTS={lazy:!0,placeholderChar:"_"},Q.STOP_CHAR="`",Q.ESCAPE_CHAR="\\",Q.InputDefinition=W,Q.FixedDefinition=Y,B.MaskedPattern=Q;var et=Q,rt=function(t){u(r,t);var e=m(r);function r(){return i(this,r),e.apply(this,arguments)}return s(r,[{key:"_matchFrom",get:function(){return this.maxLength-String(this.from).length}},{key:"_update",value:function(t){t=Object.assign({to:this.to||0,from:this.from||0},t);var e=String(t.to).length;null!=t.maxLength&&(e=Math.max(e,t.maxLength)),t.maxLength=e;var n=String(t.from).padStart(e,"0"),i=String(t.to).padStart(e,"0"),o=0;while(o1&&void 0!==arguments[1]?arguments[1]:{};if(t=g(l(r.prototype),"doPrepare",this).call(this,t,e).replace(/\D/g,""),!this.autofix)return t;for(var n=String(this.from).padStart(this.maxLength,"0"),i=String(this.to).padStart(this.maxLength,"0"),o=this.value,s="",a=0;athis.to?s+=i[u.length-1]:s+=t[a]}return s}},{key:"doValidate",value:function(){var t,e=this.value,n=e.search(/[^0]/);if(-1===n&&e.length<=this._matchFrom)return!0;for(var i=this.boundaries(e),o=_(i,2),s=o[0],a=o[1],u=arguments.length,c=new Array(u),f=0;f=0}},{key:"date",get:function(){return this.typedValue},set:function(t){this.typedValue=t}},{key:"typedValue",get:function(){return this.isComplete?g(l(r.prototype),"typedValue",this):null},set:function(t){x(l(r.prototype),"typedValue",t,this,!0)}}]),r}(et);it.DEFAULTS={pattern:"d{.}`m{.}`Y",format:function(t){var e=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),n=t.getFullYear();return[e,r,n].join(".")},parse:function(t){var e=t.split("."),r=_(e,3),n=r[0],i=r[1],o=r[2];return new Date(o,i-1,n)}},it.GET_DEFAULT_BLOCKS=function(){return{d:{mask:nt,from:1,to:31,maxLength:2},m:{mask:nt,from:1,to:12,maxLength:2},Y:{mask:nt,from:1900,to:9999}}},B.MaskedDate=it;var ot=it,st=function(){function t(){i(this,t)}return s(t,[{key:"selectionStart",get:function(){var t;try{t=this._unsafeSelectionStart}catch(e){}return null!=t?t:this.value.length}},{key:"selectionEnd",get:function(){var t;try{t=this._unsafeSelectionEnd}catch(e){}return null!=t?t:this.value.length}},{key:"select",value:function(t,e){if(null!=t&&null!=e&&(t!==this.selectionStart||e!==this.selectionEnd))try{this._unsafeSelect(t,e)}catch(r){}}},{key:"_unsafeSelect",value:function(t,e){}},{key:"isActive",get:function(){return!1}},{key:"bindEvents",value:function(t){}},{key:"unbindEvents",value:function(){}}]),t}();B.MaskElement=st;var at=st,ut=function(t){u(r,t);var e=m(r);function r(t){var n;return i(this,r),n=e.call(this),n.input=t,n._handlers={},n}return s(r,[{key:"rootElement",get:function(){return this.input.getRootNode?this.input.getRootNode():document}},{key:"isActive",get:function(){return this.input===this.rootElement.activeElement}},{key:"_unsafeSelectionStart",get:function(){return this.input.selectionStart}},{key:"_unsafeSelectionEnd",get:function(){return this.input.selectionEnd}},{key:"_unsafeSelect",value:function(t,e){this.input.setSelectionRange(t,e)}},{key:"value",get:function(){return this.input.value},set:function(t){this.input.value=t}},{key:"bindEvents",value:function(t){var e=this;Object.keys(t).forEach((function(n){return e._toggleEventHandler(r.EVENTS_MAP[n],t[n])}))}},{key:"unbindEvents",value:function(){var t=this;Object.keys(this._handlers).forEach((function(e){return t._toggleEventHandler(e)}))}},{key:"_toggleEventHandler",value:function(t,e){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),e&&(this.input.addEventListener(t,e),this._handlers[t]=e)}}]),r}(at);ut.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},B.HTMLMaskElement=ut;var lt=ut,ct=function(t){u(r,t);var e=m(r);function r(){return i(this,r),e.apply(this,arguments)}return s(r,[{key:"_unsafeSelectionStart",get:function(){var t=this.rootElement,e=t.getSelection&&t.getSelection();return e&&e.anchorOffset}},{key:"_unsafeSelectionEnd",get:function(){var t=this.rootElement,e=t.getSelection&&t.getSelection();return e&&this._unsafeSelectionStart+String(e).length}},{key:"_unsafeSelect",value:function(t,e){if(this.rootElement.createRange){var r=this.rootElement.createRange();r.setStart(this.input.firstChild||this.input,t),r.setEnd(this.input.lastChild||this.input,e);var n=this.rootElement,i=n.getSelection&&n.getSelection();i&&(i.removeAllRanges(),i.addRange(r))}}},{key:"value",get:function(){return this.input.textContent},set:function(t){this.input.textContent=t}}]),r}(lt);B.HTMLContenteditableMaskElement=ct;var ft=ct,dt=function(){function t(e,r){i(this,t),this.el=e instanceof at?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new ft(e):new lt(e),this.masked=G(r),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}return s(t,[{key:"mask",get:function(){return this.masked.mask},set:function(t){if(!this.maskEquals(t))if(t instanceof B.Masked||this.masked.constructor!==U(t)){var e=G({mask:t});e.unmaskedValue=this.masked.unmaskedValue,this.masked=e}else this.masked.updateOptions({mask:t})}},{key:"maskEquals",value:function(t){return null==t||t===this.masked.mask||t===Date&&this.masked instanceof ot}},{key:"value",get:function(){return this._value},set:function(t){this.masked.value=t,this.updateControl(),this.alignCursor()}},{key:"unmaskedValue",get:function(){return this._unmaskedValue},set:function(t){this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor()}},{key:"typedValue",get:function(){return this.masked.typedValue},set:function(t){this.masked.typedValue=t,this.updateControl(),this.alignCursor()}},{key:"_bindEvents",value:function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}},{key:"_unbindEvents",value:function(){this.el&&this.el.unbindEvents()}},{key:"_fireEvent",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n=0&&this._listeners[t].splice(r,1),this}},{key:"_onInput",value:function(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();var e=new V(this.el.value,this.cursorPos,this.value,this._selection),r=this.masked.rawInputValue,n=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection).offset,i=r===this.masked.rawInputValue?e.removeDirection:F.NONE,o=this.masked.nearestInputPos(e.startChangePos+n,i);this.updateControl(),this.updateCursor(o),delete this._inputEvent}},{key:"_onChange",value:function(){this.value!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}},{key:"_onDrop",value:function(t){t.preventDefault(),t.stopPropagation()}},{key:"_onFocus",value:function(t){this.alignCursorFriendly()}},{key:"_onClick",value:function(t){this.alignCursorFriendly()}},{key:"destroy",value:function(){this._unbindEvents(),this._listeners.length=0,delete this.el}}]),t}();B.InputMask=dt;var pt=function(t){u(r,t);var e=m(r);function r(){return i(this,r),e.apply(this,arguments)}return s(r,[{key:"_update",value:function(t){t.enum&&(t.mask="*".repeat(t.enum[0].length)),g(l(r.prototype),"_update",this).call(this,t)}},{key:"doValidate",value:function(){for(var t,e=this,n=arguments.length,i=new Array(n),o=0;o=0}))&&(t=g(l(r.prototype),"doValidate",this)).call.apply(t,[this].concat(i))}}]),r}(et);B.MaskedEnum=pt;var ht=function(t){u(r,t);var e=m(r);function r(t){return i(this,r),e.call(this,Object.assign({},r.DEFAULTS,t))}return s(r,[{key:"_update",value:function(t){g(l(r.prototype),"_update",this).call(this,t),this._updateRegExps()}},{key:"_updateRegExps",value:function(){var t="^"+(this.allowNegative?"[+|\\-]?":""),e="(0|([1-9]+\\d*))?",r="\\d*",n=(this.scale?"("+j(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExpInput=new RegExp(t+e+n),this._numberRegExp=new RegExp(t+r+n),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(j).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(j(this.thousandsSeparator),"g")}},{key:"_removeThousandsSeparators",value:function(t){return t.replace(this._thousandsSeparatorRegExp,"")}},{key:"_insertThousandsSeparators",value:function(t){var e=t.split(this.radix);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),e.join(this.radix)}},{key:"doPrepare",value:function(t){for(var e,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o1&&void 0!==arguments[1]&&arguments[1],r=0,n=0;n0&&void 0!==arguments[0]?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0,i=this._adjustRangeWithSeparators(t,e),o=_(i,2);return t=o[0],e=o[1],this._removeThousandsSeparators(g(l(r.prototype),"extractInput",this).call(this,t,e,n))}},{key:"_appendCharRaw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return g(l(r.prototype),"_appendCharRaw",this).call(this,t,e);var n=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);var o=g(l(r.prototype),"_appendCharRaw",this).call(this,t,e);this._value=this._insertThousandsSeparators(this._value);var s=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(s);return o.tailShift+=(a-i)*this.thousandsSeparator.length,o.skip=!o.rawInserted&&t===this.thousandsSeparator,o}},{key:"_findSeparatorAround",value:function(t){if(this.thousandsSeparator){var e=t-this.thousandsSeparator.length+1,r=this.value.indexOf(this.thousandsSeparator,e);if(r<=t)return r}return-1}},{key:"_adjustRangeWithSeparators",value:function(t,e){var r=this._findSeparatorAround(t);r>=0&&(t=r);var n=this._findSeparatorAround(e);return n>=0&&(e=n+this.thousandsSeparator.length),[t,e]}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=this._adjustRangeWithSeparators(t,e),n=_(r,2);t=n[0],e=n[1];var i=this.value.slice(0,t),o=this.value.slice(e),s=this._separatorsCount(i.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(i+o));var a=this._separatorsCountFromSlice(i);return new I({tailShift:(a-s)*this.thousandsSeparator.length})}},{key:"nearestInputPos",value:function(t,e){if(!this.thousandsSeparator)return t;switch(e){case F.NONE:case F.LEFT:case F.FORCE_LEFT:var r=this._findSeparatorAround(t-1);if(r>=0){var n=r+this.thousandsSeparator.length;if(t=0)return i+this.thousandsSeparator.length}return t}},{key:"doValidate",value:function(t){var e=t.input?this._numberRegExpInput:this._numberRegExp,n=e.test(this._removeThousandsSeparators(this.value));if(n){var i=this.number;n=n&&!isNaN(i)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return n&&g(l(r.prototype),"doValidate",this).call(this,t)}},{key:"doCommit",value:function(){if(this.value){var t=this.number,e=t;null!=this.min&&(e=Math.max(e,this.min)),null!=this.max&&(e=Math.min(e,this.max)),e!==t&&(this.unmaskedValue=String(e));var n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&(n=this._padFractionalZeros(n)),this._value=n}g(l(r.prototype),"doCommit",this).call(this)}},{key:"_normalizeZeros",value:function(t){var e=this._removeThousandsSeparators(t).split(this.radix);return e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,(function(t,e,r,n){return e+n})),t.length&&!/\d$/.test(e[0])&&(e[0]=e[0]+"0"),e.length>1&&(e[1]=e[1].replace(/0*$/,""),e[1].length||(e.length=1)),this._insertThousandsSeparators(e.join(this.radix))}},{key:"_padFractionalZeros",value:function(t){if(!t)return t;var e=t.split(this.radix);return e.length<2&&e.push(""),e[1]=e[1].padEnd(this.scale,"0"),e.join(this.radix)}},{key:"unmaskedValue",get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,".")},set:function(t){x(l(r.prototype),"unmaskedValue",t.replace(".",this.radix),this,!0)}},{key:"typedValue",get:function(){return Number(this.unmaskedValue)},set:function(t){x(l(r.prototype),"unmaskedValue",String(t),this,!0)}},{key:"number",get:function(){return this.typedValue},set:function(t){this.typedValue=t}},{key:"allowNegative",get:function(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}}]),r}(L);ht.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:["."],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1},B.MaskedNumber=ht;var vt=function(t){u(r,t);var e=m(r);function r(){return i(this,r),e.apply(this,arguments)}return s(r,[{key:"_update",value:function(t){t.mask&&(t.validate=t.mask),g(l(r.prototype),"_update",this).call(this,t)}}]),r}(L);B.MaskedFunction=vt;var mt=function(t){u(r,t);var e=m(r);function r(t){var n;return i(this,r),n=e.call(this,Object.assign({},r.DEFAULTS,t)),n.currentMask=null,n}return s(r,[{key:"_update",value:function(t){g(l(r.prototype),"_update",this).call(this,t),"mask"in t&&(this.compiledMasks=Array.isArray(t.mask)?t.mask.map((function(t){return G(t)})):[])}},{key:"_appendCharRaw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this._applyDispatch(t,e);return this.currentMask&&r.aggregate(this.currentMask._appendChar(t,e)),r}},{key:"_applyDispatch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.tail&&null!=e._beforeTailState?e._beforeTailState._value:this.value,n=this.rawInputValue,i=e.tail&&null!=e._beforeTailState?e._beforeTailState._rawInputValue:n,o=n.slice(i.length),s=this.currentMask,a=new I,u=s&&s.state;if(this.currentMask=this.doDispatch(t,Object.assign({},e)),this.currentMask)if(this.currentMask!==s){if(this.currentMask.reset(),i){var l=this.currentMask.append(i,{raw:!0});a.tailShift=l.inserted.length-r.length}o&&(a.tailShift+=this.currentMask.append(o,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=u;return a}},{key:"_appendPlaceholder",value:function(){var t=this._applyDispatch.apply(this,arguments);return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}},{key:"doDispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatch(t,this,e)}},{key:"doValidate",value:function(){for(var t,e,n=arguments.length,i=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:yt.MASKED,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yt.MASKED,n=G(t);return function(t){return n.runIsolated((function(n){return n[e]=t,n[r]}))}}function bt(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n1?arguments[1]:void 0)}})},"159b":function(t,e,r){var n=r("da84"),i=r("fdbc"),o=r("17c2"),s=r("9112");for(var a in i){var u=n[a],l=u&&u.prototype;if(l&&l.forEach!==o)try{s(l,"forEach",o)}catch(c){l.forEach=o}}},"15fd":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("a4d3"),r("c975"),r("b64b");function n(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n=0||(i[r]=t[r]);return i}function i(t,e){if(null==t)return{};var r,i,o=n(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}},"17c2":function(t,e,r){"use strict";var n=r("b727").forEach,i=r("a640"),o=r("ae40"),s=i("forEach"),a=o("forEach");t.exports=s&&a?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},"19aa":function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},"1a08":function(t,e,r){"use strict";function n(t){return"string"==typeof t?t[0].toUpperCase()+t.substr(1):t}r.d(e,"a",(function(){return o}));var i={accepted:function(t){return"Please accept the "+t.name+"."},after:function(t){var e=t.name,r=t.args;return Array.isArray(r)&&r.length?n(e)+" must be after "+r[0]+".":n(e)+" must be a later date."},alpha:function(t){return n(t.name)+" can only contain alphabetical characters."},alphanumeric:function(t){return n(t.name)+" can only contain letters and numbers."},before:function(t){var e=t.name,r=t.args;return Array.isArray(r)&&r.length?n(e)+" must be before "+r[0]+".":n(e)+" must be an earlier date."},between:function(t){var e=t.name,r=t.value,i=t.args,o=!(!Array.isArray(i)||!i[2])&&i[2];return!isNaN(r)&&"length"!==o||"value"===o?n(e)+" must be between "+i[0]+" and "+i[1]+".":n(e)+" must be between "+i[0]+" and "+i[1]+" characters long."},confirm:function(t){var e=t.name;return t.args,n(e)+" does not match."},date:function(t){var e=t.name,r=t.args;return Array.isArray(r)&&r.length?n(e)+" is not a valid date, please use the format "+r[0]:n(e)+" is not a valid date."},default:function(t){return t.name,"This field isn’t valid."},email:function(t){t.name;var e=t.value;return e?"“"+e+"” is not a valid email address.":"Please enter a valid email address."},endsWith:function(t){t.name;var e=t.value;return e?"“"+e+"” doesn’t end with a valid value.":"This field doesn’t end with a valid value."},in:function(t){var e=t.name,r=t.value;return"string"==typeof r&&r?"“"+n(r)+"” is not an allowed "+e+".":"This is not an allowed "+e+"."},matches:function(t){return n(t.name)+" is not an allowed value."},max:function(t){var e=t.name,r=t.value,i=t.args;if(Array.isArray(r))return"You may only select "+i[0]+" "+e+".";var o=!(!Array.isArray(i)||!i[1])&&i[1];return!isNaN(r)&&"length"!==o||"value"===o?n(e)+" must be less than or equal to "+i[0]+".":n(e)+" must be less than or equal to "+i[0]+" characters long."},mime:function(t){var e=t.name,r=t.args;return n(e)+" must be of the type: "+(r[0]||"No file formats allowed.")},min:function(t){var e=t.name,r=t.value,i=t.args;if(Array.isArray(r))return"You need at least "+i[0]+" "+e+".";var o=!(!Array.isArray(i)||!i[1])&&i[1];return!isNaN(r)&&"length"!==o||"value"===o?n(e)+" must be at least "+i[0]+".":n(e)+" must be at least "+i[0]+" characters long."},not:function(t){var e=t.name;return"“"+t.value+"” is not an allowed "+e+"."},number:function(t){return n(t.name)+" must be a number."},required:function(t){return n(t.name)+" is required."},startsWith:function(t){t.name;var e=t.value;return e?"“"+e+"” doesn’t start with a valid value.":"This field doesn’t start with a valid value."},url:function(t){return t.name,"Please include a valid url."}};function o(t){var e;t.extend({locales:(e={},e.en=i,e)})}},"1be4":function(t,e,r){var n=r("d066");t.exports=n("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,r){var n=r("b622"),i=n("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(u){}return r}},"1cdc":function(t,e,r){var n=r("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},"1d1c":function(t,e,r){var n=r("23e7"),i=r("83ab"),o=r("37e8");n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:o})},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,r){var n=r("d039"),i=r("b622"),o=r("2d00"),s=i("species");t.exports=function(t){return o>=51||!n((function(){var e=[],r=e.constructor={};return r[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},2266:function(t,e,r){var n=r("825a"),i=r("e95a"),o=r("50c4"),s=r("0366"),a=r("35a1"),u=r("9bdd"),l=function(t,e){this.stopped=t,this.result=e},c=t.exports=function(t,e,r,c,f){var d,p,h,v,m,y,g,b=s(e,r,c?2:1);if(f)d=t;else{if(p=a(t),"function"!=typeof p)throw TypeError("Target is not iterable");if(i(p)){for(h=0,v=o(t.length);v>h;h++)if(m=c?b(n(g=t[h])[0],g[1]):b(t[h]),m&&m instanceof l)return m;return new l(!1)}d=p.call(t)}y=d.next;while(!(g=y.call(d)).done)if(m=u(d,b,g.value,c),"object"==typeof m&&m&&m instanceof l)return m;return new l(!1)};c.stop=function(t){return new l(!0,t)}},"23cb":function(t,e,r){var n=r("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},"23e7":function(t,e,r){var n=r("da84"),i=r("06cf").f,o=r("9112"),s=r("6eeb"),a=r("ce4e"),u=r("e893"),l=r("94ca");t.exports=function(t,e){var r,c,f,d,p,h,v=t.target,m=t.global,y=t.stat;if(c=m?n:y?n[v]||a(v,{}):(n[v]||{}).prototype,c)for(f in e){if(p=e[f],t.noTargetGet?(h=i(c,f),d=h&&h.value):d=c[f],r=l(m?f:v+(y?".":"#")+f,t.forced),!r&&void 0!==d){if(typeof p===typeof d)continue;u(p,d)}(t.sham||d&&d.sham)&&o(p,"sham",!0),s(c,f,p,t)}}},"241c":function(t,e,r){var n=r("ca84"),i=r("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},2532:function(t,e,r){"use strict";var n=r("23e7"),i=r("5a34"),o=r("1d80"),s=r("ab13");n({target:"String",proto:!0,forced:!s("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},"25f0":function(t,e,r){"use strict";var n=r("6eeb"),i=r("825a"),o=r("d039"),s=r("ad6d"),a="toString",u=RegExp.prototype,l=u[a],c=o((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=l.name!=a;(c||f)&&n(RegExp.prototype,a,(function(){var t=i(this),e=String(t.source),r=t.flags,n=String(void 0===r&&t instanceof RegExp&&!("flags"in u)?s.call(t):r);return"/"+e+"/"+n}),{unsafe:!0})},2626:function(t,e,r){"use strict";var n=r("d066"),i=r("9bf2"),o=r("b622"),s=r("83ab"),a=o("species");t.exports=function(t){var e=n(t),r=i.f;s&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}},"277d":function(t,e,r){var n=r("23e7"),i=r("e8b5");n({target:"Array",stat:!0},{isArray:i})},2877:function(t,e,r){"use strict";function n(t,e,r,n,i,o,s,a){var u,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=u):i&&(u=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:l}}r.d(e,"a",(function(){return n}))},"2b0e":function(t,e,r){"use strict";r.r(e),function(t){ +/*! + * Vue.js v2.6.11 + * (c) 2014-2019 Evan You + * Released under the MIT License. + */ +var r=Object.freeze({});function n(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function s(t){return!1===t}function a(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function u(t){return null!==t&&"object"===typeof t}var l=Object.prototype.toString;function c(t){return"[object Object]"===l.call(t)}function f(t){return"[object RegExp]"===l.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function h(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var r=Object.create(null),n=t.split(","),i=0;i-1)return t.splice(r,1)}}var b=Object.prototype.hasOwnProperty;function x(t,e){return b.call(t,e)}function _(t){var e=Object.create(null);return function(r){var n=e[r];return n||(e[r]=t(r))}}var w=/-(\w)/g,k=_((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),E=_((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),A=/\B([A-Z])/g,O=_((function(t){return t.replace(A,"-$1").toLowerCase()}));function S(t,e){function r(r){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return r._length=t.length,r}function F(t,e){return t.bind(e)}var C=Function.prototype.bind?F:S;function j(t,e){e=e||0;var r=t.length-e,n=new Array(r);while(r--)n[r]=t[r+e];return n}function P(t,e){for(var r in e)t[r]=e[r];return t}function $(t){for(var e={},r=0;r0,rt=Q&&Q.indexOf("edge/")>0,nt=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),it=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),ot={}.watch,st=!1;if(Z)try{var at={};Object.defineProperty(at,"passive",{get:function(){st=!0}}),window.addEventListener("test-passive",null,at)}catch(ks){}var ut=function(){return void 0===K&&(K=!Z&&!X&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),K},lt=Z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ct(t){return"function"===typeof t&&/native code/.test(t.toString())}var ft,dt="undefined"!==typeof Symbol&&ct(Symbol)&&"undefined"!==typeof Reflect&&ct(Reflect.ownKeys);ft="undefined"!==typeof Set&&ct(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var pt=V,ht=0,vt=function(){this.id=ht++,this.subs=[]};vt.prototype.addSub=function(t){this.subs.push(t)},vt.prototype.removeSub=function(t){g(this.subs,t)},vt.prototype.depend=function(){vt.target&&vt.target.addDep(this)},vt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,r=t.length;e-1)if(o&&!x(i,"default"))s=!1;else if(""===s||s===O(t)){var u=te(String,i.type);(u<0||a0&&(s=Se(s,(e||"")+"_"+r),Oe(s[0])&&Oe(l)&&(c[u]=wt(l.text+s[0].text),s.shift()),c.push.apply(c,s)):a(s)?Oe(l)?c[u]=wt(l.text+s):""!==s&&c.push(wt(s)):Oe(s)&&Oe(l)?c[u]=wt(l.text+s.text):(o(t._isVList)&&i(s.tag)&&n(s.key)&&i(e)&&(s.key="__vlist"+e+"_"+r+"__"),c.push(s)));return c}function Fe(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Ce(t){var e=je(t.$options.inject,t);e&&(Ct(!1),Object.keys(e).forEach((function(r){Dt(t,r,e[r])})),Ct(!0))}function je(t,e){if(t){for(var r=Object.create(null),n=dt?Reflect.ownKeys(t):Object.keys(t),i=0;i0,s=t?!!t.$stable:!o,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&n&&n!==r&&a===n.$key&&!o&&!n.$hasNormal)return n;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=De(e,u,t[u]))}else i={};for(var l in e)l in i||(i[l]=Ie(e,l));return t&&Object.isExtensible(t)&&(t._normalized=i),z(i,"$stable",s),z(i,"$key",a),z(i,"$hasNormal",o),i}function De(t,e,r){var n=function(){var t=arguments.length?r.apply(null,arguments):r({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Ae(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return r.proxy&&Object.defineProperty(t,e,{get:n,enumerable:!0,configurable:!0}),n}function Ie(t,e){return function(){return t[e]}}function Re(t,e){var r,n,o,s,a;if(Array.isArray(t)||"string"===typeof t)for(r=new Array(t.length),n=0,o=t.length;n1?j(r):r;for(var n=j(arguments,1),i='event handler for "'+t+'"',o=0,s=r.length;odocument.createEvent("Event").timeStamp&&(Wr=function(){return Kr.now()})}function Yr(){var t,e;for(qr=Wr(),Hr=!0,Br.sort((function(t,e){return t.id-e.id})),Gr=0;GrGr&&Br[r].id>t.id)r--;Br.splice(r+1,0,t)}else Br.push(t);Ur||(Ur=!0,he(Yr))}}var tn=0,en=function(t,e,r,n,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++tn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ft,this.newDepIds=new ft,this.expression="","function"===typeof e?this.getter=e:(this.getter=W(e),this.getter||(this.getter=V)),this.value=this.lazy?void 0:this.get()};en.prototype.get=function(){var t;yt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(ks){if(!this.user)throw ks;ee(ks,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&me(t),gt(),this.cleanupDeps()}return t},en.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},en.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},en.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Qr(this)},en.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(ks){ee(ks,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},en.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},en.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},en.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rn={enumerable:!0,configurable:!0,get:V,set:V};function nn(t,e,r){rn.get=function(){return this[e][r]},rn.set=function(t){this[e][r]=t},Object.defineProperty(t,r,rn)}function on(t){t._watchers=[];var e=t.$options;e.props&&sn(t,e.props),e.methods&&hn(t,e.methods),e.data?an(t):Vt(t._data={},!0),e.computed&&cn(t,e.computed),e.watch&&e.watch!==ot&&vn(t,e.watch)}function sn(t,e){var r=t.$options.propsData||{},n=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Ct(!1);var s=function(o){i.push(o);var s=Zt(o,e,r,t);Dt(n,o,s),o in t||nn(t,"_props",o)};for(var a in e)s(a);Ct(!0)}function an(t){var e=t.$options.data;e=t._data="function"===typeof e?un(e,t):e||{},c(e)||(e={});var r=Object.keys(e),n=t.$options.props,i=(t.$options.methods,r.length);while(i--){var o=r[i];0,n&&x(n,o)||G(o)||nn(t,"_data",o)}Vt(e,!0)}function un(t,e){yt();try{return t.call(e,e)}catch(ks){return ee(ks,e,"data()"),{}}finally{gt()}}var ln={lazy:!0};function cn(t,e){var r=t._computedWatchers=Object.create(null),n=ut();for(var i in e){var o=e[i],s="function"===typeof o?o:o.get;0,n||(r[i]=new en(t,s||V,V,ln)),i in t||fn(t,i,o)}}function fn(t,e,r){var n=!ut();"function"===typeof r?(rn.get=n?dn(e):pn(r),rn.set=V):(rn.get=r.get?n&&!1!==r.cache?dn(e):pn(r.get):V,rn.set=r.set||V),Object.defineProperty(t,e,rn)}function dn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),vt.target&&e.depend(),e.value}}function pn(t){return function(){return t.call(this,this)}}function hn(t,e){t.$options.props;for(var r in e)t[r]="function"!==typeof e[r]?V:C(e[r],t)}function vn(t,e){for(var r in e){var n=e[r];if(Array.isArray(n))for(var i=0;i-1)return this;var r=j(arguments,1);return r.unshift(this),"function"===typeof t.install?t.install.apply(t,r):"function"===typeof t&&t.apply(null,r),e.push(t),this}}function An(t){t.mixin=function(t){return this.options=Kt(this.options,t),this}}function On(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var r=this,n=r.cid,i=t._Ctor||(t._Ctor={});if(i[n])return i[n];var o=t.name||r.options.name;var s=function(t){this._init(t)};return s.prototype=Object.create(r.prototype),s.prototype.constructor=s,s.cid=e++,s.options=Kt(r.options,t),s["super"]=r,s.options.props&&Sn(s),s.options.computed&&Fn(s),s.extend=r.extend,s.mixin=r.mixin,s.use=r.use,M.forEach((function(t){s[t]=r[t]})),o&&(s.options.components[o]=s),s.superOptions=r.options,s.extendOptions=t,s.sealedOptions=P({},s.options),i[n]=s,s}}function Sn(t){var e=t.options.props;for(var r in e)nn(t.prototype,"_props",r)}function Fn(t){var e=t.options.computed;for(var r in e)fn(t.prototype,r,e[r])}function Cn(t){M.forEach((function(e){t[e]=function(t,r){return r?("component"===e&&c(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===e&&"function"===typeof r&&(r={bind:r,update:r}),this.options[e+"s"][t]=r,r):this.options[e+"s"][t]}}))}function jn(t){return t&&(t.Ctor.options.name||t.tag)}function Pn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function $n(t,e){var r=t.cache,n=t.keys,i=t._vnode;for(var o in r){var s=r[o];if(s){var a=jn(s.componentOptions);a&&!e(a)&&Vn(r,o,n,i)}}}function Vn(t,e,r,n){var i=t[e];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),t[e]=null,g(r,e)}bn(kn),yn(kn),Fr(kn),$r(kn),yr(kn);var Dn=[String,RegExp,Array],In={name:"keep-alive",abstract:!0,props:{include:Dn,exclude:Dn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Vn(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){$n(t,(function(t){return Pn(e,t)}))})),this.$watch("exclude",(function(e){$n(t,(function(t){return!Pn(e,t)}))}))},render:function(){var t=this.$slots.default,e=wr(t),r=e&&e.componentOptions;if(r){var n=jn(r),i=this,o=i.include,s=i.exclude;if(o&&(!n||!Pn(o,n))||s&&n&&Pn(s,n))return e;var a=this,u=a.cache,l=a.keys,c=null==e.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):e.key;u[c]?(e.componentInstance=u[c].componentInstance,g(l,c),l.push(c)):(u[c]=e,l.push(c),this.max&&l.length>parseInt(this.max)&&Vn(u,l[0],l,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Rn={KeepAlive:In};function Tn(t){var e={get:function(){return U}};Object.defineProperty(t,"config",e),t.util={warn:pt,extend:P,mergeOptions:Kt,defineReactive:Dt},t.set=It,t.delete=Rt,t.nextTick=he,t.observable=function(t){return Vt(t),t},t.options=Object.create(null),M.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,Rn),En(t),An(t),On(t),Cn(t)}Tn(kn),Object.defineProperty(kn.prototype,"$isServer",{get:ut}),Object.defineProperty(kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kn,"FunctionalRenderContext",{value:Xe}),kn.version="2.6.11";var Nn=m("style,class"),Bn=m("input,textarea,option,select,progress"),Mn=function(t,e,r){return"value"===r&&Bn(t)&&"button"!==e||"selected"===r&&"option"===t||"checked"===r&&"input"===t||"muted"===r&&"video"===t},Ln=m("contenteditable,draggable,spellcheck"),Un=m("events,caret,typing,plaintext-only"),Hn=function(t,e){return Kn(e)||"false"===e?"false":"contenteditable"===t&&Un(e)?e:"true"},Gn=m("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"),zn="http://www.w3.org/1999/xlink",qn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Wn=function(t){return qn(t)?t.slice(6,t.length):""},Kn=function(t){return null==t||!1===t};function Yn(t){var e=t.data,r=t,n=t;while(i(n.componentInstance))n=n.componentInstance._vnode,n&&n.data&&(e=Zn(n.data,e));while(i(r=r.parent))r&&r.data&&(e=Zn(e,r.data));return Xn(e.staticClass,e.class)}function Zn(t,e){return{staticClass:Jn(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Xn(t,e){return i(t)||i(e)?Jn(t,Qn(e)):""}function Jn(t,e){return t?e?t+" "+e:t:e||""}function Qn(t){return Array.isArray(t)?ti(t):u(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,r="",n=0,o=t.length;n-1?ai[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ai[t]=/HTMLUnknownElement/.test(e.toString())}var li=m("text,number,password,search,email,tel,url");function ci(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function fi(t,e){var r=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&r.setAttribute("multiple","multiple"),r}function di(t,e){return document.createElementNS(ri[t],e)}function pi(t){return document.createTextNode(t)}function hi(t){return document.createComment(t)}function vi(t,e,r){t.insertBefore(e,r)}function mi(t,e){t.removeChild(e)}function yi(t,e){t.appendChild(e)}function gi(t){return t.parentNode}function bi(t){return t.nextSibling}function xi(t){return t.tagName}function _i(t,e){t.textContent=e}function wi(t,e){t.setAttribute(e,"")}var ki=Object.freeze({createElement:fi,createElementNS:di,createTextNode:pi,createComment:hi,insertBefore:vi,removeChild:mi,appendChild:yi,parentNode:gi,nextSibling:bi,tagName:xi,setTextContent:_i,setStyleScope:wi}),Ei={create:function(t,e){Ai(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ai(t,!0),Ai(e))},destroy:function(t){Ai(t,!0)}};function Ai(t,e){var r=t.data.ref;if(i(r)){var n=t.context,o=t.componentInstance||t.elm,s=n.$refs;e?Array.isArray(s[r])?g(s[r],o):s[r]===o&&(s[r]=void 0):t.data.refInFor?Array.isArray(s[r])?s[r].indexOf(o)<0&&s[r].push(o):s[r]=[o]:s[r]=o}}var Oi=new bt("",{},[]),Si=["create","activate","update","remove","destroy"];function Fi(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Ci(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&n(e.asyncFactory.error))}function Ci(t,e){if("input"!==t.tag)return!0;var r,n=i(r=t.data)&&i(r=r.attrs)&&r.type,o=i(r=e.data)&&i(r=r.attrs)&&r.type;return n===o||li(n)&&li(o)}function ji(t,e,r){var n,o,s={};for(n=e;n<=r;++n)o=t[n].key,i(o)&&(s[o]=n);return s}function Pi(t){var e,r,s={},u=t.modules,l=t.nodeOps;for(e=0;ev?(f=n(r[g+1])?null:r[g+1].elm,k(t,f,r,h,g,o)):h>g&&A(e,d,v)}function F(t,e,r,n){for(var o=r;o-1?Ui(t,e,r):Gn(e)?Kn(r)?t.removeAttribute(e):(r="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,r)):Ln(e)?t.setAttribute(e,Hn(e,r)):qn(e)?Kn(r)?t.removeAttributeNS(zn,Wn(e)):t.setAttributeNS(zn,e,r):Ui(t,e,r)}function Ui(t,e,r){if(Kn(r))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==r&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,r)}}var Hi={create:Mi,update:Mi};function Gi(t,e){var r=e.elm,o=e.data,s=t.data;if(!(n(o.staticClass)&&n(o.class)&&(n(s)||n(s.staticClass)&&n(s.class)))){var a=Yn(e),u=r._transitionClasses;i(u)&&(a=Jn(a,Qn(u))),a!==r._prevClass&&(r.setAttribute("class",a),r._prevClass=a)}}var zi,qi={create:Gi,update:Gi},Wi="__r",Ki="__c";function Yi(t){if(i(t[Wi])){var e=tt?"change":"input";t[e]=[].concat(t[Wi],t[e]||[]),delete t[Wi]}i(t[Ki])&&(t.change=[].concat(t[Ki],t.change||[]),delete t[Ki])}function Zi(t,e,r){var n=zi;return function i(){var o=e.apply(null,arguments);null!==o&&Qi(t,i,r,n)}}var Xi=se&&!(it&&Number(it[1])<=53);function Ji(t,e,r,n){if(Xi){var i=qr,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}zi.addEventListener(t,e,st?{capture:r,passive:n}:r)}function Qi(t,e,r,n){(n||zi).removeEventListener(t,e._wrapper||e,r)}function to(t,e){if(!n(t.data.on)||!n(e.data.on)){var r=e.data.on||{},i=t.data.on||{};zi=e.elm,Yi(r),xe(r,i,Ji,Qi,Zi,e.context),zi=void 0}}var eo,ro={create:to,update:to};function no(t,e){if(!n(t.data.domProps)||!n(e.data.domProps)){var r,o,s=e.elm,a=t.data.domProps||{},u=e.data.domProps||{};for(r in i(u.__ob__)&&(u=e.data.domProps=P({},u)),a)r in u||(s[r]="");for(r in u){if(o=u[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),o===a[r])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===r&&"PROGRESS"!==s.tagName){s._value=o;var l=n(o)?"":String(o);io(s,l)&&(s.value=l)}else if("innerHTML"===r&&ii(s.tagName)&&n(s.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML=""+o+"";var c=eo.firstChild;while(s.firstChild)s.removeChild(s.firstChild);while(c.firstChild)s.appendChild(c.firstChild)}else if(o!==a[r])try{s[r]=o}catch(ks){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||so(t,e))}function oo(t,e){var r=!0;try{r=document.activeElement!==t}catch(ks){}return r&&t.value!==e}function so(t,e){var r=t.value,n=t._vModifiers;if(i(n)){if(n.number)return v(r)!==v(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}var ao={create:no,update:no},uo=_((function(t){var e={},r=/;(?![^(]*\))/g,n=/:(.+)/;return t.split(r).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function lo(t){var e=co(t.style);return t.staticStyle?P(t.staticStyle,e):e}function co(t){return Array.isArray(t)?$(t):"string"===typeof t?uo(t):t}function fo(t,e){var r,n={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(r=lo(i.data))&&P(n,r)}(r=lo(t.data))&&P(n,r);var o=t;while(o=o.parent)o.data&&(r=lo(o.data))&&P(n,r);return n}var po,ho=/^--/,vo=/\s*!important$/,mo=function(t,e,r){if(ho.test(e))t.style.setProperty(e,r);else if(vo.test(r))t.style.setProperty(O(e),r.replace(vo,""),"important");else{var n=go(e);if(Array.isArray(r))for(var i=0,o=r.length;i-1?e.split(_o).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var r=" "+(t.getAttribute("class")||"")+" ";r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function ko(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(_o).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var r=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";while(r.indexOf(n)>=0)r=r.replace(n," ");r=r.trim(),r?t.setAttribute("class",r):t.removeAttribute("class")}}function Eo(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&P(e,Ao(t.name||"v")),P(e,t),e}return"string"===typeof t?Ao(t):void 0}}var Ao=_((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Oo=Z&&!et,So="transition",Fo="animation",Co="transition",jo="transitionend",Po="animation",$o="animationend";Oo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Co="WebkitTransition",jo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Po="WebkitAnimation",$o="webkitAnimationEnd"));var Vo=Z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Do(t){Vo((function(){Vo(t)}))}function Io(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),wo(t,e))}function Ro(t,e){t._transitionClasses&&g(t._transitionClasses,e),ko(t,e)}function To(t,e,r){var n=Bo(t,e),i=n.type,o=n.timeout,s=n.propCount;if(!i)return r();var a=i===So?jo:$o,u=0,l=function(){t.removeEventListener(a,c),r()},c=function(e){e.target===t&&++u>=s&&l()};setTimeout((function(){u0&&(r=So,c=s,f=o.length):e===Fo?l>0&&(r=Fo,c=l,f=u.length):(c=Math.max(s,l),r=c>0?s>l?So:Fo:null,f=r?r===So?o.length:u.length:0);var d=r===So&&No.test(n[Co+"Property"]);return{type:r,timeout:c,propCount:f,hasTransform:d}}function Mo(t,e){while(t.length1}function qo(t,e){!0!==e.data.show&&Uo(e)}var Wo=Z?{create:qo,activate:qo,remove:function(t,e){!0!==t.data.show?Ho(t,e):e()}}:{},Ko=[Hi,qi,ro,ao,xo,Wo],Yo=Ko.concat(Bi),Zo=Pi({nodeOps:ki,modules:Yo});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&is(t,"input")}));var Xo={inserted:function(t,e,r,n){"select"===r.tag?(n.elm&&!n.elm._vOptions?_e(r,"postpatch",(function(){Xo.componentUpdated(t,e,r)})):Jo(t,e,r.context),t._vOptions=[].map.call(t.options,es)):("textarea"===r.tag||li(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",rs),t.addEventListener("compositionend",ns),t.addEventListener("change",ns),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,r){if("select"===r.tag){Jo(t,e,r.context);var n=t._vOptions,i=t._vOptions=[].map.call(t.options,es);if(i.some((function(t,e){return!R(t,n[e])}))){var o=t.multiple?e.value.some((function(t){return ts(t,i)})):e.value!==e.oldValue&&ts(e.value,i);o&&is(t,"change")}}}};function Jo(t,e,r){Qo(t,e,r),(tt||rt)&&setTimeout((function(){Qo(t,e,r)}),0)}function Qo(t,e,r){var n=e.value,i=t.multiple;if(!i||Array.isArray(n)){for(var o,s,a=0,u=t.options.length;a-1,s.selected!==o&&(s.selected=o);else if(R(es(s),n))return void(t.selectedIndex!==a&&(t.selectedIndex=a));i||(t.selectedIndex=-1)}}function ts(t,e){return e.every((function(e){return!R(e,t)}))}function es(t){return"_value"in t?t._value:t.value}function rs(t){t.target.composing=!0}function ns(t){t.target.composing&&(t.target.composing=!1,is(t.target,"input"))}function is(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function os(t){return!t.componentInstance||t.data&&t.data.transition?t:os(t.componentInstance._vnode)}var ss={bind:function(t,e,r){var n=e.value;r=os(r);var i=r.data&&r.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&i?(r.data.show=!0,Uo(r,(function(){t.style.display=o}))):t.style.display=n?o:"none"},update:function(t,e,r){var n=e.value,i=e.oldValue;if(!n!==!i){r=os(r);var o=r.data&&r.data.transition;o?(r.data.show=!0,n?Uo(r,(function(){t.style.display=t.__vOriginalDisplay})):Ho(r,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none"}},unbind:function(t,e,r,n,i){i||(t.style.display=t.__vOriginalDisplay)}},as={model:Xo,show:ss},us={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 ls(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ls(wr(e.children)):t}function cs(t){var e={},r=t.$options;for(var n in r.propsData)e[n]=t[n];var i=r._parentListeners;for(var o in i)e[k(o)]=i[o];return e}function fs(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function ds(t){while(t=t.parent)if(t.data.transition)return!0}function ps(t,e){return e.key===t.key&&e.tag===t.tag}var hs=function(t){return t.tag||_r(t)},vs=function(t){return"show"===t.name},ms={name:"transition",props:us,abstract:!0,render:function(t){var e=this,r=this.$slots.default;if(r&&(r=r.filter(hs),r.length)){0;var n=this.mode;0;var i=r[0];if(ds(this.$vnode))return i;var o=ls(i);if(!o)return i;if(this._leaving)return fs(t,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var u=(o.data||(o.data={})).transition=cs(this),l=this._vnode,c=ls(l);if(o.data.directives&&o.data.directives.some(vs)&&(o.data.show=!0),c&&c.data&&!ps(o,c)&&!_r(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var f=c.data.transition=P({},u);if("out-in"===n)return this._leaving=!0,_e(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),fs(t,i);if("in-out"===n){if(_r(o))return l;var d,p=function(){d()};_e(u,"afterEnter",p),_e(u,"enterCancelled",p),_e(f,"delayLeave",(function(t){d=t}))}}return i}}},ys=P({tag:String,moveClass:String},us);delete ys.mode;var gs={props:ys,beforeMount:function(){var t=this,e=this._update;this._update=function(r,n){var i=jr(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,r,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],s=cs(this),a=0;ar)e.push(arguments[r++]);return x[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(b),b},v=function(t){delete x[t]},"process"==u(m)?n=function(t){m.nextTick(k(t))}:g&&g.now?n=function(t){g.now(k(t))}:y&&!d?(i=new y,o=i.port2,i.port1.onmessage=E,n=l(o.postMessage,o,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||a(A)||"file:"===p.protocol?n=_ in f("script")?function(t){c.appendChild(f("script"))[_]=function(){c.removeChild(this),w(t)}}:function(t){setTimeout(k(t),0)}:(n=A,s.addEventListener("message",E,!1))),t.exports={set:h,clear:v}},"2d00":function(t,e,r){var n,i,o=r("da84"),s=r("342f"),a=o.process,u=a&&a.versions,l=u&&u.v8;l?(n=l.split("."),i=n[0]+n[1]):s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(i=n[1]))),t.exports=i&&+i},"342f":function(t,e,r){var n=r("d066");t.exports=n("navigator","userAgent")||""},"35a1":function(t,e,r){var n=r("f5df"),i=r("3f8c"),o=r("b622"),s=o("iterator");t.exports=function(t){if(void 0!=t)return t[s]||t["@@iterator"]||i[n(t)]}},"37e8":function(t,e,r){var n=r("83ab"),i=r("9bf2"),o=r("825a"),s=r("df75");t.exports=n?Object.defineProperties:function(t,e){o(t);var r,n=s(e),a=n.length,u=0;while(a>u)i.f(t,r=n[u++],e[r]);return t}},"3bbe":function(t,e,r){var n=r("861d");t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,r){"use strict";var n=r("6547").charAt,i=r("69f3"),o=r("7dd0"),s="String Iterator",a=i.set,u=i.getterFor(s);o(String,"String",(function(t){a(this,{type:s,string:String(t),index:0})}),(function(){var t,e=u(this),r=e.string,i=e.index;return i>=r.length?{value:void 0,done:!0}:(t=n(r,i),e.index+=t.length,{value:t,done:!1})}))},"3d6f":function(t,e,r){"use strict";var n=r("ee2b"),i=r.n(n);class o{constructor(t,e,r={}){this.input=t,this.fileList=t.files,this.files=[],this.options={mimes:{},...r},this.results=!1,this.context=e,Array.isArray(this.fileList)?this.rehydrateFileList(this.fileList):this.addFileList(this.fileList)}rehydrateFileList(t){const e=t.reduce((t,e)=>{const r=this.options?this.options.fileUrlKey:"url",n=e[r],i=!(!n||-1===n.lastIndexOf("."))&&n.substr(n.lastIndexOf(".")+1),o=this.options.mimes[i]||!1;return t.push(Object.assign({},e,n?{name:n.substr(n.lastIndexOf("/")+1||0),type:e.type?e.type:o,previewData:n}:{})),t},[]);this.results=t,this.addFileList(e)}addFileList(t){for(let e=0;e{t[1](Math.round(100*e.loaded/e.total))}}).then(t=>t.data).catch(e=>t[2](e))}return this.context.uploader(...t)}upload(){return this.results?Promise.resolve(this.results):new Promise((t,e)=>{if(!this.hasUploader)return e(new Error("No uploader has been defined"));Promise.all(this.files.map(t=>t.path?Promise.resolve(t.path):this.getUploader(t.file,e=>{t.progress=e,e>=100&&(t.complete||(t.justFinished=!0,setTimeout(()=>{t.justFinished=!1},this.options.uploadJustCompleteDuration)),t.complete=!0)},e=>{t.progress=0,t.error=e,t.complete=!0},this.options))).then(e=>{this.results=e,t(e)}).catch(t=>{throw new Error(t)})})}removeFile(t){if(this.files=this.files.filter(e=>e.uuid!==t),this.context.performValidation(),window&&this.fileList instanceof FileList){const t=new DataTransfer;this.files.map(e=>t.items.add(e.file)),this.fileList=t.files,this.input.files=this.fileList}}loadPreviews(){this.files.map(t=>{if(!t.previewData&&window&&window.FileReader&&/^image\//.test(t.file.type)){const e=new FileReader;e.onload=e=>Object.assign(t,{previewData:e.target.result}),e.readAsDataURL(t.file)}})}getFileList(){return this.fileList}getFiles(){return this.files}toString(){const t=this.files.length?this.files.length+" files":"empty";return this.results?JSON.stringify(this.results,null," "):`FileUpload(${t})`}}e["a"]=o},"3f8c":function(t,e){t.exports={}},4160:function(t,e,r){"use strict";var n=r("23e7"),i=r("17c2");n({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},"428f":function(t,e,r){var n=r("da84");t.exports=n},"42a7":function(t,e,r){},"44ad":function(t,e,r){var n=r("d039"),i=r("c6b6"),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"44d2":function(t,e,r){var n=r("b622"),i=r("7c73"),o=r("9bf2"),s=n("unscopables"),a=Array.prototype;void 0==a[s]&&o.f(a,s,{configurable:!0,value:i(null)}),t.exports=function(t){a[s][t]=!0}},"44de":function(t,e,r){var n=r("da84");t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},"44e7":function(t,e,r){var n=r("861d"),i=r("c6b6"),o=r("b622"),s=o("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==i(t))}},"45fc":function(t,e,r){"use strict";var n=r("23e7"),i=r("b727").some,o=r("a640"),s=r("ae40"),a=o("some"),u=s("some");n({target:"Array",proto:!0,forced:!a||!u},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},4840:function(t,e,r){var n=r("825a"),i=r("1c0b"),o=r("b622"),s=o("species");t.exports=function(t,e){var r,o=n(t).constructor;return void 0===o||void 0==(r=n(o)[s])?e:i(r)}},4930:function(t,e,r){var n=r("d039");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},"4d64":function(t,e,r){var n=r("fc6a"),i=r("50c4"),o=r("23cb"),s=function(t){return function(e,r,s){var a,u=n(e),l=i(u.length),c=o(s,l);if(t&&r!=r){while(l>c)if(a=u[c++],a!=a)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===r)return t||c||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},"4de4":function(t,e,r){"use strict";var n=r("23e7"),i=r("b727").filter,o=r("1dde"),s=r("ae40"),a=o("filter"),u=s("filter");n({target:"Array",proto:!0,forced:!a||!u},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,r){"use strict";var n=r("0366"),i=r("7b0b"),o=r("9bdd"),s=r("e95a"),a=r("50c4"),u=r("8418"),l=r("35a1");t.exports=function(t){var e,r,c,f,d,p,h=i(t),v="function"==typeof this?this:Array,m=arguments.length,y=m>1?arguments[1]:void 0,g=void 0!==y,b=l(h),x=0;if(g&&(y=n(y,m>2?arguments[2]:void 0,2)),void 0==b||v==Array&&s(b))for(e=a(h.length),r=new v(e);e>x;x++)p=g?y(h[x],x):h[x],u(r,x,p);else for(f=b.call(h),d=f.next,r=new v;!(c=d.call(f)).done;x++)p=g?o(f,y,[c.value,x],!0):c.value,u(r,x,p);return r.length=x,r}},"4ec9":function(t,e,r){"use strict";var n=r("6d61"),i=r("6566");t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},5082:function(t,e,r){"use strict";const n="FormulateInput",i=(t,e)=>({classification:t,component:n+(e||t[0].toUpperCase()+t.substr(1))});var o={...["text","email","number","color","date","hidden","month","password","search","tel","time","url","week","datetime-local"].reduce((t,e)=>({...t,[e]:i("text")}),{}),range:i("slider"),textarea:i("textarea","TextArea"),checkbox:i("box"),radio:i("box"),submit:i("button"),button:i("button"),select:i("select"),file:i("file"),image:i("file"),group:i("group")},s=r("92c9"),a=r.n(s),u=r("3d6f"),l=r("79d7"),c={accepted:function({value:t}){return Promise.resolve(["yes","on","1",1,!0,"true"].includes(t))},after:function({value:t},e=!1){const r=Date.parse(e||new Date),n=Date.parse(t);return Promise.resolve(!isNaN(n)&&n>r)},alpha:function({value:t},e="default"){const r={default:/^[a-zA-ZÀ-ÖØ-öø-ÿĄąĆćĘꣳŃńŚśŹźŻż]+$/,latin:/^[a-zA-Z]+$/},n=r.hasOwnProperty(e)?e:"default";return Promise.resolve(r[n].test(t))},alphanumeric:function({value:t},e="default"){const r={default:/^[a-zA-Z0-9À-ÖØ-öø-ÿĄąĆćĘꣳŃńŚśŹźŻż]+$/,latin:/^[a-zA-Z0-9]+$/},n=r.hasOwnProperty(e)?e:"default";return Promise.resolve(r[n].test(t))},before:function({value:t},e=!1){const r=Date.parse(e||new Date),n=Date.parse(t);return Promise.resolve(!isNaN(n)&&nnull!==e&&null!==r&&!isNaN(e)&&!isNaN(r)&&(!isNaN(t)&&"length"!==n||"value"===n?(t=Number(t),e=Number(e),r=Number(r),t>e&&te&&t.length{const i=e();var o=n;return o||(o=/_confirm$/.test(r)?r.substr(0,r.length-8):r+"_confirm"),i[o]===t})())},date:function({value:t},e=!1){return Promise.resolve((()=>e&&"string"===typeof e?Object(l["l"])(e).test(t):!isNaN(Date.parse(t)))())},email:function({value:t}){const e=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;return Promise.resolve(e.test(t))},endsWith:function({value:t},...e){return Promise.resolve((()=>"string"===typeof t&&e.length?void 0!==e.find(e=>t.endsWith(e)):"string"===typeof t&&0===e.length)())},in:function({value:t},...e){return Promise.resolve(void 0!==e.find(e=>"object"===typeof e?Object(l["n"])(e,t):e===t))},matches:function({value:t},...e){return Promise.resolve(!!e.find(e=>("string"===typeof e&&"/"===e.substr(0,1)&&"/"===e.substr(-1)&&(e=new RegExp(e.substr(1,e.length-2))),e instanceof RegExp?e.test(t):e===t)))},mime:function({value:t},...e){return Promise.resolve((()=>{if(t instanceof u["a"]){const r=t.getFiles();for(let t=0;tArray.isArray(t)?(e=isNaN(e)?e:Number(e),t.length>=e):!isNaN(t)&&"length"!==r||"value"===r?(t=isNaN(t)?t:Number(t),t>=e):("string"===typeof t||"length"===r)&&(t=isNaN(t)?t:t.toString(),t.length>=e))())},max:function({value:t},e=10,r){return Promise.resolve((()=>Array.isArray(t)?(e=isNaN(e)?e:Number(e),t.length<=e):!isNaN(t)&&"length"!==r||"value"===r?(t=isNaN(t)?t:Number(t),t<=e):("string"===typeof t||"length"===r)&&(t=isNaN(t)?t:t.toString(),t.length<=e))())},not:function({value:t},...e){return Promise.resolve(void 0===e.find(e=>"object"===typeof e?Object(l["n"])(e,t):e===t))},number:function({value:t}){return Promise.resolve(!isNaN(t))},required:function({value:t},e=!0){return Promise.resolve((()=>!(e&&!["no","false"].includes(e))||(Array.isArray(t)?!!t.length:t instanceof u["a"]?t.getFiles().length>0:"string"===typeof t?!!t:"object"!==typeof t||!!t&&!!Object.keys(t).length))())},startsWith:function({value:t},...e){return Promise.resolve((()=>"string"===typeof t&&e.length?void 0!==e.find(e=>t.startsWith(e)):"string"===typeof t&&0===e.length)())},url:function({value:t}){return Promise.resolve(a()(t))},bail:function(){return Promise.resolve(!0)},optional:function({value:t}){return Promise.resolve(!Object(l["h"])(t))}};const f="image/";var d={csv:"text/csv",gif:f+"gif",jpg:f+"jpeg",jpeg:f+"jpeg",png:f+"png",pdf:"application/pdf",svg:f+"svg+xml"};const p=["outer","wrapper","label","element","input","help","errors","error","decorator","rangeValue","uploadArea","uploadAreaMask","files","file","fileName","fileRemove","fileProgress","fileUploadError","fileImagePreview","fileProgressInner","grouping","groupRepeatable","groupRepeatableRemove","groupAddMore"],h={hasErrors:t=>t.hasErrors,hasValue:t=>t.hasValue,isValid:t=>t.isValid},v=(t,e)=>{const r=t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),n="file"===r.substr(0,4)?"":"-input",i=["decorator","range-value"].includes(r)?"-element":"",o=`formulate${n}${i}${"outer"!==r?"-"+r:""}`;return"input"===r?[]:[o].concat(m(o,t,e))},m=(t,e,r)=>{const n=[];switch(e){case"label":n.push(`${t}--${r.labelPosition}`);break;case"element":const e="group"===r.classification?"group":r.type;n.push(`${t}--${e}`),"group"===e&&n.push("formulate-input-group");break;case"help":n.push(`${t}--${r.helpPosition}`)}return n},y=(()=>{const t=[""].concat(Object.keys(h).map(t=>Object(l["c"])(t)));return p.reduce((e,r)=>e.concat(t.reduce((t,e)=>(t.push(`${r}${e}Class`),t),[])),[])})();function g(t,e,r){switch(typeof e){case"string":return e;case"function":return e(r,Object(l["a"])(t));case"object":if(Array.isArray(e))return Object(l["a"])(t).concat(e);default:return t}}function b(t,e,r,n){return Object.keys(h).reduce((e,i)=>{if(h[i](n)){const o=`${t}${Object(l["c"])(i)}`,s=o+"Class";if(r[o]){const t="string"===typeof r[o]?Object(l["a"])(r[o]):r[o];e=g(e,t,n)}if(n[s]){const t="string"===typeof n[s]?Object(l["a"])(n[s]):n[o+"Class"];e=g(e,t,n)}}return e},e)}var x=function(t){return p.reduce((e,r)=>Object.assign(e,{[r]:v(r,t)}),{})},_=r("e621"),w=r("1a08"),k=function(t,e,r,n){return new Promise((r,i)=>{const o=(n.fauxUploaderDuration||2e3)*(.5+Math.random()),s=performance.now(),a=()=>setTimeout(()=>{const n=performance.now()-s,i=Math.min(100,Math.round(n/o*100));if(e(i),i>=100)return r({url:"http://via.placeholder.com/350x150.png",name:t.name});a()},20);a()})},E={inheritAttrs:!1,functional:!0,render(t,{props:e,data:r,parent:n,children:i}){var o=n,{name:s,forceWrap:a,context:u,...l}=e;while(o&&"FormulateInput"!==o.$options.name)o=o.$parent;if(!o)return null;if(o.$scopedSlots&&o.$scopedSlots[e.name])return o.$scopedSlots[e.name]({...u,...l});if(Array.isArray(i)&&(i.length>1||a&&i.length>0)){const{name:e,context:n,...o}=r.attrs;return t("div",{...r,attrs:o},i)}return Array.isArray(i)&&1===i.length?i[0]:null}};function A(t,e){if(t&&"object"===typeof t&&!Array.isArray(t)){const{children:r=null,component:n="FormulateInput",depth:i=1,...o}=t,s="FormulateInput"===n?o.type||"text":"",a=o.name||s||"el",u=o.id||`${a}-${i}-${e}`,l=Array.isArray(r)?r.map(t=>Object.assign(t,{depth:i+1})):r;return Object.assign({key:u,depth:i,attrs:o,component:n},l?{children:l}:{})}return null}function O(t,e){return Array.isArray(e)?e.map(e=>{const r=A(e);return t(r.component,{attrs:r.attrs},r.children?O(t,r.children):null)}):e}var S={functional:!0,render:(t,{props:e})=>O(t,e.schema)},F=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("form",{class:t.classes,on:{submit:function(e){return e.preventDefault(),t.formSubmitted(e)}}},[t.schema?r("FormulateSchema",{attrs:{schema:t.schema}}):t._e(),t.hasFormErrorObservers?t._e():r("FormulateErrors",{attrs:{context:t.formContext}}),t._t("default")],2)},C=[],j=(r("99af"),r("4de4"),r("7db0"),r("4160"),r("caad"),r("b0c0"),r("d3b7"),r("2532"),r("159b"),r("ddb0"),r("53ca")),P=r("5530");class ${constructor(t){this.registry=new Map,this.ctx=t}add(t,e){return this.registry.set(t,e),this}remove(t){this.ctx.deps.delete(this.registry.get(t)),this.ctx.deps.forEach(e=>e.delete(t)),this.registry.delete(t);const{[t]:e,...r}=this.ctx.proxy;return this.ctx.proxy=r,this}has(t){return this.registry.has(t)}get(t){return this.registry.get(t)}map(t){const e={};return this.registry.forEach((r,n)=>Object.assign(e,{[n]:t(r,n)})),e}keys(){return Array.from(this.registry.keys())}register(t,e){if(this.registry.has(t))return!1;this.registry.set(t,e);const r=Object(l["g"])(e.$options.propsData,"formulateValue"),n=Object(l["g"])(e.$options.propsData,"value");r||!this.ctx.hasInitialValue||Object(l["h"])(this.ctx.initialValues[t])?!r&&!n||Object(l["n"])(e.proxy,this.ctx.initialValues[t])||this.ctx.setFieldValue(t,e.proxy):e.context.model=this.ctx.initialValues[t],this.childrenShouldShowErrors&&(e.formShouldShowErrors=!0)}reduce(t,e){return this.registry.forEach((r,n)=>{e=t(e,r,n)}),e}dataProps(){return{proxy:{},registry:this,register:this.register.bind(this),deregister:t=>this.remove(t),childrenShouldShowErrors:!1,deps:new Map}}}function V(t){const e=new $(t);return e.dataProps()}function D(){return{hasInitialValue(){return this.formulateValue&&"object"===typeof this.formulateValue||this.values&&"object"===typeof this.values||this.isGrouping&&"object"===typeof this.context.model[this.index]},isVmodeled(){return!!(this.$options.propsData.hasOwnProperty("formulateValue")&&this._events&&Array.isArray(this._events.input)&&this._events.input.length)},initialValues(){return Object(l["g"])(this.$options.propsData,"formulateValue")&&"object"===typeof this.formulateValue?Object.assign({},this.formulateValue):Object(l["g"])(this.$options.propsData,"values")&&"object"===typeof this.values?Object.assign({},this.values):this.isGrouping&&"object"===typeof this.context.model[this.index]?this.context.model[this.index]:{}}}}function I(t=[]){const e={applyInitialValues(){this.hasInitialValue&&(this.proxy=this.initialValues)},setFieldValue(t,e){if(void 0===e){const{[t]:e,...r}=this.proxy;this.proxy=r}else Object.assign(this.proxy,{[t]:e});this.$emit("input",Object.assign({},this.proxy))},valueDeps(t){return Object.keys(this.proxy).reduce((e,r)=>Object.defineProperty(e,r,{enumerable:!0,get:()=>{const e=this.registry.get(r);return this.deps.set(t,this.deps.get(t)||new Set),e&&(this.deps.set(e,this.deps.get(e)||new Set),this.deps.get(e).add(t.name)),this.deps.get(t).add(r),this.proxy[r]}}),Object.create(null))},validateDeps(t){this.deps.has(t)&&this.deps.get(t).forEach(t=>this.registry.has(t)&&this.registry.get(t).performValidation())},hasValidationErrors(){return Promise.all(this.registry.reduce((t,e,r)=>(t.push(e.performValidation()&&e.getValidationErrors()),t),[])).then(t=>t.some(t=>t.hasErrors))},showErrors(){this.childrenShouldShowErrors=!0,this.registry.map(t=>{t.formShouldShowErrors=!0})},hideErrors(){this.childrenShouldShowErrors=!1,this.registry.map(t=>{t.formShouldShowErrors=!1,t.behavioralErrorVisibility=!1})},setValues(t){const e=Array.from(new Set(Object.keys(t).concat(Object.keys(this.proxy))));e.forEach(e=>{Object(l["n"])(t[e],this.proxy[e])||(this.setFieldValue(e,t[e]),this.registry.has(e)&&!Object(l["n"])(t[e],this.registry.get(e).proxy)&&(this.registry.get(e).context.model=t[e]))})}};return Object.keys(e).reduce((r,n)=>t.includes(n)?r:{...r,[n]:e[n]},{})}function R(t,e=[]){const r={formulateSetter:t.setFieldValue,formulateRegister:t.register,formulateDeregister:t.deregister,getFormValues:t.valueDeps,validateDependents:t.validateDeps},n=Object.keys(r).filter(t=>!e.includes(t)).reduce((t,e)=>Object.assign(t,{[e]:r[e]}),{});return n}class T{constructor(t){this.form=t}hasValidationErrors(){return this.form.hasValidationErrors()}values(){return new Promise((t,e)=>{const r=[],n=Object(l["d"])(this.form.proxy);for(const i in n)"object"===typeof this.form.proxy[i]&&this.form.proxy[i]instanceof u["a"]&&r.push(this.form.proxy[i].upload().then(t=>Object.assign(n,{[i]:t})));Promise.all(r).then(()=>t(n)).catch(t=>e(t))})}}var N={provide:function(){return Object(P["a"])(Object(P["a"])({},R(this)),{},{observeErrors:this.addErrorObserver,removeErrorObserver:this.removeErrorObserver,formulateFieldValidation:this.formulateFieldValidation})},name:"FormulateForm",model:{prop:"formulateValue",event:"input"},props:{name:{type:[String,Boolean],default:!1},formulateValue:{type:Object,default:function(){return{}}},values:{type:[Object,Boolean],default:!1},errors:{type:[Object,Boolean],default:!1},formErrors:{type:Array,default:function(){return[]}},schema:{type:[Array,Boolean],default:!1}},data:function(){return Object(P["a"])(Object(P["a"])({},V(this)),{},{formShouldShowErrors:!1,errorObservers:[],namedErrors:[],namedFieldErrors:{}})},computed:Object(P["a"])(Object(P["a"])({},D()),{},{formContext:function(){return{errors:this.mergedFormErrors}},classes:function(){var t={"formulate-form":!0};return this.name&&(t["formulate-form--".concat(this.name)]=!0),t},mergedFormErrors:function(){return this.formErrors.concat(this.namedErrors)},mergedFieldErrors:function(){var t={};if(this.errors)for(var e in this.errors)t[e]=Object(l["a"])(this.errors[e]);for(var r in this.namedFieldErrors)t[r]=Object(l["a"])(this.namedFieldErrors[r]);return t},hasFormErrorObservers:function(){return!!this.errorObservers.filter((function(t){return"form"===t.type})).length}}),watch:{formulateValue:{handler:function(t){this.isVmodeled&&t&&"object"===Object(j["a"])(t)&&this.setValues(t)},deep:!0},mergedFormErrors:function(t){this.errorObservers.filter((function(t){return"form"===t.type})).forEach((function(e){return e.callback(t)}))},mergedFieldErrors:{handler:function(t){this.errorObservers.filter((function(t){return"input"===t.type})).forEach((function(e){return e.callback(t[e.field]||[])}))},immediate:!0}},created:function(){this.$formulate.register(this),this.applyInitialValues()},destroyed:function(){this.$formulate.deregister(this)},methods:Object(P["a"])(Object(P["a"])({},I()),{},{applyErrors:function(t){var e=t.formErrors,r=t.inputErrors;this.namedErrors=e,this.namedFieldErrors=r},addErrorObserver:function(t){this.errorObservers.find((function(e){return t.callback===e.callback}))||(this.errorObservers.push(t),"form"===t.type?t.callback(this.mergedFormErrors):Object(l["g"])(this.mergedFieldErrors,t.field)&&t.callback(this.mergedFieldErrors[t.field]))},removeErrorObserver:function(t){this.errorObservers=this.errorObservers.filter((function(e){return e.callback!==t}))},registerErrorComponent:function(t){this.errorComponents.includes(t)||this.errorComponents.push(t)},formSubmitted:function(){var t=this;this.showErrors();var e=new T(this);return this.$emit("submit-raw",e),e.hasValidationErrors().then((function(t){return t?void 0:e.values()})).then((function(e){if("undefined"!==typeof e)return t.$emit("submit",e),e}))},formulateFieldValidation:function(t){this.$emit("validation",t)}})},B=N,M=r("2877"),L=Object(M["a"])(B,F,C,!1,null,null,null),U=L.exports,H=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.outer,attrs:{"data-classification":t.classification,"data-has-errors":t.hasErrors,"data-is-showing-errors":t.hasVisibleErrors,"data-has-value":t.hasValue,"data-type":t.type}},[r("div",{class:t.context.classes.wrapper},["before"===t.context.labelPosition?t._t("label",[t.context.hasLabel?r(t.context.slotComponents.label,t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.label,!1)):t._e()],null,t.context):t._e(),"before"===t.context.helpPosition?t._t("help",[t.context.help?r(t.context.slotComponents.help,t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.help,!1)):t._e()],null,t.context):t._e(),t._t("element",[r(t.context.component,t._g(t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.component,!1),t.listeners),[t._t("default",null,null,t.context)],2)],null,t.context),"after"===t.context.labelPosition?t._t("label",[t.context.hasLabel?r(t.context.slotComponents.label,t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.label,!1)):t._e()],null,t.context):t._e()],2),"after"===t.context.helpPosition?t._t("help",[t.context.help?r(t.context.slotComponents.help,t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.help,!1)):t._e()],null,t.context):t._e(),t._t("errors",[t.context.disableErrors?t._e():r(t.context.slotComponents.errors,t._b({tag:"component",attrs:{type:"FormulateErrors"===t.context.slotComponents.errors&&"input",context:t.context}},"component",t.context.slotProps.errors,!1))],null,t.context)],2)},G=[],z=(r("c740"),r("277d"),r("d81d"),r("45fc"),r("a434"),r("a9e3"),r("b64b"),r("e25e"),r("3ca3"),r("6b75"));function q(t){if(Array.isArray(t))return Object(z["a"])(t)}r("a4d3"),r("e01a"),r("d28b"),r("a630");function W(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}var K=r("06c5");function Y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z(t){return q(t)||W(t)||Object(K["a"])(t)||Y()}function X(t){if(Array.isArray(t))return t}function J(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done);n=!0)if(r.push(s.value),e&&r.length===e)break}catch(u){i=!0,o=u}finally{try{n||null==a["return"]||a["return"]()}finally{if(i)throw o}}return r}}function Q(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tt(t,e){return X(t)||J(t,e)||Object(K["a"])(t,e)||Q()}var et={context(){return jt.call(this,{addLabel:this.logicalAddLabel,attributes:this.elementAttributes,blurHandler:Ft.bind(this),classification:this.classification,component:this.component,disableErrors:this.disableErrors,errors:this.explicitErrors,formShouldShowErrors:this.formShouldShowErrors,getValidationErrors:this.getValidationErrors.bind(this),hasGivenName:this.hasGivenName,hasValue:this.hasValue,hasLabel:this.label&&"button"!==this.classification,hasValidationErrors:this.hasValidationErrors.bind(this),help:this.help,helpPosition:this.logicalHelpPosition,id:this.id||this.defaultId,isValid:this.isValid,imageBehavior:this.imageBehavior,label:this.label,labelPosition:this.logicalLabelPosition,limit:this.limit===1/0?this.limit:parseInt(this.limit,10),name:this.nameOrFallback,minimum:parseInt(this.minimum,10),performValidation:this.performValidation.bind(this),pseudoProps:this.pseudoProps,preventWindowDrops:this.preventWindowDrops,repeatable:this.repeatable,rootEmit:this.$emit.bind(this),setErrors:this.setErrors.bind(this),showValidationErrors:this.showValidationErrors,slotComponents:this.slotComponents,slotProps:this.slotProps,type:this.type,uploadBehavior:this.uploadBehavior,uploadUrl:this.mergedUploadUrl,uploader:this.uploader||this.$formulate.getUploader(),validationErrors:this.validationErrors,value:this.value,visibleValidationErrors:this.visibleValidationErrors,isSubField:this.isSubField,classes:this.classes,...this.typeContext})},nameOrFallback:mt,hasGivenName:yt,typeContext:nt,elementAttributes:ut,logicalLabelPosition:ct,logicalHelpPosition:ft,mergedUploadUrl:pt,hasValue:gt,visibleValidationErrors:vt,slotComponents:Ot,logicalAddLabel:rt,classes:lt,showValidationErrors:ht,slotProps:St,pseudoProps:ot,isValid:Et,isVmodeled:bt,mergedValidationName:dt,explicitErrors:_t,allErrors:wt,hasVisibleErrors:At,hasErrors:kt,filteredAttributes:at,typeProps:st,listeners:Ct};function rt(){return"boolean"===typeof this.addLabel?"+ "+(this.label||this.name||"Add"):this.addLabel}function nt(){switch(this.classification){case"select":return{options:xt.call(this,this.options),optionGroups:!!this.optionGroups&&Object(l["i"])(this.optionGroups,(t,e)=>xt.call(this,e)),placeholder:this.$attrs.placeholder||!1};case"slider":return{showValue:!!this.showValue};default:return this.options?{options:xt.call(this,this.options)}:{}}}function it(t,e){return Object.keys(t).reduce((r,n)=>{const i=Object(l["b"])(n);return e.includes(i)&&(r[i]=t[n]),r},{})}function ot(){return it(this.localAttributes,y)}function st(){return it(this.localAttributes,this.$formulate.typeProps(this.type))}function at(){const t=Object.keys(this.pseudoProps).concat(Object.keys(this.typeProps));return Object.keys(this.localAttributes).reduce((e,r)=>(t.includes(Object(l["b"])(r))||(e[r]=this.localAttributes[r]),e),{})}function ut(){const t=Object.assign({},this.filteredAttributes);return this.id?t.id=this.id:t.id=this.defaultId,this.hasGivenName&&(t.name=this.name),this.help&&(t["aria-describedby"]=t.id+"-help"),!this.classes.input||Array.isArray(this.classes.input)&&!this.classes.input.length||(t.class=this.classes.input),t}function lt(){return this.$formulate.classes({...this.$props,...this.pseudoProps,classification:this.classification,hasErrors:this.hasVisibleErrors,hasValue:this.hasValue,helpPosition:this.logicalHelpPosition,isValid:this.isValid,labelPosition:this.logicalLabelPosition,type:this.type,value:this.proxy})}function ct(){if(this.labelPosition)return this.labelPosition;switch(this.classification){case"box":return"after";default:return"before"}}function ft(){if(this.helpPosition)return this.helpPosition;switch(this.classification){case"group":return"before";default:return"after"}}function dt(){return this.validationName?this.validationName:"string"===typeof this.name?this.name:this.label?this.label:this.type}function pt(){return this.uploadUrl||this.$formulate.getUploadUrl()}function ht(){return!(!this.showErrors&&!this.formShouldShowErrors)||(!("file"!==this.classification||"live"!==this.uploadBehavior||!Pt.call(this))||this.behavioralErrorVisibility)}function vt(){return this.showValidationErrors&&this.validationErrors.length?this.validationErrors:[]}function mt(){if(!0===this.name&&"button"!==this.classification){const t=this.id||this.elementAttributes.id.replace(/[^0-9]/g,"");return`${this.type}_${t}`}return!1!==this.name&&("button"!==this.classification||!0!==this.name)&&this.name}function yt(){return"boolean"!==typeof this.name}function gt(){const t=this.proxy;return"box"===this.classification&&this.isGrouped?Array.isArray(t)?t.some(t=>t===this.value):this.value===t:!Object(l["h"])(t)}function bt(){return!!(this.$options.propsData.hasOwnProperty("formulateValue")&&this._events&&Array.isArray(this._events.input)&&this._events.input.length)}function xt(t){if(!Array.isArray(t)&&t&&"object"===typeof t){const e=[],r=this;for(const n in t)e.push({value:n,label:t[n],id:`${r.elementAttributes.id}_${n}`});return e}return t}function _t(){return Object(l["a"])(this.errors).concat(this.localErrors).concat(Object(l["a"])(this.error))}function wt(){return this.explicitErrors.concat(Object(l["a"])(this.validationErrors))}function kt(){return!!this.allErrors.length}function Et(){return!this.hasErrors}function At(){return Array.isArray(this.validationErrors)&&this.validationErrors.length&&this.showValidationErrors||!!this.explicitErrors.length}function Ot(){const t=this.$formulate.slotComponent.bind(this.$formulate);return{label:t(this.type,"label"),help:t(this.type,"help"),errors:t(this.type,"errors"),repeatable:t(this.type,"repeatable"),addMore:t(this.type,"addMore"),remove:t(this.type,"remove")}}function St(){const t=this.$formulate.slotProps.bind(this.$formulate);return{label:t(this.type,"label",this.typeProps),help:t(this.type,"help",this.typeProps),errors:t(this.type,"errors",this.typeProps),repeatable:t(this.type,"repeatable",this.typeProps),addMore:t(this.type,"addMore",this.typeProps),remove:t(this.type,"remove",this.typeProps)}}function Ft(){"blur"===this.errorBehavior&&(this.behavioralErrorVisibility=!0)}function Ct(){const{input:t,...e}=this.$listeners;return e}function jt(t){return Object.defineProperty(t,"model",{get:Pt.bind(this),set:$t.bind(this)})}function Pt(){const t=this.isVmodeled?"formulateValue":"proxy";return"checkbox"===this.type&&!Array.isArray(this[t])&&this.options?[]:this[t]||0===this[t]?this[t]:""}function $t(t){let e=!1;Object(l["n"])(t,this.proxy)||(this.proxy=t,e=!0),this.context.name&&"function"===typeof this.formulateSetter&&this.formulateSetter(this.context.name,t),e&&this.$emit("input",t)}var Vt={name:"FormulateInput",inheritAttrs:!1,provide:function(){return{formulateRegisterRule:this.registerRule,formulateRemoveRule:this.removeRule}},inject:{formulateSetter:{default:void 0},formulateFieldValidation:{default:function(){return function(){return{}}}},formulateRegister:{default:void 0},formulateDeregister:{default:void 0},getFormValues:{default:function(){return function(){return{}}}},validateDependents:{default:function(){return function(){}}},observeErrors:{default:void 0},removeErrorObserver:{default:void 0},isSubField:{default:function(){return function(){return!1}}}},model:{prop:"formulateValue",event:"input"},props:{type:{type:String,default:"text"},name:{type:[String,Boolean],default:!0},formulateValue:{default:""},value:{default:!1},options:{type:[Object,Array,Boolean],default:!1},optionGroups:{type:[Object,Boolean],default:!1},id:{type:[String,Boolean,Number],default:!1},label:{type:[String,Boolean],default:!1},labelPosition:{type:[String,Boolean],default:!1},limit:{type:[String,Number],default:1/0,validator:function(t){return 1/0}},minimum:{type:[String,Number],default:0,validator:function(t){return parseInt(t,10)==t}},help:{type:[String,Boolean],default:!1},helpPosition:{type:[String,Boolean],default:!1},isGrouped:{type:Boolean,default:!1},errors:{type:[String,Array,Boolean],default:!1},repeatable:{type:Boolean,default:!1},validation:{type:[String,Boolean,Array],default:!1},validationName:{type:[String,Boolean],default:!1},error:{type:[String,Boolean],default:!1},errorBehavior:{type:String,default:"blur",validator:function(t){return["blur","live","submit"].includes(t)}},showErrors:{type:Boolean,default:!1},imageBehavior:{type:String,default:"preview"},uploadUrl:{type:[String,Boolean],default:!1},uploader:{type:[Function,Object,Boolean],default:!1},uploadBehavior:{type:String,default:"live"},preventWindowDrops:{type:Boolean,default:!0},showValue:{type:[String,Boolean],default:!1},validationMessages:{type:Object,default:function(){return{}}},validationRules:{type:Object,default:function(){return{}}},checked:{type:[String,Boolean],default:!1},disableErrors:{type:Boolean,default:!1},addLabel:{type:[Boolean,String],default:!1}},data:function(){return{defaultId:this.$formulate.nextId(this),localAttributes:{},localErrors:[],proxy:this.getInitialValue(),behavioralErrorVisibility:"live"===this.errorBehavior,formShouldShowErrors:!1,validationErrors:[],pendingValidation:Promise.resolve(),ruleRegistry:[],messageRegistry:{}}},computed:Object(P["a"])(Object(P["a"])({},et),{},{classification:function(){var t=this.$formulate.classify(this.type);return"box"===t&&this.options?"group":t},component:function(){return"group"===this.classification?"FormulateInputGroup":this.$formulate.component(this.type)},parsedValidationRules:function(){var t=this,e={};return Object.keys(this.validationRules).forEach((function(r){e[Object(l["b"])(r)]=t.validationRules[r]})),e},messages:function(){var t=this,e={};return Object.keys(this.validationMessages).forEach((function(r){e[Object(l["b"])(r)]=t.validationMessages[r]})),Object.keys(this.messageRegistry).forEach((function(r){e[Object(l["b"])(r)]=t.messageRegistry[r]})),e}}),watch:{$attrs:{handler:function(t){this.updateLocalAttributes(t)},deep:!0},proxy:function(t,e){this.performValidation(),this.isVmodeled||Object(l["n"])(t,e)||(this.context.model=t),this.validateDependents(this)},formulateValue:function(t,e){this.isVmodeled&&!Object(l["n"])(t,e)&&(this.context.model=t)},showValidationErrors:{handler:function(t){this.$emit("error-visibility",t)},immediate:!0}},created:function(){this.applyInitialValue(),this.formulateRegister&&"function"===typeof this.formulateRegister&&this.formulateRegister(this.nameOrFallback,this),this.applyDefaultValue(),this.disableErrors||"function"!==typeof this.observeErrors||this.observeErrors({callback:this.setErrors,type:"input",field:this.nameOrFallback}),this.updateLocalAttributes(this.$attrs),this.performValidation()},beforeDestroy:function(){this.disableErrors||"function"!==typeof this.removeErrorObserver||this.removeErrorObserver(this.setErrors),"function"===typeof this.formulateDeregister&&this.formulateDeregister(this.nameOrFallback)},methods:{getInitialValue:function(){var t=this.$formulate.classify(this.type);return t="box"===t&&this.options?"group":t,"box"===t&&this.checked?this.value||!0:Object(l["g"])(this.$options.propsData,"value")&&"box"!==t?this.value:Object(l["g"])(this.$options.propsData,"formulateValue")?this.formulateValue:""},applyInitialValue:function(){!Object(l["n"])(this.context.model,this.proxy)&&Object(l["g"])(this.$options.propsData,"options")&&"box"===this.classification&&(this.context.model=this.proxy)},applyDefaultValue:function(){"select"===this.type&&!this.context.placeholder&&Object(l["h"])(this.proxy)&&!this.isVmodeled&&!1===this.value&&this.context.options.length&&(this.context.model=this.context.options[0].value)},updateLocalAttributes:function(t){Object(l["n"])(t,this.localAttributes)||(this.localAttributes=t)},performValidation:function(){var t=this,e=Object(l["k"])(this.validation,this.$formulate.rules(this.parsedValidationRules));return e=this.ruleRegistry.length?this.ruleRegistry.concat(e):e,this.pendingValidation=this.runRules(e).then((function(e){return t.didValidate(e)})),this.pendingValidation},runRules:function(t){var e=this,r=function(t){var r=tt(t,4),n=r[0],i=r[1],o=r[2],s=(r[3],n.apply(void 0,[{value:e.context.model,getFormValues:function(){for(var t=arguments.length,r=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:[],o=n.shift();Array.isArray(o)&&o.length?Promise.all(o.map(r)).then((function(t){return t.filter((function(t){return!!t}))})).then((function(r){return r=Array.isArray(r)?r:[],r.length&&o.bail||!n.length?e(i.concat(r).filter((function(t){return!Object(l["h"])(t)}))):t(n,i.concat(r))})):e([])};n(Object(l["f"])(t))}))},didValidate:function(t){var e=!Object(l["n"])(t,this.validationErrors);if(this.validationErrors=t,e){var r=this.getErrorObject();this.$emit("validation",r),this.formulateFieldValidation&&"function"===typeof this.formulateFieldValidation&&this.formulateFieldValidation(r)}},getMessage:function(t,e){var r=this;return this.getMessageFunc(t)({args:e,name:this.mergedValidationName,value:this.context.model,vm:this,formValues:this.getFormValues(this),getFormValues:function(){for(var t=arguments.length,e=new Array(t),n=0;n3&&void 0!==arguments[3]?arguments[3]:null;this.ruleRegistry.some((function(t){return t[2]===r}))||(this.ruleRegistry.push([t,e,r]),null!==n&&(this.messageRegistry[r]=n))},removeRule:function(t){var e=this.ruleRegistry.findIndex((function(e){return e[2]===t}));e>=0&&(this.ruleRegistry.splice(e,1),delete this.messageRegistry[t])}}},Dt=Vt,It=Object(M["a"])(Dt,H,G,!1,null,null,null),Rt=It.exports,Tt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.visibleErrors.length?r("ul",{class:t.outerClass},t._l(t.visibleErrors,(function(e){return r("li",{key:e,class:t.itemClass,domProps:{textContent:t._s(e)}})})),0):t._e()},Nt=[],Bt=(r("c0b6"),r("6062"),{inject:{observeErrors:{default:!1},removeErrorObserver:{default:!1}},props:{context:{type:Object,default:function(){return{}}},type:{type:String,default:"form"}},data:function(){return{boundSetErrors:this.setErrors.bind(this),localErrors:[]}},computed:{visibleValidationErrors:function(){return Array.isArray(this.context.visibleValidationErrors)?this.context.visibleValidationErrors:[]},errors:function(){return Array.isArray(this.context.errors)?this.context.errors:[]},mergedErrors:function(){return this.errors.concat(this.localErrors)},visibleErrors:function(){return Array.from(new Set(this.mergedErrors.concat(this.visibleValidationErrors))).filter((function(t){return"string"===typeof t}))},outerClass:function(){return"input"===this.type&&this.context.classes?this.context.classes.errors:"formulate-".concat(this.type,"-errors")},itemClass:function(){return"input"===this.type&&this.context.classes?this.context.classes.error:"formulate-".concat(this.type,"-error")}},created:function(){"form"!==this.type||"function"!==typeof this.observeErrors||Array.isArray(this.context.errors)||this.observeErrors({callback:this.boundSetErrors,type:this.type})},destroyed:function(){"form"!==this.type||"function"!==typeof this.removeErrorObserver||Array.isArray(this.context.errors)||this.removeErrorObserver(this.boundSetErrors)},methods:{setErrors:function(t){this.localErrors=Object(l["a"])(t)}}}),Mt=Bt,Lt=Object(M["a"])(Mt,Tt,Nt,!1,null,null,null),Ut=Lt.exports,Ht=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.context.help?r("div",{class:t.context.classes.help,attrs:{id:t.context.id+"-help"},domProps:{textContent:t._s(t.context.help)}}):t._e()},Gt=[],zt={props:{context:{type:Object,required:!0}}},qt=zt,Wt=Object(M["a"])(qt,Ht,Gt,!1,null,null,null),Kt=Wt.exports,Yt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("FormulateSlot",{class:t.context.classes.grouping,attrs:{name:"grouping",context:t.context,"force-wrap":t.context.repeatable}},t._l(t.items,(function(e,n){return r("FormulateRepeatableProvider",{key:e.__id,attrs:{index:n,"set-field-value":function(e,r){return t.setFieldValue(n,e,r)},context:t.context},on:{remove:t.removeItem}},[t._t("default")],2)})),1)},Zt=[],Xt=(r("cb29"),r("13d5"),r("ade3")),Jt={name:"FormulateGrouping",props:{context:{type:Object,required:!0}},provide:function(){return{isSubField:function(){return!0},registerProvider:this.registerProvider,deregisterProvider:this.deregisterProvider}},data:function(){return{providers:[]}},inject:["formulateRegisterRule","formulateRemoveRule"],computed:{items:function(){return Array.isArray(this.context.model)?this.context.repeatable||0!==this.context.model.length?this.context.model.map((function(t){return Object(l["m"])(t,t.__id)})):[Object(l["m"])({})]:new Array(this.context.minimum||1).fill("").map((function(){return Object(l["m"])({})}))},formShouldShowErrors:function(){return this.context.formShouldShowErrors}},watch:{providers:function(){this.formShouldShowErrors&&this.showErrors()},formShouldShowErrors:function(t){t&&this.showErrors()}},created:function(){this.formulateRegisterRule(this.validateGroup.bind(this),[],"formulateGrouping",!0)},destroyed:function(){this.formulateRemoveRule("formulateGrouping")},methods:{getAtIndex:function(t){return"undefined"!==typeof this.context.model[t]&&this.context.model[t].__id?this.context.model[t]:"undefined"!==typeof this.context.model[t]?Object(l["m"])(this.context.model[t]):"undefined"===typeof this.context.model[t]&&"undefined"!==typeof this.items[t]?Object(l["m"])({},this.items[t].__id):Object(l["m"])({})},setFieldValue:function(t,e,r){var n=Array.isArray(this.context.model)?this.context.model:[],i=this.getAtIndex(t),o=Object(l["m"])(Object.assign({},i,Object(Xt["a"])({},e,r)),i.__id);n.splice(t,1,o),this.context.model=n},validateGroup:function(){return Promise.all(this.providers.reduce((function(t,e){return e&&"function"===typeof e.hasValidationErrors&&t.push(e.hasValidationErrors()),t}),[])).then((function(t){return!t.some((function(t){return!!t}))}))},showErrors:function(){this.providers.forEach((function(t){return t&&"function"===typeof t.showErrors&&t.showErrors()}))},removeItem:function(t){Array.isArray(this.context.model)&&this.context.model.length>this.context.minimum?this.context.model.splice(t,1):this.items.length>this.context.minimum&&(this.context.model=new Array(this.items.length-1).fill("").map((function(){return Object(l["m"])({})})))},registerProvider:function(t){this.providers.some((function(e){return e===t}))||this.providers.push(t)},deregisterProvider:function(t){this.providers=this.providers.filter((function(e){return e!==t}))}}},Qt=Jt,te=Object(M["a"])(Qt,Yt,Zt,!1,null,null,null),ee=te.exports,re=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("label",{class:t.context.classes.label,attrs:{for:t.context.id},domProps:{textContent:t._s(t.context.label)}})},ne=[],ie={props:{context:{type:Object,required:!0}}},oe=ie,se=Object(M["a"])(oe,re,ne,!1,null,null,null),ae=se.exports,ue=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.groupAddMore},[r("FormulateInput",{attrs:{type:"button",label:t.context.addLabel,"data-minor":"","data-ghost":""},on:{click:t.addMore}})],1)},le=[],ce={props:{context:{type:Object,required:!0},addMore:{type:Function,required:!0}}},fe=ce,de=Object(M["a"])(fe,ue,le,!1,null,null,null),pe=de.exports,he=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.element,attrs:{"data-type":t.context.type}},["radio"===t.type?r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"radio"},domProps:{value:t.context.value,checked:t._q(t.context.model,t.context.value)},on:{blur:t.context.blurHandler,change:function(e){return t.$set(t.context,"model",t.context.value)}}},"input",t.attributes,!1),t.$listeners)):r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"checkbox"},domProps:{value:t.context.value,checked:Array.isArray(t.context.model)?t._i(t.context.model,t.context.value)>-1:t.context.model},on:{blur:t.context.blurHandler,change:function(e){var r=t.context.model,n=e.target,i=!!n.checked;if(Array.isArray(r)){var o=t.context.value,s=t._i(r,o);n.checked?s<0&&t.$set(t.context,"model",r.concat([o])):s>-1&&t.$set(t.context,"model",r.slice(0,s).concat(r.slice(s+1)))}else t.$set(t.context,"model",i)}}},"input",t.attributes,!1),t.$listeners)),r("label",{tag:"component",class:t.context.classes.decorator,attrs:{for:t.attributes.id}})],1)},ve=[],me={props:{context:{type:Object,required:!0}},computed:{type(){return this.context.type},attributes(){return this.context.attributes||{}},hasValue(){return this.context.hasValue}}},ye={name:"FormulateInputBox",mixins:[me]},ge=ye,be=Object(M["a"])(ge,he,ve,!1,null,null,null),xe=be.exports,_e=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.element,attrs:{"data-type":t.context.type}},["checkbox"===t.type?r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.context.model)?t._i(t.context.model,null)>-1:t.context.model},on:{blur:t.context.blurHandler,change:function(e){var r=t.context.model,n=e.target,i=!!n.checked;if(Array.isArray(r)){var o=null,s=t._i(r,o);n.checked?s<0&&t.$set(t.context,"model",r.concat([o])):s>-1&&t.$set(t.context,"model",r.slice(0,s).concat(r.slice(s+1)))}else t.$set(t.context,"model",i)}}},"input",t.attributes,!1),t.$listeners)):"radio"===t.type?r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"radio"},domProps:{checked:t._q(t.context.model,null)},on:{blur:t.context.blurHandler,change:function(e){return t.$set(t.context,"model",null)}}},"input",t.attributes,!1),t.$listeners)):r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:t.type},domProps:{value:t.context.model},on:{blur:t.context.blurHandler,input:function(e){e.target.composing||t.$set(t.context,"model",e.target.value)}}},"input",t.attributes,!1),t.$listeners))])},we=[],ke={name:"FormulateInputText",mixins:[me]},Ee=ke,Ae=Object(M["a"])(Ee,_e,we,!1,null,null,null),Oe=Ae.exports,Se=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.element,attrs:{"data-type":t.context.type,"data-has-files":t.hasFiles}},[r("div",{class:t.context.classes.uploadArea,attrs:{"data-has-files":t.hasFiles}},[r("input",t._g(t._b({ref:"file",attrs:{"data-is-drag-hover":t.isOver,type:"file"},on:{blur:t.context.blurHandler,change:t.handleFile,dragover:t.handleDragOver,dragleave:t.handleDragLeave}},"input",t.attributes,!1),t.$listeners)),r("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasFiles,expression:"!hasFiles"}],class:t.context.classes.uploadAreaMask}),t.hasFiles?r("FormulateFiles",{attrs:{files:t.context.model,"image-preview":"image"===t.context.type&&"preview"===t.context.imageBehavior,context:t.context}}):t._e()],1)])},Fe=[],Ce=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.fileUploads.length?r("ul",{class:t.context.classes.files},t._l(t.fileUploads,(function(e){return r("li",{key:e.uuid,attrs:{"data-has-error":!!e.error,"data-has-preview":!(!t.imagePreview||!e.previewData)}},[r("div",{class:t.context.classes.file},[t.imagePreview&&e.previewData?r("div",{class:t.context.classes.fileImagePreview},[r("img",{attrs:{src:e.previewData}})]):t._e(),r("div",{class:t.context.classes.fileName,attrs:{title:e.name},domProps:{textContent:t._s(e.name)}}),!1!==e.progress?r("div",{class:t.context.classes.fileProgress,attrs:{"data-just-finished":e.justFinished,"data-is-finished":!e.justFinished&&e.complete}},[r("div",{class:t.context.classes.fileProgressInner,style:{width:e.progress+"%"}})]):t._e(),e.complete&&!e.justFinished||!1===e.progress?r("div",{class:t.context.classes.fileRemove,on:{click:e.removeFile}}):t._e()]),e.error?r("div",{class:t.context.classes.fileUploadError,domProps:{textContent:t._s(e.error)}}):t._e()])})),0):t._e()},je=[],Pe={name:"FormulateFiles",props:{files:{type:u["a"],required:!0},imagePreview:{type:Boolean,default:!1},context:{type:Object,required:!0}},computed:{fileUploads:function(){return this.files.files||[]}},watch:{files:function(){this.imagePreview&&this.files.loadPreviews()}},mounted:function(){this.imagePreview&&this.files.loadPreviews()}},$e=Pe,Ve=Object(M["a"])($e,Ce,je,!1,null,null,null),De=Ve.exports,Ie={name:"FormulateInputFile",components:{FormulateFiles:De},mixins:[me],data:function(){return{isOver:!1}},computed:{hasFiles:function(){return!!(this.context.model instanceof u["a"]&&this.context.model.files.length)}},created:function(){Array.isArray(this.context.model)&&"string"===typeof this.context.model[0][this.$formulate.getFileUrlKey()]&&(this.context.model=this.$formulate.createUpload({files:this.context.model},this.context))},mounted:function(){window&&this.context.preventWindowDrops&&(window.addEventListener("dragover",this.preventDefault),window.addEventListener("drop",this.preventDefault))},destroyed:function(){window&&this.context.preventWindowDrops&&(window.removeEventListener("dragover",this.preventDefault),window.removeEventListener("drop",this.preventDefault))},methods:{preventDefault:function(t){"INPUT"!==t.target.tagName&&"file"!==t.target.getAttribute("type")&&(t=t||event,t.preventDefault())},handleFile:function(){var t=this;this.isOver=!1;var e=this.$refs.file;e.files.length&&(this.context.model=this.$formulate.createUpload(e,this.context),this.$nextTick((function(){return t.attemptImmediateUpload()})))},attemptImmediateUpload:function(){var t=this;"live"===this.context.uploadBehavior&&this.context.model instanceof u["a"]&&this.context.hasValidationErrors().then((function(e){e||t.context.model.upload()}))},handleDragOver:function(t){t.preventDefault(),this.isOver=!0},handleDragLeave:function(t){t.preventDefault(),this.isOver=!1}}},Re=Ie,Te=Object(M["a"])(Re,Se,Fe,!1,null,null,null),Ne=Te.exports,Be=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.groupRepeatable},[r("FormulateSlot",{attrs:{name:"remove",context:t.context,"remove-item":t.removeItem}},[r(t.context.slotComponents.remove,t._b({tag:"component",attrs:{context:t.context,"remove-item":t.removeItem}},"component",t.context.slotProps.remove,!1))],1),t._t("default")],2)},Me=[],Le={props:{context:{type:Object,required:!0},removeItem:{type:Function,required:!0},index:{type:Number,required:!0}}},Ue=Le,He=Object(M["a"])(Ue,Be,Me,!1,null,null,null),Ge=He.exports,ze=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.element,attrs:{"data-is-repeatable":t.context.repeatable}},["grouping"!==t.subType?t._l(t.optionsWithContext,(function(e){return r("FormulateInput",t._b({key:e.id,staticClass:"formulate-input-group-item",attrs:{"disable-errors":!0},on:{blur:t.context.blurHandler},model:{value:t.context.model,callback:function(e){t.$set(t.context,"model",e)},expression:"context.model"}},"FormulateInput",e,!1))})):[r("FormulateGrouping",{attrs:{context:t.context}},[t._t("default")],2),t.canAddMore?r("FormulateSlot",{attrs:{name:"addmore",context:t.context,"add-more":t.addItem}},[r(t.context.slotComponents.addMore,t._b({tag:"component",attrs:{context:t.context,"add-more":t.addItem},on:{add:t.addItem}},"component",t.context.slotProps.addMore,!1))],1):t._e()]],2)},qe=[],We=r("15fd"),Ke={name:"FormulateInputGroup",props:{context:{type:Object,required:!0}},computed:{options:function(){return this.context.options||[]},subType:function(){return"group"===this.context.type?"grouping":"inputs"},optionsWithContext:function(){var t=this,e=this.context,r=e.attributes,n=(r.id,Object(We["a"])(r,["id"])),i=(e.blurHandler,e.classification,e.component,e.getValidationErrors,e.hasLabel,e.hasValidationErrors,e.isSubField,e.isValid,e.labelPosition,e.options,e.performValidation,e.setErrors,e.slotComponents,e.slotProps,e.validationErrors,e.visibleValidationErrors,e.classes,e.showValidationErrors,e.rootEmit,e.help,e.pseudoProps,Object(We["a"])(e,["attributes","blurHandler","classification","component","getValidationErrors","hasLabel","hasValidationErrors","isSubField","isValid","labelPosition","options","performValidation","setErrors","slotComponents","slotProps","validationErrors","visibleValidationErrors","classes","showValidationErrors","rootEmit","help","pseudoProps"]));return this.options.map((function(e){return t.groupItemContext(i,e,n)}))},totalItems:function(){return Array.isArray(this.context.model)?this.context.model.length:this.context.minimum||1},canAddMore:function(){return this.context.repeatable&&this.totalItems-1:t.context.model},on:{blur:t.context.blurHandler,change:function(e){var r=t.context.model,n=e.target,i=!!n.checked;if(Array.isArray(r)){var o=null,s=t._i(r,o);n.checked?s<0&&t.$set(t.context,"model",r.concat([o])):s>-1&&t.$set(t.context,"model",r.slice(0,s).concat(r.slice(s+1)))}else t.$set(t.context,"model",i)}}},"input",t.attributes,!1),t.$listeners)):"radio"===t.type?r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"radio"},domProps:{checked:t._q(t.context.model,null)},on:{blur:t.context.blurHandler,change:function(e){return t.$set(t.context,"model",null)}}},"input",t.attributes,!1),t.$listeners)):r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:t.type},domProps:{value:t.context.model},on:{blur:t.context.blurHandler,input:function(e){e.target.composing||t.$set(t.context,"model",e.target.value)}}},"input",t.attributes,!1),t.$listeners)),t.context.showValue?r("div",{class:t.context.classes.rangeValue,domProps:{textContent:t._s(t.context.model)}}):t._e()])},fr=[],dr={name:"FormulateInputSlider",mixins:[me]},pr=dr,hr=Object(M["a"])(pr,cr,fr,!1,null,null,null),vr=hr.exports,mr=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.element,attrs:{"data-type":"textarea"}},[r("textarea",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],domProps:{value:t.context.model},on:{blur:t.context.blurHandler,input:function(e){e.target.composing||t.$set(t.context,"model",e.target.value)}}},"textarea",t.attributes,!1),t.$listeners))])},yr=[],gr={name:"FormulateInputTextArea",mixins:[me]},br=gr,xr=Object(M["a"])(br,mr,yr,!1,null,null,null),_r=xr.exports,wr=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("FormulateSlot",{attrs:{name:"repeatable",context:t.context,index:t.index,"remove-item":t.removeItem}},[r(t.context.slotComponents.repeatable,t._b({tag:"component",attrs:{context:t.context,index:t.index,"remove-item":t.removeItem}},"component",t.context.slotProps.repeatable,!1),[r("FormulateSlot",{attrs:{context:t.context,index:t.index,name:"default"}})],1)],1)},kr=[],Er={provide:function(){var t=this;return Object(P["a"])(Object(P["a"])({},R(this,["getFormValues"])),{},{formulateSetter:function(e,r){return t.setFieldValue(e,r)}})},inject:{registerProvider:"registerProvider",deregisterProvider:"deregisterProvider"},props:{index:{type:Number,required:!0},context:{type:Object,required:!0},setFieldValue:{type:Function,required:!0}},data:function(){return Object(P["a"])(Object(P["a"])({},V(this)),{},{isGrouping:!0})},computed:Object(P["a"])({},D()),created:function(){this.registerProvider(this)},beforeDestroy:function(){this.deregisterProvider(this)},methods:Object(P["a"])(Object(P["a"])({},I(["setFieldValue"])),{},{removeItem:function(){this.$emit("remove",this.index)}})},Ar=Er,Or=Object(M["a"])(Ar,wr,kr,!1,null,null,null),Sr=Or.exports,Fr=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.context.repeatable?r("a",{class:t.context.classes.groupRepeatableRemove,attrs:{role:"button"},domProps:{textContent:t._s("Remove")},on:{click:function(e){return e.preventDefault(),t.removeItem(e)},keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.removeItem(e)}}}):t._e()},Cr=[],jr={props:{context:{type:Object,required:!0},removeItem:{type:Function,required:!0}}},Pr=jr,$r=Object(M["a"])(Pr,Fr,Cr,!1,null,null,null),Vr=$r.exports;class Dr{constructor(){this.options={},this.defaults={components:{FormulateSlot:E,FormulateForm:U,FormulateHelp:Kt,FormulateLabel:ae,FormulateInput:Rt,FormulateErrors:Ut,FormulateSchema:S,FormulateAddMore:pe,FormulateGrouping:ee,FormulateInputBox:xe,FormulateInputText:Oe,FormulateInputFile:Ne,FormulateRepeatable:Ge,FormulateInputGroup:Xe,FormulateInputButton:nr,FormulateInputSelect:lr,FormulateInputSlider:vr,FormulateInputTextArea:_r,FormulateRepeatableRemove:Vr,FormulateRepeatableProvider:Sr},slotComponents:{label:"FormulateLabel",help:"FormulateHelp",errors:"FormulateErrors",repeatable:"FormulateRepeatable",addMore:"FormulateAddMore",remove:"FormulateRepeatableRemove"},slotProps:{},library:o,rules:c,mimes:d,locale:!1,uploader:k,uploadUrl:!1,fileUrlKey:"url",uploadJustCompleteDuration:1e3,errorHandler:t=>t,plugins:[w["a"]],locales:{},idPrefix:"formulate-",baseClasses:t=>t,coreClasses:x,classes:{}},this.registry=new Map,this.idRegistry={}}install(t,e){t.prototype.$formulate=this,this.options=this.defaults;var r=this.defaults.plugins;for(var n in e&&Array.isArray(e.plugins)&&e.plugins.length&&(r=r.concat(e.plugins)),r.forEach(t=>"function"===typeof t?t(this):null),this.extend(e||{}),this.options.components)t.component(n,this.options.components[n])}nextId(t){const e=!(!t.$route||!t.$route.path)&&t.$route.path,r=e?t.$route.path.replace(/[/\\.\s]/g,"-"):"global";return Object.prototype.hasOwnProperty.call(this.idRegistry,r)||(this.idRegistry[r]=0),`${this.options.idPrefix}${r}-${++this.idRegistry[r]}`}extend(t){if("object"===typeof t)return this.options=this.merge(this.options,t),this;throw new Error("Formulate.extend expects an object, was "+typeof t)}merge(t,e,r=!0){var n={};for(var i in t)e.hasOwnProperty(i)?Object(_["a"])(e[i])&&Object(_["a"])(t[i])?n[i]=this.merge(t[i],e[i],r):r&&Array.isArray(t[i])&&Array.isArray(e[i])?n[i]=t[i].concat(e[i]):n[i]=e[i]:n[i]=t[i];for(var o in e)n.hasOwnProperty(o)||(n[o]=e[o]);return n}classify(t){return this.options.library.hasOwnProperty(t)?this.options.library[t].classification:"unknown"}classes(t){const e=this.options.coreClasses(t),r=this.options.baseClasses(e,t);return Object.keys(r).reduce((e,n)=>{let i=g(r[n],this.options.classes[n],t);return i=g(i,t[n+"Class"],t),i=b(n,i,this.options.classes,t),Object.assign(e,{[n]:i})},{})}typeProps(t){const e=t=>Object.keys(t).reduce((e,r)=>Array.isArray(t[r])?e.concat(t[r]):e,[]),r=e(this.options.slotProps);return this.options.library[t]?r.concat(e(this.options.library[t].slotProps||{})):r}slotProps(t,e,r){let n=Array.isArray(this.options.slotProps[e])?this.options.slotProps[e]:[];const i=this.options.library[t];return i&&i.slotProps&&Array.isArray(i.slotProps[e])&&(n=n.concat(i.slotProps[e])),n.reduce((t,e)=>Object.assign(t,{[e]:r[e]}),{})}component(t){return!!this.options.library.hasOwnProperty(t)&&this.options.library[t].component}slotComponent(t,e){const r=this.options.library[t];return r&&r.slotComponents&&r.slotComponents[e]?r.slotComponents[e]:this.options.slotComponents[e]}rules(t={}){return{...this.options.rules,...t}}i18n(t){if(t.$i18n)switch(typeof t.$i18n.locale){case"string":return t.$i18n.locale;case"function":return t.$i18n.locale()}return!1}getLocale(t){return this.selectedLocale||(this.selectedLocale=[this.options.locale,this.i18n(t),"en"].reduce((t,e)=>{if(t)return t;if(e){const r=Object(l["j"])(e).find(t=>Object(l["g"])(this.options.locales,t));r&&(t=r)}return t},!1)),this.selectedLocale}validationMessage(t,e,r){const n=this.options.locales[this.getLocale(r)];return n.hasOwnProperty(t)?n[t](e):n.hasOwnProperty("default")?n.default(e):"Invalid field value"}register(t){"FormulateForm"===t.$options.name&&t.name&&this.registry.set(t.name,t)}deregister(t){"FormulateForm"===t.$options.name&&t.name&&this.registry.has(t.name)&&this.registry.delete(t.name)}handle(t,e,r=!1){const n=r?t:this.options.errorHandler(t,e);return e&&this.registry.has(e)&&this.registry.get(e).applyErrors({formErrors:Object(l["a"])(n.formErrors),inputErrors:n.inputErrors||{}}),n}reset(t,e={}){this.resetValidation(t),this.setValues(t,e)}submit(t){const e=this.registry.get(t);e.formSubmitted()}resetValidation(t){const e=this.registry.get(t);e.hideErrors(t),e.namedErrors=[],e.namedFieldErrors={}}setValues(t,e){if(e&&!Array.isArray(e)&&"object"===typeof e){const r=this.registry.get(t);r.setValues({...e})}}getUploader(){return this.options.uploader||!1}getUploadUrl(){return this.options.uploadUrl||!1}getFileUrlKey(){return this.options.fileUrlKey||"url"}createUpload(t,e){return new u["a"](t,e,this.options)}}e["a"]=new Dr},"50c4":function(t,e,r){var n=r("a691"),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},5135:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},"53ca":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));r("a4d3"),r("e01a"),r("d28b"),r("d3b7"),r("3ca3"),r("ddb0");function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}},5530:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r("a4d3"),r("4de4"),r("4160"),r("1d1c"),r("7a82"),r("e439"),r("dbb4"),r("b64b"),r("159b");var n=r("ade3");function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;ec){var p,h=l(arguments[c++]),v=f?o(h).concat(f(h)):o(h),m=v.length,y=0;while(m>y)p=v[y++],n&&!d.call(h,p)||(r[p]=h[p])}return r}:c},6547:function(t,e,r){var n=r("a691"),i=r("1d80"),o=function(t){return function(e,r){var o,s,a=String(i(e)),u=n(r),l=a.length;return u<0||u>=l?t?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===l||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},6566:function(t,e,r){"use strict";var n=r("9bf2").f,i=r("7c73"),o=r("e2cc"),s=r("0366"),a=r("19aa"),u=r("2266"),l=r("7dd0"),c=r("2626"),f=r("83ab"),d=r("f183").fastKey,p=r("69f3"),h=p.set,v=p.getterFor;t.exports={getConstructor:function(t,e,r,l){var c=t((function(t,n){a(t,c,e),h(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),f||(t.size=0),void 0!=n&&u(n,t[l],t,r)})),p=v(e),m=function(t,e,r){var n,i,o=p(t),s=y(t,e);return s?s.value=r:(o.last=s={index:i=d(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),f?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},y=function(t,e){var r,n=p(t),i=d(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==e)return r};return o(c.prototype,{clear:function(){var t=this,e=p(t),r=e.index,n=e.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:t.size=0},delete:function(t){var e=this,r=p(e),n=y(e,t);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),f?r.size--:e.size--}return!!n},forEach:function(t){var e,r=p(this),n=s(t,arguments.length>1?arguments[1]:void 0,3);while(e=e?e.next:r.first){n(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!y(this,t)}}),o(c.prototype,r?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),f&&n(c.prototype,"size",{get:function(){return p(this).size}}),c},setStrong:function(t,e,r){var n=e+" Iterator",i=v(e),o=v(n);l(t,e,(function(t,e){h(this,{type:n,target:t,state:i(t),kind:e,last:void 0})}),(function(){var t=o(this),e=t.kind,r=t.last;while(r&&r.removed)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),c(e)}}},"65f0":function(t,e,r){var n=r("861d"),i=r("e8b5"),o=r("b622"),s=o("species");t.exports=function(t,e){var r;return i(t)&&(r=t.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)?n(r)&&(r=r[s],null===r&&(r=void 0)):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},"69f3":function(t,e,r){var n,i,o,s=r("7f9a"),a=r("da84"),u=r("861d"),l=r("9112"),c=r("5135"),f=r("f772"),d=r("d012"),p=a.WeakMap,h=function(t){return o(t)?i(t):n(t,{})},v=function(t){return function(e){var r;if(!u(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}};if(s){var m=new p,y=m.get,g=m.has,b=m.set;n=function(t,e){return b.call(m,t,e),e},i=function(t){return y.call(m,t)||{}},o=function(t){return g.call(m,t)}}else{var x=f("state");d[x]=!0,n=function(t,e){return l(t,x,e),e},i=function(t){return c(t,x)?t[x]:{}},o=function(t){return c(t,x)}}t.exports={set:n,get:i,has:o,enforce:h,getterFor:v}},"6b75":function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0===t.indexOf(e)||/[_-]/.test(t[t.indexOf(e)-1])?e:e.toUpperCase().replace(/[_-]/,"")):t}function a(t){return"string"===typeof t?t[0].toUpperCase()+t.substr(1):t}function u(t){return t?"string"===typeof t?[t]:Array.isArray(t)?t:"object"===typeof t?Object.values(t):[]:[]}function l(t,e){return"string"===typeof t?l(t.split("|"),e):Array.isArray(t)?t.map(t=>c(t,e)).filter(t=>!!t):[]}function c(t,e){if("function"===typeof t)return[t,[]];if(Array.isArray(t)&&t.length){t=t.map(t=>t);const[r,n]=f(t.shift());if("string"===typeof r&&e.hasOwnProperty(r))return[e[r],t,r,n];if("function"===typeof r)return[r,t,r,n]}if("string"===typeof t&&t){const r=t.split(":"),[n,i]=f(r.shift());if(e.hasOwnProperty(n))return[e[n],r.length?r.join(":").split(","):[],n,i];throw new Error("Unknown validation rule "+t)}return!1}function f(t){return/^[\^]/.test(t.charAt(0))?[s(t.substr(1)),t.charAt(0)]:[s(t),null]}function d(t){const e=[],r=t.findIndex(([,,t])=>"bail"===t.toLowerCase()),n=t.findIndex(([,,t])=>"optional"===t.toLowerCase());if(n>=0){const r=t.splice(n,1);e.push(Object.defineProperty(r,"bail",{value:!0}))}if(r>=0){const n=t.splice(0,r+1).slice(0,-1);n.length&&e.push(n),t.map(t=>e.push(Object.defineProperty([t],"bail",{value:!0})))}else e.push(t);return e.reduce((t,e)=>{const r=(t,e=!1)=>{if(t.length<2)return Object.defineProperty([t],"bail",{value:e});const n=[],i=t.findIndex(([,,,t])=>"^"===t);if(i>=0){const o=t.splice(0,i);o.length&&n.push(...r(o,e)),n.push(Object.defineProperty([t.shift()],"bail",{value:!0})),t.length&&n.push(...r(t,e))}else n.push(t);return n};return t.concat(r(e))},[])}function p(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function h(t){let e=`^${p(t)}$`;const r={MM:"(0[1-9]|1[012])",M:"([1-9]|1[012])",DD:"([012][0-9]|3[01])",D:"([012]?[1-9]|3[01])",YYYY:"\\d{4}",YY:"\\d{2}"};return new RegExp(Object.keys(r).reduce((t,e)=>t.replace(e,r[e]),e))}function v(t){switch(typeof t){case"symbol":case"number":case"string":case"boolean":case"undefined":return!0;default:return null===t}}function m(t){if("object"!==typeof t)return t;const e=Array.isArray(t),r=e?[]:{};for(const i in t)t[i]instanceof n["a"]||v(t[i])?r[i]=t[i]:r[i]=m(t[i]);return r}function y(t){const e=t.split("-");return e.reduce((t,e)=>(t.length&&t.unshift(`${t[0]}-${e}`),t.length?t:[e]),[])}function g(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function b(t,e){return Object.defineProperty(t,"__id",Object.assign(Object.create(null),{value:e||Symbol("uuid")}))}function x(t){return"number"!==typeof t&&(void 0===t||""===t||null===t||!1===t||Array.isArray(t)&&!t.some(t=>!x(t))||t&&!Array.isArray(t)&&"object"===typeof t&&x(Object.values(t)))}},"7a82":function(t,e,r){var n=r("23e7"),i=r("83ab"),o=r("9bf2");n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:o.f})},"7b0b":function(t,e,r){var n=r("1d80");t.exports=function(t){return Object(n(t))}},"7c73":function(t,e,r){var n,i=r("825a"),o=r("37e8"),s=r("7839"),a=r("d012"),u=r("1be4"),l=r("cc12"),c=r("f772"),f=">",d="<",p="prototype",h="script",v=c("IE_PROTO"),m=function(){},y=function(t){return d+h+f+t+d+"/"+h+f},g=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=l("iframe"),r="java"+h+":";return e.style.display="none",u.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},x=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}x=n?g(n):b();var t=s.length;while(t--)delete x[p][s[t]];return x()};a[v]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(m[p]=i(t),r=new m,m[p]=null,r[v]=t):r=x(),void 0===e?r:o(r,e)}},"7db0":function(t,e,r){"use strict";var n=r("23e7"),i=r("b727").find,o=r("44d2"),s=r("ae40"),a="find",u=!0,l=s(a);a in[]&&Array(1)[a]((function(){u=!1})),n({target:"Array",proto:!0,forced:u||!l},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},"7dd0":function(t,e,r){"use strict";var n=r("23e7"),i=r("9ed3"),o=r("e163"),s=r("d2bb"),a=r("d44e"),u=r("9112"),l=r("6eeb"),c=r("b622"),f=r("c430"),d=r("3f8c"),p=r("ae93"),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,m=c("iterator"),y="keys",g="values",b="entries",x=function(){return this};t.exports=function(t,e,r,c,p,_,w){i(r,e,c);var k,E,A,O=function(t){if(t===p&&P)return P;if(!v&&t in C)return C[t];switch(t){case y:return function(){return new r(this,t)};case g:return function(){return new r(this,t)};case b:return function(){return new r(this,t)}}return function(){return new r(this)}},S=e+" Iterator",F=!1,C=t.prototype,j=C[m]||C["@@iterator"]||p&&C[p],P=!v&&j||O(p),$="Array"==e&&C.entries||j;if($&&(k=o($.call(new t)),h!==Object.prototype&&k.next&&(f||o(k)===h||(s?s(k,h):"function"!=typeof k[m]&&u(k,m,x)),a(k,S,!0,!0),f&&(d[S]=x))),p==g&&j&&j.name!==g&&(F=!0,P=function(){return j.call(this)}),f&&!w||C[m]===P||u(C,m,P),d[e]=P,p)if(E={values:O(g),keys:_?P:O(y),entries:O(b)},w)for(A in E)(v||F||!(A in C))&&l(C,A,E[A]);else n({target:e,proto:!0,forced:v||F},E);return E}},"7f9a":function(t,e,r){var n=r("da84"),i=r("8925"),o=n.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"81d5":function(t,e,r){"use strict";var n=r("7b0b"),i=r("23cb"),o=r("50c4");t.exports=function(t){var e=n(this),r=o(e.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,r),u=s>2?arguments[2]:void 0,l=void 0===u?r:i(u,r);while(l>a)e[a++]=t;return e}},"825a":function(t,e,r){var n=r("861d");t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,r){var n=r("d039");t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,r){"use strict";var n=r("c04e"),i=r("9bf2"),o=r("5c6c");t.exports=function(t,e,r){var s=n(e);s in t?i.f(t,s,o(0,r)):t[s]=r}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8925:function(t,e,r){var n=r("c6cd"),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return i.call(t)}),t.exports=n.inspectSource},"90e3":function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},9112:function(t,e,r){var n=r("83ab"),i=r("9bf2"),o=r("5c6c");t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},"92c9":function(t,e){t.exports=o;var r=/^(?:\w+:)?\/\/(\S+)$/,n=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,i=/^[^\s\.]+\.\S{2,}$/;function o(t){if("string"!==typeof t)return!1;var e=t.match(r);if(!e)return!1;var o=e[1];return!!o&&!(!n.test(o)&&!i.test(o))}},"94ca":function(t,e,r){var n=r("d039"),i=/#|\.prototype\./,o=function(t,e){var r=a[s(t)];return r==l||r!=u&&("function"==typeof e?n(e):!!e)},s=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},"99af":function(t,e,r){"use strict";var n=r("23e7"),i=r("d039"),o=r("e8b5"),s=r("861d"),a=r("7b0b"),u=r("50c4"),l=r("8418"),c=r("65f0"),f=r("1dde"),d=r("b622"),p=r("2d00"),h=d("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",y=p>=51||!i((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),g=f("concat"),b=function(t){if(!s(t))return!1;var e=t[h];return void 0!==e?!!e:o(t)},x=!y||!g;n({target:"Array",proto:!0,forced:x},{concat:function(t){var e,r,n,i,o,s=a(this),f=c(s,0),d=0;for(e=-1,n=arguments.length;ev)throw TypeError(m);for(r=0;r=v)throw TypeError(m);l(f,d++,o)}return f.length=d,f}})},"9bdd":function(t,e,r){var n=r("825a");t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(s){var o=t["return"];throw void 0!==o&&n(o.call(t)),s}}},"9bf2":function(t,e,r){var n=r("83ab"),i=r("0cfb"),o=r("825a"),s=r("c04e"),a=Object.defineProperty;e.f=n?a:function(t,e,r){if(o(t),e=s(e,!0),o(r),i)try{return a(t,e,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},"9ed3":function(t,e,r){"use strict";var n=r("ae93").IteratorPrototype,i=r("7c73"),o=r("5c6c"),s=r("d44e"),a=r("3f8c"),u=function(){return this};t.exports=function(t,e,r){var l=e+" Iterator";return t.prototype=i(n,{next:o(1,r)}),s(t,l,!1,!0),a[l]=u,t}},a434:function(t,e,r){"use strict";var n=r("23e7"),i=r("23cb"),o=r("a691"),s=r("50c4"),a=r("7b0b"),u=r("65f0"),l=r("8418"),c=r("1dde"),f=r("ae40"),d=c("splice"),p=f("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,v=Math.min,m=9007199254740991,y="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!d||!p},{splice:function(t,e){var r,n,c,f,d,p,g=a(this),b=s(g.length),x=i(t,b),_=arguments.length;if(0===_?r=n=0:1===_?(r=0,n=b-x):(r=_-2,n=v(h(o(e),0),b-x)),b+r-n>m)throw TypeError(y);for(c=u(g,n),f=0;fb-n+r;f--)delete g[f-1]}else if(r>n)for(f=b-n;f>x;f--)d=f+n-1,p=f+r-1,d in g?g[p]=g[d]:delete g[p];for(f=0;fo)i.push(arguments[o++]);if(n=e,(p(e)||void 0!==t)&&!at(t))return d(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!at(e))return e}),i[1]=e,W.apply(null,i)}})}q[L][U]||S(q[L],U,q[L].valueOf),R(q,M),P[B]=!0},a630:function(t,e,r){var n=r("23e7"),i=r("4df4"),o=r("1c7e"),s=!o((function(t){Array.from(t)}));n({target:"Array",stat:!0,forced:s},{from:i})},a640:function(t,e,r){"use strict";var n=r("d039");t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},a79d:function(t,e,r){"use strict";var n=r("23e7"),i=r("c430"),o=r("fea9"),s=r("d039"),a=r("d066"),u=r("4840"),l=r("cdf9"),c=r("6eeb"),f=!!o&&s((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));n({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(t){var e=u(this,a("Promise")),r="function"==typeof t;return this.then(r?function(r){return l(e,t()).then((function(){return r}))}:t,r?function(r){return l(e,t()).then((function(){throw r}))}:t)}}),i||"function"!=typeof o||o.prototype["finally"]||c(o.prototype,"finally",a("Promise").prototype["finally"])},a9e3:function(t,e,r){"use strict";var n=r("83ab"),i=r("da84"),o=r("94ca"),s=r("6eeb"),a=r("5135"),u=r("c6b6"),l=r("7156"),c=r("c04e"),f=r("d039"),d=r("7c73"),p=r("241c").f,h=r("06cf").f,v=r("9bf2").f,m=r("58a8").trim,y="Number",g=i[y],b=g.prototype,x=u(d(b))==y,_=function(t){var e,r,n,i,o,s,a,u,l=c(t,!1);if("string"==typeof l&&l.length>2)if(l=m(l),e=l.charCodeAt(0),43===e||45===e){if(r=l.charCodeAt(2),88===r||120===r)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(o=l.slice(2),s=o.length,a=0;ai)return NaN;return parseInt(o,n)}return+l};if(o(y,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var w,k=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof k&&(x?f((function(){b.valueOf.call(r)})):u(r)!=y)?l(new g(_(e)),r,k):_(e)},E=n?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),A=0;E.length>A;A++)a(g,w=E[A])&&!a(k,w)&&v(k,w,h(g,w));k.prototype=b,b.constructor=k,s(i,y,k)}},ab13:function(t,e,r){var n=r("b622"),i=n("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[i]=!1,"/./"[t](e)}catch(n){}}return!1}},ad6d:function(t,e,r){"use strict";var n=r("825a");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},ade3:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));r("7a82");function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},ae40:function(t,e,r){var n=r("83ab"),i=r("d039"),o=r("5135"),s=Object.defineProperty,a={},u=function(t){throw t};t.exports=function(t,e){if(o(a,t))return a[t];e||(e={});var r=[][t],l=!!o(e,"ACCESSORS")&&e.ACCESSORS,c=o(e,0)?e[0]:u,f=o(e,1)?e[1]:void 0;return a[t]=!!r&&!i((function(){if(l&&!n)return!0;var t={length:-1};l?s(t,1,{enumerable:!0,get:u}):t[1]=1,r.call(t,c,f)}))}},ae93:function(t,e,r){"use strict";var n,i,o,s=r("e163"),a=r("9112"),u=r("5135"),l=r("b622"),c=r("c430"),f=l("iterator"),d=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=s(s(o)),i!==Object.prototype&&(n=i)):d=!0),void 0==n&&(n={}),c||u(n,f)||a(n,f,p),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},b041:function(t,e,r){"use strict";var n=r("00ee"),i=r("f5df");t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(t,e,r){var n=r("83ab"),i=r("9bf2").f,o=Function.prototype,s=o.toString,a=/^\s*function ([^ (]*)/,u="name";n&&!(u in o)&&i(o,u,{configurable:!0,get:function(){try{return s.call(this).match(a)[1]}catch(t){return""}}})},b575:function(t,e,r){var n,i,o,s,a,u,l,c,f=r("da84"),d=r("06cf").f,p=r("c6b6"),h=r("2cf4").set,v=r("1cdc"),m=f.MutationObserver||f.WebKitMutationObserver,y=f.process,g=f.Promise,b="process"==p(y),x=d(f,"queueMicrotask"),_=x&&x.value;_||(n=function(){var t,e;b&&(t=y.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(r){throw i?s():o=void 0,r}}o=void 0,t&&t.enter()},b?s=function(){y.nextTick(n)}:m&&!v?(a=!0,u=document.createTextNode(""),new m(n).observe(u,{characterData:!0}),s=function(){u.data=a=!a}):g&&g.resolve?(l=g.resolve(void 0),c=l.then,s=function(){c.call(l,n)}):s=function(){h.call(f,n)}),t.exports=_||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,s()),o=e}},b622:function(t,e,r){var n=r("da84"),i=r("5692"),o=r("5135"),s=r("90e3"),a=r("4930"),u=r("fdbf"),l=i("wks"),c=n.Symbol,f=u?c:c&&c.withoutSetter||s;t.exports=function(t){return o(l,t)||(a&&o(c,t)?l[t]=c[t]:l[t]=f("Symbol."+t)),l[t]}},b64b:function(t,e,r){var n=r("23e7"),i=r("7b0b"),o=r("df75"),s=r("d039"),a=s((function(){o(1)}));n({target:"Object",stat:!0,forced:a},{keys:function(t){return o(i(t))}})},b727:function(t,e,r){var n=r("0366"),i=r("44ad"),o=r("7b0b"),s=r("50c4"),a=r("65f0"),u=[].push,l=function(t){var e=1==t,r=2==t,l=3==t,c=4==t,f=6==t,d=5==t||f;return function(p,h,v,m){for(var y,g,b=o(p),x=i(b),_=n(h,v,3),w=s(x.length),k=0,E=m||a,A=e?E(p,w):r?E(p,0):void 0;w>k;k++)if((d||k in x)&&(y=x[k],g=_(y,k,b),t))if(e)A[k]=g;else if(g)switch(t){case 3:return!0;case 5:return y;case 6:return k;case 2:u.call(A,y)}else if(c)return!1;return f?-1:l||c?c:A}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},b85c:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("a4d3"),r("e01a"),r("d28b"),r("277d"),r("d3b7"),r("3ca3"),r("ddb0");var n=r("06c5");function i(t,e){var r;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=Object(n["a"])(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,s=t},f:function(){try{a||null==r["return"]||r["return"]()}finally{if(u)throw s}}}}},bb2f:function(t,e,r){var n=r("d039");t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bee2:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("7a82");function n(t,e){for(var r=0;r>>0||(a.test(r)?16:10))}:s},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},c6cd:function(t,e,r){var n=r("da84"),i=r("ce4e"),o="__core-js_shared__",s=n[o]||i(o,{});t.exports=s},c740:function(t,e,r){"use strict";var n=r("23e7"),i=r("b727").findIndex,o=r("44d2"),s=r("ae40"),a="findIndex",u=!0,l=s(a);a in[]&&Array(1)[a]((function(){u=!1})),n({target:"Array",proto:!0,forced:u||!l},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},c975:function(t,e,r){"use strict";var n=r("23e7"),i=r("4d64").indexOf,o=r("a640"),s=r("ae40"),a=[].indexOf,u=!!a&&1/[1].indexOf(1,-0)<0,l=o("indexOf"),c=s("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:u||!l||!c},{indexOf:function(t){return u?a.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},ca84:function(t,e,r){var n=r("5135"),i=r("fc6a"),o=r("4d64").indexOf,s=r("d012");t.exports=function(t,e){var r,a=i(t),u=0,l=[];for(r in a)!n(s,r)&&n(a,r)&&l.push(r);while(e.length>u)n(a,r=e[u++])&&(~o(l,r)||l.push(r));return l}},caad:function(t,e,r){"use strict";var n=r("23e7"),i=r("4d64").includes,o=r("44d2"),s=r("ae40"),a=s("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:!a},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cb29:function(t,e,r){var n=r("23e7"),i=r("81d5"),o=r("44d2");n({target:"Array",proto:!0},{fill:i}),o("fill")},cc12:function(t,e,r){var n=r("da84"),i=r("861d"),o=n.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},cca6:function(t,e,r){var n=r("23e7"),i=r("60da");n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cdf9:function(t,e,r){var n=r("825a"),i=r("861d"),o=r("f069");t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t),s=r.resolve;return s(e),r.promise}},ce4e:function(t,e,r){var n=r("da84"),i=r("9112");t.exports=function(t,e){try{i(n,t,e)}catch(r){n[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,r){var n=r("428f"),i=r("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(i[t]):n[t]&&n[t][e]||i[t]&&i[t][e]}},d1e7:function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},d28b:function(t,e,r){var n=r("746f");n("iterator")},d2bb:function(t,e,r){var n=r("825a"),i=r("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(r,[]),e=r instanceof Array}catch(o){}return function(r,o){return n(r),i(o),e?t.call(r,o):r.__proto__=o,r}}():void 0)},d3b7:function(t,e,r){var n=r("00ee"),i=r("6eeb"),o=r("b041");n||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(t,e,r){var n=r("9bf2").f,i=r("5135"),o=r("b622"),s=o("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,s)&&n(t,s,{configurable:!0,value:e})}},d4ec:function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,"a",(function(){return n}))},d58f:function(t,e,r){var n=r("1c0b"),i=r("7b0b"),o=r("44ad"),s=r("50c4"),a=function(t){return function(e,r,a,u){n(r);var l=i(e),c=o(l),f=s(l.length),d=t?f-1:0,p=t?-1:1;if(a<2)while(1){if(d in c){u=c[d],d+=p;break}if(d+=p,t?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=p)d in c&&(u=r(u,c[d],d,l));return u}};t.exports={left:a(!1),right:a(!0)}},d644:function(t,e,r){"use strict";var n=r("92c9"),i=r.n(n),o=r("ee2b"),s=r.n(o),a=r("e621"),u=r("1a08"),l=function(t,e){return{classification:t,component:"FormulateInput"+(e||t[0].toUpperCase()+t.substr(1))}},c=Object.assign({},["text","email","number","color","date","hidden","month","password","search","tel","time","url","week","datetime-local"].reduce((function(t,e){var r;return Object.assign({},t,((r={})[e]=l("text"),r))}),{}),{range:l("slider"),textarea:l("textarea","TextArea"),checkbox:l("box"),radio:l("box"),submit:l("button"),button:l("button"),select:l("select"),file:l("file"),image:l("file"),group:l("group")}),f=function(t,e,r){void 0===r&&(r={}),this.input=t,this.fileList=t.files,this.files=[],this.options=Object.assign({},{mimes:{}},r),this.results=!1,this.context=e,Array.isArray(this.fileList)?this.rehydrateFileList(this.fileList):this.addFileList(this.fileList)};function d(t,e){var r={};for(var n in t)r[n]=e(n,t[n]);return r}function p(t,e){if(t===e)return!0;if(!t||!e)return!1;var r=Object.keys(t),n=Object.keys(e),i=r.length;if(n.length!==i)return!1;for(var o=0;o=100&&(e.complete||(e.justFinished=!0,setTimeout((function(){e.justFinished=!1}),t.options.uploadJustCompleteDuration)),e.complete=!0)}),(function(t){e.progress=0,e.error=t,e.complete=!0}),t.options)}))).then((function(r){t.results=r,e(r)})).catch((function(t){throw new Error(t)}))}))},f.prototype.removeFile=function(t){if(this.files=this.files.filter((function(e){return e.uuid!==t})),this.context.performValidation(),window&&this.fileList instanceof FileList){var e=new DataTransfer;this.files.map((function(t){return e.items.add(t.file)})),this.fileList=e.files,this.input.files=this.fileList}},f.prototype.loadPreviews=function(){this.files.map((function(t){if(!t.previewData&&window&&window.FileReader&&/^image\//.test(t.file.type)){var e=new FileReader;e.onload=function(e){return Object.assign(t,{previewData:e.target.result})},e.readAsDataURL(t.file)}}))},f.prototype.getFileList=function(){return this.fileList},f.prototype.getFiles=function(){return this.files},f.prototype.toString=function(){var t=this.files.length?this.files.length+" files":"empty";return this.results?JSON.stringify(this.results,null," "):"FileUpload("+t+")"};var k,E={accepted:function(t){var e=t.value;return Promise.resolve(["yes","on","1",1,!0,"true"].includes(e))},after:function(t,e){var r=t.value;void 0===e&&(e=!1);var n=Date.parse(e||new Date),i=Date.parse(r);return Promise.resolve(!isNaN(i)&&i>n)},alpha:function(t,e){var r=t.value;void 0===e&&(e="default");var n={default:/^[a-zA-ZÀ-ÖØ-öø-ÿĄąĆćĘꣳŃńŚśŹźŻż]+$/,latin:/^[a-zA-Z]+$/},i=n.hasOwnProperty(e)?e:"default";return Promise.resolve(n[i].test(r))},alphanumeric:function(t,e){var r=t.value;void 0===e&&(e="default");var n={default:/^[a-zA-Z0-9À-ÖØ-öø-ÿĄąĆćĘꣳŃńŚśŹźŻż]+$/,latin:/^[a-zA-Z0-9]+$/},i=n.hasOwnProperty(e)?e:"default";return Promise.resolve(n[i].test(r))},before:function(t,e){var r=t.value;void 0===e&&(e=!1);var n=Date.parse(e||new Date),i=Date.parse(r);return Promise.resolve(!isNaN(i)&&ie&&ie&&i.length()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(e))},endsWith:function(t){for(var e=t.value,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return Promise.resolve("string"==typeof e&&r.length?void 0!==r.find((function(t){return e.endsWith(t)})):"string"==typeof e&&0===r.length)},in:function(t){for(var e=t.value,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return Promise.resolve(void 0!==r.find((function(t){return"object"==typeof t?p(t,e):t===e})))},matches:function(t){for(var e=t.value,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return Promise.resolve(!!r.find((function(t){return"string"==typeof t&&"/"===t.substr(0,1)&&"/"===t.substr(-1)&&(t=new RegExp(t.substr(1,t.length-2))),t instanceof RegExp?t.test(e):t===e})))},mime:function(t){for(var e=t.value,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return Promise.resolve(function(){if(e instanceof f)for(var t=e.getFiles(),n=0;n=e):!isNaN(n)&&"length"!==r||"value"===r?(n=isNaN(n)?n:Number(n))>=e:("string"==typeof n||"length"===r)&&(n=isNaN(n)?n:n.toString()).length>=e)},max:function(t,e,r){var n=t.value;return void 0===e&&(e=10),Promise.resolve(Array.isArray(n)?(e=isNaN(e)?e:Number(e),n.length<=e):!isNaN(n)&&"length"!==r||"value"===r?(n=isNaN(n)?n:Number(n))<=e:("string"==typeof n||"length"===r)&&(n=isNaN(n)?n:n.toString()).length<=e)},not:function(t){for(var e=t.value,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return Promise.resolve(void 0===r.find((function(t){return"object"==typeof t?p(t,e):t===e})))},number:function(t){var e=t.value;return Promise.resolve(!isNaN(e))},required:function(t,e){var r=t.value;return void 0===e&&(e=!0),Promise.resolve(!(e&&!["no","false"].includes(e))||(Array.isArray(r)?!!r.length:r instanceof f?r.getFiles().length>0:"string"==typeof r?!!r:"object"!=typeof r||!!r&&!!Object.keys(r).length))},startsWith:function(t){for(var e=t.value,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return Promise.resolve("string"==typeof e&&r.length?void 0!==r.find((function(t){return e.startsWith(t)})):"string"==typeof e&&0===r.length)},url:function(t){var e=t.value;return Promise.resolve(i()(e))},bail:function(){return Promise.resolve(!0)},optional:function(t){var e=t.value;return Promise.resolve(!w(e))}},A="image/",O={csv:"text/csv",gif:A+"gif",jpg:A+"jpeg",jpeg:A+"jpeg",png:A+"png",pdf:"application/pdf",svg:A+"svg+xml"},S=["outer","wrapper","label","element","input","help","errors","error","decorator","rangeValue","uploadArea","uploadAreaMask","files","file","fileName","fileRemove","fileProgress","fileUploadError","fileImagePreview","fileProgressInner","grouping","groupRepeatable","groupRepeatableRemove","groupAddMore"],F={hasErrors:function(t){return t.hasErrors},hasValue:function(t){return t.hasValue},isValid:function(t){return t.isValid}},C=function(t,e,r){var n=[];switch(e){case"label":n.push(t+"--"+r.labelPosition);break;case"element":var i="group"===r.classification?"group":r.type;n.push(t+"--"+i),"group"===i&&n.push("formulate-input-group");break;case"help":n.push(t+"--"+r.helpPosition)}return n},j=(k=[""].concat(Object.keys(F).map((function(t){return v(t)}))),S.reduce((function(t,e){return t.concat(k.reduce((function(t,r){return t.push(""+e+r+"Class"),t}),[]))}),[]));function P(t,e,r){switch(typeof e){case"string":return e;case"function":return e(r,m(t));case"object":if(Array.isArray(e))return m(t).concat(e);default:return t}}function $(t){return S.reduce((function(e,r){var n;return Object.assign(e,((n={})[r]=function(t,e){var r=t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})),n="formulate"+("file"===r.substr(0,4)?"":"-input")+(["decorator","range-value"].includes(r)?"-element":"")+("outer"!==r?"-"+r:"");return"input"===r?[]:[n].concat(C(n,t,e))}(r,t),n))}),{})}function V(t,e,r,n){return new Promise((function(r,i){var o=(n.fauxUploaderDuration||2e3)*(.5+Math.random()),s=performance.now(),a=function(){return setTimeout((function(){var n=performance.now()-s,i=Math.min(100,Math.round(n/o*100));if(e(i),i>=100)return r({url:"http://via.placeholder.com/350x150.png",name:t.name});a()}),20)};a()}))}function D(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===e.indexOf(n)&&(r[n]=t[n]);return r}var I={inheritAttrs:!1,functional:!0,render:function(t,e){for(var r=e.props,n=e.data,i=e.parent,o=e.children,s=i,a=(r.name,r.forceWrap),u=r.context,l=D(r,["name","forceWrap","context"]);s&&"FormulateInput"!==s.$options.name;)s=s.$parent;if(!s)return null;if(s.$scopedSlots&&s.$scopedSlots[r.name])return s.$scopedSlots[r.name](Object.assign({},u,l));if(Array.isArray(o)&&(o.length>1||a&&o.length>0)){var c=n.attrs,f=(c.name,c.context,D(c,["name","context"]));return t("div",Object.assign({},n,{attrs:f}),o)}return Array.isArray(o)&&1===o.length?o[0]:null}};function R(t,e){if(t&&"object"==typeof t&&!Array.isArray(t)){var r=t.children;void 0===r&&(r=null);var n=t.component;void 0===n&&(n="FormulateInput");var i=t.depth;void 0===i&&(i=1);var o=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===e.indexOf(n)&&(r[n]=t[n]);return r}(t,["children","component","depth"]),s="FormulateInput"===n?o.type||"text":"",a=o.name||s||"el",u=o.id||a+"-"+i+"-"+e,l=Array.isArray(r)?r.map((function(t){return Object.assign(t,{depth:i+1})})):r;return Object.assign({key:u,depth:i,attrs:o,component:n},l?{children:l}:{})}return null}var T={functional:!0,render:function(t,e){return function t(e,r){return Array.isArray(r)?r.map((function(r){var n=R(r);return e(n.component,{attrs:n.attrs},n.children?t(e,n.children):null)})):r}(t,e.props.schema)}};function N(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===e.indexOf(n)&&(r[n]=t[n]);return r}var B=function(t){this.registry=new Map,this.ctx=t};function M(t){return new B(t).dataProps()}function L(){return{hasInitialValue:function(){return this.formulateValue&&"object"==typeof this.formulateValue||this.values&&"object"==typeof this.values||this.isGrouping&&"object"==typeof this.context.model[this.index]},isVmodeled:function(){return!!(this.$options.propsData.hasOwnProperty("formulateValue")&&this._events&&Array.isArray(this._events.input)&&this._events.input.length)},initialValues:function(){return x(this.$options.propsData,"formulateValue")&&"object"==typeof this.formulateValue?Object.assign({},this.formulateValue):x(this.$options.propsData,"values")&&"object"==typeof this.values?Object.assign({},this.values):this.isGrouping&&"object"==typeof this.context.model[this.index]?this.context.model[this.index]:{}}}}function U(t){void 0===t&&(t=[]);var e={applyInitialValues:function(){this.hasInitialValue&&(this.proxy=this.initialValues)},setFieldValue:function(t,e){var r;if(void 0===e){var n=this.proxy,i=(n[t],N(n,[String(t)]));this.proxy=i}else Object.assign(this.proxy,((r={})[t]=e,r));this.$emit("input",Object.assign({},this.proxy))},valueDeps:function(t){var e=this;return Object.keys(this.proxy).reduce((function(r,n){return Object.defineProperty(r,n,{enumerable:!0,get:function(){var r=e.registry.get(n);return e.deps.set(t,e.deps.get(t)||new Set),r&&(e.deps.set(r,e.deps.get(r)||new Set),e.deps.get(r).add(t.name)),e.deps.get(t).add(n),e.proxy[n]}})}),Object.create(null))},validateDeps:function(t){var e=this;this.deps.has(t)&&this.deps.get(t).forEach((function(t){return e.registry.has(t)&&e.registry.get(t).performValidation()}))},hasValidationErrors:function(){return Promise.all(this.registry.reduce((function(t,e,r){return t.push(e.performValidation()&&e.getValidationErrors()),t}),[])).then((function(t){return t.some((function(t){return t.hasErrors}))}))},showErrors:function(){this.childrenShouldShowErrors=!0,this.registry.map((function(t){t.formShouldShowErrors=!0}))},hideErrors:function(){this.childrenShouldShowErrors=!1,this.registry.map((function(t){t.formShouldShowErrors=!1,t.behavioralErrorVisibility=!1}))},setValues:function(t){var e=this;Array.from(new Set(Object.keys(t).concat(Object.keys(this.proxy)))).forEach((function(r){p(t[r],e.proxy[r])||(e.setFieldValue(r,t[r]),e.registry.has(r)&&!p(t[r],e.registry.get(r).proxy)&&(e.registry.get(r).context.model=t[r]))}))}};return Object.keys(e).reduce((function(r,n){var i;return t.includes(n)?r:Object.assign({},r,((i={})[n]=e[n],i))}),{})}function H(t,e){void 0===e&&(e=[]);var r={formulateSetter:t.setFieldValue,formulateRegister:t.register,formulateDeregister:t.deregister,getFormValues:t.valueDeps,validateDependents:t.validateDeps};return Object.keys(r).filter((function(t){return!e.includes(t)})).reduce((function(t,e){var n;return Object.assign(t,((n={})[e]=r[e],n))}),{})}B.prototype.add=function(t,e){return this.registry.set(t,e),this},B.prototype.remove=function(t){this.ctx.deps.delete(this.registry.get(t)),this.ctx.deps.forEach((function(e){return e.delete(t)})),this.registry.delete(t);var e=this.ctx.proxy,r=(e[t],N(e,[String(t)]));return this.ctx.proxy=r,this},B.prototype.has=function(t){return this.registry.has(t)},B.prototype.get=function(t){return this.registry.get(t)},B.prototype.map=function(t){var e={};return this.registry.forEach((function(r,n){var i;return Object.assign(e,((i={})[n]=t(r,n),i))})),e},B.prototype.keys=function(){return Array.from(this.registry.keys())},B.prototype.register=function(t,e){if(this.registry.has(t))return!1;this.registry.set(t,e);var r=x(e.$options.propsData,"formulateValue"),n=x(e.$options.propsData,"value");r||!this.ctx.hasInitialValue||w(this.ctx.initialValues[t])?!r&&!n||p(e.proxy,this.ctx.initialValues[t])||this.ctx.setFieldValue(t,e.proxy):e.context.model=this.ctx.initialValues[t],this.childrenShouldShowErrors&&(e.formShouldShowErrors=!0)},B.prototype.reduce=function(t,e){return this.registry.forEach((function(r,n){e=t(e,r,n)})),e},B.prototype.dataProps=function(){var t=this;return{proxy:{},registry:this,register:this.register.bind(this),deregister:function(e){return t.remove(e)},childrenShouldShowErrors:!1,deps:new Map}};var G=function(t){this.form=t};function z(t,e,r,n,i,o,s,a,u,l){"boolean"!=typeof s&&(u=a,a=s,s=!1);var c,f="function"==typeof r?r.options:r;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,i&&(f.functional=!0)),n&&(f._scopeId=n),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},f._ssrRegister=c):e&&(c=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),c)if(f.functional){var d=f.render;f.render=function(t,e){return c.call(e),d(t,e)}}else{var p=f.beforeCreate;f.beforeCreate=p?[].concat(p,c):[c]}return r}G.prototype.hasValidationErrors=function(){return this.form.hasValidationErrors()},G.prototype.values=function(){var t=this;return new Promise((function(e,r){var n=[],i=function t(e){if("object"!=typeof e)return e;var r=Array.isArray(e)?[]:{};for(var n in e)e[n]instanceof f||b(e[n])?r[n]=e[n]:r[n]=t(e[n]);return r}(t.form.proxy),o=function(e){"object"==typeof t.form.proxy[e]&&t.form.proxy[e]instanceof f&&n.push(t.form.proxy[e].upload().then((function(t){var r;return Object.assign(i,((r={})[e]=t,r))})))};for(var s in i)o(s);Promise.all(n).then((function(){return e(i)})).catch((function(t){return r(t)}))}))};var q={provide:function(){return Object.assign({},H(this),{observeErrors:this.addErrorObserver,removeErrorObserver:this.removeErrorObserver,formulateFieldValidation:this.formulateFieldValidation})},name:"FormulateForm",model:{prop:"formulateValue",event:"input"},props:{name:{type:[String,Boolean],default:!1},formulateValue:{type:Object,default:function(){return{}}},values:{type:[Object,Boolean],default:!1},errors:{type:[Object,Boolean],default:!1},formErrors:{type:Array,default:function(){return[]}},schema:{type:[Array,Boolean],default:!1}},data:function(){return Object.assign({},M(this),{formShouldShowErrors:!1,errorObservers:[],namedErrors:[],namedFieldErrors:{}})},computed:Object.assign({},L(),{formContext:function(){return{errors:this.mergedFormErrors}},classes:function(){var t={"formulate-form":!0};return this.name&&(t["formulate-form--"+this.name]=!0),t},mergedFormErrors:function(){return this.formErrors.concat(this.namedErrors)},mergedFieldErrors:function(){var t={};if(this.errors)for(var e in this.errors)t[e]=m(this.errors[e]);for(var r in this.namedFieldErrors)t[r]=m(this.namedFieldErrors[r]);return t},hasFormErrorObservers:function(){return!!this.errorObservers.filter((function(t){return"form"===t.type})).length}}),watch:{formulateValue:{handler:function(t){this.isVmodeled&&t&&"object"==typeof t&&this.setValues(t)},deep:!0},mergedFormErrors:function(t){this.errorObservers.filter((function(t){return"form"===t.type})).forEach((function(e){return e.callback(t)}))},mergedFieldErrors:{handler:function(t){this.errorObservers.filter((function(t){return"input"===t.type})).forEach((function(e){return e.callback(t[e.field]||[])}))},immediate:!0}},created:function(){this.$formulate.register(this),this.applyInitialValues()},destroyed:function(){this.$formulate.deregister(this)},methods:Object.assign({},U(),{applyErrors:function(t){var e=t.formErrors,r=t.inputErrors;this.namedErrors=e,this.namedFieldErrors=r},addErrorObserver:function(t){this.errorObservers.find((function(e){return t.callback===e.callback}))||(this.errorObservers.push(t),"form"===t.type?t.callback(this.mergedFormErrors):x(this.mergedFieldErrors,t.field)&&t.callback(this.mergedFieldErrors[t.field]))},removeErrorObserver:function(t){this.errorObservers=this.errorObservers.filter((function(e){return e.callback!==t}))},registerErrorComponent:function(t){this.errorComponents.includes(t)||this.errorComponents.push(t)},formSubmitted:function(){var t=this;this.showErrors();var e=new G(this);return this.$emit("submit-raw",e),e.hasValidationErrors().then((function(t){return t?void 0:e.values()})).then((function(e){if(void 0!==e)return t.$emit("submit",e),e}))},formulateFieldValidation:function(t){this.$emit("validation",t)}})},W=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("form",{class:t.classes,on:{submit:function(e){return e.preventDefault(),t.formSubmitted(e)}}},[t.schema?r("FormulateSchema",{attrs:{schema:t.schema}}):t._e(),t._v(" "),t.hasFormErrorObservers?t._e():r("FormulateErrors",{attrs:{context:t.formContext}}),t._v(" "),t._t("default")],2)};W._withStripped=!0;var K=z({render:W,staticRenderFns:[]},void 0,q,void 0,!1,void 0,!1,void 0,void 0,void 0),Y={context:function(){return Q.call(this,Object.assign({},{addLabel:this.logicalAddLabel,attributes:this.elementAttributes,blurHandler:J.bind(this),classification:this.classification,component:this.component,disableErrors:this.disableErrors,errors:this.explicitErrors,formShouldShowErrors:this.formShouldShowErrors,getValidationErrors:this.getValidationErrors.bind(this),hasGivenName:this.hasGivenName,hasValue:this.hasValue,hasLabel:this.label&&"button"!==this.classification,hasValidationErrors:this.hasValidationErrors.bind(this),help:this.help,helpPosition:this.logicalHelpPosition,id:this.id||this.defaultId,isValid:this.isValid,imageBehavior:this.imageBehavior,label:this.label,labelPosition:this.logicalLabelPosition,limit:this.limit===1/0?this.limit:parseInt(this.limit,10),name:this.nameOrFallback,minimum:parseInt(this.minimum,10),performValidation:this.performValidation.bind(this),pseudoProps:this.pseudoProps,preventWindowDrops:this.preventWindowDrops,repeatable:this.repeatable,rootEmit:this.$emit.bind(this),setErrors:this.setErrors.bind(this),showValidationErrors:this.showValidationErrors,slotComponents:this.slotComponents,slotProps:this.slotProps,type:this.type,uploadBehavior:this.uploadBehavior,uploadUrl:this.mergedUploadUrl,uploader:this.uploader||this.$formulate.getUploader(),validationErrors:this.validationErrors,value:this.value,visibleValidationErrors:this.visibleValidationErrors,isSubField:this.isSubField,classes:this.classes},this.typeContext))},nameOrFallback:function(){if(!0===this.name&&"button"!==this.classification){var t=this.id||this.elementAttributes.id.replace(/[^0-9]/g,"");return this.type+"_"+t}return!1!==this.name&&("button"!==this.classification||!0!==this.name)&&this.name},hasGivenName:function(){return"boolean"!=typeof this.name},typeContext:function(){var t=this;switch(this.classification){case"select":return{options:X.call(this,this.options),optionGroups:!!this.optionGroups&&d(this.optionGroups,(function(e,r){return X.call(t,r)})),placeholder:this.$attrs.placeholder||!1};case"slider":return{showValue:!!this.showValue};default:return this.options?{options:X.call(this,this.options)}:{}}},elementAttributes:function(){var t=Object.assign({},this.filteredAttributes);return this.id?t.id=this.id:t.id=this.defaultId,this.hasGivenName&&(t.name=this.name),this.help&&(t["aria-describedby"]=t.id+"-help"),!this.classes.input||Array.isArray(this.classes.input)&&!this.classes.input.length||(t.class=this.classes.input),t},logicalLabelPosition:function(){if(this.labelPosition)return this.labelPosition;switch(this.classification){case"box":return"after";default:return"before"}},logicalHelpPosition:function(){if(this.helpPosition)return this.helpPosition;switch(this.classification){case"group":return"before";default:return"after"}},mergedUploadUrl:function(){return this.uploadUrl||this.$formulate.getUploadUrl()},hasValue:function(){var t=this,e=this.proxy;return"box"===this.classification&&this.isGrouped?Array.isArray(e)?e.some((function(e){return e===t.value})):this.value===e:!w(e)},visibleValidationErrors:function(){return this.showValidationErrors&&this.validationErrors.length?this.validationErrors:[]},slotComponents:function(){var t=this.$formulate.slotComponent.bind(this.$formulate);return{label:t(this.type,"label"),help:t(this.type,"help"),errors:t(this.type,"errors"),repeatable:t(this.type,"repeatable"),addMore:t(this.type,"addMore"),remove:t(this.type,"remove")}},logicalAddLabel:function(){return"boolean"==typeof this.addLabel?"+ "+(this.label||this.name||"Add"):this.addLabel},classes:function(){return this.$formulate.classes(Object.assign({},this.$props,this.pseudoProps,{classification:this.classification,hasErrors:this.hasVisibleErrors,hasValue:this.hasValue,helpPosition:this.logicalHelpPosition,isValid:this.isValid,labelPosition:this.logicalLabelPosition,type:this.type,value:this.proxy}))},showValidationErrors:function(){return!(!this.showErrors&&!this.formShouldShowErrors)||(!("file"!==this.classification||"live"!==this.uploadBehavior||!tt.call(this))||this.behavioralErrorVisibility)},slotProps:function(){var t=this.$formulate.slotProps.bind(this.$formulate);return{label:t(this.type,"label",this.typeProps),help:t(this.type,"help",this.typeProps),errors:t(this.type,"errors",this.typeProps),repeatable:t(this.type,"repeatable",this.typeProps),addMore:t(this.type,"addMore",this.typeProps),remove:t(this.type,"remove",this.typeProps)}},pseudoProps:function(){return Z(this.localAttributes,j)},isValid:function(){return!this.hasErrors},isVmodeled:function(){return!!(this.$options.propsData.hasOwnProperty("formulateValue")&&this._events&&Array.isArray(this._events.input)&&this._events.input.length)},mergedValidationName:function(){return this.validationName?this.validationName:"string"==typeof this.name?this.name:this.label?this.label:this.type},explicitErrors:function(){return m(this.errors).concat(this.localErrors).concat(m(this.error))},allErrors:function(){return this.explicitErrors.concat(m(this.validationErrors))},hasVisibleErrors:function(){return Array.isArray(this.validationErrors)&&this.validationErrors.length&&this.showValidationErrors||!!this.explicitErrors.length},hasErrors:function(){return!!this.allErrors.length},filteredAttributes:function(){var t=this,e=Object.keys(this.pseudoProps).concat(Object.keys(this.typeProps));return Object.keys(this.localAttributes).reduce((function(r,n){return e.includes(h(n))||(r[n]=t.localAttributes[n]),r}),{})},typeProps:function(){return Z(this.localAttributes,this.$formulate.typeProps(this.type))},listeners:function(){var t=this.$listeners;return t.input,function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===e.indexOf(n)&&(r[n]=t[n]);return r}(t,["input"])}};function Z(t,e){return Object.keys(t).reduce((function(r,n){var i=h(n);return e.includes(i)&&(r[i]=t[n]),r}),{})}function X(t){if(!Array.isArray(t)&&t&&"object"==typeof t){var e=[];for(var r in t)e.push({value:r,label:t[r],id:this.elementAttributes.id+"_"+r});return e}return t}function J(){"blur"===this.errorBehavior&&(this.behavioralErrorVisibility=!0)}function Q(t){return Object.defineProperty(t,"model",{get:tt.bind(this),set:et.bind(this)})}function tt(){var t=this.isVmodeled?"formulateValue":"proxy";return"checkbox"===this.type&&!Array.isArray(this[t])&&this.options?[]:this[t]||0===this[t]?this[t]:""}function et(t){var e=!1;p(t,this.proxy)||(this.proxy=t,e=!0),this.context.name&&"function"==typeof this.formulateSetter&&this.formulateSetter(this.context.name,t),e&&this.$emit("input",t)}var rt={name:"FormulateInput",inheritAttrs:!1,provide:function(){return{formulateRegisterRule:this.registerRule,formulateRemoveRule:this.removeRule}},inject:{formulateSetter:{default:void 0},formulateFieldValidation:{default:function(){return function(){return{}}}},formulateRegister:{default:void 0},formulateDeregister:{default:void 0},getFormValues:{default:function(){return function(){return{}}}},validateDependents:{default:function(){return function(){}}},observeErrors:{default:void 0},removeErrorObserver:{default:void 0},isSubField:{default:function(){return function(){return!1}}}},model:{prop:"formulateValue",event:"input"},props:{type:{type:String,default:"text"},name:{type:[String,Boolean],default:!0},formulateValue:{default:""},value:{default:!1},options:{type:[Object,Array,Boolean],default:!1},optionGroups:{type:[Object,Boolean],default:!1},id:{type:[String,Boolean,Number],default:!1},label:{type:[String,Boolean],default:!1},labelPosition:{type:[String,Boolean],default:!1},limit:{type:[String,Number],default:1/0,validator:function(t){return 1/0}},minimum:{type:[String,Number],default:0,validator:function(t){return parseInt(t,10)==t}},help:{type:[String,Boolean],default:!1},helpPosition:{type:[String,Boolean],default:!1},isGrouped:{type:Boolean,default:!1},errors:{type:[String,Array,Boolean],default:!1},repeatable:{type:Boolean,default:!1},validation:{type:[String,Boolean,Array],default:!1},validationName:{type:[String,Boolean],default:!1},error:{type:[String,Boolean],default:!1},errorBehavior:{type:String,default:"blur",validator:function(t){return["blur","live","submit"].includes(t)}},showErrors:{type:Boolean,default:!1},imageBehavior:{type:String,default:"preview"},uploadUrl:{type:[String,Boolean],default:!1},uploader:{type:[Function,Object,Boolean],default:!1},uploadBehavior:{type:String,default:"live"},preventWindowDrops:{type:Boolean,default:!0},showValue:{type:[String,Boolean],default:!1},validationMessages:{type:Object,default:function(){return{}}},validationRules:{type:Object,default:function(){return{}}},checked:{type:[String,Boolean],default:!1},disableErrors:{type:Boolean,default:!1},addLabel:{type:[Boolean,String],default:!1}},data:function(){return{defaultId:this.$formulate.nextId(this),localAttributes:{},localErrors:[],proxy:this.getInitialValue(),behavioralErrorVisibility:"live"===this.errorBehavior,formShouldShowErrors:!1,validationErrors:[],pendingValidation:Promise.resolve(),ruleRegistry:[],messageRegistry:{}}},computed:Object.assign({},Y,{classification:function(){var t=this.$formulate.classify(this.type);return"box"===t&&this.options?"group":t},component:function(){return"group"===this.classification?"FormulateInputGroup":this.$formulate.component(this.type)},parsedValidationRules:function(){var t=this,e={};return Object.keys(this.validationRules).forEach((function(r){e[h(r)]=t.validationRules[r]})),e},messages:function(){var t=this,e={};return Object.keys(this.validationMessages).forEach((function(r){e[h(r)]=t.validationMessages[r]})),Object.keys(this.messageRegistry).forEach((function(r){e[h(r)]=t.messageRegistry[r]})),e}}),watch:{$attrs:{handler:function(t){this.updateLocalAttributes(t)},deep:!0},proxy:function(t,e){this.performValidation(),this.isVmodeled||p(t,e)||(this.context.model=t),this.validateDependents(this)},formulateValue:function(t,e){this.isVmodeled&&!p(t,e)&&(this.context.model=t)},showValidationErrors:{handler:function(t){this.$emit("error-visibility",t)},immediate:!0}},created:function(){this.applyInitialValue(),this.formulateRegister&&"function"==typeof this.formulateRegister&&this.formulateRegister(this.nameOrFallback,this),this.applyDefaultValue(),this.disableErrors||"function"!=typeof this.observeErrors||this.observeErrors({callback:this.setErrors,type:"input",field:this.nameOrFallback}),this.updateLocalAttributes(this.$attrs),this.performValidation()},beforeDestroy:function(){this.disableErrors||"function"!=typeof this.removeErrorObserver||this.removeErrorObserver(this.setErrors),"function"==typeof this.formulateDeregister&&this.formulateDeregister(this.nameOrFallback)},methods:{getInitialValue:function(){var t=this.$formulate.classify(this.type);return"box"===(t="box"===t&&this.options?"group":t)&&this.checked?this.value||!0:x(this.$options.propsData,"value")&&"box"!==t?this.value:x(this.$options.propsData,"formulateValue")?this.formulateValue:""},applyInitialValue:function(){!p(this.context.model,this.proxy)&&x(this.$options.propsData,"options")&&"box"===this.classification&&(this.context.model=this.proxy)},applyDefaultValue:function(){"select"===this.type&&!this.context.placeholder&&w(this.proxy)&&!this.isVmodeled&&!1===this.value&&this.context.options.length&&(this.context.model=this.context.options[0].value)},updateLocalAttributes:function(t){p(t,this.localAttributes)||(this.localAttributes=t)},performValidation:function(){var t=this,e=y(this.validation,this.$formulate.rules(this.parsedValidationRules));return e=this.ruleRegistry.length?this.ruleRegistry.concat(e):e,this.pendingValidation=this.runRules(e).then((function(e){return t.didValidate(e)})),this.pendingValidation},runRules:function(t){var e=this,r=function(t){var r=t[0],n=t[1],i=t[2],o=(t[3],r.apply(void 0,[{value:e.context.model,getFormValues:function(){for(var t,r=[],n=arguments.length;n--;)r[n]=arguments[n];return(t=e).getFormValues.apply(t,[e].concat(r))},name:e.context.name}].concat(n)));return(o=o instanceof Promise?o:Promise.resolve(o)).then((function(t){return!t&&e.getMessage(i,n)}))};return new Promise((function(e){var n=function(t,i){void 0===i&&(i=[]);var o=t.shift();Array.isArray(o)&&o.length?Promise.all(o.map(r)).then((function(t){return t.filter((function(t){return!!t}))})).then((function(r){return(r=Array.isArray(r)?r:[]).length&&o.bail||!t.length?e(i.concat(r).filter((function(t){return!w(t)}))):n(t,i.concat(r))})):e([])};n(function(t){var e=[],r=t.findIndex((function(t){return"bail"===t[2].toLowerCase()})),n=t.findIndex((function(t){return"optional"===t[2].toLowerCase()}));if(n>=0){var i=t.splice(n,1);e.push(Object.defineProperty(i,"bail",{value:!0}))}if(r>=0){var o=t.splice(0,r+1).slice(0,-1);o.length&&e.push(o),t.map((function(t){return e.push(Object.defineProperty([t],"bail",{value:!0}))}))}else e.push(t);return e.reduce((function(t,e){var r=function(t,e){if(void 0===e&&(e=!1),t.length<2)return Object.defineProperty([t],"bail",{value:e});var n=[],i=t.findIndex((function(t){return"^"===t[3]}));if(i>=0){var o=t.splice(0,i);o.length&&n.push.apply(n,r(o,e)),n.push(Object.defineProperty([t.shift()],"bail",{value:!0})),t.length&&n.push.apply(n,r(t,e))}else n.push(t);return n};return t.concat(r(e))}),[])}(t))}))},didValidate:function(t){var e=!p(t,this.validationErrors);if(this.validationErrors=t,e){var r=this.getErrorObject();this.$emit("validation",r),this.formulateFieldValidation&&"function"==typeof this.formulateFieldValidation&&this.formulateFieldValidation(r)}},getMessage:function(t,e){var r=this;return this.getMessageFunc(t)({args:e,name:this.mergedValidationName,value:this.context.model,vm:this,formValues:this.getFormValues(this),getFormValues:function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];return(t=r).getFormValues.apply(t,[r].concat(e))}})},getMessageFunc:function(t){var e=this;if("optional"===(t=h(t)))return function(){return[]};if(this.messages&&void 0!==this.messages[t])switch(typeof this.messages[t]){case"function":return this.messages[t];case"string":case"boolean":return function(){return e.messages[t]}}return function(r){return e.$formulate.validationMessage(t,r,e)}},hasValidationErrors:function(){var t=this;return new Promise((function(e){t.$nextTick((function(){t.pendingValidation.then((function(){return e(!!t.validationErrors.length)}))}))}))},getValidationErrors:function(){var t=this;return new Promise((function(e){t.$nextTick((function(){return t.pendingValidation.then((function(){return e(t.getErrorObject())}))}))}))},getErrorObject:function(){return{name:this.context.nameOrFallback||this.context.name,errors:this.validationErrors.filter((function(t){return"string"==typeof t})),hasErrors:!!this.validationErrors.length}},setErrors:function(t){this.localErrors=m(t)},registerRule:function(t,e,r,n){void 0===n&&(n=null),this.ruleRegistry.some((function(t){return t[2]===r}))||(this.ruleRegistry.push([t,e,r]),null!==n&&(this.messageRegistry[r]=n))},removeRule:function(t){var e=this.ruleRegistry.findIndex((function(e){return e[2]===t}));e>=0&&(this.ruleRegistry.splice(e,1),delete this.messageRegistry[t])}}},nt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.outer,attrs:{"data-classification":t.classification,"data-has-errors":t.hasErrors,"data-is-showing-errors":t.hasVisibleErrors,"data-has-value":t.hasValue,"data-type":t.type}},[r("div",{class:t.context.classes.wrapper},["before"===t.context.labelPosition?t._t("label",[t.context.hasLabel?r(t.context.slotComponents.label,t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.label,!1)):t._e()],null,t.context):t._e(),t._v(" "),"before"===t.context.helpPosition?t._t("help",[t.context.help?r(t.context.slotComponents.help,t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.help,!1)):t._e()],null,t.context):t._e(),t._v(" "),t._t("element",[r(t.context.component,t._g(t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.component,!1),t.listeners),[t._t("default",null,null,t.context)],2)],null,t.context),t._v(" "),"after"===t.context.labelPosition?t._t("label",[t.context.hasLabel?r(t.context.slotComponents.label,t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.label,!1)):t._e()],null,t.context):t._e()],2),t._v(" "),"after"===t.context.helpPosition?t._t("help",[t.context.help?r(t.context.slotComponents.help,t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.help,!1)):t._e()],null,t.context):t._e(),t._v(" "),t._t("errors",[t.context.disableErrors?t._e():r(t.context.slotComponents.errors,t._b({tag:"component",attrs:{type:"FormulateErrors"===t.context.slotComponents.errors&&"input",context:t.context}},"component",t.context.slotProps.errors,!1))],null,t.context)],2)};nt._withStripped=!0;var it=z({render:nt,staticRenderFns:[]},void 0,rt,void 0,!1,void 0,!1,void 0,void 0,void 0),ot={inject:{observeErrors:{default:!1},removeErrorObserver:{default:!1}},props:{context:{type:Object,default:function(){return{}}},type:{type:String,default:"form"}},data:function(){return{boundSetErrors:this.setErrors.bind(this),localErrors:[]}},computed:{visibleValidationErrors:function(){return Array.isArray(this.context.visibleValidationErrors)?this.context.visibleValidationErrors:[]},errors:function(){return Array.isArray(this.context.errors)?this.context.errors:[]},mergedErrors:function(){return this.errors.concat(this.localErrors)},visibleErrors:function(){return Array.from(new Set(this.mergedErrors.concat(this.visibleValidationErrors))).filter((function(t){return"string"==typeof t}))},outerClass:function(){return"input"===this.type&&this.context.classes?this.context.classes.errors:"formulate-"+this.type+"-errors"},itemClass:function(){return"input"===this.type&&this.context.classes?this.context.classes.error:"formulate-"+this.type+"-error"}},created:function(){"form"!==this.type||"function"!=typeof this.observeErrors||Array.isArray(this.context.errors)||this.observeErrors({callback:this.boundSetErrors,type:this.type})},destroyed:function(){"form"!==this.type||"function"!=typeof this.removeErrorObserver||Array.isArray(this.context.errors)||this.removeErrorObserver(this.boundSetErrors)},methods:{setErrors:function(t){this.localErrors=m(t)}}},st=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.visibleErrors.length?r("ul",{class:t.outerClass},t._l(t.visibleErrors,(function(e){return r("li",{key:e,class:t.itemClass,domProps:{textContent:t._s(e)}})})),0):t._e()};st._withStripped=!0;var at=z({render:st,staticRenderFns:[]},void 0,ot,void 0,!1,void 0,!1,void 0,void 0,void 0),ut={props:{context:{type:Object,required:!0}}},lt=function(){var t=this.$createElement,e=this._self._c||t;return this.context.help?e("div",{class:this.context.classes.help,attrs:{id:this.context.id+"-help"},domProps:{textContent:this._s(this.context.help)}}):this._e()};lt._withStripped=!0;var ct=z({render:lt,staticRenderFns:[]},void 0,ut,void 0,!1,void 0,!1,void 0,void 0,void 0),ft={name:"FormulateGrouping",props:{context:{type:Object,required:!0}},provide:function(){return{isSubField:function(){return!0},registerProvider:this.registerProvider,deregisterProvider:this.deregisterProvider}},data:function(){return{providers:[]}},inject:["formulateRegisterRule","formulateRemoveRule"],computed:{items:function(){return Array.isArray(this.context.model)?this.context.repeatable||0!==this.context.model.length?this.context.model.map((function(t){return _(t,t.__id)})):[_({})]:new Array(this.context.minimum||1).fill("").map((function(){return _({})}))},formShouldShowErrors:function(){return this.context.formShouldShowErrors}},watch:{providers:function(){this.formShouldShowErrors&&this.showErrors()},formShouldShowErrors:function(t){t&&this.showErrors()}},created:function(){this.formulateRegisterRule(this.validateGroup.bind(this),[],"formulateGrouping",!0)},destroyed:function(){this.formulateRemoveRule("formulateGrouping")},methods:{getAtIndex:function(t){return void 0!==this.context.model[t]&&this.context.model[t].__id?this.context.model[t]:void 0!==this.context.model[t]?_(this.context.model[t]):void 0===this.context.model[t]&&void 0!==this.items[t]?_({},this.items[t].__id):_({})},setFieldValue:function(t,e,r){var n,i=Array.isArray(this.context.model)?this.context.model:[],o=this.getAtIndex(t),s=_(Object.assign({},o,((n={})[e]=r,n)),o.__id);i.splice(t,1,s),this.context.model=i},validateGroup:function(){return Promise.all(this.providers.reduce((function(t,e){return e&&"function"==typeof e.hasValidationErrors&&t.push(e.hasValidationErrors()),t}),[])).then((function(t){return!t.some((function(t){return!!t}))}))},showErrors:function(){this.providers.forEach((function(t){return t&&"function"==typeof t.showErrors&&t.showErrors()}))},removeItem:function(t){Array.isArray(this.context.model)&&this.context.model.length>this.context.minimum?this.context.model.splice(t,1):this.items.length>this.context.minimum&&(this.context.model=new Array(this.items.length-1).fill("").map((function(){return _({})})))},registerProvider:function(t){this.providers.some((function(e){return e===t}))||this.providers.push(t)},deregisterProvider:function(t){this.providers=this.providers.filter((function(e){return e!==t}))}}},dt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("FormulateSlot",{class:t.context.classes.grouping,attrs:{name:"grouping",context:t.context,"force-wrap":t.context.repeatable}},t._l(t.items,(function(e,n){return r("FormulateRepeatableProvider",{key:e.__id,attrs:{index:n,"set-field-value":function(e,r){return t.setFieldValue(n,e,r)},context:t.context},on:{remove:t.removeItem}},[t._t("default")],2)})),1)};dt._withStripped=!0;var pt=z({render:dt,staticRenderFns:[]},void 0,ft,void 0,!1,void 0,!1,void 0,void 0,void 0),ht={props:{context:{type:Object,required:!0}}},vt=function(){var t=this.$createElement;return(this._self._c||t)("label",{class:this.context.classes.label,attrs:{for:this.context.id},domProps:{textContent:this._s(this.context.label)}})};vt._withStripped=!0;var mt=z({render:vt,staticRenderFns:[]},void 0,ht,void 0,!1,void 0,!1,void 0,void 0,void 0),yt={props:{context:{type:Object,required:!0},addMore:{type:Function,required:!0}}},gt=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.context.classes.groupAddMore},[e("FormulateInput",{attrs:{type:"button",label:this.context.addLabel,"data-minor":"","data-ghost":""},on:{click:this.addMore}})],1)};gt._withStripped=!0;var bt=z({render:gt,staticRenderFns:[]},void 0,yt,void 0,!1,void 0,!1,void 0,void 0,void 0),xt={props:{context:{type:Object,required:!0}},computed:{type:function(){return this.context.type},attributes:function(){return this.context.attributes||{}},hasValue:function(){return this.context.hasValue}}},_t={name:"FormulateInputBox",mixins:[xt]},wt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.element,attrs:{"data-type":t.context.type}},["radio"===t.type?r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"radio"},domProps:{value:t.context.value,checked:t._q(t.context.model,t.context.value)},on:{blur:t.context.blurHandler,change:function(e){return t.$set(t.context,"model",t.context.value)}}},"input",t.attributes,!1),t.$listeners)):r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"checkbox"},domProps:{value:t.context.value,checked:Array.isArray(t.context.model)?t._i(t.context.model,t.context.value)>-1:t.context.model},on:{blur:t.context.blurHandler,change:function(e){var r=t.context.model,n=e.target,i=!!n.checked;if(Array.isArray(r)){var o=t.context.value,s=t._i(r,o);n.checked?s<0&&t.$set(t.context,"model",r.concat([o])):s>-1&&t.$set(t.context,"model",r.slice(0,s).concat(r.slice(s+1)))}else t.$set(t.context,"model",i)}}},"input",t.attributes,!1),t.$listeners)),t._v(" "),r("label",{tag:"component",class:t.context.classes.decorator,attrs:{for:t.attributes.id}})],1)};wt._withStripped=!0;var kt=z({render:wt,staticRenderFns:[]},void 0,_t,void 0,!1,void 0,!1,void 0,void 0,void 0),Et={name:"FormulateInputText",mixins:[xt]},At=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.element,attrs:{"data-type":t.context.type}},["checkbox"===t.type?r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.context.model)?t._i(t.context.model,null)>-1:t.context.model},on:{blur:t.context.blurHandler,change:function(e){var r=t.context.model,n=e.target,i=!!n.checked;if(Array.isArray(r)){var o=t._i(r,null);n.checked?o<0&&t.$set(t.context,"model",r.concat([null])):o>-1&&t.$set(t.context,"model",r.slice(0,o).concat(r.slice(o+1)))}else t.$set(t.context,"model",i)}}},"input",t.attributes,!1),t.$listeners)):"radio"===t.type?r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"radio"},domProps:{checked:t._q(t.context.model,null)},on:{blur:t.context.blurHandler,change:function(e){return t.$set(t.context,"model",null)}}},"input",t.attributes,!1),t.$listeners)):r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:t.type},domProps:{value:t.context.model},on:{blur:t.context.blurHandler,input:function(e){e.target.composing||t.$set(t.context,"model",e.target.value)}}},"input",t.attributes,!1),t.$listeners))])};At._withStripped=!0;var Ot=z({render:At,staticRenderFns:[]},void 0,Et,void 0,!1,void 0,!1,void 0,void 0,void 0),St={name:"FormulateFiles",props:{files:{type:f,required:!0},imagePreview:{type:Boolean,default:!1},context:{type:Object,required:!0}},computed:{fileUploads:function(){return this.files.files||[]}},watch:{files:function(){this.imagePreview&&this.files.loadPreviews()}},mounted:function(){this.imagePreview&&this.files.loadPreviews()}},Ft=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.fileUploads.length?r("ul",{class:t.context.classes.files},t._l(t.fileUploads,(function(e){return r("li",{key:e.uuid,attrs:{"data-has-error":!!e.error,"data-has-preview":!(!t.imagePreview||!e.previewData)}},[r("div",{class:t.context.classes.file},[t.imagePreview&&e.previewData?r("div",{class:t.context.classes.fileImagePreview},[r("img",{attrs:{src:e.previewData}})]):t._e(),t._v(" "),r("div",{class:t.context.classes.fileName,attrs:{title:e.name},domProps:{textContent:t._s(e.name)}}),t._v(" "),!1!==e.progress?r("div",{class:t.context.classes.fileProgress,attrs:{"data-just-finished":e.justFinished,"data-is-finished":!e.justFinished&&e.complete}},[r("div",{class:t.context.classes.fileProgressInner,style:{width:e.progress+"%"}})]):t._e(),t._v(" "),e.complete&&!e.justFinished||!1===e.progress?r("div",{class:t.context.classes.fileRemove,on:{click:e.removeFile}}):t._e()]),t._v(" "),e.error?r("div",{class:t.context.classes.fileUploadError,domProps:{textContent:t._s(e.error)}}):t._e()])})),0):t._e()};Ft._withStripped=!0;var Ct={name:"FormulateInputFile",components:{FormulateFiles:z({render:Ft,staticRenderFns:[]},void 0,St,void 0,!1,void 0,!1,void 0,void 0,void 0)},mixins:[xt],data:function(){return{isOver:!1}},computed:{hasFiles:function(){return!!(this.context.model instanceof f&&this.context.model.files.length)}},created:function(){Array.isArray(this.context.model)&&"string"==typeof this.context.model[0][this.$formulate.getFileUrlKey()]&&(this.context.model=this.$formulate.createUpload({files:this.context.model},this.context))},mounted:function(){window&&this.context.preventWindowDrops&&(window.addEventListener("dragover",this.preventDefault),window.addEventListener("drop",this.preventDefault))},destroyed:function(){window&&this.context.preventWindowDrops&&(window.removeEventListener("dragover",this.preventDefault),window.removeEventListener("drop",this.preventDefault))},methods:{preventDefault:function(t){"INPUT"!==t.target.tagName&&"file"!==t.target.getAttribute("type")&&(t=t||event).preventDefault()},handleFile:function(){var t=this;this.isOver=!1;var e=this.$refs.file;e.files.length&&(this.context.model=this.$formulate.createUpload(e,this.context),this.$nextTick((function(){return t.attemptImmediateUpload()})))},attemptImmediateUpload:function(){var t=this;"live"===this.context.uploadBehavior&&this.context.model instanceof f&&this.context.hasValidationErrors().then((function(e){e||t.context.model.upload()}))},handleDragOver:function(t){t.preventDefault(),this.isOver=!0},handleDragLeave:function(t){t.preventDefault(),this.isOver=!1}}},jt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.element,attrs:{"data-type":t.context.type,"data-has-files":t.hasFiles}},[r("div",{class:t.context.classes.uploadArea,attrs:{"data-has-files":t.hasFiles}},[r("input",t._g(t._b({ref:"file",attrs:{"data-is-drag-hover":t.isOver,type:"file"},on:{blur:t.context.blurHandler,change:t.handleFile,dragover:t.handleDragOver,dragleave:t.handleDragLeave}},"input",t.attributes,!1),t.$listeners)),t._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasFiles,expression:"!hasFiles"}],class:t.context.classes.uploadAreaMask}),t._v(" "),t.hasFiles?r("FormulateFiles",{attrs:{files:t.context.model,"image-preview":"image"===t.context.type&&"preview"===t.context.imageBehavior,context:t.context}}):t._e()],1)])};jt._withStripped=!0;var Pt=z({render:jt,staticRenderFns:[]},void 0,Ct,void 0,!1,void 0,!1,void 0,void 0,void 0),$t={props:{context:{type:Object,required:!0},removeItem:{type:Function,required:!0},index:{type:Number,required:!0}}},Vt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.groupRepeatable},[r("FormulateSlot",{attrs:{name:"remove",context:t.context,"remove-item":t.removeItem}},[r(t.context.slotComponents.remove,t._b({tag:"component",attrs:{context:t.context,"remove-item":t.removeItem}},"component",t.context.slotProps.remove,!1))],1),t._v(" "),t._t("default")],2)};Vt._withStripped=!0;var Dt=z({render:Vt,staticRenderFns:[]},void 0,$t,void 0,!1,void 0,!1,void 0,void 0,void 0);function It(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===e.indexOf(n)&&(r[n]=t[n]);return r}var Rt={name:"FormulateInputGroup",props:{context:{type:Object,required:!0}},computed:{options:function(){return this.context.options||[]},subType:function(){return"group"===this.context.type?"grouping":"inputs"},optionsWithContext:function(){var t=this,e=this.context,r=e.attributes,n=(r.id,It(r,["id"])),i=(e.blurHandler,e.classification,e.component,e.getValidationErrors,e.hasLabel,e.hasValidationErrors,e.isSubField,e.isValid,e.labelPosition,e.options,e.performValidation,e.setErrors,e.slotComponents,e.slotProps,e.validationErrors,e.visibleValidationErrors,e.classes,e.showValidationErrors,e.rootEmit,e.help,e.pseudoProps,It(e,["attributes","blurHandler","classification","component","getValidationErrors","hasLabel","hasValidationErrors","isSubField","isValid","labelPosition","options","performValidation","setErrors","slotComponents","slotProps","validationErrors","visibleValidationErrors","classes","showValidationErrors","rootEmit","help","pseudoProps"]));return this.options.map((function(e){return t.groupItemContext(i,e,n)}))},totalItems:function(){return Array.isArray(this.context.model)?this.context.model.length:this.context.minimum||1},canAddMore:function(){return this.context.repeatable&&this.totalItems-1:t.context.model},on:{blur:t.context.blurHandler,change:function(e){var r=t.context.model,n=e.target,i=!!n.checked;if(Array.isArray(r)){var o=t._i(r,null);n.checked?o<0&&t.$set(t.context,"model",r.concat([null])):o>-1&&t.$set(t.context,"model",r.slice(0,o).concat(r.slice(o+1)))}else t.$set(t.context,"model",i)}}},"input",t.attributes,!1),t.$listeners)):"radio"===t.type?r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"radio"},domProps:{checked:t._q(t.context.model,null)},on:{blur:t.context.blurHandler,change:function(e){return t.$set(t.context,"model",null)}}},"input",t.attributes,!1),t.$listeners)):r("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:t.type},domProps:{value:t.context.model},on:{blur:t.context.blurHandler,input:function(e){e.target.composing||t.$set(t.context,"model",e.target.value)}}},"input",t.attributes,!1),t.$listeners)),t._v(" "),t.context.showValue?r("div",{class:t.context.classes.rangeValue,domProps:{textContent:t._s(t.context.model)}}):t._e()])};qt._withStripped=!0;var Wt=z({render:qt,staticRenderFns:[]},void 0,zt,void 0,!1,void 0,!1,void 0,void 0,void 0),Kt={name:"FormulateInputTextArea",mixins:[xt]},Yt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.context.classes.element,attrs:{"data-type":"textarea"}},[r("textarea",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],domProps:{value:t.context.model},on:{blur:t.context.blurHandler,input:function(e){e.target.composing||t.$set(t.context,"model",e.target.value)}}},"textarea",t.attributes,!1),t.$listeners))])};Yt._withStripped=!0;var Zt=z({render:Yt,staticRenderFns:[]},void 0,Kt,void 0,!1,void 0,!1,void 0,void 0,void 0),Xt={provide:function(){var t=this;return Object.assign({},H(this,["getFormValues"]),{formulateSetter:function(e,r){return t.setFieldValue(e,r)}})},inject:{registerProvider:"registerProvider",deregisterProvider:"deregisterProvider"},props:{index:{type:Number,required:!0},context:{type:Object,required:!0},setFieldValue:{type:Function,required:!0}},data:function(){return Object.assign({},M(this),{isGrouping:!0})},computed:Object.assign({},L()),created:function(){this.registerProvider(this)},beforeDestroy:function(){this.deregisterProvider(this)},methods:Object.assign({},U(["setFieldValue"]),{removeItem:function(){this.$emit("remove",this.index)}})},Jt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("FormulateSlot",{attrs:{name:"repeatable",context:t.context,index:t.index,"remove-item":t.removeItem}},[r(t.context.slotComponents.repeatable,t._b({tag:"component",attrs:{context:t.context,index:t.index,"remove-item":t.removeItem}},"component",t.context.slotProps.repeatable,!1),[r("FormulateSlot",{attrs:{context:t.context,index:t.index,name:"default"}})],1)],1)};Jt._withStripped=!0;var Qt=z({render:Jt,staticRenderFns:[]},void 0,Xt,void 0,!1,void 0,!1,void 0,void 0,void 0),te={props:{context:{type:Object,required:!0},removeItem:{type:Function,required:!0}}},ee=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.context.repeatable?r("a",{class:t.context.classes.groupRepeatableRemove,attrs:{role:"button"},domProps:{textContent:t._s("Remove")},on:{click:function(e){return e.preventDefault(),t.removeItem(e)},keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.removeItem(e)}}}):t._e()};ee._withStripped=!0;var re=z({render:ee,staticRenderFns:[]},void 0,te,void 0,!1,void 0,!1,void 0,void 0,void 0),ne=function(){this.options={},this.defaults={components:{FormulateSlot:I,FormulateForm:K,FormulateHelp:ct,FormulateLabel:mt,FormulateInput:it,FormulateErrors:at,FormulateSchema:T,FormulateAddMore:bt,FormulateGrouping:pt,FormulateInputBox:kt,FormulateInputText:Ot,FormulateInputFile:Pt,FormulateRepeatable:Dt,FormulateInputGroup:Nt,FormulateInputButton:Lt,FormulateInputSelect:Gt,FormulateInputSlider:Wt,FormulateInputTextArea:Zt,FormulateRepeatableRemove:re,FormulateRepeatableProvider:Qt},slotComponents:{label:"FormulateLabel",help:"FormulateHelp",errors:"FormulateErrors",repeatable:"FormulateRepeatable",addMore:"FormulateAddMore",remove:"FormulateRepeatableRemove"},slotProps:{},library:c,rules:E,mimes:O,locale:!1,uploader:V,uploadUrl:!1,fileUrlKey:"url",uploadJustCompleteDuration:1e3,errorHandler:function(t){return t},plugins:[u["a"]],locales:{},idPrefix:"formulate-",baseClasses:function(t){return t},coreClasses:$,classes:{}},this.registry=new Map,this.idRegistry={}};ne.prototype.install=function(t,e){var r=this;t.prototype.$formulate=this,this.options=this.defaults;var n=this.defaults.plugins;for(var i in e&&Array.isArray(e.plugins)&&e.plugins.length&&(n=n.concat(e.plugins)),n.forEach((function(t){return"function"==typeof t?t(r):null})),this.extend(e||{}),this.options.components)t.component(i,this.options.components[i])},ne.prototype.nextId=function(t){var e=t.$route&&t.$route.path&&t.$route.path?t.$route.path.replace(/[/\\.\s]/g,"-"):"global";return Object.prototype.hasOwnProperty.call(this.idRegistry,e)||(this.idRegistry[e]=0),""+this.options.idPrefix+e+"-"+ ++this.idRegistry[e]},ne.prototype.extend=function(t){if("object"==typeof t)return this.options=this.merge(this.options,t),this;throw new Error("Formulate.extend expects an object, was "+typeof t)},ne.prototype.merge=function(t,e,r){void 0===r&&(r=!0);var n={};for(var i in t)e.hasOwnProperty(i)?Object(a["a"])(e[i])&&Object(a["a"])(t[i])?n[i]=this.merge(t[i],e[i],r):r&&Array.isArray(t[i])&&Array.isArray(e[i])?n[i]=t[i].concat(e[i]):n[i]=e[i]:n[i]=t[i];for(var o in e)n.hasOwnProperty(o)||(n[o]=e[o]);return n},ne.prototype.classify=function(t){return this.options.library.hasOwnProperty(t)?this.options.library[t].classification:"unknown"},ne.prototype.classes=function(t){var e=this,r=this.options.coreClasses(t),n=this.options.baseClasses(r,t);return Object.keys(n).reduce((function(r,i){var o,s=P(n[i],e.options.classes[i],t);return s=function(t,e,r,n){return Object.keys(F).reduce((function(e,i){if(F[i](n)){var o=""+t+v(i),s=o+"Class";r[o]&&(e=P(e,"string"==typeof r[o]?m(r[o]):r[o],n)),n[s]&&(e=P(e,"string"==typeof n[s]?m(n[s]):n[o+"Class"],n))}return e}),e)}(i,s=P(s,t[i+"Class"],t),e.options.classes,t),Object.assign(r,((o={})[i]=s,o))}),{})},ne.prototype.typeProps=function(t){var e=function(t){return Object.keys(t).reduce((function(e,r){return Array.isArray(t[r])?e.concat(t[r]):e}),[])},r=e(this.options.slotProps);return this.options.library[t]?r.concat(e(this.options.library[t].slotProps||{})):r},ne.prototype.slotProps=function(t,e,r){var n=Array.isArray(this.options.slotProps[e])?this.options.slotProps[e]:[],i=this.options.library[t];return i&&i.slotProps&&Array.isArray(i.slotProps[e])&&(n=n.concat(i.slotProps[e])),n.reduce((function(t,e){var n;return Object.assign(t,((n={})[e]=r[e],n))}),{})},ne.prototype.component=function(t){return!!this.options.library.hasOwnProperty(t)&&this.options.library[t].component},ne.prototype.slotComponent=function(t,e){var r=this.options.library[t];return r&&r.slotComponents&&r.slotComponents[e]?r.slotComponents[e]:this.options.slotComponents[e]},ne.prototype.rules=function(t){return void 0===t&&(t={}),Object.assign({},this.options.rules,t)},ne.prototype.i18n=function(t){if(t.$i18n)switch(typeof t.$i18n.locale){case"string":return t.$i18n.locale;case"function":return t.$i18n.locale()}return!1},ne.prototype.getLocale=function(t){var e=this;return this.selectedLocale||(this.selectedLocale=[this.options.locale,this.i18n(t),"en"].reduce((function(t,r){if(t)return t;if(r){var n=function(t){return t.split("-").reduce((function(t,e){return t.length&&t.unshift(t[0]+"-"+e),t.length?t:[e]}),[])}(r).find((function(t){return x(e.options.locales,t)}));n&&(t=n)}return t}),!1)),this.selectedLocale},ne.prototype.validationMessage=function(t,e,r){var n=this.options.locales[this.getLocale(r)];return n.hasOwnProperty(t)?n[t](e):n.hasOwnProperty("default")?n.default(e):"Invalid field value"},ne.prototype.register=function(t){"FormulateForm"===t.$options.name&&t.name&&this.registry.set(t.name,t)},ne.prototype.deregister=function(t){"FormulateForm"===t.$options.name&&t.name&&this.registry.has(t.name)&&this.registry.delete(t.name)},ne.prototype.handle=function(t,e,r){void 0===r&&(r=!1);var n=r?t:this.options.errorHandler(t,e);return e&&this.registry.has(e)&&this.registry.get(e).applyErrors({formErrors:m(n.formErrors),inputErrors:n.inputErrors||{}}),n},ne.prototype.reset=function(t,e){void 0===e&&(e={}),this.resetValidation(t),this.setValues(t,e)},ne.prototype.submit=function(t){this.registry.get(t).formSubmitted()},ne.prototype.resetValidation=function(t){var e=this.registry.get(t);e.hideErrors(t),e.namedErrors=[],e.namedFieldErrors={}},ne.prototype.setValues=function(t,e){e&&!Array.isArray(e)&&"object"==typeof e&&this.registry.get(t).setValues(Object.assign({},e))},ne.prototype.getUploader=function(){return this.options.uploader||!1},ne.prototype.getUploadUrl=function(){return this.options.uploadUrl||!1},ne.prototype.getFileUrlKey=function(){return this.options.fileUrlKey||"url"},ne.prototype.createUpload=function(t,e){return new f(t,e,this.options)};var ie=new ne;e["a"]=ie},d81d:function(t,e,r){"use strict";var n=r("23e7"),i=r("b727").map,o=r("1dde"),s=r("ae40"),a=o("map"),u=s("map");n({target:"Array",proto:!0,forced:!a||!u},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},da84:function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")()}).call(this,r("c8ba"))},dbb4:function(t,e,r){var n=r("23e7"),i=r("83ab"),o=r("56ef"),s=r("fc6a"),a=r("06cf"),u=r("8418");n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,r,n=s(t),i=a.f,l=o(n),c={},f=0;while(l.length>f)r=i(n,e=l[f++]),void 0!==r&&u(c,e,r);return c}})},ddb0:function(t,e,r){var n=r("da84"),i=r("fdbc"),o=r("e260"),s=r("9112"),a=r("b622"),u=a("iterator"),l=a("toStringTag"),c=o.values;for(var f in i){var d=n[f],p=d&&d.prototype;if(p){if(p[u]!==c)try{s(p,u,c)}catch(v){p[u]=c}if(p[l]||s(p,l,f),i[f])for(var h in o)if(p[h]!==o[h])try{s(p,h,o[h])}catch(v){p[h]=o[h]}}}},df75:function(t,e,r){var n=r("ca84"),i=r("7839");t.exports=Object.keys||function(t){return n(t,i)}},e01a:function(t,e,r){"use strict";var n=r("23e7"),i=r("83ab"),o=r("da84"),s=r("5135"),a=r("861d"),u=r("9bf2").f,l=r("e893"),c=o.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var f={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new c(t):void 0===t?c():c(t);return""===t&&(f[e]=!0),e};l(d,c);var p=d.prototype=c.prototype;p.constructor=d;var h=p.toString,v="Symbol(test)"==String(c("test")),m=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,e=h.call(t);if(s(f,t))return"";var r=v?e.slice(7,-1):e.replace(m,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:d})}},e163:function(t,e,r){var n=r("5135"),i=r("7b0b"),o=r("f772"),s=r("e177"),a=o("IE_PROTO"),u=Object.prototype;t.exports=s?Object.getPrototypeOf:function(t){return t=i(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},e177:function(t,e,r){var n=r("d039");t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e25e:function(t,e,r){var n=r("23e7"),i=r("c20d");n({global:!0,forced:parseInt!=i},{parseInt:i})},e260:function(t,e,r){"use strict";var n=r("fc6a"),i=r("44d2"),o=r("3f8c"),s=r("69f3"),a=r("7dd0"),u="Array Iterator",l=s.set,c=s.getterFor(u);t.exports=a(Array,"Array",(function(t,e){l(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,r){var n=r("6eeb");t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},e439:function(t,e,r){var n=r("23e7"),i=r("d039"),o=r("fc6a"),s=r("06cf").f,a=r("83ab"),u=i((function(){s(1)})),l=!a||u;n({target:"Object",stat:!0,forced:l,sham:!a},{getOwnPropertyDescriptor:function(t,e){return s(o(t),e)}})},e4fd:function(t,e,r){(function(t,n){n(e,r("2b0e"))})(0,(function(t,e){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e;var r=function(t){return Object.prototype.toString.call(t)};function n(t){return"function"===typeof t&&/native code/.test(t.toString())}var i="undefined"!==typeof Symbol&&n(Symbol)&&"undefined"!==typeof Reflect&&n(Reflect.ownKeys),o=function(t){return t},s={enumerable:!0,configurable:!0,get:o,set:o};function a(t,e,r){var n=r.get,i=r.set;s.get=n||o,s.set=i||o,Object.defineProperty(t,e,s)}function u(t,e,r,n){Object.defineProperty(t,e,{value:r,enumerable:!!n,writable:!0,configurable:!0})}function l(t,e){return Object.hasOwnProperty.call(t,e)}function c(t,e){if(!t)throw new Error("[vue-composition-api] "+e)}function f(t){return Array.isArray(t)}function d(t){return"[object Object]"===r(t)}function p(t){return"function"===typeof t}function h(t,r){e.util.warn(t,r)}function v(t,e,r){if(h("Error in "+r+': "'+t.toString()+'"',e),"undefined"===typeof window||"undefined"===typeof console)throw t;console.error(t)} +/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + ***************************************************************************** */var m=function(){return m=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{while((void 0===e||e-- >0)&&!(n=o.next()).done)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o["return"])&&r.call(o)}finally{if(i)throw i.error}}return s}function b(){for(var t=[],e=0;e=0&&Math.floor(e)===e&&isFinite(t)}function lt(t,e,r){var n=w(),i=n.util,o=i.warn,s=i.defineReactive;if((st(t)||at(t))&&o("Cannot set reactive property on undefined, null, or primitive value: "+t),f(t)&&ut(e))return t.length=Math.max(t.length,e),t.splice(e,1,r),r;if(e in t&&!(e in Object.prototype))return t[e]=r,r;var a=t.__ob__;return t._isVue||a&&a.vmCount?(o("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),r):a?(s(a.value,e,r),Q(t,e,r),rt(a.value[e]),a.dep.notify(),r):(t[e]=r,r)}function ct(t,e){if(!t)return e;if(!e)return t;for(var r,n,o,s=i?Reflect.ownKeys(t):Object.keys(t),a=0;a + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function n(t){return null!=t&&"object"===typeof t&&!1===Array.isArray(t)} +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function i(t){return!0===n(t)&&"[object Object]"===Object.prototype.toString.call(t)}function o(t){var e,r;return!1!==i(t)&&(e=t.constructor,"function"===typeof e&&(r=e.prototype,!1!==i(r)&&!1!==r.hasOwnProperty("isPrototypeOf")))}e["a"]=o},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,r){"use strict";var n,i,o,s,a=r("23e7"),u=r("c430"),l=r("da84"),c=r("d066"),f=r("fea9"),d=r("6eeb"),p=r("e2cc"),h=r("d44e"),v=r("2626"),m=r("861d"),y=r("1c0b"),g=r("19aa"),b=r("c6b6"),x=r("8925"),_=r("2266"),w=r("1c7e"),k=r("4840"),E=r("2cf4").set,A=r("b575"),O=r("cdf9"),S=r("44de"),F=r("f069"),C=r("e667"),j=r("69f3"),P=r("94ca"),$=r("b622"),V=r("2d00"),D=$("species"),I="Promise",R=j.get,T=j.set,N=j.getterFor(I),B=f,M=l.TypeError,L=l.document,U=l.process,H=c("fetch"),G=F.f,z=G,q="process"==b(U),W=!!(L&&L.createEvent&&l.dispatchEvent),K="unhandledrejection",Y="rejectionhandled",Z=0,X=1,J=2,Q=1,tt=2,et=P(I,(function(){var t=x(B)!==String(B);if(!t){if(66===V)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!B.prototype["finally"])return!0;if(V>=51&&/native code/.test(B))return!1;var e=B.resolve(1),r=function(t){t((function(){}),(function(){}))},n=e.constructor={};return n[D]=r,!(e.then((function(){}))instanceof r)})),rt=et||!w((function(t){B.all(t)["catch"]((function(){}))})),nt=function(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e},it=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;A((function(){var i=e.value,o=e.state==X,s=0;while(n.length>s){var a,u,l,c=n[s++],f=o?c.ok:c.fail,d=c.resolve,p=c.reject,h=c.domain;try{f?(o||(e.rejection===tt&&ut(t,e),e.rejection=Q),!0===f?a=i:(h&&h.enter(),a=f(i),h&&(h.exit(),l=!0)),a===c.promise?p(M("Promise-chain cycle")):(u=nt(a))?u.call(a,d,p):d(a)):p(i)}catch(v){h&&!l&&h.exit(),p(v)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&st(t,e)}))}},ot=function(t,e,r){var n,i;W?(n=L.createEvent("Event"),n.promise=e,n.reason=r,n.initEvent(t,!1,!0),l.dispatchEvent(n)):n={promise:e,reason:r},(i=l["on"+t])?i(n):t===K&&S("Unhandled promise rejection",r)},st=function(t,e){E.call(l,(function(){var r,n=e.value,i=at(e);if(i&&(r=C((function(){q?U.emit("unhandledRejection",n,t):ot(K,t,n)})),e.rejection=q||at(e)?tt:Q,r.error))throw r.value}))},at=function(t){return t.rejection!==Q&&!t.parent},ut=function(t,e){E.call(l,(function(){q?U.emit("rejectionHandled",t):ot(Y,t,e.value)}))},lt=function(t,e,r,n){return function(i){t(e,r,i,n)}},ct=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=J,it(t,e,!0))},ft=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw M("Promise can't be resolved itself");var i=nt(r);i?A((function(){var n={done:!1};try{i.call(r,lt(ft,t,n,e),lt(ct,t,n,e))}catch(o){ct(t,n,o,e)}})):(e.value=r,e.state=X,it(t,e,!1))}catch(o){ct(t,{done:!1},o,e)}}};et&&(B=function(t){g(this,B,I),y(t),n.call(this);var e=R(this);try{t(lt(ft,this,e),lt(ct,this,e))}catch(r){ct(this,e,r)}},n=function(t){T(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},n.prototype=p(B.prototype,{then:function(t,e){var r=N(this),n=G(k(this,B));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=q?U.domain:void 0,r.parent=!0,r.reactions.push(n),r.state!=Z&&it(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n,e=R(t);this.promise=t,this.resolve=lt(ft,t,e),this.reject=lt(ct,t,e)},F.f=G=function(t){return t===B||t===o?new i(t):z(t)},u||"function"!=typeof f||(s=f.prototype.then,d(f.prototype,"then",(function(t,e){var r=this;return new B((function(t,e){s.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof H&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return O(B,H.apply(l,arguments))}}))),a({global:!0,wrap:!0,forced:et},{Promise:B}),h(B,I,!1,!0),v(I),o=c(I),a({target:I,stat:!0,forced:et},{reject:function(t){var e=G(this);return e.reject.call(void 0,t),e.promise}}),a({target:I,stat:!0,forced:u||et},{resolve:function(t){return O(u&&this===o?B:this,t)}}),a({target:I,stat:!0,forced:rt},{all:function(t){var e=this,r=G(e),n=r.resolve,i=r.reject,o=C((function(){var r=y(e.resolve),o=[],s=0,a=1;_(t,(function(t){var u=s++,l=!1;o.push(void 0),a++,r.call(e,t).then((function(t){l||(l=!0,o[u]=t,--a||n(o))}),i)})),--a||n(o)}));return o.error&&i(o.value),r.promise},race:function(t){var e=this,r=G(e),n=r.reject,i=C((function(){var i=y(e.resolve);_(t,(function(t){i.call(e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},e893:function(t,e,r){var n=r("5135"),i=r("56ef"),o=r("06cf"),s=r("9bf2");t.exports=function(t,e){for(var r=i(e),a=s.f,u=o.f,l=0;l= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = _getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n _get = Reflect.get;\n } else {\n _get = function _get(target, property, receiver) {\n var base = _superPropBase(target, property);\n\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nfunction set(target, property, value, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.set) {\n set = Reflect.set;\n } else {\n set = function set(target, property, value, receiver) {\n var base = _superPropBase(target, property);\n\n var desc;\n\n if (base) {\n desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.set) {\n desc.set.call(receiver, value);\n return true;\n } else if (!desc.writable) {\n return false;\n }\n }\n\n desc = Object.getOwnPropertyDescriptor(receiver, property);\n\n if (desc) {\n if (!desc.writable) {\n return false;\n }\n\n desc.value = value;\n Object.defineProperty(receiver, property, desc);\n } else {\n _defineProperty(receiver, property, value);\n }\n\n return true;\n };\n }\n\n return set(target, property, value, receiver);\n}\n\nfunction _set(target, property, value, receiver, isStrict) {\n var s = set(target, property, value, receiver || target);\n\n if (!s && isStrict) {\n throw new Error('failed to set property');\n }\n\n return value;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nexport { _createClass as _, _classCallCheck as a, _objectWithoutProperties as b, _typeof as c, _inherits as d, _createSuper as e, _slicedToArray as f, _get as g, _getPrototypeOf as h, _set as i };\n","import { c as _typeof } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\n\n/** Checks if value is string */\nfunction isString(str) {\n return typeof str === 'string' || str instanceof String;\n}\n/**\r\n Direction\r\n @prop {string} NONE\r\n @prop {string} LEFT\r\n @prop {string} FORCE_LEFT\r\n @prop {string} RIGHT\r\n @prop {string} FORCE_RIGHT\r\n*/\n\nvar DIRECTION = {\n NONE: 'NONE',\n LEFT: 'LEFT',\n FORCE_LEFT: 'FORCE_LEFT',\n RIGHT: 'RIGHT',\n FORCE_RIGHT: 'FORCE_RIGHT'\n};\n/**\r\n Direction\r\n @enum {string}\r\n*/\n\n/** Returns next char index in direction */\nfunction indexInDirection(pos, direction) {\n if (direction === DIRECTION.LEFT) --pos;\n return pos;\n}\n/** Returns next char position in direction */\n\nfunction posInDirection(pos, direction) {\n switch (direction) {\n case DIRECTION.LEFT:\n case DIRECTION.FORCE_LEFT:\n return --pos;\n\n case DIRECTION.RIGHT:\n case DIRECTION.FORCE_RIGHT:\n return ++pos;\n\n default:\n return pos;\n }\n}\n/** */\n\nfunction forceDirection(direction) {\n switch (direction) {\n case DIRECTION.LEFT:\n return DIRECTION.FORCE_LEFT;\n\n case DIRECTION.RIGHT:\n return DIRECTION.FORCE_RIGHT;\n\n default:\n return direction;\n }\n}\n/** Escapes regular expression control chars */\n\nfunction escapeRegExp(str) {\n return str.replace(/([.*+?^=!:${}()|[\\]\\/\\\\])/g, '\\\\$1');\n} // cloned from https://github.com/epoberezkin/fast-deep-equal with small changes\n\nfunction objectIncludes(b, a) {\n if (a === b) return true;\n var arrA = Array.isArray(a),\n arrB = Array.isArray(b),\n i;\n\n if (arrA && arrB) {\n if (a.length != b.length) return false;\n\n for (i = 0; i < a.length; i++) {\n if (!objectIncludes(a[i], b[i])) return false;\n }\n\n return true;\n }\n\n if (arrA != arrB) return false;\n\n if (a && b && _typeof(a) === 'object' && _typeof(b) === 'object') {\n var dateA = a instanceof Date,\n dateB = b instanceof Date;\n if (dateA && dateB) return a.getTime() == b.getTime();\n if (dateA != dateB) return false;\n var regexpA = a instanceof RegExp,\n regexpB = b instanceof RegExp;\n if (regexpA && regexpB) return a.toString() == b.toString();\n if (regexpA != regexpB) return false;\n var keys = Object.keys(a); // if (keys.length !== Object.keys(b).length) return false;\n\n for (i = 0; i < keys.length; i++) {\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n }\n\n for (i = 0; i < keys.length; i++) {\n if (!objectIncludes(b[keys[i]], a[keys[i]])) return false;\n }\n\n return true;\n } else if (a && b && typeof a === 'function' && typeof b === 'function') {\n return a.toString() === b.toString();\n }\n\n return false;\n}\n/** Selection range */\n\nexport { DIRECTION, escapeRegExp, forceDirection, indexInDirection, isString, objectIncludes, posInDirection };\n","import { _ as _createClass, a as _classCallCheck } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport { DIRECTION } from './utils.js';\n\n/** Provides details of changing input */\n\nvar ActionDetails = /*#__PURE__*/function () {\n /** Current input value */\n\n /** Current cursor position */\n\n /** Old input value */\n\n /** Old selection */\n function ActionDetails(value, cursorPos, oldValue, oldSelection) {\n _classCallCheck(this, ActionDetails);\n\n this.value = value;\n this.cursorPos = cursorPos;\n this.oldValue = oldValue;\n this.oldSelection = oldSelection; // double check if left part was changed (autofilling, other non-standard input triggers)\n\n while (this.value.slice(0, this.startChangePos) !== this.oldValue.slice(0, this.startChangePos)) {\n --this.oldSelection.start;\n }\n }\n /**\r\n Start changing position\r\n @readonly\r\n */\n\n\n _createClass(ActionDetails, [{\n key: \"startChangePos\",\n get: function get() {\n return Math.min(this.cursorPos, this.oldSelection.start);\n }\n /**\r\n Inserted symbols count\r\n @readonly\r\n */\n\n }, {\n key: \"insertedCount\",\n get: function get() {\n return this.cursorPos - this.startChangePos;\n }\n /**\r\n Inserted symbols\r\n @readonly\r\n */\n\n }, {\n key: \"inserted\",\n get: function get() {\n return this.value.substr(this.startChangePos, this.insertedCount);\n }\n /**\r\n Removed symbols count\r\n @readonly\r\n */\n\n }, {\n key: \"removedCount\",\n get: function get() {\n // Math.max for opposite operation\n return Math.max(this.oldSelection.end - this.startChangePos || // for Delete\n this.oldValue.length - this.value.length, 0);\n }\n /**\r\n Removed symbols\r\n @readonly\r\n */\n\n }, {\n key: \"removed\",\n get: function get() {\n return this.oldValue.substr(this.startChangePos, this.removedCount);\n }\n /**\r\n Unchanged head symbols\r\n @readonly\r\n */\n\n }, {\n key: \"head\",\n get: function get() {\n return this.value.substring(0, this.startChangePos);\n }\n /**\r\n Unchanged tail symbols\r\n @readonly\r\n */\n\n }, {\n key: \"tail\",\n get: function get() {\n return this.value.substring(this.startChangePos + this.insertedCount);\n }\n /**\r\n Remove direction\r\n @readonly\r\n */\n\n }, {\n key: \"removeDirection\",\n get: function get() {\n if (!this.removedCount || this.insertedCount) return DIRECTION.NONE; // align right if delete at right or if range removed (event with backspace)\n\n return this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos ? DIRECTION.RIGHT : DIRECTION.LEFT;\n }\n }]);\n\n return ActionDetails;\n}();\n\nexport default ActionDetails;\n","import { _ as _createClass, a as _classCallCheck } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\n\n/**\r\n Provides details of changing model value\r\n @param {Object} [details]\r\n @param {string} [details.inserted] - Inserted symbols\r\n @param {boolean} [details.skip] - Can skip chars\r\n @param {number} [details.removeCount] - Removed symbols count\r\n @param {number} [details.tailShift] - Additional offset if any changes occurred before tail\r\n*/\nvar ChangeDetails = /*#__PURE__*/function () {\n /** Inserted symbols */\n\n /** Can skip chars */\n\n /** Additional offset if any changes occurred before tail */\n\n /** Raw inserted is used by dynamic mask */\n function ChangeDetails(details) {\n _classCallCheck(this, ChangeDetails);\n\n Object.assign(this, {\n inserted: '',\n rawInserted: '',\n skip: false,\n tailShift: 0\n }, details);\n }\n /**\r\n Aggregate changes\r\n @returns {ChangeDetails} `this`\r\n */\n\n\n _createClass(ChangeDetails, [{\n key: \"aggregate\",\n value: function aggregate(details) {\n this.rawInserted += details.rawInserted;\n this.skip = this.skip || details.skip;\n this.inserted += details.inserted;\n this.tailShift += details.tailShift;\n return this;\n }\n /** Total offset considering all changes */\n\n }, {\n key: \"offset\",\n get: function get() {\n return this.tailShift + this.inserted.length;\n }\n }]);\n\n return ChangeDetails;\n}();\n\nexport default ChangeDetails;\n","import { _ as _createClass, a as _classCallCheck } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\n\n/** Provides details of continuous extracted tail */\nvar ContinuousTailDetails = /*#__PURE__*/function () {\n /** Tail value as string */\n\n /** Tail start position */\n\n /** Start position */\n function ContinuousTailDetails() {\n var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var stop = arguments.length > 2 ? arguments[2] : undefined;\n\n _classCallCheck(this, ContinuousTailDetails);\n\n this.value = value;\n this.from = from;\n this.stop = stop;\n }\n\n _createClass(ContinuousTailDetails, [{\n key: \"toString\",\n value: function toString() {\n return this.value;\n }\n }, {\n key: \"extend\",\n value: function extend(tail) {\n this.value += String(tail);\n }\n }, {\n key: \"appendTo\",\n value: function appendTo(masked) {\n return masked.append(this.toString(), {\n tail: true\n }).aggregate(masked._appendPlaceholder());\n }\n }, {\n key: \"state\",\n get: function get() {\n return {\n value: this.value,\n from: this.from,\n stop: this.stop\n };\n },\n set: function set(state) {\n Object.assign(this, state);\n }\n }, {\n key: \"shiftBefore\",\n value: function shiftBefore(pos) {\n if (this.from >= pos || !this.value.length) return '';\n var shiftChar = this.value[0];\n this.value = this.value.slice(1);\n return shiftChar;\n }\n }]);\n\n return ContinuousTailDetails;\n}();\n\nexport default ContinuousTailDetails;\n","/**\r\n * Applies mask on element.\r\n * @constructor\r\n * @param {HTMLInputElement|HTMLTextAreaElement|MaskElement} el - Element to apply mask\r\n * @param {Object} opts - Custom mask options\r\n * @return {InputMask}\r\n */\nfunction IMask(el) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n // currently available only for input-like elements\n return new IMask.InputMask(el, opts);\n}\n\nexport default IMask;\n","import { _ as _createClass, a as _classCallCheck } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport ChangeDetails from '../core/change-details.js';\nimport ContinuousTailDetails from '../core/continuous-tail-details.js';\nimport { isString } from '../core/utils.js';\nimport IMask from '../core/holder.js';\n\n/** Supported mask type */\n\n/** Provides common masking stuff */\nvar Masked = /*#__PURE__*/function () {\n // $Shape; TODO after fix https://github.com/facebook/flow/issues/4773\n\n /** @type {Mask} */\n\n /** */\n // $FlowFixMe no ideas\n\n /** Transforms value before mask processing */\n\n /** Validates if value is acceptable */\n\n /** Does additional processing in the end of editing */\n\n /** Format typed value to string */\n\n /** Parse strgin to get typed value */\n\n /** Enable characters overwriting */\n\n /** */\n function Masked(opts) {\n _classCallCheck(this, Masked);\n\n this._value = '';\n\n this._update(Object.assign({}, Masked.DEFAULTS, opts));\n\n this.isInitialized = true;\n }\n /** Sets and applies new options */\n\n\n _createClass(Masked, [{\n key: \"updateOptions\",\n value: function updateOptions(opts) {\n if (!Object.keys(opts).length) return;\n this.withValueRefresh(this._update.bind(this, opts));\n }\n /**\r\n Sets new options\r\n @protected\r\n */\n\n }, {\n key: \"_update\",\n value: function _update(opts) {\n Object.assign(this, opts);\n }\n /** Mask state */\n\n }, {\n key: \"state\",\n get: function get() {\n return {\n _value: this.value\n };\n },\n set: function set(state) {\n this._value = state._value;\n }\n /** Resets value */\n\n }, {\n key: \"reset\",\n value: function reset() {\n this._value = '';\n }\n /** */\n\n }, {\n key: \"value\",\n get: function get() {\n return this._value;\n },\n set: function set(value) {\n this.resolve(value);\n }\n /** Resolve new value */\n\n }, {\n key: \"resolve\",\n value: function resolve(value) {\n this.reset();\n this.append(value, {\n input: true\n }, '');\n this.doCommit();\n return this.value;\n }\n /** */\n\n }, {\n key: \"unmaskedValue\",\n get: function get() {\n return this.value;\n },\n set: function set(value) {\n this.reset();\n this.append(value, {}, '');\n this.doCommit();\n }\n /** */\n\n }, {\n key: \"typedValue\",\n get: function get() {\n return this.doParse(this.value);\n },\n set: function set(value) {\n this.value = this.doFormat(value);\n }\n /** Value that includes raw user input */\n\n }, {\n key: \"rawInputValue\",\n get: function get() {\n return this.extractInput(0, this.value.length, {\n raw: true\n });\n },\n set: function set(value) {\n this.reset();\n this.append(value, {\n raw: true\n }, '');\n this.doCommit();\n }\n /** */\n\n }, {\n key: \"isComplete\",\n get: function get() {\n return true;\n }\n /** Finds nearest input position in direction */\n\n }, {\n key: \"nearestInputPos\",\n value: function nearestInputPos(cursorPos, direction) {\n return cursorPos;\n }\n /** Extracts value in range considering flags */\n\n }, {\n key: \"extractInput\",\n value: function extractInput() {\n var fromPos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var toPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.value.length;\n return this.value.slice(fromPos, toPos);\n }\n /** Extracts tail in range */\n\n }, {\n key: \"extractTail\",\n value: function extractTail() {\n var fromPos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var toPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.value.length;\n return new ContinuousTailDetails(this.extractInput(fromPos, toPos), fromPos);\n }\n /** Appends tail */\n // $FlowFixMe no ideas\n\n }, {\n key: \"appendTail\",\n value: function appendTail(tail) {\n if (isString(tail)) tail = new ContinuousTailDetails(String(tail));\n return tail.appendTo(this);\n }\n /** Appends char */\n\n }, {\n key: \"_appendCharRaw\",\n value: function _appendCharRaw(ch) {\n if (!ch) return new ChangeDetails();\n this._value += ch;\n return new ChangeDetails({\n inserted: ch,\n rawInserted: ch\n });\n }\n /** Appends char */\n\n }, {\n key: \"_appendChar\",\n value: function _appendChar(ch) {\n var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var checkTail = arguments.length > 2 ? arguments[2] : undefined;\n var consistentState = this.state;\n\n var details = this._appendCharRaw(this.doPrepare(ch, flags), flags);\n\n if (details.inserted) {\n var consistentTail;\n var appended = this.doValidate(flags) !== false;\n\n if (appended && checkTail != null) {\n // validation ok, check tail\n var beforeTailState = this.state;\n\n if (this.overwrite) {\n consistentTail = checkTail.state;\n checkTail.shiftBefore(this.value.length);\n }\n\n var tailDetails = this.appendTail(checkTail);\n appended = tailDetails.rawInserted === checkTail.toString(); // if ok, rollback state after tail\n\n if (appended && tailDetails.inserted) this.state = beforeTailState;\n } // revert all if something went wrong\n\n\n if (!appended) {\n details = new ChangeDetails();\n this.state = consistentState;\n if (checkTail && consistentTail) checkTail.state = consistentTail;\n }\n }\n\n return details;\n }\n /** Appends optional placeholder at end */\n\n }, {\n key: \"_appendPlaceholder\",\n value: function _appendPlaceholder() {\n return new ChangeDetails();\n }\n /** Appends symbols considering flags */\n // $FlowFixMe no ideas\n\n }, {\n key: \"append\",\n value: function append(str, flags, tail) {\n if (!isString(str)) throw new Error('value should be string');\n var details = new ChangeDetails();\n var checkTail = isString(tail) ? new ContinuousTailDetails(String(tail)) : tail;\n if (flags && flags.tail) flags._beforeTailState = this.state;\n\n for (var ci = 0; ci < str.length; ++ci) {\n details.aggregate(this._appendChar(str[ci], flags, checkTail));\n } // append tail but aggregate only tailShift\n\n\n if (checkTail != null) {\n details.tailShift += this.appendTail(checkTail).tailShift; // TODO it's a good idea to clear state after appending ends\n // but it causes bugs when one append calls another (when dynamic dispatch set rawInputValue)\n // this._resetBeforeTailState();\n }\n\n return details;\n }\n /** */\n\n }, {\n key: \"remove\",\n value: function remove() {\n var fromPos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var toPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.value.length;\n this._value = this.value.slice(0, fromPos) + this.value.slice(toPos);\n return new ChangeDetails();\n }\n /** Calls function and reapplies current value */\n\n }, {\n key: \"withValueRefresh\",\n value: function withValueRefresh(fn) {\n if (this._refreshing || !this.isInitialized) return fn();\n this._refreshing = true;\n var rawInput = this.rawInputValue;\n var value = this.value;\n var ret = fn();\n this.rawInputValue = rawInput; // append lost trailing chars at end\n\n if (this.value && this.value !== value && value.indexOf(this.value) === 0) {\n this.append(value.slice(this.value.length), {}, '');\n }\n\n delete this._refreshing;\n return ret;\n }\n /** */\n\n }, {\n key: \"runIsolated\",\n value: function runIsolated(fn) {\n if (this._isolated || !this.isInitialized) return fn(this);\n this._isolated = true;\n var state = this.state;\n var ret = fn(this);\n this.state = state;\n delete this._isolated;\n return ret;\n }\n /**\r\n Prepares string before mask processing\r\n @protected\r\n */\n\n }, {\n key: \"doPrepare\",\n value: function doPrepare(str) {\n var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return this.prepare ? this.prepare(str, this, flags) : str;\n }\n /**\r\n Validates if value is acceptable\r\n @protected\r\n */\n\n }, {\n key: \"doValidate\",\n value: function doValidate(flags) {\n return (!this.validate || this.validate(this.value, this, flags)) && (!this.parent || this.parent.doValidate(flags));\n }\n /**\r\n Does additional processing in the end of editing\r\n @protected\r\n */\n\n }, {\n key: \"doCommit\",\n value: function doCommit() {\n if (this.commit) this.commit(this.value, this);\n }\n /** */\n\n }, {\n key: \"doFormat\",\n value: function doFormat(value) {\n return this.format ? this.format(value, this) : value;\n }\n /** */\n\n }, {\n key: \"doParse\",\n value: function doParse(str) {\n return this.parse ? this.parse(str, this) : str;\n }\n /** */\n\n }, {\n key: \"splice\",\n value: function splice(start, deleteCount, inserted, removeDirection) {\n var tailPos = start + deleteCount;\n var tail = this.extractTail(tailPos);\n var startChangePos = this.nearestInputPos(start, removeDirection);\n var changeDetails = new ChangeDetails({\n tailShift: startChangePos - start // adjust tailShift if start was aligned\n\n }).aggregate(this.remove(startChangePos)).aggregate(this.append(inserted, {\n input: true\n }, tail));\n return changeDetails;\n }\n }]);\n\n return Masked;\n}();\nMasked.DEFAULTS = {\n format: function format(v) {\n return v;\n },\n parse: function parse(v) {\n return v;\n }\n};\nIMask.Masked = Masked;\n\nexport default Masked;\n","import { isString } from '../core/utils.js';\nimport IMask from '../core/holder.js';\nimport '../_rollupPluginBabelHelpers-6ccb1f64.js';\n\n/** Get Masked class by mask type */\n\nfunction maskedClass(mask) {\n if (mask == null) {\n throw new Error('mask property should be defined');\n } // $FlowFixMe\n\n\n if (mask instanceof RegExp) return IMask.MaskedRegExp; // $FlowFixMe\n\n if (isString(mask)) return IMask.MaskedPattern; // $FlowFixMe\n\n if (mask instanceof Date || mask === Date) return IMask.MaskedDate; // $FlowFixMe\n\n if (mask instanceof Number || typeof mask === 'number' || mask === Number) return IMask.MaskedNumber; // $FlowFixMe\n\n if (Array.isArray(mask) || mask === Array) return IMask.MaskedDynamic; // $FlowFixMe\n\n if (IMask.Masked && mask.prototype instanceof IMask.Masked) return mask; // $FlowFixMe\n\n if (mask instanceof Function) return IMask.MaskedFunction; // $FlowFixMe\n\n if (mask instanceof IMask.Masked) return mask.constructor;\n console.warn('Mask not found for mask', mask); // eslint-disable-line no-console\n // $FlowFixMe\n\n return IMask.Masked;\n}\n/** Creates new {@link Masked} depending on mask type */\n\nfunction createMask(opts) {\n // $FlowFixMe\n if (IMask.Masked && opts instanceof IMask.Masked) return opts;\n opts = Object.assign({}, opts);\n var mask = opts.mask; // $FlowFixMe\n\n if (IMask.Masked && mask instanceof IMask.Masked) return mask;\n var MaskedClass = maskedClass(mask);\n if (!MaskedClass) throw new Error('Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.');\n return new MaskedClass(opts);\n}\nIMask.createMask = createMask;\n\nexport default createMask;\nexport { maskedClass };\n","import { _ as _createClass, a as _classCallCheck, b as _objectWithoutProperties } from '../../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport createMask from '../factory.js';\nimport ChangeDetails from '../../core/change-details.js';\nimport { DIRECTION } from '../../core/utils.js';\nimport '../../core/holder.js';\n\nvar DEFAULT_INPUT_DEFINITIONS = {\n '0': /\\d/,\n 'a': /[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]/,\n // http://stackoverflow.com/a/22075070\n '*': /./\n};\n/** */\n\nvar PatternInputDefinition = /*#__PURE__*/function () {\n /** */\n\n /** */\n\n /** */\n\n /** */\n\n /** */\n\n /** */\n function PatternInputDefinition(opts) {\n _classCallCheck(this, PatternInputDefinition);\n\n var mask = opts.mask,\n blockOpts = _objectWithoutProperties(opts, [\"mask\"]);\n\n this.masked = createMask({\n mask: mask\n });\n Object.assign(this, blockOpts);\n }\n\n _createClass(PatternInputDefinition, [{\n key: \"reset\",\n value: function reset() {\n this._isFilled = false;\n this.masked.reset();\n }\n }, {\n key: \"remove\",\n value: function remove() {\n var fromPos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var toPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.value.length;\n\n if (fromPos === 0 && toPos >= 1) {\n this._isFilled = false;\n return this.masked.remove(fromPos, toPos);\n }\n\n return new ChangeDetails();\n }\n }, {\n key: \"value\",\n get: function get() {\n return this.masked.value || (this._isFilled && !this.isOptional ? this.placeholderChar : '');\n }\n }, {\n key: \"unmaskedValue\",\n get: function get() {\n return this.masked.unmaskedValue;\n }\n }, {\n key: \"isComplete\",\n get: function get() {\n return Boolean(this.masked.value) || this.isOptional;\n }\n }, {\n key: \"_appendChar\",\n value: function _appendChar(str) {\n var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (this._isFilled) return new ChangeDetails();\n var state = this.masked.state; // simulate input\n\n var details = this.masked._appendChar(str, flags);\n\n if (details.inserted && this.doValidate(flags) === false) {\n details.inserted = details.rawInserted = '';\n this.masked.state = state;\n }\n\n if (!details.inserted && !this.isOptional && !this.lazy && !flags.input) {\n details.inserted = this.placeholderChar;\n }\n\n details.skip = !details.inserted && !this.isOptional;\n this._isFilled = Boolean(details.inserted);\n return details;\n }\n }, {\n key: \"append\",\n value: function append() {\n var _this$masked;\n\n return (_this$masked = this.masked).append.apply(_this$masked, arguments);\n }\n }, {\n key: \"_appendPlaceholder\",\n value: function _appendPlaceholder() {\n var details = new ChangeDetails();\n if (this._isFilled || this.isOptional) return details;\n this._isFilled = true;\n details.inserted = this.placeholderChar;\n return details;\n }\n }, {\n key: \"extractTail\",\n value: function extractTail() {\n var _this$masked2;\n\n return (_this$masked2 = this.masked).extractTail.apply(_this$masked2, arguments);\n }\n }, {\n key: \"appendTail\",\n value: function appendTail() {\n var _this$masked3;\n\n return (_this$masked3 = this.masked).appendTail.apply(_this$masked3, arguments);\n }\n }, {\n key: \"extractInput\",\n value: function extractInput() {\n var fromPos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var toPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.value.length;\n var flags = arguments.length > 2 ? arguments[2] : undefined;\n return this.masked.extractInput(fromPos, toPos, flags);\n }\n }, {\n key: \"nearestInputPos\",\n value: function nearestInputPos(cursorPos) {\n var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DIRECTION.NONE;\n var minPos = 0;\n var maxPos = this.value.length;\n var boundPos = Math.min(Math.max(cursorPos, minPos), maxPos);\n\n switch (direction) {\n case DIRECTION.LEFT:\n case DIRECTION.FORCE_LEFT:\n return this.isComplete ? boundPos : minPos;\n\n case DIRECTION.RIGHT:\n case DIRECTION.FORCE_RIGHT:\n return this.isComplete ? boundPos : maxPos;\n\n case DIRECTION.NONE:\n default:\n return boundPos;\n }\n }\n }, {\n key: \"doValidate\",\n value: function doValidate() {\n var _this$masked4, _this$parent;\n\n return (_this$masked4 = this.masked).doValidate.apply(_this$masked4, arguments) && (!this.parent || (_this$parent = this.parent).doValidate.apply(_this$parent, arguments));\n }\n }, {\n key: \"doCommit\",\n value: function doCommit() {\n this.masked.doCommit();\n }\n }, {\n key: \"state\",\n get: function get() {\n return {\n masked: this.masked.state,\n _isFilled: this._isFilled\n };\n },\n set: function set(state) {\n this.masked.state = state.masked;\n this._isFilled = state._isFilled;\n }\n }]);\n\n return PatternInputDefinition;\n}();\n\nexport default PatternInputDefinition;\nexport { DEFAULT_INPUT_DEFINITIONS };\n","import { _ as _createClass, a as _classCallCheck } from '../../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport ChangeDetails from '../../core/change-details.js';\nimport { DIRECTION, isString } from '../../core/utils.js';\nimport ContinuousTailDetails from '../../core/continuous-tail-details.js';\n\nvar PatternFixedDefinition = /*#__PURE__*/function () {\n /** */\n\n /** */\n\n /** */\n\n /** */\n function PatternFixedDefinition(opts) {\n _classCallCheck(this, PatternFixedDefinition);\n\n Object.assign(this, opts);\n this._value = '';\n }\n\n _createClass(PatternFixedDefinition, [{\n key: \"value\",\n get: function get() {\n return this._value;\n }\n }, {\n key: \"unmaskedValue\",\n get: function get() {\n return this.isUnmasking ? this.value : '';\n }\n }, {\n key: \"reset\",\n value: function reset() {\n this._isRawInput = false;\n this._value = '';\n }\n }, {\n key: \"remove\",\n value: function remove() {\n var fromPos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var toPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._value.length;\n this._value = this._value.slice(0, fromPos) + this._value.slice(toPos);\n if (!this._value) this._isRawInput = false;\n return new ChangeDetails();\n }\n }, {\n key: \"nearestInputPos\",\n value: function nearestInputPos(cursorPos) {\n var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DIRECTION.NONE;\n var minPos = 0;\n var maxPos = this._value.length;\n\n switch (direction) {\n case DIRECTION.LEFT:\n case DIRECTION.FORCE_LEFT:\n return minPos;\n\n case DIRECTION.NONE:\n case DIRECTION.RIGHT:\n case DIRECTION.FORCE_RIGHT:\n default:\n return maxPos;\n }\n }\n }, {\n key: \"extractInput\",\n value: function extractInput() {\n var fromPos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var toPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._value.length;\n var flags = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n return flags.raw && this._isRawInput && this._value.slice(fromPos, toPos) || '';\n }\n }, {\n key: \"isComplete\",\n get: function get() {\n return true;\n }\n }, {\n key: \"_appendChar\",\n value: function _appendChar(str) {\n var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var details = new ChangeDetails();\n if (this._value) return details;\n var appended = this.char === str[0];\n var isResolved = appended && (this.isUnmasking || flags.input || flags.raw) && !flags.tail;\n if (isResolved) details.rawInserted = this.char;\n this._value = details.inserted = this.char;\n this._isRawInput = isResolved && (flags.raw || flags.input);\n return details;\n }\n }, {\n key: \"_appendPlaceholder\",\n value: function _appendPlaceholder() {\n var details = new ChangeDetails();\n if (this._value) return details;\n this._value = details.inserted = this.char;\n return details;\n }\n }, {\n key: \"extractTail\",\n value: function extractTail() {\n arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.value.length;\n return new ContinuousTailDetails('');\n } // $FlowFixMe no ideas\n\n }, {\n key: \"appendTail\",\n value: function appendTail(tail) {\n if (isString(tail)) tail = new ContinuousTailDetails(String(tail));\n return tail.appendTo(this);\n }\n }, {\n key: \"append\",\n value: function append(str, flags, tail) {\n var details = this._appendChar(str, flags);\n\n if (tail != null) {\n details.tailShift += this.appendTail(tail).tailShift;\n }\n\n return details;\n }\n }, {\n key: \"doCommit\",\n value: function doCommit() {}\n }, {\n key: \"state\",\n get: function get() {\n return {\n _value: this._value,\n _isRawInput: this._isRawInput\n };\n },\n set: function set(state) {\n Object.assign(this, state);\n }\n }]);\n\n return PatternFixedDefinition;\n}();\n\nexport default PatternFixedDefinition;\n","import { _ as _createClass, a as _classCallCheck, b as _objectWithoutProperties } from '../../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport ChangeDetails from '../../core/change-details.js';\nimport { isString } from '../../core/utils.js';\nimport ContinuousTailDetails from '../../core/continuous-tail-details.js';\nimport IMask from '../../core/holder.js';\n\nvar ChunksTailDetails = /*#__PURE__*/function () {\n /** */\n function ChunksTailDetails() {\n var chunks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n _classCallCheck(this, ChunksTailDetails);\n\n this.chunks = chunks;\n this.from = from;\n }\n\n _createClass(ChunksTailDetails, [{\n key: \"toString\",\n value: function toString() {\n return this.chunks.map(String).join('');\n } // $FlowFixMe no ideas\n\n }, {\n key: \"extend\",\n value: function extend(tailChunk) {\n if (!String(tailChunk)) return;\n if (isString(tailChunk)) tailChunk = new ContinuousTailDetails(String(tailChunk));\n var lastChunk = this.chunks[this.chunks.length - 1];\n var extendLast = lastChunk && ( // if stops are same or tail has no stop\n lastChunk.stop === tailChunk.stop || tailChunk.stop == null) && // if tail chunk goes just after last chunk\n tailChunk.from === lastChunk.from + lastChunk.toString().length;\n\n if (tailChunk instanceof ContinuousTailDetails) {\n // check the ability to extend previous chunk\n if (extendLast) {\n // extend previous chunk\n lastChunk.extend(tailChunk.toString());\n } else {\n // append new chunk\n this.chunks.push(tailChunk);\n }\n } else if (tailChunk instanceof ChunksTailDetails) {\n if (tailChunk.stop == null) {\n // unwrap floating chunks to parent, keeping `from` pos\n var firstTailChunk;\n\n while (tailChunk.chunks.length && tailChunk.chunks[0].stop == null) {\n firstTailChunk = tailChunk.chunks.shift();\n firstTailChunk.from += tailChunk.from;\n this.extend(firstTailChunk);\n }\n } // if tail chunk still has value\n\n\n if (tailChunk.toString()) {\n // if chunks contains stops, then popup stop to container\n tailChunk.stop = tailChunk.blockIndex;\n this.chunks.push(tailChunk);\n }\n }\n }\n }, {\n key: \"appendTo\",\n value: function appendTo(masked) {\n // $FlowFixMe\n if (!(masked instanceof IMask.MaskedPattern)) {\n var tail = new ContinuousTailDetails(this.toString());\n return tail.appendTo(masked);\n }\n\n var details = new ChangeDetails();\n\n for (var ci = 0; ci < this.chunks.length && !details.skip; ++ci) {\n var chunk = this.chunks[ci];\n\n var lastBlockIter = masked._mapPosToBlock(masked.value.length);\n\n var stop = chunk.stop;\n var chunkBlock = void 0;\n\n if (stop != null && ( // if block not found or stop is behind lastBlock\n !lastBlockIter || lastBlockIter.index <= stop)) {\n if (chunk instanceof ChunksTailDetails || // for continuous block also check if stop is exist\n masked._stops.indexOf(stop) >= 0) {\n details.aggregate(masked._appendPlaceholder(stop));\n }\n\n chunkBlock = chunk instanceof ChunksTailDetails && masked._blocks[stop];\n }\n\n if (chunkBlock) {\n var tailDetails = chunkBlock.appendTail(chunk);\n tailDetails.skip = false; // always ignore skip, it will be set on last\n\n details.aggregate(tailDetails);\n masked._value += tailDetails.inserted; // get not inserted chars\n\n var remainChars = chunk.toString().slice(tailDetails.rawInserted.length);\n if (remainChars) details.aggregate(masked.append(remainChars, {\n tail: true\n }));\n } else {\n details.aggregate(masked.append(chunk.toString(), {\n tail: true\n }));\n }\n }\n return details;\n }\n }, {\n key: \"state\",\n get: function get() {\n return {\n chunks: this.chunks.map(function (c) {\n return c.state;\n }),\n from: this.from,\n stop: this.stop,\n blockIndex: this.blockIndex\n };\n },\n set: function set(state) {\n var chunks = state.chunks,\n props = _objectWithoutProperties(state, [\"chunks\"]);\n\n Object.assign(this, props);\n this.chunks = chunks.map(function (cstate) {\n var chunk = \"chunks\" in cstate ? new ChunksTailDetails() : new ContinuousTailDetails(); // $FlowFixMe already checked above\n\n chunk.state = cstate;\n return chunk;\n });\n }\n }, {\n key: \"shiftBefore\",\n value: function shiftBefore(pos) {\n if (this.from >= pos || !this.chunks.length) return '';\n var chunkShiftPos = pos - this.from;\n var ci = 0;\n\n while (ci < this.chunks.length) {\n var chunk = this.chunks[ci];\n var shiftChar = chunk.shiftBefore(chunkShiftPos);\n\n if (chunk.toString()) {\n // chunk still contains value\n // but not shifted - means no more available chars to shift\n if (!shiftChar) break;\n ++ci;\n } else {\n // clean if chunk has no value\n this.chunks.splice(ci, 1);\n }\n\n if (shiftChar) return shiftChar;\n }\n\n return '';\n }\n }]);\n\n return ChunksTailDetails;\n}();\n\nexport default ChunksTailDetails;\n","import { d as _inherits, e as _createSuper, _ as _createClass, a as _classCallCheck, g as _get, h as _getPrototypeOf } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport Masked from './base.js';\nimport IMask from '../core/holder.js';\nimport '../core/change-details.js';\nimport '../core/continuous-tail-details.js';\nimport '../core/utils.js';\n\n/** Masking by RegExp */\n\nvar MaskedRegExp = /*#__PURE__*/function (_Masked) {\n _inherits(MaskedRegExp, _Masked);\n\n var _super = _createSuper(MaskedRegExp);\n\n function MaskedRegExp() {\n _classCallCheck(this, MaskedRegExp);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(MaskedRegExp, [{\n key: \"_update\",\n value:\n /**\r\n @override\r\n @param {Object} opts\r\n */\n function _update(opts) {\n if (opts.mask) opts.validate = function (value) {\n return value.search(opts.mask) >= 0;\n };\n\n _get(_getPrototypeOf(MaskedRegExp.prototype), \"_update\", this).call(this, opts);\n }\n }]);\n\n return MaskedRegExp;\n}(Masked);\nIMask.MaskedRegExp = MaskedRegExp;\n\nexport default MaskedRegExp;\n","import { d as _inherits, e as _createSuper, a as _classCallCheck, _ as _createClass, g as _get, h as _getPrototypeOf, b as _objectWithoutProperties, i as _set } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport { forceDirection, DIRECTION } from '../core/utils.js';\nimport ChangeDetails from '../core/change-details.js';\nimport Masked from './base.js';\nimport PatternInputDefinition, { DEFAULT_INPUT_DEFINITIONS } from './pattern/input-definition.js';\nimport PatternFixedDefinition from './pattern/fixed-definition.js';\nimport ChunksTailDetails from './pattern/chunk-tail-details.js';\nimport createMask from './factory.js';\nimport IMask from '../core/holder.js';\nimport './regexp.js';\nimport '../core/continuous-tail-details.js';\n\n/**\r\n Pattern mask\r\n @param {Object} opts\r\n @param {Object} opts.blocks\r\n @param {Object} opts.definitions\r\n @param {string} opts.placeholderChar\r\n @param {boolean} opts.lazy\r\n*/\nvar MaskedPattern = /*#__PURE__*/function (_Masked) {\n _inherits(MaskedPattern, _Masked);\n\n var _super = _createSuper(MaskedPattern);\n\n /** */\n\n /** */\n\n /** Single char for empty input */\n\n /** Show placeholder only when needed */\n function MaskedPattern() {\n var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, MaskedPattern);\n\n // TODO type $Shape={} does not work\n opts.definitions = Object.assign({}, DEFAULT_INPUT_DEFINITIONS, opts.definitions);\n return _super.call(this, Object.assign({}, MaskedPattern.DEFAULTS, opts));\n }\n /**\r\n @override\r\n @param {Object} opts\r\n */\n\n\n _createClass(MaskedPattern, [{\n key: \"_update\",\n value: function _update() {\n var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n opts.definitions = Object.assign({}, this.definitions, opts.definitions);\n\n _get(_getPrototypeOf(MaskedPattern.prototype), \"_update\", this).call(this, opts);\n\n this._rebuildMask();\n }\n /** */\n\n }, {\n key: \"_rebuildMask\",\n value: function _rebuildMask() {\n var _this = this;\n\n var defs = this.definitions;\n this._blocks = [];\n this._stops = [];\n this._maskedBlocks = {};\n var pattern = this.mask;\n if (!pattern || !defs) return;\n var unmaskingBlock = false;\n var optionalBlock = false;\n\n for (var i = 0; i < pattern.length; ++i) {\n if (this.blocks) {\n var _ret = function () {\n var p = pattern.slice(i);\n var bNames = Object.keys(_this.blocks).filter(function (bName) {\n return p.indexOf(bName) === 0;\n }); // order by key length\n\n bNames.sort(function (a, b) {\n return b.length - a.length;\n }); // use block name with max length\n\n var bName = bNames[0];\n\n if (bName) {\n // $FlowFixMe no ideas\n var maskedBlock = createMask(Object.assign({\n parent: _this,\n lazy: _this.lazy,\n placeholderChar: _this.placeholderChar,\n overwrite: _this.overwrite\n }, _this.blocks[bName]));\n\n if (maskedBlock) {\n _this._blocks.push(maskedBlock); // store block index\n\n\n if (!_this._maskedBlocks[bName]) _this._maskedBlocks[bName] = [];\n\n _this._maskedBlocks[bName].push(_this._blocks.length - 1);\n }\n\n i += bName.length - 1;\n return \"continue\";\n }\n }();\n\n if (_ret === \"continue\") continue;\n }\n\n var char = pattern[i];\n\n var _isInput = (char in defs);\n\n if (char === MaskedPattern.STOP_CHAR) {\n this._stops.push(this._blocks.length);\n\n continue;\n }\n\n if (char === '{' || char === '}') {\n unmaskingBlock = !unmaskingBlock;\n continue;\n }\n\n if (char === '[' || char === ']') {\n optionalBlock = !optionalBlock;\n continue;\n }\n\n if (char === MaskedPattern.ESCAPE_CHAR) {\n ++i;\n char = pattern[i];\n if (!char) break;\n _isInput = false;\n }\n\n var def = _isInput ? new PatternInputDefinition({\n parent: this,\n lazy: this.lazy,\n placeholderChar: this.placeholderChar,\n mask: defs[char],\n isOptional: optionalBlock\n }) : new PatternFixedDefinition({\n char: char,\n isUnmasking: unmaskingBlock\n });\n\n this._blocks.push(def);\n }\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"state\",\n get: function get() {\n return Object.assign({}, _get(_getPrototypeOf(MaskedPattern.prototype), \"state\", this), {\n _blocks: this._blocks.map(function (b) {\n return b.state;\n })\n });\n },\n set: function set(state) {\n var _blocks = state._blocks,\n maskedState = _objectWithoutProperties(state, [\"_blocks\"]);\n\n this._blocks.forEach(function (b, bi) {\n return b.state = _blocks[bi];\n });\n\n _set(_getPrototypeOf(MaskedPattern.prototype), \"state\", maskedState, this, true);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"reset\",\n value: function reset() {\n _get(_getPrototypeOf(MaskedPattern.prototype), \"reset\", this).call(this);\n\n this._blocks.forEach(function (b) {\n return b.reset();\n });\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"isComplete\",\n get: function get() {\n return this._blocks.every(function (b) {\n return b.isComplete;\n });\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"doCommit\",\n value: function doCommit() {\n this._blocks.forEach(function (b) {\n return b.doCommit();\n });\n\n _get(_getPrototypeOf(MaskedPattern.prototype), \"doCommit\", this).call(this);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"unmaskedValue\",\n get: function get() {\n return this._blocks.reduce(function (str, b) {\n return str += b.unmaskedValue;\n }, '');\n },\n set: function set(unmaskedValue) {\n _set(_getPrototypeOf(MaskedPattern.prototype), \"unmaskedValue\", unmaskedValue, this, true);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"value\",\n get: function get() {\n // TODO return _value when not in change?\n return this._blocks.reduce(function (str, b) {\n return str += b.value;\n }, '');\n },\n set: function set(value) {\n _set(_getPrototypeOf(MaskedPattern.prototype), \"value\", value, this, true);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"appendTail\",\n value: function appendTail(tail) {\n return _get(_getPrototypeOf(MaskedPattern.prototype), \"appendTail\", this).call(this, tail).aggregate(this._appendPlaceholder());\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"_appendCharRaw\",\n value: function _appendCharRaw(ch) {\n var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var blockIter = this._mapPosToBlock(this.value.length);\n\n var details = new ChangeDetails();\n if (!blockIter) return details;\n\n for (var bi = blockIter.index;; ++bi) {\n var _block = this._blocks[bi];\n if (!_block) break;\n\n var blockDetails = _block._appendChar(ch, flags);\n\n var skip = blockDetails.skip;\n details.aggregate(blockDetails);\n if (skip || blockDetails.rawInserted) break; // go next char\n }\n\n return details;\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"extractTail\",\n value: function extractTail() {\n var _this2 = this;\n\n var fromPos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var toPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.value.length;\n var chunkTail = new ChunksTailDetails();\n if (fromPos === toPos) return chunkTail;\n\n this._forEachBlocksInRange(fromPos, toPos, function (b, bi, bFromPos, bToPos) {\n var blockChunk = b.extractTail(bFromPos, bToPos);\n blockChunk.stop = _this2._findStopBefore(bi);\n blockChunk.from = _this2._blockStartPos(bi);\n if (blockChunk instanceof ChunksTailDetails) blockChunk.blockIndex = bi;\n chunkTail.extend(blockChunk);\n });\n\n return chunkTail;\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"extractInput\",\n value: function extractInput() {\n var fromPos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var toPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.value.length;\n var flags = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n if (fromPos === toPos) return '';\n var input = '';\n\n this._forEachBlocksInRange(fromPos, toPos, function (b, _, fromPos, toPos) {\n input += b.extractInput(fromPos, toPos, flags);\n });\n\n return input;\n }\n }, {\n key: \"_findStopBefore\",\n value: function _findStopBefore(blockIndex) {\n var stopBefore;\n\n for (var si = 0; si < this._stops.length; ++si) {\n var stop = this._stops[si];\n if (stop <= blockIndex) stopBefore = stop;else break;\n }\n\n return stopBefore;\n }\n /** Appends placeholder depending on laziness */\n\n }, {\n key: \"_appendPlaceholder\",\n value: function _appendPlaceholder(toBlockIndex) {\n var _this3 = this;\n\n var details = new ChangeDetails();\n if (this.lazy && toBlockIndex == null) return details;\n\n var startBlockIter = this._mapPosToBlock(this.value.length);\n\n if (!startBlockIter) return details;\n var startBlockIndex = startBlockIter.index;\n var endBlockIndex = toBlockIndex != null ? toBlockIndex : this._blocks.length;\n\n this._blocks.slice(startBlockIndex, endBlockIndex).forEach(function (b) {\n if (!b.lazy || toBlockIndex != null) {\n // $FlowFixMe `_blocks` may not be present\n var args = b._blocks != null ? [b._blocks.length] : [];\n\n var bDetails = b._appendPlaceholder.apply(b, args);\n\n _this3._value += bDetails.inserted;\n details.aggregate(bDetails);\n }\n });\n\n return details;\n }\n /** Finds block in pos */\n\n }, {\n key: \"_mapPosToBlock\",\n value: function _mapPosToBlock(pos) {\n var accVal = '';\n\n for (var bi = 0; bi < this._blocks.length; ++bi) {\n var _block2 = this._blocks[bi];\n var blockStartPos = accVal.length;\n accVal += _block2.value;\n\n if (pos <= accVal.length) {\n return {\n index: bi,\n offset: pos - blockStartPos\n };\n }\n }\n }\n /** */\n\n }, {\n key: \"_blockStartPos\",\n value: function _blockStartPos(blockIndex) {\n return this._blocks.slice(0, blockIndex).reduce(function (pos, b) {\n return pos += b.value.length;\n }, 0);\n }\n /** */\n\n }, {\n key: \"_forEachBlocksInRange\",\n value: function _forEachBlocksInRange(fromPos) {\n var toPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.value.length;\n var fn = arguments.length > 2 ? arguments[2] : undefined;\n\n var fromBlockIter = this._mapPosToBlock(fromPos);\n\n if (fromBlockIter) {\n var toBlockIter = this._mapPosToBlock(toPos); // process first block\n\n\n var isSameBlock = toBlockIter && fromBlockIter.index === toBlockIter.index;\n var fromBlockStartPos = fromBlockIter.offset;\n var fromBlockEndPos = toBlockIter && isSameBlock ? toBlockIter.offset : this._blocks[fromBlockIter.index].value.length;\n fn(this._blocks[fromBlockIter.index], fromBlockIter.index, fromBlockStartPos, fromBlockEndPos);\n\n if (toBlockIter && !isSameBlock) {\n // process intermediate blocks\n for (var bi = fromBlockIter.index + 1; bi < toBlockIter.index; ++bi) {\n fn(this._blocks[bi], bi, 0, this._blocks[bi].value.length);\n } // process last block\n\n\n fn(this._blocks[toBlockIter.index], toBlockIter.index, 0, toBlockIter.offset);\n }\n }\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"remove\",\n value: function remove() {\n var fromPos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var toPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.value.length;\n\n var removeDetails = _get(_getPrototypeOf(MaskedPattern.prototype), \"remove\", this).call(this, fromPos, toPos);\n\n this._forEachBlocksInRange(fromPos, toPos, function (b, _, bFromPos, bToPos) {\n removeDetails.aggregate(b.remove(bFromPos, bToPos));\n });\n\n return removeDetails;\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"nearestInputPos\",\n value: function nearestInputPos(cursorPos) {\n var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DIRECTION.NONE;\n // TODO refactor - extract alignblock\n var beginBlockData = this._mapPosToBlock(cursorPos) || {\n index: 0,\n offset: 0\n };\n var beginBlockOffset = beginBlockData.offset,\n beginBlockIndex = beginBlockData.index;\n var beginBlock = this._blocks[beginBlockIndex];\n if (!beginBlock) return cursorPos;\n var beginBlockCursorPos = beginBlockOffset; // if position inside block - try to adjust it\n\n if (beginBlockCursorPos !== 0 && beginBlockCursorPos < beginBlock.value.length) {\n beginBlockCursorPos = beginBlock.nearestInputPos(beginBlockOffset, forceDirection(direction));\n }\n\n var cursorAtRight = beginBlockCursorPos === beginBlock.value.length;\n var cursorAtLeft = beginBlockCursorPos === 0; // cursor is INSIDE first block (not at bounds)\n\n if (!cursorAtLeft && !cursorAtRight) return this._blockStartPos(beginBlockIndex) + beginBlockCursorPos;\n var searchBlockIndex = cursorAtRight ? beginBlockIndex + 1 : beginBlockIndex;\n\n if (direction === DIRECTION.NONE) {\n // NONE direction used to calculate start input position if no chars were removed\n // FOR NONE:\n // -\n // input|any\n // ->\n // any|input\n // <-\n // filled-input|any\n // check if first block at left is input\n if (searchBlockIndex > 0) {\n var blockIndexAtLeft = searchBlockIndex - 1;\n var blockAtLeft = this._blocks[blockIndexAtLeft];\n var blockInputPos = blockAtLeft.nearestInputPos(0, DIRECTION.NONE); // is input\n\n if (!blockAtLeft.value.length || blockInputPos !== blockAtLeft.value.length) {\n return this._blockStartPos(searchBlockIndex);\n }\n } // ->\n\n\n var firstInputAtRight = searchBlockIndex;\n\n for (var bi = firstInputAtRight; bi < this._blocks.length; ++bi) {\n var blockAtRight = this._blocks[bi];\n\n var _blockInputPos = blockAtRight.nearestInputPos(0, DIRECTION.NONE);\n\n if (!blockAtRight.value.length || _blockInputPos !== blockAtRight.value.length) {\n return this._blockStartPos(bi) + _blockInputPos;\n }\n } // <-\n // find first non-fixed symbol\n\n\n for (var _bi = searchBlockIndex - 1; _bi >= 0; --_bi) {\n var _block3 = this._blocks[_bi];\n\n var _blockInputPos2 = _block3.nearestInputPos(0, DIRECTION.NONE); // is input\n\n\n if (!_block3.value.length || _blockInputPos2 !== _block3.value.length) {\n return this._blockStartPos(_bi) + _block3.value.length;\n }\n }\n\n return cursorPos;\n }\n\n if (direction === DIRECTION.LEFT || direction === DIRECTION.FORCE_LEFT) {\n // -\n // any|filled-input\n // <-\n // any|first not empty is not-len-aligned\n // not-0-aligned|any\n // ->\n // any|not-len-aligned or end\n // check if first block at right is filled input\n var firstFilledBlockIndexAtRight;\n\n for (var _bi2 = searchBlockIndex; _bi2 < this._blocks.length; ++_bi2) {\n if (this._blocks[_bi2].value) {\n firstFilledBlockIndexAtRight = _bi2;\n break;\n }\n }\n\n if (firstFilledBlockIndexAtRight != null) {\n var filledBlock = this._blocks[firstFilledBlockIndexAtRight];\n\n var _blockInputPos3 = filledBlock.nearestInputPos(0, DIRECTION.RIGHT);\n\n if (_blockInputPos3 === 0 && filledBlock.unmaskedValue.length) {\n // filled block is input\n return this._blockStartPos(firstFilledBlockIndexAtRight) + _blockInputPos3;\n }\n } // <-\n // find this vars\n\n\n var firstFilledInputBlockIndex = -1;\n var firstEmptyInputBlockIndex; // TODO consider nested empty inputs\n\n for (var _bi3 = searchBlockIndex - 1; _bi3 >= 0; --_bi3) {\n var _block4 = this._blocks[_bi3];\n\n var _blockInputPos4 = _block4.nearestInputPos(_block4.value.length, DIRECTION.FORCE_LEFT);\n\n if (!_block4.value || _blockInputPos4 !== 0) firstEmptyInputBlockIndex = _bi3;\n\n if (_blockInputPos4 !== 0) {\n if (_blockInputPos4 !== _block4.value.length) {\n // aligned inside block - return immediately\n return this._blockStartPos(_bi3) + _blockInputPos4;\n } else {\n // found filled\n firstFilledInputBlockIndex = _bi3;\n break;\n }\n }\n }\n\n if (direction === DIRECTION.LEFT) {\n // try find first empty input before start searching position only when not forced\n for (var _bi4 = firstFilledInputBlockIndex + 1; _bi4 <= Math.min(searchBlockIndex, this._blocks.length - 1); ++_bi4) {\n var _block5 = this._blocks[_bi4];\n\n var _blockInputPos5 = _block5.nearestInputPos(0, DIRECTION.NONE);\n\n var blockAlignedPos = this._blockStartPos(_bi4) + _blockInputPos5;\n\n if (blockAlignedPos > cursorPos) break; // if block is not lazy input\n\n if (_blockInputPos5 !== _block5.value.length) return blockAlignedPos;\n }\n } // process overflow\n\n\n if (firstFilledInputBlockIndex >= 0) {\n return this._blockStartPos(firstFilledInputBlockIndex) + this._blocks[firstFilledInputBlockIndex].value.length;\n } // for lazy if has aligned left inside fixed and has came to the start - use start position\n\n\n if (direction === DIRECTION.FORCE_LEFT || this.lazy && !this.extractInput() && !isInput(this._blocks[searchBlockIndex])) {\n return 0;\n }\n\n if (firstEmptyInputBlockIndex != null) {\n return this._blockStartPos(firstEmptyInputBlockIndex);\n } // find first input\n\n\n for (var _bi5 = searchBlockIndex; _bi5 < this._blocks.length; ++_bi5) {\n var _block6 = this._blocks[_bi5];\n\n var _blockInputPos6 = _block6.nearestInputPos(0, DIRECTION.NONE); // is input\n\n\n if (!_block6.value.length || _blockInputPos6 !== _block6.value.length) {\n return this._blockStartPos(_bi5) + _blockInputPos6;\n }\n }\n\n return 0;\n }\n\n if (direction === DIRECTION.RIGHT || direction === DIRECTION.FORCE_RIGHT) {\n // ->\n // any|not-len-aligned and filled\n // any|not-len-aligned\n // <-\n // not-0-aligned or start|any\n var firstInputBlockAlignedIndex;\n var firstInputBlockAlignedPos;\n\n for (var _bi6 = searchBlockIndex; _bi6 < this._blocks.length; ++_bi6) {\n var _block7 = this._blocks[_bi6];\n\n var _blockInputPos7 = _block7.nearestInputPos(0, DIRECTION.NONE);\n\n if (_blockInputPos7 !== _block7.value.length) {\n firstInputBlockAlignedPos = this._blockStartPos(_bi6) + _blockInputPos7;\n firstInputBlockAlignedIndex = _bi6;\n break;\n }\n }\n\n if (firstInputBlockAlignedIndex != null && firstInputBlockAlignedPos != null) {\n for (var _bi7 = firstInputBlockAlignedIndex; _bi7 < this._blocks.length; ++_bi7) {\n var _block8 = this._blocks[_bi7];\n\n var _blockInputPos8 = _block8.nearestInputPos(0, DIRECTION.FORCE_RIGHT);\n\n if (_blockInputPos8 !== _block8.value.length) {\n return this._blockStartPos(_bi7) + _blockInputPos8;\n }\n }\n\n return direction === DIRECTION.FORCE_RIGHT ? this.value.length : firstInputBlockAlignedPos;\n }\n\n for (var _bi8 = Math.min(searchBlockIndex, this._blocks.length - 1); _bi8 >= 0; --_bi8) {\n var _block9 = this._blocks[_bi8];\n\n var _blockInputPos9 = _block9.nearestInputPos(_block9.value.length, DIRECTION.LEFT);\n\n if (_blockInputPos9 !== 0) {\n var alignedPos = this._blockStartPos(_bi8) + _blockInputPos9;\n\n if (alignedPos >= cursorPos) return alignedPos;\n break;\n }\n }\n }\n\n return cursorPos;\n }\n /** Get block by name */\n\n }, {\n key: \"maskedBlock\",\n value: function maskedBlock(name) {\n return this.maskedBlocks(name)[0];\n }\n /** Get all blocks by name */\n\n }, {\n key: \"maskedBlocks\",\n value: function maskedBlocks(name) {\n var _this4 = this;\n\n var indices = this._maskedBlocks[name];\n if (!indices) return [];\n return indices.map(function (gi) {\n return _this4._blocks[gi];\n });\n }\n }]);\n\n return MaskedPattern;\n}(Masked);\nMaskedPattern.DEFAULTS = {\n lazy: true,\n placeholderChar: '_'\n};\nMaskedPattern.STOP_CHAR = '`';\nMaskedPattern.ESCAPE_CHAR = '\\\\';\nMaskedPattern.InputDefinition = PatternInputDefinition;\nMaskedPattern.FixedDefinition = PatternFixedDefinition;\n\nfunction isInput(block) {\n if (!block) return false;\n var value = block.value;\n return !value || block.nearestInputPos(0, DIRECTION.NONE) !== value.length;\n}\n\nIMask.MaskedPattern = MaskedPattern;\n\nexport default MaskedPattern;\n","import { d as _inherits, e as _createSuper, a as _classCallCheck, _ as _createClass, g as _get, h as _getPrototypeOf, f as _slicedToArray } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport MaskedPattern from './pattern.js';\nimport IMask from '../core/holder.js';\nimport '../core/utils.js';\nimport '../core/change-details.js';\nimport './base.js';\nimport '../core/continuous-tail-details.js';\nimport './pattern/input-definition.js';\nimport './factory.js';\nimport './pattern/fixed-definition.js';\nimport './pattern/chunk-tail-details.js';\nimport './regexp.js';\n\n/** Pattern which accepts ranges */\n\nvar MaskedRange = /*#__PURE__*/function (_MaskedPattern) {\n _inherits(MaskedRange, _MaskedPattern);\n\n var _super = _createSuper(MaskedRange);\n\n function MaskedRange() {\n _classCallCheck(this, MaskedRange);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(MaskedRange, [{\n key: \"_matchFrom\",\n get:\n /**\r\n Optionally sets max length of pattern.\r\n Used when pattern length is longer then `to` param length. Pads zeros at start in this case.\r\n */\n\n /** Min bound */\n\n /** Max bound */\n\n /** */\n function get() {\n return this.maxLength - String(this.from).length;\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"_update\",\n value: function _update(opts) {\n // TODO type\n opts = Object.assign({\n to: this.to || 0,\n from: this.from || 0\n }, opts);\n var maxLength = String(opts.to).length;\n if (opts.maxLength != null) maxLength = Math.max(maxLength, opts.maxLength);\n opts.maxLength = maxLength;\n var fromStr = String(opts.from).padStart(maxLength, '0');\n var toStr = String(opts.to).padStart(maxLength, '0');\n var sameCharsCount = 0;\n\n while (sameCharsCount < toStr.length && toStr[sameCharsCount] === fromStr[sameCharsCount]) {\n ++sameCharsCount;\n }\n\n opts.mask = toStr.slice(0, sameCharsCount).replace(/0/g, '\\\\0') + '0'.repeat(maxLength - sameCharsCount);\n\n _get(_getPrototypeOf(MaskedRange.prototype), \"_update\", this).call(this, opts);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"isComplete\",\n get: function get() {\n return _get(_getPrototypeOf(MaskedRange.prototype), \"isComplete\", this) && Boolean(this.value);\n }\n }, {\n key: \"boundaries\",\n value: function boundaries(str) {\n var minstr = '';\n var maxstr = '';\n\n var _ref = str.match(/^(\\D*)(\\d*)(\\D*)/) || [],\n _ref2 = _slicedToArray(_ref, 3),\n placeholder = _ref2[1],\n num = _ref2[2];\n\n if (num) {\n minstr = '0'.repeat(placeholder.length) + num;\n maxstr = '9'.repeat(placeholder.length) + num;\n }\n\n minstr = minstr.padEnd(this.maxLength, '0');\n maxstr = maxstr.padEnd(this.maxLength, '9');\n return [minstr, maxstr];\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"doPrepare\",\n value: function doPrepare(str) {\n var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n str = _get(_getPrototypeOf(MaskedRange.prototype), \"doPrepare\", this).call(this, str, flags).replace(/\\D/g, '');\n if (!this.autofix) return str;\n var fromStr = String(this.from).padStart(this.maxLength, '0');\n var toStr = String(this.to).padStart(this.maxLength, '0');\n var val = this.value;\n var prepStr = '';\n\n for (var ci = 0; ci < str.length; ++ci) {\n var nextVal = val + prepStr + str[ci];\n\n var _this$boundaries = this.boundaries(nextVal),\n _this$boundaries2 = _slicedToArray(_this$boundaries, 2),\n minstr = _this$boundaries2[0],\n maxstr = _this$boundaries2[1];\n\n if (Number(maxstr) < this.from) prepStr += fromStr[nextVal.length - 1];else if (Number(minstr) > this.to) prepStr += toStr[nextVal.length - 1];else prepStr += str[ci];\n }\n\n return prepStr;\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"doValidate\",\n value: function doValidate() {\n var _get2;\n\n var str = this.value;\n var firstNonZero = str.search(/[^0]/);\n if (firstNonZero === -1 && str.length <= this._matchFrom) return true;\n\n var _this$boundaries3 = this.boundaries(str),\n _this$boundaries4 = _slicedToArray(_this$boundaries3, 2),\n minstr = _this$boundaries4[0],\n maxstr = _this$boundaries4[1];\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return this.from <= Number(maxstr) && Number(minstr) <= this.to && (_get2 = _get(_getPrototypeOf(MaskedRange.prototype), \"doValidate\", this)).call.apply(_get2, [this].concat(args));\n }\n }]);\n\n return MaskedRange;\n}(MaskedPattern);\nIMask.MaskedRange = MaskedRange;\n\nexport default MaskedRange;\n","import { d as _inherits, e as _createSuper, a as _classCallCheck, _ as _createClass, f as _slicedToArray, g as _get, h as _getPrototypeOf, i as _set } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport MaskedPattern from './pattern.js';\nimport MaskedRange from './range.js';\nimport IMask from '../core/holder.js';\nimport '../core/utils.js';\nimport '../core/change-details.js';\nimport './base.js';\nimport '../core/continuous-tail-details.js';\nimport './pattern/input-definition.js';\nimport './factory.js';\nimport './pattern/fixed-definition.js';\nimport './pattern/chunk-tail-details.js';\nimport './regexp.js';\n\n/** Date mask */\n\nvar MaskedDate = /*#__PURE__*/function (_MaskedPattern) {\n _inherits(MaskedDate, _MaskedPattern);\n\n var _super = _createSuper(MaskedDate);\n\n /** Pattern mask for date according to {@link MaskedDate#format} */\n\n /** Start date */\n\n /** End date */\n\n /** */\n\n /**\r\n @param {Object} opts\r\n */\n function MaskedDate(opts) {\n _classCallCheck(this, MaskedDate);\n\n return _super.call(this, Object.assign({}, MaskedDate.DEFAULTS, opts));\n }\n /**\r\n @override\r\n */\n\n\n _createClass(MaskedDate, [{\n key: \"_update\",\n value: function _update(opts) {\n if (opts.mask === Date) delete opts.mask;\n if (opts.pattern) opts.mask = opts.pattern;\n var blocks = opts.blocks;\n opts.blocks = Object.assign({}, MaskedDate.GET_DEFAULT_BLOCKS()); // adjust year block\n\n if (opts.min) opts.blocks.Y.from = opts.min.getFullYear();\n if (opts.max) opts.blocks.Y.to = opts.max.getFullYear();\n\n if (opts.min && opts.max && opts.blocks.Y.from === opts.blocks.Y.to) {\n opts.blocks.m.from = opts.min.getMonth() + 1;\n opts.blocks.m.to = opts.max.getMonth() + 1;\n\n if (opts.blocks.m.from === opts.blocks.m.to) {\n opts.blocks.d.from = opts.min.getDate();\n opts.blocks.d.to = opts.max.getDate();\n }\n }\n\n Object.assign(opts.blocks, blocks); // add autofix\n\n Object.keys(opts.blocks).forEach(function (bk) {\n var b = opts.blocks[bk];\n if (!('autofix' in b)) b.autofix = opts.autofix;\n });\n\n _get(_getPrototypeOf(MaskedDate.prototype), \"_update\", this).call(this, opts);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"doValidate\",\n value: function doValidate() {\n var _get2;\n\n var date = this.date;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return (_get2 = _get(_getPrototypeOf(MaskedDate.prototype), \"doValidate\", this)).call.apply(_get2, [this].concat(args)) && (!this.isComplete || this.isDateExist(this.value) && date != null && (this.min == null || this.min <= date) && (this.max == null || date <= this.max));\n }\n /** Checks if date is exists */\n\n }, {\n key: \"isDateExist\",\n value: function isDateExist(str) {\n return this.format(this.parse(str, this), this).indexOf(str) >= 0;\n }\n /** Parsed Date */\n\n }, {\n key: \"date\",\n get: function get() {\n return this.typedValue;\n },\n set: function set(date) {\n this.typedValue = date;\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"typedValue\",\n get: function get() {\n return this.isComplete ? _get(_getPrototypeOf(MaskedDate.prototype), \"typedValue\", this) : null;\n },\n set: function set(value) {\n _set(_getPrototypeOf(MaskedDate.prototype), \"typedValue\", value, this, true);\n }\n }]);\n\n return MaskedDate;\n}(MaskedPattern);\nMaskedDate.DEFAULTS = {\n pattern: 'd{.}`m{.}`Y',\n format: function format(date) {\n var day = String(date.getDate()).padStart(2, '0');\n var month = String(date.getMonth() + 1).padStart(2, '0');\n var year = date.getFullYear();\n return [day, month, year].join('.');\n },\n parse: function parse(str) {\n var _str$split = str.split('.'),\n _str$split2 = _slicedToArray(_str$split, 3),\n day = _str$split2[0],\n month = _str$split2[1],\n year = _str$split2[2];\n\n return new Date(year, month - 1, day);\n }\n};\n\nMaskedDate.GET_DEFAULT_BLOCKS = function () {\n return {\n d: {\n mask: MaskedRange,\n from: 1,\n to: 31,\n maxLength: 2\n },\n m: {\n mask: MaskedRange,\n from: 1,\n to: 12,\n maxLength: 2\n },\n Y: {\n mask: MaskedRange,\n from: 1900,\n to: 9999\n }\n };\n};\n\nIMask.MaskedDate = MaskedDate;\n\nexport default MaskedDate;\n","import { _ as _createClass, a as _classCallCheck } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport IMask from '../core/holder.js';\n\n/**\r\n Generic element API to use with mask\r\n @interface\r\n*/\nvar MaskElement = /*#__PURE__*/function () {\n function MaskElement() {\n _classCallCheck(this, MaskElement);\n }\n\n _createClass(MaskElement, [{\n key: \"selectionStart\",\n get:\n /** */\n\n /** */\n\n /** */\n\n /** Safely returns selection start */\n function get() {\n var start;\n\n try {\n start = this._unsafeSelectionStart;\n } catch (e) {}\n\n return start != null ? start : this.value.length;\n }\n /** Safely returns selection end */\n\n }, {\n key: \"selectionEnd\",\n get: function get() {\n var end;\n\n try {\n end = this._unsafeSelectionEnd;\n } catch (e) {}\n\n return end != null ? end : this.value.length;\n }\n /** Safely sets element selection */\n\n }, {\n key: \"select\",\n value: function select(start, end) {\n if (start == null || end == null || start === this.selectionStart && end === this.selectionEnd) return;\n\n try {\n this._unsafeSelect(start, end);\n } catch (e) {}\n }\n /** Should be overriden in subclasses */\n\n }, {\n key: \"_unsafeSelect\",\n value: function _unsafeSelect(start, end) {}\n /** Should be overriden in subclasses */\n\n }, {\n key: \"isActive\",\n get: function get() {\n return false;\n }\n /** Should be overriden in subclasses */\n\n }, {\n key: \"bindEvents\",\n value: function bindEvents(handlers) {}\n /** Should be overriden in subclasses */\n\n }, {\n key: \"unbindEvents\",\n value: function unbindEvents() {}\n }]);\n\n return MaskElement;\n}();\nIMask.MaskElement = MaskElement;\n\nexport default MaskElement;\n","import { d as _inherits, e as _createSuper, a as _classCallCheck, _ as _createClass } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport MaskElement from './mask-element.js';\nimport IMask from '../core/holder.js';\n\n/** Bridge between HTMLElement and {@link Masked} */\n\nvar HTMLMaskElement = /*#__PURE__*/function (_MaskElement) {\n _inherits(HTMLMaskElement, _MaskElement);\n\n var _super = _createSuper(HTMLMaskElement);\n\n /** Mapping between HTMLElement events and mask internal events */\n\n /** HTMLElement to use mask on */\n\n /**\r\n @param {HTMLInputElement|HTMLTextAreaElement} input\r\n */\n function HTMLMaskElement(input) {\n var _this;\n\n _classCallCheck(this, HTMLMaskElement);\n\n _this = _super.call(this);\n _this.input = input;\n _this._handlers = {};\n return _this;\n }\n /** */\n // $FlowFixMe https://github.com/facebook/flow/issues/2839\n\n\n _createClass(HTMLMaskElement, [{\n key: \"rootElement\",\n get: function get() {\n return this.input.getRootNode ? this.input.getRootNode() : document;\n }\n /**\r\n Is element in focus\r\n @readonly\r\n */\n\n }, {\n key: \"isActive\",\n get: function get() {\n //$FlowFixMe\n return this.input === this.rootElement.activeElement;\n }\n /**\r\n Returns HTMLElement selection start\r\n @override\r\n */\n\n }, {\n key: \"_unsafeSelectionStart\",\n get: function get() {\n return this.input.selectionStart;\n }\n /**\r\n Returns HTMLElement selection end\r\n @override\r\n */\n\n }, {\n key: \"_unsafeSelectionEnd\",\n get: function get() {\n return this.input.selectionEnd;\n }\n /**\r\n Sets HTMLElement selection\r\n @override\r\n */\n\n }, {\n key: \"_unsafeSelect\",\n value: function _unsafeSelect(start, end) {\n this.input.setSelectionRange(start, end);\n }\n /**\r\n HTMLElement value\r\n @override\r\n */\n\n }, {\n key: \"value\",\n get: function get() {\n return this.input.value;\n },\n set: function set(value) {\n this.input.value = value;\n }\n /**\r\n Binds HTMLElement events to mask internal events\r\n @override\r\n */\n\n }, {\n key: \"bindEvents\",\n value: function bindEvents(handlers) {\n var _this2 = this;\n\n Object.keys(handlers).forEach(function (event) {\n return _this2._toggleEventHandler(HTMLMaskElement.EVENTS_MAP[event], handlers[event]);\n });\n }\n /**\r\n Unbinds HTMLElement events to mask internal events\r\n @override\r\n */\n\n }, {\n key: \"unbindEvents\",\n value: function unbindEvents() {\n var _this3 = this;\n\n Object.keys(this._handlers).forEach(function (event) {\n return _this3._toggleEventHandler(event);\n });\n }\n /** */\n\n }, {\n key: \"_toggleEventHandler\",\n value: function _toggleEventHandler(event, handler) {\n if (this._handlers[event]) {\n this.input.removeEventListener(event, this._handlers[event]);\n delete this._handlers[event];\n }\n\n if (handler) {\n this.input.addEventListener(event, handler);\n this._handlers[event] = handler;\n }\n }\n }]);\n\n return HTMLMaskElement;\n}(MaskElement);\nHTMLMaskElement.EVENTS_MAP = {\n selectionChange: 'keydown',\n input: 'input',\n drop: 'drop',\n click: 'click',\n focus: 'focus',\n commit: 'blur'\n};\nIMask.HTMLMaskElement = HTMLMaskElement;\n\nexport default HTMLMaskElement;\n","import { d as _inherits, e as _createSuper, a as _classCallCheck, _ as _createClass } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport HTMLMaskElement from './html-mask-element.js';\nimport IMask from '../core/holder.js';\nimport './mask-element.js';\n\nvar HTMLContenteditableMaskElement = /*#__PURE__*/function (_HTMLMaskElement) {\n _inherits(HTMLContenteditableMaskElement, _HTMLMaskElement);\n\n var _super = _createSuper(HTMLContenteditableMaskElement);\n\n function HTMLContenteditableMaskElement() {\n _classCallCheck(this, HTMLContenteditableMaskElement);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(HTMLContenteditableMaskElement, [{\n key: \"_unsafeSelectionStart\",\n get:\n /**\r\n Returns HTMLElement selection start\r\n @override\r\n */\n function get() {\n var root = this.rootElement;\n var selection = root.getSelection && root.getSelection();\n return selection && selection.anchorOffset;\n }\n /**\r\n Returns HTMLElement selection end\r\n @override\r\n */\n\n }, {\n key: \"_unsafeSelectionEnd\",\n get: function get() {\n var root = this.rootElement;\n var selection = root.getSelection && root.getSelection();\n return selection && this._unsafeSelectionStart + String(selection).length;\n }\n /**\r\n Sets HTMLElement selection\r\n @override\r\n */\n\n }, {\n key: \"_unsafeSelect\",\n value: function _unsafeSelect(start, end) {\n if (!this.rootElement.createRange) return;\n var range = this.rootElement.createRange();\n range.setStart(this.input.firstChild || this.input, start);\n range.setEnd(this.input.lastChild || this.input, end);\n var root = this.rootElement;\n var selection = root.getSelection && root.getSelection();\n\n if (selection) {\n selection.removeAllRanges();\n selection.addRange(range);\n }\n }\n /**\r\n HTMLElement value\r\n @override\r\n */\n\n }, {\n key: \"value\",\n get: function get() {\n // $FlowFixMe\n return this.input.textContent;\n },\n set: function set(value) {\n this.input.textContent = value;\n }\n }]);\n\n return HTMLContenteditableMaskElement;\n}(HTMLMaskElement);\nIMask.HTMLContenteditableMaskElement = HTMLContenteditableMaskElement;\n\nexport default HTMLContenteditableMaskElement;\n","import { _ as _createClass, a as _classCallCheck, b as _objectWithoutProperties } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport { objectIncludes, DIRECTION } from '../core/utils.js';\nimport ActionDetails from '../core/action-details.js';\nimport MaskedDate from '../masked/date.js';\nimport createMask, { maskedClass } from '../masked/factory.js';\nimport MaskElement from './mask-element.js';\nimport HTMLMaskElement from './html-mask-element.js';\nimport HTMLContenteditableMaskElement from './html-contenteditable-mask-element.js';\nimport IMask from '../core/holder.js';\nimport '../masked/pattern.js';\nimport '../core/change-details.js';\nimport '../masked/base.js';\nimport '../core/continuous-tail-details.js';\nimport '../masked/pattern/input-definition.js';\nimport '../masked/pattern/fixed-definition.js';\nimport '../masked/pattern/chunk-tail-details.js';\nimport '../masked/regexp.js';\nimport '../masked/range.js';\n\n/** Listens to element events and controls changes between element and {@link Masked} */\n\nvar InputMask = /*#__PURE__*/function () {\n /**\r\n View element\r\n @readonly\r\n */\n\n /**\r\n Internal {@link Masked} model\r\n @readonly\r\n */\n\n /**\r\n @param {MaskElement|HTMLInputElement|HTMLTextAreaElement} el\r\n @param {Object} opts\r\n */\n function InputMask(el, opts) {\n _classCallCheck(this, InputMask);\n\n this.el = el instanceof MaskElement ? el : el.isContentEditable && el.tagName !== 'INPUT' && el.tagName !== 'TEXTAREA' ? new HTMLContenteditableMaskElement(el) : new HTMLMaskElement(el);\n this.masked = createMask(opts);\n this._listeners = {};\n this._value = '';\n this._unmaskedValue = '';\n this._saveSelection = this._saveSelection.bind(this);\n this._onInput = this._onInput.bind(this);\n this._onChange = this._onChange.bind(this);\n this._onDrop = this._onDrop.bind(this);\n this._onFocus = this._onFocus.bind(this);\n this._onClick = this._onClick.bind(this);\n this.alignCursor = this.alignCursor.bind(this);\n this.alignCursorFriendly = this.alignCursorFriendly.bind(this);\n\n this._bindEvents(); // refresh\n\n\n this.updateValue();\n\n this._onChange();\n }\n /** Read or update mask */\n\n\n _createClass(InputMask, [{\n key: \"mask\",\n get: function get() {\n return this.masked.mask;\n },\n set: function set(mask) {\n if (this.maskEquals(mask)) return;\n\n if (!(mask instanceof IMask.Masked) && this.masked.constructor === maskedClass(mask)) {\n this.masked.updateOptions({\n mask: mask\n });\n return;\n }\n\n var masked = createMask({\n mask: mask\n });\n masked.unmaskedValue = this.masked.unmaskedValue;\n this.masked = masked;\n }\n /** Raw value */\n\n }, {\n key: \"maskEquals\",\n value: function maskEquals(mask) {\n return mask == null || mask === this.masked.mask || mask === Date && this.masked instanceof MaskedDate;\n }\n }, {\n key: \"value\",\n get: function get() {\n return this._value;\n },\n set: function set(str) {\n this.masked.value = str;\n this.updateControl();\n this.alignCursor();\n }\n /** Unmasked value */\n\n }, {\n key: \"unmaskedValue\",\n get: function get() {\n return this._unmaskedValue;\n },\n set: function set(str) {\n this.masked.unmaskedValue = str;\n this.updateControl();\n this.alignCursor();\n }\n /** Typed unmasked value */\n\n }, {\n key: \"typedValue\",\n get: function get() {\n return this.masked.typedValue;\n },\n set: function set(val) {\n this.masked.typedValue = val;\n this.updateControl();\n this.alignCursor();\n }\n /**\r\n Starts listening to element events\r\n @protected\r\n */\n\n }, {\n key: \"_bindEvents\",\n value: function _bindEvents() {\n this.el.bindEvents({\n selectionChange: this._saveSelection,\n input: this._onInput,\n drop: this._onDrop,\n click: this._onClick,\n focus: this._onFocus,\n commit: this._onChange\n });\n }\n /**\r\n Stops listening to element events\r\n @protected\r\n */\n\n }, {\n key: \"_unbindEvents\",\n value: function _unbindEvents() {\n if (this.el) this.el.unbindEvents();\n }\n /**\r\n Fires custom event\r\n @protected\r\n */\n\n }, {\n key: \"_fireEvent\",\n value: function _fireEvent(ev) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var listeners = this._listeners[ev];\n if (!listeners) return;\n listeners.forEach(function (l) {\n return l.apply(void 0, args);\n });\n }\n /**\r\n Current selection start\r\n @readonly\r\n */\n\n }, {\n key: \"selectionStart\",\n get: function get() {\n return this._cursorChanging ? this._changingCursorPos : this.el.selectionStart;\n }\n /** Current cursor position */\n\n }, {\n key: \"cursorPos\",\n get: function get() {\n return this._cursorChanging ? this._changingCursorPos : this.el.selectionEnd;\n },\n set: function set(pos) {\n if (!this.el || !this.el.isActive) return;\n this.el.select(pos, pos);\n\n this._saveSelection();\n }\n /**\r\n Stores current selection\r\n @protected\r\n */\n\n }, {\n key: \"_saveSelection\",\n value: function _saveSelection()\n /* ev */\n {\n if (this.value !== this.el.value) {\n console.warn('Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.'); // eslint-disable-line no-console\n }\n\n this._selection = {\n start: this.selectionStart,\n end: this.cursorPos\n };\n }\n /** Syncronizes model value from view */\n\n }, {\n key: \"updateValue\",\n value: function updateValue() {\n this.masked.value = this.el.value;\n this._value = this.masked.value;\n }\n /** Syncronizes view from model value, fires change events */\n\n }, {\n key: \"updateControl\",\n value: function updateControl() {\n var newUnmaskedValue = this.masked.unmaskedValue;\n var newValue = this.masked.value;\n var isChanged = this.unmaskedValue !== newUnmaskedValue || this.value !== newValue;\n this._unmaskedValue = newUnmaskedValue;\n this._value = newValue;\n if (this.el.value !== newValue) this.el.value = newValue;\n if (isChanged) this._fireChangeEvents();\n }\n /** Updates options with deep equal check, recreates @{link Masked} model if mask type changes */\n\n }, {\n key: \"updateOptions\",\n value: function updateOptions(opts) {\n var mask = opts.mask,\n restOpts = _objectWithoutProperties(opts, [\"mask\"]);\n\n var updateMask = !this.maskEquals(mask);\n var updateOpts = !objectIncludes(this.masked, restOpts);\n if (updateMask) this.mask = mask;\n if (updateOpts) this.masked.updateOptions(restOpts);\n if (updateMask || updateOpts) this.updateControl();\n }\n /** Updates cursor */\n\n }, {\n key: \"updateCursor\",\n value: function updateCursor(cursorPos) {\n if (cursorPos == null) return;\n this.cursorPos = cursorPos; // also queue change cursor for mobile browsers\n\n this._delayUpdateCursor(cursorPos);\n }\n /**\r\n Delays cursor update to support mobile browsers\r\n @private\r\n */\n\n }, {\n key: \"_delayUpdateCursor\",\n value: function _delayUpdateCursor(cursorPos) {\n var _this = this;\n\n this._abortUpdateCursor();\n\n this._changingCursorPos = cursorPos;\n this._cursorChanging = setTimeout(function () {\n if (!_this.el) return; // if was destroyed\n\n _this.cursorPos = _this._changingCursorPos;\n\n _this._abortUpdateCursor();\n }, 10);\n }\n /**\r\n Fires custom events\r\n @protected\r\n */\n\n }, {\n key: \"_fireChangeEvents\",\n value: function _fireChangeEvents() {\n this._fireEvent('accept', this._inputEvent);\n\n if (this.masked.isComplete) this._fireEvent('complete', this._inputEvent);\n }\n /**\r\n Aborts delayed cursor update\r\n @private\r\n */\n\n }, {\n key: \"_abortUpdateCursor\",\n value: function _abortUpdateCursor() {\n if (this._cursorChanging) {\n clearTimeout(this._cursorChanging);\n delete this._cursorChanging;\n }\n }\n /** Aligns cursor to nearest available position */\n\n }, {\n key: \"alignCursor\",\n value: function alignCursor() {\n this.cursorPos = this.masked.nearestInputPos(this.cursorPos, DIRECTION.LEFT);\n }\n /** Aligns cursor only if selection is empty */\n\n }, {\n key: \"alignCursorFriendly\",\n value: function alignCursorFriendly() {\n if (this.selectionStart !== this.cursorPos) return; // skip if range is selected\n\n this.alignCursor();\n }\n /** Adds listener on custom event */\n\n }, {\n key: \"on\",\n value: function on(ev, handler) {\n if (!this._listeners[ev]) this._listeners[ev] = [];\n\n this._listeners[ev].push(handler);\n\n return this;\n }\n /** Removes custom event listener */\n\n }, {\n key: \"off\",\n value: function off(ev, handler) {\n if (!this._listeners[ev]) return this;\n\n if (!handler) {\n delete this._listeners[ev];\n return this;\n }\n\n var hIndex = this._listeners[ev].indexOf(handler);\n\n if (hIndex >= 0) this._listeners[ev].splice(hIndex, 1);\n return this;\n }\n /** Handles view input event */\n\n }, {\n key: \"_onInput\",\n value: function _onInput(e) {\n this._inputEvent = e;\n\n this._abortUpdateCursor(); // fix strange IE behavior\n\n\n if (!this._selection) return this.updateValue();\n var details = new ActionDetails( // new state\n this.el.value, this.cursorPos, // old state\n this.value, this._selection);\n var oldRawValue = this.masked.rawInputValue;\n var offset = this.masked.splice(details.startChangePos, details.removed.length, details.inserted, details.removeDirection).offset; // force align in remove direction only if no input chars were removed\n // otherwise we still need to align with NONE (to get out from fixed symbols for instance)\n\n var removeDirection = oldRawValue === this.masked.rawInputValue ? details.removeDirection : DIRECTION.NONE;\n var cursorPos = this.masked.nearestInputPos(details.startChangePos + offset, removeDirection);\n this.updateControl();\n this.updateCursor(cursorPos);\n delete this._inputEvent;\n }\n /** Handles view change event and commits model value */\n\n }, {\n key: \"_onChange\",\n value: function _onChange() {\n if (this.value !== this.el.value) {\n this.updateValue();\n }\n\n this.masked.doCommit();\n this.updateControl();\n\n this._saveSelection();\n }\n /** Handles view drop event, prevents by default */\n\n }, {\n key: \"_onDrop\",\n value: function _onDrop(ev) {\n ev.preventDefault();\n ev.stopPropagation();\n }\n /** Restore last selection on focus */\n\n }, {\n key: \"_onFocus\",\n value: function _onFocus(ev) {\n this.alignCursorFriendly();\n }\n /** Restore last selection on focus */\n\n }, {\n key: \"_onClick\",\n value: function _onClick(ev) {\n this.alignCursorFriendly();\n }\n /** Unbind view events and removes element reference */\n\n }, {\n key: \"destroy\",\n value: function destroy() {\n this._unbindEvents(); // $FlowFixMe why not do so?\n\n\n this._listeners.length = 0; // $FlowFixMe\n\n delete this.el;\n }\n }]);\n\n return InputMask;\n}();\nIMask.InputMask = InputMask;\n\nexport default InputMask;\n","import { d as _inherits, e as _createSuper, a as _classCallCheck, _ as _createClass, g as _get, h as _getPrototypeOf } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport MaskedPattern from './pattern.js';\nimport IMask from '../core/holder.js';\nimport '../core/utils.js';\nimport '../core/change-details.js';\nimport './base.js';\nimport '../core/continuous-tail-details.js';\nimport './pattern/input-definition.js';\nimport './factory.js';\nimport './pattern/fixed-definition.js';\nimport './pattern/chunk-tail-details.js';\nimport './regexp.js';\n\n/** Pattern which validates enum values */\n\nvar MaskedEnum = /*#__PURE__*/function (_MaskedPattern) {\n _inherits(MaskedEnum, _MaskedPattern);\n\n var _super = _createSuper(MaskedEnum);\n\n function MaskedEnum() {\n _classCallCheck(this, MaskedEnum);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(MaskedEnum, [{\n key: \"_update\",\n value:\n /**\r\n @override\r\n @param {Object} opts\r\n */\n function _update(opts) {\n // TODO type\n if (opts.enum) opts.mask = '*'.repeat(opts.enum[0].length);\n\n _get(_getPrototypeOf(MaskedEnum.prototype), \"_update\", this).call(this, opts);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"doValidate\",\n value: function doValidate() {\n var _this = this,\n _get2;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return this.enum.some(function (e) {\n return e.indexOf(_this.unmaskedValue) >= 0;\n }) && (_get2 = _get(_getPrototypeOf(MaskedEnum.prototype), \"doValidate\", this)).call.apply(_get2, [this].concat(args));\n }\n }]);\n\n return MaskedEnum;\n}(MaskedPattern);\nIMask.MaskedEnum = MaskedEnum;\n\nexport default MaskedEnum;\n","import { d as _inherits, e as _createSuper, a as _classCallCheck, _ as _createClass, g as _get, h as _getPrototypeOf, f as _slicedToArray, i as _set } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport { escapeRegExp, DIRECTION } from '../core/utils.js';\nimport ChangeDetails from '../core/change-details.js';\nimport Masked from './base.js';\nimport IMask from '../core/holder.js';\nimport '../core/continuous-tail-details.js';\n\n/**\r\n Number mask\r\n @param {Object} opts\r\n @param {string} opts.radix - Single char\r\n @param {string} opts.thousandsSeparator - Single char\r\n @param {Array} opts.mapToRadix - Array of single chars\r\n @param {number} opts.min\r\n @param {number} opts.max\r\n @param {number} opts.scale - Digits after point\r\n @param {boolean} opts.signed - Allow negative\r\n @param {boolean} opts.normalizeZeros - Flag to remove leading and trailing zeros in the end of editing\r\n @param {boolean} opts.padFractionalZeros - Flag to pad trailing zeros after point in the end of editing\r\n*/\nvar MaskedNumber = /*#__PURE__*/function (_Masked) {\n _inherits(MaskedNumber, _Masked);\n\n var _super = _createSuper(MaskedNumber);\n\n /** Single char */\n\n /** Single char */\n\n /** Array of single chars */\n\n /** */\n\n /** */\n\n /** Digits after point */\n\n /** */\n\n /** Flag to remove leading and trailing zeros in the end of editing */\n\n /** Flag to pad trailing zeros after point in the end of editing */\n function MaskedNumber(opts) {\n _classCallCheck(this, MaskedNumber);\n\n return _super.call(this, Object.assign({}, MaskedNumber.DEFAULTS, opts));\n }\n /**\r\n @override\r\n */\n\n\n _createClass(MaskedNumber, [{\n key: \"_update\",\n value: function _update(opts) {\n _get(_getPrototypeOf(MaskedNumber.prototype), \"_update\", this).call(this, opts);\n\n this._updateRegExps();\n }\n /** */\n\n }, {\n key: \"_updateRegExps\",\n value: function _updateRegExps() {\n // use different regexp to process user input (more strict, input suffix) and tail shifting\n var start = '^' + (this.allowNegative ? '[+|\\\\-]?' : '');\n var midInput = '(0|([1-9]+\\\\d*))?';\n var mid = '\\\\d*';\n var end = (this.scale ? '(' + escapeRegExp(this.radix) + '\\\\d{0,' + this.scale + '})?' : '') + '$';\n this._numberRegExpInput = new RegExp(start + midInput + end);\n this._numberRegExp = new RegExp(start + mid + end);\n this._mapToRadixRegExp = new RegExp('[' + this.mapToRadix.map(escapeRegExp).join('') + ']', 'g');\n this._thousandsSeparatorRegExp = new RegExp(escapeRegExp(this.thousandsSeparator), 'g');\n }\n /** */\n\n }, {\n key: \"_removeThousandsSeparators\",\n value: function _removeThousandsSeparators(value) {\n return value.replace(this._thousandsSeparatorRegExp, '');\n }\n /** */\n\n }, {\n key: \"_insertThousandsSeparators\",\n value: function _insertThousandsSeparators(value) {\n // https://stackoverflow.com/questions/2901102/how-to-print-a-number-with-commas-as-thousands-separators-in-javascript\n var parts = value.split(this.radix);\n parts[0] = parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g, this.thousandsSeparator);\n return parts.join(this.radix);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"doPrepare\",\n value: function doPrepare(str) {\n var _get2;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return (_get2 = _get(_getPrototypeOf(MaskedNumber.prototype), \"doPrepare\", this)).call.apply(_get2, [this, this._removeThousandsSeparators(str.replace(this._mapToRadixRegExp, this.radix))].concat(args));\n }\n /** */\n\n }, {\n key: \"_separatorsCount\",\n value: function _separatorsCount(to) {\n var extendOnSeparators = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var count = 0;\n\n for (var pos = 0; pos < to; ++pos) {\n if (this._value.indexOf(this.thousandsSeparator, pos) === pos) {\n ++count;\n if (extendOnSeparators) to += this.thousandsSeparator.length;\n }\n }\n\n return count;\n }\n /** */\n\n }, {\n key: \"_separatorsCountFromSlice\",\n value: function _separatorsCountFromSlice() {\n var slice = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this._value;\n return this._separatorsCount(this._removeThousandsSeparators(slice).length, true);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"extractInput\",\n value: function extractInput() {\n var fromPos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var toPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.value.length;\n var flags = arguments.length > 2 ? arguments[2] : undefined;\n\n var _this$_adjustRangeWit = this._adjustRangeWithSeparators(fromPos, toPos);\n\n var _this$_adjustRangeWit2 = _slicedToArray(_this$_adjustRangeWit, 2);\n\n fromPos = _this$_adjustRangeWit2[0];\n toPos = _this$_adjustRangeWit2[1];\n return this._removeThousandsSeparators(_get(_getPrototypeOf(MaskedNumber.prototype), \"extractInput\", this).call(this, fromPos, toPos, flags));\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"_appendCharRaw\",\n value: function _appendCharRaw(ch) {\n var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (!this.thousandsSeparator) return _get(_getPrototypeOf(MaskedNumber.prototype), \"_appendCharRaw\", this).call(this, ch, flags);\n var prevBeforeTailValue = flags.tail && flags._beforeTailState ? flags._beforeTailState._value : this._value;\n\n var prevBeforeTailSeparatorsCount = this._separatorsCountFromSlice(prevBeforeTailValue);\n\n this._value = this._removeThousandsSeparators(this.value);\n\n var appendDetails = _get(_getPrototypeOf(MaskedNumber.prototype), \"_appendCharRaw\", this).call(this, ch, flags);\n\n this._value = this._insertThousandsSeparators(this._value);\n var beforeTailValue = flags.tail && flags._beforeTailState ? flags._beforeTailState._value : this._value;\n\n var beforeTailSeparatorsCount = this._separatorsCountFromSlice(beforeTailValue);\n\n appendDetails.tailShift += (beforeTailSeparatorsCount - prevBeforeTailSeparatorsCount) * this.thousandsSeparator.length;\n appendDetails.skip = !appendDetails.rawInserted && ch === this.thousandsSeparator;\n return appendDetails;\n }\n /** */\n\n }, {\n key: \"_findSeparatorAround\",\n value: function _findSeparatorAround(pos) {\n if (this.thousandsSeparator) {\n var searchFrom = pos - this.thousandsSeparator.length + 1;\n var separatorPos = this.value.indexOf(this.thousandsSeparator, searchFrom);\n if (separatorPos <= pos) return separatorPos;\n }\n\n return -1;\n }\n }, {\n key: \"_adjustRangeWithSeparators\",\n value: function _adjustRangeWithSeparators(from, to) {\n var separatorAroundFromPos = this._findSeparatorAround(from);\n\n if (separatorAroundFromPos >= 0) from = separatorAroundFromPos;\n\n var separatorAroundToPos = this._findSeparatorAround(to);\n\n if (separatorAroundToPos >= 0) to = separatorAroundToPos + this.thousandsSeparator.length;\n return [from, to];\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"remove\",\n value: function remove() {\n var fromPos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var toPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.value.length;\n\n var _this$_adjustRangeWit3 = this._adjustRangeWithSeparators(fromPos, toPos);\n\n var _this$_adjustRangeWit4 = _slicedToArray(_this$_adjustRangeWit3, 2);\n\n fromPos = _this$_adjustRangeWit4[0];\n toPos = _this$_adjustRangeWit4[1];\n var valueBeforePos = this.value.slice(0, fromPos);\n var valueAfterPos = this.value.slice(toPos);\n\n var prevBeforeTailSeparatorsCount = this._separatorsCount(valueBeforePos.length);\n\n this._value = this._insertThousandsSeparators(this._removeThousandsSeparators(valueBeforePos + valueAfterPos));\n\n var beforeTailSeparatorsCount = this._separatorsCountFromSlice(valueBeforePos);\n\n return new ChangeDetails({\n tailShift: (beforeTailSeparatorsCount - prevBeforeTailSeparatorsCount) * this.thousandsSeparator.length\n });\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"nearestInputPos\",\n value: function nearestInputPos(cursorPos, direction) {\n if (!this.thousandsSeparator) return cursorPos;\n\n switch (direction) {\n case DIRECTION.NONE:\n case DIRECTION.LEFT:\n case DIRECTION.FORCE_LEFT:\n {\n var separatorAtLeftPos = this._findSeparatorAround(cursorPos - 1);\n\n if (separatorAtLeftPos >= 0) {\n var separatorAtLeftEndPos = separatorAtLeftPos + this.thousandsSeparator.length;\n\n if (cursorPos < separatorAtLeftEndPos || this.value.length <= separatorAtLeftEndPos || direction === DIRECTION.FORCE_LEFT) {\n return separatorAtLeftPos;\n }\n }\n\n break;\n }\n\n case DIRECTION.RIGHT:\n case DIRECTION.FORCE_RIGHT:\n {\n var separatorAtRightPos = this._findSeparatorAround(cursorPos);\n\n if (separatorAtRightPos >= 0) {\n return separatorAtRightPos + this.thousandsSeparator.length;\n }\n }\n }\n\n return cursorPos;\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"doValidate\",\n value: function doValidate(flags) {\n var regexp = flags.input ? this._numberRegExpInput : this._numberRegExp; // validate as string\n\n var valid = regexp.test(this._removeThousandsSeparators(this.value));\n\n if (valid) {\n // validate as number\n var number = this.number;\n valid = valid && !isNaN(number) && ( // check min bound for negative values\n this.min == null || this.min >= 0 || this.min <= this.number) && ( // check max bound for positive values\n this.max == null || this.max <= 0 || this.number <= this.max);\n }\n\n return valid && _get(_getPrototypeOf(MaskedNumber.prototype), \"doValidate\", this).call(this, flags);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"doCommit\",\n value: function doCommit() {\n if (this.value) {\n var number = this.number;\n var validnum = number; // check bounds\n\n if (this.min != null) validnum = Math.max(validnum, this.min);\n if (this.max != null) validnum = Math.min(validnum, this.max);\n if (validnum !== number) this.unmaskedValue = String(validnum);\n var formatted = this.value;\n if (this.normalizeZeros) formatted = this._normalizeZeros(formatted);\n if (this.padFractionalZeros) formatted = this._padFractionalZeros(formatted);\n this._value = formatted;\n }\n\n _get(_getPrototypeOf(MaskedNumber.prototype), \"doCommit\", this).call(this);\n }\n /** */\n\n }, {\n key: \"_normalizeZeros\",\n value: function _normalizeZeros(value) {\n var parts = this._removeThousandsSeparators(value).split(this.radix); // remove leading zeros\n\n\n parts[0] = parts[0].replace(/^(\\D*)(0*)(\\d*)/, function (match, sign, zeros, num) {\n return sign + num;\n }); // add leading zero\n\n if (value.length && !/\\d$/.test(parts[0])) parts[0] = parts[0] + '0';\n\n if (parts.length > 1) {\n parts[1] = parts[1].replace(/0*$/, ''); // remove trailing zeros\n\n if (!parts[1].length) parts.length = 1; // remove fractional\n }\n\n return this._insertThousandsSeparators(parts.join(this.radix));\n }\n /** */\n\n }, {\n key: \"_padFractionalZeros\",\n value: function _padFractionalZeros(value) {\n if (!value) return value;\n var parts = value.split(this.radix);\n if (parts.length < 2) parts.push('');\n parts[1] = parts[1].padEnd(this.scale, '0');\n return parts.join(this.radix);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"unmaskedValue\",\n get: function get() {\n return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix, '.');\n },\n set: function set(unmaskedValue) {\n _set(_getPrototypeOf(MaskedNumber.prototype), \"unmaskedValue\", unmaskedValue.replace('.', this.radix), this, true);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"typedValue\",\n get: function get() {\n return Number(this.unmaskedValue);\n },\n set: function set(n) {\n _set(_getPrototypeOf(MaskedNumber.prototype), \"unmaskedValue\", String(n), this, true);\n }\n /** Parsed Number */\n\n }, {\n key: \"number\",\n get: function get() {\n return this.typedValue;\n },\n set: function set(number) {\n this.typedValue = number;\n }\n /**\r\n Is negative allowed\r\n @readonly\r\n */\n\n }, {\n key: \"allowNegative\",\n get: function get() {\n return this.signed || this.min != null && this.min < 0 || this.max != null && this.max < 0;\n }\n }]);\n\n return MaskedNumber;\n}(Masked);\nMaskedNumber.DEFAULTS = {\n radix: ',',\n thousandsSeparator: '',\n mapToRadix: ['.'],\n scale: 2,\n signed: false,\n normalizeZeros: true,\n padFractionalZeros: false\n};\nIMask.MaskedNumber = MaskedNumber;\n\nexport default MaskedNumber;\n","import { d as _inherits, e as _createSuper, a as _classCallCheck, _ as _createClass, g as _get, h as _getPrototypeOf } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport Masked from './base.js';\nimport IMask from '../core/holder.js';\nimport '../core/change-details.js';\nimport '../core/continuous-tail-details.js';\nimport '../core/utils.js';\n\n/** Masking by custom Function */\n\nvar MaskedFunction = /*#__PURE__*/function (_Masked) {\n _inherits(MaskedFunction, _Masked);\n\n var _super = _createSuper(MaskedFunction);\n\n function MaskedFunction() {\n _classCallCheck(this, MaskedFunction);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(MaskedFunction, [{\n key: \"_update\",\n value:\n /**\r\n @override\r\n @param {Object} opts\r\n */\n function _update(opts) {\n if (opts.mask) opts.validate = opts.mask;\n\n _get(_getPrototypeOf(MaskedFunction.prototype), \"_update\", this).call(this, opts);\n }\n }]);\n\n return MaskedFunction;\n}(Masked);\nIMask.MaskedFunction = MaskedFunction;\n\nexport default MaskedFunction;\n","import { d as _inherits, e as _createSuper, a as _classCallCheck, _ as _createClass, g as _get, h as _getPrototypeOf, i as _set, b as _objectWithoutProperties } from '../_rollupPluginBabelHelpers-6ccb1f64.js';\nimport ChangeDetails from '../core/change-details.js';\nimport createMask from './factory.js';\nimport Masked from './base.js';\nimport IMask from '../core/holder.js';\nimport '../core/utils.js';\nimport '../core/continuous-tail-details.js';\n\n/** Dynamic mask for choosing apropriate mask in run-time */\nvar MaskedDynamic = /*#__PURE__*/function (_Masked) {\n _inherits(MaskedDynamic, _Masked);\n\n var _super = _createSuper(MaskedDynamic);\n\n /** Currently chosen mask */\n\n /** Compliled {@link Masked} options */\n\n /** Chooses {@link Masked} depending on input value */\n\n /**\r\n @param {Object} opts\r\n */\n function MaskedDynamic(opts) {\n var _this;\n\n _classCallCheck(this, MaskedDynamic);\n\n _this = _super.call(this, Object.assign({}, MaskedDynamic.DEFAULTS, opts));\n _this.currentMask = null;\n return _this;\n }\n /**\r\n @override\r\n */\n\n\n _createClass(MaskedDynamic, [{\n key: \"_update\",\n value: function _update(opts) {\n _get(_getPrototypeOf(MaskedDynamic.prototype), \"_update\", this).call(this, opts);\n\n if ('mask' in opts) {\n // mask could be totally dynamic with only `dispatch` option\n this.compiledMasks = Array.isArray(opts.mask) ? opts.mask.map(function (m) {\n return createMask(m);\n }) : [];\n }\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"_appendCharRaw\",\n value: function _appendCharRaw(ch) {\n var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var details = this._applyDispatch(ch, flags);\n\n if (this.currentMask) {\n details.aggregate(this.currentMask._appendChar(ch, flags));\n }\n\n return details;\n }\n }, {\n key: \"_applyDispatch\",\n value: function _applyDispatch() {\n var appended = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var prevValueBeforeTail = flags.tail && flags._beforeTailState != null ? flags._beforeTailState._value : this.value;\n var inputValue = this.rawInputValue;\n var insertValue = flags.tail && flags._beforeTailState != null ? // $FlowFixMe - tired to fight with type system\n flags._beforeTailState._rawInputValue : inputValue;\n var tailValue = inputValue.slice(insertValue.length);\n var prevMask = this.currentMask;\n var details = new ChangeDetails();\n var prevMaskState = prevMask && prevMask.state; // clone flags to prevent overwriting `_beforeTailState`\n\n this.currentMask = this.doDispatch(appended, Object.assign({}, flags)); // restore state after dispatch\n\n if (this.currentMask) {\n if (this.currentMask !== prevMask) {\n // if mask changed reapply input\n this.currentMask.reset();\n\n if (insertValue) {\n // $FlowFixMe - it's ok, we don't change current mask above\n var d = this.currentMask.append(insertValue, {\n raw: true\n });\n details.tailShift = d.inserted.length - prevValueBeforeTail.length;\n }\n\n if (tailValue) {\n // $FlowFixMe - it's ok, we don't change current mask above\n details.tailShift += this.currentMask.append(tailValue, {\n raw: true,\n tail: true\n }).tailShift;\n }\n } else {\n // Dispatch can do something bad with state, so\n // restore prev mask state\n this.currentMask.state = prevMaskState;\n }\n }\n\n return details;\n }\n }, {\n key: \"_appendPlaceholder\",\n value: function _appendPlaceholder() {\n var details = this._applyDispatch.apply(this, arguments);\n\n if (this.currentMask) {\n details.aggregate(this.currentMask._appendPlaceholder());\n }\n\n return details;\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"doDispatch\",\n value: function doDispatch(appended) {\n var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return this.dispatch(appended, this, flags);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"doValidate\",\n value: function doValidate() {\n var _get2, _this$currentMask;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return (_get2 = _get(_getPrototypeOf(MaskedDynamic.prototype), \"doValidate\", this)).call.apply(_get2, [this].concat(args)) && (!this.currentMask || (_this$currentMask = this.currentMask).doValidate.apply(_this$currentMask, args));\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"reset\",\n value: function reset() {\n if (this.currentMask) this.currentMask.reset();\n this.compiledMasks.forEach(function (m) {\n return m.reset();\n });\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"value\",\n get: function get() {\n return this.currentMask ? this.currentMask.value : '';\n },\n set: function set(value) {\n _set(_getPrototypeOf(MaskedDynamic.prototype), \"value\", value, this, true);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"unmaskedValue\",\n get: function get() {\n return this.currentMask ? this.currentMask.unmaskedValue : '';\n },\n set: function set(unmaskedValue) {\n _set(_getPrototypeOf(MaskedDynamic.prototype), \"unmaskedValue\", unmaskedValue, this, true);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"typedValue\",\n get: function get() {\n return this.currentMask ? this.currentMask.typedValue : '';\n } // probably typedValue should not be used with dynamic\n ,\n set: function set(value) {\n var unmaskedValue = String(value); // double check it\n\n if (this.currentMask) {\n this.currentMask.typedValue = value;\n unmaskedValue = this.currentMask.unmaskedValue;\n }\n\n this.unmaskedValue = unmaskedValue;\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"isComplete\",\n get: function get() {\n return !!this.currentMask && this.currentMask.isComplete;\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"remove\",\n value: function remove() {\n var details = new ChangeDetails();\n\n if (this.currentMask) {\n var _this$currentMask2;\n\n details.aggregate((_this$currentMask2 = this.currentMask).remove.apply(_this$currentMask2, arguments)) // update with dispatch\n .aggregate(this._applyDispatch());\n }\n\n return details;\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"state\",\n get: function get() {\n return Object.assign({}, _get(_getPrototypeOf(MaskedDynamic.prototype), \"state\", this), {\n _rawInputValue: this.rawInputValue,\n compiledMasks: this.compiledMasks.map(function (m) {\n return m.state;\n }),\n currentMaskRef: this.currentMask,\n currentMask: this.currentMask && this.currentMask.state\n });\n },\n set: function set(state) {\n var compiledMasks = state.compiledMasks,\n currentMaskRef = state.currentMaskRef,\n currentMask = state.currentMask,\n maskedState = _objectWithoutProperties(state, [\"compiledMasks\", \"currentMaskRef\", \"currentMask\"]);\n\n this.compiledMasks.forEach(function (m, mi) {\n return m.state = compiledMasks[mi];\n });\n\n if (currentMaskRef != null) {\n this.currentMask = currentMaskRef;\n this.currentMask.state = currentMask;\n }\n\n _set(_getPrototypeOf(MaskedDynamic.prototype), \"state\", maskedState, this, true);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"extractInput\",\n value: function extractInput() {\n var _this$currentMask3;\n\n return this.currentMask ? (_this$currentMask3 = this.currentMask).extractInput.apply(_this$currentMask3, arguments) : '';\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"extractTail\",\n value: function extractTail() {\n var _this$currentMask4, _get3;\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return this.currentMask ? (_this$currentMask4 = this.currentMask).extractTail.apply(_this$currentMask4, args) : (_get3 = _get(_getPrototypeOf(MaskedDynamic.prototype), \"extractTail\", this)).call.apply(_get3, [this].concat(args));\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"doCommit\",\n value: function doCommit() {\n if (this.currentMask) this.currentMask.doCommit();\n\n _get(_getPrototypeOf(MaskedDynamic.prototype), \"doCommit\", this).call(this);\n }\n /**\r\n @override\r\n */\n\n }, {\n key: \"nearestInputPos\",\n value: function nearestInputPos() {\n var _this$currentMask5, _get4;\n\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n return this.currentMask ? (_this$currentMask5 = this.currentMask).nearestInputPos.apply(_this$currentMask5, args) : (_get4 = _get(_getPrototypeOf(MaskedDynamic.prototype), \"nearestInputPos\", this)).call.apply(_get4, [this].concat(args));\n }\n }, {\n key: \"overwrite\",\n get: function get() {\n return this.currentMask ? this.currentMask.overwrite : _get(_getPrototypeOf(MaskedDynamic.prototype), \"overwrite\", this);\n },\n set: function set(overwrite) {\n console.warn('\"overwrite\" option is not available in dynamic mask, use this option in siblings');\n }\n }]);\n\n return MaskedDynamic;\n}(Masked);\nMaskedDynamic.DEFAULTS = {\n dispatch: function dispatch(appended, masked, flags) {\n if (!masked.compiledMasks.length) return;\n var inputValue = masked.rawInputValue; // simulate input\n\n var inputs = masked.compiledMasks.map(function (m, index) {\n m.reset();\n m.append(inputValue, {\n raw: true\n });\n m.append(appended, flags);\n var weight = m.rawInputValue.length;\n return {\n weight: weight,\n index: index\n };\n }); // pop masks with longer values first\n\n inputs.sort(function (i1, i2) {\n return i2.weight - i1.weight;\n });\n return masked.compiledMasks[inputs[0].index];\n }\n};\nIMask.MaskedDynamic = MaskedDynamic;\n\nexport default MaskedDynamic;\n","import createMask from './factory.js';\nimport IMask from '../core/holder.js';\nimport '../core/utils.js';\nimport '../_rollupPluginBabelHelpers-6ccb1f64.js';\n\n/** Mask pipe source and destination types */\n\nvar PIPE_TYPE = {\n MASKED: 'value',\n UNMASKED: 'unmaskedValue',\n TYPED: 'typedValue'\n};\n/** Creates new pipe function depending on mask type, source and destination options */\n\nfunction createPipe(mask) {\n var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : PIPE_TYPE.MASKED;\n var to = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : PIPE_TYPE.MASKED;\n var masked = createMask(mask);\n return function (value) {\n return masked.runIsolated(function (m) {\n m[from] = value;\n return m[to];\n });\n };\n}\n/** Pipes value through mask depending on mask type, source and destination options */\n\nfunction pipe(value) {\n for (var _len = arguments.length, pipeArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n pipeArgs[_key - 1] = arguments[_key];\n }\n\n return createPipe.apply(void 0, pipeArgs)(value);\n}\nIMask.PIPE_TYPE = PIPE_TYPE;\nIMask.createPipe = createPipe;\nIMask.pipe = pipe;\n\nexport { PIPE_TYPE, createPipe, pipe };\n","export { default as InputMask } from './controls/input.js';\nimport IMask from './core/holder.js';\nexport { default } from './core/holder.js';\nexport { default as Masked } from './masked/base.js';\nexport { default as MaskedPattern } from './masked/pattern.js';\nexport { default as MaskedEnum } from './masked/enum.js';\nexport { default as MaskedRange } from './masked/range.js';\nexport { default as MaskedNumber } from './masked/number.js';\nexport { default as MaskedDate } from './masked/date.js';\nexport { default as MaskedRegExp } from './masked/regexp.js';\nexport { default as MaskedFunction } from './masked/function.js';\nexport { default as MaskedDynamic } from './masked/dynamic.js';\nexport { default as createMask } from './masked/factory.js';\nexport { default as MaskElement } from './controls/mask-element.js';\nexport { default as HTMLMaskElement } from './controls/html-mask-element.js';\nexport { default as HTMLContenteditableMaskElement } from './controls/html-contenteditable-mask-element.js';\nexport { PIPE_TYPE, createPipe, pipe } from './masked/pipe.js';\nimport './_rollupPluginBabelHelpers-6ccb1f64.js';\nimport './core/utils.js';\nimport './core/action-details.js';\nimport './core/change-details.js';\nimport './core/continuous-tail-details.js';\nimport './masked/pattern/input-definition.js';\nimport './masked/pattern/fixed-definition.js';\nimport './masked/pattern/chunk-tail-details.js';\n\ntry {\n globalThis.IMask = IMask;\n} catch (e) {}\n","'use strict';\nvar $ = require('../internals/export');\nvar $reduce = require('../internals/array-reduce').left;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar STRICT_METHOD = arrayMethodIsStrict('reduce');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('reduce', { 1: 0 });\n\n// `Array.prototype.reduce` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n}\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.github.io/ecma262/#sec-array.prototype.foreach\nmodule.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n} : [].forEach;\n","module.exports = function (it, Constructor, name) {\n if (!(it instanceof Constructor)) {\n throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');\n } return it;\n};\n","function e(e){return\"string\"==typeof e?e[0].toUpperCase()+e.substr(1):e}var r={accepted:function(e){return\"من فضلك اقبل ال \"+e.name},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" يجب أن يأتي بعد \"+a[0]+\".\":e(n)+\" يجب أن يكون تاريخ أحدث\"},alpha:function(r){return e(r.name)+\" يجب أن يحتوى على حروف أبجدية فقط.\"},alphanumeric:function(r){return e(r.name)+\" يمكن أن يحتوي على حروف أبجدية أو أرقام فقط.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" يجب أن يكون قبل \"+a[0]+\".\":e(n)+\" يجب أن يكون تاريخ أقدم\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" يجب أن يقع بين \"+t[0]+\" و \"+t[1]+\".\":e(n)+\" يجب ان يكون طوله بين \"+t[0]+\" و \"+t[1]+\" حرف.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" غير متطابق.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" ليس على الصيغة الصحيحة, من فضلك استخدم هذه الصيغة \"+a[0]:e(n)+\" ليس على الصيغة الصحيحة.\"},default:function(e){e.name;return\"هذه القيمة غير مناسبة.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” ليس عنوان بريد الكتروني.\":\"من فضلك أدخل عنوان بريد الكتروني مناسب.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” لا تنتهي بنهاية صحيحة.\":\"نهاية هذه القيمة ليست صحيحة.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” ليس \"+n+\" صحيح.\":\"هذه القيمة ليست \"+n+\" صحيح.\"},matches:function(r){return e(r.name)+\" ليست قيمة مسموح بها.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"يمكنك فقط ان تختار \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" لا يمكن أن يتجاوز \"+t[0]+\".\":e(n)+\" لا يجب ان يزيد طوله عن \"+t[0]+\" حرف.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" يجب ان يكون من نوع \"+(a[0]||\"لا يسمح بأي نوع.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"يجب أن تختار على الأقل \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" يجب أن يكون أكبر من \"+t[0]+\".\":e(n)+\" يجب أن يكون طوله أكبر من \"+t[0]+\" حرف.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” ليست قيمة مسموح بها ك\"+r+\".\"},number:function(r){return e(r.name)+\" يجب أن يكون رقم.\"},required:function(r){return e(r.name)+\" ضروري.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” لا تبدأ بقيمة صحيحة.\":\"هذه القيمة لا تبدأ بقيمة صحيحة.\"},url:function(e){e.name;return\"من فضلك أدخل رابط صحيح.\"}};function n(e){var n;e.extend({locales:(n={},n.ar=r,n)})}var a={accepted:function(e){return\"Si us plau accepta els \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" ha de ser després de \"+a[0]+\".\":e(n)+\" ha de ser una data posterior.\"},alpha:function(r){return e(r.name)+\" només pot contenir lletres.\"},alphanumeric:function(r){return e(r.name)+\" només pot contenir lletres i números.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" ha de ser abans de \"+a[0]+\".\":e(n)+\" ha de ser una data anterior\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" ha d'estar entre \"+t[0]+\" i \"+t[1]+\".\":e(n)+\" ha de tenir entre \"+t[0]+\" i \"+t[1]+\" caràcters.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" no coincideix.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" no és una data vàlida, si us plau usi el format \"+a[0]:e(n)+\" no és una data vàlida.\"},default:function(e){e.name;return\"Aquest camp no és vàlid.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” no és un correu electrònic vàlid.\":\"Si us plau introdueixi un correu electrònic vàlid.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” no acaba en un valor vàlid.\":\"Aquest camp no acaba en un valor vàlid.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” no és un \"+n+\" permès.\":\"Això no és un \"+n+\" permès.\"},matches:function(r){return e(r.name)+\" no és un valor permès.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Només pots seleccionar \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" ha de ser menor o igual que \"+t[0]+\".\":e(n)+\" ha de ser menor o igual que \"+t[0]+\" caràcters.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" ha de ser de tipus: \"+(a[0]||\"No es permet el format d'arxius.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Necessites almenys \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" ha de contenir almenys \"+t[0]+\".\":e(n)+\" ha de contenir almenys \"+t[0]+\" caràcters.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” no és un \"+r+\" permès.\"},number:function(r){return e(r.name)+\" ha de ser un número.\"},required:function(r){return e(r.name)+\" és requerit.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” no comença amb un valor vàlid.\":\"Aquest camp no comença amb un valor vàlid.\"},url:function(e){e.name;return\"Si us plau introdueixi una url vàlida.\"}};function t(e){var r;e.extend({locales:(r={},r.ca=a,r)})}var i={accepted:function(e){return\"Prosím potvrďte \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" musí bý po \"+a[0]+\".\":e(n)+\" musí být pozdější datum.\"},alpha:function(r){return e(r.name)+\" může obsahovat pouze písmena.\"},alphanumeric:function(r){return e(r.name)+\" může obsahovat pouze písmena a čísla.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" musí být před \"+a[0]+\".\":e(n)+\" musí být dřívější datum.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" musí být mezi \"+t[0]+\" a \"+t[1]+\".\":e(n)+\" délka musí být mezi \"+t[0]+\" a \"+t[1]+\" znaky.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" se neshoduje.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" není platné datum, použijte formát \"+a[0]:e(n)+\" není platné datum.\"},default:function(e){e.name;return\"Toto pole není vyplěno správně.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” není platná e-mailová adresa.\":\"Zadejte platnou e-mailovou adresu.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nekončí správnou hodnotou.\":\"Toto pole nekončí správnou hodnotou.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” není povolená hodnota \"+n+\".\":\"Toto není povolená hodnota \"+n+\".\"},matches:function(r){return e(r.name)+\" není povolená hodnota.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Můžete vybrat pouze \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" musí být menší nebo rovno \"+t[0]+\".\":e(n)+\" musí být menší nebo rovno \"+t[0]+\" znaků.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" musí být typ: \"+(a[0]||\"Žádné typy souborů nejsou povolené.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Je potřeba nejméně \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" musí být nejméně \"+t[0]+\".\":e(n)+\" musí být nejméně \"+t[0]+\" znaků.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” není povolená hodnota \"+r+\".\"},number:function(r){return e(r.name)+\" musí být číslo.\"},required:function(r){return\"Pole \"+e(r.name)+\" je povinné.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nezačíná platnou hodnotou.\":\"Toto pole nezačíná platnou hodnotou.\"},url:function(e){e.name;return\"Zadejte platnou URL adresu.\"}};function u(e){var r;e.extend({locales:(r={},r.cs=i,r)})}var o={accepted:function(e){return\"Accepter venligst \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" skal være efter \"+a[0]+\".\":e(n)+\" skal være en senere dato.\"},alpha:function(r){return e(r.name)+\" kan kun indeholde bogstaver.\"},alphanumeric:function(r){return e(r.name)+\" kan kun indeholde bogstaver og tal.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" skal være før \"+a[0]+\".\":e(n)+\" skal være en tidligere dato.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" skal være mellem \"+t[0]+\" og \"+t[1]+\".\":e(n)+\" skal være mellem \"+t[0]+\" og \"+t[1]+\" tegn.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" matcher ikke.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" er ikke gyldig, brug venligst formatet \"+a[0]:e(n)+\" er ikke en gyldig dato.\"},default:function(e){e.name;return\"Dette felt er ikke gyldigt.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” er ikke en gyldig email-adresse.\":\"Indtast venligst en gyldig email-adresse.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” slutter ikke med en gyldig værdi.\":\"Dette felt slutter ikke med en gyldig værdi.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” er ikke en tilladt \"+n+\".\":\"Dette er ikke en tilladt \"+n+\".\"},matches:function(r){return e(r.name)+\" er ikke en gyldig værdi.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Du kan kun vælge \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" skal være mindre end eller lig \"+t[0]+\".\":e(n)+\" skal være mindre end eller lig \"+t[0]+\" tegn.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" skal være af typen: \"+(a[0]||\"Ingen tilladte filformater.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Du skal vælge mindst \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" skal være mere end \"+t[0]+\".\":e(n)+\" skal være mere end \"+t[0]+\" tegn.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” er ikke en gyldig \"+r+\".\"},number:function(r){return e(r.name)+\" skal være et tal.\"},required:function(r){return e(r.name)+\" er påkrævet.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” starter ikke med en gyldig værdi.\":\"Dette felt starter ikke med en gyldig værdi.\"},url:function(e){e.name;return\"Indtast venligst en gyldig URL.\"}};function s(e){var r;e.extend({locales:(r={},r.da=o,r)})}var l={accepted:function(e){return e.name+\" erfordert Zustimmung.\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" muss auf \"+a[0]+\" folgen.\":e(n)+\" muss ein späteres Datum sein.\"},alpha:function(r){return e(r.name)+\" darf nur Buchstaben enthalten.\"},alphanumeric:function(r){return e(r.name)+\" darf nur Buchstaben und Zahlen enthalten.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" muss vor \"+a[0]+\" sein.\":e(n)+\" muss ein früheres Datum sein.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" muss zwischen \"+t[0]+\" und \"+t[1]+\".\":e(n)+\" muss zwischen \"+t[0]+\" und \"+t[1]+\" Zeichen lang sein.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" stimmt nicht überein.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" ist nicht korrekt, bitte das Format \"+a[0]+\" benutzen.\":e(n)+\" ist kein gültiges Datum.\"},default:function(e){e.name;return\"Das Feld hat einen Fehler.\"},email:function(e){e.name;var r=e.value;return r?\"„\"+r+\"“ ist keine gültige E-Mail-Adresse.\":\"Bitte eine gültige E-Mail-Adresse eingeben.\"},endsWith:function(e){e.name;var r=e.value;return r?\"„\"+r+\"” endet nicht mit einem gültigen Wert.\":\"Dieses Feld endet nicht mit einem gültigen Wert\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"„\"+e(a)+\"“ ist kein gültiger Wert für \"+n+\".\":\"Dies ist kein gültiger Wert für \"+n+\".\"},matches:function(r){return e(r.name)+\" ist kein gültiger Wert.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Es dürfen nur \"+t[0]+\" \"+n+\" ausgewählt werden.\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" muss kleiner oder gleich \"+t[0]+\" sein.\":e(n)+\" muss \"+t[0]+\" oder weniger Zeichen lang sein.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" muss den Typ \"+(a[0]||\"Keine Dateien erlaubt\")+\" haben.\"},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Es müssen mindestens \"+t[0]+\" \"+n+\" ausgewählt werden.\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" muss größer als \"+t[0]+\" sein.\":e(n)+\" muss \"+t[0]+\" oder mehr Zeichen lang sein.\"},not:function(e){var r=e.name;return\"„\"+e.value+\"“ ist kein erlaubter Wert für \"+r+\".\"},number:function(r){return e(r.name)+\" muss eine Zahl sein.\"},required:function(r){return e(r.name)+\" ist ein Pflichtfeld.\"},startsWith:function(e){e.name;var r=e.value;return r?\"„\"+r+\"” beginnt nicht mit einem gültigen Wert\":\"Dieses Feld beginnt nicht mit einem gültigen Wert\"},url:function(r){return e(r.name)+\" muss eine gültige URL sein.\"}};function m(e){var r;e.extend({locales:(r={},r.de=l,r)})}var v={accepted:function(e){return\"Please accept the \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" must be after \"+a[0]+\".\":e(n)+\" must be a later date.\"},alpha:function(r){return e(r.name)+\" can only contain alphabetical characters.\"},alphanumeric:function(r){return e(r.name)+\" can only contain letters and numbers.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" must be before \"+a[0]+\".\":e(n)+\" must be an earlier date.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" must be between \"+t[0]+\" and \"+t[1]+\".\":e(n)+\" must be between \"+t[0]+\" and \"+t[1]+\" characters long.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" does not match.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" is not a valid date, please use the format \"+a[0]:e(n)+\" is not a valid date.\"},default:function(e){e.name;return\"This field isn’t valid.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” is not a valid email address.\":\"Please enter a valid email address.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” doesn’t end with a valid value.\":\"This field doesn’t end with a valid value.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” is not an allowed \"+n+\".\":\"This is not an allowed \"+n+\".\"},matches:function(r){return e(r.name)+\" is not an allowed value.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"You may only select \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" must be less than or equal to \"+t[0]+\".\":e(n)+\" must be less than or equal to \"+t[0]+\" characters long.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" must be of the type: \"+(a[0]||\"No file formats allowed.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"You need at least \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" must be at least \"+t[0]+\".\":e(n)+\" must be at least \"+t[0]+\" characters long.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” is not an allowed \"+r+\".\"},number:function(r){return e(r.name)+\" must be a number.\"},required:function(r){return e(r.name)+\" is required.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” doesn’t start with a valid value.\":\"This field doesn’t start with a valid value.\"},url:function(e){e.name;return\"Please include a valid url.\"}};function c(e){var r;e.extend({locales:(r={},r.en=v,r)})}var f={accepted:function(e){return\"Por favor acepta los \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" debe ser luego de \"+a[0]+\".\":e(n)+\" debe ser una fecha posterior.\"},alpha:function(r){return e(r.name)+\" solo puede contener letras.\"},alphanumeric:function(r){return e(r.name)+\" solo puede contener letras y números.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" debe ser antes de \"+a[0]+\".\":e(n)+\" debe ser una fecha anterior.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" debe estar entre \"+t[0]+\" y \"+t[1]+\".\":e(n)+\" debe tener entre \"+t[0]+\" y \"+t[1]+\" caracteres.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" no coincide.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" no es una fecha válida, por favor use el formato \"+a[0]:e(n)+\" no es una fecha válida.\"},default:function(e){e.name;return\"Este campo no es válido.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” no es un correo electrónico válido.\":\"Por favor introduzca un correo electrónico válido.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” no termina en un valor válido.\":\"Este campo no termina en un valor válido.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” no es un \"+n+\" permitido.\":\"Esto no es un \"+n+\" permitido.\"},matches:function(r){return e(r.name)+\" no es un valor permitido.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Solo puedes seleccionar \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" debe ser menor o igual que \"+t[0]+\".\":e(n)+\" debe ser menor o igual que \"+t[0]+\" caracteres.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" debe ser de tipo: \"+(a[0]||\"No se permite el formato de archivos.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Necesitas al menos \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" debe contener al menos \"+t[0]+\".\":e(n)+\" debe contener al menos \"+t[0]+\" caracteres.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” no es un \"+r+\" permitido.\"},number:function(r){return e(r.name)+\" debe ser un número.\"},required:function(r){return e(r.name)+\" es requerido.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” no comienza con un valor válido.\":\"Este campo no comienza con un valor válido.\"},url:function(e){e.name;return\"Por favor introduzca una url válida.\"}};function d(e){var r;e.extend({locales:(r={},r.es=f,r)})}var g={accepted:function(e){return\"Merci d'accepter les \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" doit être postérieur à \"+a[0]+\".\":e(n)+\" doit être une date ultérieure.\"},alpha:function(r){return e(r.name)+\" peut uniquement contenir des lettres.\"},alphanumeric:function(r){return e(r.name)+\" peut uniquement contenir des lettres ou des chiffres\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" doit être antérieur à \"+a[0]+\".\":e(n)+\" doit être une date antérieure.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" doit être compris entre \"+t[0]+\" et \"+t[1]+\".\":e(n)+\" doit être compris entre \"+t[0]+\" et \"+t[1]+\" caractères.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" ne correspond pas.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" n'est pas valide. Merci d'utiliser le format \"+a[0]:e(n)+\" n'est pas une date valide.\"},default:function(e){e.name;return\"Ce champ n'est pas valide.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” n'est pas une adresse email valide.\":\"Merci d'entrer une adresse email valide.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” ne termine pas par une valeur correcte.\":\"Ce champ ne termine pas par une valeur correcte.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” n'est pas un(e) \"+n+\" autorisé(e).\":\"Cette valeur n'est pas un(e) \"+n+\" autorisé(e).\"},matches:function(r){return e(r.name)+\" n'est pas une valeur autorisée.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Vous pouvez uniquement sélectionner \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" doit être inférieur ou égal à \"+t[0]+\".\":e(n)+\" doit être inférieur ou égal à \"+t[0]+\" caractères.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" doit être de type: \"+(a[0]||\"Aucun format autorisé.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Vous devez sélectionner au moins \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" doit être supérieur à \"+t[0]+\".\":e(n)+\" doit être plus long que \"+t[0]+\" caractères.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” n'est pas un(e) \"+r+\" autorisé(e).\"},number:function(r){return e(r.name)+\" doit être un nombre.\"},required:function(r){return e(r.name)+\" est obligatoire.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” ne commence pas par une valeur correcte.\":\"Ce champ ne commence pas par une valeur correcte.\"},url:function(e){e.name;return\"Merci d'entrer une URL valide.\"}};function y(e){var r;e.extend({locales:(r={},r.fr=g,r)})}var h={accepted:function(e){return\"אנא קבל את ה\"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" חייב להיות אחרי \"+a[0]+\".\":e(n)+\" חייב להיות תאריך יותר מאוחר.\"},alpha:function(r){return e(r.name)+\" יכול להכיל אותיות בלבד.\"},alphanumeric:function(r){return e(r.name)+\" יכול להכיל אותיות ומספרים בלבד.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" חייב להיות לפני \"+a[0]+\".\":e(n)+\" חייב להיות תאריך יותר מוקדם.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" חייב להיות בין \"+t[0]+\" ו-\"+t[1]+\".\":e(n)+\" חייב להיות בין \"+t[0]+\" ו-\"+t[1]+\" אותיות.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" אינו תואם.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" אינו תאריך תקין, אנא השתמש בפורמט \"+a[0]:e(n)+\" אינו תאריך תקין.\"},default:function(e){e.name;return\"השדה אינו תקין.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” אינו כתובת אימייל תקין.\":\"אנא הכנס כתובת אימייל תקין.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” אינו מסתיים בערך תקין.\":\"שדה זו אינו מסתיים בערך תקין.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” אינו \"+n+\" מורשה.\":\"ערך זו איננו \"+n+\" מורשה.\"},matches:function(r){return e(r.name)+\" אינו ערך מורשה.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"אתה יכול לבחור רק \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" חייב להיות פחות או שוה ל-\"+t[0]+\".\":e(n)+\" חייב להיות פחות או שוה ל-\"+t[0]+\" אותיות.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" חייב להיות מסוג של: \"+(a[0]||\"סוגי קבצים לא מורשים.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"אתה צריך לפחות \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" חייב להיות לפחות \"+t[0]+\".\":e(n)+\" חייב להיות לפחות \"+t[0]+\" אותיות.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” אינו \"+r+\" מורשה.\"},number:function(r){return e(r.name)+\" חייב להיות מספר.\"},required:function(r){return e(r.name)+\" נדרש.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” אינו מתחיל בערך תקף.\":\"שדה זה אינו מתחיל בערך תקף.\"},url:function(e){e.name;return\"אנא כלול כתובת אתר חוקית.\"}};function A(e){var r;e.extend({locales:(r={},r.he=h,r)})}var p={accepted:function(e){return\"Kérlek fogadd el a(z) \"+e.name+\" mezőt.\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" után kell lennie \"+a[0]+\".\":e(n)+\" későbbi dátumnak kell lennie.\"},alpha:function(r){return e(r.name)+\" csak ábécé szerinti karaktereket tartalmazhat.\"},alphanumeric:function(r){return e(r.name)+\" csak betűket és számokat tartalmazhat.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" előtt kell lennie \"+a[0]+\".\":e(n)+\" korábbi dátumnak kell lennie.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" között kell lennie \"+t[0]+\" és \"+t[1]+\".\":e(n)+\" között kell lennie \"+t[0]+\" és \"+t[1]+\" karakter hosszú.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" nem egyezik.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" nem érvényes dátum, kérlek használd a \"+a[0]+\" formátumot.\":e(n)+\" nem érvényes dátum.\"},default:function(e){e.name;return\"Ez a mező érvénytelen.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nem érvényes e-mail cím.\":\"Kérlek valós e-mail címet adj meg.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nem ér véget érvényes értékkel.\":\"Ez a mező nem ér véget érvényes értékkel.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” nem megengedett \"+n+\".\":\"Ez nem megengedett \"+n+\".\"},matches:function(r){return e(r.name)+\" nem megengedett érték.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Csak választható \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" kisebbnek vagy egyenlőnek kell lennie \"+t[0]+\".\":e(n)+\" kisebbnek vagy egyenlőnek kell lennie \"+t[0]+\" karakter hosszú.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" típusúnak kell lennie: \"+(a[0]||\"Nem engedélyezett fájlformátumok.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Legalább szükséges \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" legalább \"+t[0]+\".\":e(n)+\" legalább \"+t[0]+\" karakter hosszú.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” nem megengedett \"+r+\".\"},number:function(r){return e(r.name)+\" számnak kell lennie.\"},required:function(r){return e(r.name)+\" kötelező.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nem érvényes értékkel kezdődik.\":\"Ez a mező nem érvényes értékkel kezdődik.\"},url:function(e){e.name;return\"Kérlek érvényes ulr-t adj meg.\"}};function b(e){var r;e.extend({locales:(r={},r.hu=p,r)})}var k={accepted:function(e){return\"Per favore, accetta il campo \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" deve essere una data successiva al \"+a[0]+\".\":e(n)+\" deve essere una data successiva a quella attuale.\"},alpha:function(r){return e(r.name)+\" può contenere solo lettere.\"},alphanumeric:function(r){return e(r.name)+\" può contenere solo lettere e numeri.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" deve essere una data precedente al \"+a[0]+\".\":e(n)+\" deve essere una data precedente a quella attuale.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" deve essere tra \"+t[0]+\" e \"+t[1]+\".\":e(n)+\" deve avere una lunghezza compresa tra \"+t[0]+\" e \"+t[1]+\" caratteri.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" non corrisponde.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" non è una data valida. Per favore usa il formato \"+a[0]:e(n)+\" non è una data valida.\"},default:function(e){e.name;return\"Questo campo non è valido.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” non è un indirizzo email valido.\":\"Per favore, inserisci un indirizzo email valido.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” non termina con un valore valido.\":\"Questo campo non termina con un valore valido.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” non è un valore valido per il campo \"+n+\".\":n+\" invalido.\"},matches:function(r){return e(r.name)+\" invalido.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Puoi selezionare al massimo \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" deve essere inferiore o uguale a \"+t[0]+\".\":e(n)+\" deve essere inferiore o uguale a \"+t[0]+\" caratteri.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" deve essere del tipo: \"+(a[0]||\"Nessun formato file autorizzato.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Devi selezionare almeno \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" deve essere maggiore di \"+t[0]+\".\":e(n)+\" deve essere più lungo di \"+t[0]+\" caratteri.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” non è un valore valido per il campo \"+r+\".\"},number:function(r){return e(r.name)+\" deve essere un numero.\"},required:function(r){return e(r.name)+\" è un campo obbligatorio.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” non inizia con un valore valido.\":\"Questo campo non inizia con un valore valido.\"},url:function(e){e.name;return\"Per favore inserisci un URL valido.\"}};function N(e){var r;e.extend({locales:(r={},r.it=k,r)})}var z={accepted:function(e){return e.name+\"を承認してください。\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\"は \"+a[0]+\" 以降にしてください。\":e(n)+\"はより後にしてください。\"},alpha:function(r){return e(r.name)+\"にはアルファベットのみ使用できます。\"},alphanumeric:function(r){return e(r.name)+\"には英数字のみ使用できます。\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\"は \"+a[0]+\" 以前にしてください。\":e(n)+\"はより前にしてください。\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\"は\"+t[0]+\"から\"+t[1]+\"の間でなければなりません。\":e(n)+\"は\"+t[0]+\"文字から\"+t[1]+\"文字でなければなりません。\"},confirm:function(r){var n=r.name;r.args;return e(n)+\"が一致しません。\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\"は有効な形式ではありません。次のフォーマットで入力してください: \"+a[0]:e(n)+\"は有効な形式ではありません。\"},default:function(e){e.name;return\"有効な値ではありません。\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” は有効なメールアドレスではありません。\":\"有効なメールアドレスを入力してください。\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” は有効な値で終わっていません。\":\"有効な値で終わっていません。\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” は許可された\"+n+\"ではありません。\":\"許可された\"+n+\"ではありません。\"},matches:function(r){return e(r.name)+\"は許可された値ではありません。\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return n+\"は\"+t[0]+\"項目しか選択できません。\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\"は\"+t[0]+\"以下でなければなりません。\":e(n)+\"は\"+t[0]+\"文字以下でなければなりません。\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\"は次のファイル形式でなければなりません: \"+(a[0]||\"許可されたファイル形式がありません\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return n+\"は\"+t[0]+\"項目以上選択してください。\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\"は\"+t[0]+\"以上でなければなりません。\":e(n)+\"は\"+t[0]+\"文字以上でなければなりません。\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” は許可された\"+r+\"ではありません。\"},number:function(r){return e(r.name)+\"には数字のみ使用できます。\"},required:function(r){return e(r.name)+\"は必須項目です。\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” は有効な値で始まっていません。\":\"有効な値で始まっていません。\"},url:function(e){e.name;return\"有効なURLを入力してください。\"}};function j(e){var r;e.extend({locales:(r={},r.ja=z,r)})}var w={accepted:function(e){return e.name+\" 승인해 주세요.\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" \"+a[0]+\" 이후이어야 합니다.\":e(n)+\" 미래의 날짜이어야 합니다.\"},alpha:function(r){return e(r.name)+\" 알파벳만 사용할 수 있습니다.\"},alphanumeric:function(r){return e(r.name)+\" 문자와 숫자만 사용할 수 있습니다.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" \"+a[0]+\" 이전이어야 합니다.\":e(n)+\"이전이어야 합니다.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" \"+t[0]+\"와 \"+t[1]+\"사이이어야 합니다.\":e(n)+\" \"+t[0]+\"자애서 \"+t[1]+\"자 사이이어야 합니다.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" 일치하지 않습니다.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" 유효한 날짜 형식이 아닙니다. 다음과 같은 형식으로 입력해 주세요: \"+a[0]:e(n)+\"올바른 날짜 형식이 아닙니다.\"},default:function(e){e.name;return\"유효하지 않은 값입니다.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” 유효한 이메일 주소가 아닙니다.\":\"유효한 이메일 주소를 입력해 주세요.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"”으로 끝내야합니다.\":\"유효한 값으로 끝나지 않습니다.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” 허용된 \"+n+\" 아닙니다.\":n+\" 허용된 값이 아닙니다.\"},matches:function(r){return e(r.name)+\" 허용 된 값이 아닙니다.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return n+\" \"+t[0]+\"개의 항목만 선택 가능합니다.\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" \"+t[0]+\"이하이어야 합니다.\":e(n)+\" \"+t[0]+\"자 이하이어야 합니다.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" 다음과 같은 파일 형식이어야 합니다: \"+(a[0]||\"허용되는 파일 형식이 아닙니다.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return n+\" \"+t[0]+\" 이상 선택해 주세요.\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" \"+t[0]+\"이상이어야 합니다.\":e(n)+\" \"+t[0]+\"자 이상이어야 합니다.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” 허용된 \"+r+\" 아닙니다.\"},number:function(r){return e(r.name)+\" 숫자만 사용 가능합니다.\"},required:function(r){return e(r.name)+\" 필수 항목입니다.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” 유효한 값으로 시작하지 않습니다.\":\"유효한 값으로 시작하지 않습니다.\"},url:function(e){e.name;return\"유효한 URL을 입력해 주세요.\"}};function x(e){var r;e.extend({locales:(r={},r.ko=w,r)})}var W={accepted:function(e){return\"Vennligst aksepter \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" må være etter \"+a[0]+\".\":e(n)+\" må være på en senere dato.\"},alpha:function(r){return e(r.name)+\" kan kun inneholde bokstaver.\"},alphanumeric:function(r){return e(r.name)+\" kan kun inneholde bokstaver og tall.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" må være før \"+a[0]+\".\":e(n)+\" må være en tidligere dato.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" må være mellom \"+t[0]+\" og \"+t[1]+\".\":e(n)+\" må være mellom \"+t[0]+\" og \"+t[1]+\" tegn.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" matcher ikke.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" er ikke gyldig. Vennligst bruk formatet \"+a[0]:e(n)+\" er ikke en gyldig dato.\"},default:function(e){e.name;return\"Dette feltet er ikke gyldig.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” er ikke en gyldig e-postadresse.\":\"Vennligst skriv inn en gyldig e-postadresse.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” slutter ikke med en gyldig verdi.\":\"Dette feltet slutter ikke med en gyldig verdi.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” er ikke et tillatt \"+n+\".\":\"Dette er ikke et tillatt \"+n+\".\"},matches:function(r){return e(r.name)+\" er ikke en gyldig verdi.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Du kan kun velge \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" må være mindre eller lik \"+t[0]+\".\":e(n)+\" må være mindre eller lik \"+t[0]+\" tegn.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" må være av typen: \"+(a[0]||\"Ingen tillatte filformater.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Du skal velge minst \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" må være større enn \"+t[0]+\".\":e(n)+\" må være minst \"+t[0]+\" tegn.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” er ikke et tillatt \"+r+\".\"},number:function(r){return e(r.name)+\" må være et tall.\"},required:function(r){return e(r.name)+\" er påkrevd.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” starter ikke med en gyldig verdi.\":\"Dette feltet starter ikke med en gyldig verdi.\"},url:function(e){e.name;return\"Vennligst skriv inn en gyldig URL.\"}};function q(e){var r;e.extend({locales:(r={},r.nb=W,r)})}var P={accepted:function(e){return\"Sta \"+e.name+\" toe.\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" moet na \"+a[0]+\" zijn.\":e(n)+\" moet een latere datum zijn.\"},alpha:function(r){return e(r.name)+\" mag enkel letters bevatten.\"},alphanumeric:function(r){return e(r.name)+\" mag enkel letters en cijfers bevatten.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" moet voor \"+a[0]+\" zijn.\":e(n)+\" moet een eerdere datum zijn.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" moet tussen \"+t[0]+\" en \"+t[1]+\" zitten.\":e(n)+\" moet tussen \"+t[0]+\" en \"+t[1]+\" lang zijn.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" komt niet overeen.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" is geen geldige datum, het juiste format is \"+a[0]:e(n)+\" is geen geldige datum.\"},default:function(e){e.name;return\"De invoer voor dit veld is niet geldig\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” is geen geldig e-mailadres.\":\"Voer een geldig e-mailadres in.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” eindigt niet op een geldige waarde.\":\"Dit veld eindigt niet op een geldige waarde.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” is niet toegestaan als \"+n+\".\":\"Deze \"+n+\" is niet toegestaan.\"},matches:function(r){return e(r.name)+\" is niet toegestaan.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Je kunt maximaal \"+t[0]+\" selecteren als \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" moet kleiner of gelijk zijn aan \"+t[0]+\".\":e(n)+\" mag maximaal \"+t[0]+\" karakters bevatten.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" moet van dit type zijn: \"+(a[0]||\"Bestanden zijn niet toegestaan\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Je moet tenminste \"+t[0]+\" selecteren als \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" moet groter zijn dan \"+t[0]+\".\":e(n)+\" moet tenminste \"+t[0]+\" karakters bevatten.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” is geen geldige \"+r+\".\"},number:function(r){return e(r.name)+\" moet een getal zijn.\"},required:function(r){return e(r.name)+\" is verplicht.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” begint niet met een geldige waarde.\":\"Dit veld begint niet met een geldige waarde.\"},url:function(e){e.name;return\"Voer een geldige URL in.\"}};function D(e){var r;e.extend({locales:(r={},r.nl=P,r)})}var T={accepted:function(e){return\"Prašome priimti \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" turi būti po \"+a[0]+\".\":e(n)+\" turi būti vėlesnė data.\"},alpha:function(r){return e(r.name)+\" gali būti tik abėcėlės raidės.\"},alphanumeric:function(r){return e(r.name)+\" gali būti tik raidės ir skaičiai.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" turi būti prieš \"+a[0]+\".\":e(n)+\" turi būti ankstesnė data.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" turi būti tarp \"+t[0]+\" ir \"+t[1]+\".\":e(n)+\" turi būti tarp \"+t[0]+\" ir \"+t[1]+\" simbolių ilgio.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" nesutampa.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" neteisinga data, naudokite formatą \"+a[0]:e(n)+\" neteisinga data.\"},default:function(e){e.name;return\"Šis laukas nėra validus.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nėra teisingas el. pašto adresas.\":\"Prašome įvesti galiojantį el. pašto adresą.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nesibaigia galiojančia reikšme.\":\"Šis laukas nesibaigia galiojančia reikšme.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” nėra tinkamas \"+n+\".\":\"Tai netinkamas \"+n+\".\"},matches:function(r){return e(r.name)+\" nėra leistina reikšmė.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Galite pasirinkti tik \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" turi būti mažesnis arba lygus \"+t[0]+\".\":e(n)+\" turi turėti mažiau arba lygiai \"+t[0]+\" simbolių.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" turi būti tokio tipo: \"+(a[0]||\"Neleidžiami jokie failų formatai.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Turi būti ne mažiau nei \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" turi būti ne mažiau nei \"+t[0]+\".\":e(n)+\" turi būti ne mažiau \"+t[0]+\" simbolių.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” nėra leistinas \"+r+\".\"},number:function(r){return e(r.name)+\" turi būti skaičius.\"},required:function(r){return e(r.name)+\" yra privalomas.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” neprasideda galiojančia reikšme.\":\"Šis laukas neprasideda galiojančia reikšme.\"},url:function(e){e.name;return\"Įveskite galiojantį URL.\"}};function L(e){var r;e.extend({locales:(r={},r.lt=T,r)})}var U={accepted:function(e){return\"Proszę zaakceptować \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" musi być po \"+a[0]+\".\":e(n)+\" musi być przyszłą datą.\"},alpha:function(r){return e(r.name)+\" może zawierać wyłącznie znaki alfabetyczne.\"},alphanumeric:function(r){return e(r.name)+\" może zawierać wyłącznie liczby i litery.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" musi być przed \"+a[0]+\".\":e(n)+\" musi być wczesniejszą datą.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" musi być pomiędzy \"+t[0]+\" oraz \"+t[1]+\".\":e(n)+\" musi być pomiędzy \"+t[0]+\" oraz \"+t[1]+\" znaków.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" nie pasuje.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" nie jest poprawną datą, proszę użyć formatu \"+a[0]:e(n)+\" nie jest poprawną datą.\"},default:function(e){e.name;return\"Pole nie jest poprawne.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nie jest poprawnym adresem email.\":\"Proszę podać poprawny adres email.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nie kończy się z poprawną wartością.\":\"Pole nie kończy się z poprawną wartością.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” jest niedozwoloną wartością pola \"+n+\".\":\"Wartość jest niedozwolona w polu \"+n+\".\"},matches:function(r){return e(r.name)+\" nie jest dozwoloną wartością.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Możesz wybrać maksymalnie \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" musi być mniejszy lub równy \"+t[0]+\".\":e(n)+\" musi być mniejszy lub równy \"+t[0]+\" znaków.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" musi być typem: \"+(a[0]||\"Niedozwolone formaty plików.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Potrzeba przynajmniej \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" musi mieć przynajmniej \"+t[0]+\".\":e(n)+\" musi mieć przynajmniej \"+t[0]+\" znaków.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” jest niedozwoloną wartością \"+r+\".\"},number:function(r){return e(r.name)+\" musi być liczbą.\"},required:function(r){return e(r.name)+\" jest wymagane.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nie zaczyna się z poprawną wartością.\":\"Pole nie zaczyna się z poprawną wartością.\"},url:function(e){e.name;return\"Proszę wprowadzić poprawny adres URL.\"}};function V(e){var r;e.extend({locales:(r={},r.pl=U,r)})}var E={accepted:function(e){return\"Por favor aceite o \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" deve ser posterior a \"+a[0]+\".\":e(n)+\" deve ser uma data posterior.\"},alpha:function(r){return e(r.name)+\" pode conter apenas letras.\"},alphanumeric:function(r){return e(r.name)+\" pode conter apenas letras e números.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" deve ser antes de \"+a[0]+\".\":e(n)+\" deve ser uma data anterior.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" deve ser entre \"+t[0]+\" e \"+t[1]+\".\":e(n)+\" deve ter entre \"+t[0]+\" e \"+t[1]+\" caracteres.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" não corresponde.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" não é válido, por favor use o formato \"+a[0]:e(n)+\" não é uma data válida.\"},default:function(e){e.name;return\"Este campo não é válido.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” não é um e-mail válido.\":\"Por favor informe um e-mail válido.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” não termina com um valor válido.\":\"Este campo não termina com um valor válido.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” não é um \"+n+\" permitido.\":\"Isso não é um \"+n+\" permitido.\"},matches:function(r){return e(r.name)+\" não é um valor válido.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Você deve selecionar apenas \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" deve ser menor ou igual a \"+t[0]+\".\":e(n)+\" deve ter no máximo \"+t[0]+\" caracteres.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" deve ser no formato: \"+(a[0]||\"Formato de arquivo não permitido.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Você deve selecionar pelo menos \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" deve ser maior que \"+t[0]+\".\":e(n)+\" deve ter mais de \"+t[0]+\" caracteres.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” não é um \"+r+\" válido.\"},number:function(r){return e(r.name)+\" deve ser um número.\"},required:function(r){return e(r.name)+\" é obrigatório.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” não começa com um valor válido.\":\"Este campo não começa com um valor válido.\"},url:function(e){e.name;return\"Por favor informe uma URL válida.\"}};function R(e){var r;e.extend({locales:(r={},r.pt=E,r)})}var M={accepted:function(e){return\"Пожалуйста, подтвердите \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" должна быть после \"+a[0]+\".\":e(n)+\" должна быть дата после.\"},alpha:function(r){return e(r.name)+\" может содержать только буквы.\"},alphanumeric:function(r){return e(r.name)+\" может содержать только буквы и цифры.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" должно быть раньше \"+a[0]+\".\":e(n)+\" должно быть раньше.\"},between:function(r){var n=r.name,a=r.value,t=r.args;!(!Array.isArray(t)||!t[2])&&t[2];return isNaN(a),e(n)+\" должно быть между \"+t[0]+\" и \"+t[1]+\".\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" не совпадает.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" не является допустимой датой, пожалуйста, используйте формат \"+a[0]:e(n)+\" не является допустимой датой.\"},default:function(e){e.name;return\"Это поле не является допустимым.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” недействительный адрес электронной почты.\":\"Пожалуйста, введите действительный адрес электронной почты.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” не заканчивается допустимым значением.\":\"Это поле не заканчивается допустимым значением.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” является ошибочным для \"+n+\".\":\"Выбранное значение для \"+n+\" ошибочно.\"},matches:function(r){return e(r.name)+\" не совпадает.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Вы можете выбрать только \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" должно быть меньше или равно \"+t[0]+\".\":\"Количество символов \"+e(n)+\" должно быть меньше или равно \"+t[0]+\".\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" должно быть файлом одного из следующих типов: \"+(a[0]||\"Не допустимые форматы файлов.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Должно быть не менее \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" должно быть не менее \"+t[0]+\".\":\"Количество символов \"+e(n)+\" должно быть не менее \"+t[0]+\".\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” не является допустимым \"+r+\".\"},number:function(r){return e(r.name)+\" должны быть числом.\"},required:function(r){return e(r.name)+\" обязательное поле.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” должно начинаться действительным значением.\":\"Поле должно начинаться действительным значением.\"},url:function(e){e.name;return\"Пожалуйста, укажите действительный URL.\"}};function B(e){var r;e.extend({locales:(r={},r.ru=M,r)})}var F={accepted:function(e){return\"Prosím príjmi \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" musí byť neskôr ako \"+a[0]+\".\":\"Pre \"+e(n)+\" je potrebné zvoliť neskorší dátum.\"},alpha:function(r){return e(r.name)+\" môže obsahovať len písmená.\"},alphanumeric:function(r){return e(r.name)+\" môže obsahovať len písmená a čísla.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" musí byť skôr než \"+a[0]+\".\":\"Pre \"+e(n)+\" je potrebné zvoliť skorší dátum.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" musí byť medzi \"+t[0]+\" a \"+t[1]+\".\":e(n)+\" musí mať od \"+t[0]+\" do \"+t[1]+\" znakov.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" sa nezhoduje.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" neobsahuje korektný dátum. Je potrebné použiť formát \"+a[0]:e(n)+\" neobsahuje korektný dátum.\"},default:function(e){e.name;return\"Toto pole obsahuje chybu.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nie je platná emailová adresa.\":\"Prosím, uveď platnú emailovú adresu..\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nekončí povolenou hodnotou.\":\"Toto pole nekončí povolenou hodnotou.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” nie je povolená hodnota pre \"+n+\".\":\"Toto nie je povolená hodnota pre \"+n+\".\"},matches:function(r){return e(r.name)+\" nie je povolená hodnota.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Je možné vybrať najviac \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" musí byť nanajvýš \"+t[0]+\".\":e(n)+\" musí obsahovať nanajvýš \"+t[0]+\" znakov.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" musí byť typu: \"+(a[0]||\"Žiadne formáty nie sú povolené.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Je potrebné vybrať aspoň \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" musí byť aspoň \"+t[0]+\".\":e(n)+\" musí obsahovať aspoň \"+t[0]+\" znakov.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” nie je povolená hodnota pre \"+r+\".\"},number:function(r){return e(r.name)+\" musí byť číslo.\"},required:function(r){return e(r.name)+\" je povinné pole.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nezačína povolenou hodnotou.\":\"Toto pole nezačína povolenou hodnotou.\"},url:function(e){e.name;return\"Prosím, uveď platnú URL adresu.\"}};function Z(e){var r;e.extend({locales:(r={},r.sk=F,r)})}var C={accepted:function(e){return\"Molimo Vas da prihvatite \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" mora biti posle \"+a[0]+\".\":e(n)+\" mora biti kasniji datum.\"},alpha:function(r){return e(r.name)+\" može sadržati samo abecedne karaktere.\"},alphanumeric:function(r){return e(r.name)+\" može sadržati samo slova i brojeve.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" mora biti pre \"+a[0]+\".\":e(n)+\" mora biti raniji datum.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" mora biti između \"+t[0]+\" i \"+t[1]+\".\":e(n)+\" mora biti između \"+t[0]+\" i \"+t[1]+\" karaktera.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" se ne podudara.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" nije važeći datum, koristite format \"+a[0]:e(n)+\" nije važeći datum.\"},default:function(e){e.name;return\"Ovo polje nije važeće.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” nije važeća e-mail adresa.\":\"Unesite ispravnu e-mail adresu.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” se ne završava važećom vrednošću.\":\"Ovo polje se ne završava važećom vrednošću.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” nije dozvoljeno \"+n+\".\":\"Ovo nije dozvoljeno \"+n+\".\"},matches:function(r){return e(r.name)+\" nije dozvoljena vrednost za ovo polje.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Možete odabrati samo \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" mora biti manje ili jednako \"+t[0]+\".\":e(n)+\" mora biti manje ili jednako \"+t[0]+\" karaktera.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" mora biti jedan sledecih formata: \"+(a[0]||\"Format datoteke nije dozvoljen.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Treba Vam bar \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" treba da ima najmanje \"+t[0]+\".\":e(n)+\" treba da ima najmanje \"+t[0]+\" karaktera.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” nije dozvoljena vrednost za polje \"+r+\".\"},number:function(r){return e(r.name)+\" mora biti broj.\"},required:function(r){return e(r.name)+\" je obavezno polje.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” ne počinje sa važećom vrednošću.\":\"Ovo polje ne počinje sa važećom vrednošću.\"},url:function(e){e.name;return\"Unesite važeći url.\"}};function I(e){var r;e.extend({locales:(r={},r.sr=C,r)})}var J={accepted:function(e){return\"Var vänlig acceptera \"+e.name+\".\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" måste vara efter \"+a[0]+\".\":e(n)+\" måste vara ett senare datum.\"},alpha:function(r){return e(r.name)+\" får bara innehålla bokstäver.\"},alphanumeric:function(r){return e(r.name)+\" får bara innehålla bokstäver och nummer.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" måste vara innan \"+a[0]+\".\":e(n)+\" måste vara ett tidigare datum.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" måste vara mellan \"+t[0]+\" och \"+t[1]+\".\":e(n)+\" måste vara mellan \"+t[0]+\" och \"+t[1]+\" tecken .\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" matchar inte.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" är inte ett giltigt datum, var vänlig och använd formatet \"+a[0]:e(n)+\" är inte ett giltigt datum.\"},default:function(e){e.name;return\"Fältet är inte giltigt.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” är inte en giltigt e-postadress.\":\"Var vänlig och ange en giltig e-postadress.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” slutar inte med ett giltigt värde.\":\"Detta fält slutar inte med ett giltigt värde.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” är inte ett tillåtet \"+n+\".\":\"Detta är inte ett tillåtet \"+n+\".\"},matches:function(r){return e(r.name)+\" är inte ett tillåtet värde.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Du får bara välja \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" måste vara mer än eller lika med \"+t[0]+\".\":e(n)+\" måste vara mindre än eller lika med \"+t[0]+\" tecken.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" måste vara av typen: \"+(a[0]||\"Inga filformat tillåtna.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Du måste välja minst \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" måste vara minst \"+t[0]+\".\":e(n)+\" måste åtminstone vara \"+t[0]+\" tecken långt.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” är inte tillåtet \"+r+\".\"},number:function(r){return e(r.name)+\" måste vara ett nummer.\"},required:function(r){return e(r.name)+\" är obligatoriskt.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” börjar inte med ett giltigt värde.\":\"Detta fält börjar inte med ett giltigt värde.\"},url:function(e){e.name;return\"Vänligen ange en giltig url.\"}};function K(e){var r;e.extend({locales:(r={},r.sv=J,r)})}var S={accepted:function(r){return\"กรุณายอมรับ \"+e(r.name)},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" ต้องเป็นวันที่หลังจาก \"+a[0]:e(n)+\" ต้องเป็นวันที่ยังไม่มาถึง\"},alpha:function(r){return e(r.name)+\" มีได้เฉพาะตัวอักษรเท่านั้น\"},alphanumeric:function(r){return e(r.name)+\" มีได้เฉพาะตัวอักษรและตัวเลขเท่านั้น\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" ต้องเป็นวันที่ก่อนหน้า \"+a[0]:e(n)+\" ต้องเป็นวันที่ผ่านมาแล้ว\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" ต้องมีค่าระหว่าง \"+t[0]+\" ถึง \"+t[1]:e(n)+\" ต้องมีความยาว \"+t[0]+\" ถึง \"+t[1]+\" ตัว\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" ไม่ตรงกัน\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" ไม่ใช่วันที่ที่ถูกต้อง กรุณาใช้ตามรูปแบบ \"+a[0]:e(n)+\" ไม่ใช่วันที่ที่ถูกต้อง\"},default:function(e){e.name;return\"ข้อมูลช่องนี้ไม่ถูกต้อง\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” ไม่ใช่ที่อยู่อีเมลที่ถูกต้อง\":\"กรุณากรอกที่อยู่อีเมลให้ถูกต้อง\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” ไม่ได้ลงท้ายด้วยค่าที่ถูกต้อง\":\"ข้อมูลช่องนี้ไม่ได้ลงท้ายด้วยค่าที่ถูกต้อง\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” ไม่ใช่ \"+n+\" ที่อนุญาตให้กรอก\":\"นี่ไม่ใช่ \"+n+\" ที่อนุญาตให้กรอก\"},matches:function(r){return e(r.name)+\" ไม่ใช่ค่าที่อนุญาตให้กรอก\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"คุณเลือกได้เพียง \"+t[0]+\" \"+n+\" เท่านั้น\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" ต้องมีไม่เกิน \"+t[0]:e(n)+\" ต้องยาวไม่เกิน \"+t[0]+\" ตัว\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" ต้องเป็นประเภท: \"+(a[0]||\"ไม่มีประเภทไฟล์ที่อนุญาต\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"คุณต้องเลือกอย่างน้อย \"+t[0]+\" \"+n;var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" ต้องมีค่าอย่างน้อย \"+t[0]:e(n)+\" ต้องยาวอย่างน้อย \"+t[0]+\" ตัว\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” ไม่ใช่ค่า \"+r+\" ที่อนุญาตให้กรอก\"},number:function(r){return e(r.name)+\" ต้องเป็นตัวเลข\"},required:function(r){return e(r.name)+\" จำเป็นต้องกรอก\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” ไม่ได้ขึ้นต้นด้วยค่าที่ถูกต้อง\":\"ข้อมูลช่องนี้ไม่ได้ขึ้นต้นด้วยค่าที่ถูกต้อง\"},url:function(e){e.name;return\"กรุณาแนบลิงก์ให้ถูกต้อง\"}};function O(e){var r;e.extend({locales:(r={},r.th=S,r)})}var Q={accepted:function(e){return\"Lütfen \"+e.name+\"'i kabul edin..\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\", \"+a[0]+\" sonrasında olmalıdır.\":e(n)+\" daha sonraki bir tarih olmalıdır.\"},alpha:function(r){return e(r.name)+\" yalnızca alfabetik karakterler içerebilir.\"},alphanumeric:function(r){return e(r.name)+\" yalnızca harf ve rakam içerebilir.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\", \"+a[0]+\" tarihinden önce olmalıdır.\":e(n)+\" daha erken bir tarih olmalıdır.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\", \"+t[0]+\" ile \"+t[1]+\" arasında olmalıdır.\":e(n)+\", \"+t[0]+\" ile \"+t[1]+\" karakter uzunluğunda olmalıdır.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" eşleşmiyor.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" geçerli bir tarih değil, lütfen \"+a[0]+\" biçimini kullanın\":e(n)+\" geçerli bir tarih değil.\"},default:function(e){e.name;return\"Bu alan geçerli değil.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” geçerli bir e-posta adresi değil.\":\"Lütfen geçerli bir e-posta adresi giriniz.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” geçerli bir değerle bitmiyor.\":\"Bu alan geçerli bir değerle bitmiyor.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” izin verilen bir \"+n+\" değil.\":\"Bu izin verilen bir \"+n+\" değil.\"},matches:function(r){return e(r.name)+\" izin verilen bir değer değil.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Yalnızca \"+t[0]+\" \"+n+\" seçebilirsiniz.\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\", \"+t[0]+\" değerinden küçük veya ona eşit olmalıdır.\":e(n)+\", \"+t[0]+\" karakterden küçük veya ona eşit olmalıdır.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" şu türde olmalıdır: \"+(a[0]||\"Dosya formatına izin verilmez.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"En az \"+t[0]+\" \"+n+\" gerekiyor.\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" en az \"+t[0]+\" olmalıdır.\":e(n)+\" en az \"+t[0]+\" karakter uzunluğunda olmalıdır.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” izin verilen bir \"+r+\" değil.\"},number:function(r){return e(r.name)+\" bir sayı olmalıdır.\"},required:function(r){return e(r.name)+\" gerekli.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” geçerli bir değerle başlamıyor.\":\"Bu alan geçerli bir değerle başlamıyor.\"},url:function(e){e.name;return\"Lütfen geçerli bir url ekleyin.\"}};function Y(e){var r;e.extend({locales:(r={},r.tr=Q,r)})}var G={accepted:function(e){return e.name+\" phải được chấp nhận.\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" phải sau ngày \"+a[0]+\".\":e(n)+\" phải sau ngày hôm nay.\"},alpha:function(r){return e(r.name)+\" chỉ có thể chứa các kí tự chữ.\"},alphanumeric:function(r){return e(r.name)+\" chỉ có thể chứa các kí tự chữ và số.\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" phải trước ngày ngày \"+a[0]+\".\":e(n)+\" phải trước ngày hôm nay.\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" phải có giá trị nằm trong khoảng giữa \"+t[0]+\" and \"+t[1]+\".\":e(n)+\" phải có giá trị dài từ \"+t[0]+\" đến \"+t[1]+\" ký tự.\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" không khớp.\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" không phải là định dạng của ngày, vui lòng sử dụng định dạng \"+a[0]:e(n)+\" không phải là định dạng của ngày.\"},default:function(e){e.name;return\"Trường này không hợp lệ.\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” phải là một địa chỉ email hợp lệ.\":\"Vui lòng nhập địa chỉ email hợp lệ.\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” phải kết thúc bằng giá trị hợp lệ.\":\"Trường này phải kết thúc bằng giá trị hợp lệ.\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” phải khớp với \"+n+\".\":n+\" phải khớp với giá trị cho phép.\"},matches:function(r){return e(r.name)+\" phải khớp với giá trị cho phép.\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Bạn chỉ có thể chọn \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" phải nhỏ hơn hoặc bằng \"+t[0]+\".\":e(n)+\" phải nhỏ hơn hoặc bằng \"+t[0]+\" ký tự.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" phải chứa kiểu tệp phù hợp: \"+(a[0]||\"Không có định dạng tệp nào được cho phép.\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"Phải chứa ít nhất \"+t[0]+\" \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" phải chứa ít nhất \"+t[0]+\".\":e(n)+\" phải chứa ít nhất \"+t[0]+\" ký tự.\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” phải là \"+r+\" hợp lệ.\"},number:function(r){return e(r.name)+\" phải là số.\"},required:function(r){return e(r.name)+\" là bắt buộc.\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” phải bắt đầu bằng giá trị hợp lệ.\":\"Trường này phải bắt đầu bằng giá trị hợp lệ.\"},url:function(e){e.name;return\"Vui lòng nhập đúng định dạng url.\"}};function H(e){var r;e.extend({locales:(r={},r.vi=G,r)})}var X={accepted:function(e){return\"请同意\"+e.name+\"。\"},after:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" 必须在 \"+a[0]+\" 之后。\":e(n)+\" 必须是以后的日期。\"},alpha:function(r){return e(r.name)+\" 只能包含字母。\"},alphanumeric:function(r){return e(r.name)+\" 只能包含字母或数字。\"},before:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" 必须在 \"+a[0]+\" 之前\":e(n)+\" 必须是以前的日期。\"},between:function(r){var n=r.name,a=r.value,t=r.args,i=!(!Array.isArray(t)||!t[2])&&t[2];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" 必须在 \"+t[0]+\" 和 \"+t[1]+\" 之间。\":e(n)+\" 必须在 \"+t[0]+\" 和 \"+t[1]+\" 字符长度之间。\"},confirm:function(r){var n=r.name;r.args;return e(n)+\" 不匹配。\"},date:function(r){var n=r.name,a=r.args;return Array.isArray(a)&&a.length?e(n)+\" 日期无效,请使用 \"+a[0]+\" 格式。\":e(n)+\" 日期无效。\"},default:function(e){e.name;return\"此输入无效。\"},email:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” 不是一个有效的电子邮箱地址。\":\"请输入有效的电子邮箱地址。\"},endsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” 包含无效的结尾值。\":\"无效的结尾值。\"},in:function(r){var n=r.name,a=r.value;return\"string\"==typeof a&&a?\"“\"+e(a)+\"” 是 \"+n+\" 不允许的值。\":n+\" 包含不允许的值。\"},matches:function(r){return e(r.name)+\" 包含不允许的值。\"},max:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"您最多可有 \"+t[0]+\" 个 \"+n+\"。\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" 必须小于或等于 \"+t[0]+\".\":e(n)+\" 必须小于或等于 \"+t[0]+\" 字符长度.\"},mime:function(r){var n=r.name,a=r.args;return e(n)+\" 格式必须是: \"+(a[0]||\"无允许文件格式\")},min:function(r){var n=r.name,a=r.value,t=r.args;if(Array.isArray(a))return\"您需要最少 \"+t[0]+\" 个 \"+n+\".\";var i=!(!Array.isArray(t)||!t[1])&&t[1];return!isNaN(a)&&\"length\"!==i||\"value\"===i?e(n)+\" 最少是 \"+t[0]+\".\":e(n)+\" 最少 \"+t[0]+\" 字符长度。\"},not:function(e){var r=e.name;return\"“\"+e.value+\"” 是 \"+r+\" 不被允许的值。\"},number:function(r){return e(r.name)+\" 必须是数字。\"},required:function(r){return e(r.name)+\" 是必填项。\"},startsWith:function(e){e.name;var r=e.value;return r?\"“\"+r+\"” 包含无效的起始值\":\"无效的起始值\"},url:function(e){e.name;return\"请输入正确的网址。\"}};function $(e){var r;e.extend({locales:(r={},r.zh=X,r)})}export{n as ar,t as ca,u as cs,s as da,m as de,c as en,d as es,y as fr,A as he,b as hu,N as it,j as ja,x as ko,L as lt,q as nb,D as nl,V as pl,R as pt,B as ru,Z as sk,I as sr,K as sv,O as th,Y as tr,H as vi,$ as zh};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","module.exports = function (it) {\n if (typeof it != 'function') {\n throw TypeError(String(it) + ' is not a function');\n } return it;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line no-throw-literal\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar defineProperties = require('../internals/object-define-properties');\n\n// `Object.defineProperties` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperties\n$({ target: 'Object', stat: true, forced: !DESCRIPTORS, sham: !DESCRIPTORS }, {\n defineProperties: defineProperties\n});\n","// `RequireObjectCoercible` abstract operation\n// https://tc39.github.io/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","var anObject = require('../internals/an-object');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar toLength = require('../internals/to-length');\nvar bind = require('../internals/function-bind-context');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar iterate = module.exports = function (iterable, fn, that, AS_ENTRIES, IS_ITERATOR) {\n var boundFunction = bind(fn, that, AS_ENTRIES ? 2 : 1);\n var iterator, iterFn, index, length, result, next, step;\n\n if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (typeof iterFn != 'function') throw TypeError('Target is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = toLength(iterable.length); length > index; index++) {\n result = AS_ENTRIES\n ? boundFunction(anObject(step = iterable[index])[0], step[1])\n : boundFunction(iterable[index]);\n if (result && result instanceof Result) return result;\n } return new Result(false);\n }\n iterator = iterFn.call(iterable);\n }\n\n next = iterator.next;\n while (!(step = next.call(iterator)).done) {\n result = callWithSafeIterationClosing(iterator, boundFunction, step.value, AS_ENTRIES);\n if (typeof result == 'object' && result && result instanceof Result) return result;\n } return new Result(false);\n};\n\niterate.stop = function (result) {\n return new Result(true, result);\n};\n","var toInteger = require('../internals/to-integer');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty === typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertynames\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\n// `String.prototype.includes` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~String(requireObjectCoercible(this))\n .indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar redefine = require('../internals/redefine');\nvar anObject = require('../internals/an-object');\nvar fails = require('../internals/fails');\nvar flags = require('../internals/regexp-flags');\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\n\nvar NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = nativeToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n redefine(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var p = String(R.source);\n var rf = R.flags;\n var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);\n return '/' + p + '/' + f;\n }, { unsafe: true });\n}\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar definePropertyModule = require('../internals/object-define-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n var defineProperty = definePropertyModule.f;\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineProperty(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var $ = require('../internals/export');\nvar isArray = require('../internals/is-array');\n\n// `Array.isArray` method\n// https://tc39.github.io/ecma262/#sec-array.isarray\n$({ target: 'Array', stat: true }, {\n isArray: isArray\n});\n","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","/*!\n * Vue.js v2.6.11\n * (c) 2014-2019 Evan You\n * Released under the MIT License.\n */\n/* */\n\nvar emptyObject = Object.freeze({});\n\n// These helpers produce better VM code in JS engines due to their\n// explicitness and function inlining.\nfunction isUndef (v) {\n return v === undefined || v === null\n}\n\nfunction isDef (v) {\n return v !== undefined && v !== null\n}\n\nfunction isTrue (v) {\n return v === true\n}\n\nfunction isFalse (v) {\n return v === false\n}\n\n/**\n * Check if value is primitive.\n */\nfunction isPrimitive (value) {\n return (\n typeof value === 'string' ||\n typeof value === 'number' ||\n // $flow-disable-line\n typeof value === 'symbol' ||\n typeof value === 'boolean'\n )\n}\n\n/**\n * Quick object check - this is primarily used to tell\n * Objects from primitive values when we know the value\n * is a JSON-compliant type.\n */\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\n/**\n * Get the raw type string of a value, e.g., [object Object].\n */\nvar _toString = Object.prototype.toString;\n\nfunction toRawType (value) {\n return _toString.call(value).slice(8, -1)\n}\n\n/**\n * Strict object type check. Only returns true\n * for plain JavaScript objects.\n */\nfunction isPlainObject (obj) {\n return _toString.call(obj) === '[object Object]'\n}\n\nfunction isRegExp (v) {\n return _toString.call(v) === '[object RegExp]'\n}\n\n/**\n * Check if val is a valid array index.\n */\nfunction isValidArrayIndex (val) {\n var n = parseFloat(String(val));\n return n >= 0 && Math.floor(n) === n && isFinite(val)\n}\n\nfunction isPromise (val) {\n return (\n isDef(val) &&\n typeof val.then === 'function' &&\n typeof val.catch === 'function'\n )\n}\n\n/**\n * Convert a value to a string that is actually rendered.\n */\nfunction toString (val) {\n return val == null\n ? ''\n : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)\n ? JSON.stringify(val, null, 2)\n : String(val)\n}\n\n/**\n * Convert an input value to a number for persistence.\n * If the conversion fails, return original string.\n */\nfunction toNumber (val) {\n var n = parseFloat(val);\n return isNaN(n) ? val : n\n}\n\n/**\n * Make a map and return a function for checking if a key\n * is in that map.\n */\nfunction makeMap (\n str,\n expectsLowerCase\n) {\n var map = Object.create(null);\n var list = str.split(',');\n for (var i = 0; i < list.length; i++) {\n map[list[i]] = true;\n }\n return expectsLowerCase\n ? function (val) { return map[val.toLowerCase()]; }\n : function (val) { return map[val]; }\n}\n\n/**\n * Check if a tag is a built-in tag.\n */\nvar isBuiltInTag = makeMap('slot,component', true);\n\n/**\n * Check if an attribute is a reserved attribute.\n */\nvar isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');\n\n/**\n * Remove an item from an array.\n */\nfunction remove (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}\n\n/**\n * Check whether an object has the property.\n */\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn (obj, key) {\n return hasOwnProperty.call(obj, key)\n}\n\n/**\n * Create a cached version of a pure function.\n */\nfunction cached (fn) {\n var cache = Object.create(null);\n return (function cachedFn (str) {\n var hit = cache[str];\n return hit || (cache[str] = fn(str))\n })\n}\n\n/**\n * Camelize a hyphen-delimited string.\n */\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cached(function (str) {\n return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })\n});\n\n/**\n * Capitalize a string.\n */\nvar capitalize = cached(function (str) {\n return str.charAt(0).toUpperCase() + str.slice(1)\n});\n\n/**\n * Hyphenate a camelCase string.\n */\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = cached(function (str) {\n return str.replace(hyphenateRE, '-$1').toLowerCase()\n});\n\n/**\n * Simple bind polyfill for environments that do not support it,\n * e.g., PhantomJS 1.x. Technically, we don't need this anymore\n * since native bind is now performant enough in most browsers.\n * But removing it would mean breaking code that was able to run in\n * PhantomJS 1.x, so this must be kept for backward compatibility.\n */\n\n/* istanbul ignore next */\nfunction polyfillBind (fn, ctx) {\n function boundFn (a) {\n var l = arguments.length;\n return l\n ? l > 1\n ? fn.apply(ctx, arguments)\n : fn.call(ctx, a)\n : fn.call(ctx)\n }\n\n boundFn._length = fn.length;\n return boundFn\n}\n\nfunction nativeBind (fn, ctx) {\n return fn.bind(ctx)\n}\n\nvar bind = Function.prototype.bind\n ? nativeBind\n : polyfillBind;\n\n/**\n * Convert an Array-like object to a real Array.\n */\nfunction toArray (list, start) {\n start = start || 0;\n var i = list.length - start;\n var ret = new Array(i);\n while (i--) {\n ret[i] = list[i + start];\n }\n return ret\n}\n\n/**\n * Mix properties into target object.\n */\nfunction extend (to, _from) {\n for (var key in _from) {\n to[key] = _from[key];\n }\n return to\n}\n\n/**\n * Merge an Array of Objects into a single Object.\n */\nfunction toObject (arr) {\n var res = {};\n for (var i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i]);\n }\n }\n return res\n}\n\n/* eslint-disable no-unused-vars */\n\n/**\n * Perform no operation.\n * Stubbing args to make Flow happy without leaving useless transpiled code\n * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).\n */\nfunction noop (a, b, c) {}\n\n/**\n * Always return false.\n */\nvar no = function (a, b, c) { return false; };\n\n/* eslint-enable no-unused-vars */\n\n/**\n * Return the same value.\n */\nvar identity = function (_) { return _; };\n\n/**\n * Check if two values are loosely equal - that is,\n * if they are plain objects, do they have the same shape?\n */\nfunction looseEqual (a, b) {\n if (a === b) { return true }\n var isObjectA = isObject(a);\n var isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n try {\n var isArrayA = Array.isArray(a);\n var isArrayB = Array.isArray(b);\n if (isArrayA && isArrayB) {\n return a.length === b.length && a.every(function (e, i) {\n return looseEqual(e, b[i])\n })\n } else if (a instanceof Date && b instanceof Date) {\n return a.getTime() === b.getTime()\n } else if (!isArrayA && !isArrayB) {\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n return keysA.length === keysB.length && keysA.every(function (key) {\n return looseEqual(a[key], b[key])\n })\n } else {\n /* istanbul ignore next */\n return false\n }\n } catch (e) {\n /* istanbul ignore next */\n return false\n }\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b)\n } else {\n return false\n }\n}\n\n/**\n * Return the first index at which a loosely equal value can be\n * found in the array (if value is a plain object, the array must\n * contain an object of the same shape), or -1 if it is not present.\n */\nfunction looseIndexOf (arr, val) {\n for (var i = 0; i < arr.length; i++) {\n if (looseEqual(arr[i], val)) { return i }\n }\n return -1\n}\n\n/**\n * Ensure a function is called only once.\n */\nfunction once (fn) {\n var called = false;\n return function () {\n if (!called) {\n called = true;\n fn.apply(this, arguments);\n }\n }\n}\n\nvar SSR_ATTR = 'data-server-rendered';\n\nvar ASSET_TYPES = [\n 'component',\n 'directive',\n 'filter'\n];\n\nvar LIFECYCLE_HOOKS = [\n 'beforeCreate',\n 'created',\n 'beforeMount',\n 'mounted',\n 'beforeUpdate',\n 'updated',\n 'beforeDestroy',\n 'destroyed',\n 'activated',\n 'deactivated',\n 'errorCaptured',\n 'serverPrefetch'\n];\n\n/* */\n\n\n\nvar config = ({\n /**\n * Option merge strategies (used in core/util/options)\n */\n // $flow-disable-line\n optionMergeStrategies: Object.create(null),\n\n /**\n * Whether to suppress warnings.\n */\n silent: false,\n\n /**\n * Show production mode tip message on boot?\n */\n productionTip: process.env.NODE_ENV !== 'production',\n\n /**\n * Whether to enable devtools\n */\n devtools: process.env.NODE_ENV !== 'production',\n\n /**\n * Whether to record perf\n */\n performance: false,\n\n /**\n * Error handler for watcher errors\n */\n errorHandler: null,\n\n /**\n * Warn handler for watcher warns\n */\n warnHandler: null,\n\n /**\n * Ignore certain custom elements\n */\n ignoredElements: [],\n\n /**\n * Custom user key aliases for v-on\n */\n // $flow-disable-line\n keyCodes: Object.create(null),\n\n /**\n * Check if a tag is reserved so that it cannot be registered as a\n * component. This is platform-dependent and may be overwritten.\n */\n isReservedTag: no,\n\n /**\n * Check if an attribute is reserved so that it cannot be used as a component\n * prop. This is platform-dependent and may be overwritten.\n */\n isReservedAttr: no,\n\n /**\n * Check if a tag is an unknown element.\n * Platform-dependent.\n */\n isUnknownElement: no,\n\n /**\n * Get the namespace of an element\n */\n getTagNamespace: noop,\n\n /**\n * Parse the real tag name for the specific platform.\n */\n parsePlatformTagName: identity,\n\n /**\n * Check if an attribute must be bound using property, e.g. value\n * Platform-dependent.\n */\n mustUseProp: no,\n\n /**\n * Perform updates asynchronously. Intended to be used by Vue Test Utils\n * This will significantly reduce performance if set to false.\n */\n async: true,\n\n /**\n * Exposed for legacy reasons\n */\n _lifecycleHooks: LIFECYCLE_HOOKS\n});\n\n/* */\n\n/**\n * unicode letters used for parsing html tags, component names and property paths.\n * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname\n * skipping \\u10000-\\uEFFFF due to it freezing up PhantomJS\n */\nvar 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/;\n\n/**\n * Check if a string starts with $ or _\n */\nfunction isReserved (str) {\n var c = (str + '').charCodeAt(0);\n return c === 0x24 || c === 0x5F\n}\n\n/**\n * Define a property.\n */\nfunction def (obj, key, val, enumerable) {\n Object.defineProperty(obj, key, {\n value: val,\n enumerable: !!enumerable,\n writable: true,\n configurable: true\n });\n}\n\n/**\n * Parse simple path.\n */\nvar bailRE = new RegExp((\"[^\" + (unicodeRegExp.source) + \".$_\\\\d]\"));\nfunction parsePath (path) {\n if (bailRE.test(path)) {\n return\n }\n var segments = path.split('.');\n return function (obj) {\n for (var i = 0; i < segments.length; i++) {\n if (!obj) { return }\n obj = obj[segments[i]];\n }\n return obj\n }\n}\n\n/* */\n\n// can we use __proto__?\nvar hasProto = '__proto__' in {};\n\n// Browser environment sniffing\nvar inBrowser = typeof window !== 'undefined';\nvar inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;\nvar weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();\nvar UA = inBrowser && window.navigator.userAgent.toLowerCase();\nvar isIE = UA && /msie|trident/.test(UA);\nvar isIE9 = UA && UA.indexOf('msie 9.0') > 0;\nvar isEdge = UA && UA.indexOf('edge/') > 0;\nvar isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');\nvar isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');\nvar isChrome = UA && /chrome\\/\\d+/.test(UA) && !isEdge;\nvar isPhantomJS = UA && /phantomjs/.test(UA);\nvar isFF = UA && UA.match(/firefox\\/(\\d+)/);\n\n// Firefox has a \"watch\" function on Object.prototype...\nvar nativeWatch = ({}).watch;\n\nvar supportsPassive = false;\nif (inBrowser) {\n try {\n var opts = {};\n Object.defineProperty(opts, 'passive', ({\n get: function get () {\n /* istanbul ignore next */\n supportsPassive = true;\n }\n })); // https://github.com/facebook/flow/issues/285\n window.addEventListener('test-passive', null, opts);\n } catch (e) {}\n}\n\n// this needs to be lazy-evaled because vue may be required before\n// vue-server-renderer can set VUE_ENV\nvar _isServer;\nvar isServerRendering = function () {\n if (_isServer === undefined) {\n /* istanbul ignore if */\n if (!inBrowser && !inWeex && typeof global !== 'undefined') {\n // detect presence of vue-server-renderer and avoid\n // Webpack shimming the process\n _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';\n } else {\n _isServer = false;\n }\n }\n return _isServer\n};\n\n// detect devtools\nvar devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\n/* istanbul ignore next */\nfunction isNative (Ctor) {\n return typeof Ctor === 'function' && /native code/.test(Ctor.toString())\n}\n\nvar hasSymbol =\n typeof Symbol !== 'undefined' && isNative(Symbol) &&\n typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);\n\nvar _Set;\n/* istanbul ignore if */ // $flow-disable-line\nif (typeof Set !== 'undefined' && isNative(Set)) {\n // use native Set when available.\n _Set = Set;\n} else {\n // a non-standard Set polyfill that only works with primitive keys.\n _Set = /*@__PURE__*/(function () {\n function Set () {\n this.set = Object.create(null);\n }\n Set.prototype.has = function has (key) {\n return this.set[key] === true\n };\n Set.prototype.add = function add (key) {\n this.set[key] = true;\n };\n Set.prototype.clear = function clear () {\n this.set = Object.create(null);\n };\n\n return Set;\n }());\n}\n\n/* */\n\nvar warn = noop;\nvar tip = noop;\nvar generateComponentTrace = (noop); // work around flow check\nvar formatComponentName = (noop);\n\nif (process.env.NODE_ENV !== 'production') {\n var hasConsole = typeof console !== 'undefined';\n var classifyRE = /(?:^|[-_])(\\w)/g;\n var classify = function (str) { return str\n .replace(classifyRE, function (c) { return c.toUpperCase(); })\n .replace(/[-_]/g, ''); };\n\n warn = function (msg, vm) {\n var trace = vm ? generateComponentTrace(vm) : '';\n\n if (config.warnHandler) {\n config.warnHandler.call(null, msg, vm, trace);\n } else if (hasConsole && (!config.silent)) {\n console.error((\"[Vue warn]: \" + msg + trace));\n }\n };\n\n tip = function (msg, vm) {\n if (hasConsole && (!config.silent)) {\n console.warn(\"[Vue tip]: \" + msg + (\n vm ? generateComponentTrace(vm) : ''\n ));\n }\n };\n\n formatComponentName = function (vm, includeFile) {\n if (vm.$root === vm) {\n return ''\n }\n var options = typeof vm === 'function' && vm.cid != null\n ? vm.options\n : vm._isVue\n ? vm.$options || vm.constructor.options\n : vm;\n var name = options.name || options._componentTag;\n var file = options.__file;\n if (!name && file) {\n var match = file.match(/([^/\\\\]+)\\.vue$/);\n name = match && match[1];\n }\n\n return (\n (name ? (\"<\" + (classify(name)) + \">\") : \"\") +\n (file && includeFile !== false ? (\" at \" + file) : '')\n )\n };\n\n var repeat = function (str, n) {\n var res = '';\n while (n) {\n if (n % 2 === 1) { res += str; }\n if (n > 1) { str += str; }\n n >>= 1;\n }\n return res\n };\n\n generateComponentTrace = function (vm) {\n if (vm._isVue && vm.$parent) {\n var tree = [];\n var currentRecursiveSequence = 0;\n while (vm) {\n if (tree.length > 0) {\n var last = tree[tree.length - 1];\n if (last.constructor === vm.constructor) {\n currentRecursiveSequence++;\n vm = vm.$parent;\n continue\n } else if (currentRecursiveSequence > 0) {\n tree[tree.length - 1] = [last, currentRecursiveSequence];\n currentRecursiveSequence = 0;\n }\n }\n tree.push(vm);\n vm = vm.$parent;\n }\n return '\\n\\nfound in\\n\\n' + tree\n .map(function (vm, i) { return (\"\" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)\n ? ((formatComponentName(vm[0])) + \"... (\" + (vm[1]) + \" recursive calls)\")\n : formatComponentName(vm))); })\n .join('\\n')\n } else {\n return (\"\\n\\n(found in \" + (formatComponentName(vm)) + \")\")\n }\n };\n}\n\n/* */\n\nvar uid = 0;\n\n/**\n * A dep is an observable that can have multiple\n * directives subscribing to it.\n */\nvar Dep = function Dep () {\n this.id = uid++;\n this.subs = [];\n};\n\nDep.prototype.addSub = function addSub (sub) {\n this.subs.push(sub);\n};\n\nDep.prototype.removeSub = function removeSub (sub) {\n remove(this.subs, sub);\n};\n\nDep.prototype.depend = function depend () {\n if (Dep.target) {\n Dep.target.addDep(this);\n }\n};\n\nDep.prototype.notify = function notify () {\n // stabilize the subscriber list first\n var subs = this.subs.slice();\n if (process.env.NODE_ENV !== 'production' && !config.async) {\n // subs aren't sorted in scheduler if not running async\n // we need to sort them now to make sure they fire in correct\n // order\n subs.sort(function (a, b) { return a.id - b.id; });\n }\n for (var i = 0, l = subs.length; i < l; i++) {\n subs[i].update();\n }\n};\n\n// The current target watcher being evaluated.\n// This is globally unique because only one watcher\n// can be evaluated at a time.\nDep.target = null;\nvar targetStack = [];\n\nfunction pushTarget (target) {\n targetStack.push(target);\n Dep.target = target;\n}\n\nfunction popTarget () {\n targetStack.pop();\n Dep.target = targetStack[targetStack.length - 1];\n}\n\n/* */\n\nvar VNode = function VNode (\n tag,\n data,\n children,\n text,\n elm,\n context,\n componentOptions,\n asyncFactory\n) {\n this.tag = tag;\n this.data = data;\n this.children = children;\n this.text = text;\n this.elm = elm;\n this.ns = undefined;\n this.context = context;\n this.fnContext = undefined;\n this.fnOptions = undefined;\n this.fnScopeId = undefined;\n this.key = data && data.key;\n this.componentOptions = componentOptions;\n this.componentInstance = undefined;\n this.parent = undefined;\n this.raw = false;\n this.isStatic = false;\n this.isRootInsert = true;\n this.isComment = false;\n this.isCloned = false;\n this.isOnce = false;\n this.asyncFactory = asyncFactory;\n this.asyncMeta = undefined;\n this.isAsyncPlaceholder = false;\n};\n\nvar prototypeAccessors = { child: { configurable: true } };\n\n// DEPRECATED: alias for componentInstance for backwards compat.\n/* istanbul ignore next */\nprototypeAccessors.child.get = function () {\n return this.componentInstance\n};\n\nObject.defineProperties( VNode.prototype, prototypeAccessors );\n\nvar createEmptyVNode = function (text) {\n if ( text === void 0 ) text = '';\n\n var node = new VNode();\n node.text = text;\n node.isComment = true;\n return node\n};\n\nfunction createTextVNode (val) {\n return new VNode(undefined, undefined, undefined, String(val))\n}\n\n// optimized shallow clone\n// used for static nodes and slot nodes because they may be reused across\n// multiple renders, cloning them avoids errors when DOM manipulations rely\n// on their elm reference.\nfunction cloneVNode (vnode) {\n var cloned = new VNode(\n vnode.tag,\n vnode.data,\n // #7975\n // clone children array to avoid mutating original in case of cloning\n // a child.\n vnode.children && vnode.children.slice(),\n vnode.text,\n vnode.elm,\n vnode.context,\n vnode.componentOptions,\n vnode.asyncFactory\n );\n cloned.ns = vnode.ns;\n cloned.isStatic = vnode.isStatic;\n cloned.key = vnode.key;\n cloned.isComment = vnode.isComment;\n cloned.fnContext = vnode.fnContext;\n cloned.fnOptions = vnode.fnOptions;\n cloned.fnScopeId = vnode.fnScopeId;\n cloned.asyncMeta = vnode.asyncMeta;\n cloned.isCloned = true;\n return cloned\n}\n\n/*\n * not type checking this file because flow doesn't play well with\n * dynamically accessing methods on Array prototype\n */\n\nvar arrayProto = Array.prototype;\nvar arrayMethods = Object.create(arrayProto);\n\nvar methodsToPatch = [\n 'push',\n 'pop',\n 'shift',\n 'unshift',\n 'splice',\n 'sort',\n 'reverse'\n];\n\n/**\n * Intercept mutating methods and emit events\n */\nmethodsToPatch.forEach(function (method) {\n // cache original method\n var original = arrayProto[method];\n def(arrayMethods, method, function mutator () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n var result = original.apply(this, args);\n var ob = this.__ob__;\n var inserted;\n switch (method) {\n case 'push':\n case 'unshift':\n inserted = args;\n break\n case 'splice':\n inserted = args.slice(2);\n break\n }\n if (inserted) { ob.observeArray(inserted); }\n // notify change\n ob.dep.notify();\n return result\n });\n});\n\n/* */\n\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\n\n/**\n * In some cases we may want to disable observation inside a component's\n * update computation.\n */\nvar shouldObserve = true;\n\nfunction toggleObserving (value) {\n shouldObserve = value;\n}\n\n/**\n * Observer class that is attached to each observed\n * object. Once attached, the observer converts the target\n * object's property keys into getter/setters that\n * collect dependencies and dispatch updates.\n */\nvar Observer = function Observer (value) {\n this.value = value;\n this.dep = new Dep();\n this.vmCount = 0;\n def(value, '__ob__', this);\n if (Array.isArray(value)) {\n if (hasProto) {\n protoAugment(value, arrayMethods);\n } else {\n copyAugment(value, arrayMethods, arrayKeys);\n }\n this.observeArray(value);\n } else {\n this.walk(value);\n }\n};\n\n/**\n * Walk through all properties and convert them into\n * getter/setters. This method should only be called when\n * value type is Object.\n */\nObserver.prototype.walk = function walk (obj) {\n var keys = Object.keys(obj);\n for (var i = 0; i < keys.length; i++) {\n defineReactive$$1(obj, keys[i]);\n }\n};\n\n/**\n * Observe a list of Array items.\n */\nObserver.prototype.observeArray = function observeArray (items) {\n for (var i = 0, l = items.length; i < l; i++) {\n observe(items[i]);\n }\n};\n\n// helpers\n\n/**\n * Augment a target Object or Array by intercepting\n * the prototype chain using __proto__\n */\nfunction protoAugment (target, src) {\n /* eslint-disable no-proto */\n target.__proto__ = src;\n /* eslint-enable no-proto */\n}\n\n/**\n * Augment a target Object or Array by defining\n * hidden properties.\n */\n/* istanbul ignore next */\nfunction copyAugment (target, src, keys) {\n for (var i = 0, l = keys.length; i < l; i++) {\n var key = keys[i];\n def(target, key, src[key]);\n }\n}\n\n/**\n * Attempt to create an observer instance for a value,\n * returns the new observer if successfully observed,\n * or the existing observer if the value already has one.\n */\nfunction observe (value, asRootData) {\n if (!isObject(value) || value instanceof VNode) {\n return\n }\n var ob;\n if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\n ob = value.__ob__;\n } else if (\n shouldObserve &&\n !isServerRendering() &&\n (Array.isArray(value) || isPlainObject(value)) &&\n Object.isExtensible(value) &&\n !value._isVue\n ) {\n ob = new Observer(value);\n }\n if (asRootData && ob) {\n ob.vmCount++;\n }\n return ob\n}\n\n/**\n * Define a reactive property on an Object.\n */\nfunction defineReactive$$1 (\n obj,\n key,\n val,\n customSetter,\n shallow\n) {\n var dep = new Dep();\n\n var property = Object.getOwnPropertyDescriptor(obj, key);\n if (property && property.configurable === false) {\n return\n }\n\n // cater for pre-defined getter/setters\n var getter = property && property.get;\n var setter = property && property.set;\n if ((!getter || setter) && arguments.length === 2) {\n val = obj[key];\n }\n\n var childOb = !shallow && observe(val);\n Object.defineProperty(obj, key, {\n enumerable: true,\n configurable: true,\n get: function reactiveGetter () {\n var value = getter ? getter.call(obj) : val;\n if (Dep.target) {\n dep.depend();\n if (childOb) {\n childOb.dep.depend();\n if (Array.isArray(value)) {\n dependArray(value);\n }\n }\n }\n return value\n },\n set: function reactiveSetter (newVal) {\n var value = getter ? getter.call(obj) : val;\n /* eslint-disable no-self-compare */\n if (newVal === value || (newVal !== newVal && value !== value)) {\n return\n }\n /* eslint-enable no-self-compare */\n if (process.env.NODE_ENV !== 'production' && customSetter) {\n customSetter();\n }\n // #7981: for accessor properties without setter\n if (getter && !setter) { return }\n if (setter) {\n setter.call(obj, newVal);\n } else {\n val = newVal;\n }\n childOb = !shallow && observe(newVal);\n dep.notify();\n }\n });\n}\n\n/**\n * Set a property on an object. Adds the new property and\n * triggers change notification if the property doesn't\n * already exist.\n */\nfunction set (target, key, val) {\n if (process.env.NODE_ENV !== 'production' &&\n (isUndef(target) || isPrimitive(target))\n ) {\n warn((\"Cannot set reactive property on undefined, null, or primitive value: \" + ((target))));\n }\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.length = Math.max(target.length, key);\n target.splice(key, 1, val);\n return val\n }\n if (key in target && !(key in Object.prototype)) {\n target[key] = val;\n return val\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' && warn(\n 'Avoid adding reactive properties to a Vue instance or its root $data ' +\n 'at runtime - declare it upfront in the data option.'\n );\n return val\n }\n if (!ob) {\n target[key] = val;\n return val\n }\n defineReactive$$1(ob.value, key, val);\n ob.dep.notify();\n return val\n}\n\n/**\n * Delete a property and trigger change if necessary.\n */\nfunction del (target, key) {\n if (process.env.NODE_ENV !== 'production' &&\n (isUndef(target) || isPrimitive(target))\n ) {\n warn((\"Cannot delete reactive property on undefined, null, or primitive value: \" + ((target))));\n }\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.splice(key, 1);\n return\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' && warn(\n 'Avoid deleting properties on a Vue instance or its root $data ' +\n '- just set it to null.'\n );\n return\n }\n if (!hasOwn(target, key)) {\n return\n }\n delete target[key];\n if (!ob) {\n return\n }\n ob.dep.notify();\n}\n\n/**\n * Collect dependencies on array elements when the array is touched, since\n * we cannot intercept array element access like property getters.\n */\nfunction dependArray (value) {\n for (var e = (void 0), i = 0, l = value.length; i < l; i++) {\n e = value[i];\n e && e.__ob__ && e.__ob__.dep.depend();\n if (Array.isArray(e)) {\n dependArray(e);\n }\n }\n}\n\n/* */\n\n/**\n * Option overwriting strategies are functions that handle\n * how to merge a parent option value and a child option\n * value into the final value.\n */\nvar strats = config.optionMergeStrategies;\n\n/**\n * Options with restrictions\n */\nif (process.env.NODE_ENV !== 'production') {\n strats.el = strats.propsData = function (parent, child, vm, key) {\n if (!vm) {\n warn(\n \"option \\\"\" + key + \"\\\" can only be used during instance \" +\n 'creation with the `new` keyword.'\n );\n }\n return defaultStrat(parent, child)\n };\n}\n\n/**\n * Helper that recursively merges two data objects together.\n */\nfunction mergeData (to, from) {\n if (!from) { return to }\n var key, toVal, fromVal;\n\n var keys = hasSymbol\n ? Reflect.ownKeys(from)\n : Object.keys(from);\n\n for (var i = 0; i < keys.length; i++) {\n key = keys[i];\n // in case the object is already observed...\n if (key === '__ob__') { continue }\n toVal = to[key];\n fromVal = from[key];\n if (!hasOwn(to, key)) {\n set(to, key, fromVal);\n } else if (\n toVal !== fromVal &&\n isPlainObject(toVal) &&\n isPlainObject(fromVal)\n ) {\n mergeData(toVal, fromVal);\n }\n }\n return to\n}\n\n/**\n * Data\n */\nfunction mergeDataOrFn (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n // in a Vue.extend merge, both should be functions\n if (!childVal) {\n return parentVal\n }\n if (!parentVal) {\n return childVal\n }\n // when parentVal & childVal are both present,\n // we need to return a function that returns the\n // merged result of both functions... no need to\n // check if parentVal is a function here because\n // it has to be a function to pass previous merges.\n return function mergedDataFn () {\n return mergeData(\n typeof childVal === 'function' ? childVal.call(this, this) : childVal,\n typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal\n )\n }\n } else {\n return function mergedInstanceDataFn () {\n // instance merge\n var instanceData = typeof childVal === 'function'\n ? childVal.call(vm, vm)\n : childVal;\n var defaultData = typeof parentVal === 'function'\n ? parentVal.call(vm, vm)\n : parentVal;\n if (instanceData) {\n return mergeData(instanceData, defaultData)\n } else {\n return defaultData\n }\n }\n }\n}\n\nstrats.data = function (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n if (childVal && typeof childVal !== 'function') {\n process.env.NODE_ENV !== 'production' && warn(\n 'The \"data\" option should be a function ' +\n 'that returns a per-instance value in component ' +\n 'definitions.',\n vm\n );\n\n return parentVal\n }\n return mergeDataOrFn(parentVal, childVal)\n }\n\n return mergeDataOrFn(parentVal, childVal, vm)\n};\n\n/**\n * Hooks and props are merged as arrays.\n */\nfunction mergeHook (\n parentVal,\n childVal\n) {\n var res = childVal\n ? parentVal\n ? parentVal.concat(childVal)\n : Array.isArray(childVal)\n ? childVal\n : [childVal]\n : parentVal;\n return res\n ? dedupeHooks(res)\n : res\n}\n\nfunction dedupeHooks (hooks) {\n var res = [];\n for (var i = 0; i < hooks.length; i++) {\n if (res.indexOf(hooks[i]) === -1) {\n res.push(hooks[i]);\n }\n }\n return res\n}\n\nLIFECYCLE_HOOKS.forEach(function (hook) {\n strats[hook] = mergeHook;\n});\n\n/**\n * Assets\n *\n * When a vm is present (instance creation), we need to do\n * a three-way merge between constructor options, instance\n * options and parent options.\n */\nfunction mergeAssets (\n parentVal,\n childVal,\n vm,\n key\n) {\n var res = Object.create(parentVal || null);\n if (childVal) {\n process.env.NODE_ENV !== 'production' && assertObjectType(key, childVal, vm);\n return extend(res, childVal)\n } else {\n return res\n }\n}\n\nASSET_TYPES.forEach(function (type) {\n strats[type + 's'] = mergeAssets;\n});\n\n/**\n * Watchers.\n *\n * Watchers hashes should not overwrite one\n * another, so we merge them as arrays.\n */\nstrats.watch = function (\n parentVal,\n childVal,\n vm,\n key\n) {\n // work around Firefox's Object.prototype.watch...\n if (parentVal === nativeWatch) { parentVal = undefined; }\n if (childVal === nativeWatch) { childVal = undefined; }\n /* istanbul ignore if */\n if (!childVal) { return Object.create(parentVal || null) }\n if (process.env.NODE_ENV !== 'production') {\n assertObjectType(key, childVal, vm);\n }\n if (!parentVal) { return childVal }\n var ret = {};\n extend(ret, parentVal);\n for (var key$1 in childVal) {\n var parent = ret[key$1];\n var child = childVal[key$1];\n if (parent && !Array.isArray(parent)) {\n parent = [parent];\n }\n ret[key$1] = parent\n ? parent.concat(child)\n : Array.isArray(child) ? child : [child];\n }\n return ret\n};\n\n/**\n * Other object hashes.\n */\nstrats.props =\nstrats.methods =\nstrats.inject =\nstrats.computed = function (\n parentVal,\n childVal,\n vm,\n key\n) {\n if (childVal && process.env.NODE_ENV !== 'production') {\n assertObjectType(key, childVal, vm);\n }\n if (!parentVal) { return childVal }\n var ret = Object.create(null);\n extend(ret, parentVal);\n if (childVal) { extend(ret, childVal); }\n return ret\n};\nstrats.provide = mergeDataOrFn;\n\n/**\n * Default strategy.\n */\nvar defaultStrat = function (parentVal, childVal) {\n return childVal === undefined\n ? parentVal\n : childVal\n};\n\n/**\n * Validate component names\n */\nfunction checkComponents (options) {\n for (var key in options.components) {\n validateComponentName(key);\n }\n}\n\nfunction validateComponentName (name) {\n if (!new RegExp((\"^[a-zA-Z][\\\\-\\\\.0-9_\" + (unicodeRegExp.source) + \"]*$\")).test(name)) {\n warn(\n 'Invalid component name: \"' + name + '\". Component names ' +\n 'should conform to valid custom element name in html5 specification.'\n );\n }\n if (isBuiltInTag(name) || config.isReservedTag(name)) {\n warn(\n 'Do not use built-in or reserved HTML elements as component ' +\n 'id: ' + name\n );\n }\n}\n\n/**\n * Ensure all props option syntax are normalized into the\n * Object-based format.\n */\nfunction normalizeProps (options, vm) {\n var props = options.props;\n if (!props) { return }\n var res = {};\n var i, val, name;\n if (Array.isArray(props)) {\n i = props.length;\n while (i--) {\n val = props[i];\n if (typeof val === 'string') {\n name = camelize(val);\n res[name] = { type: null };\n } else if (process.env.NODE_ENV !== 'production') {\n warn('props must be strings when using array syntax.');\n }\n }\n } else if (isPlainObject(props)) {\n for (var key in props) {\n val = props[key];\n name = camelize(key);\n res[name] = isPlainObject(val)\n ? val\n : { type: val };\n }\n } else if (process.env.NODE_ENV !== 'production') {\n warn(\n \"Invalid value for option \\\"props\\\": expected an Array or an Object, \" +\n \"but got \" + (toRawType(props)) + \".\",\n vm\n );\n }\n options.props = res;\n}\n\n/**\n * Normalize all injections into Object-based format\n */\nfunction normalizeInject (options, vm) {\n var inject = options.inject;\n if (!inject) { return }\n var normalized = options.inject = {};\n if (Array.isArray(inject)) {\n for (var i = 0; i < inject.length; i++) {\n normalized[inject[i]] = { from: inject[i] };\n }\n } else if (isPlainObject(inject)) {\n for (var key in inject) {\n var val = inject[key];\n normalized[key] = isPlainObject(val)\n ? extend({ from: key }, val)\n : { from: val };\n }\n } else if (process.env.NODE_ENV !== 'production') {\n warn(\n \"Invalid value for option \\\"inject\\\": expected an Array or an Object, \" +\n \"but got \" + (toRawType(inject)) + \".\",\n vm\n );\n }\n}\n\n/**\n * Normalize raw function directives into object format.\n */\nfunction normalizeDirectives (options) {\n var dirs = options.directives;\n if (dirs) {\n for (var key in dirs) {\n var def$$1 = dirs[key];\n if (typeof def$$1 === 'function') {\n dirs[key] = { bind: def$$1, update: def$$1 };\n }\n }\n }\n}\n\nfunction assertObjectType (name, value, vm) {\n if (!isPlainObject(value)) {\n warn(\n \"Invalid value for option \\\"\" + name + \"\\\": expected an Object, \" +\n \"but got \" + (toRawType(value)) + \".\",\n vm\n );\n }\n}\n\n/**\n * Merge two option objects into a new one.\n * Core utility used in both instantiation and inheritance.\n */\nfunction mergeOptions (\n parent,\n child,\n vm\n) {\n if (process.env.NODE_ENV !== 'production') {\n checkComponents(child);\n }\n\n if (typeof child === 'function') {\n child = child.options;\n }\n\n normalizeProps(child, vm);\n normalizeInject(child, vm);\n normalizeDirectives(child);\n\n // Apply extends and mixins on the child options,\n // but only if it is a raw options object that isn't\n // the result of another mergeOptions call.\n // Only merged options has the _base property.\n if (!child._base) {\n if (child.extends) {\n parent = mergeOptions(parent, child.extends, vm);\n }\n if (child.mixins) {\n for (var i = 0, l = child.mixins.length; i < l; i++) {\n parent = mergeOptions(parent, child.mixins[i], vm);\n }\n }\n }\n\n var options = {};\n var key;\n for (key in parent) {\n mergeField(key);\n }\n for (key in child) {\n if (!hasOwn(parent, key)) {\n mergeField(key);\n }\n }\n function mergeField (key) {\n var strat = strats[key] || defaultStrat;\n options[key] = strat(parent[key], child[key], vm, key);\n }\n return options\n}\n\n/**\n * Resolve an asset.\n * This function is used because child instances need access\n * to assets defined in its ancestor chain.\n */\nfunction resolveAsset (\n options,\n type,\n id,\n warnMissing\n) {\n /* istanbul ignore if */\n if (typeof id !== 'string') {\n return\n }\n var assets = options[type];\n // check local registration variations first\n if (hasOwn(assets, id)) { return assets[id] }\n var camelizedId = camelize(id);\n if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }\n var PascalCaseId = capitalize(camelizedId);\n if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }\n // fallback to prototype chain\n var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];\n if (process.env.NODE_ENV !== 'production' && warnMissing && !res) {\n warn(\n 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,\n options\n );\n }\n return res\n}\n\n/* */\n\n\n\nfunction validateProp (\n key,\n propOptions,\n propsData,\n vm\n) {\n var prop = propOptions[key];\n var absent = !hasOwn(propsData, key);\n var value = propsData[key];\n // boolean casting\n var booleanIndex = getTypeIndex(Boolean, prop.type);\n if (booleanIndex > -1) {\n if (absent && !hasOwn(prop, 'default')) {\n value = false;\n } else if (value === '' || value === hyphenate(key)) {\n // only cast empty string / same name to boolean if\n // boolean has higher priority\n var stringIndex = getTypeIndex(String, prop.type);\n if (stringIndex < 0 || booleanIndex < stringIndex) {\n value = true;\n }\n }\n }\n // check default value\n if (value === undefined) {\n value = getPropDefaultValue(vm, prop, key);\n // since the default value is a fresh copy,\n // make sure to observe it.\n var prevShouldObserve = shouldObserve;\n toggleObserving(true);\n observe(value);\n toggleObserving(prevShouldObserve);\n }\n if (\n process.env.NODE_ENV !== 'production' &&\n // skip validation for weex recycle-list child component props\n !(false)\n ) {\n assertProp(prop, key, value, vm, absent);\n }\n return value\n}\n\n/**\n * Get the default value of a prop.\n */\nfunction getPropDefaultValue (vm, prop, key) {\n // no default, return undefined\n if (!hasOwn(prop, 'default')) {\n return undefined\n }\n var def = prop.default;\n // warn against non-factory defaults for Object & Array\n if (process.env.NODE_ENV !== 'production' && isObject(def)) {\n warn(\n 'Invalid default value for prop \"' + key + '\": ' +\n 'Props with type Object/Array must use a factory function ' +\n 'to return the default value.',\n vm\n );\n }\n // the raw prop value was also undefined from previous render,\n // return previous default value to avoid unnecessary watcher trigger\n if (vm && vm.$options.propsData &&\n vm.$options.propsData[key] === undefined &&\n vm._props[key] !== undefined\n ) {\n return vm._props[key]\n }\n // call factory function for non-Function types\n // a value is Function if its prototype is function even across different execution context\n return typeof def === 'function' && getType(prop.type) !== 'Function'\n ? def.call(vm)\n : def\n}\n\n/**\n * Assert whether a prop is valid.\n */\nfunction assertProp (\n prop,\n name,\n value,\n vm,\n absent\n) {\n if (prop.required && absent) {\n warn(\n 'Missing required prop: \"' + name + '\"',\n vm\n );\n return\n }\n if (value == null && !prop.required) {\n return\n }\n var type = prop.type;\n var valid = !type || type === true;\n var expectedTypes = [];\n if (type) {\n if (!Array.isArray(type)) {\n type = [type];\n }\n for (var i = 0; i < type.length && !valid; i++) {\n var assertedType = assertType(value, type[i]);\n expectedTypes.push(assertedType.expectedType || '');\n valid = assertedType.valid;\n }\n }\n\n if (!valid) {\n warn(\n getInvalidTypeMessage(name, value, expectedTypes),\n vm\n );\n return\n }\n var validator = prop.validator;\n if (validator) {\n if (!validator(value)) {\n warn(\n 'Invalid prop: custom validator check failed for prop \"' + name + '\".',\n vm\n );\n }\n }\n}\n\nvar simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;\n\nfunction assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (simpleCheckRE.test(expectedType)) {\n var t = typeof value;\n valid = t === expectedType.toLowerCase();\n // for primitive wrapper objects\n if (!valid && t === 'object') {\n valid = value instanceof type;\n }\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}\n\n/**\n * Use function string name to check built-in types,\n * because a simple equality check will fail when running\n * across different vms / iframes.\n */\nfunction getType (fn) {\n var match = fn && fn.toString().match(/^\\s*function (\\w+)/);\n return match ? match[1] : ''\n}\n\nfunction isSameType (a, b) {\n return getType(a) === getType(b)\n}\n\nfunction getTypeIndex (type, expectedTypes) {\n if (!Array.isArray(expectedTypes)) {\n return isSameType(expectedTypes, type) ? 0 : -1\n }\n for (var i = 0, len = expectedTypes.length; i < len; i++) {\n if (isSameType(expectedTypes[i], type)) {\n return i\n }\n }\n return -1\n}\n\nfunction getInvalidTypeMessage (name, value, expectedTypes) {\n var message = \"Invalid prop: type check failed for prop \\\"\" + name + \"\\\".\" +\n \" Expected \" + (expectedTypes.map(capitalize).join(', '));\n var expectedType = expectedTypes[0];\n var receivedType = toRawType(value);\n var expectedValue = styleValue(value, expectedType);\n var receivedValue = styleValue(value, receivedType);\n // check if we need to specify expected value\n if (expectedTypes.length === 1 &&\n isExplicable(expectedType) &&\n !isBoolean(expectedType, receivedType)) {\n message += \" with value \" + expectedValue;\n }\n message += \", got \" + receivedType + \" \";\n // check if we need to specify received value\n if (isExplicable(receivedType)) {\n message += \"with value \" + receivedValue + \".\";\n }\n return message\n}\n\nfunction styleValue (value, type) {\n if (type === 'String') {\n return (\"\\\"\" + value + \"\\\"\")\n } else if (type === 'Number') {\n return (\"\" + (Number(value)))\n } else {\n return (\"\" + value)\n }\n}\n\nfunction isExplicable (value) {\n var explicitTypes = ['string', 'number', 'boolean'];\n return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })\n}\n\nfunction isBoolean () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })\n}\n\n/* */\n\nfunction handleError (err, vm, info) {\n // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.\n // See: https://github.com/vuejs/vuex/issues/1505\n pushTarget();\n try {\n if (vm) {\n var cur = vm;\n while ((cur = cur.$parent)) {\n var hooks = cur.$options.errorCaptured;\n if (hooks) {\n for (var i = 0; i < hooks.length; i++) {\n try {\n var capture = hooks[i].call(cur, err, vm, info) === false;\n if (capture) { return }\n } catch (e) {\n globalHandleError(e, cur, 'errorCaptured hook');\n }\n }\n }\n }\n }\n globalHandleError(err, vm, info);\n } finally {\n popTarget();\n }\n}\n\nfunction invokeWithErrorHandling (\n handler,\n context,\n args,\n vm,\n info\n) {\n var res;\n try {\n res = args ? handler.apply(context, args) : handler.call(context);\n if (res && !res._isVue && isPromise(res) && !res._handled) {\n res.catch(function (e) { return handleError(e, vm, info + \" (Promise/async)\"); });\n // issue #9511\n // avoid catch triggering multiple times when nested calls\n res._handled = true;\n }\n } catch (e) {\n handleError(e, vm, info);\n }\n return res\n}\n\nfunction globalHandleError (err, vm, info) {\n if (config.errorHandler) {\n try {\n return config.errorHandler.call(null, err, vm, info)\n } catch (e) {\n // if the user intentionally throws the original error in the handler,\n // do not log it twice\n if (e !== err) {\n logError(e, null, 'config.errorHandler');\n }\n }\n }\n logError(err, vm, info);\n}\n\nfunction logError (err, vm, info) {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Error in \" + info + \": \\\"\" + (err.toString()) + \"\\\"\"), vm);\n }\n /* istanbul ignore else */\n if ((inBrowser || inWeex) && typeof console !== 'undefined') {\n console.error(err);\n } else {\n throw err\n }\n}\n\n/* */\n\nvar isUsingMicroTask = false;\n\nvar callbacks = [];\nvar pending = false;\n\nfunction flushCallbacks () {\n pending = false;\n var copies = callbacks.slice(0);\n callbacks.length = 0;\n for (var i = 0; i < copies.length; i++) {\n copies[i]();\n }\n}\n\n// Here we have async deferring wrappers using microtasks.\n// In 2.5 we used (macro) tasks (in combination with microtasks).\n// However, it has subtle problems when state is changed right before repaint\n// (e.g. #6813, out-in transitions).\n// Also, using (macro) tasks in event handler would cause some weird behaviors\n// that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).\n// So we now use microtasks everywhere, again.\n// A major drawback of this tradeoff is that there are some scenarios\n// where microtasks have too high a priority and fire in between supposedly\n// sequential events (e.g. #4521, #6690, which have workarounds)\n// or even between bubbling of the same event (#6566).\nvar timerFunc;\n\n// The nextTick behavior leverages the microtask queue, which can be accessed\n// via either native Promise.then or MutationObserver.\n// MutationObserver has wider support, however it is seriously bugged in\n// UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It\n// completely stops working after triggering a few times... so, if native\n// Promise is available, we will use it:\n/* istanbul ignore next, $flow-disable-line */\nif (typeof Promise !== 'undefined' && isNative(Promise)) {\n var p = Promise.resolve();\n timerFunc = function () {\n p.then(flushCallbacks);\n // In problematic UIWebViews, Promise.then doesn't completely break, but\n // it can get stuck in a weird state where callbacks are pushed into the\n // microtask queue but the queue isn't being flushed, until the browser\n // needs to do some other work, e.g. handle a timer. Therefore we can\n // \"force\" the microtask queue to be flushed by adding an empty timer.\n if (isIOS) { setTimeout(noop); }\n };\n isUsingMicroTask = true;\n} else if (!isIE && typeof MutationObserver !== 'undefined' && (\n isNative(MutationObserver) ||\n // PhantomJS and iOS 7.x\n MutationObserver.toString() === '[object MutationObserverConstructor]'\n)) {\n // Use MutationObserver where native Promise is not available,\n // e.g. PhantomJS, iOS7, Android 4.4\n // (#6466 MutationObserver is unreliable in IE11)\n var counter = 1;\n var observer = new MutationObserver(flushCallbacks);\n var textNode = document.createTextNode(String(counter));\n observer.observe(textNode, {\n characterData: true\n });\n timerFunc = function () {\n counter = (counter + 1) % 2;\n textNode.data = String(counter);\n };\n isUsingMicroTask = true;\n} else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {\n // Fallback to setImmediate.\n // Technically it leverages the (macro) task queue,\n // but it is still a better choice than setTimeout.\n timerFunc = function () {\n setImmediate(flushCallbacks);\n };\n} else {\n // Fallback to setTimeout.\n timerFunc = function () {\n setTimeout(flushCallbacks, 0);\n };\n}\n\nfunction nextTick (cb, ctx) {\n var _resolve;\n callbacks.push(function () {\n if (cb) {\n try {\n cb.call(ctx);\n } catch (e) {\n handleError(e, ctx, 'nextTick');\n }\n } else if (_resolve) {\n _resolve(ctx);\n }\n });\n if (!pending) {\n pending = true;\n timerFunc();\n }\n // $flow-disable-line\n if (!cb && typeof Promise !== 'undefined') {\n return new Promise(function (resolve) {\n _resolve = resolve;\n })\n }\n}\n\n/* */\n\n/* not type checking this file because flow doesn't play well with Proxy */\n\nvar initProxy;\n\nif (process.env.NODE_ENV !== 'production') {\n var allowedGlobals = makeMap(\n 'Infinity,undefined,NaN,isFinite,isNaN,' +\n 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +\n 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +\n 'require' // for Webpack/Browserify\n );\n\n var warnNonPresent = function (target, key) {\n warn(\n \"Property or method \\\"\" + key + \"\\\" is not defined on the instance but \" +\n 'referenced during render. Make sure that this property is reactive, ' +\n 'either in the data option, or for class-based components, by ' +\n 'initializing the property. ' +\n 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',\n target\n );\n };\n\n var warnReservedPrefix = function (target, key) {\n warn(\n \"Property \\\"\" + key + \"\\\" must be accessed with \\\"$data.\" + key + \"\\\" because \" +\n 'properties starting with \"$\" or \"_\" are not proxied in the Vue instance to ' +\n 'prevent conflicts with Vue internals. ' +\n 'See: https://vuejs.org/v2/api/#data',\n target\n );\n };\n\n var hasProxy =\n typeof Proxy !== 'undefined' && isNative(Proxy);\n\n if (hasProxy) {\n var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');\n config.keyCodes = new Proxy(config.keyCodes, {\n set: function set (target, key, value) {\n if (isBuiltInModifier(key)) {\n warn((\"Avoid overwriting built-in modifier in config.keyCodes: .\" + key));\n return false\n } else {\n target[key] = value;\n return true\n }\n }\n });\n }\n\n var hasHandler = {\n has: function has (target, key) {\n var has = key in target;\n var isAllowed = allowedGlobals(key) ||\n (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));\n if (!has && !isAllowed) {\n if (key in target.$data) { warnReservedPrefix(target, key); }\n else { warnNonPresent(target, key); }\n }\n return has || !isAllowed\n }\n };\n\n var getHandler = {\n get: function get (target, key) {\n if (typeof key === 'string' && !(key in target)) {\n if (key in target.$data) { warnReservedPrefix(target, key); }\n else { warnNonPresent(target, key); }\n }\n return target[key]\n }\n };\n\n initProxy = function initProxy (vm) {\n if (hasProxy) {\n // determine which proxy handler to use\n var options = vm.$options;\n var handlers = options.render && options.render._withStripped\n ? getHandler\n : hasHandler;\n vm._renderProxy = new Proxy(vm, handlers);\n } else {\n vm._renderProxy = vm;\n }\n };\n}\n\n/* */\n\nvar seenObjects = new _Set();\n\n/**\n * Recursively traverse an object to evoke all converted\n * getters, so that every nested property inside the object\n * is collected as a \"deep\" dependency.\n */\nfunction traverse (val) {\n _traverse(val, seenObjects);\n seenObjects.clear();\n}\n\nfunction _traverse (val, seen) {\n var i, keys;\n var isA = Array.isArray(val);\n if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {\n return\n }\n if (val.__ob__) {\n var depId = val.__ob__.dep.id;\n if (seen.has(depId)) {\n return\n }\n seen.add(depId);\n }\n if (isA) {\n i = val.length;\n while (i--) { _traverse(val[i], seen); }\n } else {\n keys = Object.keys(val);\n i = keys.length;\n while (i--) { _traverse(val[keys[i]], seen); }\n }\n}\n\nvar mark;\nvar measure;\n\nif (process.env.NODE_ENV !== 'production') {\n var perf = inBrowser && window.performance;\n /* istanbul ignore if */\n if (\n perf &&\n perf.mark &&\n perf.measure &&\n perf.clearMarks &&\n perf.clearMeasures\n ) {\n mark = function (tag) { return perf.mark(tag); };\n measure = function (name, startTag, endTag) {\n perf.measure(name, startTag, endTag);\n perf.clearMarks(startTag);\n perf.clearMarks(endTag);\n // perf.clearMeasures(name)\n };\n }\n}\n\n/* */\n\nvar normalizeEvent = cached(function (name) {\n var passive = name.charAt(0) === '&';\n name = passive ? name.slice(1) : name;\n var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first\n name = once$$1 ? name.slice(1) : name;\n var capture = name.charAt(0) === '!';\n name = capture ? name.slice(1) : name;\n return {\n name: name,\n once: once$$1,\n capture: capture,\n passive: passive\n }\n});\n\nfunction createFnInvoker (fns, vm) {\n function invoker () {\n var arguments$1 = arguments;\n\n var fns = invoker.fns;\n if (Array.isArray(fns)) {\n var cloned = fns.slice();\n for (var i = 0; i < cloned.length; i++) {\n invokeWithErrorHandling(cloned[i], null, arguments$1, vm, \"v-on handler\");\n }\n } else {\n // return handler return value for single handlers\n return invokeWithErrorHandling(fns, null, arguments, vm, \"v-on handler\")\n }\n }\n invoker.fns = fns;\n return invoker\n}\n\nfunction updateListeners (\n on,\n oldOn,\n add,\n remove$$1,\n createOnceHandler,\n vm\n) {\n var name, def$$1, cur, old, event;\n for (name in on) {\n def$$1 = cur = on[name];\n old = oldOn[name];\n event = normalizeEvent(name);\n if (isUndef(cur)) {\n process.env.NODE_ENV !== 'production' && warn(\n \"Invalid handler for event \\\"\" + (event.name) + \"\\\": got \" + String(cur),\n vm\n );\n } else if (isUndef(old)) {\n if (isUndef(cur.fns)) {\n cur = on[name] = createFnInvoker(cur, vm);\n }\n if (isTrue(event.once)) {\n cur = on[name] = createOnceHandler(event.name, cur, event.capture);\n }\n add(event.name, cur, event.capture, event.passive, event.params);\n } else if (cur !== old) {\n old.fns = cur;\n on[name] = old;\n }\n }\n for (name in oldOn) {\n if (isUndef(on[name])) {\n event = normalizeEvent(name);\n remove$$1(event.name, oldOn[name], event.capture);\n }\n }\n}\n\n/* */\n\nfunction mergeVNodeHook (def, hookKey, hook) {\n if (def instanceof VNode) {\n def = def.data.hook || (def.data.hook = {});\n }\n var invoker;\n var oldHook = def[hookKey];\n\n function wrappedHook () {\n hook.apply(this, arguments);\n // important: remove merged hook to ensure it's called only once\n // and prevent memory leak\n remove(invoker.fns, wrappedHook);\n }\n\n if (isUndef(oldHook)) {\n // no existing hook\n invoker = createFnInvoker([wrappedHook]);\n } else {\n /* istanbul ignore if */\n if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {\n // already a merged invoker\n invoker = oldHook;\n invoker.fns.push(wrappedHook);\n } else {\n // existing plain hook\n invoker = createFnInvoker([oldHook, wrappedHook]);\n }\n }\n\n invoker.merged = true;\n def[hookKey] = invoker;\n}\n\n/* */\n\nfunction extractPropsFromVNodeData (\n data,\n Ctor,\n tag\n) {\n // we are only extracting raw values here.\n // validation and default values are handled in the child\n // component itself.\n var propOptions = Ctor.options.props;\n if (isUndef(propOptions)) {\n return\n }\n var res = {};\n var attrs = data.attrs;\n var props = data.props;\n if (isDef(attrs) || isDef(props)) {\n for (var key in propOptions) {\n var altKey = hyphenate(key);\n if (process.env.NODE_ENV !== 'production') {\n var keyInLowerCase = key.toLowerCase();\n if (\n key !== keyInLowerCase &&\n attrs && hasOwn(attrs, keyInLowerCase)\n ) {\n tip(\n \"Prop \\\"\" + keyInLowerCase + \"\\\" is passed to component \" +\n (formatComponentName(tag || Ctor)) + \", but the declared prop name is\" +\n \" \\\"\" + key + \"\\\". \" +\n \"Note that HTML attributes are case-insensitive and camelCased \" +\n \"props need to use their kebab-case equivalents when using in-DOM \" +\n \"templates. You should probably use \\\"\" + altKey + \"\\\" instead of \\\"\" + key + \"\\\".\"\n );\n }\n }\n checkProp(res, props, key, altKey, true) ||\n checkProp(res, attrs, key, altKey, false);\n }\n }\n return res\n}\n\nfunction checkProp (\n res,\n hash,\n key,\n altKey,\n preserve\n) {\n if (isDef(hash)) {\n if (hasOwn(hash, key)) {\n res[key] = hash[key];\n if (!preserve) {\n delete hash[key];\n }\n return true\n } else if (hasOwn(hash, altKey)) {\n res[key] = hash[altKey];\n if (!preserve) {\n delete hash[altKey];\n }\n return true\n }\n }\n return false\n}\n\n/* */\n\n// The template compiler attempts to minimize the need for normalization by\n// statically analyzing the template at compile time.\n//\n// For plain HTML markup, normalization can be completely skipped because the\n// generated render function is guaranteed to return Array. There are\n// two cases where extra normalization is needed:\n\n// 1. When the children contains components - because a functional component\n// may return an Array instead of a single root. In this case, just a simple\n// normalization is needed - if any child is an Array, we flatten the whole\n// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep\n// because functional components already normalize their own children.\nfunction simpleNormalizeChildren (children) {\n for (var i = 0; i < children.length; i++) {\n if (Array.isArray(children[i])) {\n return Array.prototype.concat.apply([], children)\n }\n }\n return children\n}\n\n// 2. When the children contains constructs that always generated nested Arrays,\n// e.g.