UNPKG

jv3-login-jwt

Version:

easy login from assign by route by cdnagroup using vuetify

7 lines 132 kB
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css?family=Montserrat:400,800";.modal-mask[data-v-c8390a47]{position:fixed;z-index:9998;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:table;transition:opacity .3s ease}.modal-wrapper[data-v-c8390a47]{display:table-cell;vertical-align:middle}.modal-container[data-v-c8390a47]{width:300px;margin:0 auto;padding:20px 30px;background-color:#fff;border-radius:2px;box-shadow:0 2px 8px #00000054;transition:all .3s ease;font-family:Helvetica,Arial,sans-serif}.modal-header h3[data-v-c8390a47]{margin-top:0;color:#42b983}.modal-footer[data-v-c8390a47]{overflow:hidden}.modal-body[data-v-c8390a47]{margin:20px 0}.modal-default-button[data-v-c8390a47]{float:right}.modal-enter[data-v-c8390a47],.modal-leave[data-v-c8390a47]{opacity:0}.modal-enter .modal-container[data-v-c8390a47],.modal-leave .modal-container[data-v-c8390a47]{-webkit-transform:scale(1.1);transform:scale(1.1)}.jv3-login[data-v-18da528b]{color:#000}.jv3-login .jv3-login-fulid[data-v-18da528b]{background:#f6f5f7;display:flex;justify-content:center;align-items:center;flex-direction:column;font-family:Montserrat,sans-serif;height:100vh;margin:-20px 0}.jv3-login footer.jv3-login-footer[data-v-18da528b]{background-color:#222;color:#fff;font-size:14px;bottom:0;position:fixed;left:0;right:0;text-align:center;z-index:999}.jv3-login footer.jv3-login-footer p[data-v-18da528b]{margin:10px 0}.jv3-login footer.jv3-login-footer i[data-v-18da528b]{color:red}.jv3-login footer.jv3-login-footer a[data-v-18da528b]{color:#3c97bf;text-decoration:none}.jv3-login .container[data-v-18da528b]{background-color:#fff;border-radius:10px;box-shadow:0 14px 28px #00000040,0 10px 10px #00000038;position:relative;overflow:hidden;width:768px;max-width:100%;min-height:340px}.jv3-login .form-container[data-v-18da528b]{position:absolute;top:0;height:100%;transition:all .6s ease-in-out}.jv3-login .sign-in-container[data-v-18da528b]{left:0;width:50%;z-index:2}.jv3-login form[data-v-18da528b]{background-color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:0 50px;height:100%;text-align:center}.jv3-login input[data-v-18da528b]{color:#000;background-color:#eee;border:none;padding:12px 15px;margin:8px 0;width:100%}.jv3-login button[data-v-18da528b]{border-radius:20px;border:1px solid #ff4b2b;background-color:#ff4b2b;color:#fff;font-size:12px;font-weight:700;padding:12px 45px;letter-spacing:1px;text-transform:uppercase;transition:transform 80ms ease-in}.jv3-login button[data-v-18da528b]:active{transform:scale(.95)}.jv3-login button[data-v-18da528b]:focus{outline:none}.jv3-login .form-group label[data-v-18da528b]{float:left}.jv3-login h1[data-v-18da528b]{font-weight:700;margin:0}.jv3-login h2[data-v-18da528b]{text-align:center}.jv3-login p[data-v-18da528b]{font-size:14px;font-weight:100;line-height:20px;letter-spacing:.5px;margin:20px 0 30px}.jv3-login span[data-v-18da528b]{font-size:12px}.jv3-login a[data-v-18da528b]{color:#333;font-size:14px;text-decoration:none;margin:15px 0}@keyframes show-18da528b{0%,49.99%{opacity:0;z-index:1}50%,to{opacity:1;z-index:5}}.jv3-login .overlay-container[data-v-18da528b]{position:absolute;top:0;left:50%;width:50%;height:100%;overflow:hidden;transition:transform .6s ease-in-out;z-index:100}.jv3-login .container.right-panel-active .overlay-container[data-v-18da528b]{transform:translate(-100%)}.jv3-login .overlay[data-v-18da528b]{background:#ff416c;background:-webkit-linear-gradient(to right,#ff4b2b,#ff416c);background:linear-gradient(to right,#ff4b2b,#ff416c);background-repeat:no-repeat;background-size:cover;background-position:0 0;color:#fff;position:relative;left:-100%;height:100%;width:200%;transform:translate(0);transition:transform .6s ease-in-out}.jv3-login .container.right-panel-active .overlay[data-v-18da528b]{transform:translate(50%)}.jv3-login .overlay-panel[data-v-18da528b]{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:0 40px;text-align:center;top:0;height:100%;width:50%;transform:translate(0);transition:transform .6s ease-in-out}.jv3-login .overlay-panel h1[data-v-18da528b]{font-weight:700;margin:0;background-color:#ff416c}.jv3-login .overlay-left[data-v-18da528b]{transform:translate(-20%)}.jv3-login .container.right-panel-active .overlay-left[data-v-18da528b]{transform:translate(0)}.jv3-login .overlay-right[data-v-18da528b]{right:0;transform:translate(0)}.jv3-login .container.right-panel-active .overlay-right[data-v-18da528b]{transform:translate(20%)}.jv3-login .social-container[data-v-18da528b]{margin:20px 0}.jv3-login .social-container a[data-v-18da528b]{border:1px solid #dddddd;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;margin:0 5px;height:40px;width:40px}@media only screen and (max-width: 800px){.jv3-login .overlay-container[data-v-18da528b]{display:none}.jv3-login .sign-in-container[data-v-18da528b]{width:100%}}.jv3-login .container.right-panel-active .sign-in-container[data-v-18da528b]{transform:translate(100%)}.jv3-login .sign-up-container[data-v-18da528b]{left:0;width:50%;opacity:0;z-index:1}.jv3-login .container.right-panel-active .sign-up-container[data-v-18da528b]{transform:translate(100%);opacity:1;z-index:5;animation:show-18da528b .6s}.jv3-login .error-feedback[data-v-18da528b]{color:red;font-size:large}.jv3-login .loading[data-v-18da528b]{position:fixed;z-index:999;height:2em;width:2em;overflow:show;margin:auto;top:0;left:0;bottom:0;right:0}.jv3-login .loading[data-v-18da528b]:before{content:"";display:block;position:fixed;top:0;left:0;width:100%;height:100%;background:radial-gradient(#141414cc,#000c);background:-webkit-radial-gradient(rgba(20,20,20,.8),rgba(0,0,0,.8))}.jv3-login .loading[data-v-18da528b]:not(:required){font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.jv3-login .loading[data-v-18da528b]:not(:required):after{content:"";display:block;font-size:10px;width:1em;height:1em;margin-top:-.5em;-webkit-animation:spinner-18da528b .15s infinite linear;-moz-animation:spinner-18da528b .15s infinite linear;-ms-animation:spinner-18da528b .15s infinite linear;-o-animation:spinner-18da528b .15s infinite linear;animation:spinner-18da528b .15s infinite linear;border-radius:.5em;-webkit-box-shadow:rgba(255,255,255,.75) 1.5em 0 0 0,rgba(255,255,255,.75) 1.1em 1.1em 0 0,rgba(255,255,255,.75) 0 1.5em 0 0,rgba(255,255,255,.75) -1.1em 1.1em 0 0,rgba(255,255,255,.75) -1.5em 0 0 0,rgba(255,255,255,.75) -1.1em -1.1em 0 0,rgba(255,255,255,.75) 0 -1.5em 0 0,rgba(255,255,255,.75) 1.1em -1.1em 0 0;box-shadow:#ffffffbf 1.5em 0,#ffffffbf 1.1em 1.1em,#ffffffbf 0 1.5em,#ffffffbf -1.1em 1.1em,#ffffffbf -1.5em 0,#ffffffbf -1.1em -1.1em,#ffffffbf 0 -1.5em,#ffffffbf 1.1em -1.1em}@-webkit-keyframes spinner-18da528b{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes spinner-18da528b{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes spinner-18da528b{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-18da528b{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}.jv3-login .modal-mask[data-v-18da528b]{position:fixed;z-index:9998;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:table;transition:opacity .3s ease}.jv3-login .modal-wrapper[data-v-18da528b]{display:table-cell;vertical-align:middle}.jv3-login .modal-container[data-v-18da528b]{width:300px;margin:0 auto;padding:20px 30px;background-color:#fff;border-radius:2px;box-shadow:0 2px 8px #00000054;transition:all .3s ease;font-family:Helvetica,Arial,sans-serif}.jv3-login .modal-header h3[data-v-18da528b]{margin-top:0;color:#42b983}.jv3-login .modal-footer[data-v-18da528b]{overflow:hidden}.jv3-login .modal-body[data-v-18da528b]{margin:20px 0}.jv3-login .modal-default-button[data-v-18da528b]{float:right}')),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); (function(re,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue/dist/vue.esm-bundler.js")):typeof define=="function"&&define.amd?define(["exports","vue/dist/vue.esm-bundler.js"],l):(re=typeof globalThis<"u"?globalThis:re||self,l(re.JV3LoginJwt={},re.vue_esmBundler_js))})(this,function(re,l){"use strict";var sl=Object.defineProperty;var ll=(re,l,Ne)=>l in re?sl(re,l,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):re[l]=Ne;var I=(re,l,Ne)=>ll(re,typeof l!="symbol"?l+"":l,Ne);function Ne(e,t){return function(){return e.apply(t,arguments)}}const{toString:ci}=Object.prototype,{getPrototypeOf:Nt}=Object,lt=(e=>t=>{const n=ci.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ge=e=>(e=e.toLowerCase(),t=>lt(t)===e),ut=e=>t=>typeof t===e,{isArray:He}=Array,Ye=ut("undefined");function fi(e){return e!==null&&!Ye(e)&&e.constructor!==null&&!Ye(e.constructor)&&he(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fn=ge("ArrayBuffer");function di(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fn(e.buffer),t}const hi=ut("string"),he=ut("function"),kn=ut("number"),ct=e=>e!==null&&typeof e=="object",pi=e=>e===!0||e===!1,ft=e=>{if(lt(e)!=="object")return!1;const t=Nt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mi=ge("Date"),gi=ge("File"),yi=ge("Blob"),bi=ge("FileList"),vi=e=>ct(e)&&he(e.pipe),wi=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||he(e.append)&&((t=lt(e))==="formdata"||t==="object"&&he(e.toString)&&e.toString()==="[object FormData]"))},Si=ge("URLSearchParams"),[Ei,Oi,xi,Ti]=["ReadableStream","Request","Response","Headers"].map(ge),Vi=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _e(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),He(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function Rn(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Pe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Cn=e=>!Ye(e)&&e!==Pe;function Pt(){const{caseless:e}=Cn(this)&&this||{},t={},n=(r,i)=>{const o=e&&Rn(t,i)||i;ft(t[o])&&ft(r)?t[o]=Pt(t[o],r):ft(r)?t[o]=Pt({},r):He(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&_e(arguments[r],n);return t}const Ai=(e,t,n,{allOwnKeys:r}={})=>(_e(t,(i,o)=>{n&&he(i)?e[o]=Ne(i,n):e[o]=i},{allOwnKeys:r}),e),Fi=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ki=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ri=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Nt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ci=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ni=e=>{if(!e)return null;if(He(e))return e;let t=e.length;if(!kn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Pi=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nt(Uint8Array)),Di=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Ii=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$i=ge("HTMLFormElement"),Ui=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Nn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Li=ge("RegExp"),Pn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_e(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},Mi=e=>{Pn(e,(t,n)=>{if(he(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(he(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},zi=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return He(e)?r(e):r(String(e).split(t)),n},qi=()=>{},Hi=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Dt="abcdefghijklmnopqrstuvwxyz",Dn="0123456789",In={DIGIT:Dn,ALPHA:Dt,ALPHA_DIGIT:Dt+Dt.toUpperCase()+Dn},Ji=(e=16,t=In.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Wi(e){return!!(e&&he(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ki=e=>{const t=new Array(10),n=(r,i)=>{if(ct(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=He(r)?[]:{};return _e(r,(a,s)=>{const u=n(a,i+1);!Ye(u)&&(o[s]=u)}),t[i]=void 0,o}}return r};return n(e,0)},Gi=ge("AsyncFunction"),Zi=e=>e&&(ct(e)||he(e))&&he(e.then)&&he(e.catch),$n=((e,t)=>e?setImmediate:t?((n,r)=>(Pe.addEventListener("message",({source:i,data:o})=>{i===Pe&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Pe.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",he(Pe.postMessage)),Xi=typeof queueMicrotask<"u"?queueMicrotask.bind(Pe):typeof process<"u"&&process.nextTick||$n,m={isArray:He,isArrayBuffer:Fn,isBuffer:fi,isFormData:wi,isArrayBufferView:di,isString:hi,isNumber:kn,isBoolean:pi,isObject:ct,isPlainObject:ft,isReadableStream:Ei,isRequest:Oi,isResponse:xi,isHeaders:Ti,isUndefined:Ye,isDate:mi,isFile:gi,isBlob:yi,isRegExp:Li,isFunction:he,isStream:vi,isURLSearchParams:Si,isTypedArray:Pi,isFileList:bi,forEach:_e,merge:Pt,extend:Ai,trim:Vi,stripBOM:Fi,inherits:ki,toFlatObject:Ri,kindOf:lt,kindOfTest:ge,endsWith:Ci,toArray:Ni,forEachEntry:Di,matchAll:Ii,isHTMLForm:$i,hasOwnProperty:Nn,hasOwnProp:Nn,reduceDescriptors:Pn,freezeMethods:Mi,toObjectSet:zi,toCamelCase:Ui,noop:qi,toFiniteNumber:Hi,findKey:Rn,global:Pe,isContextDefined:Cn,ALPHABET:In,generateString:Ji,isSpecCompliantForm:Wi,toJSONObject:Ki,isAsyncFn:Gi,isThenable:Zi,setImmediate:$n,asap:Xi};function A(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}m.inherits(A,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:m.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Un=A.prototype,Ln={};["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(e=>{Ln[e]={value:e}}),Object.defineProperties(A,Ln),Object.defineProperty(Un,"isAxiosError",{value:!0}),A.from=(e,t,n,r,i,o)=>{const a=Object.create(Un);return m.toFlatObject(e,a,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),A.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const ji=null;function It(e){return m.isPlainObject(e)||m.isArray(e)}function Mn(e){return m.endsWith(e,"[]")?e.slice(0,-2):e}function zn(e,t,n){return e?e.concat(t).map(function(i,o){return i=Mn(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Qi(e){return m.isArray(e)&&!e.some(It)}const Yi=m.toFlatObject(m,{},null,function(t){return/^is[A-Z]/.test(t)});function dt(e,t,n){if(!m.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=m.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,g){return!m.isUndefined(g[O])});const r=n.metaTokens,i=n.visitor||h,o=n.dots,a=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&m.isSpecCompliantForm(t);if(!m.isFunction(i))throw new TypeError("visitor must be a function");function c(b){if(b===null)return"";if(m.isDate(b))return b.toISOString();if(!u&&m.isBlob(b))throw new A("Blob is not supported. Use a Buffer instead.");return m.isArrayBuffer(b)||m.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,O,g){let C=b;if(b&&!g&&typeof b=="object"){if(m.endsWith(O,"{}"))O=r?O:O.slice(0,-2),b=JSON.stringify(b);else if(m.isArray(b)&&Qi(b)||(m.isFileList(b)||m.endsWith(O,"[]"))&&(C=m.toArray(b)))return O=Mn(O),C.forEach(function(V,L){!(m.isUndefined(V)||V===null)&&t.append(a===!0?zn([O],L,o):a===null?O:O+"[]",c(V))}),!1}return It(b)?!0:(t.append(zn(g,O,o),c(b)),!1)}const p=[],w=Object.assign(Yi,{defaultVisitor:h,convertValue:c,isVisitable:It});function v(b,O){if(!m.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+O.join("."));p.push(b),m.forEach(b,function(C,k){(!(m.isUndefined(C)||C===null)&&i.call(t,C,m.isString(k)?k.trim():k,O,w))===!0&&v(C,O?O.concat(k):[k])}),p.pop()}}if(!m.isObject(e))throw new TypeError("data must be an object");return v(e),t}function qn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function $t(e,t){this._pairs=[],e&&dt(e,this,t)}const Hn=$t.prototype;Hn.append=function(t,n){this._pairs.push([t,n])},Hn.toString=function(t){const n=t?function(r){return t.call(this,r,qn)}:qn;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function _i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jn(e,t,n){if(!t)return e;const r=n&&n.encode||_i,i=n&&n.serialize;let o;if(i?o=i(t,n):o=m.isURLSearchParams(t)?t.toString():new $t(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Wn{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){m.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Kn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bi={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:$t,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ut=typeof window<"u"&&typeof document<"u",eo=(e=>Ut&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),to=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",no=Ut&&window.location.href||"http://localhost",ye={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ut,hasStandardBrowserEnv:eo,hasStandardBrowserWebWorkerEnv:to,origin:no},Symbol.toStringTag,{value:"Module"})),...Bi};function ro(e,t){return dt(e,new ye.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return ye.isNode&&m.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function io(e){return m.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oo(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function Gn(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),u=o>=n.length;return a=!a&&m.isArray(i)?i.length:a,u?(m.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!m.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&m.isArray(i[a])&&(i[a]=oo(i[a])),!s)}if(m.isFormData(e)&&m.isFunction(e.entries)){const n={};return m.forEachEntry(e,(r,i)=>{t(io(r),i,n,0)}),n}return null}function ao(e,t,n){if(m.isString(e))try{return(t||JSON.parse)(e),m.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Be={transitional:Kn,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=m.isObject(t);if(o&&m.isHTMLForm(t)&&(t=new FormData(t)),m.isFormData(t))return i?JSON.stringify(Gn(t)):t;if(m.isArrayBuffer(t)||m.isBuffer(t)||m.isStream(t)||m.isFile(t)||m.isBlob(t)||m.isReadableStream(t))return t;if(m.isArrayBufferView(t))return t.buffer;if(m.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ro(t,this.formSerializer).toString();if((s=m.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return dt(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),ao(t)):t}],transformResponse:[function(t){const n=this.transitional||Be.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(m.isResponse(t)||m.isReadableStream(t))return t;if(t&&m.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?A.from(s,A.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ye.classes.FormData,Blob:ye.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};m.forEach(["delete","get","head","post","put","patch"],e=>{Be.headers[e]={}});const so=m.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"]),lo=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&so[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Zn=Symbol("internals");function et(e){return e&&String(e).trim().toLowerCase()}function ht(e){return e===!1||e==null?e:m.isArray(e)?e.map(ht):String(e)}function uo(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const co=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Lt(e,t,n,r,i){if(m.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!m.isString(t)){if(m.isString(r))return t.indexOf(r)!==-1;if(m.isRegExp(r))return r.test(t)}}function fo(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ho(e,t){const n=m.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class ae{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,u,c){const h=et(u);if(!h)throw new Error("header name must be a non-empty string");const p=m.findKey(i,h);(!p||i[p]===void 0||c===!0||c===void 0&&i[p]!==!1)&&(i[p||u]=ht(s))}const a=(s,u)=>m.forEach(s,(c,h)=>o(c,h,u));if(m.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(m.isString(t)&&(t=t.trim())&&!co(t))a(lo(t),n);else if(m.isHeaders(t))for(const[s,u]of t.entries())o(u,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=et(t),t){const r=m.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return uo(i);if(m.isFunction(n))return n.call(this,i,r);if(m.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=et(t),t){const r=m.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Lt(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=et(a),a){const s=m.findKey(r,a);s&&(!n||Lt(r,r[s],s,n))&&(delete r[s],i=!0)}}return m.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Lt(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return m.forEach(this,(i,o)=>{const a=m.findKey(r,o);if(a){n[a]=ht(i),delete n[o];return}const s=t?fo(o):String(o).trim();s!==o&&delete n[o],n[s]=ht(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return m.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&m.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Zn]=this[Zn]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=et(a);r[s]||(ho(i,a),r[s]=!0)}return m.isArray(t)?t.forEach(o):o(t),this}}ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),m.reduceDescriptors(ae.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),m.freezeMethods(ae);function Mt(e,t){const n=this||Be,r=t||n,i=ae.from(r.headers);let o=r.data;return m.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Xn(e){return!!(e&&e.__CANCEL__)}function Je(e,t,n){A.call(this,e??"canceled",A.ERR_CANCELED,t,n),this.name="CanceledError"}m.inherits(Je,A,{__CANCEL__:!0});function jn(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new A("Request failed with status code "+n.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function po(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mo(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),h=r[o];a||(a=c),n[i]=u,r[i]=c;let p=o,w=0;for(;p!==i;)w+=n[p++],p=p%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const v=h&&c-h;return v?Math.round(w*1e3/v):void 0}}function go(e,t){let n=0,r=1e3/t,i,o;const a=(c,h=Date.now())=>{n=h,i=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const h=Date.now(),p=h-n;p>=r?a(c,h):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-p)))},()=>i&&a(i)]}const pt=(e,t,n=3)=>{let r=0;const i=mo(50,250);return go(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,u=a-r,c=i(u),h=a<=s;r=a;const p={loaded:a,total:s,progress:s?a/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&h?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(p)},n)},Qn=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Yn=e=>(...t)=>m.asap(()=>e(...t)),yo=ye.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=m.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),bo=ye.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];m.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),m.isString(r)&&a.push("path="+r),m.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function vo(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wo(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _n(e,t){return e&&!vo(t)?wo(e,t):t}const Bn=e=>e instanceof ae?{...e}:e;function De(e,t){t=t||{};const n={};function r(c,h,p){return m.isPlainObject(c)&&m.isPlainObject(h)?m.merge.call({caseless:p},c,h):m.isPlainObject(h)?m.merge({},h):m.isArray(h)?h.slice():h}function i(c,h,p){if(m.isUndefined(h)){if(!m.isUndefined(c))return r(void 0,c,p)}else return r(c,h,p)}function o(c,h){if(!m.isUndefined(h))return r(void 0,h)}function a(c,h){if(m.isUndefined(h)){if(!m.isUndefined(c))return r(void 0,c)}else return r(void 0,h)}function s(c,h,p){if(p in t)return r(c,h);if(p in e)return r(void 0,c)}const u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,h)=>i(Bn(c),Bn(h),!0)};return m.forEach(Object.keys(Object.assign({},e,t)),function(h){const p=u[h]||i,w=p(e[h],t[h],h);m.isUndefined(w)&&p!==s||(n[h]=w)}),n}const er=e=>{const t=De({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=ae.from(a),t.url=Jn(_n(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let u;if(m.isFormData(n)){if(ye.hasStandardBrowserEnv||ye.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((u=a.getContentType())!==!1){const[c,...h]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...h].join("; "))}}if(ye.hasStandardBrowserEnv&&(r&&m.isFunction(r)&&(r=r(t)),r||r!==!1&&yo(t.url))){const c=i&&o&&bo.read(o);c&&a.set(i,c)}return t},So=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=er(e);let o=i.data;const a=ae.from(i.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:c}=i,h,p,w,v,b;function O(){v&&v(),b&&b(),i.cancelToken&&i.cancelToken.unsubscribe(h),i.signal&&i.signal.removeEventListener("abort",h)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function C(){if(!g)return;const V=ae.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),M={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:V,config:e,request:g};jn(function(N){n(N),O()},function(N){r(N),O()},M),g=null}"onloadend"in g?g.onloadend=C:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(C)},g.onabort=function(){g&&(r(new A("Request aborted",A.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new A("Network Error",A.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let L=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const M=i.transitional||Kn;i.timeoutErrorMessage&&(L=i.timeoutErrorMessage),r(new A(L,M.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,g)),g=null},o===void 0&&a.setContentType(null),"setRequestHeader"in g&&m.forEach(a.toJSON(),function(L,M){g.setRequestHeader(M,L)}),m.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),c&&([w,b]=pt(c,!0),g.addEventListener("progress",w)),u&&g.upload&&([p,v]=pt(u),g.upload.addEventListener("progress",p),g.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(h=V=>{g&&(r(!V||V.type?new Je(null,e,g):V),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(h),i.signal&&(i.signal.aborted?h():i.signal.addEventListener("abort",h)));const k=po(i.url);if(k&&ye.protocols.indexOf(k)===-1){r(new A("Unsupported protocol "+k+":",A.ERR_BAD_REQUEST,e));return}g.send(o||null)})},Eo=(e,t)=>{let n=new AbortController,r;const i=function(u){if(!r){r=!0,a();const c=u instanceof Error?u:this.reason;n.abort(c instanceof A?c:new Je(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{i(new A(`timeout ${t} of ms exceeded`,A.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",i):u.unsubscribe(i))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",i));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]},Oo=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},xo=async function*(e,t,n){for await(const r of e)yield*Oo(ArrayBuffer.isView(r)?r:await n(String(r)),t)},tr=(e,t,n,r,i)=>{const o=xo(e,t,i);let a=0,s,u=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:h,value:p}=await o.next();if(h){u(),c.close();return}let w=p.byteLength;if(n){let v=a+=w;n(v)}c.enqueue(new Uint8Array(p))}catch(h){throw u(h),h}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},mt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",nr=mt&&typeof ReadableStream=="function",zt=mt&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),rr=(e,...t)=>{try{return!!e(...t)}catch{return!1}},To=nr&&rr(()=>{let e=!1;const t=new Request(ye.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ir=64*1024,qt=nr&&rr(()=>m.isReadableStream(new Response("").body)),gt={stream:qt&&(e=>e.body)};mt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!gt[t]&&(gt[t]=m.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new A(`Response type '${t}' is not supported`,A.ERR_NOT_SUPPORT,r)})})})(new Response);const Vo=async e=>{if(e==null)return 0;if(m.isBlob(e))return e.size;if(m.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(m.isArrayBufferView(e)||m.isArrayBuffer(e))return e.byteLength;if(m.isURLSearchParams(e)&&(e=e+""),m.isString(e))return(await zt(e)).byteLength},Ao=async(e,t)=>{const n=m.toFiniteNumber(e.getContentLength());return n??Vo(t)},Ht={http:ji,xhr:So,fetch:mt&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:u,responseType:c,headers:h,withCredentials:p="same-origin",fetchOptions:w}=er(e);c=c?(c+"").toLowerCase():"text";let[v,b]=i||o||a?Eo([i,o],a):[],O,g;const C=()=>{!O&&setTimeout(()=>{v&&v.unsubscribe()}),O=!0};let k;try{if(u&&To&&n!=="get"&&n!=="head"&&(k=await Ao(h,r))!==0){let H=new Request(t,{method:"POST",body:r,duplex:"half"}),N;if(m.isFormData(r)&&(N=H.headers.get("content-type"))&&h.setContentType(N),H.body){const[Y,$]=Qn(k,pt(Yn(u)));r=tr(H.body,ir,Y,$,zt)}}m.isString(p)||(p=p?"include":"omit"),g=new Request(t,{...w,signal:v,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:p});let V=await fetch(g);const L=qt&&(c==="stream"||c==="response");if(qt&&(s||L)){const H={};["status","statusText","headers"].forEach(P=>{H[P]=V[P]});const N=m.toFiniteNumber(V.headers.get("content-length")),[Y,$]=s&&Qn(N,pt(Yn(s),!0))||[];V=new Response(tr(V.body,ir,Y,()=>{$&&$(),L&&C()},zt),H)}c=c||"text";let M=await gt[m.findKey(gt,c)||"text"](V,e);return!L&&C(),b&&b(),await new Promise((H,N)=>{jn(H,N,{data:M,headers:ae.from(V.headers),status:V.status,statusText:V.statusText,config:e,request:g})})}catch(V){throw C(),V&&V.name==="TypeError"&&/fetch/i.test(V.message)?Object.assign(new A("Network Error",A.ERR_NETWORK,e,g),{cause:V.cause||V}):A.from(V,V&&V.code,e,g)}})};m.forEach(Ht,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const or=e=>`- ${e}`,Fo=e=>m.isFunction(e)||e===null||e===!1,ar={getAdapter:e=>{e=m.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!Fo(n)&&(r=Ht[(a=String(n)).toLowerCase()],r===void 0))throw new A(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,u])=>`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : `+o.map(or).join(` `):" "+or(o[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Ht};function Jt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Je(null,e)}function sr(e){return Jt(e),e.headers=ae.from(e.headers),e.data=Mt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ar.getAdapter(e.adapter||Be.adapter)(e).then(function(r){return Jt(e),r.data=Mt.call(e,e.transformResponse,r),r.headers=ae.from(r.headers),r},function(r){return Xn(r)||(Jt(e),r&&r.response&&(r.response.data=Mt.call(e,e.transformResponse,r.response),r.response.headers=ae.from(r.response.headers))),Promise.reject(r)})}const lr="1.7.4",Wt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ur={};Wt.transitional=function(t,n,r){function i(o,a){return"[Axios v"+lr+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new A(i(a," has been removed"+(n?" in "+n:"")),A.ERR_DEPRECATED);return n&&!ur[a]&&(ur[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function ko(e,t,n){if(typeof e!="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new A("option "+o+" must be "+u,A.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new A("Unknown option "+o,A.ERR_BAD_OPTION)}}const Kt={assertOptions:ko,validators:Wt},ke=Kt.validators;class Ie{constructor(t){this.defaults=t,this.interceptors={request:new Wn,response:new Wn}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=De(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Kt.assertOptions(r,{silentJSONParsing:ke.transitional(ke.boolean),forcedJSONParsing:ke.transitional(ke.boolean),clarifyTimeoutError:ke.transitional(ke.boolean)},!1),i!=null&&(m.isFunction(i)?n.paramsSerializer={serialize:i}:Kt.assertOptions(i,{encode:ke.function,serialize:ke.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&m.merge(o.common,o[n.method]);o&&m.forEach(["delete","get","head","post","put","patch","common"],b=>{delete o[b]}),n.headers=ae.concat(a,o);const s=[];let u=!0;this.interceptors.request.forEach(function(O){typeof O.runWhen=="function"&&O.runWhen(n)===!1||(u=u&&O.synchronous,s.unshift(O.fulfilled,O.rejected))});const c=[];this.interceptors.response.forEach(function(O){c.push(O.fulfilled,O.rejected)});let h,p=0,w;if(!u){const b=[sr.bind(this),void 0];for(b.unshift.apply(b,s),b.push.apply(b,c),w=b.length,h=Promise.resolve(n);p<w;)h=h.then(b[p++],b[p++]);return h}w=s.length;let v=n;for(p=0;p<w;){const b=s[p++],O=s[p++];try{v=b(v)}catch(g){O.call(this,g);break}}try{h=sr.call(this,v)}catch(b){return Promise.reject(b)}for(p=0,w=c.length;p<w;)h=h.then(c[p++],c[p++]);return h}getUri(t){t=De(this.defaults,t);const n=_n(t.baseURL,t.url);return Jn(n,t.params,t.paramsSerializer)}}m.forEach(["delete","get","head","options"],function(t){Ie.prototype[t]=function(n,r){return this.request(De(r||{},{method:t,url:n,data:(r||{}).data}))}}),m.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(De(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Ie.prototype[t]=n(),Ie.prototype[t+"Form"]=n(!0)});class Gt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new Je(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Gt(function(i){t=i}),cancel:t}}}function Ro(e){return function(n){return e.apply(null,n)}}function Co(e){return m.isObject(e)&&e.isAxiosError===!0}const Zt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Zt).forEach(([e,t])=>{Zt[t]=e});function cr(e){const t=new Ie(e),n=Ne(Ie.prototype.request,t);return m.extend(n,Ie.prototype,t,{allOwnKeys:!0}),m.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return cr(De(e,i))},n}const W=cr(Be);W.Axios=Ie,W.CanceledError=Je,W.CancelToken=Gt,W.isCancel=Xn,W.VERSION=lr,W.toFormData=dt,W.AxiosError=A,W.Cancel=W.CanceledError,W.all=function(t){return Promise.all(t)},W.spread=Ro,W.isAxiosError=Co,W.mergeConfig=De,W.AxiosHeaders=ae,W.formToJSON=e=>Gn(m.isHTMLForm(e)?new FormData(e):e),W.getAdapter=ar.getAdapter,W.HttpStatusCode=Zt,W.default=W,W.defaults.headers.common["Access-Control-Allow-Origin"]="*",W.defaults.withCredentials=!0;class No{constructor(t,n){I(this,"url");I(this,"path_login");I(this,"path_refresh");I(this,"path_user");I(this,"customLogin");I(this,"callbackLogin");I(this,"customLogout");I(this,"callbackLogout");I(this,"exceptions");I(this,"jwtStorage","jwt");I(this,"defaultTokenExprie");I(this,"tokenExprieBefore");I(this,"authStorage","jauth");I(this,"expStorage","jauth_exprie");I(this,"defaultRoutePath");I(this,"handleError");I(this,"title");I(this,"hello");I(this,"customRouteMeta");I(this,"loginRouterView");I(this,"autoLogout",null);I(this,"beforeRoute",null);I(this,"userUrl");I(this,"refreshUrl");I(this,"authUrl");I(this,"user",this.getLocalStorage(this.authStorage));I(this,"router");I(this,"logoutTimer",null);I(this,"expiresAt",null);I(this,"refreshIntervalTimer",10);I(this,"refreshInterval",null);Object.assign(this,{exceptions:[],defaultTokenExprie:3600,tokenExprieBefore:600,defaultRoutePath:"/",title:"Sign In",hello:"Hello, this is a simple login system",customRouteMeta:{},userUrl:"/auth/me",authUrl:"/auth/login",refreshUrl:"/auth/refresh",...t}),this.router=n,this.initialize()}initialize(){this.loadUser()}getLocalStorage(t){if(localStorage){let n=localStorage.getItem(t);try{if(n)return JSON.parse(n)}catch{return n}}}setUser(t){localStorage.setItem(this.authStorage,JSON.stringify(t)),this.user=t}loadUser(){this.user=this.getLocalStorage(this.authStorage)}async login(t){try{const n=new FormData;n.append("username",t.username),n.append("password",t.password);const r=await W.post(`${this.authUrl}`,n,{headers:{"Content-Type":"multipart/form-data"}});if(r.status===200&&!r.data.error)this.setUser(r.data.user),this.startLogoutTimer(r.data.expires_in*1e3),this.setExpiresIn(r.data.expires_at),this.directRouter();else throw r.data;return r}catch(n){throw console.error("Login failed:",n),n}}directRouter(){try{this.router.replace(this.beforeRoute.path)}catch{this.router.replace({path:this.defaultRoutePath})}}directLogin(){this.router.replace({path:this.loginRouterView.path})}async getUser(){var t;try{const n=await W.get(this.userUrl);if(n.status===200&&!n.data.error)n.data.expires_in<this.refreshIntervalTimer*60?(console.warn("Token expired, refreshing..."),this.refreshToken()):(this.setUser(n.data.user),this.setExpiresIn(n.data.expires_at),this.startLogoutTimer(n.data.expires_in*1e3));else if(n.status===401)return console.warn("User session expired (401 from /me)"),this.logout(),null;return null}catch(n){return console.error("Failed to get user:",n),((t=n.response)==null?void 0:t.status)===401&&(console.warn("User session expired (401 from /me - error)"),this.logout()),null}}async refreshToken(){try{const t=await W.get(this.refreshUrl);return t.status===200?(this.setUser(t.data.user),this.startLogoutTimer(t.data.expires_in*1e3),this.setExpiresIn(t.data.expires_at),!0):(console.warn("Token refresh failed:",t.status),this.logout(),!1)}catch(t){return console.error("Error refreshing token:",t),!1}}startLogoutTimer(t){t&&(this.logoutTimer&&clearTimeout(this.logoutTimer),t>0?this.logoutTimer=setTimeout(()=>{console.log("Session timed out"),this.logout()},t):(console.log("Session already expired"),this.logout()))}setExpiresIn(t){this.refreshInterval&&clearTimeout(this.refreshInterval),this.refreshInterval=setTimeout(()=>{console.log("Refreshing token..."),this.refreshToken()},this.refreshIntervalTimer*6e4),localStorage.setItem(this.expStorage,t.toString()),this.expiresAt=t}getExpiresAt(){return this.expiresAt}getExpiresIn(t){const n=localStorage.getItem(this.expStorage);return n?parseInt(n,10):null}saveBeforeRoute(t){this.beforeRoute=t}setAutoLogout(t){console.warn("Auto logout logic needs to be reviewed with HTTP-only cookies.")}async logout(){try{await W.get("/auth/logout")}catch(t){console.error("Error during logout:",t)}finally{localStorage.removeItem(this.authStorage),this.user=null,this.directLogin()}}}const Po={url:"https://localhost/jwt",path_login:"login",path_refresh:"refresh",path_user:"me",jwtStorage:"jwt",defaultTokenExprie:3600,tokenExprieBefore:600,authStorage:"jauth",loginRouterView:{path:"/login",name:"Login",component:()=>Promise.resolve().then(()=>Bs),meta:{}}};function fr(){const e=l.inject("jauth");if(e)return e}async function dr(e,t,n){const r=new No({...Po,...n},t);try{t.addRoute(r.loginRouterView)}catch{t.replace({path:r.defaultRoutePath})}t.isReady().then(async()=>{try{t.currentRoute.value.name===r.loginRouterView.name||await r.getUser(),console.log("Router is ready and user data loaded (if available)")}catch(i){console.error("Error loading user data on app start:",i)}}),t.beforeEach((i,o,a)=>{if(i.name===r.loginRouterView.name)if(r.user)try{a(r.beforeRoute.path)}catch{a({path:r.defaultRoutePath})}else a();else r.saveBeforeRoute(i),r.user?a():a({name:r.loginRouterView.name})}),e.config.globalProperties.$jauth=r,e.provide("jauth",r)}function Do(){return hr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function hr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Io=typeof Proxy=="function",$o="devtools-plugin:setup",Uo="plugin:settings:set";let We,Xt;function Lo(){var e;return We!==void 0||(typeof window<"u"&&window.performance?(We=!0,Xt=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(We=!0,Xt=globalThis.perf_hooks.performance):We=!1),We}function Mo(){return Lo()?Xt.now():Date.now()}class zo{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const a in t.settings){const s=t.settings[a];r[a]=s.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const a=localStorage.getItem(i),s=JSON