@processmaker/screen-builder 2.88.0 → 2.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -257,7 +257,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
257
257
  }));
258
258
  `),r.run_onload&&this.addMounted(t,`
259
259
  this.queueWatcher(${JSON.stringify(r)});
260
- `)}))}},mounted(){this.extensions.push({onbuild({screen:t,definition:e}){this.watchers(t,e)},onparse({definition:t}){this.addWatcherVariables(t)}})}}},Symbol.toStringTag,{value:"Module"})),og=[];Object.entries(Object.assign({"./AccordionContainer.js":YD,"./ComputedFields.js":ZD,"./CustomCss.js":KD,"./DataManager.js":_D,"./DefaultValues.js":$D,"./InputText.js":eA,"./LoadFieldComponents.js":tA,"./LoopContainer.js":rA,"./MultiColumn.js":iA,"./PageNavigate.js":aA,"./Submit.js":nA,"./ValidationRules.js":j5,"./VisibilityRule.js":L5,"./Watchers.js":F5})).forEach(([t,e])=>{og.push(e.default)});const al={in:"Invalid value",notIn:"Invalid value",accepted:"Field must be accepted",required:"Field is required",requiredIf:"Field is required",requiredUnless:"Field is required",minLength:"Must have at least {min}",maxLength:"Must have at most {max}",min:"Must have at least {min}",max:"Must have at most {max}",minValue:"Must have a minimum value of {min}",maxValue:"Must have a maximum value of {max}",between:"Must have a value between {min} and {max}",alpha:"Accepts only alphabet characters",alphaNum:"Accepts only alphanumerics",numeric:"Accepts only numerics",integer:"Must be a positive or negative integer",decimal:"Must be a positive or negative decimal number",email:"Must be a valid email address",ipAddress:"Must be a valid IPv4 address",macAddress:"Must be a valid MAC address",sameAs:"Must be same as {field}",same:"Must be same as {field}",url:"Must be a valid URL",after:"Must be after {after}",afterOrEqual:"Must be equal or after {after_or_equal}",before:"Must be before {before}",beforeOrEqual:"Must be equal or before {before_or_equal}",invalid_default_value:"Invalid default value",customDate:"Must be a valid Date",regex:"Invalid value",maxItems:"Should NOT have more than {max} items",minItems:"Must have at least {min}",type:"Invalid type"},B5=t=>{let e="MM/DD/YYYY";return typeof window.ProcessMaker<"u"&&window.ProcessMaker.user&&window.ProcessMaker.user.datetime_format&&(e=window.ProcessMaker.user.datetime_format.replace(/[\sHh:msaAzZ]/g,"")),_e(t,[e,_e.ISO_8601],!0).isValid()},H5=(t,e)=>Oe.helpers.withParams({after:t},function(r,i){const a=e.split(".").length-1,n=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(i),a);n.today=_e().format("YYYY-MM-DD");const s=_e(U.get(n,t,t));if(!s.isValid())return!1;const o=_e(r).toISOString(),u=s.toISOString();return o>u}),R5=(t,e)=>Oe.helpers.withParams({after_or_equal:t},function(r,i){const a=e.split(".").length-1,n=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(i),a);n.today=_e().format("YYYY-MM-DD");const s=_e(U.get(n,t,t));if(!s.isValid())return!1;const o=_e(r).toISOString(),u=s.toISOString();return o>=u}),q5=(t,e)=>Oe.helpers.withParams({before:t},function(r,i){const a=e.split(".").length-1,n=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(i),a);n.today=_e().format("YYYY-MM-DD");const s=_e(U.get(n,t,t));if(!s.isValid())return!1;const o=_e(r).toISOString(),u=s.toISOString();return o<u}),X5=(t,e)=>Oe.helpers.withParams({before_or_equal:t},function(r,i){const a=e.split(".").length-1,n=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(i),a);n.today=_e().format("YYYY-MM-DD");const s=_e(U.get(n,t,t));if(!s.isValid())return!1;const o=_e(r).toISOString(),u=s.toISOString();return o<=u}),W5=t=>t==="yes"||t==="on"||t===!0||t===1||t==="1",V5=t=>Oe.helpers.withParams({list:t},e=>(t=t instanceof Array?t:t.split(","),t.findIndex(r=>r==e)>-1)),J5=t=>Oe.helpers.withParams({list:t},e=>(t=t instanceof Array?t:t.split(","),t.findIndex(r=>r==e)===-1)),G5=t=>Oe.helpers.withParams({expression:t},e=>{const r=t.match(/(\/?)(.+)\1([a-z]*)/i),i=r[2],a=r[3],n=new RegExp(i,a);return!!String(e).match(n)}),U5=t=>t instanceof Array?t.length>0:!!t,Q5=(t,e,r)=>Oe.helpers.withParams({variable:t,expected:e},function(i,a){const n=r.split(".").length-1,s=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(a),n),o=U.get(s,t),u=o===!0||o===!1;let l=e;return u&&(l=e==="true"||e==="1"),o!=l?!0:i instanceof Array?i.length>0:!!i}),Y5=(t,e,r)=>Oe.helpers.withParams({variable:t,expected:e},function(i,a){const n=r.split(".").length-1,s=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(a),n),o=U.get(s,t),u=o===!0||o===!1;let l=e;return u&&(l=e==="true"||e==="1"),o==l?!0:i instanceof Array?i.length>0:!!i}),lg=(t,e)=>Oe.helpers.withParams({field:t},function(r,i){const a=e.split(".").length-1,n=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(i),a),s=U.get(n,t);return r==s}),nl={required:U5,requiredIf:Q5,requiredUnless:Y5,minLength:Oe.minLength,maxLength:Oe.maxLength,min:Oe.minLength,max:Oe.maxLength,minValue:Oe.minValue,maxValue:Oe.maxValue,between:Oe.between,alpha:Oe.alpha,alphaNum:Oe.alphaNum,numeric:Oe.numeric,integer:Oe.integer,decimal:Oe.decimal,email:Oe.email,ipAddress:Oe.ipAddress,macAddress:Oe.macAddress,sameAs:lg,same:lg,url:Oe.url,not:Oe.not,or:Oe.or,and:Oe.and,customDate:B5,before:q5,after:H5,beforeOrEqual:X5,accepted:W5,in:V5,notIn:J5,regex:G5,afterOrEqual:R5,maxItems:Oe.maxItems,minItems:Oe.minItems,type:Oe.type},Z5=["string","datetime","date","password"],id={name:"ScreenContent",mixins:[uh,sh],schema:[function(){if(window.ProcessMaker&&window.ProcessMaker.packages&&window.ProcessMaker.packages.includes("package-vocabularies")){if(window.ProcessMaker.VocabulariesSchemaUrl)return window.ProcessMaker.apiClient.get(window.ProcessMaker.VocabulariesSchemaUrl).then(e=>e.data);if(window.ProcessMaker.VocabulariesPreview)return window.ProcessMaker.VocabulariesPreview}return{}}],data(){return{ValidationRules__:{},hiddenFields__:[]}},props:{vdata:{type:Object,required:!0},_parent:null,_initialPage:{default:0}},computed:{...Mt.mapState("globalErrorsModule",{valid__:"valid",message__:"message",locked__:"locked",disableSubmit__:"disableSubmit"}),...Mt.mapGetters("globalErrorsModule",["showValidationErrors"]),references__(){return this.$parent&&this.$parent.references__}},methods:{...Mt.mapActions("globalErrorsModule",["validateNow","hasSubmitted","disableSubmit"]),getDataAccordingToFieldLevel(t,e){return e===0||!t?t:this.getDataAccordingToFieldLevel(t._parent,e-1)},addReferenceToParents(t){if(!t)return;const e=this.addReferenceToParents(this.findParent(t));return new Proxy({},{get:(r,i)=>i==="_parent"&&e?e:i in r?r[i]:t[i],has:(r,i)=>i==="_parent"?e!==void 0:t[i]!==void 0||r[i]!==void 0,set:(r,i,a)=>(r[i]=a,!0)})},findParent(t,e=this.vdata,r=this._parent){if(t===e)return r;for(const i in e)if(i!=="_parent"){if(e[i]instanceof Array)for(const a of e[i]){const n=this.findParent(t,a,e);if(n)return n}else if(e[i]instanceof Object){const a=this.findParent(t,e[i],e);if(a)return a}else if(t===e[i])return r}},getRootScreen(t=this){const e=t.$parent.$parent;return e&&e.getRootScreen instanceof Function?e.getRootScreen(e):t},tryFormField(t,e,r=null){try{let i=e();return i===void 0?null:i}catch{return U.set(this.$v,`${t}.$invalid`,!0),U.set(this.$v,`${t}.invalid_default_value`,!1),r}},mustache(t){try{const e=this.getDataReference();return t&&Sr.render(t,e)}catch(e){return"MUSTACHE: "+e.message}},async submitForm(t,e=!1,r=null){const i={name:"after-submit",validation:!0};if(this.$emit("after-submit",i,...arguments),i.validation===!1){this.$emit("submit",this.vdata,e,r);return}if(await this.validateNow(ch(this)),this.hasSubmitted(!0),!this.valid__||this.disableSubmit__){this.message__&&window.ProcessMaker.alert(this.message__,"danger");return}this.$emit("submit",this.vdata,e,r)},resetValue(t,e){this.setValue(t,null),this.updateScreenDataNow(t,e,!1)},getValidationData(){return this.vdata},initialValue(t,e,r){let i=null;return t==="FormInput"?Z5.includes(e)?i="":e==="currency"&&(i=0):t==="FormTextArea"?i="":t==="FormSelectList"&&r.options.allowMultiSelect?i=[]:t==="FormSelectList"&&!r.options.allowMultiSelect?i=null:t==="FormLoop"&&(i=this.emptyLoopValue(r)),i},emptyLoopValue(t){if(t.settings.type==="existing")return[];const e=Number(t.settings.times),r=[];for(let i=0;i<e;i++)r.push({});return r},updateScreenData(t,e){this[`${t}_was_filled__`]=!0,this.blockUpdate(t,210),this.setValueDebounced(e,this[t],this.vdata)},updateScreenDataNow(t,e,r=!0){r&&(this[`${t}_was_filled__`]=!0),this.setValue(e,this[t],this.vdata),this.unblockUpdate(t)},blockUpdate(t,e){this.blockedUpdates[t]=new Date().getTime()+e},unblockUpdate(t){this.blockUpdate(t,0)},canUpdate(t){return!this.blockedUpdates[t]||this.blockedUpdates[t]<new Date().getTime()},getValue(t,e=this){return e?U.get(e,t):void 0},setValue(t,e,r=this,i=r){if(r&&e!==void 0){const a=t.split(".");for(const n of a){let s,u=a.indexOf(n)===a.length-1;const l=U.get(r,n);if(u?s=e:(s=l,s||(s=U.get(i,n)),s||(s={})),u&&U.isEqual(s,l))return;r instanceof Object&&this.$set(r,n,s),r=U.get(r,n),i=U.get(i,n)}}},addNonDefinedComputedAttributes(t,e,r=null){if(t instanceof Array)t.forEach((i,a)=>{this.addNonDefinedComputedAttributes(i,a,t)});else if(t instanceof Object)Object.keys(t).forEach(i=>{this.addNonDefinedComputedAttributes(t[i],i,t)});else if(r&&r instanceof Object&&!(t instanceof Array)){const i=Object.getOwnPropertyDescriptor(r,e);i&&i.get||(delete r[e],this.$set(r,e,t))}return t},validationMessage(t){const e=[];return Object.keys(al).forEach(r=>{t[r]!==void 0&&!t[r]&&e.push(this.$t(al[r]).replace(/\{(.+?)\}/g,(a,n)=>t.$params[r][n]));const i="schema"+r.charAt(0).toUpperCase()+r.slice(1);t[i]!==void 0&&!t[i]&&e.push(this.$t(al[r]).replace(/\{(.+?)\}/g,(a,n)=>t.$params[i][n]))}),e.join(`.
260
+ `)}))}},mounted(){this.extensions.push({onbuild({screen:t,definition:e}){this.watchers(t,e)},onparse({definition:t}){this.addWatcherVariables(t)}})}}},Symbol.toStringTag,{value:"Module"})),og=[];Object.entries(Object.assign({"./AccordionContainer.js":YD,"./ComputedFields.js":ZD,"./CustomCss.js":KD,"./DataManager.js":_D,"./DefaultValues.js":$D,"./InputText.js":eA,"./LoadFieldComponents.js":tA,"./LoopContainer.js":rA,"./MultiColumn.js":iA,"./PageNavigate.js":aA,"./Submit.js":nA,"./ValidationRules.js":j5,"./VisibilityRule.js":L5,"./Watchers.js":F5})).forEach(([t,e])=>{og.push(e.default)});const al={in:"Invalid value",notIn:"Invalid value",accepted:"Field must be accepted",required:"Field is required",requiredIf:"Field is required",requiredUnless:"Field is required",minLength:"Must have at least {min}",maxLength:"Must have at most {max}",min:"Must have at least {min}",max:"Must have at most {max}",minValue:"Must have a minimum value of {min}",maxValue:"Must have a maximum value of {max}",between:"Must have a value between {min} and {max}",alpha:"Accepts only alphabet characters",alphaNum:"Accepts only alphanumerics",numeric:"Accepts only numerics",integer:"Must be a positive or negative integer",decimal:"Must be a positive or negative decimal number",email:"Must be a valid email address",ipAddress:"Must be a valid IPv4 address",macAddress:"Must be a valid MAC address",sameAs:"Must be same as {field}",same:"Must be same as {field}",url:"Must be a valid URL",after:"Must be after {after}",afterOrEqual:"Must be equal or after {after_or_equal}",before:"Must be before {before}",beforeOrEqual:"Must be equal or before {before_or_equal}",invalid_default_value:"Invalid default value",customDate:"Must be a valid Date",regex:"Invalid value",maxItems:"Should NOT have more than {max} items",minItems:"Must have at least {min}",type:"Invalid type"},B5=t=>{let e="MM/DD/YYYY";return typeof window.ProcessMaker<"u"&&window.ProcessMaker.user&&window.ProcessMaker.user.datetime_format&&(e=window.ProcessMaker.user.datetime_format.replace(/[\sHh:msaAzZ]/g,"")),_e(t,[e,_e.ISO_8601],!0).isValid()},H5=(t,e)=>Oe.helpers.withParams({after:t},function(r,i){const a=e.split(".").length-1,n=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(i),a);n.today=_e().format("YYYY-MM-DD");const s=_e(U.get(n,t,t));if(!s.isValid())return!1;const o=_e(r).toISOString(),u=s.toISOString();return o>u}),R5=(t,e)=>Oe.helpers.withParams({after_or_equal:t},function(r,i){const a=e.split(".").length-1,n=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(i),a);n.today=_e().format("YYYY-MM-DD");const s=_e(U.get(n,t,t));if(!s.isValid())return!1;const o=_e(r).toISOString(),u=s.toISOString();return o>=u}),q5=(t,e)=>Oe.helpers.withParams({before:t},function(r,i){const a=e.split(".").length-1,n=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(i),a);n.today=_e().format("YYYY-MM-DD");const s=_e(U.get(n,t,t));if(!s.isValid())return!1;const o=_e(r).toISOString(),u=s.toISOString();return o<u}),X5=(t,e)=>Oe.helpers.withParams({before_or_equal:t},function(r,i){const a=e.split(".").length-1,n=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(i),a);n.today=_e().format("YYYY-MM-DD");const s=_e(U.get(n,t,t));if(!s.isValid())return!1;const o=_e(r).toISOString(),u=s.toISOString();return o<=u}),W5=t=>t==="yes"||t==="on"||t===!0||t===1||t==="1",V5=t=>Oe.helpers.withParams({list:t},e=>(t=t instanceof Array?t:t.split(","),t.findIndex(r=>r==e)>-1)),J5=t=>Oe.helpers.withParams({list:t},e=>(t=t instanceof Array?t:t.split(","),t.findIndex(r=>r==e)===-1)),G5=t=>Oe.helpers.withParams({expression:t},e=>{const r=t.match(/(\/?)(.+)\1([a-z]*)/i),i=r[2],a=r[3],n=new RegExp(i,a);return!!String(e).match(n)}),U5=t=>t instanceof Array?t.length>0:!U.isNil(t)&&t!==""&&t!==!1,Q5=(t,e,r)=>Oe.helpers.withParams({variable:t,expected:e},function(i,a){const n=r.split(".").length-1,s=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(a),n),o=U.get(s,t),u=o===!0||o===!1;let l=e;return u&&(l=e==="true"||e==="1"),o!=l?!0:i instanceof Array?i.length>0:!!i}),Y5=(t,e,r)=>Oe.helpers.withParams({variable:t,expected:e},function(i,a){const n=r.split(".").length-1,s=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(a),n),o=U.get(s,t),u=o===!0||o===!1;let l=e;return u&&(l=e==="true"||e==="1"),o==l?!0:i instanceof Array?i.length>0:!!i}),lg=(t,e)=>Oe.helpers.withParams({field:t},function(r,i){const a=e.split(".").length-1,n=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(i),a),s=U.get(n,t);return r==s}),nl={required:U5,requiredIf:Q5,requiredUnless:Y5,minLength:Oe.minLength,maxLength:Oe.maxLength,min:Oe.minLength,max:Oe.maxLength,minValue:Oe.minValue,maxValue:Oe.maxValue,between:Oe.between,alpha:Oe.alpha,alphaNum:Oe.alphaNum,numeric:Oe.numeric,integer:Oe.integer,decimal:Oe.decimal,email:Oe.email,ipAddress:Oe.ipAddress,macAddress:Oe.macAddress,sameAs:lg,same:lg,url:Oe.url,not:Oe.not,or:Oe.or,and:Oe.and,customDate:B5,before:q5,after:H5,beforeOrEqual:X5,accepted:W5,in:V5,notIn:J5,regex:G5,afterOrEqual:R5,maxItems:Oe.maxItems,minItems:Oe.minItems,type:Oe.type},Z5=["string","datetime","date","password"],id={name:"ScreenContent",mixins:[uh,sh],schema:[function(){if(window.ProcessMaker&&window.ProcessMaker.packages&&window.ProcessMaker.packages.includes("package-vocabularies")){if(window.ProcessMaker.VocabulariesSchemaUrl)return window.ProcessMaker.apiClient.get(window.ProcessMaker.VocabulariesSchemaUrl).then(e=>e.data);if(window.ProcessMaker.VocabulariesPreview)return window.ProcessMaker.VocabulariesPreview}return{}}],data(){return{ValidationRules__:{},hiddenFields__:[]}},props:{vdata:{type:Object,required:!0},_parent:null,_initialPage:{default:0}},computed:{...Mt.mapState("globalErrorsModule",{valid__:"valid",message__:"message",locked__:"locked",disableSubmit__:"disableSubmit"}),...Mt.mapGetters("globalErrorsModule",["showValidationErrors"]),references__(){return this.$parent&&this.$parent.references__}},methods:{...Mt.mapActions("globalErrorsModule",["validateNow","hasSubmitted","disableSubmit"]),getDataAccordingToFieldLevel(t,e){return e===0||!t?t:this.getDataAccordingToFieldLevel(t._parent,e-1)},addReferenceToParents(t){if(!t)return;const e=this.addReferenceToParents(this.findParent(t));return new Proxy({},{get:(r,i)=>i==="_parent"&&e?e:i in r?r[i]:t[i],has:(r,i)=>i==="_parent"?e!==void 0:t[i]!==void 0||r[i]!==void 0,set:(r,i,a)=>(r[i]=a,!0)})},findParent(t,e=this.vdata,r=this._parent){if(t===e)return r;for(const i in e)if(i!=="_parent"){if(e[i]instanceof Array)for(const a of e[i]){const n=this.findParent(t,a,e);if(n)return n}else if(e[i]instanceof Object){const a=this.findParent(t,e[i],e);if(a)return a}else if(t===e[i])return r}},getRootScreen(t=this){const e=t.$parent.$parent;return e&&e.getRootScreen instanceof Function?e.getRootScreen(e):t},tryFormField(t,e,r=null){try{let i=e();return i===void 0?null:i}catch{return U.set(this.$v,`${t}.$invalid`,!0),U.set(this.$v,`${t}.invalid_default_value`,!1),r}},mustache(t){try{const e=this.getDataReference();return t&&Sr.render(t,e)}catch(e){return"MUSTACHE: "+e.message}},async submitForm(t,e=!1,r=null){const i={name:"after-submit",validation:!0};if(this.$emit("after-submit",i,...arguments),i.validation===!1){this.$emit("submit",this.vdata,e,r);return}if(await this.validateNow(ch(this)),this.hasSubmitted(!0),!this.valid__||this.disableSubmit__){this.message__&&window.ProcessMaker.alert(this.message__,"danger");return}this.$emit("submit",this.vdata,e,r)},resetValue(t,e){this.setValue(t,null),this.updateScreenDataNow(t,e,!1)},getValidationData(){return this.vdata},initialValue(t,e,r){let i=null;return t==="FormInput"?Z5.includes(e)?i="":e==="currency"&&(i=0):t==="FormTextArea"?i="":t==="FormSelectList"&&r.options.allowMultiSelect?i=[]:t==="FormSelectList"&&!r.options.allowMultiSelect?i=null:t==="FormLoop"&&(i=this.emptyLoopValue(r)),i},emptyLoopValue(t){if(t.settings.type==="existing")return[];const e=Number(t.settings.times),r=[];for(let i=0;i<e;i++)r.push({});return r},updateScreenData(t,e){this[`${t}_was_filled__`]=!0,this.blockUpdate(t,210),this.setValueDebounced(e,this[t],this.vdata)},updateScreenDataNow(t,e,r=!0){r&&(this[`${t}_was_filled__`]=!0),this.setValue(e,this[t],this.vdata),this.unblockUpdate(t)},blockUpdate(t,e){this.blockedUpdates[t]=new Date().getTime()+e},unblockUpdate(t){this.blockUpdate(t,0)},canUpdate(t){return!this.blockedUpdates[t]||this.blockedUpdates[t]<new Date().getTime()},getValue(t,e=this){return e?U.get(e,t):void 0},setValue(t,e,r=this,i=r){if(r&&e!==void 0){const a=t.split(".");for(const n of a){let s,u=a.indexOf(n)===a.length-1;const l=U.get(r,n);if(u?s=e:(s=l,s||(s=U.get(i,n)),s||(s={})),u&&U.isEqual(s,l))return;r instanceof Object&&this.$set(r,n,s),r=U.get(r,n),i=U.get(i,n)}}},addNonDefinedComputedAttributes(t,e,r=null){if(t instanceof Array)t.forEach((i,a)=>{this.addNonDefinedComputedAttributes(i,a,t)});else if(t instanceof Object)Object.keys(t).forEach(i=>{this.addNonDefinedComputedAttributes(t[i],i,t)});else if(r&&r instanceof Object&&!(t instanceof Array)){const i=Object.getOwnPropertyDescriptor(r,e);i&&i.get||(delete r[e],this.$set(r,e,t))}return t},validationMessage(t){const e=[];return Object.keys(al).forEach(r=>{t[r]!==void 0&&!t[r]&&e.push(this.$t(al[r]).replace(/\{(.+?)\}/g,(a,n)=>t.$params[r][n]));const i="schema"+r.charAt(0).toUpperCase()+r.slice(1);t[i]!==void 0&&!t[i]&&e.push(this.$t(al[r]).replace(/\{(.+?)\}/g,(a,n)=>t.$params[i][n]))}),e.join(`.
261
261
  `)},getCurrentPage(){return this.currentPage__},setCurrentPage(t){this.currentPage__=t},setValueAsync(t,e,r=this,i=r){}},validations(){return{vdata:this.ValidationRules__}},created(){this.blockedUpdates={};const t=[],e=U.debounce(()=>{t.forEach(r=>{this.setValue(...r)})},210);this.setValueDebounced=(...r)=>{t.push(r),e()},this.setValueAsync=(r,i,a=this,n=a)=>Promise.resolve().then(()=>{this.setValue(r,i,a,n)})}};function ug(t,e){return function(){return t.apply(e,arguments)}}const{toString:K5}=Object.prototype,{getPrototypeOf:ad}=Object,sl=(t=>e=>{const r=K5.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Tr=t=>(t=t.toLowerCase(),e=>sl(e)===t),ol=t=>e=>typeof e===t,{isArray:Pa}=Array,Rn=ol("undefined");function _5(t){return t!==null&&!Rn(t)&&t.constructor!==null&&!Rn(t.constructor)&&Yt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const cg=Tr("ArrayBuffer");function $5(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&cg(t.buffer),e}const eF=ol("string"),Yt=ol("function"),dg=ol("number"),ll=t=>t!==null&&typeof t=="object",tF=t=>t===!0||t===!1,ul=t=>{if(sl(t)!=="object")return!1;const e=ad(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},rF=Tr("Date"),iF=Tr("File"),aF=Tr("Blob"),nF=Tr("FileList"),sF=t=>ll(t)&&Yt(t.pipe),oF=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Yt(t.append)&&((e=sl(t))==="formdata"||e==="object"&&Yt(t.toString)&&t.toString()==="[object FormData]"))},lF=Tr("URLSearchParams"),uF=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qn(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),Pa(t))for(i=0,a=t.length;i<a;i++)e.call(null,t[i],i,t);else{const n=r?Object.getOwnPropertyNames(t):Object.keys(t),s=n.length;let o;for(i=0;i<s;i++)o=n[i],e.call(null,t[o],o,t)}}function fg(t,e){e=e.toLowerCase();const r=Object.keys(t);let i=r.length,a;for(;i-- >0;)if(a=r[i],e===a.toLowerCase())return a;return null}const pg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),hg=t=>!Rn(t)&&t!==pg;function nd(){const{caseless:t}=hg(this)&&this||{},e={},r=(i,a)=>{const n=t&&fg(e,a)||a;ul(e[n])&&ul(i)?e[n]=nd(e[n],i):ul(i)?e[n]=nd({},i):Pa(i)?e[n]=i.slice():e[n]=i};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&qn(arguments[i],r);return e}const cF=(t,e,r,{allOwnKeys:i}={})=>(qn(e,(a,n)=>{r&&Yt(a)?t[n]=ug(a,r):t[n]=a},{allOwnKeys:i}),t),dF=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),fF=(t,e,r,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},pF=(t,e,r,i)=>{let a,n,s;const o={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),n=a.length;n-- >0;)s=a[n],(!i||i(s,t,e))&&!o[s]&&(e[s]=t[s],o[s]=!0);t=r!==!1&&ad(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},hF=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const i=t.indexOf(e,r);return i!==-1&&i===r},mF=t=>{if(!t)return null;if(Pa(t))return t;let e=t.length;if(!dg(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},vF=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ad(Uint8Array)),gF=(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=i.next())&&!a.done;){const n=a.value;e.call(t,n[0],n[1])}},bF=(t,e)=>{let r;const i=[];for(;(r=t.exec(e))!==null;)i.push(r);return i},yF=Tr("HTMLFormElement"),xF=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,a){return i.toUpperCase()+a}),mg=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),PF=Tr("RegExp"),vg=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),i={};qn(r,(a,n)=>{let s;(s=e(a,n,t))!==!1&&(i[n]=s||a)}),Object.defineProperties(t,i)},wF=t=>{vg(t,(e,r)=>{if(Yt(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=t[r];if(Yt(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},SF=(t,e)=>{const r={},i=a=>{a.forEach(n=>{r[n]=!0})};return Pa(t)?i(t):i(String(t).split(e)),r},kF=()=>{},CF=(t,e)=>(t=+t,Number.isFinite(t)?t:e),sd="abcdefghijklmnopqrstuvwxyz",gg="0123456789",bg={DIGIT:gg,ALPHA:sd,ALPHA_DIGIT:sd+sd.toUpperCase()+gg},TF=(t=16,e=bg.ALPHA_DIGIT)=>{let r="";const{length:i}=e;for(;t--;)r+=e[Math.random()*i|0];return r};function OF(t){return!!(t&&Yt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const DF=t=>{const e=new Array(10),r=(i,a)=>{if(ll(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[a]=i;const n=Pa(i)?[]:{};return qn(i,(s,o)=>{const u=r(s,a+1);!Rn(u)&&(n[o]=u)}),e[a]=void 0,n}}return i};return r(t,0)},AF=Tr("AsyncFunction"),$={isArray:Pa,isArrayBuffer:cg,isBuffer:_5,isFormData:oF,isArrayBufferView:$5,isString:eF,isNumber:dg,isBoolean:tF,isObject:ll,isPlainObject:ul,isUndefined:Rn,isDate:rF,isFile:iF,isBlob:aF,isRegExp:PF,isFunction:Yt,isStream:sF,isURLSearchParams:lF,isTypedArray:vF,isFileList:nF,forEach:qn,merge:nd,extend:cF,trim:uF,stripBOM:dF,inherits:fF,toFlatObject:pF,kindOf:sl,kindOfTest:Tr,endsWith:hF,toArray:mF,forEachEntry:gF,matchAll:bF,isHTMLForm:yF,hasOwnProperty:mg,hasOwnProp:mg,reduceDescriptors:vg,freezeMethods:wF,toObjectSet:SF,toCamelCase:xF,noop:kF,toFiniteNumber:CF,findKey:fg,global:pg,isContextDefined:hg,ALPHABET:bg,generateString:TF,isSpecCompliantForm:OF,toJSONObject:DF,isAsyncFn:AF,isThenable:t=>t&&(ll(t)||Yt(t))&&Yt(t.then)&&Yt(t.catch)};function De(t,e,r,i,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),i&&(this.request=i),a&&(this.response=a)}$.inherits(De,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const yg=De.prototype,xg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{xg[t]={value:t}}),Object.defineProperties(De,xg),Object.defineProperty(yg,"isAxiosError",{value:!0}),De.from=(t,e,r,i,a,n)=>{const s=Object.create(yg);return $.toFlatObject(t,s,function(u){return u!==Error.prototype},o=>o!=="isAxiosError"),De.call(s,t.message,e,r,i,a),s.cause=t,s.name=t.name,n&&Object.assign(s,n),s};const zF=null;function od(t){return $.isPlainObject(t)||$.isArray(t)}function Pg(t){return $.endsWith(t,"[]")?t.slice(0,-2):t}function wg(t,e,r){return t?t.concat(e).map(function(a,n){return a=Pg(a),!r&&n?"["+a+"]":a}).join(r?".":""):e}function EF(t){return $.isArray(t)&&!t.some(od)}const MF=$.toFlatObject($,{},null,function(e){return/^is[A-Z]/.test(e)});function cl(t,e,r){if(!$.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!$.isUndefined(y[h])});const i=r.metaTokens,a=r.visitor||c,n=r.dots,s=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(e);if(!$.isFunction(a))throw new TypeError("visitor must be a function");function l(S){if(S===null)return"";if($.isDate(S))return S.toISOString();if(!u&&$.isBlob(S))throw new De("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(S)||$.isTypedArray(S)?u&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function c(S,h,y){let x=S;if(S&&!y&&typeof S=="object"){if($.endsWith(h,"{}"))h=i?h:h.slice(0,-2),S=JSON.stringify(S);else if($.isArray(S)&&EF(S)||($.isFileList(S)||$.endsWith(h,"[]"))&&(x=$.toArray(S)))return h=Pg(h),x.forEach(function(b,p){!($.isUndefined(b)||b===null)&&e.append(s===!0?wg([h],p,n):s===null?h:h+"[]",l(b))}),!1}return od(S)?!0:(e.append(wg(y,h,n),l(S)),!1)}const d=[],f=Object.assign(MF,{defaultVisitor:c,convertValue:l,isVisitable:od});function g(S,h){if(!$.isUndefined(S)){if(d.indexOf(S)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(S),$.forEach(S,function(x,P){(!($.isUndefined(x)||x===null)&&a.call(e,x,$.isString(P)?P.trim():P,h,f))===!0&&g(x,h?h.concat(P):[P])}),d.pop()}}if(!$.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Sg(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function ld(t,e){this._pairs=[],t&&cl(t,this,e)}const kg=ld.prototype;kg.append=function(e,r){this._pairs.push([e,r])},kg.toString=function(e){const r=e?function(i){return e.call(this,i,Sg)}:Sg;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function jF(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ud(t,e,r){if(!e)return t;const i=r&&r.encode||jF,a=r&&r.serialize;let n;if(a?n=a(e,r):n=$.isURLSearchParams(e)?e.toString():new ld(e,r).toString(i),n){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+n}return t}class LF{constructor(){this.handlers=[]}use(e,r,i){return this.handlers.push({fulfilled:e,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$.forEach(this.handlers,function(i){i!==null&&e(i)})}}const Cg=LF,Tg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},IF={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ld,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Og=typeof window<"u"&&typeof document<"u",NF=(t=>Og&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),FF=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Or={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Og,hasStandardBrowserEnv:NF,hasStandardBrowserWebWorkerEnv:FF},Symbol.toStringTag,{value:"Module"})),...IF};function BF(t,e){return cl(t,new Or.classes.URLSearchParams,Object.assign({visitor:function(r,i,a,n){return Or.isNode&&$.isBuffer(r)?(this.append(i,r.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}function HF(t){return $.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function RF(t){const e={},r=Object.keys(t);let i;const a=r.length;let n;for(i=0;i<a;i++)n=r[i],e[n]=t[n];return e}function Dg(t){function e(r,i,a,n){let s=r[n++];if(s==="__proto__")return!0;const o=Number.isFinite(+s),u=n>=r.length;return s=!s&&$.isArray(a)?a.length:s,u?($.hasOwnProp(a,s)?a[s]=[a[s],i]:a[s]=i,!o):((!a[s]||!$.isObject(a[s]))&&(a[s]=[]),e(r,i,a[s],n)&&$.isArray(a[s])&&(a[s]=RF(a[s])),!o)}if($.isFormData(t)&&$.isFunction(t.entries)){const r={};return $.forEachEntry(t,(i,a)=>{e(HF(i),a,r,0)}),r}return null}function qF(t,e,r){if($.isString(t))try{return(e||JSON.parse)(t),$.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(t)}const cd={transitional:Tg,adapter:["xhr","http"],transformRequest:[function(e,r){const i=r.getContentType()||"",a=i.indexOf("application/json")>-1,n=$.isObject(e);if(n&&$.isHTMLForm(e)&&(e=new FormData(e)),$.isFormData(e))return a?JSON.stringify(Dg(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(n){if(i.indexOf("application/x-www-form-urlencoded")>-1)return BF(e,this.formSerializer).toString();if((o=$.isFileList(e))||i.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return cl(o?{"files[]":e}:e,u&&new u,this.formSerializer)}}return n||a?(r.setContentType("application/json",!1),qF(e)):e}],transformResponse:[function(e){const r=this.transitional||cd.transitional,i=r&&r.forcedJSONParsing,a=this.responseType==="json";if(e&&$.isString(e)&&(i&&!this.responseType||a)){const s=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?De.from(o,De.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Or.classes.FormData,Blob:Or.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],t=>{cd.headers[t]={}});const dd=cd,XF=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),WF=t=>{const e={};let r,i,a;return t&&t.split(`
