From e43003b6c8764f5c25a4a5c52bb993dafe1887cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferdi=20U=CC=88NAL?= Date: Sat, 20 Jul 2024 16:44:44 +0300 Subject: [PATCH] fix: dark mode bugs --- dist/css/field.css | 2 +- dist/js/field.js | 2 +- resources/js/components/Modal.vue | 2 +- tailwind.config.js | 50 +++++++++++++++---------------- 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/dist/css/field.css b/dist/css/field.css index e11bd7e..f95c0ee 100644 --- a/dist/css/field.css +++ b/dist/css/field.css @@ -1 +1 @@ -/*! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.npcm--mb-1{margin-bottom:.25rem}.npcm--mb-1\.5{margin-bottom:.375rem}.npcm--mb-4{margin-bottom:1rem}.npcm--flex{display:flex}.npcm--inline-flex{display:inline-flex}.npcm--grid{display:grid}.npcm--h-dvh{height:100dvh}.npcm--w-full{width:100%}.npcm--max-w-12{max-width:3rem}.npcm--flex-none{flex:none}.npcm--shrink{flex-shrink:1}@keyframes npcm--shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.npcm--animate-shake{animation:npcm--shake .82s cubic-bezier(.36,.07,.19,.97) both}.npcm--cursor-pointer{cursor:pointer}.npcm--flex-row{flex-direction:row}.npcm--items-center{align-items:center}.npcm--justify-start{justify-content:flex-start}.npcm--justify-end{justify-content:flex-end}.npcm--justify-center{justify-content:center}.npcm--gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.npcm--gap-x-2\.5{-moz-column-gap:.625rem;column-gap:.625rem}.npcm--gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.npcm--gap-y-1{row-gap:.25rem}.npcm--gap-y-1\.5{row-gap:.375rem}.npcm--overflow-hidden{overflow:hidden}.npcm--rounded-lg{border-radius:.5rem}.npcm--rounded-md{border-radius:.375rem}.npcm--border-2{border-width:2px}.npcm--border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.npcm--bg-\[rgba\(var\(--colors-primary-500\)\)\]{background-color:rgba(var(--colors-primary-500))}.npcm--bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.npcm--bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.npcm--object-contain{-o-object-fit:contain;object-fit:contain}.npcm--text-base{font-size:1rem;line-height:1.5rem}.npcm--text-xl{font-size:1.25rem;line-height:1.75rem}.npcm--font-bold{font-weight:700}.npcm--text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.npcm--shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.disabled\:npcm--cursor-not-allowed:disabled{cursor:not-allowed}.dark\:npcm--bg-gray-800:is([class*=dark] *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:npcm--text-gray-900:is([class*=dark] *){--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))} +/*! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.npcm--mb-1{margin-bottom:.25rem}.npcm--mb-1\.5{margin-bottom:.375rem}.npcm--mb-4{margin-bottom:1rem}.npcm--flex{display:flex}.npcm--inline-flex{display:inline-flex}.npcm--grid{display:grid}.npcm--h-dvh{height:100dvh}.npcm--w-full{width:100%}.npcm--max-w-12{max-width:3rem}.npcm--flex-none{flex:none}.npcm--shrink{flex-shrink:1}@keyframes npcm--shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.npcm--animate-shake{animation:npcm--shake .82s cubic-bezier(.36,.07,.19,.97) both}.npcm--cursor-pointer{cursor:pointer}.npcm--flex-row{flex-direction:row}.npcm--items-center{align-items:center}.npcm--justify-start{justify-content:flex-start}.npcm--justify-end{justify-content:flex-end}.npcm--justify-center{justify-content:center}.npcm--gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.npcm--gap-x-2\.5{-moz-column-gap:.625rem;column-gap:.625rem}.npcm--gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.npcm--gap-y-1{row-gap:.25rem}.npcm--gap-y-1\.5{row-gap:.375rem}.npcm--overflow-hidden{overflow:hidden}.npcm--rounded-lg{border-radius:.5rem}.npcm--rounded-md{border-radius:.375rem}.npcm--border-2{border-width:2px}.npcm--border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.npcm--bg-\[rgba\(var\(--colors-primary-500\)\)\]{background-color:rgba(var(--colors-primary-500))}.npcm--bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.npcm--bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.npcm--object-contain{-o-object-fit:contain;object-fit:contain}.npcm--text-base{font-size:1rem;line-height:1.5rem}.npcm--text-xl{font-size:1.25rem;line-height:1.75rem}.npcm--font-bold{font-weight:700}.npcm--text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.npcm--shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.disabled\:npcm--cursor-not-allowed:disabled{cursor:not-allowed}.dark\:npcm--text-gray-900:is(.npcm--dark *){--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))} diff --git a/dist/js/field.js b/dist/js/field.js index 6229b92..105150f 100644 --- a/dist/js/field.js +++ b/dist/js/field.js @@ -1,2 +1,2 @@ /*! For license information please see field.js.LICENSE.txt */ -(()=>{var t,e={2505:(t,e,r)=>{t.exports=r(8015)},5592:(t,e,r)=>{"use strict";var n=r(9516),o=r(7522),i=r(3948),a=r(9106),s=r(9615),u=r(2012),c=r(4202),f=r(4896),l=r(5845),p=r(8563),h=r(5656),d=r(5721);t.exports=function(t){return new Promise((function(e,r){var y,m=t.data,v=t.headers,g=t.responseType,b=t.withXSRFToken;function w(){t.cancelToken&&t.cancelToken.unsubscribe(y),t.signal&&t.signal.removeEventListener("abort",y)}n.isFormData(m)&&n.isStandardBrowserEnv()&&delete v["Content-Type"];var E=new XMLHttpRequest;if(t.auth){var O=t.auth.username||"",_=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";v.Authorization="Basic "+btoa(O+":"+_)}var S=s(t.baseURL,t.url);function x(){if(E){var n="getAllResponseHeaders"in E?u(E.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?E.response:E.responseText,status:E.status,statusText:E.statusText,headers:n,config:t,request:E};o((function(t){e(t),w()}),(function(t){r(t),w()}),i),E=null}}if(E.open(t.method.toUpperCase(),a(S,t.params,t.paramsSerializer),!0),E.timeout=t.timeout,"onloadend"in E?E.onloadend=x:E.onreadystatechange=function(){E&&4===E.readyState&&(0!==E.status||E.responseURL&&0===E.responseURL.indexOf("file:"))&&setTimeout(x)},E.onabort=function(){E&&(r(new l("Request aborted",l.ECONNABORTED,t,E)),E=null)},E.onerror=function(){r(new l("Network Error",l.ERR_NETWORK,t,E)),E=null},E.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||f;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new l(e,n.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,t,E)),E=null},n.isStandardBrowserEnv()&&(b&&n.isFunction(b)&&(b=b(t)),b||!1!==b&&c(S))){var A=t.xsrfHeaderName&&t.xsrfCookieName&&i.read(t.xsrfCookieName);A&&(v[t.xsrfHeaderName]=A)}"setRequestHeader"in E&&n.forEach(v,(function(t,e){void 0===m&&"content-type"===e.toLowerCase()?delete v[e]:E.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(E.withCredentials=!!t.withCredentials),g&&"json"!==g&&(E.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&E.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&E.upload&&E.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(y=function(e){E&&(r(!e||e.type?new p(null,t,E):e),E.abort(),E=null)},t.cancelToken&&t.cancelToken.subscribe(y),t.signal&&(t.signal.aborted?y():t.signal.addEventListener("abort",y))),m||!1===m||0===m||""===m||(m=null);var j=h(S);j&&-1===d.protocols.indexOf(j)?r(new l("Unsupported protocol "+j+":",l.ERR_BAD_REQUEST,t)):E.send(m)}))}},8015:(t,e,r)=>{"use strict";var n=r(9516),o=r(9012),i=r(5155),a=r(5343),s=r(7412),u=r(4298);var c=function t(e){var r=new i(e),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return t(a(e,r))},s}(s);c.Axios=i,c.CanceledError=r(8563),c.CancelToken=r(3191),c.isCancel=r(3864),c.VERSION=r(9641).version,c.toFormData=r(6440),c.AxiosError=r(5845),c.Cancel=c.CanceledError,c.all=function(t){return Promise.all(t)},c.spread=r(5599),c.isAxiosError=r(5019),c.formToJSON=function(t){return u(n.isHTMLForm(t)?new FormData(t):t)},t.exports=c,t.exports.default=c},3191:(t,e,r)=>{"use strict";var n=r(8563);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){for(var e=r._listeners.length;e-- >0;)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,o,i){r.reason||(r.reason=new n(t,o,i),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},8563:(t,e,r)=>{"use strict";var n=r(5845);function o(t,e,r){n.call(this,null==t?"canceled":t,n.ERR_CANCELED,e,r),this.name="CanceledError"}r(9516).inherits(o,n,{__CANCEL__:!0}),t.exports=o},3864:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},5155:(t,e,r)=>{"use strict";var n=r(9516),o=r(9106),i=r(3471),a=r(4490),s=r(5343),u=r(9615),c=r(4841),f=c.validators;function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:f.transitional(f.boolean),forcedJSONParsing:f.transitional(f.boolean),clarifyTimeoutError:f.transitional(f.boolean)},!1);var o=e.paramsSerializer;void 0!==o&&c.assertOptions(o,{encode:f.function,serialize:f.function},!0),n.isFunction(o)&&(e.paramsSerializer={serialize:o});var i=[],u=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(u=u&&t.synchronous,i.unshift(t.fulfilled,t.rejected))}));var l,p=[];if(this.interceptors.response.forEach((function(t){p.push(t.fulfilled,t.rejected)})),!u){var h=[a,void 0];for(Array.prototype.unshift.apply(h,i),h=h.concat(p),l=Promise.resolve(e);h.length;)l=l.then(h.shift(),h.shift());return l}for(var d=e;i.length;){var y=i.shift(),m=i.shift();try{d=y(d)}catch(t){m(t);break}}try{l=a(d)}catch(t){return Promise.reject(t)}for(;p.length;)l=l.then(p.shift(),p.shift());return l},l.prototype.getUri=function(t){t=s(this.defaults,t);var e=u(t.baseURL,t.url);return o(e,t.params,t.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(s(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}l.prototype[t]=e(),l.prototype[t+"Form"]=e(!0)})),t.exports=l},5845:(t,e,r)=>{"use strict";var n=r(9516);function o(t,e,r,n,o){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),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["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((function(t){a[t]={value:t}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(t,e,r,a,s,u){var c=Object.create(i);return n.toFlatObject(t,c,(function(t){return t!==Error.prototype})),o.call(c,t.message,e,r,a,s),c.cause=t,c.name=t.name,u&&Object.assign(c,u),c},t.exports=o},3471:(t,e,r)=>{"use strict";var n=r(9516);function o(){this.handlers=[]}o.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.clear=function(){this.handlers&&(this.handlers=[])},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},9615:(t,e,r)=>{"use strict";var n=r(9137),o=r(4680);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},4490:(t,e,r)=>{"use strict";var n=r(9516),o=r(2881),i=r(3864),a=r(7412),s=r(8563),u=r(7018);function c(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s}t.exports=function(t){return c(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,null,t.transformRequest),u(t.headers,"Accept"),u(t.headers,"Content-Type"),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return c(t),e.data=o.call(t,e.data,e.headers,e.status,t.transformResponse),e}),(function(e){return i(e)||(c(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,e.response.status,t.transformResponse))),Promise.reject(e)}))}},5343:(t,e,r)=>{"use strict";var n=r(9516);t.exports=function(t,e){e=e||{};var r={};function o(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isEmptyObject(e)?n.merge({},t):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function i(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(t[r],e[r])}function a(t){if(!n.isUndefined(e[t]))return o(void 0,e[t])}function s(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(void 0,e[r])}function u(r){return r in e?o(t[r],e[r]):r in t?o(void 0,t[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return n.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=c[t]||i,o=e(t);n.isUndefined(o)&&e!==u||(r[t]=o)})),r}},7522:(t,e,r)=>{"use strict";var n=r(5845);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}},2881:(t,e,r)=>{"use strict";var n=r(9516),o=r(7412);t.exports=function(t,e,r,i){var a=this||o;return n.forEach(i,(function(n){t=n.call(a,t,e,r)})),t}},7412:(t,e,r)=>{"use strict";var n=r(5606),o=r(9516),i=r(7018),a=r(5845),s=r(4896),u=r(6440),c=r(6069),f=r(5721),l=r(4298),p={"Content-Type":"application/x-www-form-urlencoded"};function h(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var d,y={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==n&&"[object process]"===Object.prototype.toString.call(n))&&(d=r(5592)),d),transformRequest:[function(t,e){i(e,"Accept"),i(e,"Content-Type");var r,n=e&&e["Content-Type"]||"",a=n.indexOf("application/json")>-1,s=o.isObject(t);if(s&&o.isHTMLForm(t)&&(t=new FormData(t)),o.isFormData(t))return a?JSON.stringify(l(t)):t;if(o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t))return t;if(o.isArrayBufferView(t))return t.buffer;if(o.isURLSearchParams(t))return h(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();if(s){if(-1!==n.indexOf("application/x-www-form-urlencoded"))return c(t,this.formSerializer).toString();if((r=o.isFileList(t))||n.indexOf("multipart/form-data")>-1){var f=this.env&&this.env.FormData;return u(r?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||a?(h(e,"application/json"),function(t,e,r){if(o.isString(t))try{return(e||JSON.parse)(t),o.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||y.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&o.isString(t)&&(r&&!this.responseType||n)){var i=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(i){if("SyntaxError"===t.name)throw a.from(t,a.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:f.classes.FormData,Blob:f.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(t){y.headers[t]={}})),o.forEach(["post","put","patch"],(function(t){y.headers[t]=o.merge(p)})),t.exports=y},4896:t=>{"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},786:(t,e,r)=>{t.exports=r(1894)},9641:t=>{t.exports={version:"0.28.1"}},170:(t,e,r)=>{"use strict";var n=r(6440);function o(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,(function(t){return e[t]}))}function i(t,e){this._pairs=[],t&&n(t,this,e)}var a=i.prototype;a.append=function(t,e){this._pairs.push([t,e])},a.toString=function(t){var e=t?function(e){return t.call(this,e,o)}:o;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")},t.exports=i},9012:t=>{"use strict";t.exports=function(t,e){return function(){return t.apply(e,arguments)}}},9106:(t,e,r)=>{"use strict";var n=r(9516),o=r(170);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a));var s,u=r&&r.encode||i,c=r&&r.serialize;return(s=c?c(e,r):n.isURLSearchParams(e)?e.toString():new o(e,r).toString(u))&&(t+=(-1===t.indexOf("?")?"?":"&")+s),t}},4680:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},3948:(t,e,r)=>{"use strict";var n=r(9516);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4298:(t,e,r)=>{"use strict";var n=r(9516);t.exports=function(t){function e(t,r,o,i){var a=t[i++],s=Number.isFinite(+a),u=i>=t.length;return a=!a&&n.isArray(o)?o.length:a,u?(n.hasOwnProperty(o,a)?o[a]=[o[a],r]:o[a]=r,!s):(o[a]&&n.isObject(o[a])||(o[a]=[]),e(t,r,o[a],i)&&n.isArray(o[a])&&(o[a]=function(t){var e,r,n={},o=Object.keys(t),i=o.length;for(e=0;e{"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},5019:(t,e,r)=>{"use strict";var n=r(9516);t.exports=function(t){return n.isObject(t)&&!0===t.isAxiosError}},4202:(t,e,r)=>{"use strict";var n=r(9516);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{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 t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},7018:(t,e,r)=>{"use strict";var n=r(9516);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},2012:(t,e,r)=>{"use strict";var n=r(9516),o=["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"];t.exports=function(t){var e,r,i,a={};return t?(n.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=n.trim(t.slice(0,i)).toLowerCase(),r=n.trim(t.slice(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},5656:t=>{"use strict";t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},5599:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},6440:(t,e,r)=>{"use strict";var n=r(8287).hp,o=r(9516),i=r(5845),a=r(786);function s(t){return o.isPlainObject(t)||o.isArray(t)}function u(t){return o.endsWith(t,"[]")?t.slice(0,-2):t}function c(t,e,r){return t?t.concat(e).map((function(t,e){return t=u(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}var f=o.toFlatObject(o,{},null,(function(t){return/^is[A-Z]/.test(t)}));t.exports=function(t,e,r){if(!o.isObject(t))throw new TypeError("target must be an object");e=e||new(a||FormData);var l,p=(r=o.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!o.isUndefined(e[t])}))).metaTokens,h=r.visitor||g,d=r.dots,y=r.indexes,m=(r.Blob||"undefined"!=typeof Blob&&Blob)&&((l=e)&&o.isFunction(l.append)&&"FormData"===l[Symbol.toStringTag]&&l[Symbol.iterator]);if(!o.isFunction(h))throw new TypeError("visitor must be a function");function v(t){if(null===t)return"";if(o.isDate(t))return t.toISOString();if(!m&&o.isBlob(t))throw new i("Blob is not supported. Use a Buffer instead.");return o.isArrayBuffer(t)||o.isTypedArray(t)?m&&"function"==typeof Blob?new Blob([t]):n.from(t):t}function g(t,r,n){var i=t;if(t&&!n&&"object"==typeof t)if(o.endsWith(r,"{}"))r=p?r:r.slice(0,-2),t=JSON.stringify(t);else if(o.isArray(t)&&function(t){return o.isArray(t)&&!t.some(s)}(t)||o.isFileList(t)||o.endsWith(r,"[]")&&(i=o.toArray(t)))return r=u(r),i.forEach((function(t,n){!o.isUndefined(t)&&e.append(!0===y?c([r],n,d):null===y?r:r+"[]",v(t))})),!1;return!!s(t)||(e.append(c(n,r,d),v(t)),!1)}var b=[],w=Object.assign(f,{defaultVisitor:g,convertValue:v,isVisitable:s});if(!o.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!o.isUndefined(r)){if(-1!==b.indexOf(r))throw Error("Circular reference detected in "+n.join("."));b.push(r),o.forEach(r,(function(r,i){!0===(!o.isUndefined(r)&&h.call(e,r,o.isString(i)?i.trim():i,n,w))&&t(r,n?n.concat(i):[i])})),b.pop()}}(t),e}},6069:(t,e,r)=>{"use strict";var n=r(9516),o=r(6440),i=r(5721);t.exports=function(t,e){return o(t,new i.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,o){return i.isNode&&n.isBuffer(t)?(this.append(e,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}},4841:(t,e,r)=>{"use strict";var n=r(9641).version,o=r(5845),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var a={};i.transitional=function(t,e,r){function i(t,e){return"[Axios v"+n+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,n,s){if(!1===t)throw new o(i(n," has been removed"+(e?" in "+e:"")),o.ERR_DEPRECATED);return e&&!a[n]&&(a[n]=!0,console.warn(i(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,n,s)}},t.exports={assertOptions:function(t,e,r){if("object"!=typeof t)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),i=n.length;i-- >0;){var a=n[i],s=e[a];if(s){var u=t[a],c=void 0===u||s(u,a,t);if(!0!==c)throw new o("option "+a+" must be "+c,o.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},243:t=>{"use strict";t.exports=FormData},2002:(t,e,r)=>{"use strict";var n=r(170);t.exports="undefined"!=typeof URLSearchParams?URLSearchParams:n},9490:(t,e,r)=>{"use strict";t.exports={isBrowser:!0,classes:{URLSearchParams:r(2002),FormData:r(243),Blob},protocols:["http","https","file","blob","url","data"]}},5721:(t,e,r)=>{"use strict";t.exports=r(9490)},9516:(t,e,r)=>{"use strict";var n,o=r(9012),i=Object.prototype.toString,a=(n=Object.create(null),function(t){var e=i.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())});function s(t){return t=t.toLowerCase(),function(e){return a(e)===t}}function u(t){return Array.isArray(t)}function c(t){return void 0===t}var f=s("ArrayBuffer");function l(t){return"number"==typeof t}function p(t){return null!==t&&"object"==typeof t}function h(t){if("object"!==a(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var d=s("Date"),y=s("File"),m=s("Blob"),v=s("FileList");function g(t){return"[object Function]"===i.call(t)}var b=s("URLSearchParams");function w(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),u(t))for(var r=0,n=t.length;r0;)a=o[i],n&&!n(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==r&&Object.getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:s,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;var n=t.indexOf(e,r);return-1!==n&&n===r},toArray:function(t){if(!t)return null;if(u(t))return t;var e=t.length;if(!l(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:O,isFileList:v,forEachEntry:function(t,e){for(var r,n=(t&&t[Symbol.iterator]).call(t);(r=n.next())&&!r.done;){var o=r.value;e.call(t,o[0],o[1])}},matchAll:function(t,e){for(var r,n=[];null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:S,hasOwnProperty:x}},9415:(t,e,r)=>{"use strict";var n={};r.r(n),r.d(n,{hasBrowserEnv:()=>be,hasStandardBrowserEnv:()=>we,hasStandardBrowserWebWorkerEnv:()=>Oe});const o={baseUrl:"/nova-vendor/ferdiunal/nova-password-confirm-modal"},i=Vue;var a={class:"npcm--flex-none"},s={key:0};const u={mixins:[{data:function(){var t;return{countdown:0,delay:1e3,startCountdown:null!==(t=this.field.countdown)&&void 0!==t?t:15,timeout:null}},watch:{result:function(){this.result&&this.field.enableCountdown&&(this.countdown=this.startCountdown,this.countdownTimer())}},methods:{countdownTimer:function(){var t=this;this.countdown>0?this.timeout=setTimeout((function(){console.log(t.countdown),t.countdown--,t.countdownTimer()}),this.delay):(this.result=null,this.timeout&&clearTimeout(this.timeout))}}}],computed:{fieldValue:function(){return this.field.displayedAs||this.field.value},getValue:function(){return this.result?this.result:this.fieldValue}},data:function(){return{result:null}},methods:{lock:function(){this.result=null,this.countdown=0,this.timeout&&clearTimeout(this.timeout)},unLock:function(){var t=this;this.lock?(this.lock=!1,this.$nextTick((function(){document.getElementById(t.field.attribute).focus()}))):this.lock=!0}}},c={props:["resourceName","resource","field"],mixins:[u]};var f=r(6262);const l=(0,f.A)(c,[["render",function(t,e,r,n,o,u){var c,f,l=(0,i.resolveComponent)("nova-password-confirm-modal"),p=(0,i.resolveComponent)("IconButton");return(0,i.openBlock)(),(0,i.createElementBlock)("div",{class:"npcm--inline-flex npcm--justify-center npcm--items-center npcm--gap-x-2.5",onClick:e[2]||(e[2]=(0,i.withModifiers)((function(){}),["stop","prevent"]))},[(0,i.createElementVNode)("span",null,(0,i.toDisplayString)(t.getValue),1),(0,i.createElementVNode)("div",a,[t.result?((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:1,class:"npcm--inline-flex npcm--gap-x-2 ml-3 npcm--justify-center npcm--items-center npcm--flex-row text-primary-500 npcm--cursor-pointer",onClick:e[1]||(e[1]=(0,i.withModifiers)((function(){return t.lock&&t.lock.apply(t,arguments)}),["prevent","stop"]))},[(0,i.createVNode)(p,{iconType:"eye-off",type:"button"}),t.countdown>0?((0,i.openBlock)(),(0,i.createElementBlock)("span",s," ("+(0,i.toDisplayString)(t.countdown)+") ",1)):(0,i.createCommentVNode)("",!0)])):((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,field:r.field,onResult:e[0]||(e[0]=function(e){return t.result=e}),resourceName:r.resourceName,resourceId:null!==(c=t.resourceId)&&void 0!==c?c:null===(f=r.resource)||void 0===f||null===(f=f.id)||void 0===f?void 0:f.value},null,8,["field","resourceName","resourceId"]))])])}]]);var p={class:"npcm--flex npcm--items-center npcm--justify-start npcm--gap-x-4"},h={class:"npcm--flex-none"},d={key:0};const y={props:["index","resource","resourceName","resourceId","field"],mixins:[u]},m=(0,f.A)(y,[["render",function(t,e,r,n,o,a){var s=(0,i.resolveComponent)("nova-password-confirm-modal"),u=(0,i.resolveComponent)("IconButton"),c=(0,i.resolveComponent)("PanelItem");return(0,i.openBlock)(),(0,i.createBlock)(c,{index:r.index,field:r.field},{value:(0,i.withCtx)((function(){var n,o;return[(0,i.createElementVNode)("div",p,[(0,i.createElementVNode)("span",null,(0,i.toDisplayString)(t.getValue),1),(0,i.createElementVNode)("div",h,[t.result?((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:1,class:"npcm--inline-flex npcm--gap-x-2 ml-3 npcm--justify-center npcm--items-center npcm--flex-row text-primary-500 npcm--cursor-pointer",onClick:e[1]||(e[1]=(0,i.withModifiers)((function(){return t.lock&&t.lock.apply(t,arguments)}),["prevent","stop"]))},[(0,i.createVNode)(u,{iconType:"eye-off",type:"button"}),t.countdown>0?((0,i.openBlock)(),(0,i.createElementBlock)("span",d," ("+(0,i.toDisplayString)(t.countdown)+") ",1)):(0,i.createCommentVNode)("",!0)])):((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,field:r.field,onResult:e[0]||(e[0]=function(e){return t.result=e}),resourceName:r.resourceName,resourceId:null!==(n=r.resourceId)&&void 0!==n?n:null===(o=r.resource)||void 0===o||null===(o=o.id)||void 0===o?void 0:o.value},null,8,["field","resourceName","resourceId"]))])])]})),_:1},8,["index","field"])}]]);var v=r(2126),g=r.n(v),b={nested:{type:Boolean,default:!1},preventInitialLoading:{type:Boolean,default:!1},showHelpText:{type:Boolean,default:!1},shownViaNewRelationModal:{type:Boolean,default:!1},resourceId:{type:[Number,String]},resourceName:{type:String},relatedResourceId:{type:[Number,String]},relatedResourceName:{type:String},field:{type:Object,required:!0},viaResource:{type:String,required:!1},viaResourceId:{type:[String,Number],required:!1},viaRelationship:{type:String,required:!1},relationshipType:{type:String,default:""},shouldOverrideMeta:{type:Boolean,default:!1},disablePagination:{type:Boolean,default:!1},clickAction:{type:String,default:"view",validator:function(t){return["edit","select","ignore","detail"].includes(t)}},mode:{type:String,default:"form",validator:function(t){return["form","modal","action-modal","action-fullscreen"].includes(t)}}};function w(t){return g()(b,t)}function E(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:void 0!==r.g?r.g:{}}const O="function"==typeof Proxy,_="devtools-plugin:setup";let S,x;function A(){return void 0!==S||("undefined"!=typeof window&&window.performance?(S=!0,x=window.performance):void 0!==r.g&&(null===(t=r.g.perf_hooks)||void 0===t?void 0:t.performance)?(S=!0,x=r.g.perf_hooks.performance):S=!1),S?x.now():Date.now();var t}class j{constructor(t,e){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=e;const r={};if(t.settings)for(const e in t.settings){const n=t.settings[e];r[e]=n.defaultValue}const n=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const t=localStorage.getItem(n),e=JSON.parse(t);Object.assign(o,e)}catch(t){}this.fallbacks={getSettings:()=>o,setSettings(t){try{localStorage.setItem(n,JSON.stringify(t))}catch(t){}o=t},now:()=>A()},e&&e.on("plugin:settings:set",((t,e)=>{t===this.plugin.id&&this.fallbacks.setSettings(e)})),this.proxiedOn=new Proxy({},{get:(t,e)=>this.target?this.target.on[e]:(...t)=>{this.onQueue.push({method:e,args:t})}}),this.proxiedTarget=new Proxy({},{get:(t,e)=>this.target?this.target[e]:"on"===e?this.proxiedOn:Object.keys(this.fallbacks).includes(e)?(...t)=>(this.targetQueue.push({method:e,args:t,resolve:()=>{}}),this.fallbacks[e](...t)):(...t)=>new Promise((r=>{this.targetQueue.push({method:e,args:t,resolve:r})}))})}async setRealTarget(t){this.target=t;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function P(t,e){const r=t,n=E(),o=E().__VUE_DEVTOOLS_GLOBAL_HOOK__,i=O&&r.enableEarlyProxy;if(!o||!n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&i){const t=i?new j(r,o):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:e,proxy:t}),t&&e(t.proxiedTarget)}else o.emit(_,t,e)}var R="store";function T(t,e){Object.keys(t).forEach((function(r){return e(t[r],r)}))}function k(t){return null!==t&&"object"==typeof t}function C(t,e,r){return e.indexOf(t)<0&&(r&&r.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function N(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;U(t,r,[],t._modules.root,!0),B(t,r,e)}function B(t,e,r){var n=t._state,o=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var a=t._wrappedGetters,s={},u={},c=(0,i.effectScope)(!0);c.run((function(){T(a,(function(e,r){s[r]=function(t,e){return function(){return t(e)}}(e,t),u[r]=(0,i.computed)((function(){return s[r]()})),Object.defineProperty(t.getters,r,{get:function(){return u[r].value},enumerable:!0})}))})),t._state=(0,i.reactive)({data:e}),t._scope=c,t.strict&&function(t){(0,i.watch)((function(){return t._state.data}),(function(){0}),{deep:!0,flush:"sync"})}(t),n&&r&&t._withCommit((function(){n.data=null})),o&&o.stop()}function U(t,e,r,n,o){var i=!r.length,a=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=n),!i&&!o){var s=D(e,r.slice(0,-1)),u=r[r.length-1];t._withCommit((function(){s[u]=n.state}))}var c=n.context=function(t,e,r){var n=""===e,o={dispatch:n?t.dispatch:function(r,n,o){var i=F(r,n,o),a=i.payload,s=i.options,u=i.type;return s&&s.root||(u=e+u),t.dispatch(u,a)},commit:n?t.commit:function(r,n,o){var i=F(r,n,o),a=i.payload,s=i.options,u=i.type;s&&s.root||(u=e+u),t.commit(u,a,s)}};return Object.defineProperties(o,{getters:{get:n?function(){return t.getters}:function(){return L(t,e)}},state:{get:function(){return D(t.state,r)}}}),o}(t,a,r);n.forEachMutation((function(e,r){!function(t,e,r,n){var o=t._mutations[e]||(t._mutations[e]=[]);o.push((function(e){r.call(t,n.state,e)}))}(t,a+r,e,c)})),n.forEachAction((function(e,r){var n=e.root?r:a+r,o=e.handler||e;!function(t,e,r,n){var o=t._actions[e]||(t._actions[e]=[]);o.push((function(e){var o,i=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,n,o,c)})),n.forEachGetter((function(e,r){!function(t,e,r,n){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return r(n.state,n.getters,t.state,t.getters)}}(t,a+r,e,c)})),n.forEachChild((function(n,i){U(t,e,r.concat(i),n,o)}))}function L(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,n)===e){var i=o.slice(n);Object.defineProperty(r,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}function D(t,e){return e.reduce((function(t,e){return t[e]}),t)}function F(t,e,r){return k(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}var I="vuex:mutations",M="vuex:actions",V="vuex",q=0;function z(t,e){P({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(r){r.addTimelineLayer({id:I,label:"Vuex Mutations",color:H}),r.addTimelineLayer({id:M,label:"Vuex Actions",color:H}),r.addInspector({id:V,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree((function(r){if(r.app===t&&r.inspectorId===V)if(r.filter){var n=[];G(n,e._modules.root,r.filter,""),r.rootNodes=n}else r.rootNodes=[$(e._modules.root,"")]})),r.on.getInspectorState((function(r){if(r.app===t&&r.inspectorId===V){var n=r.nodeId;L(e,n),r.state=function(t,e,r){e="root"===r?e:e[r];var n=Object.keys(e),o={state:Object.keys(t.state).map((function(e){return{key:e,editable:!0,value:t.state[e]}}))};if(n.length){var i=function(t){var e={};return Object.keys(t).forEach((function(r){var n=r.split("/");if(n.length>1){var o=e,i=n.pop();n.forEach((function(t){o[t]||(o[t]={_custom:{value:{},display:t,tooltip:"Module",abstract:!0}}),o=o[t]._custom.value})),o[i]=J((function(){return t[r]}))}else e[r]=J((function(){return t[r]}))})),e}(e);o.getters=Object.keys(i).map((function(t){return{key:t.endsWith("/")?Y(t):t,editable:!1,value:J((function(){return i[t]}))}}))}return o}((o=e._modules,(a=(i=n).split("/").filter((function(t){return t}))).reduce((function(t,e,r){var n=t[e];if(!n)throw new Error('Missing module "'+e+'" for path "'+i+'".');return r===a.length-1?n:n._children}),"root"===i?o:o.root._children)),"root"===n?e.getters:e._makeLocalGettersCache,n)}var o,i,a})),r.on.editInspectorState((function(r){if(r.app===t&&r.inspectorId===V){var n=r.nodeId,o=r.path;"root"!==n&&(o=n.split("/").filter(Boolean).concat(o)),e._withCommit((function(){r.set(e._state.data,o,r.state.value)}))}})),e.subscribe((function(t,e){var n={};t.payload&&(n.payload=t.payload),n.state=e,r.notifyComponentUpdate(),r.sendInspectorTree(V),r.sendInspectorState(V),r.addTimelineEvent({layerId:I,event:{time:Date.now(),title:t.type,data:n}})})),e.subscribeAction({before:function(t,e){var n={};t.payload&&(n.payload=t.payload),t._id=q++,t._time=Date.now(),n.state=e,r.addTimelineEvent({layerId:M,event:{time:t._time,title:t.type,groupId:t._id,subtitle:"start",data:n}})},after:function(t,e){var n={},o=Date.now()-t._time;n.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},t.payload&&(n.payload=t.payload),n.state=e,r.addTimelineEvent({layerId:M,event:{time:Date.now(),title:t.type,groupId:t._id,subtitle:"end",data:n}})}})}))}var H=8702998,W={label:"namespaced",textColor:16777215,backgroundColor:6710886};function Y(t){return t&&"root"!==t?t.split("/").slice(-2,-1)[0]:"Root"}function $(t,e){return{id:e||"root",label:Y(e),tags:t.namespaced?[W]:[],children:Object.keys(t._children).map((function(r){return $(t._children[r],e+r+"/")}))}}function G(t,e,r,n){n.includes(r)&&t.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:e.namespaced?[W]:[]}),Object.keys(e._children).forEach((function(o){G(t,e._children[o],r,n+o+"/")}))}function J(t){try{return t()}catch(t){return t}}var Q=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=("function"==typeof r?r():r)||{}},K={namespaced:{configurable:!0}};K.namespaced.get=function(){return!!this._rawModule.namespaced},Q.prototype.addChild=function(t,e){this._children[t]=e},Q.prototype.removeChild=function(t){delete this._children[t]},Q.prototype.getChild=function(t){return this._children[t]},Q.prototype.hasChild=function(t){return t in this._children},Q.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Q.prototype.forEachChild=function(t){T(this._children,t)},Q.prototype.forEachGetter=function(t){this._rawModule.getters&&T(this._rawModule.getters,t)},Q.prototype.forEachAction=function(t){this._rawModule.actions&&T(this._rawModule.actions,t)},Q.prototype.forEachMutation=function(t){this._rawModule.mutations&&T(this._rawModule.mutations,t)},Object.defineProperties(Q.prototype,K);var X=function(t){this.register([],t,!1)};function Z(t,e,r){if(e.update(r),r.modules)for(var n in r.modules){if(!e.getChild(n))return void 0;Z(t.concat(n),e.getChild(n),r.modules[n])}}X.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},X.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,r){return t+((e=e.getChild(r)).namespaced?r+"/":"")}),"")},X.prototype.update=function(t){Z([],this.root,t)},X.prototype.register=function(t,e,r){var n=this;void 0===r&&(r=!0);var o=new Q(e,r);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);e.modules&&T(e.modules,(function(e,o){n.register(t.concat(o),e,r)}))},X.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1],n=e.getChild(r);n&&n.runtime&&e.removeChild(r)},X.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1];return!!e&&e.hasChild(r)};var tt=function(t){var e=this;void 0===t&&(t={});var r=t.plugins;void 0===r&&(r=[]);var n=t.strict;void 0===n&&(n=!1);var o=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new X(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var i=this,a=this.dispatch,s=this.commit;this.dispatch=function(t,e){return a.call(i,t,e)},this.commit=function(t,e,r){return s.call(i,t,e,r)},this.strict=n;var u=this._modules.root.state;U(this,u,[],this._modules.root),B(this,u),r.forEach((function(t){return t(e)}))},et={state:{configurable:!0}};tt.prototype.install=function(t,e){t.provide(e||R,this),t.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&z(t,this)},et.state.get=function(){return this._state.data},et.state.set=function(t){0},tt.prototype.commit=function(t,e,r){var n=this,o=F(t,e,r),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),u=this._mutations[i];u&&(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,n.state)})))},tt.prototype.dispatch=function(t,e){var r=this,n=F(t,e),o=n.type,i=n.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,r.state)}))}catch(t){0}var u=s.length>1?Promise.all(s.map((function(t){return t(i)}))):s[0](i);return new Promise((function(t,e){u.then((function(e){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,r.state)}))}catch(t){0}t(e)}),(function(t){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,r.state,t)}))}catch(t){0}e(t)}))}))}},tt.prototype.subscribe=function(t,e){return C(t,this._subscribers,e)},tt.prototype.subscribeAction=function(t,e){return C("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},tt.prototype.watch=function(t,e,r){var n=this;return(0,i.watch)((function(){return t(n.state,n.getters)}),e,Object.assign({},r))},tt.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._state.data=t}))},tt.prototype.registerModule=function(t,e,r){void 0===r&&(r={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),U(this,this.state,t,this._modules.get(t),r.preserveState),B(this,this.state)},tt.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){delete D(e.state,t.slice(0,-1))[t[t.length-1]]})),N(this)},tt.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},tt.prototype.hotUpdate=function(t){this._modules.update(t),N(this,!0)},tt.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(tt.prototype,et);it((function(t,e){var r={};return ot(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){var e=this.$store.state,r=this.$store.getters;if(t){var n=at(this.$store,"mapState",t);if(!n)return;e=n.context.state,r=n.context.getters}return"function"==typeof o?o.call(this,e,r):e[o]},r[n].vuex=!0})),r}));var rt=it((function(t,e){var r={};return ot(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.commit;if(t){var i=at(this.$store,"mapMutations",t);if(!i)return;n=i.context.commit}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r})),nt=it((function(t,e){var r={};return ot(e).forEach((function(e){var n=e.key,o=e.val;o=t+o,r[n]=function(){if(!t||at(this.$store,"mapGetters",t))return this.$store.getters[o]},r[n].vuex=!0})),r}));it((function(t,e){var r={};return ot(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.dispatch;if(t){var i=at(this.$store,"mapActions",t);if(!i)return;n=i.context.dispatch}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r}));function ot(t){return function(t){return Array.isArray(t)||k(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function it(t){return function(e,r){return"string"!=typeof e?(r=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,r)}}function at(t,e,r){return t._modulesNamespaceMap[r]}var st=r(983),ut=r(2016),ct=r.n(ut);function ft(t){return Boolean(!ct()(t)&&""!==t)}function lt(t){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(t)}function pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ht(t){for(var e=1;e1?window.history.back():!this.navigateBackUsingHistory&&ft(t)?Nova.visit(t,{replace:!0}):Nova.visit("/")}}),ht({},nt(["canLeaveForm","canLeaveFormToPreviousPage"]));function yt(t){return yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yt(t)}function mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vt(t){for(var e=1;e{const e=wt.call(t);return _t[e]||(_t[e]=e.slice(8,-1).toLowerCase())});var _t;const St=t=>(t=t.toLowerCase(),e=>Ot(e)===t),xt=t=>e=>typeof e===t,{isArray:At}=Array,jt=xt("undefined");const Pt=St("ArrayBuffer");const Rt=xt("string"),Tt=xt("function"),kt=xt("number"),Ct=t=>null!==t&&"object"==typeof t,Nt=t=>{if("object"!==Ot(t))return!1;const e=Et(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},Bt=St("Date"),Ut=St("File"),Lt=St("Blob"),Dt=St("FileList"),Ft=St("URLSearchParams");function It(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let n,o;if("object"!=typeof t&&(t=[t]),At(t))for(n=0,o=t.length;n0;)if(n=r[o],e===n.toLowerCase())return n;return null}const Vt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,qt=t=>!jt(t)&&t!==Vt;const zt=(Ht="undefined"!=typeof Uint8Array&&Et(Uint8Array),t=>Ht&&t instanceof Ht);var Ht;const Wt=St("HTMLFormElement"),Yt=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),$t=St("RegExp"),Gt=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};It(r,((r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)})),Object.defineProperties(t,n)},Jt="abcdefghijklmnopqrstuvwxyz",Qt="0123456789",Kt={DIGIT:Qt,ALPHA:Jt,ALPHA_DIGIT:Jt+Jt.toUpperCase()+Qt};const Xt=St("AsyncFunction"),Zt={isArray:At,isArrayBuffer:Pt,isBuffer:function(t){return null!==t&&!jt(t)&&null!==t.constructor&&!jt(t.constructor)&&Tt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||Tt(t.append)&&("formdata"===(e=Ot(t))||"object"===e&&Tt(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Pt(t.buffer),e},isString:Rt,isNumber:kt,isBoolean:t=>!0===t||!1===t,isObject:Ct,isPlainObject:Nt,isUndefined:jt,isDate:Bt,isFile:Ut,isBlob:Lt,isRegExp:$t,isFunction:Tt,isStream:t=>Ct(t)&&Tt(t.pipe),isURLSearchParams:Ft,isTypedArray:zt,isFileList:Dt,forEach:It,merge:function t(){const{caseless:e}=qt(this)&&this||{},r={},n=(n,o)=>{const i=e&&Mt(r,o)||o;Nt(r[i])&&Nt(n)?r[i]=t(r[i],n):Nt(n)?r[i]=t({},n):At(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t(It(e,((e,n)=>{r&&Tt(e)?t[n]=bt(e,r):t[n]=e}),{allOwnKeys:n}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,i,a;const s={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],n&&!n(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==r&&Et(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:Ot,kindOfTest:St,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(At(t))return t;let e=t.length;if(!kt(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:Wt,hasOwnProperty:Yt,hasOwnProp:Yt,reduceDescriptors:Gt,freezeMethods:t=>{Gt(t,((e,r)=>{if(Tt(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];Tt(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return At(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:Mt,global:Vt,isContextDefined:qt,ALPHABET:Kt,generateString:(t=16,e=Kt.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&Tt(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(Ct(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=At(t)?[]:{};return It(t,((t,e)=>{const i=r(t,n+1);!jt(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},isAsyncFn:Xt,isThenable:t=>t&&(Ct(t)||Tt(t))&&Tt(t.then)&&Tt(t.catch)};function te(t,e,r,n,o){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),n&&(this.request=n),o&&(this.response=o)}Zt.inherits(te,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:Zt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ee=te.prototype,re={};["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=>{re[t]={value:t}})),Object.defineProperties(te,re),Object.defineProperty(ee,"isAxiosError",{value:!0}),te.from=(t,e,r,n,o,i)=>{const a=Object.create(ee);return Zt.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),te.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};const ne=te;var oe=r(8628).hp;function ie(t){return Zt.isPlainObject(t)||Zt.isArray(t)}function ae(t){return Zt.endsWith(t,"[]")?t.slice(0,-2):t}function se(t,e,r){return t?t.concat(e).map((function(t,e){return t=ae(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const ue=Zt.toFlatObject(Zt,{},null,(function(t){return/^is[A-Z]/.test(t)}));const ce=function(t,e,r){if(!Zt.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=Zt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Zt.isUndefined(e[t])}))).metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Zt.isSpecCompliantForm(e);if(!Zt.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(Zt.isDate(t))return t.toISOString();if(!s&&Zt.isBlob(t))throw new ne("Blob is not supported. Use a Buffer instead.");return Zt.isArrayBuffer(t)||Zt.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):oe.from(t):t}function c(t,r,o){let s=t;if(t&&!o&&"object"==typeof t)if(Zt.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(Zt.isArray(t)&&function(t){return Zt.isArray(t)&&!t.some(ie)}(t)||(Zt.isFileList(t)||Zt.endsWith(r,"[]"))&&(s=Zt.toArray(t)))return r=ae(r),s.forEach((function(t,n){!Zt.isUndefined(t)&&null!==t&&e.append(!0===a?se([r],n,i):null===a?r:r+"[]",u(t))})),!1;return!!ie(t)||(e.append(se(o,r,i),u(t)),!1)}const f=[],l=Object.assign(ue,{defaultVisitor:c,convertValue:u,isVisitable:ie});if(!Zt.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!Zt.isUndefined(r)){if(-1!==f.indexOf(r))throw Error("Circular reference detected in "+n.join("."));f.push(r),Zt.forEach(r,(function(r,i){!0===(!(Zt.isUndefined(r)||null===r)&&o.call(e,r,Zt.isString(i)?i.trim():i,n,l))&&t(r,n?n.concat(i):[i])})),f.pop()}}(t),e};function fe(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function le(t,e){this._pairs=[],t&&ce(t,this,e)}const pe=le.prototype;pe.append=function(t,e){this._pairs.push([t,e])},pe.toString=function(t){const e=t?function(e){return t.call(this,e,fe)}:fe;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const he=le;function de(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ye(t,e,r){if(!e)return t;const n=r&&r.encode||de,o=r&&r.serialize;let i;if(i=o?o(e,r):Zt.isURLSearchParams(e)?e.toString():new he(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}const me=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,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){Zt.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},ve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ge={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:he,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},be="undefined"!=typeof window&&"undefined"!=typeof document,we=(Ee="undefined"!=typeof navigator&&navigator.product,be&&["ReactNative","NativeScript","NS"].indexOf(Ee)<0);var Ee;const Oe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,_e={...n,...ge};const Se=function(t){function e(t,r,n,o){let i=t[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=t.length;if(i=!i&&Zt.isArray(n)?n.length:i,s)return Zt.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&Zt.isObject(n[i])||(n[i]=[]);return e(t,r,n[i],o)&&Zt.isArray(n[i])&&(n[i]=function(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n{e(function(t){return Zt.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null};const xe={transitional:ve,adapter:["xhr","http"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=Zt.isObject(t);o&&Zt.isHTMLForm(t)&&(t=new FormData(t));if(Zt.isFormData(t))return n?JSON.stringify(Se(t)):t;if(Zt.isArrayBuffer(t)||Zt.isBuffer(t)||Zt.isStream(t)||Zt.isFile(t)||Zt.isBlob(t))return t;if(Zt.isArrayBufferView(t))return t.buffer;if(Zt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return ce(t,new _e.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return _e.isNode&&Zt.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=Zt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return ce(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),function(t,e,r){if(Zt.isString(t))try{return(e||JSON.parse)(t),Zt.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||xe.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&Zt.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw ne.from(t,ne.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_e.classes.FormData,Blob:_e.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Zt.forEach(["delete","get","head","post","put","patch"],(t=>{xe.headers[t]={}}));const Ae=xe,je=Zt.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"]),Pe=Symbol("internals");function Re(t){return t&&String(t).trim().toLowerCase()}function Te(t){return!1===t||null==t?t:Zt.isArray(t)?t.map(Te):String(t)}function ke(t,e,r,n,o){return Zt.isFunction(n)?n.call(this,e,r):(o&&(e=r),Zt.isString(e)?Zt.isString(n)?-1!==e.indexOf(n):Zt.isRegExp(n)?n.test(e):void 0:void 0)}class Ce{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=Re(e);if(!o)throw new Error("header name must be a non-empty string");const i=Zt.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=Te(t))}const i=(t,e)=>Zt.forEach(t,((t,r)=>o(t,r,e)));return Zt.isPlainObject(t)||t instanceof this.constructor?i(t,e):Zt.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?i((t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&je[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e):null!=t&&o(e,t,r),this}get(t,e){if(t=Re(t)){const r=Zt.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(Zt.isFunction(e))return e.call(this,t,r);if(Zt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Re(t)){const r=Zt.findKey(this,t);return!(!r||void 0===this[r]||e&&!ke(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=Re(t)){const o=Zt.findKey(r,t);!o||e&&!ke(0,r[o],o,e)||(delete r[o],n=!0)}}return Zt.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const o=e[r];t&&!ke(0,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return Zt.forEach(this,((n,o)=>{const i=Zt.findKey(r,o);if(i)return e[i]=Te(n),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete e[o],e[a]=Te(n),r[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Zt.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&Zt.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach((t=>r.set(t))),r}static accessor(t){const e=(this[Pe]=this[Pe]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=Re(t);e[n]||(!function(t,e){const r=Zt.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}(r,t),e[n]=!0)}return Zt.isArray(t)?t.forEach(n):n(t),this}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Zt.reduceDescriptors(Ce.prototype,(({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}})),Zt.freezeMethods(Ce);const Ne=Ce;function Be(t,e){const r=this||Ae,n=e||r,o=Ne.from(n.headers);let i=n.data;return Zt.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function Ue(t){return!(!t||!t.__CANCEL__)}function Le(t,e,r){ne.call(this,null==t?"canceled":t,ne.ERR_CANCELED,e,r),this.name="CanceledError"}Zt.inherits(Le,ne,{__CANCEL__:!0});const De=Le;const Fe=_e.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const a=[t+"="+encodeURIComponent(e)];Zt.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Zt.isString(n)&&a.push("path="+n),Zt.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.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:()=>null,remove(){}};function Ie(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Me=_e.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let r;function n(r){let n=r;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=n(window.location.href),function(t){const e=Zt.isString(t)?n(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return!0};const Ve=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const u=Date.now(),c=n[a];o||(o=u),r[i]=s,n[i]=u;let f=a,l=0;for(;f!==i;)l+=r[f++],f%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,u=n(s);r=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:o};c[e?"download":"upload"]=!0,t(c)}}const ze={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){let n=t.data;const o=Ne.from(t.headers).normalize();let i,a,{responseType:s,withXSRFToken:u}=t;function c(){t.cancelToken&&t.cancelToken.unsubscribe(i),t.signal&&t.signal.removeEventListener("abort",i)}if(Zt.isFormData(n))if(_e.hasStandardBrowserEnv||_e.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[t,...e]=a?a.split(";").map((t=>t.trim())).filter(Boolean):[];o.setContentType([t||"multipart/form-data",...e].join("; "))}let f=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+r))}const l=Ie(t.baseURL,t.url);function p(){if(!f)return;const n=Ne.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());!function(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new ne("Request failed with status code "+r.status,[ne.ERR_BAD_REQUEST,ne.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),c()}),(function(t){r(t),c()}),{data:s&&"text"!==s&&"json"!==s?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f}),f=null}if(f.open(t.method.toUpperCase(),ye(l,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,"onloadend"in f?f.onloadend=p:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(p)},f.onabort=function(){f&&(r(new ne("Request aborted",ne.ECONNABORTED,t,f)),f=null)},f.onerror=function(){r(new ne("Network Error",ne.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const n=t.transitional||ve;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new ne(e,n.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,t,f)),f=null},_e.hasStandardBrowserEnv&&(u&&Zt.isFunction(u)&&(u=u(t)),u||!1!==u&&Me(l))){const e=t.xsrfHeaderName&&t.xsrfCookieName&&Fe.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===n&&o.setContentType(null),"setRequestHeader"in f&&Zt.forEach(o.toJSON(),(function(t,e){f.setRequestHeader(e,t)})),Zt.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),s&&"json"!==s&&(f.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",qe(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",qe(t.onUploadProgress)),(t.cancelToken||t.signal)&&(i=e=>{f&&(r(!e||e.type?new De(null,t,f):e),f.abort(),f=null)},t.cancelToken&&t.cancelToken.subscribe(i),t.signal&&(t.signal.aborted?i():t.signal.addEventListener("abort",i)));const h=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(l);h&&-1===_e.protocols.indexOf(h)?r(new ne("Unsupported protocol "+h+":",ne.ERR_BAD_REQUEST,t)):f.send(n||null)}))}};Zt.forEach(ze,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const He=t=>`- ${t}`,We=t=>Zt.isFunction(t)||null===t||!1===t,Ye=t=>{t=Zt.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let r=e?t.length>1?"since :\n"+t.map(He).join("\n"):" "+He(t[0]):"as no adapter specified";throw new ne("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function $e(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new De(null,t)}function Ge(t){$e(t),t.headers=Ne.from(t.headers),t.data=Be.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return Ye(t.adapter||Ae.adapter)(t).then((function(e){return $e(t),e.data=Be.call(t,t.transformResponse,e),e.headers=Ne.from(e.headers),e}),(function(e){return Ue(e)||($e(t),e&&e.response&&(e.response.data=Be.call(t,t.transformResponse,e.response),e.response.headers=Ne.from(e.response.headers))),Promise.reject(e)}))}const Je=t=>t instanceof Ne?{...t}:t;function Qe(t,e){e=e||{};const r={};function n(t,e,r){return Zt.isPlainObject(t)&&Zt.isPlainObject(e)?Zt.merge.call({caseless:r},t,e):Zt.isPlainObject(e)?Zt.merge({},e):Zt.isArray(e)?e.slice():e}function o(t,e,r){return Zt.isUndefined(e)?Zt.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!Zt.isUndefined(e))return n(void 0,e)}function a(t,e){return Zt.isUndefined(e)?Zt.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function s(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}const u={url:i,method:i,data:i,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:(t,e)=>o(Je(t),Je(e),!0)};return Zt.forEach(Object.keys(Object.assign({},t,e)),(function(n){const i=u[n]||o,a=i(t[n],e[n],n);Zt.isUndefined(a)&&i!==s||(r[n]=a)})),r}const Ke="1.6.8",Xe={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Xe[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const Ze={};Xe.transitional=function(t,e,r){function n(t,e){return"[Axios v1.6.8] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new ne(n(o," has been removed"+(e?" in "+e:"")),ne.ERR_DEPRECATED);return e&&!Ze[o]&&(Ze[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};const tr={assertOptions:function(t,e,r){if("object"!=typeof t)throw new ne("options must be an object",ne.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],a=e[i];if(a){const e=t[i],r=void 0===e||a(e,i,t);if(!0!==r)throw new ne("option "+i+" must be "+r,ne.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new ne("Unknown option "+i,ne.ERR_BAD_OPTION)}},validators:Xe},er=tr.validators;class rr{constructor(t){this.defaults=t,this.interceptors={request:new me,response:new me}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const r=e.stack?e.stack.replace(/^.+\n/,""):"";t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Qe(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;void 0!==r&&tr.assertOptions(r,{silentJSONParsing:er.transitional(er.boolean),forcedJSONParsing:er.transitional(er.boolean),clarifyTimeoutError:er.transitional(er.boolean)},!1),null!=n&&(Zt.isFunction(n)?e.paramsSerializer={serialize:n}:tr.assertOptions(n,{encode:er.function,serialize:er.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&Zt.merge(o.common,o[e.method]);o&&Zt.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Ne.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let f,l=0;if(!s){const t=[Ge.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,u),f=t.length,c=Promise.resolve(e);l{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new De(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new or((function(e){t=e})),cancel:t}}}const ir=or;const ar={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(ar).forEach((([t,e])=>{ar[e]=t}));const sr=ar;const ur=function t(e){const r=new nr(e),n=bt(nr.prototype.request,r);return Zt.extend(n,nr.prototype,r,{allOwnKeys:!0}),Zt.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(Qe(e,r))},n}(Ae);ur.Axios=nr,ur.CanceledError=De,ur.CancelToken=ir,ur.isCancel=Ue,ur.VERSION=Ke,ur.toFormData=ce,ur.AxiosError=ne,ur.Cancel=ur.CanceledError,ur.all=function(t){return Promise.all(t)},ur.spread=function(t){return function(e){return t.apply(null,e)}},ur.isAxiosError=function(t){return Zt.isObject(t)&&!0===t.isAxiosError},ur.mergeConfig=Qe,ur.AxiosHeaders=Ne,ur.formToJSON=t=>Se(Zt.isHTMLForm(t)?new FormData(t):t),ur.getAdapter=Ye,ur.HttpStatusCode=sr,ur.default=ur;const cr=ur,{Axios:fr,AxiosError:lr,CanceledError:pr,isCancel:hr,CancelToken:dr,VERSION:yr,all:mr,Cancel:vr,isAxiosError:gr,spread:br,toFormData:wr,AxiosHeaders:Er,HttpStatusCode:Or,formToJSON:_r,getAdapter:Sr,mergeConfig:xr}=cr;r(7124),r(3111);var Ar=r(4815),jr=r.n(Ar);r(1617),r(5022),r(5171);function Pr(t){return Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pr(t)}function Rr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Tr(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=Pr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Pr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Pr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const kr={extends:{props:{formUniqueId:{type:String}},methods:{emitFieldValue:function(t,e){Nova.$emit("".concat(t,"-value"),e),!0===this.hasFormUniqueId&&Nova.$emit("".concat(this.formUniqueId,"-").concat(t,"-value"),e)},emitFieldValueChange:function(t,e){Nova.$emit("".concat(t,"-change"),e),!0===this.hasFormUniqueId&&Nova.$emit("".concat(this.formUniqueId,"-").concat(t,"-change"),e)},getFieldAttributeValueEventName:function(t){return!0===this.hasFormUniqueId?"".concat(this.formUniqueId,"-").concat(t,"-value"):"".concat(t,"-value")},getFieldAttributeChangeEventName:function(t){return!0===this.hasFormUniqueId?"".concat(this.formUniqueId,"-").concat(t,"-change"):"".concat(t,"-change")}},computed:{fieldAttribute:function(){return this.field.attribute},hasFormUniqueId:function(){return!ct()(this.formUniqueId)&&""!==this.formUniqueId},fieldAttributeValueEventName:function(){return this.getFieldAttributeValueEventName(this.fieldAttribute)},fieldAttributeChangeEventName:function(){return this.getFieldAttributeChangeEventName(this.fieldAttribute)}}},props:function(t){for(var e=1;e=0;i--)r=r.replace(n[i],o[i])}else console.error("Translation '".concat(r,"' for key '").concat(e,"' contains a null replacement."))})),r}(t,e)}}};r(4034);w(["resourceName"]);const Mr={props:{errors:{default:function(){return new Lr.I}}},inject:{index:{default:null},viaParent:{default:null}},data:function(){return{errorClass:"form-control-bordered-error"}},computed:{errorClasses:function(){return this.hasError?[this.errorClass]:[]},fieldAttribute:function(){return this.field.attribute},validationKey:function(){return this.nestedValidationKey||this.field.validationKey},hasError:function(){return this.errors.has(this.validationKey)},firstError:function(){if(this.hasError)return this.errors.first(this.validationKey)},nestedAttribute:function(){if(this.viaParent)return"".concat(this.viaParent,"[").concat(this.index,"][").concat(this.field.attribute,"]")},nestedValidationKey:function(){if(this.viaParent)return"".concat(this.viaParent,".").concat(this.index,".fields.").concat(this.field.attribute)}}};r(3057);Boolean;r(7118);const Vr={mixins:[kr,Mr],props:["resourceName","resourceId","field"],methods:{setInitialValue:function(){this.value=this.field.value||""},fill:function(t){t.append(this.fieldAttribute,this.value||"")}}},qr=(0,f.A)(Vr,[["render",function(t,e,r,n,o,a){var s=(0,i.resolveComponent)("nova-password-confirm-modal-input"),u=(0,i.resolveComponent)("DefaultField");return(0,i.openBlock)(),(0,i.createBlock)(u,{field:r.field,errors:t.errors,"show-help-text":t.showHelpText,"full-width-content":t.fullWidthContent},{field:(0,i.withCtx)((function(){return[(0,i.createVNode)(s,{field:r.field,resourceName:r.resourceName,resourceId:r.resourceId},null,8,["field","resourceName","resourceId"])]})),_:1},8,["field","errors","show-help-text","full-width-content"])}]]);var zr={class:"npcm--flex npcm--flex-row npcm--items-center npcm--justify-start npcm--gap-x-2.5"},Hr=["id","readonly","disabled","placeholder"],Wr={class:"npcm--flex-none"};const Yr={mixins:[kr,Mr,Ir,u],props:{resourceId:{type:[String,Number],required:!0},resourceName:{type:String,required:!0},field:{type:Object,required:!0}},computed:{type:function(){return this.lock?"password":"text"},lock:function(){return!this.result||!this.result&&!this.field.readonly&&!this.field.disabled}},watch:{result:function(){var t=this;this.result&&this.$nextTick((function(){document.getElementById(t.field.attribute).focus()}))}}},$r=(0,f.A)(Yr,[["render",function(t,e,r,n,o,a){var s=(0,i.resolveComponent)("nova-password-confirm-modal"),u=(0,i.resolveComponent)("IconButton");return(0,i.openBlock)(),(0,i.createElementBlock)("div",zr,[(0,i.withDirectives)((0,i.createElementVNode)("input",{id:r.field.attribute,type:"text",readonly:a.lock,disabled:a.lock,class:(0,i.normalizeClass)(["npcm--shrink npcm--w-full form-control form-input form-control-bordered disabled:npcm--cursor-not-allowed",t.errorClasses]),placeholder:r.field.name,"onUpdate:modelValue":e[0]||(e[0]=function(e){return t.getValue=e})},null,10,Hr),[[i.vModelText,t.getValue]]),(0,i.createElementVNode)("div",Wr,[t.result?((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:1,class:"npcm--inline-flex npcm--gap-x-2 ml-3 npcm--justify-center npcm--items-center npcm--flex-row text-primary-500 npcm--cursor-pointer",onClick:e[2]||(e[2]=function(){return a.lock&&a.lock.apply(a,arguments)})},[(0,i.createVNode)(u,{iconType:"eye-off",type:"button"}),(0,i.createElementVNode)("span",null," ("+(0,i.toDisplayString)(t.countdown)+") ",1)])):((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,field:r.field,onResult:e[1]||(e[1]=function(e){return t.result=e}),resourceName:r.resourceName,resourceId:r.resourceId},null,8,["field","resourceName","resourceId"]))])])}]]);var Gr={class:"npcm--w-full"},Jr={class:"npcm--text-base"},Qr={class:"npcm--flex npcm--items-center npcm--gap-x-4 npcm--mb-4"},Kr=["src"],Xr={class:"npcm--font-bold npcm--text-xl"},Zr={class:"npcm--mb-1.5"},tn={class:"npcm--grid npcm--gap-y-1.5"},en=["placeholder"],rn={key:0},nn={key:1};var on=r(2505);function an(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}const sn="function"==typeof Proxy,un="devtools-plugin:setup";let cn,fn;function ln(){return void 0!==cn||("undefined"!=typeof window&&window.performance?(cn=!0,fn=window.performance):"undefined"!=typeof globalThis&&(null===(t=globalThis.perf_hooks)||void 0===t?void 0:t.performance)?(cn=!0,fn=globalThis.perf_hooks.performance):cn=!1),cn?fn.now():Date.now();var t}class pn{constructor(t,e){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=e;const r={};if(t.settings)for(const e in t.settings){const n=t.settings[e];r[e]=n.defaultValue}const n=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const t=localStorage.getItem(n),e=JSON.parse(t);Object.assign(o,e)}catch(t){}this.fallbacks={getSettings:()=>o,setSettings(t){try{localStorage.setItem(n,JSON.stringify(t))}catch(t){}o=t},now:()=>ln()},e&&e.on("plugin:settings:set",((t,e)=>{t===this.plugin.id&&this.fallbacks.setSettings(e)})),this.proxiedOn=new Proxy({},{get:(t,e)=>this.target?this.target.on[e]:(...t)=>{this.onQueue.push({method:e,args:t})}}),this.proxiedTarget=new Proxy({},{get:(t,e)=>this.target?this.target[e]:"on"===e?this.proxiedOn:Object.keys(this.fallbacks).includes(e)?(...t)=>(this.targetQueue.push({method:e,args:t,resolve:()=>{}}),this.fallbacks[e](...t)):(...t)=>new Promise((r=>{this.targetQueue.push({method:e,args:t,resolve:r})}))})}async setRealTarget(t){this.target=t;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function hn(t,e){const r=t,n=an(),o=an().__VUE_DEVTOOLS_GLOBAL_HOOK__,i=sn&&r.enableEarlyProxy;if(!o||!n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&i){const t=i?new pn(r,o):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:e,proxy:t}),t&&e(t.proxiedTarget)}else o.emit(un,t,e)}var dn="store";function yn(t,e){Object.keys(t).forEach((function(r){return e(t[r],r)}))}function mn(t){return null!==t&&"object"==typeof t}function vn(t,e,r){return e.indexOf(t)<0&&(r&&r.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function gn(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;wn(t,r,[],t._modules.root,!0),bn(t,r,e)}function bn(t,e,r){var n=t._state,o=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var a=t._wrappedGetters,s={},u={},c=(0,i.effectScope)(!0);c.run((function(){yn(a,(function(e,r){s[r]=function(t,e){return function(){return t(e)}}(e,t),u[r]=(0,i.computed)((function(){return s[r]()})),Object.defineProperty(t.getters,r,{get:function(){return u[r].value},enumerable:!0})}))})),t._state=(0,i.reactive)({data:e}),t._scope=c,t.strict&&function(t){(0,i.watch)((function(){return t._state.data}),(function(){0}),{deep:!0,flush:"sync"})}(t),n&&r&&t._withCommit((function(){n.data=null})),o&&o.stop()}function wn(t,e,r,n,o){var i=!r.length,a=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=n),!i&&!o){var s=On(e,r.slice(0,-1)),u=r[r.length-1];t._withCommit((function(){s[u]=n.state}))}var c=n.context=function(t,e,r){var n=""===e,o={dispatch:n?t.dispatch:function(r,n,o){var i=_n(r,n,o),a=i.payload,s=i.options,u=i.type;return s&&s.root||(u=e+u),t.dispatch(u,a)},commit:n?t.commit:function(r,n,o){var i=_n(r,n,o),a=i.payload,s=i.options,u=i.type;s&&s.root||(u=e+u),t.commit(u,a,s)}};return Object.defineProperties(o,{getters:{get:n?function(){return t.getters}:function(){return En(t,e)}},state:{get:function(){return On(t.state,r)}}}),o}(t,a,r);n.forEachMutation((function(e,r){!function(t,e,r,n){var o=t._mutations[e]||(t._mutations[e]=[]);o.push((function(e){r.call(t,n.state,e)}))}(t,a+r,e,c)})),n.forEachAction((function(e,r){var n=e.root?r:a+r,o=e.handler||e;!function(t,e,r,n){var o=t._actions[e]||(t._actions[e]=[]);o.push((function(e){var o,i=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,n,o,c)})),n.forEachGetter((function(e,r){!function(t,e,r,n){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return r(n.state,n.getters,t.state,t.getters)}}(t,a+r,e,c)})),n.forEachChild((function(n,i){wn(t,e,r.concat(i),n,o)}))}function En(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,n)===e){var i=o.slice(n);Object.defineProperty(r,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}function On(t,e){return e.reduce((function(t,e){return t[e]}),t)}function _n(t,e,r){return mn(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}var Sn="vuex:mutations",xn="vuex:actions",An="vuex",jn=0;function Pn(t,e){hn({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(r){r.addTimelineLayer({id:Sn,label:"Vuex Mutations",color:Rn}),r.addTimelineLayer({id:xn,label:"Vuex Actions",color:Rn}),r.addInspector({id:An,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree((function(r){if(r.app===t&&r.inspectorId===An)if(r.filter){var n=[];Nn(n,e._modules.root,r.filter,""),r.rootNodes=n}else r.rootNodes=[Cn(e._modules.root,"")]})),r.on.getInspectorState((function(r){if(r.app===t&&r.inspectorId===An){var n=r.nodeId;En(e,n),r.state=function(t,e,r){e="root"===r?e:e[r];var n=Object.keys(e),o={state:Object.keys(t.state).map((function(e){return{key:e,editable:!0,value:t.state[e]}}))};if(n.length){var i=function(t){var e={};return Object.keys(t).forEach((function(r){var n=r.split("/");if(n.length>1){var o=e,i=n.pop();n.forEach((function(t){o[t]||(o[t]={_custom:{value:{},display:t,tooltip:"Module",abstract:!0}}),o=o[t]._custom.value})),o[i]=Bn((function(){return t[r]}))}else e[r]=Bn((function(){return t[r]}))})),e}(e);o.getters=Object.keys(i).map((function(t){return{key:t.endsWith("/")?kn(t):t,editable:!1,value:Bn((function(){return i[t]}))}}))}return o}((o=e._modules,(a=(i=n).split("/").filter((function(t){return t}))).reduce((function(t,e,r){var n=t[e];if(!n)throw new Error('Missing module "'+e+'" for path "'+i+'".');return r===a.length-1?n:n._children}),"root"===i?o:o.root._children)),"root"===n?e.getters:e._makeLocalGettersCache,n)}var o,i,a})),r.on.editInspectorState((function(r){if(r.app===t&&r.inspectorId===An){var n=r.nodeId,o=r.path;"root"!==n&&(o=n.split("/").filter(Boolean).concat(o)),e._withCommit((function(){r.set(e._state.data,o,r.state.value)}))}})),e.subscribe((function(t,e){var n={};t.payload&&(n.payload=t.payload),n.state=e,r.notifyComponentUpdate(),r.sendInspectorTree(An),r.sendInspectorState(An),r.addTimelineEvent({layerId:Sn,event:{time:Date.now(),title:t.type,data:n}})})),e.subscribeAction({before:function(t,e){var n={};t.payload&&(n.payload=t.payload),t._id=jn++,t._time=Date.now(),n.state=e,r.addTimelineEvent({layerId:xn,event:{time:t._time,title:t.type,groupId:t._id,subtitle:"start",data:n}})},after:function(t,e){var n={},o=Date.now()-t._time;n.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},t.payload&&(n.payload=t.payload),n.state=e,r.addTimelineEvent({layerId:xn,event:{time:Date.now(),title:t.type,groupId:t._id,subtitle:"end",data:n}})}})}))}var Rn=8702998,Tn={label:"namespaced",textColor:16777215,backgroundColor:6710886};function kn(t){return t&&"root"!==t?t.split("/").slice(-2,-1)[0]:"Root"}function Cn(t,e){return{id:e||"root",label:kn(e),tags:t.namespaced?[Tn]:[],children:Object.keys(t._children).map((function(r){return Cn(t._children[r],e+r+"/")}))}}function Nn(t,e,r,n){n.includes(r)&&t.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:e.namespaced?[Tn]:[]}),Object.keys(e._children).forEach((function(o){Nn(t,e._children[o],r,n+o+"/")}))}function Bn(t){try{return t()}catch(t){return t}}var Un=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=("function"==typeof r?r():r)||{}},Ln={namespaced:{configurable:!0}};Ln.namespaced.get=function(){return!!this._rawModule.namespaced},Un.prototype.addChild=function(t,e){this._children[t]=e},Un.prototype.removeChild=function(t){delete this._children[t]},Un.prototype.getChild=function(t){return this._children[t]},Un.prototype.hasChild=function(t){return t in this._children},Un.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Un.prototype.forEachChild=function(t){yn(this._children,t)},Un.prototype.forEachGetter=function(t){this._rawModule.getters&&yn(this._rawModule.getters,t)},Un.prototype.forEachAction=function(t){this._rawModule.actions&&yn(this._rawModule.actions,t)},Un.prototype.forEachMutation=function(t){this._rawModule.mutations&&yn(this._rawModule.mutations,t)},Object.defineProperties(Un.prototype,Ln);var Dn=function(t){this.register([],t,!1)};function Fn(t,e,r){if(e.update(r),r.modules)for(var n in r.modules){if(!e.getChild(n))return void 0;Fn(t.concat(n),e.getChild(n),r.modules[n])}}Dn.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},Dn.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,r){return t+((e=e.getChild(r)).namespaced?r+"/":"")}),"")},Dn.prototype.update=function(t){Fn([],this.root,t)},Dn.prototype.register=function(t,e,r){var n=this;void 0===r&&(r=!0);var o=new Un(e,r);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);e.modules&&yn(e.modules,(function(e,o){n.register(t.concat(o),e,r)}))},Dn.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1],n=e.getChild(r);n&&n.runtime&&e.removeChild(r)},Dn.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1];return!!e&&e.hasChild(r)};var In=function(t){var e=this;void 0===t&&(t={});var r=t.plugins;void 0===r&&(r=[]);var n=t.strict;void 0===n&&(n=!1);var o=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Dn(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var i=this,a=this.dispatch,s=this.commit;this.dispatch=function(t,e){return a.call(i,t,e)},this.commit=function(t,e,r){return s.call(i,t,e,r)},this.strict=n;var u=this._modules.root.state;wn(this,u,[],this._modules.root),bn(this,u),r.forEach((function(t){return t(e)}))},Mn={state:{configurable:!0}};In.prototype.install=function(t,e){t.provide(e||dn,this),t.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&Pn(t,this)},Mn.state.get=function(){return this._state.data},Mn.state.set=function(t){0},In.prototype.commit=function(t,e,r){var n=this,o=_n(t,e,r),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),u=this._mutations[i];u&&(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,n.state)})))},In.prototype.dispatch=function(t,e){var r=this,n=_n(t,e),o=n.type,i=n.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,r.state)}))}catch(t){0}var u=s.length>1?Promise.all(s.map((function(t){return t(i)}))):s[0](i);return new Promise((function(t,e){u.then((function(e){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,r.state)}))}catch(t){0}t(e)}),(function(t){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,r.state,t)}))}catch(t){0}e(t)}))}))}},In.prototype.subscribe=function(t,e){return vn(t,this._subscribers,e)},In.prototype.subscribeAction=function(t,e){return vn("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},In.prototype.watch=function(t,e,r){var n=this;return(0,i.watch)((function(){return t(n.state,n.getters)}),e,Object.assign({},r))},In.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._state.data=t}))},In.prototype.registerModule=function(t,e,r){void 0===r&&(r={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),wn(this,this.state,t,this._modules.get(t),r.preserveState),bn(this,this.state)},In.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){delete On(e.state,t.slice(0,-1))[t[t.length-1]]})),gn(this)},In.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},In.prototype.hotUpdate=function(t){this._modules.update(t),gn(this,!0)},In.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(In.prototype,Mn);zn((function(t,e){var r={};return qn(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){var e=this.$store.state,r=this.$store.getters;if(t){var n=Hn(this.$store,"mapState",t);if(!n)return;e=n.context.state,r=n.context.getters}return"function"==typeof o?o.call(this,e,r):e[o]},r[n].vuex=!0})),r})),zn((function(t,e){var r={};return qn(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.commit;if(t){var i=Hn(this.$store,"mapMutations",t);if(!i)return;n=i.context.commit}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r}));var Vn=zn((function(t,e){var r={};return qn(e).forEach((function(e){var n=e.key,o=e.val;o=t+o,r[n]=function(){if(!t||Hn(this.$store,"mapGetters",t))return this.$store.getters[o]},r[n].vuex=!0})),r}));zn((function(t,e){var r={};return qn(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.dispatch;if(t){var i=Hn(this.$store,"mapActions",t);if(!i)return;n=i.context.dispatch}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r}));function qn(t){return function(t){return Array.isArray(t)||mn(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function zn(t){return function(e,r){return"string"!=typeof e?(r=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,r)}}function Hn(t,e,r){return t._modulesNamespaceMap[r]}function Wn(t){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(t)}function Yn(){Yn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new T(n||[]);return o(a,"_invoke",{value:A(t,r,s)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var w={};c(w,a,(function(){return this}));var E=Object.getPrototypeOf,O=E&&E(E(k([])));O&&O!==r&&n.call(O,a)&&(w=O);var _=b.prototype=v.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,s){var u=l(t[o],t,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Wn(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=j(s,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var c=l(e,r,n);if("normal"===c.type){if(o=n.done?y:h,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=y,n.method="throw",n.arg=c.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function k(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function $n(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function Gn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Jn(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=Wn(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wn(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const Qn={mixins:[Ir],props:{resourceId:{type:[String,Number],required:!0},resourceName:{type:String,required:!0},field:{type:Object,required:!0}},emits:["result"],data:function(){return{show:!1,working:!1,password:null,canceller:null,isError:!1,formError:null,isShaking:!1}},computed:function(t){for(var e=1;e=200&&t<422}});case 12:return s=t.sent,t.next=15,fetch(s.data).then((function(t){return t.text()}));case 15:u=t.sent,c=u.substring(0,u.length/2),f=u.substring(u.length/2,u.length),l=e.fromHex("".concat(f).concat(c)),e.$emit("result",l),e.password=null,e.working=!1,e.show=!1,t.next=34;break;case 25:t.prev=25,t.t0=t.catch(0),e.$refs.password.focus(),e.isError=!0,e.password=null,e.working=!1,e.shaking(),(0,on.isAxiosError)(t.t0)&&422===t.t0.response.status&&(e.formError=null===(p=t.t0.response.data.errors.password)||void 0===p?void 0:p[0]),Nova.error(e.__("npcm.showError"));case 34:case"end":return t.stop()}}),t,null,[[0,25]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){$n(i,n,o,a,s,"next",t)}function s(t){$n(i,n,o,a,s,"throw",t)}a(void 0)}))})()},toggle:function(){var t=this;this.show=!this.show,this.isError=!1,this.password=null,this.formError=null,this.isShaking=!1,this.working=!1,this.$nextTick((function(){t.show&&t.$refs.password.focus()}))}}},Kn=(0,f.A)(Qn,[["render",function(t,e,r,n,o,a){var s=(0,i.resolveComponent)("IconButton"),u=(0,i.resolveComponent)("ModalHeader"),c=(0,i.resolveComponent)("HelpText"),f=(0,i.resolveComponent)("ModalContent"),l=(0,i.resolveComponent)("BasicButton"),p=(0,i.resolveComponent)("DefaultButton"),h=(0,i.resolveComponent)("ModalFooter"),d=(0,i.resolveComponent)("Modal",!0);return(0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,null,[(0,i.createVNode)(s,{iconType:"eye",type:"button",class:"text-primary-500",onClick:(0,i.withModifiers)(a.toggle,["prevent","stop"])},null,8,["onClick"]),(0,i.createVNode)(d,{show:o.show,role:"alertdialog",size:"md",class:"npcm--h-dvh npcm--flex npcm--justify-center npcm--items-center"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",Gr,[(0,i.createElementVNode)("div",{class:(0,i.normalizeClass)(["npcm--w-full npcm--bg-white dark:npcm--bg-gray-800 npcm--rounded-lg npcm--shadow-lg npcm--overflow-hidden",{"npcm--animate-shake npcm--border-2 npcm--border-red-500":o.isShaking||o.isError}])},[(0,i.createVNode)(u,null,{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("span",Jr,(0,i.toDisplayString)(t.__("npcm.modalTitle")),1)]})),_:1}),(0,i.createElementVNode)("form",{onSubmit:e[1]||(e[1]=(0,i.withModifiers)((function(){return a.submit&&a.submit.apply(a,arguments)}),["prevent","stop"]))},[(0,i.createVNode)(f,{class:"pt-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",Qr,[(0,i.createElementVNode)("img",{src:t.currentUser.avatar,class:"npcm--max-w-12 npcm--rounded-md npcm--shrink npcm--object-contain"},null,8,Kr),(0,i.createElementVNode)("span",Xr,(0,i.toDisplayString)(t.currentUser.name),1)]),(0,i.createElementVNode)("p",Zr,(0,i.toDisplayString)(t.__("npcm.modalDescription")),1),(0,i.createElementVNode)("div",tn,[(0,i.withDirectives)((0,i.createElementVNode)("input",{type:"password","data-1p-ignore":"",ref:"password","onUpdate:modelValue":e[0]||(e[0]=function(t){return o.password=t}),class:(0,i.normalizeClass)(["npcm--shrink npcm--w-full form-control form-input form-control-bordered disabled:npcm--cursor-not-allowed",{"form-control-bordered-error":o.isError}]),placeholder:t.__("npcm.password")},null,10,en),[[i.vModelText,o.password,void 0,{trim:!0}]]),o.isError&&o.formError?((0,i.openBlock)(),(0,i.createBlock)(c,{key:0,class:"help-text-error"},{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(o.formError),1)]})),_:1})):(0,i.createCommentVNode)("",!0)])]})),_:1}),(0,i.createVNode)(h,{class:"npcm--flex npcm--flex-row npcm--items-center npcm--justify-end npcm--gap-x-2"},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(l,{disabled:o.working,type:"button",onClick:a.toggle,variant:"solid",class:"npcm--bg-red-500 dark:npcm--text-gray-900 npcm--text-white disabled:npcm--cursor-not-allowed"},{default:(0,i.withCtx)((function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(t.__("Cancel")),1)]})),_:1},8,["disabled","onClick"]),(0,i.createVNode)(p,{disabled:o.working||!o.password,type:"submit",class:"npcm--bg-[rgba(var(--colors-primary-500))] disabled:npcm--cursor-not-allowed"},{default:(0,i.withCtx)((function(){return[o.working?((0,i.openBlock)(),(0,i.createElementBlock)("span",rn,(0,i.toDisplayString)(t.__("npcm.working")),1)):((0,i.openBlock)(),(0,i.createElementBlock)("span",nn,(0,i.toDisplayString)(t.__("Confirm")),1))]})),_:1},8,["disabled"])]})),_:1})],32)],2)])]})),_:1},8,["show"])],64)}]]);Nova.booting((function(t,e){window.NovaPasswordConfirmModal=o,t.component("nova-password-confirm-modal",Kn),t.component("nova-password-confirm-modal-input",$r),t.component("index-nova-password-confirm-modal",l),t.component("detail-nova-password-confirm-modal",m),t.component("form-nova-password-confirm-modal",qr)}))},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=s(t),a=i[0],u=i[1],c=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),f=0,l=u>0?a-4:a;for(r=0;r>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=16383,s=0,c=n-o;sc?c:s+a));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var o,i,a=[],s=e;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8287:(t,e,r)=>{"use strict";var n=r(7526),o=r(251),i=r(4634);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(t).length;default:if(n)return V(t).length;e=(""+e).toLowerCase(),n=!0}}function y(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return P(this,e,r);case"latin1":case"binary":return R(this,e,r);case"base64":return x(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,o);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function g(t,e,r,n,o){var i,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var f=-1;for(i=r;is&&(r=s-u),i=r;i>=0;i--){for(var l=!0,p=0;po&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function x(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o239?4:c>223?3:c>191?2:1;if(o+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&c)<<6|63&i)>127&&(f=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),o+=l}return function(t){var e=t.length;if(e<=j)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},u.prototype.compare=function(t,e,r,n,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(i,a),c=this.slice(n,o),f=t.slice(e,r),l=0;lo)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return E(this,t,e,r);case"latin1":case"binary":return O(this,t,e,r);case"base64":return _(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function P(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;on)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function B(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o>>8*(n?o:1-o)}function U(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o>>8*(n?o:3-o)&255}function L(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(t,e,r,n,i){return i||L(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function F(t,e,r,n,i){return i||L(t,0,r,8),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUInt8=function(t,e){return e||C(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||C(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||C(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||C(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||C(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||C(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||C(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||C(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||C(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||N(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):U(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);N(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a|0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):U(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return D(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return D(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return F(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return F(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function q(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(I,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,r,n){for(var o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}},1894:t=>{t.exports="object"==typeof self?self.FormData:window.FormData},251:(t,e)=>{e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<>1,f=-7,l=r?o-1:0,p=r?-1:1,h=t[e+l];for(l+=p,i=h&(1<<-f)-1,h>>=-f,f+=s;f>0;i=256*i+t[e+l],l+=p,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=p,f-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,u,c=8*i-o-1,f=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+l>=1?p/u:p*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(e*u-1)*Math.pow(2,o),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+h]=255&s,h+=d,s/=256,o-=8);for(a=a<0;t[r+h]=255&a,h+=d,a/=256,c-=8);t[r+h-d]|=128*y}},4634:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},3613:()=>{},5606:t=>{var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var s,u=[],c=!1,f=-1;function l(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!c){var t=a(l);c=!0;for(var e=u.length;e;){for(s=u,u=[];++f1)for(var r=1;r{"use strict";e.A=(t,e)=>{const r=t.__vccOpts||t;for(const[t,n]of e)r[t]=n;return r}},983:(t,e,r)=>{function n(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var o=n(r(7028)),i=r(6254),a=n(r(3339));function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e0&&"back_forward"===window.performance.getEntriesByType("navigation")[0].type},r.handleBackForwardVisit=function(t){var e=this;window.history.state.version=t.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then((function(){e.restoreScrollPositions(),b(t)}))},r.locationVisit=function(t,e){try{window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify({preserveScroll:e})),window.location.href=t.href,m(window.location).href===m(t).href&&window.location.reload()}catch(t){return!1}},r.isLocationVisit=function(){try{return null!==window.sessionStorage.getItem("inertiaLocationVisit")}catch(t){return!1}},r.handleLocationVisit=function(t){var e,r,n,o,i=this,a=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),t.url+=window.location.hash,t.rememberedState=null!=(e=null==(r=window.history.state)?void 0:r.rememberedState)?e:{},t.scrollRegions=null!=(n=null==(o=window.history.state)?void 0:o.scrollRegions)?n:[],this.setPage(t,{preserveScroll:a.preserveScroll,preserveState:!0}).then((function(){a.preserveScroll&&i.restoreScrollPositions(),b(t)}))},r.isLocationVisitResponse=function(t){return t&&409===t.status&&t.headers["x-inertia-location"]},r.isInertiaResponse=function(t){return null==t?void 0:t.headers["x-inertia"]},r.createVisitId=function(){return this.visitId={},this.visitId},r.cancelVisit=function(t,e){var r=e.cancelled,n=void 0!==r&&r,o=e.interrupted,i=void 0!==o&&o;!t||t.completed||t.cancelled||t.interrupted||(t.cancelToken.cancel(),t.onCancel(),t.completed=!1,t.cancelled=n,t.interrupted=i,g(t),t.onFinish(t))},r.finishVisit=function(t){t.cancelled||t.interrupted||(t.completed=!0,t.cancelled=!1,t.interrupted=!1,g(t),t.onFinish(t))},r.resolvePreserveOption=function(t,e){return"function"==typeof t?t(e):"errors"===t?Object.keys(e.props.errors||{}).length>0:t},r.visit=function(t,r){var n=this,i=void 0===r?{}:r,a=i.method,u=void 0===a?e.IT.GET:a,f=i.data,p=void 0===f?{}:f,h=i.replace,g=void 0!==h&&h,b=i.preserveScroll,w=void 0!==b&&b,E=i.preserveState,O=void 0!==E&&E,_=i.only,S=void 0===_?[]:_,x=i.headers,A=void 0===x?{}:x,j=i.errorBag,P=void 0===j?"":j,R=i.forceFormData,T=void 0!==R&&R,k=i.onCancelToken,C=void 0===k?function(){}:k,N=i.onBefore,B=void 0===N?function(){}:N,U=i.onStart,L=void 0===U?function(){}:U,D=i.onProgress,F=void 0===D?function(){}:D,I=i.onFinish,M=void 0===I?function(){}:I,V=i.onCancel,q=void 0===V?function(){}:V,z=i.onSuccess,H=void 0===z?function(){}:z,W=i.onError,Y=void 0===W?function(){}:W,$=i.queryStringArrayFormat,G=void 0===$?"brackets":$,J="string"==typeof t?d(t):t;if(!function t(e){return e instanceof File||e instanceof Blob||e instanceof FileList&&e.length>0||e instanceof FormData&&Array.from(e.values()).some((function(e){return t(e)}))||"object"==typeof e&&null!==e&&Object.values(e).some((function(e){return t(e)}))}(p)&&!T||p instanceof FormData||(p=l(p)),!(p instanceof FormData)){var Q=y(u,J,p,G),K=Q[1];J=d(Q[0]),p=K}var X={url:J,method:u,data:p,replace:g,preserveScroll:w,preserveState:O,only:S,headers:A,errorBag:P,forceFormData:T,queryStringArrayFormat:G,cancelled:!1,completed:!1,interrupted:!1};if(!1!==B(X)&&function(t){return v("before",{cancelable:!0,detail:{visit:t}})}(X)){this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();var Z=this.createVisitId();this.activeVisit=s({},X,{onCancelToken:C,onBefore:B,onStart:L,onProgress:F,onFinish:M,onCancel:q,onSuccess:H,onError:Y,queryStringArrayFormat:G,cancelToken:o.CancelToken.source()}),C({cancel:function(){n.activeVisit&&n.cancelVisit(n.activeVisit,{cancelled:!0})}}),function(t){v("start",{detail:{visit:t}})}(X),L(X),o({method:u,url:m(J).href,data:u===e.IT.GET?{}:p,params:u===e.IT.GET?p:{},cancelToken:this.activeVisit.cancelToken.token,headers:s({},A,{Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},S.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":S.join(",")}:{},P&&P.length?{"X-Inertia-Error-Bag":P}:{},this.page.version?{"X-Inertia-Version":this.page.version}:{}),onUploadProgress:function(t){p instanceof FormData&&(t.percentage=Math.round(t.loaded/t.total*100),function(t){v("progress",{detail:{progress:t}})}(t),F(t))}}).then((function(t){var e;if(!n.isInertiaResponse(t))return Promise.reject({response:t});var r=t.data;S.length&&r.component===n.page.component&&(r.props=s({},n.page.props,r.props)),w=n.resolvePreserveOption(w,r),(O=n.resolvePreserveOption(O,r))&&null!=(e=window.history.state)&&e.rememberedState&&r.component===n.page.component&&(r.rememberedState=window.history.state.rememberedState);var o=J,i=d(r.url);return o.hash&&!i.hash&&m(o).href===i.href&&(i.hash=o.hash,r.url=i.href),n.setPage(r,{visitId:Z,replace:g,preserveScroll:w,preserveState:O})})).then((function(){var t=n.page.props.errors||{};if(Object.keys(t).length>0){var e=P?t[P]?t[P]:{}:t;return function(t){v("error",{detail:{errors:t}})}(e),Y(e)}return v("success",{detail:{page:n.page}}),H(n.page)})).catch((function(t){if(n.isInertiaResponse(t.response))return n.setPage(t.response.data,{visitId:Z});if(n.isLocationVisitResponse(t.response)){var e=d(t.response.headers["x-inertia-location"]),r=J;r.hash&&!e.hash&&m(r).href===e.href&&(e.hash=r.hash),n.locationVisit(e,!0===w)}else{if(!t.response)return Promise.reject(t);v("invalid",{cancelable:!0,detail:{response:t.response}})&&c.show(t.response.data)}})).then((function(){n.activeVisit&&n.finishVisit(n.activeVisit)})).catch((function(t){if(!o.isCancel(t)){var e=v("exception",{cancelable:!0,detail:{exception:t}});if(n.activeVisit&&n.finishVisit(n.activeVisit),e)return Promise.reject(t)}}))}},r.setPage=function(t,e){var r=this,n=void 0===e?{}:e,o=n.visitId,i=void 0===o?this.createVisitId():o,a=n.replace,s=void 0!==a&&a,u=n.preserveScroll,c=void 0!==u&&u,f=n.preserveState,l=void 0!==f&&f;return Promise.resolve(this.resolveComponent(t.component)).then((function(e){i===r.visitId&&(t.scrollRegions=t.scrollRegions||[],t.rememberedState=t.rememberedState||{},(s=s||d(t.url).href===window.location.href)?r.replaceState(t):r.pushState(t),r.swapComponent({component:e,page:t,preserveState:l}).then((function(){c||r.resetScrollPositions(),s||b(t)})))}))},r.pushState=function(t){this.page=t,window.history.pushState(t,"",t.url)},r.replaceState=function(t){this.page=t,window.history.replaceState(t,"",t.url)},r.handlePopstateEvent=function(t){var e=this;if(null!==t.state){var r=t.state,n=this.createVisitId();Promise.resolve(this.resolveComponent(r.component)).then((function(t){n===e.visitId&&(e.page=r,e.swapComponent({component:t,page:r,preserveState:!1}).then((function(){e.restoreScrollPositions(),b(r)})))}))}else{var o=d(this.page.url);o.hash=window.location.hash,this.replaceState(s({},this.page,{url:o.href})),this.resetScrollPositions()}},r.get=function(t,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(t,s({},n,{method:e.IT.GET,data:r}))},r.reload=function(t){return void 0===t&&(t={}),this.visit(window.location.href,s({},t,{preserveScroll:!0,preserveState:!0}))},r.replace=function(t,e){var r;return void 0===e&&(e={}),console.warn("Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia."+(null!=(r=e.method)?r:"get")+"() instead."),this.visit(t,s({preserveState:!0},e,{replace:!0}))},r.post=function(t,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(t,s({preserveState:!0},n,{method:e.IT.POST,data:r}))},r.put=function(t,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(t,s({preserveState:!0},n,{method:e.IT.PUT,data:r}))},r.patch=function(t,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(t,s({preserveState:!0},n,{method:e.IT.PATCH,data:r}))},r.delete=function(t,r){return void 0===r&&(r={}),this.visit(t,s({preserveState:!0},r,{method:e.IT.DELETE}))},r.remember=function(t,e){var r,n;void 0===e&&(e="default"),w||this.replaceState(s({},this.page,{rememberedState:s({},null==(r=this.page)?void 0:r.rememberedState,(n={},n[e]=t,n))}))},r.restore=function(t){var e,r;if(void 0===t&&(t="default"),!w)return null==(e=window.history.state)||null==(r=e.rememberedState)?void 0:r[t]},r.on=function(t,e){var r=function(t){var r=e(t);t.cancelable&&!t.defaultPrevented&&!1===r&&t.preventDefault()};return document.addEventListener("inertia:"+t,r),function(){return document.removeEventListener("inertia:"+t,r)}},t}(),O={buildDOMElement:function(t){var e=document.createElement("template");e.innerHTML=t;var r=e.content.firstChild;if(!t.startsWith("