262
262
  `).forEach(function(s){a=s.indexOf(":"),r=s.substring(0,a).trim().toLowerCase(),i=s.substring(a+1).trim(),!(!r||e[r]&&XF[r])&&(r==="set-cookie"?e[r]?e[r].push(i):e[r]=[i]:e[r]=e[r]?e[r]+", "+i:i)}),e},Ag=Symbol("internals");function Xn(t){return t&&String(t).trim().toLowerCase()}function dl(t){return t===!1||t==null?t:$.isArray(t)?t.map(dl):String(t)}function VF(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(t);)e[i[1]]=i[2];return e}const JF=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function fd(t,e,r,i,a){if($.isFunction(i))return i.call(this,e,r);if(a&&(e=r),!!$.isString(e)){if($.isString(i))return e.indexOf(i)!==-1;if($.isRegExp(i))return i.test(e)}}function GF(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,i)=>r.toUpperCase()+i)}function UF(t,e){const r=$.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+r,{value:function(a,n,s){return this[i].call(this,e,a,n,s)},configurable:!0})})}class fl{constructor(e){e&&this.set(e)}set(e,r,i){const a=this;function n(o,u,l){const c=Xn(u);if(!c)throw new Error("header name must be a non-empty string");const d=$.findKey(a,c);(!d||a[d]===void 0||l===!0||l===void 0&&a[d]!==!1)&&(a[d||u]=dl(o))}const s=(o,u)=>$.forEach(o,(l,c)=>n(l,c,u));return $.isPlainObject(e)||e instanceof this.constructor?s(e,r):$.isString(e)&&(e=e.trim())&&!JF(e)?s(WF(e),r):e!=null&&n(r,e,i),this}get(e,r){if(e=Xn(e),e){const i=$.findKey(this,e);if(i){const a=this[i];if(!r)return a;if(r===!0)return VF(a);if($.isFunction(r))return r.call(this,a,i);if($.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Xn(e),e){const i=$.findKey(this,e);return!!(i&&this[i]!==void 0&&(!r||fd(this,this[i],i,r)))}return!1}delete(e,r){const i=this;let a=!1;function n(s){if(s=Xn(s),s){const o=$.findKey(i,s);o&&(!r||fd(i,i[o],o,r))&&(delete i[o],a=!0)}}return $.isArray(e)?e.forEach(n):n(e),a}clear(e){const r=Object.keys(this);let i=r.length,a=!1;for(;i--;){const n=r[i];(!e||fd(this,this[n],n,e,!0))&&(delete this[n],a=!0)}return a}normalize(e){const r=this,i={};return $.forEach(this,(a,n)=>{const s=$.findKey(i,n);if(s){r[s]=dl(a),delete r[n];return}const o=e?GF(n):String(n).trim();o!==n&&delete r[n],r[o]=dl(a),i[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return $.forEach(this,(i,a)=>{i!=null&&i!==!1&&(r[a]=e&&$.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
263
263
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const i=new this(e);return r.forEach(a=>i.set(a)),i}static accessor(e){const i=(this[Ag]=this[Ag]={accessors:{}}).accessors,a=this.prototype;function n(s){const o=Xn(s);i[o]||(UF(a,s),i[o]=!0)}return $.isArray(e)?e.forEach(n):n(e),this}}fl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.reduceDescriptors(fl.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[r]=i}}}),$.freezeMethods(fl);const Wr=fl;function pd(t,e){const r=this||dd,i=e||r,a=Wr.from(i.headers);let n=i.data;return $.forEach(t,function(o){n=o.call(r,n,a.normalize(),e?e.status:void 0)}),a.normalize(),n}function zg(t){return!!(t&&t.__CANCEL__)}function Wn(t,e,r){De.call(this,t??"canceled",De.ERR_CANCELED,e,r),this.name="CanceledError"}$.inherits(Wn,De,{__CANCEL__:!0});function QF(t,e,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):e(new De("Request failed with status code "+r.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const YF=Or.hasStandardBrowserEnv?{write(t,e,r,i,a,n){const s=[t+"="+encodeURIComponent(e)];$.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),$.isString(i)&&s.push("path="+i),$.isString(a)&&s.push("domain="+a),n===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ZF(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function KF(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Eg(t,e){return t&&!ZF(e)?KF(t,e):e}const _F=Or.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let i;function a(n){let s=n;return e&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=a(window.location.href),function(s){const o=$.isString(s)?a(s):s;return o.protocol===i.protocol&&o.host===i.host}}():function(){return function(){return!0}}();function $F(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function eB(t,e){t=t||10;const r=new Array(t),i=new Array(t);let a=0,n=0,s;return e=e!==void 0?e:1e3,function(u){const l=Date.now(),c=i[n];s||(s=l),r[a]=u,i[a]=l;let d=n,f=0;for(;d!==a;)f+=r[d++],d=d%t;if(a=(a+1)%t,a===n&&(n=(n+1)%t),l-s<e)return;const g=c&&l-c;return g?Math.round(f*1e3/g):void 0}}function Mg(t,e){let r=0;const i=eB(50,250);return a=>{const n=a.loaded,s=a.lengthComputable?a.total:void 0,o=n-r,u=i(o),l=n<=s;r=n;const c={loaded:n,total:s,progress:s?n/s:void 0,bytes:o,rate:u||void 0,estimated:u&&s&&l?(s-n)/u:void 0,event:a};c[e?"download":"upload"]=!0,t(c)}}const hd={http:zF,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(r,i){let a=t.data;const n=Wr.from(t.headers).normalize();let{responseType:s,withXSRFToken:o}=t,u;function l(){t.cancelToken&&t.cancelToken.unsubscribe(u),t.signal&&t.signal.removeEventListener("abort",u)}let c;if($.isFormData(a)){if(Or.hasStandardBrowserEnv||Or.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if((c=n.getContentType())!==!1){const[h,...y]=c?c.split(";").map(x=>x.trim()).filter(Boolean):[];n.setContentType([h||"multipart/form-data",...y].join("; "))}}let d=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";n.set("Authorization","Basic "+btoa(h+":"+y))}const f=Eg(t.baseURL,t.url);d.open(t.method.toUpperCase(),ud(f,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function g(){if(!d)return;const h=Wr.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:t,request:d};QF(function(b){r(b),l()},function(b){i(b),l()},x),d=null}if("onloadend"in d?d.onloadend=g:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(g)},d.onabort=function(){d&&(i(new De("Request aborted",De.ECONNABORTED,t,d)),d=null)},d.onerror=function(){i(new De("Network Error",De.ERR_NETWORK,t,d)),d=null},d.ontimeout=function(){let y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const x=t.transitional||Tg;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),i(new De(y,x.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,t,d)),d=null},Or.hasStandardBrowserEnv&&(o&&$.isFunction(o)&&(o=o(t)),o||o!==!1&&_F(f))){const h=t.xsrfHeaderName&&t.xsrfCookieName&&YF.read(t.xsrfCookieName);h&&n.set(t.xsrfHeaderName,h)}a===void 0&&n.setContentType(null),"setRequestHeader"in d&&$.forEach(n.toJSON(),function(y,x){d.setRequestHeader(x,y)}),$.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),s&&s!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",Mg(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Mg(t.onUploadProgress)),(t.cancelToken||t.signal)&&(u=h=>{d&&(i(!h||h.type?new Wn(null,t,d):h),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(u),t.signal&&(t.signal.aborted?u():t.signal.addEventListener("abort",u)));const S=$F(f);if(S&&Or.protocols.indexOf(S)===-1){i(new De("Unsupported protocol "+S+":",De.ERR_BAD_REQUEST,t));return}d.send(a||null)})}};$.forEach(hd,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const jg=t=>`- ${t}`,tB=t=>$.isFunction(t)||t===null||t===!1,Lg={getAdapter:t=>{t=$.isArray(t)?t:[t];const{length:e}=t;let r,i;const a={};for(let n=0;n<e;n++){r=t[n];let s;if(i=r,!tB(r)&&(i=hd[(s=String(r)).toLowerCase()],i===void 0))throw new De(`Unknown adapter '${s}'`);if(i)break;a[s||"#"+n]=i}if(!i){const n=Object.entries(a).map(([o,u])=>`adapter ${o} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=e?n.length>1?`since :