@xy-planning-network/trees 0.11.6-dev-2 → 0.11.6-dev-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/trees.es.js +2768 -2659
- package/dist/trees.umd.js +13 -13
- package/package.json +1 -1
- package/src/lib-components/lists/DynamicTable.vue +37 -39
- package/src/lib-components/navigation/TablePaginator.vue +140 -0
- package/types/composables/table.d.ts +25 -11
- package/types/composables/useBulkTable.d.ts +0 -0
- package/types/composables/useTable.d.ts +4 -16
- package/types/lib-components/index.d.ts +3 -1
- package/types/lib-components/lists/TableActionButtons.vue.d.ts +1 -4
- package/types/lib-components/navigation/TablePaginator.vue.d.ts +16 -0
package/dist/trees.umd.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(function(_,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(_=typeof globalThis<"u"?globalThis:_||self,t(_.Trees={},_.Vue))})(this,function(_,t){"use strict";var jh=Object.defineProperty;var Hh=(_,t,et)=>t in _?jh(_,t,{enumerable:!0,configurable:!0,writable:!0,value:et}):_[t]=et;var Zr=(_,t,et)=>Hh(_,typeof t!="symbol"?t+"":t,et);function et(n,r){return function(){return n.apply(r,arguments)}}const{toString:is}=Object.prototype,{getPrototypeOf:Gn}=Object,Kt=(n=>r=>{const e=is.call(r);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ae=n=>(n=n.toLowerCase(),r=>Kt(r)===n),Gt=n=>r=>typeof r===n,{isArray:dt}=Array,_t=Gt("undefined");function ss(n){return n!==null&&!_t(n)&&n.constructor!==null&&!_t(n.constructor)&&Ee(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Qr=Ae("ArrayBuffer");function ls(n){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(n):r=n&&n.buffer&&Qr(n.buffer),r}const cs=Gt("string"),Ee=Gt("function"),eo=Gt("number"),Jt=n=>n!==null&&typeof n=="object",ds=n=>n===!0||n===!1,Xt=n=>{if(Kt(n)!=="object")return!1;const r=Gn(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},us=Ae("Date"),fs=Ae("File"),ps=Ae("Blob"),ms=Ae("FileList"),hs=n=>Jt(n)&&Ee(n.pipe),gs=n=>{let r;return n&&(typeof FormData=="function"&&n instanceof FormData||Ee(n.append)&&((r=Kt(n))==="formdata"||r==="object"&&Ee(n.toString)&&n.toString()==="[object FormData]"))},bs=Ae("URLSearchParams"),[ys,ws,xs,Cs]=["ReadableStream","Request","Response","Headers"].map(Ae),Es=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vt(n,r,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let o,a;if(typeof n!="object"&&(n=[n]),dt(n))for(o=0,a=n.length;o<a;o++)r.call(null,n[o],o,n);else{const i=e?Object.getOwnPropertyNames(n):Object.keys(n),s=i.length;let l;for(o=0;o<s;o++)l=i[o],r.call(null,n[l],l,n)}}function to(n,r){r=r.toLowerCase();const e=Object.keys(n);let o=e.length,a;for(;o-- >0;)if(a=e[o],r===a.toLowerCase())return a;return null}const tt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,no=n=>!_t(n)&&n!==tt;function Jn(){const{caseless:n}=no(this)&&this||{},r={},e=(o,a)=>{const i=n&&to(r,a)||a;Xt(r[i])&&Xt(o)?r[i]=Jn(r[i],o):Xt(o)?r[i]=Jn({},o):dt(o)?r[i]=o.slice():r[i]=o};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&vt(arguments[o],e);return r}const ks=(n,r,e,{allOwnKeys:o}={})=>(vt(r,(a,i)=>{e&&Ee(a)?n[i]=et(a,e):n[i]=a},{allOwnKeys:o}),n),Ds=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Ss=(n,r,e,o)=>{n.prototype=Object.create(r.prototype,o),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:r.prototype}),e&&Object.assign(n.prototype,e)},Ns=(n,r,e,o)=>{let a,i,s;const l={};if(r=r||{},n==null)return r;do{for(a=Object.getOwnPropertyNames(n),i=a.length;i-- >0;)s=a[i],(!o||o(s,n,r))&&!l[s]&&(r[s]=n[s],l[s]=!0);n=e!==!1&&Gn(n)}while(n&&(!e||e(n,r))&&n!==Object.prototype);return r},_s=(n,r,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=r.length;const o=n.indexOf(r,e);return o!==-1&&o===e},vs=n=>{if(!n)return null;if(dt(n))return n;let r=n.length;if(!eo(r))return null;const e=new Array(r);for(;r-- >0;)e[r]=n[r];return e},Ts=(n=>r=>n&&r instanceof n)(typeof Uint8Array<"u"&&Gn(Uint8Array)),$s=(n,r)=>{const o=(n&&n[Symbol.iterator]).call(n);let a;for(;(a=o.next())&&!a.done;){const i=a.value;r.call(n,i[0],i[1])}},Bs=(n,r)=>{let e;const o=[];for(;(e=n.exec(r))!==null;)o.push(e);return o},Ms=Ae("HTMLFormElement"),Vs=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,o,a){return o.toUpperCase()+a}),ro=(({hasOwnProperty:n})=>(r,e)=>n.call(r,e))(Object.prototype),Ps=Ae("RegExp"),oo=(n,r)=>{const e=Object.getOwnPropertyDescriptors(n),o={};vt(e,(a,i)=>{let s;(s=r(a,i,n))!==!1&&(o[i]=s||a)}),Object.defineProperties(n,o)},As=n=>{oo(n,(r,e)=>{if(Ee(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const o=n[e];if(Ee(o)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Rs=(n,r)=>{const e={},o=a=>{a.forEach(i=>{e[i]=!0})};return dt(n)?o(n):o(String(n).split(r)),e},Os=()=>{},Is=(n,r)=>n!=null&&Number.isFinite(n=+n)?n:r;function Ls(n){return!!(n&&Ee(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Fs=n=>{const r=new Array(10),e=(o,a)=>{if(Jt(o)){if(r.indexOf(o)>=0)return;if(!("toJSON"in o)){r[a]=o;const i=dt(o)?[]:{};return vt(o,(s,l)=>{const c=e(s,a+1);!_t(c)&&(i[l]=c)}),r[a]=void 0,i}}return o};return e(n,0)},js=Ae("AsyncFunction"),Hs=n=>n&&(Jt(n)||Ee(n))&&Ee(n.then)&&Ee(n.catch),ao=((n,r)=>n?setImmediate:r?((e,o)=>(tt.addEventListener("message",({source:a,data:i})=>{a===tt&&i===e&&o.length&&o.shift()()},!1),a=>{o.push(a),tt.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",Ee(tt.postMessage)),Us=typeof queueMicrotask<"u"?queueMicrotask.bind(tt):typeof process<"u"&&process.nextTick||ao,E={isArray:dt,isArrayBuffer:Qr,isBuffer:ss,isFormData:gs,isArrayBufferView:ls,isString:cs,isNumber:eo,isBoolean:ds,isObject:Jt,isPlainObject:Xt,isReadableStream:ys,isRequest:ws,isResponse:xs,isHeaders:Cs,isUndefined:_t,isDate:us,isFile:fs,isBlob:ps,isRegExp:Ps,isFunction:Ee,isStream:hs,isURLSearchParams:bs,isTypedArray:Ts,isFileList:ms,forEach:vt,merge:Jn,extend:ks,trim:Es,stripBOM:Ds,inherits:Ss,toFlatObject:Ns,kindOf:Kt,kindOfTest:Ae,endsWith:_s,toArray:vs,forEachEntry:$s,matchAll:Bs,isHTMLForm:Ms,hasOwnProperty:ro,hasOwnProp:ro,reduceDescriptors:oo,freezeMethods:As,toObjectSet:Rs,toCamelCase:Vs,noop:Os,toFiniteNumber:Is,findKey:to,global:tt,isContextDefined:no,isSpecCompliantForm:Ls,toJSONObject:Fs,isAsyncFn:js,isThenable:Hs,setImmediate:ao,asap:Us};function P(n,r,e,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",r&&(this.code=r),e&&(this.config=e),o&&(this.request=o),a&&(this.response=a,this.status=a.status?a.status:null)}E.inherits(P,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:E.toJSONObject(this.config),code:this.code,status:this.status}}});const io=P.prototype,so={};["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(n=>{so[n]={value:n}}),Object.defineProperties(P,so),Object.defineProperty(io,"isAxiosError",{value:!0}),P.from=(n,r,e,o,a,i)=>{const s=Object.create(io);return E.toFlatObject(n,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),P.call(s,n.message,r,e,o,a),s.cause=n,s.name=n.name,i&&Object.assign(s,i),s};const zs=null;function Xn(n){return E.isPlainObject(n)||E.isArray(n)}function lo(n){return E.endsWith(n,"[]")?n.slice(0,-2):n}function co(n,r,e){return n?n.concat(r).map(function(a,i){return a=lo(a),!e&&i?"["+a+"]":a}).join(e?".":""):r}function qs(n){return E.isArray(n)&&!n.some(Xn)}const Ws=E.toFlatObject(E,{},null,function(r){return/^is[A-Z]/.test(r)});function Zt(n,r,e){if(!E.isObject(n))throw new TypeError("target must be an object");r=r||new FormData,e=E.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!E.isUndefined(w[y])});const o=e.metaTokens,a=e.visitor||u,i=e.dots,s=e.indexes,c=(e.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(r);if(!E.isFunction(a))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(E.isDate(h))return h.toISOString();if(!c&&E.isBlob(h))throw new P("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(h)||E.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,y,w){let C=h;if(h&&!w&&typeof h=="object"){if(E.endsWith(y,"{}"))y=o?y:y.slice(0,-2),h=JSON.stringify(h);else if(E.isArray(h)&&qs(h)||(E.isFileList(h)||E.endsWith(y,"[]"))&&(C=E.toArray(h)))return y=lo(y),C.forEach(function(N,I){!(E.isUndefined(N)||N===null)&&r.append(s===!0?co([y],I,i):s===null?y:y+"[]",d(N))}),!1}return Xn(h)?!0:(r.append(co(w,y,i),d(h)),!1)}const f=[],p=Object.assign(Ws,{defaultVisitor:u,convertValue:d,isVisitable:Xn});function g(h,y){if(!E.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(h),E.forEach(h,function(C,D){(!(E.isUndefined(C)||C===null)&&a.call(r,C,E.isString(D)?D.trim():D,y,p))===!0&&g(C,y?y.concat(D):[D])}),f.pop()}}if(!E.isObject(n))throw new TypeError("data must be an object");return g(n),r}function uo(n){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(o){return r[o]})}function Zn(n,r){this._pairs=[],n&&Zt(n,this,r)}const fo=Zn.prototype;fo.append=function(r,e){this._pairs.push([r,e])},fo.toString=function(r){const e=r?function(o){return r.call(this,o,uo)}:uo;return this._pairs.map(function(a){return e(a[0])+"="+e(a[1])},"").join("&")};function Ys(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function po(n,r,e){if(!r)return n;const o=e&&e.encode||Ys;E.isFunction(e)&&(e={serialize:e});const a=e&&e.serialize;let i;if(a?i=a(r,e):i=E.isURLSearchParams(r)?r.toString():new Zn(r,e).toString(o),i){const s=n.indexOf("#");s!==-1&&(n=n.slice(0,s)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n}class mo{constructor(){this.handlers=[]}use(r,e,o){return this.handlers.push({fulfilled:r,rejected:e,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){E.forEach(this.handlers,function(o){o!==null&&r(o)})}}const ho={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ks={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Zn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Qn=typeof window<"u"&&typeof document<"u",er=typeof navigator=="object"&&navigator||void 0,Gs=Qn&&(!er||["ReactNative","NativeScript","NS"].indexOf(er.product)<0),Js=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Xs=Qn&&window.location.href||"http://localhost",de={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qn,hasStandardBrowserEnv:Gs,hasStandardBrowserWebWorkerEnv:Js,navigator:er,origin:Xs},Symbol.toStringTag,{value:"Module"})),...Ks};function Zs(n,r){return Zt(n,new de.classes.URLSearchParams,Object.assign({visitor:function(e,o,a,i){return de.isNode&&E.isBuffer(e)?(this.append(o,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},r))}function Qs(n){return E.matchAll(/\w+|\[(\w*)]/g,n).map(r=>r[0]==="[]"?"":r[1]||r[0])}function el(n){const r={},e=Object.keys(n);let o;const a=e.length;let i;for(o=0;o<a;o++)i=e[o],r[i]=n[i];return r}function go(n){function r(e,o,a,i){let s=e[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=i>=e.length;return s=!s&&E.isArray(a)?a.length:s,c?(E.hasOwnProp(a,s)?a[s]=[a[s],o]:a[s]=o,!l):((!a[s]||!E.isObject(a[s]))&&(a[s]=[]),r(e,o,a[s],i)&&E.isArray(a[s])&&(a[s]=el(a[s])),!l)}if(E.isFormData(n)&&E.isFunction(n.entries)){const e={};return E.forEachEntry(n,(o,a)=>{r(Qs(o),a,e,0)}),e}return null}function tl(n,r,e){if(E.isString(n))try{return(r||JSON.parse)(n),E.trim(n)}catch(o){if(o.name!=="SyntaxError")throw o}return(e||JSON.stringify)(n)}const Tt={transitional:ho,adapter:["xhr","http","fetch"],transformRequest:[function(r,e){const o=e.getContentType()||"",a=o.indexOf("application/json")>-1,i=E.isObject(r);if(i&&E.isHTMLForm(r)&&(r=new FormData(r)),E.isFormData(r))return a?JSON.stringify(go(r)):r;if(E.isArrayBuffer(r)||E.isBuffer(r)||E.isStream(r)||E.isFile(r)||E.isBlob(r)||E.isReadableStream(r))return r;if(E.isArrayBufferView(r))return r.buffer;if(E.isURLSearchParams(r))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Zs(r,this.formSerializer).toString();if((l=E.isFileList(r))||o.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Zt(l?{"files[]":r}:r,c&&new c,this.formSerializer)}}return i||a?(e.setContentType("application/json",!1),tl(r)):r}],transformResponse:[function(r){const e=this.transitional||Tt.transitional,o=e&&e.forcedJSONParsing,a=this.responseType==="json";if(E.isResponse(r)||E.isReadableStream(r))return r;if(r&&E.isString(r)&&(o&&!this.responseType||a)){const s=!(e&&e.silentJSONParsing)&&a;try{return JSON.parse(r)}catch(l){if(s)throw l.name==="SyntaxError"?P.from(l,P.ERR_BAD_RESPONSE,this,null,this.response):l}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],n=>{Tt.headers[n]={}});const nl=E.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"]),rl=n=>{const r={};let e,o,a;return n&&n.split(`
|
|
2
|
-
`).forEach(function(
|
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...e){const o=new this(r);return e.forEach(a=>o.set(a)),o}static accessor(r){const o=(this[bo]=this[bo]={accessors:{}}).accessors,a=this.prototype;function i(s){const l=$t(s);o[l]||(sl(a,s),o[l]=!0)}return E.isArray(r)?r.forEach(i):i(r),this}};ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(ye.prototype,({value:n},r)=>{let e=r[0].toUpperCase()+r.slice(1);return{get:()=>n,set(o){this[e]=o}}}),E.freezeMethods(ye);function nr(n,r){const e=this||Tt,o=r||e,a=ye.from(o.headers);let i=o.data;return E.forEach(n,function(l){i=l.call(e,i,a.normalize(),r?r.status:void 0)}),a.normalize(),i}function yo(n){return!!(n&&n.__CANCEL__)}function ut(n,r,e){P.call(this,n??"canceled",P.ERR_CANCELED,r,e),this.name="CanceledError"}E.inherits(ut,P,{__CANCEL__:!0});function wo(n,r,e){const o=e.config.validateStatus;!e.status||!o||o(e.status)?n(e):r(new P("Request failed with status code "+e.status,[P.ERR_BAD_REQUEST,P.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function ll(n){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return r&&r[1]||""}function cl(n,r){n=n||10;const e=new Array(n),o=new Array(n);let a=0,i=0,s;return r=r!==void 0?r:1e3,function(c){const d=Date.now(),u=o[i];s||(s=d),e[a]=c,o[a]=d;let f=i,p=0;for(;f!==a;)p+=e[f++],f=f%n;if(a=(a+1)%n,a===i&&(i=(i+1)%n),d-s<r)return;const g=u&&d-u;return g?Math.round(p*1e3/g):void 0}}function dl(n,r){let e=0,o=1e3/r,a,i;const s=(d,u=Date.now())=>{e=u,a=null,i&&(clearTimeout(i),i=null),n.apply(null,d)};return[(...d)=>{const u=Date.now(),f=u-e;f>=o?s(d,u):(a=d,i||(i=setTimeout(()=>{i=null,s(a)},o-f)))},()=>a&&s(a)]}const en=(n,r,e=3)=>{let o=0;const a=cl(50,250);return dl(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-o,d=a(c),u=s<=l;o=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-s)/d:void 0,event:i,lengthComputable:l!=null,[r?"download":"upload"]:!0};n(f)},e)},xo=(n,r)=>{const e=n!=null;return[o=>r[0]({lengthComputable:e,total:n,loaded:o}),r[1]]},Co=n=>(...r)=>E.asap(()=>n(...r)),ul=de.hasStandardBrowserEnv?((n,r)=>e=>(e=new URL(e,de.origin),n.protocol===e.protocol&&n.host===e.host&&(r||n.port===e.port)))(new URL(de.origin),de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent)):()=>!0,fl=de.hasStandardBrowserEnv?{write(n,r,e,o,a,i){const s=[n+"="+encodeURIComponent(r)];E.isNumber(e)&&s.push("expires="+new Date(e).toGMTString()),E.isString(o)&&s.push("path="+o),E.isString(a)&&s.push("domain="+a),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pl(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function ml(n,r){return r?n.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):n}function Eo(n,r,e){let o=!pl(r);return n&&o||e==!1?ml(n,r):r}const ko=n=>n instanceof ye?{...n}:n;function nt(n,r){r=r||{};const e={};function o(d,u,f,p){return E.isPlainObject(d)&&E.isPlainObject(u)?E.merge.call({caseless:p},d,u):E.isPlainObject(u)?E.merge({},u):E.isArray(u)?u.slice():u}function a(d,u,f,p){if(E.isUndefined(u)){if(!E.isUndefined(d))return o(void 0,d,f,p)}else return o(d,u,f,p)}function i(d,u){if(!E.isUndefined(u))return o(void 0,u)}function s(d,u){if(E.isUndefined(u)){if(!E.isUndefined(d))return o(void 0,d)}else return o(void 0,u)}function l(d,u,f){if(f in r)return o(d,u);if(f in n)return o(void 0,d)}const c={url:i,method:i,data:i,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:l,headers:(d,u,f)=>a(ko(d),ko(u),f,!0)};return E.forEach(Object.keys(Object.assign({},n,r)),function(u){const f=c[u]||a,p=f(n[u],r[u],u);E.isUndefined(p)&&f!==l||(e[u]=p)}),e}const Do=n=>{const r=nt({},n);let{data:e,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:l}=r;r.headers=s=ye.from(s),r.url=po(Eo(r.baseURL,r.url,r.allowAbsoluteUrls),n.params,n.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(E.isFormData(e)){if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[d,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",...u].join("; "))}}if(de.hasStandardBrowserEnv&&(o&&E.isFunction(o)&&(o=o(r)),o||o!==!1&&ul(r.url))){const d=a&&i&&fl.read(i);d&&s.set(a,d)}return r},hl=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(e,o){const a=Do(n);let i=a.data;const s=ye.from(a.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=a,u,f,p,g,h;function y(){g&&g(),h&&h(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let w=new XMLHttpRequest;w.open(a.method.toUpperCase(),a.url,!0),w.timeout=a.timeout;function C(){if(!w)return;const N=ye.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),V={data:!l||l==="text"||l==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:N,config:n,request:w};wo(function($){e($),y()},function($){o($),y()},V),w=null}"onloadend"in w?w.onloadend=C:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(C)},w.onabort=function(){w&&(o(new P("Request aborted",P.ECONNABORTED,n,w)),w=null)},w.onerror=function(){o(new P("Network Error",P.ERR_NETWORK,n,w)),w=null},w.ontimeout=function(){let I=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const V=a.transitional||ho;a.timeoutErrorMessage&&(I=a.timeoutErrorMessage),o(new P(I,V.clarifyTimeoutError?P.ETIMEDOUT:P.ECONNABORTED,n,w)),w=null},i===void 0&&s.setContentType(null),"setRequestHeader"in w&&E.forEach(s.toJSON(),function(I,V){w.setRequestHeader(V,I)}),E.isUndefined(a.withCredentials)||(w.withCredentials=!!a.withCredentials),l&&l!=="json"&&(w.responseType=a.responseType),d&&([p,h]=en(d,!0),w.addEventListener("progress",p)),c&&w.upload&&([f,g]=en(c),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",g)),(a.cancelToken||a.signal)&&(u=N=>{w&&(o(!N||N.type?new ut(null,n,w):N),w.abort(),w=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const D=ll(a.url);if(D&&de.protocols.indexOf(D)===-1){o(new P("Unsupported protocol "+D+":",P.ERR_BAD_REQUEST,n));return}w.send(i||null)})},gl=(n,r)=>{const{length:e}=n=n?n.filter(Boolean):[];if(r||e){let o=new AbortController,a;const i=function(d){if(!a){a=!0,l();const u=d instanceof Error?d:this.reason;o.abort(u instanceof P?u:new ut(u instanceof Error?u.message:u))}};let s=r&&setTimeout(()=>{s=null,i(new P(`timeout ${r} of ms exceeded`,P.ETIMEDOUT))},r);const l=()=>{n&&(s&&clearTimeout(s),s=null,n.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),n=null)};n.forEach(d=>d.addEventListener("abort",i));const{signal:c}=o;return c.unsubscribe=()=>E.asap(l),c}},bl=function*(n,r){let e=n.byteLength;if(e<r){yield n;return}let o=0,a;for(;o<e;)a=o+r,yield n.slice(o,a),o=a},yl=async function*(n,r){for await(const e of wl(n))yield*bl(e,r)},wl=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const r=n.getReader();try{for(;;){const{done:e,value:o}=await r.read();if(e)break;yield o}}finally{await r.cancel()}},So=(n,r,e,o)=>{const a=yl(n,r);let i=0,s,l=c=>{s||(s=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await a.next();if(d){l(),c.close();return}let f=u.byteLength;if(e){let p=i+=f;e(p)}c.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(c){return l(c),a.return()}},{highWaterMark:2})},tn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",No=tn&&typeof ReadableStream=="function",xl=tn&&(typeof TextEncoder=="function"?(n=>r=>n.encode(r))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),_o=(n,...r)=>{try{return!!n(...r)}catch{return!1}},Cl=No&&_o(()=>{let n=!1;const r=new Request(de.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!r}),vo=64*1024,rr=No&&_o(()=>E.isReadableStream(new Response("").body)),nn={stream:rr&&(n=>n.body)};tn&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!nn[r]&&(nn[r]=E.isFunction(n[r])?e=>e[r]():(e,o)=>{throw new P(`Response type '${r}' is not supported`,P.ERR_NOT_SUPPORT,o)})})})(new Response);const El=async n=>{if(n==null)return 0;if(E.isBlob(n))return n.size;if(E.isSpecCompliantForm(n))return(await new Request(de.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(E.isArrayBufferView(n)||E.isArrayBuffer(n))return n.byteLength;if(E.isURLSearchParams(n)&&(n=n+""),E.isString(n))return(await xl(n)).byteLength},kl=async(n,r)=>{const e=E.toFiniteNumber(n.getContentLength());return e??El(r)},or={http:zs,xhr:hl,fetch:tn&&(async n=>{let{url:r,method:e,data:o,signal:a,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:u,withCredentials:f="same-origin",fetchOptions:p}=Do(n);d=d?(d+"").toLowerCase():"text";let g=gl([a,i&&i.toAbortSignal()],s),h;const y=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let w;try{if(c&&Cl&&e!=="get"&&e!=="head"&&(w=await kl(u,o))!==0){let V=new Request(r,{method:"POST",body:o,duplex:"half"}),j;if(E.isFormData(o)&&(j=V.headers.get("content-type"))&&u.setContentType(j),V.body){const[$,ce]=xo(w,en(Co(c)));o=So(V.body,vo,$,ce)}}E.isString(f)||(f=f?"include":"omit");const C="credentials"in Request.prototype;h=new Request(r,{...p,signal:g,method:e.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:C?f:void 0});let D=await fetch(h);const N=rr&&(d==="stream"||d==="response");if(rr&&(l||N&&y)){const V={};["status","statusText","headers"].forEach(L=>{V[L]=D[L]});const j=E.toFiniteNumber(D.headers.get("content-length")),[$,ce]=l&&xo(j,en(Co(l),!0))||[];D=new Response(So(D.body,vo,$,()=>{ce&&ce(),y&&y()}),V)}d=d||"text";let I=await nn[E.findKey(nn,d)||"text"](D,n);return!N&&y&&y(),await new Promise((V,j)=>{wo(V,j,{data:I,headers:ye.from(D.headers),status:D.status,statusText:D.statusText,config:n,request:h})})}catch(C){throw y&&y(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new P("Network Error",P.ERR_NETWORK,n,h),{cause:C.cause||C}):P.from(C,C&&C.code,n,h)}})};E.forEach(or,(n,r)=>{if(n){try{Object.defineProperty(n,"name",{value:r})}catch{}Object.defineProperty(n,"adapterName",{value:r})}});const To=n=>`- ${n}`,Dl=n=>E.isFunction(n)||n===null||n===!1,$o={getAdapter:n=>{n=E.isArray(n)?n:[n];const{length:r}=n;let e,o;const a={};for(let i=0;i<r;i++){e=n[i];let s;if(o=e,!Dl(e)&&(o=or[(s=String(e)).toLowerCase()],o===void 0))throw new P(`Unknown adapter '${s}'`);if(o)break;a[s||"#"+i]=o}if(!o){const i=Object.entries(a).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=r?i.length>1?`since :
|
|
4
|
-
`+
|
|
5
|
-
`):" "+
|
|
6
|
-
`+
|
|
7
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return e=n[Symbol.iterator](),e.next.bind(e)}function we(n,r){if(n in r){for(var e=r[n],o=arguments.length,a=new Array(o>2?o-2:0),
|
|
1
|
+
(function(_,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(_=typeof globalThis<"u"?globalThis:_||self,t(_.Trees={},_.Vue))})(this,function(_,t){"use strict";var og=Object.defineProperty;var ag=(_,t,et)=>t in _?og(_,t,{enumerable:!0,configurable:!0,writable:!0,value:et}):_[t]=et;var no=(_,t,et)=>ag(_,typeof t!="symbol"?t+"":t,et);function et(n,r){return function(){return n.apply(r,arguments)}}const{toString:li}=Object.prototype,{getPrototypeOf:Xn}=Object,Xt=(n=>r=>{const e=li.call(r);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Pe=n=>(n=n.toLowerCase(),r=>Xt(r)===n),Zt=n=>r=>typeof r===n,{isArray:dt}=Array,_t=Zt("undefined");function ci(n){return n!==null&&!_t(n)&&n.constructor!==null&&!_t(n.constructor)&&Ee(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const ro=Pe("ArrayBuffer");function di(n){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(n):r=n&&n.buffer&&ro(n.buffer),r}const ui=Zt("string"),Ee=Zt("function"),oo=Zt("number"),Qt=n=>n!==null&&typeof n=="object",fi=n=>n===!0||n===!1,en=n=>{if(Xt(n)!=="object")return!1;const r=Xn(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},pi=Pe("Date"),mi=Pe("File"),hi=Pe("Blob"),gi=Pe("FileList"),bi=n=>Qt(n)&&Ee(n.pipe),yi=n=>{let r;return n&&(typeof FormData=="function"&&n instanceof FormData||Ee(n.append)&&((r=Xt(n))==="formdata"||r==="object"&&Ee(n.toString)&&n.toString()==="[object FormData]"))},wi=Pe("URLSearchParams"),[xi,Ci,Ei,ki]=["ReadableStream","Request","Response","Headers"].map(Pe),Di=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vt(n,r,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let o,a;if(typeof n!="object"&&(n=[n]),dt(n))for(o=0,a=n.length;o<a;o++)r.call(null,n[o],o,n);else{const s=e?Object.getOwnPropertyNames(n):Object.keys(n),i=s.length;let l;for(o=0;o<i;o++)l=s[o],r.call(null,n[l],l,n)}}function ao(n,r){r=r.toLowerCase();const e=Object.keys(n);let o=e.length,a;for(;o-- >0;)if(a=e[o],r===a.toLowerCase())return a;return null}const tt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,so=n=>!_t(n)&&n!==tt;function Zn(){const{caseless:n}=so(this)&&this||{},r={},e=(o,a)=>{const s=n&&ao(r,a)||a;en(r[s])&&en(o)?r[s]=Zn(r[s],o):en(o)?r[s]=Zn({},o):dt(o)?r[s]=o.slice():r[s]=o};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&vt(arguments[o],e);return r}const Ni=(n,r,e,{allOwnKeys:o}={})=>(vt(r,(a,s)=>{e&&Ee(a)?n[s]=et(a,e):n[s]=a},{allOwnKeys:o}),n),Si=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),_i=(n,r,e,o)=>{n.prototype=Object.create(r.prototype,o),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:r.prototype}),e&&Object.assign(n.prototype,e)},vi=(n,r,e,o)=>{let a,s,i;const l={};if(r=r||{},n==null)return r;do{for(a=Object.getOwnPropertyNames(n),s=a.length;s-- >0;)i=a[s],(!o||o(i,n,r))&&!l[i]&&(r[i]=n[i],l[i]=!0);n=e!==!1&&Xn(n)}while(n&&(!e||e(n,r))&&n!==Object.prototype);return r},Vi=(n,r,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=r.length;const o=n.indexOf(r,e);return o!==-1&&o===e},Ti=n=>{if(!n)return null;if(dt(n))return n;let r=n.length;if(!oo(r))return null;const e=new Array(r);for(;r-- >0;)e[r]=n[r];return e},$i=(n=>r=>n&&r instanceof n)(typeof Uint8Array<"u"&&Xn(Uint8Array)),Bi=(n,r)=>{const o=(n&&n[Symbol.iterator]).call(n);let a;for(;(a=o.next())&&!a.done;){const s=a.value;r.call(n,s[0],s[1])}},Mi=(n,r)=>{let e;const o=[];for(;(e=n.exec(r))!==null;)o.push(e);return o},Pi=Pe("HTMLFormElement"),Ai=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,o,a){return o.toUpperCase()+a}),io=(({hasOwnProperty:n})=>(r,e)=>n.call(r,e))(Object.prototype),Ri=Pe("RegExp"),lo=(n,r)=>{const e=Object.getOwnPropertyDescriptors(n),o={};vt(e,(a,s)=>{let i;(i=r(a,s,n))!==!1&&(o[s]=i||a)}),Object.defineProperties(n,o)},Oi=n=>{lo(n,(r,e)=>{if(Ee(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const o=n[e];if(Ee(o)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Ii=(n,r)=>{const e={},o=a=>{a.forEach(s=>{e[s]=!0})};return dt(n)?o(n):o(String(n).split(r)),e},Li=()=>{},Fi=(n,r)=>n!=null&&Number.isFinite(n=+n)?n:r;function ji(n){return!!(n&&Ee(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Hi=n=>{const r=new Array(10),e=(o,a)=>{if(Qt(o)){if(r.indexOf(o)>=0)return;if(!("toJSON"in o)){r[a]=o;const s=dt(o)?[]:{};return vt(o,(i,l)=>{const c=e(i,a+1);!_t(c)&&(s[l]=c)}),r[a]=void 0,s}}return o};return e(n,0)},Ui=Pe("AsyncFunction"),zi=n=>n&&(Qt(n)||Ee(n))&&Ee(n.then)&&Ee(n.catch),co=((n,r)=>n?setImmediate:r?((e,o)=>(tt.addEventListener("message",({source:a,data:s})=>{a===tt&&s===e&&o.length&&o.shift()()},!1),a=>{o.push(a),tt.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",Ee(tt.postMessage)),qi=typeof queueMicrotask<"u"?queueMicrotask.bind(tt):typeof process<"u"&&process.nextTick||co,E={isArray:dt,isArrayBuffer:ro,isBuffer:ci,isFormData:yi,isArrayBufferView:di,isString:ui,isNumber:oo,isBoolean:fi,isObject:Qt,isPlainObject:en,isReadableStream:xi,isRequest:Ci,isResponse:Ei,isHeaders:ki,isUndefined:_t,isDate:pi,isFile:mi,isBlob:hi,isRegExp:Ri,isFunction:Ee,isStream:bi,isURLSearchParams:wi,isTypedArray:$i,isFileList:gi,forEach:vt,merge:Zn,extend:Ni,trim:Di,stripBOM:Si,inherits:_i,toFlatObject:vi,kindOf:Xt,kindOfTest:Pe,endsWith:Vi,toArray:Ti,forEachEntry:Bi,matchAll:Mi,isHTMLForm:Pi,hasOwnProperty:io,hasOwnProp:io,reduceDescriptors:lo,freezeMethods:Oi,toObjectSet:Ii,toCamelCase:Ai,noop:Li,toFiniteNumber:Fi,findKey:ao,global:tt,isContextDefined:so,isSpecCompliantForm:ji,toJSONObject:Hi,isAsyncFn:Ui,isThenable:zi,setImmediate:co,asap:qi};function A(n,r,e,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",r&&(this.code=r),e&&(this.config=e),o&&(this.request=o),a&&(this.response=a,this.status=a.status?a.status:null)}E.inherits(A,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:E.toJSONObject(this.config),code:this.code,status:this.status}}});const uo=A.prototype,fo={};["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(n=>{fo[n]={value:n}}),Object.defineProperties(A,fo),Object.defineProperty(uo,"isAxiosError",{value:!0}),A.from=(n,r,e,o,a,s)=>{const i=Object.create(uo);return E.toFlatObject(n,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),A.call(i,n.message,r,e,o,a),i.cause=n,i.name=n.name,s&&Object.assign(i,s),i};const Wi=null;function Qn(n){return E.isPlainObject(n)||E.isArray(n)}function po(n){return E.endsWith(n,"[]")?n.slice(0,-2):n}function mo(n,r,e){return n?n.concat(r).map(function(a,s){return a=po(a),!e&&s?"["+a+"]":a}).join(e?".":""):r}function Yi(n){return E.isArray(n)&&!n.some(Qn)}const Ki=E.toFlatObject(E,{},null,function(r){return/^is[A-Z]/.test(r)});function tn(n,r,e){if(!E.isObject(n))throw new TypeError("target must be an object");r=r||new FormData,e=E.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!E.isUndefined(w[y])});const o=e.metaTokens,a=e.visitor||u,s=e.dots,i=e.indexes,c=(e.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(r);if(!E.isFunction(a))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(E.isDate(h))return h.toISOString();if(!c&&E.isBlob(h))throw new A("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(h)||E.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,y,w){let C=h;if(h&&!w&&typeof h=="object"){if(E.endsWith(y,"{}"))y=o?y:y.slice(0,-2),h=JSON.stringify(h);else if(E.isArray(h)&&Yi(h)||(E.isFileList(h)||E.endsWith(y,"[]"))&&(C=E.toArray(h)))return y=po(y),C.forEach(function(S,O){!(E.isUndefined(S)||S===null)&&r.append(i===!0?mo([y],O,s):i===null?y:y+"[]",d(S))}),!1}return Qn(h)?!0:(r.append(mo(w,y,s),d(h)),!1)}const f=[],p=Object.assign(Ki,{defaultVisitor:u,convertValue:d,isVisitable:Qn});function g(h,y){if(!E.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(h),E.forEach(h,function(C,D){(!(E.isUndefined(C)||C===null)&&a.call(r,C,E.isString(D)?D.trim():D,y,p))===!0&&g(C,y?y.concat(D):[D])}),f.pop()}}if(!E.isObject(n))throw new TypeError("data must be an object");return g(n),r}function ho(n){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(o){return r[o]})}function er(n,r){this._pairs=[],n&&tn(n,this,r)}const go=er.prototype;go.append=function(r,e){this._pairs.push([r,e])},go.toString=function(r){const e=r?function(o){return r.call(this,o,ho)}:ho;return this._pairs.map(function(a){return e(a[0])+"="+e(a[1])},"").join("&")};function Gi(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bo(n,r,e){if(!r)return n;const o=e&&e.encode||Gi;E.isFunction(e)&&(e={serialize:e});const a=e&&e.serialize;let s;if(a?s=a(r,e):s=E.isURLSearchParams(r)?r.toString():new er(r,e).toString(o),s){const i=n.indexOf("#");i!==-1&&(n=n.slice(0,i)),n+=(n.indexOf("?")===-1?"?":"&")+s}return n}class yo{constructor(){this.handlers=[]}use(r,e,o){return this.handlers.push({fulfilled:r,rejected:e,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){E.forEach(this.handlers,function(o){o!==null&&r(o)})}}const wo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ji={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:er,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},tr=typeof window<"u"&&typeof document<"u",nr=typeof navigator=="object"&&navigator||void 0,Xi=tr&&(!nr||["ReactNative","NativeScript","NS"].indexOf(nr.product)<0),Zi=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qi=tr&&window.location.href||"http://localhost",ce={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tr,hasStandardBrowserEnv:Xi,hasStandardBrowserWebWorkerEnv:Zi,navigator:nr,origin:Qi},Symbol.toStringTag,{value:"Module"})),...Ji};function el(n,r){return tn(n,new ce.classes.URLSearchParams,Object.assign({visitor:function(e,o,a,s){return ce.isNode&&E.isBuffer(e)?(this.append(o,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},r))}function tl(n){return E.matchAll(/\w+|\[(\w*)]/g,n).map(r=>r[0]==="[]"?"":r[1]||r[0])}function nl(n){const r={},e=Object.keys(n);let o;const a=e.length;let s;for(o=0;o<a;o++)s=e[o],r[s]=n[s];return r}function xo(n){function r(e,o,a,s){let i=e[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=s>=e.length;return i=!i&&E.isArray(a)?a.length:i,c?(E.hasOwnProp(a,i)?a[i]=[a[i],o]:a[i]=o,!l):((!a[i]||!E.isObject(a[i]))&&(a[i]=[]),r(e,o,a[i],s)&&E.isArray(a[i])&&(a[i]=nl(a[i])),!l)}if(E.isFormData(n)&&E.isFunction(n.entries)){const e={};return E.forEachEntry(n,(o,a)=>{r(tl(o),a,e,0)}),e}return null}function rl(n,r,e){if(E.isString(n))try{return(r||JSON.parse)(n),E.trim(n)}catch(o){if(o.name!=="SyntaxError")throw o}return(e||JSON.stringify)(n)}const Vt={transitional:wo,adapter:["xhr","http","fetch"],transformRequest:[function(r,e){const o=e.getContentType()||"",a=o.indexOf("application/json")>-1,s=E.isObject(r);if(s&&E.isHTMLForm(r)&&(r=new FormData(r)),E.isFormData(r))return a?JSON.stringify(xo(r)):r;if(E.isArrayBuffer(r)||E.isBuffer(r)||E.isStream(r)||E.isFile(r)||E.isBlob(r)||E.isReadableStream(r))return r;if(E.isArrayBufferView(r))return r.buffer;if(E.isURLSearchParams(r))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let l;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return el(r,this.formSerializer).toString();if((l=E.isFileList(r))||o.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return tn(l?{"files[]":r}:r,c&&new c,this.formSerializer)}}return s||a?(e.setContentType("application/json",!1),rl(r)):r}],transformResponse:[function(r){const e=this.transitional||Vt.transitional,o=e&&e.forcedJSONParsing,a=this.responseType==="json";if(E.isResponse(r)||E.isReadableStream(r))return r;if(r&&E.isString(r)&&(o&&!this.responseType||a)){const i=!(e&&e.silentJSONParsing)&&a;try{return JSON.parse(r)}catch(l){if(i)throw l.name==="SyntaxError"?A.from(l,A.ERR_BAD_RESPONSE,this,null,this.response):l}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ce.classes.FormData,Blob:ce.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],n=>{Vt.headers[n]={}});const ol=E.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"]),al=n=>{const r={};let e,o,a;return n&&n.split(`
|
|
2
|
+
`).forEach(function(i){a=i.indexOf(":"),e=i.substring(0,a).trim().toLowerCase(),o=i.substring(a+1).trim(),!(!e||r[e]&&ol[e])&&(e==="set-cookie"?r[e]?r[e].push(o):r[e]=[o]:r[e]=r[e]?r[e]+", "+o:o)}),r},Co=Symbol("internals");function Tt(n){return n&&String(n).trim().toLowerCase()}function nn(n){return n===!1||n==null?n:E.isArray(n)?n.map(nn):String(n)}function sl(n){const r=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=e.exec(n);)r[o[1]]=o[2];return r}const il=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function rr(n,r,e,o,a){if(E.isFunction(o))return o.call(this,r,e);if(a&&(r=e),!!E.isString(r)){if(E.isString(o))return r.indexOf(o)!==-1;if(E.isRegExp(o))return o.test(r)}}function ll(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,e,o)=>e.toUpperCase()+o)}function cl(n,r){const e=E.toCamelCase(" "+r);["get","set","has"].forEach(o=>{Object.defineProperty(n,o+e,{value:function(a,s,i){return this[o].call(this,r,a,s,i)},configurable:!0})})}let ye=class{constructor(r){r&&this.set(r)}set(r,e,o){const a=this;function s(l,c,d){const u=Tt(c);if(!u)throw new Error("header name must be a non-empty string");const f=E.findKey(a,u);(!f||a[f]===void 0||d===!0||d===void 0&&a[f]!==!1)&&(a[f||c]=nn(l))}const i=(l,c)=>E.forEach(l,(d,u)=>s(d,u,c));if(E.isPlainObject(r)||r instanceof this.constructor)i(r,e);else if(E.isString(r)&&(r=r.trim())&&!il(r))i(al(r),e);else if(E.isHeaders(r))for(const[l,c]of r.entries())s(c,l,o);else r!=null&&s(e,r,o);return this}get(r,e){if(r=Tt(r),r){const o=E.findKey(this,r);if(o){const a=this[o];if(!e)return a;if(e===!0)return sl(a);if(E.isFunction(e))return e.call(this,a,o);if(E.isRegExp(e))return e.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,e){if(r=Tt(r),r){const o=E.findKey(this,r);return!!(o&&this[o]!==void 0&&(!e||rr(this,this[o],o,e)))}return!1}delete(r,e){const o=this;let a=!1;function s(i){if(i=Tt(i),i){const l=E.findKey(o,i);l&&(!e||rr(o,o[l],l,e))&&(delete o[l],a=!0)}}return E.isArray(r)?r.forEach(s):s(r),a}clear(r){const e=Object.keys(this);let o=e.length,a=!1;for(;o--;){const s=e[o];(!r||rr(this,this[s],s,r,!0))&&(delete this[s],a=!0)}return a}normalize(r){const e=this,o={};return E.forEach(this,(a,s)=>{const i=E.findKey(o,s);if(i){e[i]=nn(a),delete e[s];return}const l=r?ll(s):String(s).trim();l!==s&&delete e[s],e[l]=nn(a),o[l]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const e=Object.create(null);return E.forEach(this,(o,a)=>{o!=null&&o!==!1&&(e[a]=r&&E.isArray(o)?o.join(", "):o)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,e])=>r+": "+e).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...e){const o=new this(r);return e.forEach(a=>o.set(a)),o}static accessor(r){const o=(this[Co]=this[Co]={accessors:{}}).accessors,a=this.prototype;function s(i){const l=Tt(i);o[l]||(cl(a,i),o[l]=!0)}return E.isArray(r)?r.forEach(s):s(r),this}};ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(ye.prototype,({value:n},r)=>{let e=r[0].toUpperCase()+r.slice(1);return{get:()=>n,set(o){this[e]=o}}}),E.freezeMethods(ye);function or(n,r){const e=this||Vt,o=r||e,a=ye.from(o.headers);let s=o.data;return E.forEach(n,function(l){s=l.call(e,s,a.normalize(),r?r.status:void 0)}),a.normalize(),s}function Eo(n){return!!(n&&n.__CANCEL__)}function ut(n,r,e){A.call(this,n??"canceled",A.ERR_CANCELED,r,e),this.name="CanceledError"}E.inherits(ut,A,{__CANCEL__:!0});function ko(n,r,e){const o=e.config.validateStatus;!e.status||!o||o(e.status)?n(e):r(new A("Request failed with status code "+e.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function dl(n){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return r&&r[1]||""}function ul(n,r){n=n||10;const e=new Array(n),o=new Array(n);let a=0,s=0,i;return r=r!==void 0?r:1e3,function(c){const d=Date.now(),u=o[s];i||(i=d),e[a]=c,o[a]=d;let f=s,p=0;for(;f!==a;)p+=e[f++],f=f%n;if(a=(a+1)%n,a===s&&(s=(s+1)%n),d-i<r)return;const g=u&&d-u;return g?Math.round(p*1e3/g):void 0}}function fl(n,r){let e=0,o=1e3/r,a,s;const i=(d,u=Date.now())=>{e=u,a=null,s&&(clearTimeout(s),s=null),n.apply(null,d)};return[(...d)=>{const u=Date.now(),f=u-e;f>=o?i(d,u):(a=d,s||(s=setTimeout(()=>{s=null,i(a)},o-f)))},()=>a&&i(a)]}const rn=(n,r,e=3)=>{let o=0;const a=ul(50,250);return fl(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,c=i-o,d=a(c),u=i<=l;o=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-i)/d:void 0,event:s,lengthComputable:l!=null,[r?"download":"upload"]:!0};n(f)},e)},Do=(n,r)=>{const e=n!=null;return[o=>r[0]({lengthComputable:e,total:n,loaded:o}),r[1]]},No=n=>(...r)=>E.asap(()=>n(...r)),pl=ce.hasStandardBrowserEnv?((n,r)=>e=>(e=new URL(e,ce.origin),n.protocol===e.protocol&&n.host===e.host&&(r||n.port===e.port)))(new URL(ce.origin),ce.navigator&&/(msie|trident)/i.test(ce.navigator.userAgent)):()=>!0,ml=ce.hasStandardBrowserEnv?{write(n,r,e,o,a,s){const i=[n+"="+encodeURIComponent(r)];E.isNumber(e)&&i.push("expires="+new Date(e).toGMTString()),E.isString(o)&&i.push("path="+o),E.isString(a)&&i.push("domain="+a),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hl(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function gl(n,r){return r?n.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):n}function So(n,r,e){let o=!hl(r);return n&&o||e==!1?gl(n,r):r}const _o=n=>n instanceof ye?{...n}:n;function nt(n,r){r=r||{};const e={};function o(d,u,f,p){return E.isPlainObject(d)&&E.isPlainObject(u)?E.merge.call({caseless:p},d,u):E.isPlainObject(u)?E.merge({},u):E.isArray(u)?u.slice():u}function a(d,u,f,p){if(E.isUndefined(u)){if(!E.isUndefined(d))return o(void 0,d,f,p)}else return o(d,u,f,p)}function s(d,u){if(!E.isUndefined(u))return o(void 0,u)}function i(d,u){if(E.isUndefined(u)){if(!E.isUndefined(d))return o(void 0,d)}else return o(void 0,u)}function l(d,u,f){if(f in r)return o(d,u);if(f in n)return o(void 0,d)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(d,u,f)=>a(_o(d),_o(u),f,!0)};return E.forEach(Object.keys(Object.assign({},n,r)),function(u){const f=c[u]||a,p=f(n[u],r[u],u);E.isUndefined(p)&&f!==l||(e[u]=p)}),e}const vo=n=>{const r=nt({},n);let{data:e,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:s,headers:i,auth:l}=r;r.headers=i=ye.from(i),r.url=bo(So(r.baseURL,r.url,r.allowAbsoluteUrls),n.params,n.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(E.isFormData(e)){if(ce.hasStandardBrowserEnv||ce.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[d,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([d||"multipart/form-data",...u].join("; "))}}if(ce.hasStandardBrowserEnv&&(o&&E.isFunction(o)&&(o=o(r)),o||o!==!1&&pl(r.url))){const d=a&&s&&ml.read(s);d&&i.set(a,d)}return r},bl=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(e,o){const a=vo(n);let s=a.data;const i=ye.from(a.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=a,u,f,p,g,h;function y(){g&&g(),h&&h(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let w=new XMLHttpRequest;w.open(a.method.toUpperCase(),a.url,!0),w.timeout=a.timeout;function C(){if(!w)return;const S=ye.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),P={data:!l||l==="text"||l==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:S,config:n,request:w};ko(function(B){e(B),y()},function(B){o(B),y()},P),w=null}"onloadend"in w?w.onloadend=C:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(C)},w.onabort=function(){w&&(o(new A("Request aborted",A.ECONNABORTED,n,w)),w=null)},w.onerror=function(){o(new A("Network Error",A.ERR_NETWORK,n,w)),w=null},w.ontimeout=function(){let O=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const P=a.transitional||wo;a.timeoutErrorMessage&&(O=a.timeoutErrorMessage),o(new A(O,P.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,n,w)),w=null},s===void 0&&i.setContentType(null),"setRequestHeader"in w&&E.forEach(i.toJSON(),function(O,P){w.setRequestHeader(P,O)}),E.isUndefined(a.withCredentials)||(w.withCredentials=!!a.withCredentials),l&&l!=="json"&&(w.responseType=a.responseType),d&&([p,h]=rn(d,!0),w.addEventListener("progress",p)),c&&w.upload&&([f,g]=rn(c),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",g)),(a.cancelToken||a.signal)&&(u=S=>{w&&(o(!S||S.type?new ut(null,n,w):S),w.abort(),w=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const D=dl(a.url);if(D&&ce.protocols.indexOf(D)===-1){o(new A("Unsupported protocol "+D+":",A.ERR_BAD_REQUEST,n));return}w.send(s||null)})},yl=(n,r)=>{const{length:e}=n=n?n.filter(Boolean):[];if(r||e){let o=new AbortController,a;const s=function(d){if(!a){a=!0,l();const u=d instanceof Error?d:this.reason;o.abort(u instanceof A?u:new ut(u instanceof Error?u.message:u))}};let i=r&&setTimeout(()=>{i=null,s(new A(`timeout ${r} of ms exceeded`,A.ETIMEDOUT))},r);const l=()=>{n&&(i&&clearTimeout(i),i=null,n.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),n=null)};n.forEach(d=>d.addEventListener("abort",s));const{signal:c}=o;return c.unsubscribe=()=>E.asap(l),c}},wl=function*(n,r){let e=n.byteLength;if(e<r){yield n;return}let o=0,a;for(;o<e;)a=o+r,yield n.slice(o,a),o=a},xl=async function*(n,r){for await(const e of Cl(n))yield*wl(e,r)},Cl=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const r=n.getReader();try{for(;;){const{done:e,value:o}=await r.read();if(e)break;yield o}}finally{await r.cancel()}},Vo=(n,r,e,o)=>{const a=xl(n,r);let s=0,i,l=c=>{i||(i=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await a.next();if(d){l(),c.close();return}let f=u.byteLength;if(e){let p=s+=f;e(p)}c.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(c){return l(c),a.return()}},{highWaterMark:2})},on=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",To=on&&typeof ReadableStream=="function",El=on&&(typeof TextEncoder=="function"?(n=>r=>n.encode(r))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),$o=(n,...r)=>{try{return!!n(...r)}catch{return!1}},kl=To&&$o(()=>{let n=!1;const r=new Request(ce.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!r}),Bo=64*1024,ar=To&&$o(()=>E.isReadableStream(new Response("").body)),an={stream:ar&&(n=>n.body)};on&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!an[r]&&(an[r]=E.isFunction(n[r])?e=>e[r]():(e,o)=>{throw new A(`Response type '${r}' is not supported`,A.ERR_NOT_SUPPORT,o)})})})(new Response);const Dl=async n=>{if(n==null)return 0;if(E.isBlob(n))return n.size;if(E.isSpecCompliantForm(n))return(await new Request(ce.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(E.isArrayBufferView(n)||E.isArrayBuffer(n))return n.byteLength;if(E.isURLSearchParams(n)&&(n=n+""),E.isString(n))return(await El(n)).byteLength},Nl=async(n,r)=>{const e=E.toFiniteNumber(n.getContentLength());return e??Dl(r)},sr={http:Wi,xhr:bl,fetch:on&&(async n=>{let{url:r,method:e,data:o,signal:a,cancelToken:s,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:u,withCredentials:f="same-origin",fetchOptions:p}=vo(n);d=d?(d+"").toLowerCase():"text";let g=yl([a,s&&s.toAbortSignal()],i),h;const y=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let w;try{if(c&&kl&&e!=="get"&&e!=="head"&&(w=await Nl(u,o))!==0){let P=new Request(r,{method:"POST",body:o,duplex:"half"}),L;if(E.isFormData(o)&&(L=P.headers.get("content-type"))&&u.setContentType(L),P.body){const[B,le]=Do(w,rn(No(c)));o=Vo(P.body,Bo,B,le)}}E.isString(f)||(f=f?"include":"omit");const C="credentials"in Request.prototype;h=new Request(r,{...p,signal:g,method:e.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:C?f:void 0});let D=await fetch(h);const S=ar&&(d==="stream"||d==="response");if(ar&&(l||S&&y)){const P={};["status","statusText","headers"].forEach(F=>{P[F]=D[F]});const L=E.toFiniteNumber(D.headers.get("content-length")),[B,le]=l&&Do(L,rn(No(l),!0))||[];D=new Response(Vo(D.body,Bo,B,()=>{le&&le(),y&&y()}),P)}d=d||"text";let O=await an[E.findKey(an,d)||"text"](D,n);return!S&&y&&y(),await new Promise((P,L)=>{ko(P,L,{data:O,headers:ye.from(D.headers),status:D.status,statusText:D.statusText,config:n,request:h})})}catch(C){throw y&&y(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new A("Network Error",A.ERR_NETWORK,n,h),{cause:C.cause||C}):A.from(C,C&&C.code,n,h)}})};E.forEach(sr,(n,r)=>{if(n){try{Object.defineProperty(n,"name",{value:r})}catch{}Object.defineProperty(n,"adapterName",{value:r})}});const Mo=n=>`- ${n}`,Sl=n=>E.isFunction(n)||n===null||n===!1,Po={getAdapter:n=>{n=E.isArray(n)?n:[n];const{length:r}=n;let e,o;const a={};for(let s=0;s<r;s++){e=n[s];let i;if(o=e,!Sl(e)&&(o=sr[(i=String(e)).toLowerCase()],o===void 0))throw new A(`Unknown adapter '${i}'`);if(o)break;a[i||"#"+s]=o}if(!o){const s=Object.entries(a).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=r?s.length>1?`since :
|
|
4
|
+
`+s.map(Mo).join(`
|
|
5
|
+
`):" "+Mo(s[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return o},adapters:sr};function ir(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ut(null,n)}function Ao(n){return ir(n),n.headers=ye.from(n.headers),n.data=or.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Po.getAdapter(n.adapter||Vt.adapter)(n).then(function(o){return ir(n),o.data=or.call(n,n.transformResponse,o),o.headers=ye.from(o.headers),o},function(o){return Eo(o)||(ir(n),o&&o.response&&(o.response.data=or.call(n,n.transformResponse,o.response),o.response.headers=ye.from(o.response.headers))),Promise.reject(o)})}const Ro="1.8.3",sn={};["object","boolean","number","function","string","symbol"].forEach((n,r)=>{sn[n]=function(o){return typeof o===n||"a"+(r<1?"n ":" ")+n}});const Oo={};sn.transitional=function(r,e,o){function a(s,i){return"[Axios v"+Ro+"] Transitional option '"+s+"'"+i+(o?". "+o:"")}return(s,i,l)=>{if(r===!1)throw new A(a(i," has been removed"+(e?" in "+e:"")),A.ERR_DEPRECATED);return e&&!Oo[i]&&(Oo[i]=!0,console.warn(a(i," has been deprecated since v"+e+" and will be removed in the near future"))),r?r(s,i,l):!0}},sn.spelling=function(r){return(e,o)=>(console.warn(`${o} is likely a misspelling of ${r}`),!0)};function _l(n,r,e){if(typeof n!="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);const o=Object.keys(n);let a=o.length;for(;a-- >0;){const s=o[a],i=r[s];if(i){const l=n[s],c=l===void 0||i(l,s,n);if(c!==!0)throw new A("option "+s+" must be "+c,A.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new A("Unknown option "+s,A.ERR_BAD_OPTION)}}const ln={assertOptions:_l,validators:sn},Ue=ln.validators;let rt=class{constructor(r){this.defaults=r,this.interceptors={request:new yo,response:new yo}}async request(r,e){try{return await this._request(r,e)}catch(o){if(o instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|
6
|
+
`+s):o.stack=s}catch{}}throw o}}_request(r,e){typeof r=="string"?(e=e||{},e.url=r):e=r||{},e=nt(this.defaults,e);const{transitional:o,paramsSerializer:a,headers:s}=e;o!==void 0&&ln.assertOptions(o,{silentJSONParsing:Ue.transitional(Ue.boolean),forcedJSONParsing:Ue.transitional(Ue.boolean),clarifyTimeoutError:Ue.transitional(Ue.boolean)},!1),a!=null&&(E.isFunction(a)?e.paramsSerializer={serialize:a}:ln.assertOptions(a,{encode:Ue.function,serialize:Ue.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),ln.assertOptions(e,{baseUrl:Ue.spelling("baseURL"),withXsrfToken:Ue.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=s&&E.merge(s.common,s[e.method]);s&&E.forEach(["delete","get","head","post","put","patch","common"],h=>{delete s[h]}),e.headers=ye.concat(i,s);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(e)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let u,f=0,p;if(!c){const h=[Ao.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,d),p=h.length,u=Promise.resolve(e);f<p;)u=u.then(h[f++],h[f++]);return u}p=l.length;let g=e;for(f=0;f<p;){const h=l[f++],y=l[f++];try{g=h(g)}catch(w){y.call(this,w);break}}try{u=Ao.call(this,g)}catch(h){return Promise.reject(h)}for(f=0,p=d.length;f<p;)u=u.then(d[f++],d[f++]);return u}getUri(r){r=nt(this.defaults,r);const e=So(r.baseURL,r.url,r.allowAbsoluteUrls);return bo(e,r.params,r.paramsSerializer)}};E.forEach(["delete","get","head","options"],function(r){rt.prototype[r]=function(e,o){return this.request(nt(o||{},{method:r,url:e,data:(o||{}).data}))}}),E.forEach(["post","put","patch"],function(r){function e(o){return function(s,i,l){return this.request(nt(l||{},{method:r,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}rt.prototype[r]=e(),rt.prototype[r+"Form"]=e(!0)});let vl=class ii{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(s){e=s});const o=this;this.promise.then(a=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](a);o._listeners=null}),this.promise.then=a=>{let s;const i=new Promise(l=>{o.subscribe(l),s=l}).then(a);return i.cancel=function(){o.unsubscribe(s)},i},r(function(s,i,l){o.reason||(o.reason=new ut(s,i,l),e(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const e=this._listeners.indexOf(r);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const r=new AbortController,e=o=>{r.abort(o)};return this.subscribe(e),r.signal.unsubscribe=()=>this.unsubscribe(e),r.signal}static source(){let r;return{token:new ii(function(a){r=a}),cancel:r}}};function Vl(n){return function(e){return n.apply(null,e)}}function Tl(n){return E.isObject(n)&&n.isAxiosError===!0}const lr={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(lr).forEach(([n,r])=>{lr[r]=n});function Io(n){const r=new rt(n),e=et(rt.prototype.request,r);return E.extend(e,rt.prototype,r,{allOwnKeys:!0}),E.extend(e,r,null,{allOwnKeys:!0}),e.create=function(a){return Io(nt(n,a))},e}const Q=Io(Vt);Q.Axios=rt,Q.CanceledError=ut,Q.CancelToken=vl,Q.isCancel=Eo,Q.VERSION=Ro,Q.toFormData=tn,Q.AxiosError=A,Q.Cancel=Q.CanceledError,Q.all=function(r){return Promise.all(r)},Q.spread=Vl,Q.isAxiosError=Tl,Q.mergeConfig=nt,Q.AxiosHeaders=ye,Q.formToJSON=n=>xo(E.isHTMLForm(n)?new FormData(n):n),Q.getAdapter=Po.getAdapter,Q.HttpStatusCode=lr,Q.default=Q;const{Axios:fg,AxiosError:pg,CanceledError:mg,isCancel:hg,CancelToken:gg,VERSION:bg,all:yg,Cancel:wg,isAxiosError:xg,spread:Cg,toFormData:Eg,AxiosHeaders:kg,HttpStatusCode:Dg,formToJSON:Ng,getAdapter:Sg,mergeConfig:_g}=Q,Lo="HttpError",Fo="HttpErrorCanceled";class cn extends Error{constructor(e,o,a,s){super(e||"");no(this,"response");no(this,"status");this.name=s||Lo,this.status=o||0,this.response=a}}function jo(){const n=t.ref(0),r=t.ref(!1),e=t.ref(0),o=t.ref([]),a=t.ref(""),s=t.ref(!1);return{idx:n,loading:r,maxIdx:e,messages:o,msg:a,showMsg:s,show:(c=[])=>{c&&(o.value=c,e.value=c.length-1,a.value=o.value[n.value],s.value=!0),r.value=!0},hide:()=>{n.value=0,e.value=0,o.value=[],a.value="",r.value=!1}}}let cr;function Ho(){return cr===void 0&&(cr=jo()),cr}const dr=(()=>{const{show:n,hide:r}=Ho();return{show:n,hide:r}})(),$l=n=>{const r=n.withDelay||0;return new Promise(e=>{setTimeout(()=>{e(n)},Math.max(r,0))})},dn=Q.create({baseURL:"/api/v1",paramsSerializer:{indexes:null},responseType:"json",withCredentials:!0});dn.interceptors.request.use($l);const ft=(n,r)=>{const e={skipLoader:!1,...r},o=window.setTimeout(()=>{e.skipLoader!==!0&&dr.show()},200);return dn({...n,...r}).then(a=>a.data).catch(a=>{var s,i;throw Q.isAxiosError(a)?new cn(a.message,(s=a.response)==null?void 0:s.status,(i=a.response)==null?void 0:i.data,Q.isCancel(a)?Fo:Lo):a instanceof Error?new cn(a.message,0):new cn("An unknown error has occurred.",0)}).finally(()=>{e.skipLoader!==!0&&dr.hide(),window.clearTimeout(o)})},ur={delete(n,r){return ft({url:n,method:"DELETE"},r||{})},get(n,r,e){return ft({url:n,method:"GET",params:e},r||{})},patch(n,r,e){return ft({url:n,data:r,method:"PATCH"},e||{})},post(n,r,e){return ft({url:n,data:r,method:"POST"},e||{})},put(n,r,e){return ft({url:n,data:r,method:"PUT"},e||{})}},Bl=n=>{dn.defaults={...dn.defaults,...n}},Uo=n=>n instanceof cn,zo=n=>Uo(n)&&n.name===Fo;function $t(n,r=500){let e=null;return function(...o){e&&clearTimeout(e),e=setTimeout(()=>{n(...o)},r)}}function Ml(n,r=500){let e=null;return(...o)=>{e?clearTimeout(e):n.apply(o),e=setTimeout(()=>{e=null},r)}}const Ae={help:"",label:"",modelValue:void 0,placeholder:""},J={default:void 0,required:!1},Pl=["date","email","month","number","password","search","tel","text","time","url","week"],Al=["money","number"],Ve=n=>{const r=t.useAttrs(),e=t.ref(""),o=t.useId(),a=t.computed(()=>r.id||o),s=t.computed(()=>fr(r,"disabled")),i=t.computed(()=>fr(r,"required")),l=t.computed(()=>typeof r.name=="string"&&r.name!==""?r.name:a.value),c=t.computed(()=>({labelledby:n.label?`${a.value}-label`:void 0,describedby:n.help?`${a.value}-help`:void 0,errormessage:e.value?`${a.value}-error`:void 0})),d=p=>{p.type==="invalid"&&(e.value=p.target.validationMessage)},u=p=>{if(!e.value)return;const g=p.target;g.checkValidity()?e.value="":e.value=g.validationMessage},f=$t(u,350);return{aria:c,attrs:r,inputID:a,isDisabled:s,isRequired:i,nameAttr:l,errorState:e,onInvalid:d,validate:u,inputValidation:f}},fr=(n,r)=>n[r]!==void 0&&n[r]!==null&&n[r]!==!1&&n[r]!==0,qo=String.raw`^\w+([\-+.']\w+)*@\w+([\-.]\w+)*\.\w+([\-.]\w+)*$`,Wo=String.raw`[0-9]{10}|[0-9]{3}-[0-9]{3}-[0-9]{4}`,Yo=String.raw`^(?:https|http):\/\/[^ ]+$`,pr=n=>{const r=parseFloat(n);return isNaN(r)?n:r},Ko=n=>{if(typeof n!="string"||n==="")return"";const r=new Date(n);return r.setMinutes(r.getMinutes()-r.getTimezoneOffset()),r.toISOString().slice(0,16)};function Rl(n,r=100){let e;return(...o)=>{e||(n.apply(o),e=!0,setTimeout(()=>e=!1,r))}}function q(){return q=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},q.apply(this,arguments)}function Re(n,r){if(n==null)return{};var e={},o=Object.keys(n),a,s;for(s=0;s<o.length;s++)a=o[s],!(r.indexOf(a)>=0)&&(e[a]=n[a]);return e}function Ol(n,r){if(n){if(typeof n=="string")return Go(n,r);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Go(n,r)}}function Go(n,r){(r==null||r>n.length)&&(r=n.length);for(var e=0,o=new Array(r);e<r;e++)o[e]=n[e];return o}function ze(n,r){var e;if(typeof Symbol>"u"||n[Symbol.iterator]==null){if(Array.isArray(n)||(e=Ol(n))||r){e&&(n=e);var o=0;return function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return e=n[Symbol.iterator](),e.next.bind(e)}function we(n,r){if(n in r){for(var e=r[n],o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];return typeof e=="function"?e.apply(void 0,a):e}var i=new Error('Tried to handle "'+n+'" but there is no handler defined. Only defined handlers are: '+Object.keys(r).map(function(l){return'"'+l+'"'}).join(", ")+".");throw Error.captureStackTrace&&Error.captureStackTrace(i,we),i}var xe;(function(n){n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static"})(xe||(xe={}));var ke;(function(n){n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden"})(ke||(ke={}));function X(n){var r=n.visible,e=r===void 0?!0:r,o=n.features,a=o===void 0?xe.None:o,s=Re(n,["visible","features"]);if(e||a&xe.Static&&s.props.static)return un(s);if(a&xe.RenderStrategy){var i,l,c=(i=s.props.unmount)==null||i?ke.Unmount:ke.Hidden;return we(c,(l={},l[ke.Unmount]=function(){return null},l[ke.Hidden]=function(){return un(q({},s,{props:q({},s.props,{hidden:!0,style:{display:"none"}})}))},l))}return un(s)}function un(n){var r=n.props,e=n.attrs,o=n.slots,a=n.slot,s=n.name,i=Il(r,["unmount","static"]),l=i.as,c=Re(i,["as"]),d=o.default==null?void 0:o.default(a);if(l==="template"){if(Object.keys(c).length>0||Object.keys(e).length>0){var u=d??[],f=u[0],p=u.slice(1);if(!Ll(f)||p.length>0)throw new Error(['Passing props on "template"!',"","The current component <"+s+' /> is rendering a "template".',"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(e)).map(function(g){return" - "+g}).join(`
|
|
8
8
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(function(g){return" - "+g}).join(`
|
|
9
9
|
`)].join(`
|
|
10
|
-
`));return t.cloneVNode(f,c)}return Array.isArray(d)&&d.length===1?d[0]:d}return t.h(l,c,d)}function Rl(n,r){r===void 0&&(r=[]);for(var e=Object.assign({},n),o=ze(r),a;!(a=o()).done;){var i=a.value;i in e&&delete e[i]}return e}function Ol(n){return n==null?!1:typeof n.type=="string"||typeof n.type=="object"||typeof n.type=="function"}var Yo=Symbol("StackContext"),pt;(function(n){n[n.AddElement=0]="AddElement",n[n.RemoveElement=1]="RemoveElement"})(pt||(pt={}));function Ko(){return t.inject(Yo,function(){})}function Il(n){var r=Ko();t.watchEffect(function(e){var o=n==null?void 0:n.value;o&&(r(pt.AddElement,o),e(function(){return r(pt.RemoveElement,o)}))})}function Go(n){var r=Ko();function e(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];n==null||n.apply(void 0,a),r.apply(void 0,a)}t.provide(Yo,e)}var Jo=Symbol("ForcePortalRootContext");function Ll(){return t.inject(Jo,!1)}var Xo=t.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs;return t.provide(Jo,r.force),function(){var i=Oe(r,["force"]);return X({props:i,slot:{},slots:o,attrs:a,name:"ForcePortalRoot"})}}});function Zo(){var n=document.getElementById("headlessui-portal-root");if(n)return n;var r=document.createElement("div");return r.setAttribute("id","headlessui-portal-root"),document.body.appendChild(r)}var fr=t.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=Ll(),s=t.inject(Qo,null),l=t.ref(i===!0||s===null?Zo():s.resolveTarget());t.watchEffect(function(){i||s!==null&&(l.value=s.resolveTarget())});var c=t.ref(null);return Il(c),t.onUnmounted(function(){var d=document.getElementById("headlessui-portal-root");if(d&&l.value===d&&l.value.children.length<=0){var u;(u=l.value.parentElement)==null||u.removeChild(l.value)}}),Go(),function(){if(l.value===null)return null;var d={ref:c};return t.h(t.Teleport,{to:l.value},X({props:z({},r,d),slot:{},attrs:a,slots:o,name:"Portal"}))}}}),Qo=Symbol("PortalGroupContext"),Fl=t.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup:function(r,e){var o=e.attrs,a=e.slots,i=t.reactive({resolveTarget:function(){return r.target}});return t.provide(Qo,i),function(){var s=Oe(r,["target"]);return X({props:s,slot:{},attrs:o,slots:a,name:"PortalGroup"})}}}),A;(function(n){n.Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab"})(A||(A={}));var jl=0;function Hl(){return++jl}function ue(){return Hl()}function qe(n,r,e){typeof window>"u"||t.watchEffect(function(o){window.addEventListener(n,r,e),o(function(){window.removeEventListener(n,r,e)})})}function pr(n,r){for(var e=ze(n),o;!(o=e()).done;){var a=o.value;if(a.contains(r))return!0}return!1}var mr=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(process.env.NODE_ENV==="test"?function(n){return n+":not([tabindex='-1']):not([style*='display: none'])"}:function(n){return n+":not([tabindex='-1'])"}).join(","),q;(function(n){n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll"})(q||(q={}));var De;(function(n){n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow"})(De||(De={}));var cn;(function(n){n[n.Previous=-1]="Previous",n[n.Next=1]="Next"})(cn||(cn={}));function dn(n){return n===void 0&&(n=document.body),n==null?[]:Array.from(n.querySelectorAll(mr))}var mt;(function(n){n[n.Strict=0]="Strict",n[n.Loose=1]="Loose"})(mt||(mt={}));function Ul(n,r){var e;return r===void 0&&(r=mt.Strict),n===document.body?!1:we(r,(e={},e[mt.Strict]=function(){return n.matches(mr)},e[mt.Loose]=function(){for(var o=n;o!==null;){if(o.matches(mr))return!0;o=o.parentElement}return!1},e))}function Bt(n){n==null||n.focus({preventScroll:!0})}function Ie(n,r){var e=Array.isArray(n)?n:dn(n),o=document.activeElement,a=function(){if(r&(q.First|q.Next))return cn.Next;if(r&(q.Previous|q.Last))return cn.Previous;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),i=function(){if(r&q.First)return 0;if(r&q.Previous)return Math.max(0,e.indexOf(o))-1;if(r&q.Next)return Math.max(0,e.indexOf(o))+1;if(r&q.Last)return e.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),s=r&q.NoScroll?{preventScroll:!0}:{},l=0,c=e.length,d=void 0;do{var u;if(l>=c||l+c<=0)return De.Error;var f=i+l;if(r&q.WrapAround)f=(f+c)%c;else{if(f<0)return De.Underflow;if(f>=c)return De.Overflow}d=e[f],(u=d)==null||u.focus(s),l+=a}while(d!==document.activeElement);return d.hasAttribute("tabindex")||d.setAttribute("tabindex","0"),De.Success}function zl(n,r,e){r===void 0&&(r=t.ref(!0)),e===void 0&&(e=t.ref({}));var o=t.ref(typeof window<"u"?document.activeElement:null),a=t.ref(null);function i(){if(r.value&&n.value.size===1){var l=e.value.initialFocus,c=document.activeElement;if(l){if(l===c)return}else if(pr(n.value,c))return;if(o.value=c,l)Bt(l);else{for(var d=!1,u=ze(n.value),f;!(f=u()).done;){var p=f.value,g=Ie(p,q.First);if(g===De.Success){d=!0;break}}d||console.warn("There are no focusable elements inside the <FocusTrap />")}a.value=document.activeElement}}function s(){Bt(o.value),o.value=null,a.value=null}t.watchEffect(i),t.onUpdated(function(){r.value?i():s()}),t.onUnmounted(s),qe("keydown",function(l){if(r.value&&l.key===A.Tab&&document.activeElement&&n.value.size===1){l.preventDefault();for(var c=ze(n.value),d;!(d=c()).done;){var u=d.value,f=Ie(u,(l.shiftKey?q.Previous:q.Next)|q.WrapAround);if(f===De.Success){a.value=document.activeElement;break}}}}),qe("focus",function(l){if(r.value&&n.value.size===1){var c=a.value;if(c){var d=l.target;d&&d instanceof HTMLElement?pr(n.value,d)?(a.value=d,Bt(d)):(l.preventDefault(),l.stopPropagation(),Bt(c)):Bt(a.value)}}},!0)}var ea=process.env.NODE_ENV==="test"?'[data-v-app=""] > *':"body > *",ht=new Set,Ke=new Map;function ta(n){n.setAttribute("aria-hidden","true"),n.inert=!0}function na(n){var r=Ke.get(n);r&&(r["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert)}function ql(n,r){r===void 0&&(r=t.ref(!0)),t.watchEffect(function(e){if(r.value&&n.value){var o=n.value;ht.add(o);for(var a=ze(Ke.keys()),i;!(i=a()).done;){var s=i.value;s.contains(o)&&(na(s),Ke.delete(s))}document.querySelectorAll(ea).forEach(function(l){if(l instanceof HTMLElement){for(var c=ze(ht),d;!(d=c()).done;){var u=d.value;if(l.contains(u))return}ht.size===1&&(Ke.set(l,{"aria-hidden":l.getAttribute("aria-hidden"),inert:l.inert}),ta(l))}}),e(function(){if(ht.delete(o),ht.size>0)document.querySelectorAll(ea).forEach(function(u){if(u instanceof HTMLElement&&!Ke.has(u)){for(var f=ze(ht),p;!(p=f()).done;){var g=p.value;if(u.contains(g))return}Ke.set(u,{"aria-hidden":u.getAttribute("aria-hidden"),inert:u.inert}),ta(u)}});else for(var l=ze(Ke.keys()),c;!(c=l()).done;){var d=c.value;na(d),Ke.delete(d)}})}})}var ra=Symbol("DescriptionContext");function Wl(){var n=t.inject(ra,null);if(n===null)throw new Error("Missing parent");return n}function un(n){var r=n===void 0?{}:n,e=r.slot,o=e===void 0?t.ref({}):e,a=r.name,i=a===void 0?"Description":a,s=r.props,l=s===void 0?{}:s,c=t.ref([]);function d(u){return c.value.push(u),function(){var f=c.value.indexOf(u);f!==-1&&c.value.splice(f,1)}}return t.provide(ra,{register:d,slot:o,name:i,props:l}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var oa=t.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"}},render:function(){var r=this.context,e=r.name,o=e===void 0?"Description":e,a=r.slot,i=a===void 0?t.ref({}):a,s=r.props,l=s===void 0?{}:s,c=this.$props,d=z({},Object.entries(l).reduce(function(u,f){var p,g=f[0],h=f[1];return Object.assign(u,(p={},p[g]=t.unref(h),p))},{}),{id:this.id});return X({props:z({},c,d),slot:i.value,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=Wl(),e="headlessui-description-"+ue();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}});function T(n){var r;return n==null||n.value==null?null:(r=n.value.$el)!=null?r:n.value}var aa=Symbol("Context"),ae;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(ae||(ae={}));function Yl(){return gt()!==null}function gt(){return t.inject(aa,null)}function fn(n){t.provide(aa,n)}var me;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(me||(me={}));var ia=Symbol("DialogContext");function Mt(n){var r=t.inject(ia,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Dialog /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Mt),e}return r}var pn="DC8F892D-2EBD-447C-A4C8-A03058436FF4",mn=t.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:pn},initialFocus:{type:Object,default:null}},emits:{close:function(r){return!0}},render:function(){var r=this,e=z({},this.$attrs,{ref:"el",id:this.id,role:"dialog","aria-modal":this.dialogState===me.Open?!0:void 0,"aria-labelledby":this.titleId,"aria-describedby":this.describedby,onClick:this.handleClick}),o=this.$props,a=Oe(o,["open","initialFocus"]),i={open:this.dialogState===me.Open};return t.h(Xo,{force:!0},function(){return t.h(fr,function(){return t.h(Fl,{target:r.dialogRef},function(){return t.h(Xo,{force:!1},function(){return X({props:z({},a,e),slot:i,attrs:r.$attrs,slots:r.$slots,visible:r.visible,features:xe.RenderStrategy|xe.Static,name:"Dialog"})})})})})},setup:function(r,e){var o=e.emit,a=t.ref(new Set),i=gt(),s=t.computed(function(){if(r.open===pn&&i!==null){var C;return we(i.value,(C={},C[ae.Open]=!0,C[ae.Closed]=!1,C))}return r.open}),l=r.open!==pn||i!==null;if(!l)throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof s.value!="boolean")throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: "+(s.value===pn?void 0:r.open));var c=t.computed(function(){return r.open?me.Open:me.Closed}),d=t.computed(function(){return i!==null?i.value===ae.Open:c.value===me.Open}),u=t.ref(null),f=t.ref(c.value===me.Open);t.onUpdated(function(){f.value=c.value===me.Open});var p="headlessui-dialog-"+ue(),g=t.computed(function(){return{initialFocus:r.initialFocus}});zl(a,f,g),ql(u,f),Go(function(C,D){var N;return we(C,(N={},N[pt.AddElement]=function(){a.value.add(D)},N[pt.RemoveElement]=function(){a.value.delete(D)},N))});var h=un({name:"DialogDescription",slot:t.computed(function(){return{open:s.value}})}),y=t.ref(null),w={titleId:y,dialogState:c,setTitleId:function(D){y.value!==D&&(y.value=D)},close:function(){o("close",!1)}};return t.provide(ia,w),qe("mousedown",function(C){var D=C.target;c.value===me.Open&&a.value.size===1&&(pr(a.value,D)||(w.close(),t.nextTick(function(){return D==null?void 0:D.focus()})))}),qe("keydown",function(C){C.key===A.Escape&&c.value===me.Open&&(a.value.size>1||(C.preventDefault(),C.stopPropagation(),w.close()))}),t.watchEffect(function(C){if(c.value===me.Open){var D=document.documentElement.style.overflow,N=document.documentElement.style.paddingRight,I=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=I+"px",C(function(){document.documentElement.style.overflow=D,document.documentElement.style.paddingRight=N})}}),t.watchEffect(function(C){if(c.value===me.Open){var D=T(u);if(D){var N=new IntersectionObserver(function(I){for(var V=ze(I),j;!(j=V()).done;){var $=j.value;$.boundingClientRect.x===0&&$.boundingClientRect.y===0&&$.boundingClientRect.width===0&&$.boundingClientRect.height===0&&w.close()}});N.observe(D),C(function(){return N.disconnect()})}}}),{id:p,el:u,dialogRef:u,containers:a,dialogState:c,titleId:y,describedby:h,visible:d,open:s,handleClick:function(D){D.stopPropagation()}}}}),hn=t.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"}},render:function(){var r=Mt("DialogOverlay"),e={ref:"el",id:this.id,"aria-hidden":!0,onClick:this.handleClick},o=this.$props;return X({props:z({},o,e),slot:{open:r.dialogState.value===me.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogOverlay"})},setup:function(){var r=Mt("DialogOverlay"),e="headlessui-dialog-overlay-"+ue();return{id:e,handleClick:function(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),r.close())}}}}),hr=t.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"}},render:function(){var r=Mt("DialogTitle"),e={id:this.id},o=this.$props;return X({props:z({},o,e),slot:{open:r.dialogState.value===me.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogTitle"})},setup:function(){var r=Mt("DialogTitle"),e="headlessui-dialog-title-"+ue();return t.onMounted(function(){r.setTitleId(e),t.onUnmounted(function(){return r.setTitleId(null)})}),{id:e}}});function sa(n,r){if(n)return n;var e=r??"button";if(typeof e=="string"&&e.toLowerCase()==="button")return"button"}function gn(n,r){var e=t.ref(sa(n.value.type,n.value.as));return t.onMounted(function(){e.value=sa(n.value.type,n.value.as)}),t.watchEffect(function(){var o;e.value||T(r)&&T(r)instanceof HTMLButtonElement&&!((o=T(r))!=null&&o.hasAttribute("type"))&&(e.value="button")}),e}var se;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(se||(se={}));var la=Symbol("DisclosureContext");function Vt(n){var r=t.inject(la,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Disclosure /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Vt),e}return r}var ca=Symbol("DisclosurePanelContext");function Kl(){return t.inject(ca,null)}var Gl=t.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs,i="headlessui-disclosure-button-"+ue(),s="headlessui-disclosure-panel-"+ue(),l=t.ref(r.defaultOpen?se.Open:se.Closed),c=t.ref(null),d=t.ref(null),u={buttonId:i,panelId:s,disclosureState:l,panel:c,button:d,toggleDisclosure:function(){var p;l.value=we(l.value,(p={},p[se.Open]=se.Closed,p[se.Closed]=se.Open,p))},closeDisclosure:function(){l.value!==se.Closed&&(l.value=se.Closed)},close:function(p){u.closeDisclosure();var g=function(){return p?p instanceof HTMLElement?p:p.value instanceof HTMLElement?T(p):T(u.button):T(u.button)}();g==null||g.focus()}};return t.provide(la,u),fn(t.computed(function(){var f;return we(l.value,(f={},f[se.Open]=ae.Open,f[se.Closed]=ae.Closed,f))})),function(){var f=Oe(r,["defaultOpen"]),p={open:l.value===se.Open,close:u.close};return X({props:f,slot:p,slots:o,attrs:a,name:"Disclosure"})}}}),Jl=t.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=Vt("DisclosureButton"),e={open:r.disclosureState.value===se.Open},o=this.isWithinPanel?{ref:"el",type:this.type,onClick:this.handleClick,onKeydown:this.handleKeyDown}:{id:this.id,ref:"el",type:this.type,"aria-expanded":this.$props.disabled?void 0:r.disclosureState.value===se.Open,"aria-controls":T(r.panel)?r.panelId:void 0,disabled:this.$props.disabled?!0:void 0,onClick:this.handleClick,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp};return X({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"DisclosureButton"})},setup:function(r,e){var o=e.attrs,a=Vt("DisclosureButton"),i=Kl(),s=i===null?!1:i===a.panelId,l=t.ref(null);return s||t.watchEffect(function(){a.button.value=l.value}),{isWithinPanel:s,id:a.buttonId,el:l,type:gn(t.computed(function(){return{as:r.as,type:o.type}}),l),handleClick:function(){if(!r.disabled)if(s){var d;a.toggleDisclosure(),(d=T(a.button))==null||d.focus()}else a.toggleDisclosure()},handleKeyDown:function(d){var u;if(!r.disabled)if(s)switch(d.key){case A.Space:case A.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure(),(u=T(a.button))==null||u.focus();break}else switch(d.key){case A.Space:case A.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure();break}},handleKeyUp:function(d){switch(d.key){case A.Space:d.preventDefault();break}}}}}),Xl=t.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var r=Vt("DisclosurePanel"),e={open:r.disclosureState.value===se.Open,close:r.close},o={id:this.id,ref:"el"};return X({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:xe.RenderStrategy|xe.Static,visible:this.visible,name:"DisclosurePanel"})},setup:function(){var r=Vt("DisclosurePanel");t.provide(ca,r.panelId);var e=gt(),o=t.computed(function(){return e!==null?e.value===ae.Open:r.disclosureState.value===se.Open});return{id:r.panelId,el:r.panel,visible:o}}});function Zl(n){throw new Error("Unexpected object: "+n)}var ne;(function(n){n[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing"})(ne||(ne={}));function Ql(n,r){var e=r.resolveItems();if(e.length<=0)return null;var o=r.resolveActiveIndex(),a=o??-1,i=function(){switch(n.focus){case ne.First:return e.findIndex(function(c){return!r.resolveDisabled(c)});case ne.Previous:{var s=e.slice().reverse().findIndex(function(c,d,u){return a!==-1&&u.length-d-1>=a?!1:!r.resolveDisabled(c)});return s===-1?s:e.length-1-s}case ne.Next:return e.findIndex(function(c,d){return d<=a?!1:!r.resolveDisabled(c)});case ne.Last:{var l=e.slice().reverse().findIndex(function(c){return!r.resolveDisabled(c)});return l===-1?l:e.length-1-l}case ne.Specific:return e.findIndex(function(c){return r.resolveId(c)===n.id});case ne.Nothing:return null;default:Zl(n)}}();return i===-1?o:i}function da(n){var r=n.container,e=n.accept,o=n.walk,a=n.enabled;t.watchEffect(function(){var i=r.value;if(i&&!(a!==void 0&&!a.value))for(var s=Object.assign(function(c){return e(c)},{acceptNode:e}),l=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,s,!1);l.nextNode();)o(l.currentNode)})}var fe;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(fe||(fe={}));function ec(n){requestAnimationFrame(function(){return requestAnimationFrame(n)})}var ua=Symbol("MenuContext");function bt(n){var r=t.inject(ua,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Menu /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,bt),e}return r}var gr=t.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=t.ref(fe.Closed),s=t.ref(null),l=t.ref(null),c=t.ref([]),d=t.ref(""),u=t.ref(null),f={menuState:i,buttonRef:s,itemsRef:l,items:c,searchQuery:d,activeItemIndex:u,closeMenu:function(){i.value=fe.Closed,u.value=null},openMenu:function(){return i.value=fe.Open},goToItem:function(g,h){var y=Ql(g===ne.Specific?{focus:ne.Specific,id:h}:{focus:g},{resolveItems:function(){return c.value},resolveActiveIndex:function(){return u.value},resolveId:function(C){return C.id},resolveDisabled:function(C){return C.dataRef.disabled}});d.value===""&&u.value===y||(d.value="",u.value=y)},search:function(g){d.value+=g.toLowerCase();var h=c.value.findIndex(function(y){return y.dataRef.textValue.startsWith(d.value)&&!y.dataRef.disabled});h===-1||h===u.value||(u.value=h)},clearSearch:function(){d.value=""},registerItem:function(g,h){c.value.push({id:g,dataRef:h})},unregisterItem:function(g){var h=c.value.slice(),y=u.value!==null?h[u.value]:null,w=h.findIndex(function(C){return C.id===g});w!==-1&&h.splice(w,1),c.value=h,u.value=function(){return w===u.value||y===null?null:h.indexOf(y)}()}};return qe("mousedown",function(p){var g,h,y,w=p.target,C=document.activeElement;i.value===fe.Open&&((g=T(s))!=null&&g.contains(w)||((h=T(l))!=null&&h.contains(w)||f.closeMenu(),!(C!==document.body&&(C!=null&&C.contains(w)))&&(p.defaultPrevented||(y=T(s))==null||y.focus({preventScroll:!0}))))}),t.provide(ua,f),fn(t.computed(function(){var p;return we(i.value,(p={},p[fe.Open]=ae.Open,p[fe.Closed]=ae.Closed,p))})),function(){var p={open:i.value===fe.Open};return X({props:r,slot:p,slots:o,attrs:a,name:"Menu"})}}}),br=t.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},render:function(){var r,e=bt("MenuButton"),o={open:e.menuState.value===fe.Open},a={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(r=T(e.itemsRef))==null?void 0:r.id,"aria-expanded":this.$props.disabled?void 0:e.menuState.value===fe.Open,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return X({props:z({},this.$props,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"MenuButton"})},setup:function(r,e){var o=e.attrs,a=bt("MenuButton"),i="headlessui-menu-button-"+ue();function s(d){switch(d.key){case A.Space:case A.Enter:case A.ArrowDown:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=T(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(ne.First)});break;case A.ArrowUp:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=T(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(ne.Last)});break}}function l(d){switch(d.key){case A.Space:d.preventDefault();break}}function c(d){r.disabled||(a.menuState.value===fe.Open?(a.closeMenu(),t.nextTick(function(){var u;return(u=T(a.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(d.preventDefault(),d.stopPropagation(),a.openMenu(),ec(function(){var u;return(u=T(a.itemsRef))==null?void 0:u.focus({preventScroll:!0})})))}return{id:i,el:a.buttonRef,type:gn(t.computed(function(){return{as:r.as,type:o.type}}),a.buttonRef),handleKeyDown:s,handleKeyUp:l,handleClick:c}}}),yr=t.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var r,e,o=bt("MenuItems"),a={open:o.menuState.value===fe.Open},i={"aria-activedescendant":o.activeItemIndex.value===null||(r=o.items.value[o.activeItemIndex.value])==null?void 0:r.id,"aria-labelledby":(e=T(o.buttonRef))==null?void 0:e.id,id:this.id,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,role:"menu",tabIndex:0,ref:"el"},s=this.$props;return X({props:z({},s,i),slot:a,attrs:this.$attrs,slots:this.$slots,features:xe.RenderStrategy|xe.Static,visible:this.visible,name:"MenuItems"})},setup:function(){var r=bt("MenuItems"),e="headlessui-menu-items-"+ue(),o=t.ref(null);da({container:t.computed(function(){return T(r.itemsRef)}),enabled:t.computed(function(){return r.menuState.value===fe.Open}),accept:function(d){return d.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(d){d.setAttribute("role","none")}});function a(c){switch(o.value&&clearTimeout(o.value),c.key){case A.Space:if(r.searchQuery.value!=="")return c.preventDefault(),c.stopPropagation(),r.search(c.key);case A.Enter:if(c.preventDefault(),c.stopPropagation(),r.activeItemIndex.value!==null){var d,u=r.items.value[r.activeItemIndex.value].id;(d=document.getElementById(u))==null||d.click()}r.closeMenu(),t.nextTick(function(){var f;return(f=T(r.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case A.ArrowDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(ne.Next);case A.ArrowUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(ne.Previous);case A.Home:case A.PageUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(ne.First);case A.End:case A.PageDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(ne.Last);case A.Escape:c.preventDefault(),c.stopPropagation(),r.closeMenu(),t.nextTick(function(){var f;return(f=T(r.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case A.Tab:c.preventDefault(),c.stopPropagation();break;default:c.key.length===1&&(r.search(c.key),o.value=setTimeout(function(){return r.clearSearch()},350));break}}function i(c){switch(c.key){case A.Space:c.preventDefault();break}}var s=gt(),l=t.computed(function(){return s!==null?s.value===ae.Open:r.menuState.value===fe.Open});return{id:e,el:r.itemsRef,handleKeyDown:a,handleKeyUp:i,visible:l}}}),wr=t.defineComponent({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs,i=bt("MenuItem"),s="headlessui-menu-item-"+ue(),l=t.computed(function(){return i.activeItemIndex.value!==null?i.items.value[i.activeItemIndex.value].id===s:!1}),c=t.ref({disabled:r.disabled,textValue:""});t.onMounted(function(){var g,h,y=(g=document.getElementById(s))==null||(h=g.textContent)==null?void 0:h.toLowerCase().trim();y!==void 0&&(c.value.textValue=y)}),t.onMounted(function(){return i.registerItem(s,c)}),t.onUnmounted(function(){return i.unregisterItem(s)}),t.watchEffect(function(){i.menuState.value===fe.Open&&l.value&&t.nextTick(function(){var g;return(g=document.getElementById(s))==null||g.scrollIntoView==null?void 0:g.scrollIntoView({block:"nearest"})})});function d(g){if(r.disabled)return g.preventDefault();i.closeMenu(),t.nextTick(function(){var h;return(h=T(i.buttonRef))==null?void 0:h.focus({preventScroll:!0})})}function u(){if(r.disabled)return i.goToItem(ne.Nothing);i.goToItem(ne.Specific,s)}function f(){r.disabled||l.value||i.goToItem(ne.Specific,s)}function p(){r.disabled||l.value&&i.goToItem(ne.Nothing)}return function(){var g=r.disabled,h={active:l.value,disabled:g},y={id:s,role:"menuitem",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,onClick:d,onFocus:u,onPointermove:f,onMousemove:f,onPointerleave:p,onMouseleave:p};return X({props:z({},r,y),slot:h,attrs:a,slots:o,name:"MenuItem"})}}}),W;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(W||(W={}));var fa=Symbol("PopoverContext");function Pt(n){var r=t.inject(fa,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <"+ha.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Pt),e}return r}var tc=Symbol("PopoverGroupContext");function pa(){return t.inject(tc,null)}var ma=Symbol("PopoverPanelContext");function nc(){return t.inject(ma,null)}var ha=t.defineComponent({name:"Popover",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,i="headlessui-popover-button-"+ue(),s="headlessui-popover-panel-"+ue(),l=t.ref(W.Closed),c=t.ref(null),d=t.ref(null),u={popoverState:l,buttonId:i,panelId:s,panel:d,button:c,togglePopover:function(){var w;l.value=we(l.value,(w={},w[W.Open]=W.Closed,w[W.Closed]=W.Open,w))},closePopover:function(){l.value!==W.Closed&&(l.value=W.Closed)},close:function(w){u.closePopover();var C=function(){return w?w instanceof HTMLElement?w:w.value instanceof HTMLElement?T(w):T(u.button):T(u.button)}();C==null||C.focus()}};t.provide(fa,u),fn(t.computed(function(){var y;return we(l.value,(y={},y[W.Open]=ae.Open,y[W.Closed]=ae.Closed,y))}));var f={buttonId:i,panelId:s,close:function(){u.closePopover()}},p=pa(),g=p==null?void 0:p.registerPopover;function h(){var y,w,C;return(y=p==null?void 0:p.isFocusWithinPopoverGroup())!=null?y:((w=T(c))==null?void 0:w.contains(document.activeElement))||((C=T(d))==null?void 0:C.contains(document.activeElement))}return t.watchEffect(function(){return g==null?void 0:g(f)}),qe("focus",function(){l.value===W.Open&&(h()||c&&d&&u.closePopover())},!0),qe("mousedown",function(y){var w,C,D=y.target;if(l.value===W.Open&&!((w=T(c))!=null&&w.contains(D))&&!((C=T(d))!=null&&C.contains(D))&&(u.closePopover(),!Ul(D,mt.Loose))){var N;y.preventDefault(),(N=T(c))==null||N.focus()}}),function(){var y={open:l.value===W.Open,close:u.close};return X({props:r,slot:y,slots:o,attrs:a,name:"Popover"})}}}),rc=t.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=Pt("PopoverButton"),e={open:r.popoverState.value===W.Open},o=this.isWithinPanel?{ref:"el",type:this.type,onKeydown:this.handleKeyDown,onClick:this.handleClick}:{ref:"el",id:r.buttonId,type:this.type,"aria-expanded":this.$props.disabled?void 0:r.popoverState.value===W.Open,"aria-controls":T(r.panel)?r.panelId:void 0,disabled:this.$props.disabled?!0:void 0,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return X({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"PopoverButton"})},setup:function(r,e){var o=e.attrs,a=Pt("PopoverButton"),i=pa(),s=i==null?void 0:i.closeOthers,l=nc(),c=l===null?!1:l===a.panelId,d=t.ref(null),u=t.ref(typeof window>"u"?null:document.activeElement);qe("focus",function(){u.value=d.value,d.value=document.activeElement},!0);var f=t.ref(null);return c||t.watchEffect(function(){a.button.value=f.value}),{isWithinPanel:c,el:f,type:gn(t.computed(function(){return{as:r.as,type:o.type}}),f),handleKeyDown:function(g){var h,y;if(c){if(a.popoverState.value===W.Closed)return;switch(g.key){case A.Space:case A.Enter:g.preventDefault(),g.stopPropagation(),a.closePopover(),(h=T(a.button))==null||h.focus();break}}else switch(g.key){case A.Space:case A.Enter:g.preventDefault(),g.stopPropagation(),a.popoverState.value===W.Closed&&(s==null||s(a.buttonId)),a.togglePopover();break;case A.Escape:if(a.popoverState.value!==W.Open)return s==null?void 0:s(a.buttonId);if(!T(a.button)||!((y=T(a.button))!=null&&y.contains(document.activeElement)))return;g.preventDefault(),g.stopPropagation(),a.closePopover();break;case A.Tab:if(a.popoverState.value!==W.Open||!a.panel||!a.button)return;if(g.shiftKey){var w,C;if(!u.value||(w=T(a.button))!=null&&w.contains(u.value)||(C=T(a.panel))!=null&&C.contains(u.value))return;var D=dn(),N=D.indexOf(u.value),I=D.indexOf(T(a.button));if(I>N)return;g.preventDefault(),g.stopPropagation(),Ie(T(a.panel),q.Last)}else g.preventDefault(),g.stopPropagation(),Ie(T(a.panel),q.First);break}},handleKeyUp:function(g){var h,y;if(!c&&(g.key===A.Space&&g.preventDefault(),a.popoverState.value===W.Open&&a.panel&&a.button))switch(g.key){case A.Tab:if(!u.value||(h=T(a.button))!=null&&h.contains(u.value)||(y=T(a.panel))!=null&&y.contains(u.value))return;var w=dn(),C=w.indexOf(u.value),D=w.indexOf(T(a.button));if(D>C)return;g.preventDefault(),g.stopPropagation(),Ie(T(a.panel),q.Last);break}},handleClick:function(){if(!r.disabled)if(c){var g;a.closePopover(),(g=T(a.button))==null||g.focus()}else{var h;a.popoverState.value===W.Closed&&(s==null||s(a.buttonId)),(h=T(a.button))==null||h.focus(),a.togglePopover()}}}}}),oc=t.defineComponent({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1}},render:function(){var r=Pt("PopoverPanel"),e={open:r.popoverState.value===W.Open,close:r.close},o={ref:"el",id:this.id,onKeydown:this.handleKeyDown};return X({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:xe.RenderStrategy|xe.Static,visible:this.visible,name:"PopoverPanel"})},setup:function(r){var e=r.focus,o=Pt("PopoverPanel");t.provide(ma,o.panelId),t.onUnmounted(function(){o.panel.value=null}),t.watchEffect(function(){var s;if(e&&o.popoverState.value===W.Open&&o.panel){var l=document.activeElement;(s=T(o.panel))!=null&&s.contains(l)||Ie(T(o.panel),q.First)}}),qe("keydown",function(s){var l;if(o.popoverState.value===W.Open&&T(o.panel)&&s.key===A.Tab&&document.activeElement&&(l=T(o.panel))!=null&&l.contains(document.activeElement)){s.preventDefault();var c=Ie(T(o.panel),s.shiftKey?q.Previous:q.Next);if(c===De.Underflow){var d;return(d=T(o.button))==null?void 0:d.focus()}else if(c===De.Overflow){if(!T(o.button))return;var u=dn(),f=u.indexOf(T(o.button)),p=u.splice(f+1).filter(function(g){var h;return!((h=T(o.panel))!=null&&h.contains(g))});Ie(p,q.First)===De.Error&&Ie(document.body,q.First)}}}),qe("focus",function(){var s;e&&o.popoverState.value===W.Open&&T(o.panel)&&((s=T(o.panel))!=null&&s.contains(document.activeElement)||o.closePopover())},!0);var a=gt(),i=t.computed(function(){return a!==null?a.value===ae.Open:o.popoverState.value===W.Open});return{id:o.panelId,el:o.panel,handleKeyDown:function(l){var c,d;switch(l.key){case A.Escape:if(o.popoverState.value!==W.Open||!T(o.panel)||!((c=T(o.panel))!=null&&c.contains(document.activeElement)))return;l.preventDefault(),l.stopPropagation(),o.closePopover(),(d=T(o.button))==null||d.focus();break}},visible:i}}}),ga=Symbol("LabelContext");function ba(){var n=t.inject(ga,null);if(n===null){var r=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,ba),r}return n}function xr(n){var r=n===void 0?{}:n,e=r.slot,o=e===void 0?{}:e,a=r.name,i=a===void 0?"Label":a,s=r.props,l=s===void 0?{}:s,c=t.ref([]);function d(u){return c.value.push(u),function(){var f=c.value.indexOf(u);f!==-1&&c.value.splice(f,1)}}return t.provide(ga,{register:d,slot:o,name:i,props:l}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var ya=t.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1}},render:function(){var r=this.context,e=r.name,o=e===void 0?"Label":e,a=r.slot,i=a===void 0?{}:a,s=r.props,l=s===void 0?{}:s,c=this.$props,d=c.passive,u=Oe(c,["passive"]),f=z({},Object.entries(l).reduce(function(g,h){var y,w=h[0],C=h[1];return Object.assign(g,(y={},y[w]=t.unref(C),y))},{}),{id:this.id}),p=z({},u,f);return d&&delete p.onClick,X({props:p,slot:i,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=ba(),e="headlessui-label-"+ue();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}}),wa=Symbol("RadioGroupContext");function xa(n){var r=t.inject(wa,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <RadioGroup /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,xa),e}return r}var ac=t.defineComponent({name:"RadioGroup",emits:{"update:modelValue":function(r){return!0}},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean]}},render:function(){var r=this.$props,e=Oe(r,["modelValue","disabled"]),o={ref:"el",id:this.id,role:"radiogroup","aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onKeydown:this.handleKeyDown};return X({props:z({},e,o),slot:{},attrs:this.$attrs,slots:this.$slots,name:"RadioGroup"})},setup:function(r,e){var o=e.emit,a=t.ref(null),i=t.ref([]),s=xr({name:"RadioGroupLabel"}),l=un({name:"RadioGroupDescription"}),c=t.computed(function(){return r.modelValue}),d={options:i,value:c,disabled:t.computed(function(){return r.disabled}),firstOption:t.computed(function(){return i.value.find(function(p){return!p.propsRef.disabled})}),containsCheckedOption:t.computed(function(){return i.value.some(function(p){return t.toRaw(p.propsRef.value)===t.toRaw(r.modelValue)})}),change:function(g){var h;if(r.disabled||c.value===g)return!1;var y=(h=i.value.find(function(w){return t.toRaw(w.propsRef.value)===t.toRaw(g)}))==null?void 0:h.propsRef;return y!=null&&y.disabled?!1:(o("update:modelValue",g),!0)},registerOption:function(g){var h,y=Array.from((h=a.value)==null?void 0:h.querySelectorAll('[id^="headlessui-radiogroup-option-"]')).reduce(function(w,C,D){var N;return Object.assign(w,(N={},N[C.id]=D,N))},{});i.value.push(g),i.value.sort(function(w,C){return y[w.id]-y[C.id]})},unregisterOption:function(g){var h=i.value.findIndex(function(y){return y.id===g});h!==-1&&i.value.splice(h,1)}};t.provide(wa,d),da({container:t.computed(function(){return T(a)}),accept:function(g){return g.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:g.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(g){g.setAttribute("role","none")}});function u(p){if(a.value&&a.value.contains(p.target)){var g=i.value.filter(function(N){return N.propsRef.disabled===!1}).map(function(N){return N.element});switch(p.key){case A.ArrowLeft:case A.ArrowUp:{p.preventDefault(),p.stopPropagation();var h=Ie(g,q.Previous|q.WrapAround);if(h===De.Success){var y=i.value.find(function(N){return N.element===document.activeElement});y&&d.change(y.propsRef.value)}}break;case A.ArrowRight:case A.ArrowDown:{p.preventDefault(),p.stopPropagation();var w=Ie(g,q.Next|q.WrapAround);if(w===De.Success){var C=i.value.find(function(N){return N.element===document.activeElement});C&&d.change(C.propsRef.value)}}break;case A.Space:{p.preventDefault(),p.stopPropagation();var D=i.value.find(function(N){return N.element===document.activeElement});D&&d.change(D.propsRef.value)}break}}}var f="headlessui-radiogroup-"+ue();return{id:f,labelledby:s,describedby:l,el:a,handleKeyDown:u}}}),ot;(function(n){n[n.Empty=1]="Empty",n[n.Active=2]="Active"})(ot||(ot={}));var ic=t.defineComponent({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},render:function(){var r=this.$props,e=Oe(r,["value","disabled"]),o={checked:this.checked,disabled:this.disabled,active:!!(this.state&ot.Active)},a={id:this.id,ref:"el",role:"radio","aria-checked":this.checked?"true":"false","aria-labelledby":this.labelledby,"aria-describedby":this.describedby,"aria-disabled":this.disabled?!0:void 0,tabIndex:this.tabIndex,onClick:this.disabled?void 0:this.handleClick,onFocus:this.disabled?void 0:this.handleFocus,onBlur:this.disabled?void 0:this.handleBlur};return X({props:z({},e,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"RadioGroupOption"})},setup:function(r){var e=xa("RadioGroupOption"),o="headlessui-radiogroup-option-"+ue(),a=xr({name:"RadioGroupLabel"}),i=un({name:"RadioGroupDescription"}),s=t.ref(null),l=t.computed(function(){return{value:r.value,disabled:r.disabled}}),c=t.ref(ot.Empty);t.onMounted(function(){return e.registerOption({id:o,element:s,propsRef:l})}),t.onUnmounted(function(){return e.unregisterOption(o)});var d=t.computed(function(){var p;return((p=e.firstOption.value)==null?void 0:p.id)===o}),u=t.computed(function(){return e.disabled.value||r.disabled}),f=t.computed(function(){return t.toRaw(e.value.value)===t.toRaw(r.value)});return{id:o,el:s,labelledby:a,describedby:i,state:c,disabled:u,checked:f,tabIndex:t.computed(function(){return u.value?-1:f.value||!e.containsCheckedOption.value&&d.value?0:-1}),handleClick:function(){var g;e.change(r.value)&&(c.value|=ot.Active,(g=s.value)==null||g.focus())},handleFocus:function(){c.value|=ot.Active},handleBlur:function(){c.value&=~ot.Active}}}}),Ca=ya,Cr=oa,Ea=Symbol("GroupContext"),sc=t.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=t.ref(null),s=xr({name:"SwitchLabel",props:{onClick:function(){i.value&&(i.value.click(),i.value.focus({preventScroll:!0}))}}}),l=un({name:"SwitchDescription"}),c={switchRef:i,labelledby:s,describedby:l};return t.provide(Ea,c),function(){return X({props:r,slot:{},slots:o,attrs:a,name:"SwitchGroup"})}}}),lc=t.defineComponent({name:"Switch",emits:{"update:modelValue":function(r){return!0}},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:!1}},render:function(){var r={checked:this.$props.modelValue},e={id:this.id,ref:"el",role:"switch",type:this.type,tabIndex:0,"aria-checked":this.$props.modelValue,"aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onClick:this.handleClick,onKeyup:this.handleKeyUp,onKeypress:this.handleKeyPress};return X({props:z({},this.$props,e),slot:r,attrs:this.$attrs,slots:this.$slots,name:"Switch"})},setup:function(r,e){var o=e.emit,a=e.attrs,i=t.inject(Ea,null),s="headlessui-switch-"+ue();function l(){o("update:modelValue",!r.modelValue)}var c=t.ref(null),d=i===null?c:i.switchRef;return{id:s,el:d,type:gn(t.computed(function(){return{as:r.as,type:a.type}}),d),labelledby:i==null?void 0:i.labelledby,describedby:i==null?void 0:i.describedby,handleClick:function(f){f.preventDefault(),l()},handleKeyUp:function(f){f.key!==A.Tab&&f.preventDefault(),f.key===A.Space&&l()},handleKeyPress:function(f){f.preventDefault()}}}}),cc=ya,dc=oa;function uc(n){var r={called:!1};return function(){if(!r.called)return r.called=!0,n.apply(void 0,arguments)}}function ka(){var n=[],r={requestAnimationFrame:function(e){function o(){return e.apply(this,arguments)}return o.toString=function(){return e.toString()},o}(function(){var e=requestAnimationFrame.apply(void 0,arguments);r.add(function(){return cancelAnimationFrame(e)})}),nextFrame:function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];r.requestAnimationFrame(function(){r.requestAnimationFrame.apply(r,a)})},setTimeout:function(e){function o(){return e.apply(this,arguments)}return o.toString=function(){return e.toString()},o}(function(){var e=setTimeout.apply(void 0,arguments);r.add(function(){return clearTimeout(e)})}),add:function(o){n.push(o)},dispose:function(){for(var o=ze(n.splice(0)),a;!(a=o()).done;){var i=a.value;i()}}};return r}function Er(n){for(var r,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];n&&o.length>0&&(r=n.classList).add.apply(r,o)}function bn(n){for(var r,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];n&&o.length>0&&(r=n.classList).remove.apply(r,o)}var Ge;(function(n){n.Finished="finished",n.Cancelled="cancelled"})(Ge||(Ge={}));function fc(n,r){var e=ka();if(!n)return e.dispose;var o=getComputedStyle(n),a=o.transitionDuration,i=o.transitionDelay,s=[a,i].map(function(d){var u=d.split(",").filter(Boolean).map(function(g){return g.includes("ms")?parseFloat(g):parseFloat(g)*1e3}).sort(function(g,h){return h-g}),f=u[0],p=f===void 0?0:f;return p}),l=s[0],c=s[1];return l!==0?e.setTimeout(function(){return r(Ge.Finished)},l+c):r(Ge.Finished),e.add(function(){return r(Ge.Cancelled)}),e.dispose}function Da(n,r,e,o,a,i){var s=ka(),l=i!==void 0?uc(i):function(){};return bn.apply(void 0,[n].concat(a)),Er.apply(void 0,[n].concat(r,e)),s.nextFrame(function(){bn.apply(void 0,[n].concat(e)),Er.apply(void 0,[n].concat(o)),s.add(fc(n,function(c){return bn.apply(void 0,[n].concat(o,r)),Er.apply(void 0,[n].concat(a)),l(c)}))}),s.add(function(){return bn.apply(void 0,[n].concat(r,e,o,a))}),s.add(function(){return l(Ge.Cancelled)}),s.dispose}function at(n){return n===void 0&&(n=""),n.split(" ").filter(function(r){return r.trim().length>1})}var kr=Symbol("TransitionContext"),Z;(function(n){n.Visible="visible",n.Hidden="hidden"})(Z||(Z={}));function pc(){return t.inject(kr,null)!==null}function mc(){var n=t.inject(kr,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}function hc(){var n=t.inject(Dr,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}var Dr=Symbol("NestingContext");function yn(n){return"children"in n?yn(n.children):n.value.filter(function(r){var e=r.state;return e===Z.Visible}).length>0}function Sa(n){var r=t.ref([]),e=t.ref(!1);t.onMounted(function(){return e.value=!0}),t.onUnmounted(function(){return e.value=!1});function o(i,s){var l;s===void 0&&(s=ke.Hidden);var c=r.value.findIndex(function(d){var u=d.id;return u===i});c!==-1&&(we(s,(l={},l[ke.Unmount]=function(){r.value.splice(c,1)},l[ke.Hidden]=function(){r.value[c].state=Z.Hidden},l)),!yn(r)&&e.value&&(n==null||n()))}function a(i){var s=r.value.find(function(l){var c=l.id;return c===i});return s?s.state!==Z.Visible&&(s.state=Z.Visible):r.value.push({id:i,state:Z.Visible}),function(){return o(i,ke.Unmount)}}return{children:r,register:a,unregister:o}}var Na=xe.RenderStrategy,Ye=t.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:function(){return!0},afterEnter:function(){return!0},beforeLeave:function(){return!0},afterLeave:function(){return!0}},render:function(){var r=this;if(this.renderAsRoot)return t.h(At,z({},this.$props,{onBeforeEnter:function(){return r.$emit("beforeEnter")},onAfterEnter:function(){return r.$emit("afterEnter")},onBeforeLeave:function(){return r.$emit("beforeLeave")},onAfterLeave:function(){return r.$emit("afterLeave")}}),this.$slots);var e=this.$props,o=Oe(e,["appear","show","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),a={ref:"el"},i=o;return X({props:z({},i,a),slot:{},slots:this.$slots,attrs:this.$attrs,features:Na,visible:this.state===Z.Visible,name:"TransitionChild"})},setup:function(r,e){var o=e.emit;if(!pc()&&Yl())return{renderAsRoot:!0};var a=t.ref(null),i=t.ref(Z.Visible),s=t.computed(function(){return r.unmount?ke.Unmount:ke.Hidden}),l=mc(),c=l.show,d=l.appear,u=hc(),f=u.register,p=u.unregister,g={value:!0},h=ue(),y={value:!1},w=Sa(function(){y.value||(i.value=Z.Hidden,p(h),o("afterLeave"))});t.onMounted(function(){var L=f(h);t.onUnmounted(L)}),t.watchEffect(function(){var L;if(s.value===ke.Hidden&&h){if(c&&i.value!==Z.Visible){i.value=Z.Visible;return}we(i.value,(L={},L[Z.Hidden]=function(){return p(h)},L[Z.Visible]=function(){return f(h)},L))}});var C=at(r.enter),D=at(r.enterFrom),N=at(r.enterTo),I=at(r.entered),V=at(r.leave),j=at(r.leaveFrom),$=at(r.leaveTo);t.onMounted(function(){t.watchEffect(function(){if(i.value===Z.Visible){var L=T(a),Y=L instanceof Comment&&L.data==="";if(Y)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function ce(L){var Y=g.value&&!d.value,ee=T(a);!ee||!(ee instanceof HTMLElement)||Y||(y.value=!0,c.value&&o("beforeEnter"),c.value||o("beforeLeave"),L(c.value?Da(ee,C,D,N,I,function(oe){y.value=!1,oe===Ge.Finished&&o("afterEnter")}):Da(ee,V,j,$,I,function(oe){y.value=!1,oe===Ge.Finished&&(yn(w)||(i.value=Z.Hidden,p(h),o("afterLeave")))})))}return t.onMounted(function(){t.watch([c,d],function(L,Y,ee){ce(ee),g.value=!1},{immediate:!0})}),t.provide(Dr,w),fn(t.computed(function(){var L;return we(i.value,(L={},L[Z.Visible]=ae.Open,L[Z.Hidden]=ae.Closed,L))})),{el:a,renderAsRoot:!1,state:i}}}),At=t.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:function(){return!0},afterEnter:function(){return!0},beforeLeave:function(){return!0},afterLeave:function(){return!0}},render:function(){var r=this,e=this.$props,o=e.unmount,a=Oe(e,["show","appear","unmount"]),i={unmount:o};return X({props:z({},i,{as:"template"}),slot:{},slots:z({},this.$slots,{default:function(){return[t.h(Ye,z({onBeforeEnter:function(){return r.$emit("beforeEnter")},onAfterEnter:function(){return r.$emit("afterEnter")},onBeforeLeave:function(){return r.$emit("beforeLeave")},onAfterLeave:function(){return r.$emit("afterLeave")}},r.$attrs,i,a),r.$slots.default)]}}),attrs:{},features:Na,visible:this.state===Z.Visible,name:"Transition"})},setup:function(r){var e=gt(),o=t.computed(function(){if(r.show===null&&e!==null){var c;return we(e.value,(c={},c[ae.Open]=!0,c[ae.Closed]=!1,c))}return r.show});t.watchEffect(function(){if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});var a=t.ref(o.value?Z.Visible:Z.Hidden),i=Sa(function(){a.value=Z.Hidden}),s={value:!0},l={show:o,appear:t.computed(function(){return r.appear||!s.value})};return t.onMounted(function(){t.watchEffect(function(){s.value=!1,o.value?a.value=Z.Visible:yn(i)||(a.value=Z.Hidden)})}),t.provide(Dr,i),t.provide(kr,l),{state:a,show:o}}});function _a(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])}function va(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})])}function gc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z","clip-rule":"evenodd"})])}function bc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})])}function yc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}function wc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])}function xc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])}function Cc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])}const Ta=n=>{const r=t.ref(n),e=t.computed(()=>o.value.length>0),o=t.computed(()=>r.value.map(a=>({...a,disabled:a.disabled!==void 0?typeof a.disabled=="boolean"?a.disabled:a.disabled():!1,show:a.show!==void 0?typeof a.show=="boolean"?a.show:a.show():!0})).filter(a=>a.show));return{actions:o,hasActions:e}};function Je(n){return n.split("-")[1]}function $a(n){return n==="y"?"height":"width"}function yt(n){return n.split("-")[0]}function wn(n){return["top","bottom"].includes(yt(n))?"x":"y"}function Ba(n,r,e){let{reference:o,floating:a}=n;const i=o.x+o.width/2-a.width/2,s=o.y+o.height/2-a.height/2,l=wn(r),c=$a(l),d=o[c]/2-a[c]/2,u=l==="x";let f;switch(yt(r)){case"top":f={x:i,y:o.y-a.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:s};break;case"left":f={x:o.x-a.width,y:s};break;default:f={x:o.x,y:o.y}}switch(Je(r)){case"start":f[l]-=d*(e&&u?-1:1);break;case"end":f[l]+=d*(e&&u?-1:1)}return f}const Ec=async(n,r,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:s}=e,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(r));let d=await s.getElementRects({reference:n,floating:r,strategy:a}),{x:u,y:f}=Ba(d,o,c),p=o,g={},h=0;for(let y=0;y<l.length;y++){const{name:w,fn:C}=l[y],{x:D,y:N,data:I,reset:V}=await C({x:u,y:f,initialPlacement:o,placement:p,strategy:a,middlewareData:g,rects:d,platform:s,elements:{reference:n,floating:r}});u=D??u,f=N??f,g={...g,[w]:{...g[w],...I}},V&&h<=50&&(h++,typeof V=="object"&&(V.placement&&(p=V.placement),V.rects&&(d=V.rects===!0?await s.getElementRects({reference:n,floating:r,strategy:a}):V.rects),{x:u,y:f}=Ba(d,p,c)),y=-1)}return{x:u,y:f,placement:p,strategy:a,middlewareData:g}};function xn(n,r){return typeof n=="function"?n(r):n}function kc(n){return typeof n!="number"?function(r){return{top:0,right:0,bottom:0,left:0,...r}}(n):{top:n,right:n,bottom:n,left:n}}function Cn(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}async function Ma(n,r){var e;r===void 0&&(r={});const{x:o,y:a,platform:i,rects:s,elements:l,strategy:c}=n,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:g=0}=xn(r,n),h=kc(g),y=l[p?f==="floating"?"reference":"floating":f],w=Cn(await i.getClippingRect({element:(e=await(i.isElement==null?void 0:i.isElement(y)))==null||e?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),C=f==="floating"?{...s.floating,x:o,y:a}:s.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),N=await(i.isElement==null?void 0:i.isElement(D))&&await(i.getScale==null?void 0:i.getScale(D))||{x:1,y:1},I=Cn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:C,offsetParent:D,strategy:c}):C);return{top:(w.top-I.top+h.top)/N.y,bottom:(I.bottom-w.bottom+h.bottom)/N.y,left:(w.left-I.left+h.left)/N.x,right:(I.right-w.right+h.right)/N.x}}const Dc=Math.min,Sc=Math.max;function Va(n,r,e){return Sc(n,Dc(r,e))}const Nc=["top","right","bottom","left"],Pa=Nc.reduce((n,r)=>n.concat(r,r+"-start",r+"-end"),[]),_c={left:"right",right:"left",bottom:"top",top:"bottom"};function Aa(n){return n.replace(/left|right|bottom|top/g,r=>_c[r])}function vc(n,r,e){e===void 0&&(e=!1);const o=Je(n),a=wn(n),i=$a(a);let s=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(s=Aa(s)),{main:s,cross:Aa(s)}}const Tc={start:"end",end:"start"};function $c(n){return n.replace(/start|end/g,r=>Tc[r])}const Bc=function(n){return n===void 0&&(n={}),{name:"autoPlacement",options:n,async fn(r){var e,o,a;const{rects:i,middlewareData:s,placement:l,platform:c,elements:d}=r,{crossAxis:u=!1,alignment:f,allowedPlacements:p=Pa,autoAlignment:g=!0,...h}=xn(n,r),y=f!==void 0||p===Pa?function(Y,ee,oe){return(Y?[...oe.filter(ie=>Je(ie)===Y),...oe.filter(ie=>Je(ie)!==Y)]:oe.filter(ie=>yt(ie)===ie)).filter(ie=>!Y||Je(ie)===Y||!!ee&&$c(ie)!==ie)}(f||null,g,p):p,w=await Ma(r,h),C=((e=s.autoPlacement)==null?void 0:e.index)||0,D=y[C];if(D==null)return{};const{main:N,cross:I}=vc(D,i,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(l!==D)return{reset:{placement:y[0]}};const V=[w[yt(D)],w[N],w[I]],j=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:D,overflows:V}],$=y[C+1];if($)return{data:{index:C+1,overflows:j},reset:{placement:$}};const ce=j.map(Y=>{const ee=Je(Y.placement);return[Y.placement,ee&&u?Y.overflows.slice(0,2).reduce((oe,ie)=>oe+ie,0):Y.overflows[0],Y.overflows]}).sort((Y,ee)=>Y[1]-ee[1]),L=((a=ce.filter(Y=>Y[2].slice(0,Je(Y[0])?2:3).every(ee=>ee<=0))[0])==null?void 0:a[0])||ce[0][0];return L!==l?{data:{index:C+1,overflows:j},reset:{placement:L}}:{}}}},Mc=function(n){return{name:"offset",options:n,async fn(r){const{x:e,y:o}=r,a=await async function(i,s){const{placement:l,platform:c,elements:d}=i,u=await(c.isRTL==null?void 0:c.isRTL(d.floating)),f=yt(l),p=Je(l),g=wn(l)==="x",h=["left","top"].includes(f)?-1:1,y=u&&g?-1:1,w=xn(s,i);let{mainAxis:C,crossAxis:D,alignmentAxis:N}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...w};return p&&typeof N=="number"&&(D=p==="end"?-1*N:N),g?{x:D*y,y:C*h}:{x:C*h,y:D*y}}(r,n);return{x:e+a.x,y:o+a.y,data:a}}}};function Vc(n){return n==="x"?"y":"x"}const Pc=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:e,y:o,placement:a}=r,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:C,y:D}=w;return{x:C,y:D}}},...c}=xn(n,r),d={x:e,y:o},u=await Ma(r,c),f=wn(yt(a)),p=Vc(f);let g=d[f],h=d[p];if(i){const w=f==="y"?"bottom":"right";g=Va(g+u[f==="y"?"top":"left"],g,g-u[w])}if(s){const w=p==="y"?"bottom":"right";h=Va(h+u[p==="y"?"top":"left"],h,h-u[w])}const y=l.fn({...r,[f]:g,[p]:h});return{...y,data:{x:y.x-e,y:y.y-o}}}}};function $e(n){var r;return((r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Le(n){return $e(n).getComputedStyle(n)}function Ra(n){return n instanceof $e(n).Node}function Xe(n){return Ra(n)?(n.nodeName||"").toLowerCase():""}function Fe(n){return n instanceof $e(n).HTMLElement}function Se(n){return n instanceof $e(n).Element}function Oa(n){return typeof ShadowRoot>"u"?!1:n instanceof $e(n).ShadowRoot||n instanceof ShadowRoot}function Rt(n){const{overflow:r,overflowX:e,overflowY:o,display:a}=Le(n);return/auto|scroll|overlay|hidden|clip/.test(r+o+e)&&!["inline","contents"].includes(a)}function Ac(n){return["table","td","th"].includes(Xe(n))}function Sr(n){const r=Nr(),e=Le(n);return e.transform!=="none"||e.perspective!=="none"||!r&&!!e.backdropFilter&&e.backdropFilter!=="none"||!r&&!!e.filter&&e.filter!=="none"||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function Nr(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function En(n){return["html","body","#document"].includes(Xe(n))}const Ia=Math.min,Ot=Math.max,kn=Math.round;function La(n){const r=Le(n);let e=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=Fe(n),i=a?n.offsetWidth:e,s=a?n.offsetHeight:o,l=kn(e)!==i||kn(o)!==s;return l&&(e=i,o=s),{width:e,height:o,fallback:l}}function Fa(n){return Se(n)?n:n.contextElement}const ja={x:1,y:1};function wt(n){const r=Fa(n);if(!Fe(r))return ja;const e=r.getBoundingClientRect(),{width:o,height:a,fallback:i}=La(r);let s=(i?kn(e.width):e.width)/o,l=(i?kn(e.height):e.height)/a;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const Ha={x:0,y:0};function Ua(n,r,e){var o,a;if(r===void 0&&(r=!0),!Nr())return Ha;const i=n?$e(n):window;return!e||r&&e!==i?Ha:{x:((o=i.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=i.visualViewport)==null?void 0:a.offsetTop)||0}}function it(n,r,e,o){r===void 0&&(r=!1),e===void 0&&(e=!1);const a=n.getBoundingClientRect(),i=Fa(n);let s=ja;r&&(o?Se(o)&&(s=wt(o)):s=wt(n));const l=Ua(i,e,o);let c=(a.left+l.x)/s.x,d=(a.top+l.y)/s.y,u=a.width/s.x,f=a.height/s.y;if(i){const p=$e(i),g=o&&Se(o)?$e(o):o;let h=p.frameElement;for(;h&&o&&g!==p;){const y=wt(h),w=h.getBoundingClientRect(),C=getComputedStyle(h);w.x+=(h.clientLeft+parseFloat(C.paddingLeft))*y.x,w.y+=(h.clientTop+parseFloat(C.paddingTop))*y.y,c*=y.x,d*=y.y,u*=y.x,f*=y.y,c+=w.x,d+=w.y,h=$e(h).frameElement}}return Cn({width:u,height:f,x:c,y:d})}function Ze(n){return((Ra(n)?n.ownerDocument:n.document)||window.document).documentElement}function Dn(n){return Se(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function za(n){return it(Ze(n)).left+Dn(n).scrollLeft}function xt(n){if(Xe(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Oa(n)&&n.host||Ze(n);return Oa(r)?r.host:r}function qa(n){const r=xt(n);return En(r)?r.ownerDocument.body:Fe(r)&&Rt(r)?r:qa(r)}function It(n,r){var e;r===void 0&&(r=[]);const o=qa(n),a=o===((e=n.ownerDocument)==null?void 0:e.body),i=$e(o);return a?r.concat(i,i.visualViewport||[],Rt(o)?o:[]):r.concat(o,It(o))}function Wa(n,r,e){let o;if(r==="viewport")o=function(a,i){const s=$e(a),l=Ze(a),c=s.visualViewport;let d=l.clientWidth,u=l.clientHeight,f=0,p=0;if(c){d=c.width,u=c.height;const g=Nr();(!g||g&&i==="fixed")&&(f=c.offsetLeft,p=c.offsetTop)}return{width:d,height:u,x:f,y:p}}(n,e);else if(r==="document")o=function(a){const i=Ze(a),s=Dn(a),l=a.ownerDocument.body,c=Ot(i.scrollWidth,i.clientWidth,l.scrollWidth,l.clientWidth),d=Ot(i.scrollHeight,i.clientHeight,l.scrollHeight,l.clientHeight);let u=-s.scrollLeft+za(a);const f=-s.scrollTop;return Le(l).direction==="rtl"&&(u+=Ot(i.clientWidth,l.clientWidth)-c),{width:c,height:d,x:u,y:f}}(Ze(n));else if(Se(r))o=function(a,i){const s=it(a,!0,i==="fixed"),l=s.top+a.clientTop,c=s.left+a.clientLeft,d=Fe(a)?wt(a):{x:1,y:1};return{width:a.clientWidth*d.x,height:a.clientHeight*d.y,x:c*d.x,y:l*d.y}}(r,e);else{const a=Ua(n);o={...r,x:r.x-a.x,y:r.y-a.y}}return Cn(o)}function Ya(n,r){const e=xt(n);return!(e===r||!Se(e)||En(e))&&(Le(e).position==="fixed"||Ya(e,r))}function Ka(n,r){return Fe(n)&&Le(n).position!=="fixed"?r?r(n):n.offsetParent:null}function Ga(n,r){const e=$e(n);if(!Fe(n))return e;let o=Ka(n,r);for(;o&&Ac(o)&&Le(o).position==="static";)o=Ka(o,r);return o&&(Xe(o)==="html"||Xe(o)==="body"&&Le(o).position==="static"&&!Sr(o))?e:o||function(a){let i=xt(a);for(;Fe(i)&&!En(i);){if(Sr(i))return i;i=xt(i)}return null}(n)||e}function Rc(n,r,e){const o=Fe(r),a=Ze(r),i=e==="fixed",s=it(n,!0,i,r);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!i)if((Xe(r)!=="body"||Rt(a))&&(l=Dn(r)),Fe(r)){const d=it(r,!0,i,r);c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}else a&&(c.x=za(a));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}const Oc={getClippingRect:function(n){let{element:r,boundary:e,rootBoundary:o,strategy:a}=n;const i=e==="clippingAncestors"?function(d,u){const f=u.get(d);if(f)return f;let p=It(d).filter(w=>Se(w)&&Xe(w)!=="body"),g=null;const h=Le(d).position==="fixed";let y=h?xt(d):d;for(;Se(y)&&!En(y);){const w=Le(y),C=Sr(y);C||w.position!=="fixed"||(g=null),(h?!C&&!g:!C&&w.position==="static"&&g&&["absolute","fixed"].includes(g.position)||Rt(y)&&!C&&Ya(d,y))?p=p.filter(D=>D!==y):g=w,y=xt(y)}return u.set(d,p),p}(r,this._c):[].concat(e),s=[...i,o],l=s[0],c=s.reduce((d,u)=>{const f=Wa(r,u,a);return d.top=Ot(f.top,d.top),d.right=Ia(f.right,d.right),d.bottom=Ia(f.bottom,d.bottom),d.left=Ot(f.left,d.left),d},Wa(r,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(n){let{rect:r,offsetParent:e,strategy:o}=n;const a=Fe(e),i=Ze(e);if(e===i)return r;let s={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&((Xe(e)!=="body"||Rt(i))&&(s=Dn(e)),Fe(e))){const d=it(e);l=wt(e),c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-s.scrollLeft*l.x+c.x,y:r.y*l.y-s.scrollTop*l.y+c.y}},isElement:Se,getDimensions:function(n){return La(n)},getOffsetParent:Ga,getDocumentElement:Ze,getScale:wt,async getElementRects(n){let{reference:r,floating:e,strategy:o}=n;const a=this.getOffsetParent||Ga,i=this.getDimensions;return{reference:Rc(r,await a(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:n=>Array.from(n.getClientRects()),isRTL:n=>Le(n).direction==="rtl"};function Ja(n,r,e,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=!0,animationFrame:l=!1}=o,c=a||i?[...Se(n)?It(n):n.contextElement?It(n.contextElement):[],...It(r)]:[];c.forEach(p=>{const g=!Se(p)&&p.toString().includes("V");!a||l&&!g||p.addEventListener("scroll",e,{passive:!0}),i&&p.addEventListener("resize",e)});let d,u=null;s&&(u=new ResizeObserver(()=>{e()}),Se(n)&&!l&&u.observe(n),Se(n)||!n.contextElement||l||u.observe(n.contextElement),u.observe(r));let f=l?it(n):null;return l&&function p(){const g=it(n);!f||g.x===f.x&&g.y===f.y&&g.width===f.width&&g.height===f.height||e(),f=g,d=requestAnimationFrame(p)}(),e(),()=>{var p;c.forEach(g=>{a&&g.removeEventListener("scroll",e),i&&g.removeEventListener("resize",e)}),(p=u)==null||p.disconnect(),u=null,l&&cancelAnimationFrame(d)}}const Ic=(n,r,e)=>{const o=new Map,a={platform:Oc,...e},i={...a.platform,_c:o};return Ec(n,r,{...a,platform:i})};function Xa(n){var r;return(r=n==null?void 0:n.$el)!=null?r:n}function Za(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Qa(n,r){const e=Za(n);return Math.round(r*e)/e}function ei(n,r,e){e===void 0&&(e={});const o=e.whileElementsMounted,a=t.computed(()=>{var $;return($=t.unref(e.open))!=null?$:!0}),i=t.computed(()=>t.unref(e.middleware)),s=t.computed(()=>{var $;return($=t.unref(e.placement))!=null?$:"bottom"}),l=t.computed(()=>{var $;return($=t.unref(e.strategy))!=null?$:"absolute"}),c=t.computed(()=>{var $;return($=t.unref(e.transform))!=null?$:!0}),d=t.computed(()=>Xa(n.value)),u=t.computed(()=>Xa(r.value)),f=t.ref(0),p=t.ref(0),g=t.ref(l.value),h=t.ref(s.value),y=t.shallowRef({}),w=t.ref(!1),C=t.computed(()=>{const $={position:g.value,left:"0",top:"0"};if(!u.value)return $;const ce=Qa(u.value,f.value),L=Qa(u.value,p.value);return c.value?{...$,transform:"translate("+ce+"px, "+L+"px)",...Za(u.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:ce+"px",top:L+"px"}});let D;function N(){d.value==null||u.value==null||Ic(d.value,u.value,{middleware:i.value,placement:s.value,strategy:l.value}).then($=>{f.value=$.x,p.value=$.y,g.value=$.strategy,h.value=$.placement,y.value=$.middlewareData,w.value=!0})}function I(){typeof D=="function"&&(D(),D=void 0)}function V(){if(I(),o===void 0){N();return}if(d.value!=null&&u.value!=null){D=o(d.value,u.value,N);return}}function j(){a.value||(w.value=!1)}return t.watch([i,s,l],N,{flush:"sync"}),t.watch([d,u],V,{flush:"sync"}),t.watch(a,j,{flush:"sync"}),t.getCurrentScope()&&t.onScopeDispose(I),{x:t.shallowReadonly(f),y:t.shallowReadonly(p),strategy:t.shallowReadonly(g),placement:t.shallowReadonly(h),middlewareData:t.shallowReadonly(y),isPositioned:t.shallowReadonly(w),floatingStyles:C,update:N}}const Lc={class:"py-1"},Fc=["disabled","onClick"],jc={class:"relative inline-flex items-center gap-x-1.5"},Sn=t.defineComponent({__name:"ActionsDropdown",props:{actions:{default:()=>[]},placement:{default:"bottom-end"}},setup(n){const r=n,{actions:e,hasActions:o}=Ta(t.toRef(r,"actions")),a=t.useTemplateRef("trigger"),i=t.useTemplateRef("wrapper"),{floatingStyles:s}=ei(a,i,{placement:r.placement,strategy:"fixed",whileElementsMounted:Ja});return(l,c)=>(t.openBlock(),t.createBlock(t.unref(gr),{as:"div",class:"relative flex justify-end items-center"},{default:t.withCtx(()=>[t.createVNode(t.unref(br),{ref:"trigger",class:"w-8 h-8 inline-flex items-center justify-center text-gray-700 rounded-full hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed",disabled:!t.unref(o)},{default:t.withCtx(()=>[c[0]||(c[0]=t.createElementVNode("span",{class:"sr-only"},"Open options",-1)),t.createVNode(t.unref(bc),{class:"w-5 h-5","aria-hidden":"true"})]),_:1},8,["disabled"]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",{ref:"wrapper",class:"z-[5]",style:t.normalizeStyle(t.unref(s))},[t.createVNode(t.unref(yr),{class:"w-48 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-200 focus:outline-none"},{default:t.withCtx(()=>[t.createElementVNode("div",Lc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(d,u)=>(t.openBlock(),t.createBlock(t.unref(wr),{key:u,as:"div"},{default:t.withCtx(({active:f})=>[t.createElementVNode("button",{type:"submit",disabled:d.disabled,class:t.normalizeClass([f?"bg-gray-100 text-gray-900":"text-gray-700","block w-full text-left px-4 py-2 text-sm font-semibold disabled:cursor-not-allowed"]),onClick:d.onClick},[t.createElementVNode("span",jc,[d.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(d.icon),{key:0,class:"-ml-0.5 h-4 w-4 text-gray-400","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(d.label),1)])],10,Fc)]),_:2},1024))),128))])]),_:1})],4)]),_:1})]),_:1}))}}),Hc={class:"px-4 py-5 sm:p-6 text-center"},Uc=["textContent"],zc=["textContent"],ti=t.defineComponent({__name:"Cards",props:{cards:{}},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["mt-5 grid grid-cols-1 gap-5","lg:grid-cols-"+r.cards.length])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.cards,(o,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"bg-white overflow-hidden shadow rounded-xy"},[t.createElementVNode("div",Hc,[t.createElementVNode("dl",null,[t.createElementVNode("dd",{class:"mt-1 text-3xl leading-9 font-semibold text-xy-blue",textContent:t.toDisplayString(o.primary)},null,8,Uc),t.createElementVNode("dt",{class:"text-sm leading-5 font-medium text-gray-700 truncate",textContent:t.toDisplayString(o.secondary)},null,8,zc)])])]))),128))],2))}}),qc={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Wc={class:"inline-block align-bottom bg-white rounded-xy px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-md sm:w-full sm:p-8 sm:rounded-xy-lg"},Yc={class:"mt-3 text-center sm:mt-5"},Kc={class:"mt-2"},Gc={class:"mt-5 sm:mt-6"},ni=t.defineComponent({__name:"ContentModal",props:t.mergeModels({btnText:{default:"Go back"},title:{default:""}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:t.mergeModels(["close"],["update:modelValue"]),setup(n,{emit:r}){const e=t.useModel(n,"modelValue"),o=r;return t.watch(e,a=>{a||o("close")}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(At),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(mn),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:e.value,onClose:i[1]||(i[1]=s=>e.value=!1)},{default:t.withCtx(()=>[t.createElementVNode("div",qc,[t.createVNode(t.unref(Ye),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(hn),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),i[2]||(i[2]=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1)),t.createVNode(t.unref(Ye),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",Wc,[t.createElementVNode("div",null,[t.renderSlot(a.$slots,"icon"),t.createElementVNode("div",Yc,[t.createVNode(t.unref(hr),{as:"h3"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),t.createElementVNode("div",Kc,[t.renderSlot(a.$slots,"default")])])]),t.createElementVNode("div",Gc,[t.createElementVNode("button",{type:"button",class:"inline-flex justify-center w-full xy-btn",onClick:i[0]||(i[0]=s=>e.value=!1)},t.toDisplayString(a.btnText),1)])])]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Jc={key:0,class:"text-red-700/80","aria-hidden":""},he=t.defineComponent({__name:"InputLabel",props:{label:{default:""},required:{type:Boolean,default:!1},tag:{default:"label"}},setup(n){const r=n,e=t.computed(()=>r.required&&/\*$/gm.exec(r.label)!==null?r.label.substring(0,r.label.length-1):r.label);return(o,a)=>e.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tag),t.mergeProps({key:0,class:"block text-sm leading-snug font-medium text-gray-800"},o.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.value)+" ",1),r.required?(t.openBlock(),t.createElementBlock("span",Jc,"*")):t.createCommentVNode("",!0)]),_:1},16)):t.createCommentVNode("",!0)}}),le=t.defineComponent({__name:"InputHelp",props:{tag:{default:"div"},text:{default:""}},setup(n){return(r,e)=>r.text?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.tag),t.mergeProps({key:0,class:"text-sm leading-6 font-normal text-gray-600"},r.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.text),1)]),_:1},16)):t.createCommentVNode("",!0)}}),Xc={key:0,class:"text-sm text-red-700"},Ne=t.defineComponent({__name:"InputError",props:{text:{default:""}},setup(n){return(r,e)=>r.text?(t.openBlock(),t.createElementBlock("p",Xc,t.toDisplayString(r.text),1)):t.createCommentVNode("",!0)}}),_r=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Ct={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:n=>typeof console<"u"&&console.warn(n),getWeek:n=>{const r=new Date(n.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var e=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},Lt={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:n=>{const r=n%100;if(r>3&&r<21)return"th";switch(r%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Ce=(n,r=2)=>`000${n}`.slice(r*-1),Be=n=>n===!0?1:0;function ri(n,r){let e;return function(){clearTimeout(e),e=setTimeout(()=>n.apply(this,arguments),r)}}const vr=n=>n instanceof Array?n:[n];function ge(n,r,e){if(e===!0)return n.classList.add(r);n.classList.remove(r)}function U(n,r,e){const o=window.document.createElement(n);return r=r||"",e=e||"",o.className=r,e!==void 0&&(o.textContent=e),o}function Nn(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function oi(n,r){if(r(n))return n;if(n.parentNode)return oi(n.parentNode,r)}function _n(n,r){const e=U("div","numInputWrapper"),o=U("input","numInput "+n),a=U("span","arrowUp"),i=U("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?o.type="number":(o.type="text",o.pattern="\\d*"),r!==void 0)for(const s in r)o.setAttribute(s,r[s]);return e.appendChild(o),e.appendChild(a),e.appendChild(i),e}function _e(n){try{return typeof n.composedPath=="function"?n.composedPath()[0]:n.target}catch{return n.target}}const Tr=()=>{},vn=(n,r,e)=>e.months[r?"shorthand":"longhand"][n],Zc={D:Tr,F:function(n,r,e){n.setMonth(e.months.longhand.indexOf(r))},G:(n,r)=>{n.setHours(parseFloat(r))},H:(n,r)=>{n.setHours(parseFloat(r))},J:(n,r)=>{n.setDate(parseFloat(r))},K:(n,r,e)=>{n.setHours(n.getHours()%12+12*Be(new RegExp(e.amPM[1],"i").test(r)))},M:function(n,r,e){n.setMonth(e.months.shorthand.indexOf(r))},S:(n,r)=>{n.setSeconds(parseFloat(r))},U:(n,r)=>new Date(parseFloat(r)*1e3),W:function(n,r,e){const o=parseInt(r),a=new Date(n.getFullYear(),0,2+(o-1)*7,0,0,0,0);return a.setDate(a.getDate()-a.getDay()+e.firstDayOfWeek),a},Y:(n,r)=>{n.setFullYear(parseFloat(r))},Z:(n,r)=>new Date(r),d:(n,r)=>{n.setDate(parseFloat(r))},h:(n,r)=>{n.setHours(parseFloat(r))},i:(n,r)=>{n.setMinutes(parseFloat(r))},j:(n,r)=>{n.setDate(parseFloat(r))},l:Tr,m:(n,r)=>{n.setMonth(parseFloat(r)-1)},n:(n,r)=>{n.setMonth(parseFloat(r)-1)},s:(n,r)=>{n.setSeconds(parseFloat(r))},u:(n,r)=>new Date(parseFloat(r)),w:Tr,y:(n,r)=>{n.setFullYear(2e3+parseFloat(r))}},$r={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Ft={Z:n=>n.toISOString(),D:function(n,r,e){return r.weekdays.shorthand[Ft.w(n,r,e)]},F:function(n,r,e){return vn(Ft.n(n,r,e)-1,!1,r)},G:function(n,r,e){return Ce(Ft.h(n,r,e))},H:n=>Ce(n.getHours()),J:function(n,r){return r.ordinal!==void 0?n.getDate()+r.ordinal(n.getDate()):n.getDate()},K:(n,r)=>r.amPM[Be(n.getHours()>11)],M:function(n,r){return vn(n.getMonth(),!0,r)},S:n=>Ce(n.getSeconds()),U:n=>n.getTime()/1e3,W:function(n,r,e){return e.getWeek(n)},Y:n=>Ce(n.getFullYear(),4),d:n=>Ce(n.getDate()),h:n=>n.getHours()%12?n.getHours()%12:12,i:n=>Ce(n.getMinutes()),j:n=>n.getDate(),l:function(n,r){return r.weekdays.longhand[n.getDay()]},m:n=>Ce(n.getMonth()+1),n:n=>n.getMonth()+1,s:n=>n.getSeconds(),u:n=>n.getTime(),w:n=>n.getDay(),y:n=>String(n.getFullYear()).substring(2)},ai=({config:n=Ct,l10n:r=Lt,isMobile:e=!1})=>(o,a,i)=>{const s=i||r;return n.formatDate!==void 0&&!e?n.formatDate(o,a,s):a.split("").map((l,c,d)=>Ft[l]&&d[c-1]!=="\\"?Ft[l](o,s,n):l!=="\\"?l:"").join("")},Br=({config:n=Ct,l10n:r=Lt})=>(e,o,a,i)=>{if(e!==0&&!e)return;const s=i||r;let l;const c=e;if(e instanceof Date)l=new Date(e.getTime());else if(typeof e!="string"&&e.toFixed!==void 0)l=new Date(e);else if(typeof e=="string"){const d=o||(n||Ct).dateFormat,u=String(e).trim();if(u==="today")l=new Date,a=!0;else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else if(n&&n.parseDate)l=n.parseDate(e,d);else{l=!n||!n.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0));let f,p=[];for(let g=0,h=0,y="";g<d.length;g++){const w=d[g],C=w==="\\",D=d[g-1]==="\\"||C;if($r[w]&&!D){y+=$r[w];const N=new RegExp(y).exec(e);N&&(f=!0)&&p[w!=="Y"?"push":"unshift"]({fn:Zc[w],val:N[++h]})}else C||(y+=".");p.forEach(({fn:N,val:I})=>l=N(l,I,s)||l)}l=f?l:void 0}}if(!(l instanceof Date&&!isNaN(l.getTime()))){n.errorHandler(new Error(`Invalid date provided: ${c}`));return}return a===!0&&l.setHours(0,0,0,0),l};function ve(n,r,e=!0){return e!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):n.getTime()-r.getTime()}const Qc=(n,r,e)=>n>Math.min(r,e)&&n<Math.max(r,e),ed={DAY:864e5};function Mr(n){let r=n.defaultHour,e=n.defaultMinute,o=n.defaultSeconds;if(n.minDate!==void 0){const a=n.minDate.getHours(),i=n.minDate.getMinutes(),s=n.minDate.getSeconds();r<a&&(r=a),r===a&&e<i&&(e=i),r===a&&e===i&&o<s&&(o=n.minDate.getSeconds())}if(n.maxDate!==void 0){const a=n.maxDate.getHours(),i=n.maxDate.getMinutes();r=Math.min(r,a),r===a&&(e=Math.min(i,e)),r===a&&e===i&&(o=n.maxDate.getSeconds())}return{hours:r,minutes:e,seconds:o}}typeof Object.assign!="function"&&(Object.assign=function(n,...r){if(!n)throw TypeError("Cannot convert undefined or null to object");for(const e of r)e&&Object.keys(e).forEach(o=>n[o]=e[o]);return n});const td=300;function nd(n,r){const e={config:Object.assign(Object.assign({},Ct),re.defaultConfig),l10n:Lt};e.parseDate=Br({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=h,e._setHoursFromDate=f,e._positionCalendar=qn,e.changeMonth=lt,e.changeYear=Un,e.clear=Ve,e.close=qr,e._createElement=U,e.destroy=wh,e.isEnabled=ct,e.jumpToDate=C,e.open=kh,e.redraw=es,e.set=_h,e.setDate=vh,e.toggle=Mh;function o(){e.utils={getDaysInMonth(m=e.currentMonth,b=e.currentYear){return m===1&&(b%4===0&&b%100!==0||b%400===0)?29:e.l10n.daysInMonth[m]}}}function a(){e.element=e.input=n,e.isOpen=!1,Dh(),Qi(),$h(),Th(),o(),e.isMobile||I(),w(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&f(e.config.noCalendar?e.latestSelectedDateObj:void 0),Qe(!1)),s();const m=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&m&&qn(),te("onReady")}function i(m){return m.bind(e)}function s(){const m=e.config;m.weekNumbers===!1&&m.showMonths===1||m.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){const b=(e.days.offsetWidth+1)*m.showMonths;e.daysContainer.style.width=b+"px",e.calendarContainer.style.width=b+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function l(m){if(e.selectedDates.length===0){const x=e.config.minDate===void 0||ve(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),k=Mr(e.config);x.setHours(k.hours,k.minutes,k.seconds,x.getMilliseconds()),e.selectedDates=[x],e.latestSelectedDateObj=x}m!==void 0&&m.type!=="blur"&&Ah(m);const b=e._input.value;u(),Qe(),e._input.value!==b&&e._debouncedChange()}function c(m,b){return m%12+12*Be(b===e.l10n.amPM[1])}function d(m){switch(m%24){case 0:case 12:return 12;default:return m%12}}function u(){if(e.hourElement===void 0||e.minuteElement===void 0)return;let m=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,b=(parseInt(e.minuteElement.value,10)||0)%60,x=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(m=c(m,e.amPM.textContent));const k=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&ve(e.latestSelectedDateObj,e.config.minDate,!0)===0;if(e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&ve(e.latestSelectedDateObj,e.config.maxDate,!0)===0){const S=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;m=Math.min(m,S.getHours()),m===S.getHours()&&(b=Math.min(b,S.getMinutes())),b===S.getMinutes()&&(x=Math.min(x,S.getSeconds()))}if(k){const S=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;m=Math.max(m,S.getHours()),m===S.getHours()&&b<S.getMinutes()&&(b=S.getMinutes()),b===S.getMinutes()&&(x=Math.max(x,S.getSeconds()))}p(m,b,x)}function f(m){const b=m||e.latestSelectedDateObj;b&&p(b.getHours(),b.getMinutes(),b.getSeconds())}function p(m,b,x){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(m%24,b,x||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=Ce(e.config.time_24hr?m:(12+m)%12+12*Be(m%12===0)),e.minuteElement.value=Ce(b),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[Be(m>=12)]),e.secondElement!==void 0&&(e.secondElement.value=Ce(x)))}function g(m){const b=_e(m),x=parseInt(b.value)+(m.delta||0);(x/1e3>1||m.key==="Enter"&&!/[^\d]/.test(x.toString()))&&Un(x)}function h(m,b,x,k){if(b instanceof Array)return b.forEach(v=>h(m,v,x,k));if(m instanceof Array)return m.forEach(v=>h(v,b,x,k));m.addEventListener(b,x,k),e._handlers.push({remove:()=>m.removeEventListener(b,x)})}function y(){te("onChange")}function w(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(b=>{Array.prototype.forEach.call(e.element.querySelectorAll(`[data-${b}]`),x=>h(x,"click",e[b]))}),e.isMobile){Bh();return}const m=ri(Eh,50);if(e._debouncedChange=ri(y,td),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&h(e.daysContainer,"mouseover",b=>{e.config.mode==="range"&&Yr(_e(b))}),h(window.document.body,"keydown",Ch),!e.config.inline&&!e.config.static&&h(window,"resize",m),window.ontouchstart!==void 0?h(window.document,"touchstart",Wr):h(window.document,"mousedown",Wr),h(window.document,"focus",Wr,{capture:!0}),e.config.clickOpens===!0&&(h(e._input,"focus",e.open),h(e._input,"click",e.open)),e.daysContainer!==void 0&&(h(e.monthNav,"click",Ph),h(e.monthNav,["keyup","increment"],g),h(e.daysContainer,"click",ts)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){const b=x=>_e(x).select();h(e.timeContainer,["increment"],l),h(e.timeContainer,"blur",l,{capture:!0}),h(e.timeContainer,"click",D),h([e.hourElement,e.minuteElement],["focus","click"],b),e.secondElement!==void 0&&h(e.secondElement,"focus",()=>e.secondElement&&e.secondElement.select()),e.amPM!==void 0&&h(e.amPM,"click",x=>{l(x),y()})}e.config.allowInput&&h(e._input,"blur",xh)}function C(m,b){const x=m!==void 0?e.parseDate(m):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),k=e.currentYear,v=e.currentMonth;try{x!==void 0&&(e.currentYear=x.getFullYear(),e.currentMonth=x.getMonth())}catch(S){S.message="Invalid date supplied: "+x,e.config.errorHandler(S)}b&&e.currentYear!==k&&(te("onYearChange"),oe()),b&&(e.currentYear!==k||e.currentMonth!==v)&&te("onMonthChange"),e.redraw()}function D(m){const b=_e(m);~b.className.indexOf("arrow")&&N(m,b.classList.contains("arrowUp")?1:-1)}function N(m,b,x){const k=m&&_e(m),v=x||k&&k.parentNode&&k.parentNode.firstChild,S=Gr("increment");S.delta=b,v&&v.dispatchEvent(S)}function I(){const m=window.document.createDocumentFragment();if(e.calendarContainer=U("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(m.appendChild(Hn()),e.innerContainer=U("div","flatpickr-innerContainer"),e.config.weekNumbers){const{weekWrapper:x,weekNumbers:k}=K();e.innerContainer.appendChild(x),e.weekNumbers=k,e.weekWrapper=x}e.rContainer=U("div","flatpickr-rContainer"),e.rContainer.appendChild(R()),e.daysContainer||(e.daysContainer=U("div","flatpickr-days"),e.daysContainer.tabIndex=-1),ee(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),m.appendChild(e.innerContainer)}e.config.enableTime&&m.appendChild(H()),ge(e.calendarContainer,"rangeMode",e.config.mode==="range"),ge(e.calendarContainer,"animate",e.config.animate===!0),ge(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(m);const b=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!b&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){const x=U("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(x,e.element),x.appendChild(e.element),e.altInput&&x.appendChild(e.altInput),x.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function V(m,b,x,k){const v=ct(b,!0),S=U("span","flatpickr-day "+m,b.getDate().toString());return S.dateObj=b,S.$i=k,S.setAttribute("aria-label",e.formatDate(b,e.config.ariaDateFormat)),m.indexOf("hidden")===-1&&ve(b,e.now)===0&&(e.todayDateElem=S,S.classList.add("today"),S.setAttribute("aria-current","date")),v?(S.tabIndex=-1,Jr(b)&&(S.classList.add("selected"),e.selectedDateElem=S,e.config.mode==="range"&&(ge(S,"startRange",e.selectedDates[0]&&ve(b,e.selectedDates[0],!0)===0),ge(S,"endRange",e.selectedDates[1]&&ve(b,e.selectedDates[1],!0)===0),m==="nextMonthDay"&&S.classList.add("inRange")))):S.classList.add("flatpickr-disabled"),e.config.mode==="range"&&Vh(b)&&!Jr(b)&&S.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&m!=="prevMonthDay"&&x%7===1&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(b)+"</span>"),te("onDayCreate",S),S}function j(m){m.focus(),e.config.mode==="range"&&Yr(m)}function $(m){const b=m>0?0:e.config.showMonths-1,x=m>0?e.config.showMonths:-1;for(let k=b;k!=x;k+=m){const v=e.daysContainer.children[k],S=m>0?0:v.children.length-1,M=m>0?v.children.length:-1;for(let B=S;B!=M;B+=m){const O=v.children[B];if(O.className.indexOf("hidden")===-1&&ct(O.dateObj))return O}}}function ce(m,b){const x=m.className.indexOf("Month")===-1?m.dateObj.getMonth():e.currentMonth,k=b>0?e.config.showMonths:-1,v=b>0?1:-1;for(let S=x-e.currentMonth;S!=k;S+=v){const M=e.daysContainer.children[S],B=x-e.currentMonth===S?m.$i+b:b<0?M.children.length-1:0,O=M.children.length;for(let F=B;F>=0&&F<O&&F!=(b>0?O:-1);F+=v){const G=M.children[F];if(G.className.indexOf("hidden")===-1&&ct(G.dateObj)&&Math.abs(m.$i-F)>=Math.abs(b))return j(G)}}e.changeMonth(v),L($(v),0)}function L(m,b){const x=zn(document.activeElement||document.body),k=m!==void 0?m:x?document.activeElement:e.selectedDateElem!==void 0&&zn(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&zn(e.todayDateElem)?e.todayDateElem:$(b>0?1:-1);k===void 0?e._input.focus():x?ce(k,b):j(k)}function Y(m,b){const x=(new Date(m,b,1).getDay()-e.l10n.firstDayOfWeek+7)%7,k=e.utils.getDaysInMonth((b-1+12)%12,m),v=e.utils.getDaysInMonth(b,m),S=window.document.createDocumentFragment(),M=e.config.showMonths>1,B=M?"prevMonthDay hidden":"prevMonthDay",O=M?"nextMonthDay hidden":"nextMonthDay";let F=k+1-x,G=0;for(;F<=k;F++,G++)S.appendChild(V(B,new Date(m,b-1,F),F,G));for(F=1;F<=v;F++,G++)S.appendChild(V("",new Date(m,b,F),F,G));for(let pe=v+1;pe<=42-x&&(e.config.showMonths===1||G%7!==0);pe++,G++)S.appendChild(V(O,new Date(m,b+1,pe%v),pe,G));const Pe=U("div","dayContainer");return Pe.appendChild(S),Pe}function ee(){if(e.daysContainer===void 0)return;Nn(e.daysContainer),e.weekNumbers&&Nn(e.weekNumbers);const m=document.createDocumentFragment();for(let b=0;b<e.config.showMonths;b++){const x=new Date(e.currentYear,e.currentMonth,1);x.setMonth(e.currentMonth+b),m.appendChild(Y(x.getFullYear(),x.getMonth()))}e.daysContainer.appendChild(m),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&Yr()}function oe(){if(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")return;const m=function(b){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&b<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&b>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(let b=0;b<12;b++){if(!m(b))continue;const x=U("option","flatpickr-monthDropdown-month");x.value=new Date(e.currentYear,b).getMonth().toString(),x.textContent=vn(b,e.config.shorthandCurrentMonth,e.l10n),x.tabIndex=-1,e.currentMonth===b&&(x.selected=!0),e.monthsDropdownContainer.appendChild(x)}}function ie(){const m=U("div","flatpickr-month"),b=window.document.createDocumentFragment();let x;e.config.showMonths>1||e.config.monthSelectorType==="static"?x=U("span","cur-month"):(e.monthsDropdownContainer=U("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),h(e.monthsDropdownContainer,"change",M=>{const B=_e(M),O=parseInt(B.value,10);e.changeMonth(O-e.currentMonth),te("onMonthChange")}),oe(),x=e.monthsDropdownContainer);const k=_n("cur-year",{tabindex:"-1"}),v=k.getElementsByTagName("input")[0];v.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&v.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(v.setAttribute("max",e.config.maxDate.getFullYear().toString()),v.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());const S=U("div","flatpickr-current-month");return S.appendChild(x),S.appendChild(k),b.appendChild(S),m.appendChild(b),{container:m,yearElement:v,monthElement:x}}function jn(){Nn(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(let m=e.config.showMonths;m--;){const b=ie();e.yearElements.push(b.yearElement),e.monthElements.push(b.monthElement),e.monthNav.appendChild(b.container)}e.monthNav.appendChild(e.nextMonthNav)}function Hn(){return e.monthNav=U("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=U("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=U("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,jn(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:()=>e.__hidePrevMonthArrow,set(m){e.__hidePrevMonthArrow!==m&&(ge(e.prevMonthNav,"flatpickr-disabled",m),e.__hidePrevMonthArrow=m)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:()=>e.__hideNextMonthArrow,set(m){e.__hideNextMonthArrow!==m&&(ge(e.nextMonthNav,"flatpickr-disabled",m),e.__hideNextMonthArrow=m)}}),e.currentYearElement=e.yearElements[0],Yn(),e.monthNav}function H(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");const m=Mr(e.config);e.timeContainer=U("div","flatpickr-time"),e.timeContainer.tabIndex=-1;const b=U("span","flatpickr-time-separator",":"),x=_n("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=x.getElementsByTagName("input")[0];const k=_n("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=k.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=Ce(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?m.hours:d(m.hours)),e.minuteElement.value=Ce(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():m.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(x),e.timeContainer.appendChild(b),e.timeContainer.appendChild(k),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");const v=_n("flatpickr-second");e.secondElement=v.getElementsByTagName("input")[0],e.secondElement.value=Ce(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():m.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(U("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(v)}return e.config.time_24hr||(e.amPM=U("span","flatpickr-am-pm",e.l10n.amPM[Be((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function R(){e.weekdayContainer?Nn(e.weekdayContainer):e.weekdayContainer=U("div","flatpickr-weekdays");for(let m=e.config.showMonths;m--;){const b=U("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(b)}return Me(),e.weekdayContainer}function Me(){if(!e.weekdayContainer)return;const m=e.l10n.firstDayOfWeek;let b=[...e.l10n.weekdays.shorthand];m>0&&m<b.length&&(b=[...b.splice(m,b.length),...b.splice(0,m)]);for(let x=e.config.showMonths;x--;)e.weekdayContainer.children[x].innerHTML=`
|
|
10
|
+
`));return t.cloneVNode(f,c)}return Array.isArray(d)&&d.length===1?d[0]:d}return t.h(l,c,d)}function Il(n,r){r===void 0&&(r=[]);for(var e=Object.assign({},n),o=ze(r),a;!(a=o()).done;){var s=a.value;s in e&&delete e[s]}return e}function Ll(n){return n==null?!1:typeof n.type=="string"||typeof n.type=="object"||typeof n.type=="function"}var Jo=Symbol("StackContext"),pt;(function(n){n[n.AddElement=0]="AddElement",n[n.RemoveElement=1]="RemoveElement"})(pt||(pt={}));function Xo(){return t.inject(Jo,function(){})}function Fl(n){var r=Xo();t.watchEffect(function(e){var o=n==null?void 0:n.value;o&&(r(pt.AddElement,o),e(function(){return r(pt.RemoveElement,o)}))})}function Zo(n){var r=Xo();function e(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];n==null||n.apply(void 0,a),r.apply(void 0,a)}t.provide(Jo,e)}var Qo=Symbol("ForcePortalRootContext");function jl(){return t.inject(Qo,!1)}var ea=t.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs;return t.provide(Qo,r.force),function(){var s=Re(r,["force"]);return X({props:s,slot:{},slots:o,attrs:a,name:"ForcePortalRoot"})}}});function ta(){var n=document.getElementById("headlessui-portal-root");if(n)return n;var r=document.createElement("div");return r.setAttribute("id","headlessui-portal-root"),document.body.appendChild(r)}var mr=t.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,s=jl(),i=t.inject(na,null),l=t.ref(s===!0||i===null?ta():i.resolveTarget());t.watchEffect(function(){s||i!==null&&(l.value=i.resolveTarget())});var c=t.ref(null);return Fl(c),t.onUnmounted(function(){var d=document.getElementById("headlessui-portal-root");if(d&&l.value===d&&l.value.children.length<=0){var u;(u=l.value.parentElement)==null||u.removeChild(l.value)}}),Zo(),function(){if(l.value===null)return null;var d={ref:c};return t.h(t.Teleport,{to:l.value},X({props:q({},r,d),slot:{},attrs:a,slots:o,name:"Portal"}))}}}),na=Symbol("PortalGroupContext"),Hl=t.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup:function(r,e){var o=e.attrs,a=e.slots,s=t.reactive({resolveTarget:function(){return r.target}});return t.provide(na,s),function(){var i=Re(r,["target"]);return X({props:i,slot:{},attrs:o,slots:a,name:"PortalGroup"})}}}),R;(function(n){n.Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab"})(R||(R={}));var Ul=0;function zl(){return++Ul}function de(){return zl()}function qe(n,r,e){typeof window>"u"||t.watchEffect(function(o){window.addEventListener(n,r,e),o(function(){window.removeEventListener(n,r,e)})})}function hr(n,r){for(var e=ze(n),o;!(o=e()).done;){var a=o.value;if(a.contains(r))return!0}return!1}var gr=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(process.env.NODE_ENV==="test"?function(n){return n+":not([tabindex='-1']):not([style*='display: none'])"}:function(n){return n+":not([tabindex='-1'])"}).join(","),W;(function(n){n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll"})(W||(W={}));var De;(function(n){n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow"})(De||(De={}));var fn;(function(n){n[n.Previous=-1]="Previous",n[n.Next=1]="Next"})(fn||(fn={}));function pn(n){return n===void 0&&(n=document.body),n==null?[]:Array.from(n.querySelectorAll(gr))}var mt;(function(n){n[n.Strict=0]="Strict",n[n.Loose=1]="Loose"})(mt||(mt={}));function ql(n,r){var e;return r===void 0&&(r=mt.Strict),n===document.body?!1:we(r,(e={},e[mt.Strict]=function(){return n.matches(gr)},e[mt.Loose]=function(){for(var o=n;o!==null;){if(o.matches(gr))return!0;o=o.parentElement}return!1},e))}function Bt(n){n==null||n.focus({preventScroll:!0})}function Oe(n,r){var e=Array.isArray(n)?n:pn(n),o=document.activeElement,a=function(){if(r&(W.First|W.Next))return fn.Next;if(r&(W.Previous|W.Last))return fn.Previous;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),s=function(){if(r&W.First)return 0;if(r&W.Previous)return Math.max(0,e.indexOf(o))-1;if(r&W.Next)return Math.max(0,e.indexOf(o))+1;if(r&W.Last)return e.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),i=r&W.NoScroll?{preventScroll:!0}:{},l=0,c=e.length,d=void 0;do{var u;if(l>=c||l+c<=0)return De.Error;var f=s+l;if(r&W.WrapAround)f=(f+c)%c;else{if(f<0)return De.Underflow;if(f>=c)return De.Overflow}d=e[f],(u=d)==null||u.focus(i),l+=a}while(d!==document.activeElement);return d.hasAttribute("tabindex")||d.setAttribute("tabindex","0"),De.Success}function Wl(n,r,e){r===void 0&&(r=t.ref(!0)),e===void 0&&(e=t.ref({}));var o=t.ref(typeof window<"u"?document.activeElement:null),a=t.ref(null);function s(){if(r.value&&n.value.size===1){var l=e.value.initialFocus,c=document.activeElement;if(l){if(l===c)return}else if(hr(n.value,c))return;if(o.value=c,l)Bt(l);else{for(var d=!1,u=ze(n.value),f;!(f=u()).done;){var p=f.value,g=Oe(p,W.First);if(g===De.Success){d=!0;break}}d||console.warn("There are no focusable elements inside the <FocusTrap />")}a.value=document.activeElement}}function i(){Bt(o.value),o.value=null,a.value=null}t.watchEffect(s),t.onUpdated(function(){r.value?s():i()}),t.onUnmounted(i),qe("keydown",function(l){if(r.value&&l.key===R.Tab&&document.activeElement&&n.value.size===1){l.preventDefault();for(var c=ze(n.value),d;!(d=c()).done;){var u=d.value,f=Oe(u,(l.shiftKey?W.Previous:W.Next)|W.WrapAround);if(f===De.Success){a.value=document.activeElement;break}}}}),qe("focus",function(l){if(r.value&&n.value.size===1){var c=a.value;if(c){var d=l.target;d&&d instanceof HTMLElement?hr(n.value,d)?(a.value=d,Bt(d)):(l.preventDefault(),l.stopPropagation(),Bt(c)):Bt(a.value)}}},!0)}var ra=process.env.NODE_ENV==="test"?'[data-v-app=""] > *':"body > *",ht=new Set,Ke=new Map;function oa(n){n.setAttribute("aria-hidden","true"),n.inert=!0}function aa(n){var r=Ke.get(n);r&&(r["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert)}function Yl(n,r){r===void 0&&(r=t.ref(!0)),t.watchEffect(function(e){if(r.value&&n.value){var o=n.value;ht.add(o);for(var a=ze(Ke.keys()),s;!(s=a()).done;){var i=s.value;i.contains(o)&&(aa(i),Ke.delete(i))}document.querySelectorAll(ra).forEach(function(l){if(l instanceof HTMLElement){for(var c=ze(ht),d;!(d=c()).done;){var u=d.value;if(l.contains(u))return}ht.size===1&&(Ke.set(l,{"aria-hidden":l.getAttribute("aria-hidden"),inert:l.inert}),oa(l))}}),e(function(){if(ht.delete(o),ht.size>0)document.querySelectorAll(ra).forEach(function(u){if(u instanceof HTMLElement&&!Ke.has(u)){for(var f=ze(ht),p;!(p=f()).done;){var g=p.value;if(u.contains(g))return}Ke.set(u,{"aria-hidden":u.getAttribute("aria-hidden"),inert:u.inert}),oa(u)}});else for(var l=ze(Ke.keys()),c;!(c=l()).done;){var d=c.value;aa(d),Ke.delete(d)}})}})}var sa=Symbol("DescriptionContext");function Kl(){var n=t.inject(sa,null);if(n===null)throw new Error("Missing parent");return n}function mn(n){var r=n===void 0?{}:n,e=r.slot,o=e===void 0?t.ref({}):e,a=r.name,s=a===void 0?"Description":a,i=r.props,l=i===void 0?{}:i,c=t.ref([]);function d(u){return c.value.push(u),function(){var f=c.value.indexOf(u);f!==-1&&c.value.splice(f,1)}}return t.provide(sa,{register:d,slot:o,name:s,props:l}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var ia=t.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"}},render:function(){var r=this.context,e=r.name,o=e===void 0?"Description":e,a=r.slot,s=a===void 0?t.ref({}):a,i=r.props,l=i===void 0?{}:i,c=this.$props,d=q({},Object.entries(l).reduce(function(u,f){var p,g=f[0],h=f[1];return Object.assign(u,(p={},p[g]=t.unref(h),p))},{}),{id:this.id});return X({props:q({},c,d),slot:s.value,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=Kl(),e="headlessui-description-"+de();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}});function V(n){var r;return n==null||n.value==null?null:(r=n.value.$el)!=null?r:n.value}var la=Symbol("Context"),ae;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(ae||(ae={}));function Gl(){return gt()!==null}function gt(){return t.inject(la,null)}function hn(n){t.provide(la,n)}var me;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(me||(me={}));var ca=Symbol("DialogContext");function Mt(n){var r=t.inject(ca,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Dialog /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Mt),e}return r}var gn="DC8F892D-2EBD-447C-A4C8-A03058436FF4",bn=t.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:gn},initialFocus:{type:Object,default:null}},emits:{close:function(r){return!0}},render:function(){var r=this,e=q({},this.$attrs,{ref:"el",id:this.id,role:"dialog","aria-modal":this.dialogState===me.Open?!0:void 0,"aria-labelledby":this.titleId,"aria-describedby":this.describedby,onClick:this.handleClick}),o=this.$props,a=Re(o,["open","initialFocus"]),s={open:this.dialogState===me.Open};return t.h(ea,{force:!0},function(){return t.h(mr,function(){return t.h(Hl,{target:r.dialogRef},function(){return t.h(ea,{force:!1},function(){return X({props:q({},a,e),slot:s,attrs:r.$attrs,slots:r.$slots,visible:r.visible,features:xe.RenderStrategy|xe.Static,name:"Dialog"})})})})})},setup:function(r,e){var o=e.emit,a=t.ref(new Set),s=gt(),i=t.computed(function(){if(r.open===gn&&s!==null){var C;return we(s.value,(C={},C[ae.Open]=!0,C[ae.Closed]=!1,C))}return r.open}),l=r.open!==gn||s!==null;if(!l)throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof i.value!="boolean")throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: "+(i.value===gn?void 0:r.open));var c=t.computed(function(){return r.open?me.Open:me.Closed}),d=t.computed(function(){return s!==null?s.value===ae.Open:c.value===me.Open}),u=t.ref(null),f=t.ref(c.value===me.Open);t.onUpdated(function(){f.value=c.value===me.Open});var p="headlessui-dialog-"+de(),g=t.computed(function(){return{initialFocus:r.initialFocus}});Wl(a,f,g),Yl(u,f),Zo(function(C,D){var S;return we(C,(S={},S[pt.AddElement]=function(){a.value.add(D)},S[pt.RemoveElement]=function(){a.value.delete(D)},S))});var h=mn({name:"DialogDescription",slot:t.computed(function(){return{open:i.value}})}),y=t.ref(null),w={titleId:y,dialogState:c,setTitleId:function(D){y.value!==D&&(y.value=D)},close:function(){o("close",!1)}};return t.provide(ca,w),qe("mousedown",function(C){var D=C.target;c.value===me.Open&&a.value.size===1&&(hr(a.value,D)||(w.close(),t.nextTick(function(){return D==null?void 0:D.focus()})))}),qe("keydown",function(C){C.key===R.Escape&&c.value===me.Open&&(a.value.size>1||(C.preventDefault(),C.stopPropagation(),w.close()))}),t.watchEffect(function(C){if(c.value===me.Open){var D=document.documentElement.style.overflow,S=document.documentElement.style.paddingRight,O=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=O+"px",C(function(){document.documentElement.style.overflow=D,document.documentElement.style.paddingRight=S})}}),t.watchEffect(function(C){if(c.value===me.Open){var D=V(u);if(D){var S=new IntersectionObserver(function(O){for(var P=ze(O),L;!(L=P()).done;){var B=L.value;B.boundingClientRect.x===0&&B.boundingClientRect.y===0&&B.boundingClientRect.width===0&&B.boundingClientRect.height===0&&w.close()}});S.observe(D),C(function(){return S.disconnect()})}}}),{id:p,el:u,dialogRef:u,containers:a,dialogState:c,titleId:y,describedby:h,visible:d,open:i,handleClick:function(D){D.stopPropagation()}}}}),yn=t.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"}},render:function(){var r=Mt("DialogOverlay"),e={ref:"el",id:this.id,"aria-hidden":!0,onClick:this.handleClick},o=this.$props;return X({props:q({},o,e),slot:{open:r.dialogState.value===me.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogOverlay"})},setup:function(){var r=Mt("DialogOverlay"),e="headlessui-dialog-overlay-"+de();return{id:e,handleClick:function(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),r.close())}}}}),br=t.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"}},render:function(){var r=Mt("DialogTitle"),e={id:this.id},o=this.$props;return X({props:q({},o,e),slot:{open:r.dialogState.value===me.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogTitle"})},setup:function(){var r=Mt("DialogTitle"),e="headlessui-dialog-title-"+de();return t.onMounted(function(){r.setTitleId(e),t.onUnmounted(function(){return r.setTitleId(null)})}),{id:e}}});function da(n,r){if(n)return n;var e=r??"button";if(typeof e=="string"&&e.toLowerCase()==="button")return"button"}function wn(n,r){var e=t.ref(da(n.value.type,n.value.as));return t.onMounted(function(){e.value=da(n.value.type,n.value.as)}),t.watchEffect(function(){var o;e.value||V(r)&&V(r)instanceof HTMLButtonElement&&!((o=V(r))!=null&&o.hasAttribute("type"))&&(e.value="button")}),e}var se;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(se||(se={}));var ua=Symbol("DisclosureContext");function Pt(n){var r=t.inject(ua,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Disclosure /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Pt),e}return r}var fa=Symbol("DisclosurePanelContext");function Jl(){return t.inject(fa,null)}var Xl=t.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs,s="headlessui-disclosure-button-"+de(),i="headlessui-disclosure-panel-"+de(),l=t.ref(r.defaultOpen?se.Open:se.Closed),c=t.ref(null),d=t.ref(null),u={buttonId:s,panelId:i,disclosureState:l,panel:c,button:d,toggleDisclosure:function(){var p;l.value=we(l.value,(p={},p[se.Open]=se.Closed,p[se.Closed]=se.Open,p))},closeDisclosure:function(){l.value!==se.Closed&&(l.value=se.Closed)},close:function(p){u.closeDisclosure();var g=function(){return p?p instanceof HTMLElement?p:p.value instanceof HTMLElement?V(p):V(u.button):V(u.button)}();g==null||g.focus()}};return t.provide(ua,u),hn(t.computed(function(){var f;return we(l.value,(f={},f[se.Open]=ae.Open,f[se.Closed]=ae.Closed,f))})),function(){var f=Re(r,["defaultOpen"]),p={open:l.value===se.Open,close:u.close};return X({props:f,slot:p,slots:o,attrs:a,name:"Disclosure"})}}}),Zl=t.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=Pt("DisclosureButton"),e={open:r.disclosureState.value===se.Open},o=this.isWithinPanel?{ref:"el",type:this.type,onClick:this.handleClick,onKeydown:this.handleKeyDown}:{id:this.id,ref:"el",type:this.type,"aria-expanded":this.$props.disabled?void 0:r.disclosureState.value===se.Open,"aria-controls":V(r.panel)?r.panelId:void 0,disabled:this.$props.disabled?!0:void 0,onClick:this.handleClick,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp};return X({props:q({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"DisclosureButton"})},setup:function(r,e){var o=e.attrs,a=Pt("DisclosureButton"),s=Jl(),i=s===null?!1:s===a.panelId,l=t.ref(null);return i||t.watchEffect(function(){a.button.value=l.value}),{isWithinPanel:i,id:a.buttonId,el:l,type:wn(t.computed(function(){return{as:r.as,type:o.type}}),l),handleClick:function(){if(!r.disabled)if(i){var d;a.toggleDisclosure(),(d=V(a.button))==null||d.focus()}else a.toggleDisclosure()},handleKeyDown:function(d){var u;if(!r.disabled)if(i)switch(d.key){case R.Space:case R.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure(),(u=V(a.button))==null||u.focus();break}else switch(d.key){case R.Space:case R.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure();break}},handleKeyUp:function(d){switch(d.key){case R.Space:d.preventDefault();break}}}}}),Ql=t.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var r=Pt("DisclosurePanel"),e={open:r.disclosureState.value===se.Open,close:r.close},o={id:this.id,ref:"el"};return X({props:q({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:xe.RenderStrategy|xe.Static,visible:this.visible,name:"DisclosurePanel"})},setup:function(){var r=Pt("DisclosurePanel");t.provide(fa,r.panelId);var e=gt(),o=t.computed(function(){return e!==null?e.value===ae.Open:r.disclosureState.value===se.Open});return{id:r.panelId,el:r.panel,visible:o}}});function ec(n){throw new Error("Unexpected object: "+n)}var ne;(function(n){n[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing"})(ne||(ne={}));function tc(n,r){var e=r.resolveItems();if(e.length<=0)return null;var o=r.resolveActiveIndex(),a=o??-1,s=function(){switch(n.focus){case ne.First:return e.findIndex(function(c){return!r.resolveDisabled(c)});case ne.Previous:{var i=e.slice().reverse().findIndex(function(c,d,u){return a!==-1&&u.length-d-1>=a?!1:!r.resolveDisabled(c)});return i===-1?i:e.length-1-i}case ne.Next:return e.findIndex(function(c,d){return d<=a?!1:!r.resolveDisabled(c)});case ne.Last:{var l=e.slice().reverse().findIndex(function(c){return!r.resolveDisabled(c)});return l===-1?l:e.length-1-l}case ne.Specific:return e.findIndex(function(c){return r.resolveId(c)===n.id});case ne.Nothing:return null;default:ec(n)}}();return s===-1?o:s}function pa(n){var r=n.container,e=n.accept,o=n.walk,a=n.enabled;t.watchEffect(function(){var s=r.value;if(s&&!(a!==void 0&&!a.value))for(var i=Object.assign(function(c){return e(c)},{acceptNode:e}),l=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,i,!1);l.nextNode();)o(l.currentNode)})}var ue;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(ue||(ue={}));function nc(n){requestAnimationFrame(function(){return requestAnimationFrame(n)})}var ma=Symbol("MenuContext");function bt(n){var r=t.inject(ma,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Menu /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,bt),e}return r}var yr=t.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup:function(r,e){var o=e.slots,a=e.attrs,s=t.ref(ue.Closed),i=t.ref(null),l=t.ref(null),c=t.ref([]),d=t.ref(""),u=t.ref(null),f={menuState:s,buttonRef:i,itemsRef:l,items:c,searchQuery:d,activeItemIndex:u,closeMenu:function(){s.value=ue.Closed,u.value=null},openMenu:function(){return s.value=ue.Open},goToItem:function(g,h){var y=tc(g===ne.Specific?{focus:ne.Specific,id:h}:{focus:g},{resolveItems:function(){return c.value},resolveActiveIndex:function(){return u.value},resolveId:function(C){return C.id},resolveDisabled:function(C){return C.dataRef.disabled}});d.value===""&&u.value===y||(d.value="",u.value=y)},search:function(g){d.value+=g.toLowerCase();var h=c.value.findIndex(function(y){return y.dataRef.textValue.startsWith(d.value)&&!y.dataRef.disabled});h===-1||h===u.value||(u.value=h)},clearSearch:function(){d.value=""},registerItem:function(g,h){c.value.push({id:g,dataRef:h})},unregisterItem:function(g){var h=c.value.slice(),y=u.value!==null?h[u.value]:null,w=h.findIndex(function(C){return C.id===g});w!==-1&&h.splice(w,1),c.value=h,u.value=function(){return w===u.value||y===null?null:h.indexOf(y)}()}};return qe("mousedown",function(p){var g,h,y,w=p.target,C=document.activeElement;s.value===ue.Open&&((g=V(i))!=null&&g.contains(w)||((h=V(l))!=null&&h.contains(w)||f.closeMenu(),!(C!==document.body&&(C!=null&&C.contains(w)))&&(p.defaultPrevented||(y=V(i))==null||y.focus({preventScroll:!0}))))}),t.provide(ma,f),hn(t.computed(function(){var p;return we(s.value,(p={},p[ue.Open]=ae.Open,p[ue.Closed]=ae.Closed,p))})),function(){var p={open:s.value===ue.Open};return X({props:r,slot:p,slots:o,attrs:a,name:"Menu"})}}}),wr=t.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},render:function(){var r,e=bt("MenuButton"),o={open:e.menuState.value===ue.Open},a={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(r=V(e.itemsRef))==null?void 0:r.id,"aria-expanded":this.$props.disabled?void 0:e.menuState.value===ue.Open,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return X({props:q({},this.$props,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"MenuButton"})},setup:function(r,e){var o=e.attrs,a=bt("MenuButton"),s="headlessui-menu-button-"+de();function i(d){switch(d.key){case R.Space:case R.Enter:case R.ArrowDown:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=V(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(ne.First)});break;case R.ArrowUp:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=V(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(ne.Last)});break}}function l(d){switch(d.key){case R.Space:d.preventDefault();break}}function c(d){r.disabled||(a.menuState.value===ue.Open?(a.closeMenu(),t.nextTick(function(){var u;return(u=V(a.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(d.preventDefault(),d.stopPropagation(),a.openMenu(),nc(function(){var u;return(u=V(a.itemsRef))==null?void 0:u.focus({preventScroll:!0})})))}return{id:s,el:a.buttonRef,type:wn(t.computed(function(){return{as:r.as,type:o.type}}),a.buttonRef),handleKeyDown:i,handleKeyUp:l,handleClick:c}}}),xr=t.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var r,e,o=bt("MenuItems"),a={open:o.menuState.value===ue.Open},s={"aria-activedescendant":o.activeItemIndex.value===null||(r=o.items.value[o.activeItemIndex.value])==null?void 0:r.id,"aria-labelledby":(e=V(o.buttonRef))==null?void 0:e.id,id:this.id,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,role:"menu",tabIndex:0,ref:"el"},i=this.$props;return X({props:q({},i,s),slot:a,attrs:this.$attrs,slots:this.$slots,features:xe.RenderStrategy|xe.Static,visible:this.visible,name:"MenuItems"})},setup:function(){var r=bt("MenuItems"),e="headlessui-menu-items-"+de(),o=t.ref(null);pa({container:t.computed(function(){return V(r.itemsRef)}),enabled:t.computed(function(){return r.menuState.value===ue.Open}),accept:function(d){return d.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(d){d.setAttribute("role","none")}});function a(c){switch(o.value&&clearTimeout(o.value),c.key){case R.Space:if(r.searchQuery.value!=="")return c.preventDefault(),c.stopPropagation(),r.search(c.key);case R.Enter:if(c.preventDefault(),c.stopPropagation(),r.activeItemIndex.value!==null){var d,u=r.items.value[r.activeItemIndex.value].id;(d=document.getElementById(u))==null||d.click()}r.closeMenu(),t.nextTick(function(){var f;return(f=V(r.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case R.ArrowDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(ne.Next);case R.ArrowUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(ne.Previous);case R.Home:case R.PageUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(ne.First);case R.End:case R.PageDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(ne.Last);case R.Escape:c.preventDefault(),c.stopPropagation(),r.closeMenu(),t.nextTick(function(){var f;return(f=V(r.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case R.Tab:c.preventDefault(),c.stopPropagation();break;default:c.key.length===1&&(r.search(c.key),o.value=setTimeout(function(){return r.clearSearch()},350));break}}function s(c){switch(c.key){case R.Space:c.preventDefault();break}}var i=gt(),l=t.computed(function(){return i!==null?i.value===ae.Open:r.menuState.value===ue.Open});return{id:e,el:r.itemsRef,handleKeyDown:a,handleKeyUp:s,visible:l}}}),Cr=t.defineComponent({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs,s=bt("MenuItem"),i="headlessui-menu-item-"+de(),l=t.computed(function(){return s.activeItemIndex.value!==null?s.items.value[s.activeItemIndex.value].id===i:!1}),c=t.ref({disabled:r.disabled,textValue:""});t.onMounted(function(){var g,h,y=(g=document.getElementById(i))==null||(h=g.textContent)==null?void 0:h.toLowerCase().trim();y!==void 0&&(c.value.textValue=y)}),t.onMounted(function(){return s.registerItem(i,c)}),t.onUnmounted(function(){return s.unregisterItem(i)}),t.watchEffect(function(){s.menuState.value===ue.Open&&l.value&&t.nextTick(function(){var g;return(g=document.getElementById(i))==null||g.scrollIntoView==null?void 0:g.scrollIntoView({block:"nearest"})})});function d(g){if(r.disabled)return g.preventDefault();s.closeMenu(),t.nextTick(function(){var h;return(h=V(s.buttonRef))==null?void 0:h.focus({preventScroll:!0})})}function u(){if(r.disabled)return s.goToItem(ne.Nothing);s.goToItem(ne.Specific,i)}function f(){r.disabled||l.value||s.goToItem(ne.Specific,i)}function p(){r.disabled||l.value&&s.goToItem(ne.Nothing)}return function(){var g=r.disabled,h={active:l.value,disabled:g},y={id:i,role:"menuitem",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,onClick:d,onFocus:u,onPointermove:f,onMousemove:f,onPointerleave:p,onMouseleave:p};return X({props:q({},r,y),slot:h,attrs:a,slots:o,name:"MenuItem"})}}}),Y;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(Y||(Y={}));var ha=Symbol("PopoverContext");function At(n){var r=t.inject(ha,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <"+ya.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,At),e}return r}var rc=Symbol("PopoverGroupContext");function ga(){return t.inject(rc,null)}var ba=Symbol("PopoverPanelContext");function oc(){return t.inject(ba,null)}var ya=t.defineComponent({name:"Popover",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,s="headlessui-popover-button-"+de(),i="headlessui-popover-panel-"+de(),l=t.ref(Y.Closed),c=t.ref(null),d=t.ref(null),u={popoverState:l,buttonId:s,panelId:i,panel:d,button:c,togglePopover:function(){var w;l.value=we(l.value,(w={},w[Y.Open]=Y.Closed,w[Y.Closed]=Y.Open,w))},closePopover:function(){l.value!==Y.Closed&&(l.value=Y.Closed)},close:function(w){u.closePopover();var C=function(){return w?w instanceof HTMLElement?w:w.value instanceof HTMLElement?V(w):V(u.button):V(u.button)}();C==null||C.focus()}};t.provide(ha,u),hn(t.computed(function(){var y;return we(l.value,(y={},y[Y.Open]=ae.Open,y[Y.Closed]=ae.Closed,y))}));var f={buttonId:s,panelId:i,close:function(){u.closePopover()}},p=ga(),g=p==null?void 0:p.registerPopover;function h(){var y,w,C;return(y=p==null?void 0:p.isFocusWithinPopoverGroup())!=null?y:((w=V(c))==null?void 0:w.contains(document.activeElement))||((C=V(d))==null?void 0:C.contains(document.activeElement))}return t.watchEffect(function(){return g==null?void 0:g(f)}),qe("focus",function(){l.value===Y.Open&&(h()||c&&d&&u.closePopover())},!0),qe("mousedown",function(y){var w,C,D=y.target;if(l.value===Y.Open&&!((w=V(c))!=null&&w.contains(D))&&!((C=V(d))!=null&&C.contains(D))&&(u.closePopover(),!ql(D,mt.Loose))){var S;y.preventDefault(),(S=V(c))==null||S.focus()}}),function(){var y={open:l.value===Y.Open,close:u.close};return X({props:r,slot:y,slots:o,attrs:a,name:"Popover"})}}}),ac=t.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=At("PopoverButton"),e={open:r.popoverState.value===Y.Open},o=this.isWithinPanel?{ref:"el",type:this.type,onKeydown:this.handleKeyDown,onClick:this.handleClick}:{ref:"el",id:r.buttonId,type:this.type,"aria-expanded":this.$props.disabled?void 0:r.popoverState.value===Y.Open,"aria-controls":V(r.panel)?r.panelId:void 0,disabled:this.$props.disabled?!0:void 0,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return X({props:q({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"PopoverButton"})},setup:function(r,e){var o=e.attrs,a=At("PopoverButton"),s=ga(),i=s==null?void 0:s.closeOthers,l=oc(),c=l===null?!1:l===a.panelId,d=t.ref(null),u=t.ref(typeof window>"u"?null:document.activeElement);qe("focus",function(){u.value=d.value,d.value=document.activeElement},!0);var f=t.ref(null);return c||t.watchEffect(function(){a.button.value=f.value}),{isWithinPanel:c,el:f,type:wn(t.computed(function(){return{as:r.as,type:o.type}}),f),handleKeyDown:function(g){var h,y;if(c){if(a.popoverState.value===Y.Closed)return;switch(g.key){case R.Space:case R.Enter:g.preventDefault(),g.stopPropagation(),a.closePopover(),(h=V(a.button))==null||h.focus();break}}else switch(g.key){case R.Space:case R.Enter:g.preventDefault(),g.stopPropagation(),a.popoverState.value===Y.Closed&&(i==null||i(a.buttonId)),a.togglePopover();break;case R.Escape:if(a.popoverState.value!==Y.Open)return i==null?void 0:i(a.buttonId);if(!V(a.button)||!((y=V(a.button))!=null&&y.contains(document.activeElement)))return;g.preventDefault(),g.stopPropagation(),a.closePopover();break;case R.Tab:if(a.popoverState.value!==Y.Open||!a.panel||!a.button)return;if(g.shiftKey){var w,C;if(!u.value||(w=V(a.button))!=null&&w.contains(u.value)||(C=V(a.panel))!=null&&C.contains(u.value))return;var D=pn(),S=D.indexOf(u.value),O=D.indexOf(V(a.button));if(O>S)return;g.preventDefault(),g.stopPropagation(),Oe(V(a.panel),W.Last)}else g.preventDefault(),g.stopPropagation(),Oe(V(a.panel),W.First);break}},handleKeyUp:function(g){var h,y;if(!c&&(g.key===R.Space&&g.preventDefault(),a.popoverState.value===Y.Open&&a.panel&&a.button))switch(g.key){case R.Tab:if(!u.value||(h=V(a.button))!=null&&h.contains(u.value)||(y=V(a.panel))!=null&&y.contains(u.value))return;var w=pn(),C=w.indexOf(u.value),D=w.indexOf(V(a.button));if(D>C)return;g.preventDefault(),g.stopPropagation(),Oe(V(a.panel),W.Last);break}},handleClick:function(){if(!r.disabled)if(c){var g;a.closePopover(),(g=V(a.button))==null||g.focus()}else{var h;a.popoverState.value===Y.Closed&&(i==null||i(a.buttonId)),(h=V(a.button))==null||h.focus(),a.togglePopover()}}}}}),sc=t.defineComponent({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1}},render:function(){var r=At("PopoverPanel"),e={open:r.popoverState.value===Y.Open,close:r.close},o={ref:"el",id:this.id,onKeydown:this.handleKeyDown};return X({props:q({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:xe.RenderStrategy|xe.Static,visible:this.visible,name:"PopoverPanel"})},setup:function(r){var e=r.focus,o=At("PopoverPanel");t.provide(ba,o.panelId),t.onUnmounted(function(){o.panel.value=null}),t.watchEffect(function(){var i;if(e&&o.popoverState.value===Y.Open&&o.panel){var l=document.activeElement;(i=V(o.panel))!=null&&i.contains(l)||Oe(V(o.panel),W.First)}}),qe("keydown",function(i){var l;if(o.popoverState.value===Y.Open&&V(o.panel)&&i.key===R.Tab&&document.activeElement&&(l=V(o.panel))!=null&&l.contains(document.activeElement)){i.preventDefault();var c=Oe(V(o.panel),i.shiftKey?W.Previous:W.Next);if(c===De.Underflow){var d;return(d=V(o.button))==null?void 0:d.focus()}else if(c===De.Overflow){if(!V(o.button))return;var u=pn(),f=u.indexOf(V(o.button)),p=u.splice(f+1).filter(function(g){var h;return!((h=V(o.panel))!=null&&h.contains(g))});Oe(p,W.First)===De.Error&&Oe(document.body,W.First)}}}),qe("focus",function(){var i;e&&o.popoverState.value===Y.Open&&V(o.panel)&&((i=V(o.panel))!=null&&i.contains(document.activeElement)||o.closePopover())},!0);var a=gt(),s=t.computed(function(){return a!==null?a.value===ae.Open:o.popoverState.value===Y.Open});return{id:o.panelId,el:o.panel,handleKeyDown:function(l){var c,d;switch(l.key){case R.Escape:if(o.popoverState.value!==Y.Open||!V(o.panel)||!((c=V(o.panel))!=null&&c.contains(document.activeElement)))return;l.preventDefault(),l.stopPropagation(),o.closePopover(),(d=V(o.button))==null||d.focus();break}},visible:s}}}),wa=Symbol("LabelContext");function xa(){var n=t.inject(wa,null);if(n===null){var r=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,xa),r}return n}function Er(n){var r=n===void 0?{}:n,e=r.slot,o=e===void 0?{}:e,a=r.name,s=a===void 0?"Label":a,i=r.props,l=i===void 0?{}:i,c=t.ref([]);function d(u){return c.value.push(u),function(){var f=c.value.indexOf(u);f!==-1&&c.value.splice(f,1)}}return t.provide(wa,{register:d,slot:o,name:s,props:l}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var Ca=t.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1}},render:function(){var r=this.context,e=r.name,o=e===void 0?"Label":e,a=r.slot,s=a===void 0?{}:a,i=r.props,l=i===void 0?{}:i,c=this.$props,d=c.passive,u=Re(c,["passive"]),f=q({},Object.entries(l).reduce(function(g,h){var y,w=h[0],C=h[1];return Object.assign(g,(y={},y[w]=t.unref(C),y))},{}),{id:this.id}),p=q({},u,f);return d&&delete p.onClick,X({props:p,slot:s,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=xa(),e="headlessui-label-"+de();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}}),Ea=Symbol("RadioGroupContext");function ka(n){var r=t.inject(Ea,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <RadioGroup /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ka),e}return r}var ic=t.defineComponent({name:"RadioGroup",emits:{"update:modelValue":function(r){return!0}},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean]}},render:function(){var r=this.$props,e=Re(r,["modelValue","disabled"]),o={ref:"el",id:this.id,role:"radiogroup","aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onKeydown:this.handleKeyDown};return X({props:q({},e,o),slot:{},attrs:this.$attrs,slots:this.$slots,name:"RadioGroup"})},setup:function(r,e){var o=e.emit,a=t.ref(null),s=t.ref([]),i=Er({name:"RadioGroupLabel"}),l=mn({name:"RadioGroupDescription"}),c=t.computed(function(){return r.modelValue}),d={options:s,value:c,disabled:t.computed(function(){return r.disabled}),firstOption:t.computed(function(){return s.value.find(function(p){return!p.propsRef.disabled})}),containsCheckedOption:t.computed(function(){return s.value.some(function(p){return t.toRaw(p.propsRef.value)===t.toRaw(r.modelValue)})}),change:function(g){var h;if(r.disabled||c.value===g)return!1;var y=(h=s.value.find(function(w){return t.toRaw(w.propsRef.value)===t.toRaw(g)}))==null?void 0:h.propsRef;return y!=null&&y.disabled?!1:(o("update:modelValue",g),!0)},registerOption:function(g){var h,y=Array.from((h=a.value)==null?void 0:h.querySelectorAll('[id^="headlessui-radiogroup-option-"]')).reduce(function(w,C,D){var S;return Object.assign(w,(S={},S[C.id]=D,S))},{});s.value.push(g),s.value.sort(function(w,C){return y[w.id]-y[C.id]})},unregisterOption:function(g){var h=s.value.findIndex(function(y){return y.id===g});h!==-1&&s.value.splice(h,1)}};t.provide(Ea,d),pa({container:t.computed(function(){return V(a)}),accept:function(g){return g.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:g.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(g){g.setAttribute("role","none")}});function u(p){if(a.value&&a.value.contains(p.target)){var g=s.value.filter(function(S){return S.propsRef.disabled===!1}).map(function(S){return S.element});switch(p.key){case R.ArrowLeft:case R.ArrowUp:{p.preventDefault(),p.stopPropagation();var h=Oe(g,W.Previous|W.WrapAround);if(h===De.Success){var y=s.value.find(function(S){return S.element===document.activeElement});y&&d.change(y.propsRef.value)}}break;case R.ArrowRight:case R.ArrowDown:{p.preventDefault(),p.stopPropagation();var w=Oe(g,W.Next|W.WrapAround);if(w===De.Success){var C=s.value.find(function(S){return S.element===document.activeElement});C&&d.change(C.propsRef.value)}}break;case R.Space:{p.preventDefault(),p.stopPropagation();var D=s.value.find(function(S){return S.element===document.activeElement});D&&d.change(D.propsRef.value)}break}}}var f="headlessui-radiogroup-"+de();return{id:f,labelledby:i,describedby:l,el:a,handleKeyDown:u}}}),ot;(function(n){n[n.Empty=1]="Empty",n[n.Active=2]="Active"})(ot||(ot={}));var lc=t.defineComponent({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},render:function(){var r=this.$props,e=Re(r,["value","disabled"]),o={checked:this.checked,disabled:this.disabled,active:!!(this.state&ot.Active)},a={id:this.id,ref:"el",role:"radio","aria-checked":this.checked?"true":"false","aria-labelledby":this.labelledby,"aria-describedby":this.describedby,"aria-disabled":this.disabled?!0:void 0,tabIndex:this.tabIndex,onClick:this.disabled?void 0:this.handleClick,onFocus:this.disabled?void 0:this.handleFocus,onBlur:this.disabled?void 0:this.handleBlur};return X({props:q({},e,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"RadioGroupOption"})},setup:function(r){var e=ka("RadioGroupOption"),o="headlessui-radiogroup-option-"+de(),a=Er({name:"RadioGroupLabel"}),s=mn({name:"RadioGroupDescription"}),i=t.ref(null),l=t.computed(function(){return{value:r.value,disabled:r.disabled}}),c=t.ref(ot.Empty);t.onMounted(function(){return e.registerOption({id:o,element:i,propsRef:l})}),t.onUnmounted(function(){return e.unregisterOption(o)});var d=t.computed(function(){var p;return((p=e.firstOption.value)==null?void 0:p.id)===o}),u=t.computed(function(){return e.disabled.value||r.disabled}),f=t.computed(function(){return t.toRaw(e.value.value)===t.toRaw(r.value)});return{id:o,el:i,labelledby:a,describedby:s,state:c,disabled:u,checked:f,tabIndex:t.computed(function(){return u.value?-1:f.value||!e.containsCheckedOption.value&&d.value?0:-1}),handleClick:function(){var g;e.change(r.value)&&(c.value|=ot.Active,(g=i.value)==null||g.focus())},handleFocus:function(){c.value|=ot.Active},handleBlur:function(){c.value&=~ot.Active}}}}),Da=Ca,kr=ia,Na=Symbol("GroupContext"),cc=t.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup:function(r,e){var o=e.slots,a=e.attrs,s=t.ref(null),i=Er({name:"SwitchLabel",props:{onClick:function(){s.value&&(s.value.click(),s.value.focus({preventScroll:!0}))}}}),l=mn({name:"SwitchDescription"}),c={switchRef:s,labelledby:i,describedby:l};return t.provide(Na,c),function(){return X({props:r,slot:{},slots:o,attrs:a,name:"SwitchGroup"})}}}),dc=t.defineComponent({name:"Switch",emits:{"update:modelValue":function(r){return!0}},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:!1}},render:function(){var r={checked:this.$props.modelValue},e={id:this.id,ref:"el",role:"switch",type:this.type,tabIndex:0,"aria-checked":this.$props.modelValue,"aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onClick:this.handleClick,onKeyup:this.handleKeyUp,onKeypress:this.handleKeyPress};return X({props:q({},this.$props,e),slot:r,attrs:this.$attrs,slots:this.$slots,name:"Switch"})},setup:function(r,e){var o=e.emit,a=e.attrs,s=t.inject(Na,null),i="headlessui-switch-"+de();function l(){o("update:modelValue",!r.modelValue)}var c=t.ref(null),d=s===null?c:s.switchRef;return{id:i,el:d,type:wn(t.computed(function(){return{as:r.as,type:a.type}}),d),labelledby:s==null?void 0:s.labelledby,describedby:s==null?void 0:s.describedby,handleClick:function(f){f.preventDefault(),l()},handleKeyUp:function(f){f.key!==R.Tab&&f.preventDefault(),f.key===R.Space&&l()},handleKeyPress:function(f){f.preventDefault()}}}}),uc=Ca,fc=ia;function pc(n){var r={called:!1};return function(){if(!r.called)return r.called=!0,n.apply(void 0,arguments)}}function Sa(){var n=[],r={requestAnimationFrame:function(e){function o(){return e.apply(this,arguments)}return o.toString=function(){return e.toString()},o}(function(){var e=requestAnimationFrame.apply(void 0,arguments);r.add(function(){return cancelAnimationFrame(e)})}),nextFrame:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];r.requestAnimationFrame(function(){r.requestAnimationFrame.apply(r,a)})},setTimeout:function(e){function o(){return e.apply(this,arguments)}return o.toString=function(){return e.toString()},o}(function(){var e=setTimeout.apply(void 0,arguments);r.add(function(){return clearTimeout(e)})}),add:function(o){n.push(o)},dispose:function(){for(var o=ze(n.splice(0)),a;!(a=o()).done;){var s=a.value;s()}}};return r}function Dr(n){for(var r,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];n&&o.length>0&&(r=n.classList).add.apply(r,o)}function xn(n){for(var r,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];n&&o.length>0&&(r=n.classList).remove.apply(r,o)}var Ge;(function(n){n.Finished="finished",n.Cancelled="cancelled"})(Ge||(Ge={}));function mc(n,r){var e=Sa();if(!n)return e.dispose;var o=getComputedStyle(n),a=o.transitionDuration,s=o.transitionDelay,i=[a,s].map(function(d){var u=d.split(",").filter(Boolean).map(function(g){return g.includes("ms")?parseFloat(g):parseFloat(g)*1e3}).sort(function(g,h){return h-g}),f=u[0],p=f===void 0?0:f;return p}),l=i[0],c=i[1];return l!==0?e.setTimeout(function(){return r(Ge.Finished)},l+c):r(Ge.Finished),e.add(function(){return r(Ge.Cancelled)}),e.dispose}function _a(n,r,e,o,a,s){var i=Sa(),l=s!==void 0?pc(s):function(){};return xn.apply(void 0,[n].concat(a)),Dr.apply(void 0,[n].concat(r,e)),i.nextFrame(function(){xn.apply(void 0,[n].concat(e)),Dr.apply(void 0,[n].concat(o)),i.add(mc(n,function(c){return xn.apply(void 0,[n].concat(o,r)),Dr.apply(void 0,[n].concat(a)),l(c)}))}),i.add(function(){return xn.apply(void 0,[n].concat(r,e,o,a))}),i.add(function(){return l(Ge.Cancelled)}),i.dispose}function at(n){return n===void 0&&(n=""),n.split(" ").filter(function(r){return r.trim().length>1})}var Nr=Symbol("TransitionContext"),Z;(function(n){n.Visible="visible",n.Hidden="hidden"})(Z||(Z={}));function hc(){return t.inject(Nr,null)!==null}function gc(){var n=t.inject(Nr,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}function bc(){var n=t.inject(Sr,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}var Sr=Symbol("NestingContext");function Cn(n){return"children"in n?Cn(n.children):n.value.filter(function(r){var e=r.state;return e===Z.Visible}).length>0}function va(n){var r=t.ref([]),e=t.ref(!1);t.onMounted(function(){return e.value=!0}),t.onUnmounted(function(){return e.value=!1});function o(s,i){var l;i===void 0&&(i=ke.Hidden);var c=r.value.findIndex(function(d){var u=d.id;return u===s});c!==-1&&(we(i,(l={},l[ke.Unmount]=function(){r.value.splice(c,1)},l[ke.Hidden]=function(){r.value[c].state=Z.Hidden},l)),!Cn(r)&&e.value&&(n==null||n()))}function a(s){var i=r.value.find(function(l){var c=l.id;return c===s});return i?i.state!==Z.Visible&&(i.state=Z.Visible):r.value.push({id:s,state:Z.Visible}),function(){return o(s,ke.Unmount)}}return{children:r,register:a,unregister:o}}var Va=xe.RenderStrategy,Ye=t.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:function(){return!0},afterEnter:function(){return!0},beforeLeave:function(){return!0},afterLeave:function(){return!0}},render:function(){var r=this;if(this.renderAsRoot)return t.h(Rt,q({},this.$props,{onBeforeEnter:function(){return r.$emit("beforeEnter")},onAfterEnter:function(){return r.$emit("afterEnter")},onBeforeLeave:function(){return r.$emit("beforeLeave")},onAfterLeave:function(){return r.$emit("afterLeave")}}),this.$slots);var e=this.$props,o=Re(e,["appear","show","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),a={ref:"el"},s=o;return X({props:q({},s,a),slot:{},slots:this.$slots,attrs:this.$attrs,features:Va,visible:this.state===Z.Visible,name:"TransitionChild"})},setup:function(r,e){var o=e.emit;if(!hc()&&Gl())return{renderAsRoot:!0};var a=t.ref(null),s=t.ref(Z.Visible),i=t.computed(function(){return r.unmount?ke.Unmount:ke.Hidden}),l=gc(),c=l.show,d=l.appear,u=bc(),f=u.register,p=u.unregister,g={value:!0},h=de(),y={value:!1},w=va(function(){y.value||(s.value=Z.Hidden,p(h),o("afterLeave"))});t.onMounted(function(){var F=f(h);t.onUnmounted(F)}),t.watchEffect(function(){var F;if(i.value===ke.Hidden&&h){if(c&&s.value!==Z.Visible){s.value=Z.Visible;return}we(s.value,(F={},F[Z.Hidden]=function(){return p(h)},F[Z.Visible]=function(){return f(h)},F))}});var C=at(r.enter),D=at(r.enterFrom),S=at(r.enterTo),O=at(r.entered),P=at(r.leave),L=at(r.leaveFrom),B=at(r.leaveTo);t.onMounted(function(){t.watchEffect(function(){if(s.value===Z.Visible){var F=V(a),z=F instanceof Comment&&F.data==="";if(z)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function le(F){var z=g.value&&!d.value,te=V(a);!te||!(te instanceof HTMLElement)||z||(y.value=!0,c.value&&o("beforeEnter"),c.value||o("beforeLeave"),F(c.value?_a(te,C,D,S,O,function(oe){y.value=!1,oe===Ge.Finished&&o("afterEnter")}):_a(te,P,L,B,O,function(oe){y.value=!1,oe===Ge.Finished&&(Cn(w)||(s.value=Z.Hidden,p(h),o("afterLeave")))})))}return t.onMounted(function(){t.watch([c,d],function(F,z,te){le(te),g.value=!1},{immediate:!0})}),t.provide(Sr,w),hn(t.computed(function(){var F;return we(s.value,(F={},F[Z.Visible]=ae.Open,F[Z.Hidden]=ae.Closed,F))})),{el:a,renderAsRoot:!1,state:s}}}),Rt=t.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:function(){return!0},afterEnter:function(){return!0},beforeLeave:function(){return!0},afterLeave:function(){return!0}},render:function(){var r=this,e=this.$props,o=e.unmount,a=Re(e,["show","appear","unmount"]),s={unmount:o};return X({props:q({},s,{as:"template"}),slot:{},slots:q({},this.$slots,{default:function(){return[t.h(Ye,q({onBeforeEnter:function(){return r.$emit("beforeEnter")},onAfterEnter:function(){return r.$emit("afterEnter")},onBeforeLeave:function(){return r.$emit("beforeLeave")},onAfterLeave:function(){return r.$emit("afterLeave")}},r.$attrs,s,a),r.$slots.default)]}}),attrs:{},features:Va,visible:this.state===Z.Visible,name:"Transition"})},setup:function(r){var e=gt(),o=t.computed(function(){if(r.show===null&&e!==null){var c;return we(e.value,(c={},c[ae.Open]=!0,c[ae.Closed]=!1,c))}return r.show});t.watchEffect(function(){if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});var a=t.ref(o.value?Z.Visible:Z.Hidden),s=va(function(){a.value=Z.Hidden}),i={value:!0},l={show:o,appear:t.computed(function(){return r.appear||!i.value})};return t.onMounted(function(){t.watchEffect(function(){i.value=!1,o.value?a.value=Z.Visible:Cn(s)||(a.value=Z.Hidden)})}),t.provide(Sr,s),t.provide(Nr,l),{state:a,show:o}}});function Ta(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])}function $a(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})])}function yc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z","clip-rule":"evenodd"})])}function wc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})])}function xc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}function Cc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])}function Ec(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])}function kc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])}const Ba=n=>{const r=t.ref(n),e=t.computed(()=>o.value.length>0),o=t.computed(()=>r.value.map(a=>({...a,disabled:a.disabled!==void 0?typeof a.disabled=="boolean"?a.disabled:a.disabled():!1,show:a.show!==void 0?typeof a.show=="boolean"?a.show:a.show():!0})).filter(a=>a.show));return{actions:o,hasActions:e}};function Je(n){return n.split("-")[1]}function Ma(n){return n==="y"?"height":"width"}function yt(n){return n.split("-")[0]}function En(n){return["top","bottom"].includes(yt(n))?"x":"y"}function Pa(n,r,e){let{reference:o,floating:a}=n;const s=o.x+o.width/2-a.width/2,i=o.y+o.height/2-a.height/2,l=En(r),c=Ma(l),d=o[c]/2-a[c]/2,u=l==="x";let f;switch(yt(r)){case"top":f={x:s,y:o.y-a.height};break;case"bottom":f={x:s,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:i};break;case"left":f={x:o.x-a.width,y:i};break;default:f={x:o.x,y:o.y}}switch(Je(r)){case"start":f[l]-=d*(e&&u?-1:1);break;case"end":f[l]+=d*(e&&u?-1:1)}return f}const Dc=async(n,r,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=e,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(r));let d=await i.getElementRects({reference:n,floating:r,strategy:a}),{x:u,y:f}=Pa(d,o,c),p=o,g={},h=0;for(let y=0;y<l.length;y++){const{name:w,fn:C}=l[y],{x:D,y:S,data:O,reset:P}=await C({x:u,y:f,initialPlacement:o,placement:p,strategy:a,middlewareData:g,rects:d,platform:i,elements:{reference:n,floating:r}});u=D??u,f=S??f,g={...g,[w]:{...g[w],...O}},P&&h<=50&&(h++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(d=P.rects===!0?await i.getElementRects({reference:n,floating:r,strategy:a}):P.rects),{x:u,y:f}=Pa(d,p,c)),y=-1)}return{x:u,y:f,placement:p,strategy:a,middlewareData:g}};function kn(n,r){return typeof n=="function"?n(r):n}function Nc(n){return typeof n!="number"?function(r){return{top:0,right:0,bottom:0,left:0,...r}}(n):{top:n,right:n,bottom:n,left:n}}function Dn(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}async function Aa(n,r){var e;r===void 0&&(r={});const{x:o,y:a,platform:s,rects:i,elements:l,strategy:c}=n,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:g=0}=kn(r,n),h=Nc(g),y=l[p?f==="floating"?"reference":"floating":f],w=Dn(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(y)))==null||e?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),C=f==="floating"?{...i.floating,x:o,y:a}:i.reference,D=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),S=await(s.isElement==null?void 0:s.isElement(D))&&await(s.getScale==null?void 0:s.getScale(D))||{x:1,y:1},O=Dn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:C,offsetParent:D,strategy:c}):C);return{top:(w.top-O.top+h.top)/S.y,bottom:(O.bottom-w.bottom+h.bottom)/S.y,left:(w.left-O.left+h.left)/S.x,right:(O.right-w.right+h.right)/S.x}}const Sc=Math.min,_c=Math.max;function Ra(n,r,e){return _c(n,Sc(r,e))}const vc=["top","right","bottom","left"],Oa=vc.reduce((n,r)=>n.concat(r,r+"-start",r+"-end"),[]),Vc={left:"right",right:"left",bottom:"top",top:"bottom"};function Ia(n){return n.replace(/left|right|bottom|top/g,r=>Vc[r])}function Tc(n,r,e){e===void 0&&(e=!1);const o=Je(n),a=En(n),s=Ma(a);let i=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[s]>r.floating[s]&&(i=Ia(i)),{main:i,cross:Ia(i)}}const $c={start:"end",end:"start"};function Bc(n){return n.replace(/start|end/g,r=>$c[r])}const Mc=function(n){return n===void 0&&(n={}),{name:"autoPlacement",options:n,async fn(r){var e,o,a;const{rects:s,middlewareData:i,placement:l,platform:c,elements:d}=r,{crossAxis:u=!1,alignment:f,allowedPlacements:p=Oa,autoAlignment:g=!0,...h}=kn(n,r),y=f!==void 0||p===Oa?function(z,te,oe){return(z?[...oe.filter(fe=>Je(fe)===z),...oe.filter(fe=>Je(fe)!==z)]:oe.filter(fe=>yt(fe)===fe)).filter(fe=>!z||Je(fe)===z||!!te&&Bc(fe)!==fe)}(f||null,g,p):p,w=await Aa(r,h),C=((e=i.autoPlacement)==null?void 0:e.index)||0,D=y[C];if(D==null)return{};const{main:S,cross:O}=Tc(D,s,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(l!==D)return{reset:{placement:y[0]}};const P=[w[yt(D)],w[S],w[O]],L=[...((o=i.autoPlacement)==null?void 0:o.overflows)||[],{placement:D,overflows:P}],B=y[C+1];if(B)return{data:{index:C+1,overflows:L},reset:{placement:B}};const le=L.map(z=>{const te=Je(z.placement);return[z.placement,te&&u?z.overflows.slice(0,2).reduce((oe,fe)=>oe+fe,0):z.overflows[0],z.overflows]}).sort((z,te)=>z[1]-te[1]),F=((a=le.filter(z=>z[2].slice(0,Je(z[0])?2:3).every(te=>te<=0))[0])==null?void 0:a[0])||le[0][0];return F!==l?{data:{index:C+1,overflows:L},reset:{placement:F}}:{}}}},Pc=function(n){return{name:"offset",options:n,async fn(r){const{x:e,y:o}=r,a=await async function(s,i){const{placement:l,platform:c,elements:d}=s,u=await(c.isRTL==null?void 0:c.isRTL(d.floating)),f=yt(l),p=Je(l),g=En(l)==="x",h=["left","top"].includes(f)?-1:1,y=u&&g?-1:1,w=kn(i,s);let{mainAxis:C,crossAxis:D,alignmentAxis:S}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...w};return p&&typeof S=="number"&&(D=p==="end"?-1*S:S),g?{x:D*y,y:C*h}:{x:C*h,y:D*y}}(r,n);return{x:e+a.x,y:o+a.y,data:a}}}};function Ac(n){return n==="x"?"y":"x"}const Rc=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:e,y:o,placement:a}=r,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:w=>{let{x:C,y:D}=w;return{x:C,y:D}}},...c}=kn(n,r),d={x:e,y:o},u=await Aa(r,c),f=En(yt(a)),p=Ac(f);let g=d[f],h=d[p];if(s){const w=f==="y"?"bottom":"right";g=Ra(g+u[f==="y"?"top":"left"],g,g-u[w])}if(i){const w=p==="y"?"bottom":"right";h=Ra(h+u[p==="y"?"top":"left"],h,h-u[w])}const y=l.fn({...r,[f]:g,[p]:h});return{...y,data:{x:y.x-e,y:y.y-o}}}}};function Te(n){var r;return((r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Ie(n){return Te(n).getComputedStyle(n)}function La(n){return n instanceof Te(n).Node}function Xe(n){return La(n)?(n.nodeName||"").toLowerCase():""}function Le(n){return n instanceof Te(n).HTMLElement}function Ne(n){return n instanceof Te(n).Element}function Fa(n){return typeof ShadowRoot>"u"?!1:n instanceof Te(n).ShadowRoot||n instanceof ShadowRoot}function Ot(n){const{overflow:r,overflowX:e,overflowY:o,display:a}=Ie(n);return/auto|scroll|overlay|hidden|clip/.test(r+o+e)&&!["inline","contents"].includes(a)}function Oc(n){return["table","td","th"].includes(Xe(n))}function _r(n){const r=vr(),e=Ie(n);return e.transform!=="none"||e.perspective!=="none"||!r&&!!e.backdropFilter&&e.backdropFilter!=="none"||!r&&!!e.filter&&e.filter!=="none"||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function vr(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Nn(n){return["html","body","#document"].includes(Xe(n))}const ja=Math.min,It=Math.max,Sn=Math.round;function Ha(n){const r=Ie(n);let e=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=Le(n),s=a?n.offsetWidth:e,i=a?n.offsetHeight:o,l=Sn(e)!==s||Sn(o)!==i;return l&&(e=s,o=i),{width:e,height:o,fallback:l}}function Ua(n){return Ne(n)?n:n.contextElement}const za={x:1,y:1};function wt(n){const r=Ua(n);if(!Le(r))return za;const e=r.getBoundingClientRect(),{width:o,height:a,fallback:s}=Ha(r);let i=(s?Sn(e.width):e.width)/o,l=(s?Sn(e.height):e.height)/a;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const qa={x:0,y:0};function Wa(n,r,e){var o,a;if(r===void 0&&(r=!0),!vr())return qa;const s=n?Te(n):window;return!e||r&&e!==s?qa:{x:((o=s.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=s.visualViewport)==null?void 0:a.offsetTop)||0}}function st(n,r,e,o){r===void 0&&(r=!1),e===void 0&&(e=!1);const a=n.getBoundingClientRect(),s=Ua(n);let i=za;r&&(o?Ne(o)&&(i=wt(o)):i=wt(n));const l=Wa(s,e,o);let c=(a.left+l.x)/i.x,d=(a.top+l.y)/i.y,u=a.width/i.x,f=a.height/i.y;if(s){const p=Te(s),g=o&&Ne(o)?Te(o):o;let h=p.frameElement;for(;h&&o&&g!==p;){const y=wt(h),w=h.getBoundingClientRect(),C=getComputedStyle(h);w.x+=(h.clientLeft+parseFloat(C.paddingLeft))*y.x,w.y+=(h.clientTop+parseFloat(C.paddingTop))*y.y,c*=y.x,d*=y.y,u*=y.x,f*=y.y,c+=w.x,d+=w.y,h=Te(h).frameElement}}return Dn({width:u,height:f,x:c,y:d})}function Ze(n){return((La(n)?n.ownerDocument:n.document)||window.document).documentElement}function _n(n){return Ne(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Ya(n){return st(Ze(n)).left+_n(n).scrollLeft}function xt(n){if(Xe(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Fa(n)&&n.host||Ze(n);return Fa(r)?r.host:r}function Ka(n){const r=xt(n);return Nn(r)?r.ownerDocument.body:Le(r)&&Ot(r)?r:Ka(r)}function Lt(n,r){var e;r===void 0&&(r=[]);const o=Ka(n),a=o===((e=n.ownerDocument)==null?void 0:e.body),s=Te(o);return a?r.concat(s,s.visualViewport||[],Ot(o)?o:[]):r.concat(o,Lt(o))}function Ga(n,r,e){let o;if(r==="viewport")o=function(a,s){const i=Te(a),l=Ze(a),c=i.visualViewport;let d=l.clientWidth,u=l.clientHeight,f=0,p=0;if(c){d=c.width,u=c.height;const g=vr();(!g||g&&s==="fixed")&&(f=c.offsetLeft,p=c.offsetTop)}return{width:d,height:u,x:f,y:p}}(n,e);else if(r==="document")o=function(a){const s=Ze(a),i=_n(a),l=a.ownerDocument.body,c=It(s.scrollWidth,s.clientWidth,l.scrollWidth,l.clientWidth),d=It(s.scrollHeight,s.clientHeight,l.scrollHeight,l.clientHeight);let u=-i.scrollLeft+Ya(a);const f=-i.scrollTop;return Ie(l).direction==="rtl"&&(u+=It(s.clientWidth,l.clientWidth)-c),{width:c,height:d,x:u,y:f}}(Ze(n));else if(Ne(r))o=function(a,s){const i=st(a,!0,s==="fixed"),l=i.top+a.clientTop,c=i.left+a.clientLeft,d=Le(a)?wt(a):{x:1,y:1};return{width:a.clientWidth*d.x,height:a.clientHeight*d.y,x:c*d.x,y:l*d.y}}(r,e);else{const a=Wa(n);o={...r,x:r.x-a.x,y:r.y-a.y}}return Dn(o)}function Ja(n,r){const e=xt(n);return!(e===r||!Ne(e)||Nn(e))&&(Ie(e).position==="fixed"||Ja(e,r))}function Xa(n,r){return Le(n)&&Ie(n).position!=="fixed"?r?r(n):n.offsetParent:null}function Za(n,r){const e=Te(n);if(!Le(n))return e;let o=Xa(n,r);for(;o&&Oc(o)&&Ie(o).position==="static";)o=Xa(o,r);return o&&(Xe(o)==="html"||Xe(o)==="body"&&Ie(o).position==="static"&&!_r(o))?e:o||function(a){let s=xt(a);for(;Le(s)&&!Nn(s);){if(_r(s))return s;s=xt(s)}return null}(n)||e}function Ic(n,r,e){const o=Le(r),a=Ze(r),s=e==="fixed",i=st(n,!0,s,r);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!s)if((Xe(r)!=="body"||Ot(a))&&(l=_n(r)),Le(r)){const d=st(r,!0,s,r);c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}else a&&(c.x=Ya(a));return{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}const Lc={getClippingRect:function(n){let{element:r,boundary:e,rootBoundary:o,strategy:a}=n;const s=e==="clippingAncestors"?function(d,u){const f=u.get(d);if(f)return f;let p=Lt(d).filter(w=>Ne(w)&&Xe(w)!=="body"),g=null;const h=Ie(d).position==="fixed";let y=h?xt(d):d;for(;Ne(y)&&!Nn(y);){const w=Ie(y),C=_r(y);C||w.position!=="fixed"||(g=null),(h?!C&&!g:!C&&w.position==="static"&&g&&["absolute","fixed"].includes(g.position)||Ot(y)&&!C&&Ja(d,y))?p=p.filter(D=>D!==y):g=w,y=xt(y)}return u.set(d,p),p}(r,this._c):[].concat(e),i=[...s,o],l=i[0],c=i.reduce((d,u)=>{const f=Ga(r,u,a);return d.top=It(f.top,d.top),d.right=ja(f.right,d.right),d.bottom=ja(f.bottom,d.bottom),d.left=It(f.left,d.left),d},Ga(r,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(n){let{rect:r,offsetParent:e,strategy:o}=n;const a=Le(e),s=Ze(e);if(e===s)return r;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&((Xe(e)!=="body"||Ot(s))&&(i=_n(e)),Le(e))){const d=st(e);l=wt(e),c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-i.scrollLeft*l.x+c.x,y:r.y*l.y-i.scrollTop*l.y+c.y}},isElement:Ne,getDimensions:function(n){return Ha(n)},getOffsetParent:Za,getDocumentElement:Ze,getScale:wt,async getElementRects(n){let{reference:r,floating:e,strategy:o}=n;const a=this.getOffsetParent||Za,s=this.getDimensions;return{reference:Ic(r,await a(e),o),floating:{x:0,y:0,...await s(e)}}},getClientRects:n=>Array.from(n.getClientRects()),isRTL:n=>Ie(n).direction==="rtl"};function Qa(n,r,e,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=!0,animationFrame:l=!1}=o,c=a||s?[...Ne(n)?Lt(n):n.contextElement?Lt(n.contextElement):[],...Lt(r)]:[];c.forEach(p=>{const g=!Ne(p)&&p.toString().includes("V");!a||l&&!g||p.addEventListener("scroll",e,{passive:!0}),s&&p.addEventListener("resize",e)});let d,u=null;i&&(u=new ResizeObserver(()=>{e()}),Ne(n)&&!l&&u.observe(n),Ne(n)||!n.contextElement||l||u.observe(n.contextElement),u.observe(r));let f=l?st(n):null;return l&&function p(){const g=st(n);!f||g.x===f.x&&g.y===f.y&&g.width===f.width&&g.height===f.height||e(),f=g,d=requestAnimationFrame(p)}(),e(),()=>{var p;c.forEach(g=>{a&&g.removeEventListener("scroll",e),s&&g.removeEventListener("resize",e)}),(p=u)==null||p.disconnect(),u=null,l&&cancelAnimationFrame(d)}}const Fc=(n,r,e)=>{const o=new Map,a={platform:Lc,...e},s={...a.platform,_c:o};return Dc(n,r,{...a,platform:s})};function es(n){var r;return(r=n==null?void 0:n.$el)!=null?r:n}function ts(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function ns(n,r){const e=ts(n);return Math.round(r*e)/e}function rs(n,r,e){e===void 0&&(e={});const o=e.whileElementsMounted,a=t.computed(()=>{var B;return(B=t.unref(e.open))!=null?B:!0}),s=t.computed(()=>t.unref(e.middleware)),i=t.computed(()=>{var B;return(B=t.unref(e.placement))!=null?B:"bottom"}),l=t.computed(()=>{var B;return(B=t.unref(e.strategy))!=null?B:"absolute"}),c=t.computed(()=>{var B;return(B=t.unref(e.transform))!=null?B:!0}),d=t.computed(()=>es(n.value)),u=t.computed(()=>es(r.value)),f=t.ref(0),p=t.ref(0),g=t.ref(l.value),h=t.ref(i.value),y=t.shallowRef({}),w=t.ref(!1),C=t.computed(()=>{const B={position:g.value,left:"0",top:"0"};if(!u.value)return B;const le=ns(u.value,f.value),F=ns(u.value,p.value);return c.value?{...B,transform:"translate("+le+"px, "+F+"px)",...ts(u.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:le+"px",top:F+"px"}});let D;function S(){d.value==null||u.value==null||Fc(d.value,u.value,{middleware:s.value,placement:i.value,strategy:l.value}).then(B=>{f.value=B.x,p.value=B.y,g.value=B.strategy,h.value=B.placement,y.value=B.middlewareData,w.value=!0})}function O(){typeof D=="function"&&(D(),D=void 0)}function P(){if(O(),o===void 0){S();return}if(d.value!=null&&u.value!=null){D=o(d.value,u.value,S);return}}function L(){a.value||(w.value=!1)}return t.watch([s,i,l],S,{flush:"sync"}),t.watch([d,u],P,{flush:"sync"}),t.watch(a,L,{flush:"sync"}),t.getCurrentScope()&&t.onScopeDispose(O),{x:t.shallowReadonly(f),y:t.shallowReadonly(p),strategy:t.shallowReadonly(g),placement:t.shallowReadonly(h),middlewareData:t.shallowReadonly(y),isPositioned:t.shallowReadonly(w),floatingStyles:C,update:S}}const jc={class:"py-1"},Hc=["disabled","onClick"],Uc={class:"relative inline-flex items-center gap-x-1.5"},vn=t.defineComponent({__name:"ActionsDropdown",props:{actions:{default:()=>[]},placement:{default:"bottom-end"}},setup(n){const r=n,{actions:e,hasActions:o}=Ba(t.toRef(r,"actions")),a=t.useTemplateRef("trigger"),s=t.useTemplateRef("wrapper"),{floatingStyles:i}=rs(a,s,{placement:r.placement,strategy:"fixed",whileElementsMounted:Qa});return(l,c)=>(t.openBlock(),t.createBlock(t.unref(yr),{as:"div",class:"relative flex justify-end items-center"},{default:t.withCtx(()=>[t.createVNode(t.unref(wr),{ref:"trigger",class:"w-8 h-8 inline-flex items-center justify-center text-gray-700 rounded-full hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed",disabled:!t.unref(o)},{default:t.withCtx(()=>[c[0]||(c[0]=t.createElementVNode("span",{class:"sr-only"},"Open options",-1)),t.createVNode(t.unref(wc),{class:"w-5 h-5","aria-hidden":"true"})]),_:1},8,["disabled"]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",{ref:"wrapper",class:"z-[5]",style:t.normalizeStyle(t.unref(i))},[t.createVNode(t.unref(xr),{class:"w-48 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-200 focus:outline-none"},{default:t.withCtx(()=>[t.createElementVNode("div",jc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(d,u)=>(t.openBlock(),t.createBlock(t.unref(Cr),{key:u,as:"div"},{default:t.withCtx(({active:f})=>[t.createElementVNode("button",{type:"submit",disabled:d.disabled,class:t.normalizeClass([f?"bg-gray-100 text-gray-900":"text-gray-700","block w-full text-left px-4 py-2 text-sm font-semibold disabled:cursor-not-allowed"]),onClick:d.onClick},[t.createElementVNode("span",Uc,[d.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(d.icon),{key:0,class:"-ml-0.5 h-4 w-4 text-gray-400","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(d.label),1)])],10,Hc)]),_:2},1024))),128))])]),_:1})],4)]),_:1})]),_:1}))}}),zc={class:"px-4 py-5 sm:p-6 text-center"},qc=["textContent"],Wc=["textContent"],os=t.defineComponent({__name:"Cards",props:{cards:{}},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["mt-5 grid grid-cols-1 gap-5","lg:grid-cols-"+r.cards.length])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.cards,(o,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"bg-white overflow-hidden shadow rounded-xy"},[t.createElementVNode("div",zc,[t.createElementVNode("dl",null,[t.createElementVNode("dd",{class:"mt-1 text-3xl leading-9 font-semibold text-xy-blue",textContent:t.toDisplayString(o.primary)},null,8,qc),t.createElementVNode("dt",{class:"text-sm leading-5 font-medium text-gray-700 truncate",textContent:t.toDisplayString(o.secondary)},null,8,Wc)])])]))),128))],2))}}),Yc={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Kc={class:"inline-block align-bottom bg-white rounded-xy px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-md sm:w-full sm:p-8 sm:rounded-xy-lg"},Gc={class:"mt-3 text-center sm:mt-5"},Jc={class:"mt-2"},Xc={class:"mt-5 sm:mt-6"},as=t.defineComponent({__name:"ContentModal",props:t.mergeModels({btnText:{default:"Go back"},title:{default:""}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:t.mergeModels(["close"],["update:modelValue"]),setup(n,{emit:r}){const e=t.useModel(n,"modelValue"),o=r;return t.watch(e,a=>{a||o("close")}),(a,s)=>(t.openBlock(),t.createBlock(t.unref(Rt),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(bn),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:e.value,onClose:s[1]||(s[1]=i=>e.value=!1)},{default:t.withCtx(()=>[t.createElementVNode("div",Yc,[t.createVNode(t.unref(Ye),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(yn),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),s[2]||(s[2]=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1)),t.createVNode(t.unref(Ye),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",Kc,[t.createElementVNode("div",null,[t.renderSlot(a.$slots,"icon"),t.createElementVNode("div",Gc,[t.createVNode(t.unref(br),{as:"h3"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),t.createElementVNode("div",Jc,[t.renderSlot(a.$slots,"default")])])]),t.createElementVNode("div",Xc,[t.createElementVNode("button",{type:"button",class:"inline-flex justify-center w-full xy-btn",onClick:s[0]||(s[0]=i=>e.value=!1)},t.toDisplayString(a.btnText),1)])])]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Zc={key:0,class:"text-red-700/80","aria-hidden":""},he=t.defineComponent({__name:"InputLabel",props:{label:{default:""},required:{type:Boolean,default:!1},tag:{default:"label"}},setup(n){const r=n,e=t.computed(()=>r.required&&/\*$/gm.exec(r.label)!==null?r.label.substring(0,r.label.length-1):r.label);return(o,a)=>e.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tag),t.mergeProps({key:0,class:"block text-sm leading-snug font-medium text-gray-800"},o.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.value)+" ",1),r.required?(t.openBlock(),t.createElementBlock("span",Zc,"*")):t.createCommentVNode("",!0)]),_:1},16)):t.createCommentVNode("",!0)}}),ie=t.defineComponent({__name:"InputHelp",props:{tag:{default:"div"},text:{default:""}},setup(n){return(r,e)=>r.text?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.tag),t.mergeProps({key:0,class:"text-sm leading-6 font-normal text-gray-600"},r.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.text),1)]),_:1},16)):t.createCommentVNode("",!0)}}),Qc={key:0,class:"text-sm text-red-700"},Se=t.defineComponent({__name:"InputError",props:{text:{default:""}},setup(n){return(r,e)=>r.text?(t.openBlock(),t.createElementBlock("p",Qc,t.toDisplayString(r.text),1)):t.createCommentVNode("",!0)}}),Vr=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Ct={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:n=>typeof console<"u"&&console.warn(n),getWeek:n=>{const r=new Date(n.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var e=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},Ft={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:n=>{const r=n%100;if(r>3&&r<21)return"th";switch(r%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Ce=(n,r=2)=>`000${n}`.slice(r*-1),$e=n=>n===!0?1:0;function ss(n,r){let e;return function(){clearTimeout(e),e=setTimeout(()=>n.apply(this,arguments),r)}}const Tr=n=>n instanceof Array?n:[n];function ge(n,r,e){if(e===!0)return n.classList.add(r);n.classList.remove(r)}function U(n,r,e){const o=window.document.createElement(n);return r=r||"",e=e||"",o.className=r,e!==void 0&&(o.textContent=e),o}function Vn(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function is(n,r){if(r(n))return n;if(n.parentNode)return is(n.parentNode,r)}function Tn(n,r){const e=U("div","numInputWrapper"),o=U("input","numInput "+n),a=U("span","arrowUp"),s=U("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?o.type="number":(o.type="text",o.pattern="\\d*"),r!==void 0)for(const i in r)o.setAttribute(i,r[i]);return e.appendChild(o),e.appendChild(a),e.appendChild(s),e}function _e(n){try{return typeof n.composedPath=="function"?n.composedPath()[0]:n.target}catch{return n.target}}const $r=()=>{},$n=(n,r,e)=>e.months[r?"shorthand":"longhand"][n],ed={D:$r,F:function(n,r,e){n.setMonth(e.months.longhand.indexOf(r))},G:(n,r)=>{n.setHours(parseFloat(r))},H:(n,r)=>{n.setHours(parseFloat(r))},J:(n,r)=>{n.setDate(parseFloat(r))},K:(n,r,e)=>{n.setHours(n.getHours()%12+12*$e(new RegExp(e.amPM[1],"i").test(r)))},M:function(n,r,e){n.setMonth(e.months.shorthand.indexOf(r))},S:(n,r)=>{n.setSeconds(parseFloat(r))},U:(n,r)=>new Date(parseFloat(r)*1e3),W:function(n,r,e){const o=parseInt(r),a=new Date(n.getFullYear(),0,2+(o-1)*7,0,0,0,0);return a.setDate(a.getDate()-a.getDay()+e.firstDayOfWeek),a},Y:(n,r)=>{n.setFullYear(parseFloat(r))},Z:(n,r)=>new Date(r),d:(n,r)=>{n.setDate(parseFloat(r))},h:(n,r)=>{n.setHours(parseFloat(r))},i:(n,r)=>{n.setMinutes(parseFloat(r))},j:(n,r)=>{n.setDate(parseFloat(r))},l:$r,m:(n,r)=>{n.setMonth(parseFloat(r)-1)},n:(n,r)=>{n.setMonth(parseFloat(r)-1)},s:(n,r)=>{n.setSeconds(parseFloat(r))},u:(n,r)=>new Date(parseFloat(r)),w:$r,y:(n,r)=>{n.setFullYear(2e3+parseFloat(r))}},Br={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},jt={Z:n=>n.toISOString(),D:function(n,r,e){return r.weekdays.shorthand[jt.w(n,r,e)]},F:function(n,r,e){return $n(jt.n(n,r,e)-1,!1,r)},G:function(n,r,e){return Ce(jt.h(n,r,e))},H:n=>Ce(n.getHours()),J:function(n,r){return r.ordinal!==void 0?n.getDate()+r.ordinal(n.getDate()):n.getDate()},K:(n,r)=>r.amPM[$e(n.getHours()>11)],M:function(n,r){return $n(n.getMonth(),!0,r)},S:n=>Ce(n.getSeconds()),U:n=>n.getTime()/1e3,W:function(n,r,e){return e.getWeek(n)},Y:n=>Ce(n.getFullYear(),4),d:n=>Ce(n.getDate()),h:n=>n.getHours()%12?n.getHours()%12:12,i:n=>Ce(n.getMinutes()),j:n=>n.getDate(),l:function(n,r){return r.weekdays.longhand[n.getDay()]},m:n=>Ce(n.getMonth()+1),n:n=>n.getMonth()+1,s:n=>n.getSeconds(),u:n=>n.getTime(),w:n=>n.getDay(),y:n=>String(n.getFullYear()).substring(2)},ls=({config:n=Ct,l10n:r=Ft,isMobile:e=!1})=>(o,a,s)=>{const i=s||r;return n.formatDate!==void 0&&!e?n.formatDate(o,a,i):a.split("").map((l,c,d)=>jt[l]&&d[c-1]!=="\\"?jt[l](o,i,n):l!=="\\"?l:"").join("")},Mr=({config:n=Ct,l10n:r=Ft})=>(e,o,a,s)=>{if(e!==0&&!e)return;const i=s||r;let l;const c=e;if(e instanceof Date)l=new Date(e.getTime());else if(typeof e!="string"&&e.toFixed!==void 0)l=new Date(e);else if(typeof e=="string"){const d=o||(n||Ct).dateFormat,u=String(e).trim();if(u==="today")l=new Date,a=!0;else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else if(n&&n.parseDate)l=n.parseDate(e,d);else{l=!n||!n.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0));let f,p=[];for(let g=0,h=0,y="";g<d.length;g++){const w=d[g],C=w==="\\",D=d[g-1]==="\\"||C;if(Br[w]&&!D){y+=Br[w];const S=new RegExp(y).exec(e);S&&(f=!0)&&p[w!=="Y"?"push":"unshift"]({fn:ed[w],val:S[++h]})}else C||(y+=".");p.forEach(({fn:S,val:O})=>l=S(l,O,i)||l)}l=f?l:void 0}}if(!(l instanceof Date&&!isNaN(l.getTime()))){n.errorHandler(new Error(`Invalid date provided: ${c}`));return}return a===!0&&l.setHours(0,0,0,0),l};function ve(n,r,e=!0){return e!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):n.getTime()-r.getTime()}const td=(n,r,e)=>n>Math.min(r,e)&&n<Math.max(r,e),nd={DAY:864e5};function Pr(n){let r=n.defaultHour,e=n.defaultMinute,o=n.defaultSeconds;if(n.minDate!==void 0){const a=n.minDate.getHours(),s=n.minDate.getMinutes(),i=n.minDate.getSeconds();r<a&&(r=a),r===a&&e<s&&(e=s),r===a&&e===s&&o<i&&(o=n.minDate.getSeconds())}if(n.maxDate!==void 0){const a=n.maxDate.getHours(),s=n.maxDate.getMinutes();r=Math.min(r,a),r===a&&(e=Math.min(s,e)),r===a&&e===s&&(o=n.maxDate.getSeconds())}return{hours:r,minutes:e,seconds:o}}typeof Object.assign!="function"&&(Object.assign=function(n,...r){if(!n)throw TypeError("Cannot convert undefined or null to object");for(const e of r)e&&Object.keys(e).forEach(o=>n[o]=e[o]);return n});const rd=300;function od(n,r){const e={config:Object.assign(Object.assign({},Ct),re.defaultConfig),l10n:Ft};e.parseDate=Mr({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=h,e._setHoursFromDate=f,e._positionCalendar=Yn,e.changeMonth=lt,e.changeYear=qn,e.clear=zn,e.close=He,e._createElement=U,e.destroy=Gr,e.isEnabled=ct,e.jumpToDate=C,e.open=Fh,e.redraw=ni,e.set=zh,e.setDate=qh,e.toggle=Gh;function o(){e.utils={getDaysInMonth(m=e.currentMonth,b=e.currentYear){return m===1&&(b%4===0&&b%100!==0||b%400===0)?29:e.l10n.daysInMonth[m]}}}function a(){e.element=e.input=n,e.isOpen=!1,jh(),ti(),Yh(),Wh(),o(),e.isMobile||O(),w(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&f(e.config.noCalendar?e.latestSelectedDateObj:void 0),Qe(!1)),i();const m=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&m&&Yn(),ee("onReady")}function s(m){return m.bind(e)}function i(){const m=e.config;m.weekNumbers===!1&&m.showMonths===1||m.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){const b=(e.days.offsetWidth+1)*m.showMonths;e.daysContainer.style.width=b+"px",e.calendarContainer.style.width=b+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function l(m){if(e.selectedDates.length===0){const x=e.config.minDate===void 0||ve(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),k=Pr(e.config);x.setHours(k.hours,k.minutes,k.seconds,x.getMilliseconds()),e.selectedDates=[x],e.latestSelectedDateObj=x}m!==void 0&&m.type!=="blur"&&Zh(m);const b=e._input.value;u(),Qe(),e._input.value!==b&&e._debouncedChange()}function c(m,b){return m%12+12*$e(b===e.l10n.amPM[1])}function d(m){switch(m%24){case 0:case 12:return 12;default:return m%12}}function u(){if(e.hourElement===void 0||e.minuteElement===void 0)return;let m=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,b=(parseInt(e.minuteElement.value,10)||0)%60,x=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(m=c(m,e.amPM.textContent));const k=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&ve(e.latestSelectedDateObj,e.config.minDate,!0)===0;if(e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&ve(e.latestSelectedDateObj,e.config.maxDate,!0)===0){const N=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;m=Math.min(m,N.getHours()),m===N.getHours()&&(b=Math.min(b,N.getMinutes())),b===N.getMinutes()&&(x=Math.min(x,N.getSeconds()))}if(k){const N=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;m=Math.max(m,N.getHours()),m===N.getHours()&&b<N.getMinutes()&&(b=N.getMinutes()),b===N.getMinutes()&&(x=Math.max(x,N.getSeconds()))}p(m,b,x)}function f(m){const b=m||e.latestSelectedDateObj;b&&p(b.getHours(),b.getMinutes(),b.getSeconds())}function p(m,b,x){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(m%24,b,x||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=Ce(e.config.time_24hr?m:(12+m)%12+12*$e(m%12===0)),e.minuteElement.value=Ce(b),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[$e(m>=12)]),e.secondElement!==void 0&&(e.secondElement.value=Ce(x)))}function g(m){const b=_e(m),x=parseInt(b.value)+(m.delta||0);(x/1e3>1||m.key==="Enter"&&!/[^\d]/.test(x.toString()))&&qn(x)}function h(m,b,x,k){if(b instanceof Array)return b.forEach(v=>h(m,v,x,k));if(m instanceof Array)return m.forEach(v=>h(v,b,x,k));m.addEventListener(b,x,k),e._handlers.push({remove:()=>m.removeEventListener(b,x)})}function y(){ee("onChange")}function w(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(b=>{Array.prototype.forEach.call(e.element.querySelectorAll(`[data-${b}]`),x=>h(x,"click",e[b]))}),e.isMobile){Kh();return}const m=ss(Lh,50);if(e._debouncedChange=ss(y,rd),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&h(e.daysContainer,"mouseover",b=>{e.config.mode==="range"&&Xr(_e(b))}),h(window.document.body,"keydown",Ih),!e.config.inline&&!e.config.static&&h(window,"resize",m),window.ontouchstart!==void 0?h(window.document,"touchstart",Jr):h(window.document,"mousedown",Jr),h(window.document,"focus",Jr,{capture:!0}),e.config.clickOpens===!0&&(h(e._input,"focus",e.open),h(e._input,"click",e.open)),e.daysContainer!==void 0&&(h(e.monthNav,"click",Xh),h(e.monthNav,["keyup","increment"],g),h(e.daysContainer,"click",ri)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){const b=x=>_e(x).select();h(e.timeContainer,["increment"],l),h(e.timeContainer,"blur",l,{capture:!0}),h(e.timeContainer,"click",D),h([e.hourElement,e.minuteElement],["focus","click"],b),e.secondElement!==void 0&&h(e.secondElement,"focus",()=>e.secondElement&&e.secondElement.select()),e.amPM!==void 0&&h(e.amPM,"click",x=>{l(x),y()})}e.config.allowInput&&h(e._input,"blur",Oh)}function C(m,b){const x=m!==void 0?e.parseDate(m):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),k=e.currentYear,v=e.currentMonth;try{x!==void 0&&(e.currentYear=x.getFullYear(),e.currentMonth=x.getMonth())}catch(N){N.message="Invalid date supplied: "+x,e.config.errorHandler(N)}b&&e.currentYear!==k&&(ee("onYearChange"),oe()),b&&(e.currentYear!==k||e.currentMonth!==v)&&ee("onMonthChange"),e.redraw()}function D(m){const b=_e(m);~b.className.indexOf("arrow")&&S(m,b.classList.contains("arrowUp")?1:-1)}function S(m,b,x){const k=m&&_e(m),v=x||k&&k.parentNode&&k.parentNode.firstChild,N=Qr("increment");N.delta=b,v&&v.dispatchEvent(N)}function O(){const m=window.document.createDocumentFragment();if(e.calendarContainer=U("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(m.appendChild(H()),e.innerContainer=U("div","flatpickr-innerContainer"),e.config.weekNumbers){const{weekWrapper:x,weekNumbers:k}=Yt();e.innerContainer.appendChild(x),e.weekNumbers=k,e.weekWrapper=x}e.rContainer=U("div","flatpickr-rContainer"),e.rContainer.appendChild(Be()),e.daysContainer||(e.daysContainer=U("div","flatpickr-days"),e.daysContainer.tabIndex=-1),te(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),m.appendChild(e.innerContainer)}e.config.enableTime&&m.appendChild(M()),ge(e.calendarContainer,"rangeMode",e.config.mode==="range"),ge(e.calendarContainer,"animate",e.config.animate===!0),ge(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(m);const b=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!b&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){const x=U("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(x,e.element),x.appendChild(e.element),e.altInput&&x.appendChild(e.altInput),x.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function P(m,b,x,k){const v=ct(b,!0),N=U("span","flatpickr-day "+m,b.getDate().toString());return N.dateObj=b,N.$i=k,N.setAttribute("aria-label",e.formatDate(b,e.config.ariaDateFormat)),m.indexOf("hidden")===-1&&ve(b,e.now)===0&&(e.todayDateElem=N,N.classList.add("today"),N.setAttribute("aria-current","date")),v?(N.tabIndex=-1,eo(b)&&(N.classList.add("selected"),e.selectedDateElem=N,e.config.mode==="range"&&(ge(N,"startRange",e.selectedDates[0]&&ve(b,e.selectedDates[0],!0)===0),ge(N,"endRange",e.selectedDates[1]&&ve(b,e.selectedDates[1],!0)===0),m==="nextMonthDay"&&N.classList.add("inRange")))):N.classList.add("flatpickr-disabled"),e.config.mode==="range"&&Jh(b)&&!eo(b)&&N.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&m!=="prevMonthDay"&&x%7===1&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(b)+"</span>"),ee("onDayCreate",N),N}function L(m){m.focus(),e.config.mode==="range"&&Xr(m)}function B(m){const b=m>0?0:e.config.showMonths-1,x=m>0?e.config.showMonths:-1;for(let k=b;k!=x;k+=m){const v=e.daysContainer.children[k],N=m>0?0:v.children.length-1,$=m>0?v.children.length:-1;for(let T=N;T!=$;T+=m){const I=v.children[T];if(I.className.indexOf("hidden")===-1&&ct(I.dateObj))return I}}}function le(m,b){const x=m.className.indexOf("Month")===-1?m.dateObj.getMonth():e.currentMonth,k=b>0?e.config.showMonths:-1,v=b>0?1:-1;for(let N=x-e.currentMonth;N!=k;N+=v){const $=e.daysContainer.children[N],T=x-e.currentMonth===N?m.$i+b:b<0?$.children.length-1:0,I=$.children.length;for(let j=T;j>=0&&j<I&&j!=(b>0?I:-1);j+=v){const G=$.children[j];if(G.className.indexOf("hidden")===-1&&ct(G.dateObj)&&Math.abs(m.$i-j)>=Math.abs(b))return L(G)}}e.changeMonth(v),F(B(v),0)}function F(m,b){const x=Wn(document.activeElement||document.body),k=m!==void 0?m:x?document.activeElement:e.selectedDateElem!==void 0&&Wn(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&Wn(e.todayDateElem)?e.todayDateElem:B(b>0?1:-1);k===void 0?e._input.focus():x?le(k,b):L(k)}function z(m,b){const x=(new Date(m,b,1).getDay()-e.l10n.firstDayOfWeek+7)%7,k=e.utils.getDaysInMonth((b-1+12)%12,m),v=e.utils.getDaysInMonth(b,m),N=window.document.createDocumentFragment(),$=e.config.showMonths>1,T=$?"prevMonthDay hidden":"prevMonthDay",I=$?"nextMonthDay hidden":"nextMonthDay";let j=k+1-x,G=0;for(;j<=k;j++,G++)N.appendChild(P(T,new Date(m,b-1,j),j,G));for(j=1;j<=v;j++,G++)N.appendChild(P("",new Date(m,b,j),j,G));for(let pe=v+1;pe<=42-x&&(e.config.showMonths===1||G%7!==0);pe++,G++)N.appendChild(P(I,new Date(m,b+1,pe%v),pe,G));const Me=U("div","dayContainer");return Me.appendChild(N),Me}function te(){if(e.daysContainer===void 0)return;Vn(e.daysContainer),e.weekNumbers&&Vn(e.weekNumbers);const m=document.createDocumentFragment();for(let b=0;b<e.config.showMonths;b++){const x=new Date(e.currentYear,e.currentMonth,1);x.setMonth(e.currentMonth+b),m.appendChild(z(x.getFullYear(),x.getMonth()))}e.daysContainer.appendChild(m),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&Xr()}function oe(){if(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")return;const m=function(b){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&b<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&b>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(let b=0;b<12;b++){if(!m(b))continue;const x=U("option","flatpickr-monthDropdown-month");x.value=new Date(e.currentYear,b).getMonth().toString(),x.textContent=$n(b,e.config.shorthandCurrentMonth,e.l10n),x.tabIndex=-1,e.currentMonth===b&&(x.selected=!0),e.monthsDropdownContainer.appendChild(x)}}function fe(){const m=U("div","flatpickr-month"),b=window.document.createDocumentFragment();let x;e.config.showMonths>1||e.config.monthSelectorType==="static"?x=U("span","cur-month"):(e.monthsDropdownContainer=U("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),h(e.monthsDropdownContainer,"change",$=>{const T=_e($),I=parseInt(T.value,10);e.changeMonth(I-e.currentMonth),ee("onMonthChange")}),oe(),x=e.monthsDropdownContainer);const k=Tn("cur-year",{tabindex:"-1"}),v=k.getElementsByTagName("input")[0];v.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&v.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(v.setAttribute("max",e.config.maxDate.getFullYear().toString()),v.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());const N=U("div","flatpickr-current-month");return N.appendChild(x),N.appendChild(k),b.appendChild(N),m.appendChild(b),{container:m,yearElement:v,monthElement:x}}function Wt(){Vn(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(let m=e.config.showMonths;m--;){const b=fe();e.yearElements.push(b.yearElement),e.monthElements.push(b.monthElement),e.monthNav.appendChild(b.container)}e.monthNav.appendChild(e.nextMonthNav)}function H(){return e.monthNav=U("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=U("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=U("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,Wt(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:()=>e.__hidePrevMonthArrow,set(m){e.__hidePrevMonthArrow!==m&&(ge(e.prevMonthNav,"flatpickr-disabled",m),e.__hidePrevMonthArrow=m)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:()=>e.__hideNextMonthArrow,set(m){e.__hideNextMonthArrow!==m&&(ge(e.nextMonthNav,"flatpickr-disabled",m),e.__hideNextMonthArrow=m)}}),e.currentYearElement=e.yearElements[0],Gn(),e.monthNav}function M(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");const m=Pr(e.config);e.timeContainer=U("div","flatpickr-time"),e.timeContainer.tabIndex=-1;const b=U("span","flatpickr-time-separator",":"),x=Tn("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=x.getElementsByTagName("input")[0];const k=Tn("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=k.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=Ce(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?m.hours:d(m.hours)),e.minuteElement.value=Ce(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():m.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(x),e.timeContainer.appendChild(b),e.timeContainer.appendChild(k),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");const v=Tn("flatpickr-second");e.secondElement=v.getElementsByTagName("input")[0],e.secondElement.value=Ce(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():m.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(U("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(v)}return e.config.time_24hr||(e.amPM=U("span","flatpickr-am-pm",e.l10n.amPM[$e((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function Be(){e.weekdayContainer?Vn(e.weekdayContainer):e.weekdayContainer=U("div","flatpickr-weekdays");for(let m=e.config.showMonths;m--;){const b=U("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(b)}return K(),e.weekdayContainer}function K(){if(!e.weekdayContainer)return;const m=e.l10n.firstDayOfWeek;let b=[...e.l10n.weekdays.shorthand];m>0&&m<b.length&&(b=[...b.splice(m,b.length),...b.splice(0,m)]);for(let x=e.config.showMonths;x--;)e.weekdayContainer.children[x].innerHTML=`
|
|
11
11
|
<span class='flatpickr-weekday'>
|
|
12
12
|
${b.join("</span><span class='flatpickr-weekday'>")}
|
|
13
13
|
</span>
|
|
14
|
-
`}function K(){e.calendarContainer.classList.add("hasWeeks");const m=U("div","flatpickr-weekwrapper");m.appendChild(U("span","flatpickr-weekday",e.l10n.weekAbbreviation));const b=U("div","flatpickr-weeks");return m.appendChild(b),{weekWrapper:m,weekNumbers:b}}function lt(m,b=!0){const x=b?m:m-e.currentMonth;x<0&&e._hidePrevMonthArrow===!0||x>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=x,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,te("onYearChange"),oe()),ee(),te("onMonthChange"),Yn())}function Ve(m=!0,b=!0){if(e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,b===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){const{hours:x,minutes:k,seconds:v}=Mr(e.config);p(x,k,v)}e.redraw(),m&&te("onChange")}function qr(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),te("onClose")}function wh(){e.config!==void 0&&te("onDestroy");for(let m=e._handlers.length;m--;)e._handlers[m].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){const m=e.calendarContainer.parentNode;if(m.lastChild&&m.removeChild(m.lastChild),m.parentNode){for(;m.firstChild;)m.parentNode.insertBefore(m.firstChild,m);m.parentNode.removeChild(m)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(m=>{try{delete e[m]}catch{}})}function Nt(m){return e.config.appendTo&&e.config.appendTo.contains(m)?!0:e.calendarContainer.contains(m)}function Wr(m){if(e.isOpen&&!e.config.inline){const b=_e(m),x=Nt(b),k=b===e.input||b===e.altInput||e.element.contains(b)||m.path&&m.path.indexOf&&(~m.path.indexOf(e.input)||~m.path.indexOf(e.altInput)),v=m.type==="blur"?k&&m.relatedTarget&&!Nt(m.relatedTarget):!k&&!x&&!Nt(m.relatedTarget),S=!e.config.ignoredFocusElements.some(M=>M.contains(b));v&&S&&(e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&l(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&(e.clear(!1),e.redraw()))}}function Un(m){if(!m||e.config.minDate&&m<e.config.minDate.getFullYear()||e.config.maxDate&&m>e.config.maxDate.getFullYear())return;const b=m,x=e.currentYear!==b;e.currentYear=b||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),x&&(e.redraw(),te("onYearChange"),oe())}function ct(m,b=!0){var x;const k=e.parseDate(m,void 0,b);if(e.config.minDate&&k&&ve(k,e.config.minDate,b!==void 0?b:!e.minDateHasTime)<0||e.config.maxDate&&k&&ve(k,e.config.maxDate,b!==void 0?b:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(k===void 0)return!1;const v=!!e.config.enable,S=(x=e.config.enable)!==null&&x!==void 0?x:e.config.disable;for(let M=0,B;M<S.length;M++){if(B=S[M],typeof B=="function"&&B(k))return v;if(B instanceof Date&&k!==void 0&&B.getTime()===k.getTime())return v;if(typeof B=="string"){const O=e.parseDate(B,void 0,!0);return O&&O.getTime()===k.getTime()?v:!v}else if(typeof B=="object"&&k!==void 0&&B.from&&B.to&&k.getTime()>=B.from.getTime()&&k.getTime()<=B.to.getTime())return v}return!v}function zn(m){return e.daysContainer!==void 0?m.className.indexOf("hidden")===-1&&m.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(m):!1}function xh(m){m.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&!(m.relatedTarget&&Nt(m.relatedTarget))&&e.setDate(e._input.value,!0,m.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Ch(m){const b=_e(m),x=e.config.wrap?n.contains(b):b===e._input,k=e.config.allowInput,v=e.isOpen&&(!k||!x),S=e.config.inline&&x&&!k;if(m.keyCode===13&&x){if(k)return e.setDate(e._input.value,!0,b===e.altInput?e.config.altFormat:e.config.dateFormat),b.blur();e.open()}else if(Nt(b)||v||S){const M=!!e.timeContainer&&e.timeContainer.contains(b);switch(m.keyCode){case 13:M?(m.preventDefault(),l(),Kr()):ts(m);break;case 27:m.preventDefault(),Kr();break;case 8:case 46:x&&!e.config.allowInput&&(m.preventDefault(),e.clear());break;case 37:case 39:if(!M&&!x){if(m.preventDefault(),e.daysContainer!==void 0&&(k===!1||document.activeElement&&zn(document.activeElement))){const O=m.keyCode===39?1:-1;m.ctrlKey?(m.stopPropagation(),lt(O),L($(1),0)):L(void 0,O)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:m.preventDefault();const B=m.keyCode===40?1:-1;e.daysContainer&&b.$i!==void 0||b===e.input||b===e.altInput?m.ctrlKey?(m.stopPropagation(),Un(e.currentYear-B),L($(1),0)):M||L(void 0,B*7):b===e.currentYearElement?Un(e.currentYear-B):e.config.enableTime&&(!M&&e.hourElement&&e.hourElement.focus(),l(m),e._debouncedChange());break;case 9:if(M){const O=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(G=>G),F=O.indexOf(b);if(F!==-1){const G=O[F+(m.shiftKey?-1:1)];m.preventDefault(),(G||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(b)&&m.shiftKey&&(m.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&b===e.amPM)switch(m.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],u(),Qe();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],u(),Qe();break}(x||Nt(b))&&te("onKeyDown",m)}function Yr(m){if(e.selectedDates.length!==1||m&&(!m.classList.contains("flatpickr-day")||m.classList.contains("flatpickr-disabled")))return;const b=m?m.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),x=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),k=Math.min(b,e.selectedDates[0].getTime()),v=Math.max(b,e.selectedDates[0].getTime());let S=!1,M=0,B=0;for(let O=k;O<v;O+=ed.DAY)ct(new Date(O),!0)||(S=S||O>k&&O<v,O<x&&(!M||O>M)?M=O:O>x&&(!B||O<B)&&(B=O));for(let O=0;O<e.config.showMonths;O++){const F=e.daysContainer.children[O];for(let G=0,Pe=F.children.length;G<Pe;G++){const pe=F.children[G],We=pe.dateObj.getTime(),qt=M>0&&We<M||B>0&&We>B;if(qt){pe.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(Wt=>{pe.classList.remove(Wt)});continue}else if(S&&!qt)continue;["startRange","inRange","endRange","notAllowed"].forEach(Wt=>{pe.classList.remove(Wt)}),m!==void 0&&(m.classList.add(b<=e.selectedDates[0].getTime()?"startRange":"endRange"),x<b&&We===x?pe.classList.add("startRange"):x>b&&We===x&&pe.classList.add("endRange"),We>=M&&(B===0||We<=B)&&Qc(We,x,b)&&pe.classList.add("inRange"))}}}function Eh(){e.isOpen&&!e.config.static&&!e.config.inline&&qn()}function kh(m,b=e._positionElement){if(e.isMobile===!0){if(m){m.preventDefault();const k=_e(m);k&&k.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),te("onOpen");return}else if(e._input.disabled||e.config.inline)return;const x=e.isOpen;e.isOpen=!0,x||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),te("onOpen"),qn(b)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(m===void 0||!e.timeContainer.contains(m.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)}function Xi(m){return b=>{const x=e.config[`_${m}Date`]=e.parseDate(b,e.config.dateFormat),k=e.config[`_${m==="min"?"max":"min"}Date`];x!==void 0&&(e[m==="min"?"minDateHasTime":"maxDateHasTime"]=x.getHours()>0||x.getMinutes()>0||x.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(v=>ct(v)),!e.selectedDates.length&&m==="min"&&f(x),Qe()),e.daysContainer&&(es(),x!==void 0?e.currentYearElement[m]=x.getFullYear().toString():e.currentYearElement.removeAttribute(m),e.currentYearElement.disabled=!!k&&x!==void 0&&k.getFullYear()===x.getFullYear())}}function Dh(){const m=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],b=Object.assign(Object.assign({},JSON.parse(JSON.stringify(n.dataset||{}))),r),x={};e.config.parseDate=b.parseDate,e.config.formatDate=b.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:S=>{e.config._enable=rs(S)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:S=>{e.config._disable=rs(S)}});const k=b.mode==="time";if(!b.dateFormat&&(b.enableTime||k)){const S=re.defaultConfig.dateFormat||Ct.dateFormat;x.dateFormat=b.noCalendar||k?"H:i"+(b.enableSeconds?":S":""):S+" H:i"+(b.enableSeconds?":S":"")}if(b.altInput&&(b.enableTime||k)&&!b.altFormat){const S=re.defaultConfig.altFormat||Ct.altFormat;x.altFormat=b.noCalendar||k?"h:i"+(b.enableSeconds?":S K":" K"):S+` h:i${b.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:Xi("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:Xi("max")});const v=S=>M=>{e.config[S==="min"?"_minTime":"_maxTime"]=e.parseDate(M,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:v("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:v("max")}),b.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,x,b);for(let S=0;S<m.length;S++)e.config[m[S]]=e.config[m[S]]===!0||e.config[m[S]]==="true";_r.filter(S=>e.config[S]!==void 0).forEach(S=>{e.config[S]=vr(e.config[S]||[]).map(i)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let S=0;S<e.config.plugins.length;S++){const M=e.config.plugins[S](e)||{};for(const B in M)_r.indexOf(B)>-1?e.config[B]=vr(M[B]).map(i).concat(e.config[B]):typeof b[B]>"u"&&(e.config[B]=M[B])}b.altInputClass||(e.config.altInputClass=Zi().className+" "+e.config.altInputClass),te("onParseConfig")}function Zi(){return e.config.wrap?n.querySelector("[data-input]"):n}function Qi(){typeof e.config.locale!="object"&&typeof re.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},re.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?re.l10ns[e.config.locale]:void 0),$r.K=`(${e.l10n.amPM[0]}|${e.l10n.amPM[1]}|${e.l10n.amPM[0].toLowerCase()}|${e.l10n.amPM[1].toLowerCase()})`,Object.assign(Object.assign({},r),JSON.parse(JSON.stringify(n.dataset||{}))).time_24hr===void 0&&re.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=ai(e),e.parseDate=Br({config:e.config,l10n:e.l10n})}function qn(m){if(typeof e.config.position=="function")return void e.config.position(e,m);if(e.calendarContainer===void 0)return;te("onPreCalendarPosition");const b=m||e._positionElement,x=Array.prototype.reduce.call(e.calendarContainer.children,(Yt,Xr)=>Yt+Xr.offsetHeight,0),k=e.calendarContainer.offsetWidth,v=e.config.position.split(" "),S=v[0],M=v.length>1?v[1]:null,B=b.getBoundingClientRect(),O=window.innerHeight-B.bottom,F=S==="above"||S!=="below"&&O<x&&B.top>x,G=window.pageYOffset+B.top+(F?-x-2:b.offsetHeight+2);if(ge(e.calendarContainer,"arrowTop",!F),ge(e.calendarContainer,"arrowBottom",F),e.config.inline)return;let Pe=window.pageXOffset+B.left,pe=!1,Kn=!1;M==="center"?(Pe-=(k-B.width)/2,pe=!0):M==="right"&&(Pe-=k-B.width,Kn=!0),ge(e.calendarContainer,"arrowLeft",!pe&&!Kn),ge(e.calendarContainer,"arrowCenter",pe),ge(e.calendarContainer,"arrowRight",Kn);const We=window.document.body.offsetWidth-(window.pageXOffset+B.right),qt=Pe+k>window.document.body.offsetWidth,Wt=We+k>window.document.body.offsetWidth;if(ge(e.calendarContainer,"rightMost",qt),!e.config.static)if(e.calendarContainer.style.top=`${G}px`,!qt)e.calendarContainer.style.left=`${Pe}px`,e.calendarContainer.style.right="auto";else if(!Wt)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${We}px`;else{const Yt=Sh();if(Yt===void 0)return;const Xr=window.document.body.offsetWidth,Rh=Math.max(0,Xr/2-k/2),Oh=".flatpickr-calendar.centerMost:before",Ih=".flatpickr-calendar.centerMost:after",Lh=Yt.cssRules.length,Fh=`{left:${B.left}px;right:auto;}`;ge(e.calendarContainer,"rightMost",!1),ge(e.calendarContainer,"centerMost",!0),Yt.insertRule(`${Oh},${Ih}${Fh}`,Lh),e.calendarContainer.style.left=`${Rh}px`,e.calendarContainer.style.right="auto"}}function Sh(){let m=null;for(let b=0;b<document.styleSheets.length;b++){const x=document.styleSheets[b];try{x.cssRules}catch{continue}m=x;break}return m??Nh()}function Nh(){const m=document.createElement("style");return document.head.appendChild(m),m.sheet}function es(){e.config.noCalendar||e.isMobile||(oe(),Yn(),ee())}function Kr(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function ts(m){m.preventDefault(),m.stopPropagation();const b=M=>M.classList&&M.classList.contains("flatpickr-day")&&!M.classList.contains("flatpickr-disabled")&&!M.classList.contains("notAllowed"),x=oi(_e(m),b);if(x===void 0)return;const k=x,v=e.latestSelectedDateObj=new Date(k.dateObj.getTime()),S=(v.getMonth()<e.currentMonth||v.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=k,e.config.mode==="single")e.selectedDates=[v];else if(e.config.mode==="multiple"){const M=Jr(v);M?e.selectedDates.splice(parseInt(M),1):e.selectedDates.push(v)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=v,e.selectedDates.push(v),ve(v,e.selectedDates[0],!0)!==0&&e.selectedDates.sort((M,B)=>M.getTime()-B.getTime()));if(u(),S){const M=e.currentYear!==v.getFullYear();e.currentYear=v.getFullYear(),e.currentMonth=v.getMonth(),M&&(te("onYearChange"),oe()),te("onMonthChange")}if(Yn(),ee(),Qe(),!S&&e.config.mode!=="range"&&e.config.showMonths===1?j(k):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){const M=e.config.mode==="single"&&!e.config.enableTime,B=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(M||B)&&Kr()}y()}const Wn={locale:[Qi,Me],showMonths:[jn,s,R],minDate:[C],maxDate:[C],clickOpens:[()=>{e.config.clickOpens===!0?(h(e._input,"focus",e.open),h(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function _h(m,b){if(m!==null&&typeof m=="object"){Object.assign(e.config,m);for(const x in m)Wn[x]!==void 0&&Wn[x].forEach(k=>k())}else e.config[m]=b,Wn[m]!==void 0?Wn[m].forEach(x=>x()):_r.indexOf(m)>-1&&(e.config[m]=vr(b));e.redraw(),Qe(!0)}function ns(m,b){let x=[];if(m instanceof Array)x=m.map(k=>e.parseDate(k,b));else if(m instanceof Date||typeof m=="number")x=[e.parseDate(m,b)];else if(typeof m=="string")switch(e.config.mode){case"single":case"time":x=[e.parseDate(m,b)];break;case"multiple":x=m.split(e.config.conjunction).map(k=>e.parseDate(k,b));break;case"range":x=m.split(e.l10n.rangeSeparator).map(k=>e.parseDate(k,b));break}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(m)}`));e.selectedDates=e.config.allowInvalidPreload?x:x.filter(k=>k instanceof Date&&ct(k,!1)),e.config.mode==="range"&&e.selectedDates.sort((k,v)=>k.getTime()-v.getTime())}function vh(m,b=!1,x=e.config.dateFormat){if(m!==0&&!m||m instanceof Array&&m.length===0)return e.clear(b);ns(m,x),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),C(void 0,b),f(),e.selectedDates.length===0&&e.clear(!1),Qe(b),b&&te("onChange")}function rs(m){return m.slice().map(b=>typeof b=="string"||typeof b=="number"||b instanceof Date?e.parseDate(b,void 0,!0):b&&typeof b=="object"&&b.from&&b.to?{from:e.parseDate(b.from,void 0),to:e.parseDate(b.to,void 0)}:b).filter(b=>b)}function Th(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const m=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);m&&ns(m,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function $h(){if(e.input=Zi(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=U(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),e._positionElement=e.config.positionElement||e._input}function Bh(){const m=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=U("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=m,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=m==="datetime-local"?"Y-m-d\\TH:i:S":m==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}h(e.mobileInput,"change",b=>{e.setDate(_e(b).value,!1,e.mobileFormatStr),te("onChange"),te("onClose")})}function Mh(m){if(e.isOpen===!0)return e.close();e.open(m)}function te(m,b){if(e.config===void 0)return;const x=e.config[m];if(x!==void 0&&x.length>0)for(let k=0;x[k]&&k<x.length;k++)x[k](e.selectedDates,e.input.value,e,b);m==="onChange"&&(e.input.dispatchEvent(Gr("change")),e.input.dispatchEvent(Gr("input")))}function Gr(m){const b=document.createEvent("Event");return b.initEvent(m,!0,!0),b}function Jr(m){for(let b=0;b<e.selectedDates.length;b++)if(ve(e.selectedDates[b],m)===0)return""+b;return!1}function Vh(m){return e.config.mode!=="range"||e.selectedDates.length<2?!1:ve(m,e.selectedDates[0])>=0&&ve(m,e.selectedDates[1])<=0}function Yn(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach((m,b)=>{const x=new Date(e.currentYear,e.currentMonth,1);x.setMonth(e.currentMonth+b),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[b].textContent=vn(x.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=x.getMonth().toString(),m.value=x.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function os(m){return e.selectedDates.map(b=>e.formatDate(b,m)).filter((b,x,k)=>e.config.mode!=="range"||e.config.enableTime||k.indexOf(b)===x).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Qe(m=!0){e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=os(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=os(e.config.altFormat)),m!==!1&&te("onValueUpdate")}function Ph(m){const b=_e(m),x=e.prevMonthNav.contains(b),k=e.nextMonthNav.contains(b);x||k?lt(x?-1:1):e.yearElements.indexOf(b)>=0?b.select():b.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):b.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Ah(m){m.preventDefault();const b=m.type==="keydown",x=_e(m),k=x;e.amPM!==void 0&&x===e.amPM&&(e.amPM.textContent=e.l10n.amPM[Be(e.amPM.textContent===e.l10n.amPM[0])]);const v=parseFloat(k.getAttribute("min")),S=parseFloat(k.getAttribute("max")),M=parseFloat(k.getAttribute("step")),B=parseInt(k.value,10),O=m.delta||(b?m.which===38?1:-1:0);let F=B+M*O;if(typeof k.value<"u"&&k.value.length===2){const G=k===e.hourElement,Pe=k===e.minuteElement;F<v?(F=S+F+Be(!G)+(Be(G)&&Be(!e.amPM)),Pe&&N(void 0,-1,e.hourElement)):F>S&&(F=k===e.hourElement?F-S-Be(!e.amPM):v,Pe&&N(void 0,1,e.hourElement)),e.amPM&&G&&(M===1?F+B===23:Math.abs(F-B)>M)&&(e.amPM.textContent=e.l10n.amPM[Be(e.amPM.textContent===e.l10n.amPM[0])]),k.value=Ce(F)}}return a(),e}function Et(n,r){const e=Array.prototype.slice.call(n).filter(a=>a instanceof HTMLElement),o=[];for(let a=0;a<e.length;a++){const i=e[a];try{if(i.getAttribute("data-fp-omit")!==null)continue;i._flatpickr!==void 0&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=nd(i,r||{}),o.push(i._flatpickr)}catch(s){console.error(s)}}return o.length===1?o[0]:o}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return Et(this,n)},HTMLElement.prototype.flatpickr=function(n){return Et([this],n)});var re=function(n,r){return typeof n=="string"?Et(window.document.querySelectorAll(n),r):n instanceof Node?Et([n],r):Et(n,r)};re.defaultConfig={},re.l10ns={en:Object.assign({},Lt),default:Object.assign({},Lt)},re.localize=n=>{re.l10ns.default=Object.assign(Object.assign({},re.l10ns.default),n)},re.setDefaults=n=>{re.defaultConfig=Object.assign(Object.assign({},re.defaultConfig),n)},re.parseDate=Br({}),re.formatDate=ai({}),re.compareDates=ve,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Et(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))},typeof window<"u"&&(window.flatpickr=re);const rd=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder"],Tn=t.defineComponent({inheritAttrs:!1,__name:"DateRangePicker",props:t.mergeModels(t.mergeDefaults({modelValue:{},maxDate:{},maxRange:{},startDate:{},label:{},help:{},placeholder:{}},{...Re,maxDate:()=>new Date,maxRange:0,placeholder:"mm-dd-yyyy range",startDate:0}),{modelValue:{...J,default:{maxDate:0,minDate:0}},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",{...J,default:{maxDate:0,minDate:0}}),{aria:o,errorState:a,inputID:i,isRequired:s,onInvalid:l,validate:c}=Te(r),d=u=>{e.value=u};return t.onMounted(()=>{const u={allowInput:!0,dateFormat:"m-d-Y",mode:"range",maxDate:r.maxDate,minDate:r.startDate,onClose:f=>{f.length===2?d({minDate:f[0].setUTCHours(0,0,0,0)/1e3,maxDate:Math.floor(f[1].setUTCHours(23,59,59,999)/1e3)}):f.length===0&&d({minDate:0,maxDate:0})}};e.value&&e.value.minDate!=0&&e.value.maxDate!=0&&(u.defaultDate=[e.value.minDate*1e3,e.value.maxDate*1e3]),r.maxRange&&(u.onChange=(f,p,g)=>{if(f.length===1){var h=new Date(f[0].getTime()),y=new Date(f[0].getTime());h.setDate(h.getDate()+r.maxRange),y.setDate(y.getDate()-r.maxRange);const w=new Date;h>w&&(h=w),g.set("minDate",y),g.set("maxDate",h)}}),re(`#${i.value}`,u)}),(u,f)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(he,{id:t.unref(o).labelledby,class:"mb-2",for:t.unref(i),label:u.label,required:t.unref(s)},null,8,["id","for","label","required"]),t.createElementVNode("input",t.mergeProps({id:t.unref(i),"aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(a)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:u.placeholder},u.$attrs,{type:"text",onInput:f[0]||(f[0]=(...p)=>t.unref(c)&&t.unref(c)(...p)),onInvalid:f[1]||(f[1]=(...p)=>t.unref(l)&&t.unref(l)(...p))}),null,16,rd),t.createVNode(le,{id:t.unref(o).describedby,class:"mt-1",text:u.help},null,8,["id","text"]),t.createVNode(Ne,{id:t.unref(o).errormessage,class:"mt-0.5",text:t.unref(a)},null,8,["id","text"])]))}}),od=["id","aria-labelledby","aria-describedby","aria-errormessage"],ad=["textContent"],id=["value","disabled","textContent"],Vr=t.defineComponent({inheritAttrs:!1,__name:"Select",props:t.mergeModels(t.mergeDefaults({modelValue:{},options:{},label:{},help:{},placeholder:{}},{...Re,placeholder:"Select an option"}),{modelValue:J,modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,inputID:a,isRequired:i,validate:s,errorState:l,onInvalid:c}=Te(r);return(d,u)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(he,{id:t.unref(o).labelledby,class:"mb-2",for:t.unref(a),label:d.label,required:t.unref(i)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("select",t.mergeProps({id:t.unref(a),"onUpdate:modelValue":u[0]||(u[0]=f=>e.value=f),"aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6 pl-3 pr-10","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200 disabled:opacity-100",t.unref(l)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"]},d.$attrs,{onChange:u[1]||(u[1]=(...f)=>t.unref(s)&&t.unref(s)(...f)),onInvalid:u[2]||(u[2]=(...f)=>t.unref(c)&&t.unref(c)(...f))}),[t.createElementVNode("option",{value:"",disabled:"",selected:"",textContent:t.toDisplayString(d.placeholder)},null,8,ad),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.options,f=>(t.openBlock(),t.createElementBlock("option",{key:f.value,value:f.value,disabled:f.disabled,textContent:t.toDisplayString(f.label)},null,8,id))),128))],16,od),[[t.vModelSelect,e.value]]),t.createVNode(le,{id:t.unref(o).describedby,class:"mt-1",text:d.help},null,8,["id","text"]),t.createVNode(Ne,{id:t.unref(o).errormessage,class:"mt-0.5",text:t.unref(l)},null,8,["id","text"])]))}}),Pr=t.defineComponent({__name:"DateFilter",props:{dateRange:{},sortDir:{}},emits:["sort-dir-changed","date-range-changed"],setup(n,{emit:r}){const e=n,o=t.ref(e.dateRange),a=t.ref(e.sortDir),i=[{label:"Newest-Oldest",value:"desc"},{label:"Oldest-Newest",value:"asc"}],s=r,l=d=>{(d==="asc"||d==="desc")&&s("sort-dir-changed",d)},c=d=>{d&&s("date-range-changed",d)};return(d,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Vr,{modelValue:a.value,"onUpdate:modelValue":[u[0]||(u[0]=f=>a.value=f),l],options:i},null,8,["modelValue"]),t.createVNode(Tn,{modelValue:o.value,"onUpdate:modelValue":[u[1]||(u[1]=f=>o.value=f),c],class:"ml-3"},null,8,["modelValue"])],64))}});function kt(n,r="GET",e={}){const o=t.ref(),a=t.shallowRef(),i=t.ref(!1),s=t.ref(!1),l=t.ref(!1),c=t.ref(!1);let d=0,u;const f=()=>{u!==void 0&&u.abort()},p=(g={},h={})=>{d++;const y=d;u=new AbortController,c.value=!1,s.value=!1,l.value=!0;const w={data:["PATCH","patch","POST","post","PUT","put"].includes(r)?g:{},method:r,params:["GET","get"].includes(r)?g:{},signal:u.signal,url:n};return ft(w,{...e,...h}).then(C=>(o.value=C,a.value=void 0,c.value=!1,C),C=>{throw a.value=C,Fo(C)&&(c.value=!0),C}).finally(()=>{y==d&&(s.value=!0,l.value=!1),i.value=!0})};return e!=null&&e.immediate&&e.immediate===!0&&p(),{result:o,error:a,isFinished:s,isLoading:l,isAborted:c,hasFetched:i,abort:f,execute:p}}function sd(n,r={}){return kt(n,"GET",r)}function ld(n,r={}){return kt(n,"DELETE",r)}function cd(n,r={}){return kt(n,"PATCH",r)}function dd(n,r={}){return kt(n,"POST",r)}function ud(n,r={}){return kt(n,"PUT",r)}const ii="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",fd={CreateIdAttribute:(n=8)=>{let r="";for(let e=0;e<n;e++)r+=ii.charAt(Math.floor(Math.random()*ii.length));return r}};function si(n={}){const r=t.ref(new Map);let e={removeDelay:1e4,email:""};const o=p=>{e={...e,...p}},a=p=>{r.value.delete(p)},i=p=>{const g=fd.CreateIdAttribute();return r.value.set(g,p),(p.persistent===void 0||!p.persistent)&&setTimeout(()=>a(g),e.removeDelay),g},s=p=>i(p),l=(p,g=!1)=>i({message:p,persistent:g,type:"error"}),c=(p,g=!1)=>i({message:p,persistent:g,type:"info"}),d=(p,g=!1)=>i({message:p,persistent:g,type:"success"}),u=(p,g=!1)=>i({message:p,persistent:g,type:"warning"}),f=(p="",g=!1)=>{const h=p||e.email,y=h?`Whoops! Something went wrong, please reach out to
|
|
14
|
+
`}function Yt(){e.calendarContainer.classList.add("hasWeeks");const m=U("div","flatpickr-weekwrapper");m.appendChild(U("span","flatpickr-weekday",e.l10n.weekAbbreviation));const b=U("div","flatpickr-weeks");return m.appendChild(b),{weekWrapper:m,weekNumbers:b}}function lt(m,b=!0){const x=b?m:m-e.currentMonth;x<0&&e._hidePrevMonthArrow===!0||x>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=x,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,ee("onYearChange"),oe()),te(),ee("onMonthChange"),Gn())}function zn(m=!0,b=!0){if(e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,b===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){const{hours:x,minutes:k,seconds:v}=Pr(e.config);p(x,k,v)}e.redraw(),m&&ee("onChange")}function He(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),ee("onClose")}function Gr(){e.config!==void 0&&ee("onDestroy");for(let m=e._handlers.length;m--;)e._handlers[m].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){const m=e.calendarContainer.parentNode;if(m.lastChild&&m.removeChild(m.lastChild),m.parentNode){for(;m.firstChild;)m.parentNode.insertBefore(m.firstChild,m);m.parentNode.removeChild(m)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(m=>{try{delete e[m]}catch{}})}function St(m){return e.config.appendTo&&e.config.appendTo.contains(m)?!0:e.calendarContainer.contains(m)}function Jr(m){if(e.isOpen&&!e.config.inline){const b=_e(m),x=St(b),k=b===e.input||b===e.altInput||e.element.contains(b)||m.path&&m.path.indexOf&&(~m.path.indexOf(e.input)||~m.path.indexOf(e.altInput)),v=m.type==="blur"?k&&m.relatedTarget&&!St(m.relatedTarget):!k&&!x&&!St(m.relatedTarget),N=!e.config.ignoredFocusElements.some($=>$.contains(b));v&&N&&(e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&l(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&(e.clear(!1),e.redraw()))}}function qn(m){if(!m||e.config.minDate&&m<e.config.minDate.getFullYear()||e.config.maxDate&&m>e.config.maxDate.getFullYear())return;const b=m,x=e.currentYear!==b;e.currentYear=b||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),x&&(e.redraw(),ee("onYearChange"),oe())}function ct(m,b=!0){var x;const k=e.parseDate(m,void 0,b);if(e.config.minDate&&k&&ve(k,e.config.minDate,b!==void 0?b:!e.minDateHasTime)<0||e.config.maxDate&&k&&ve(k,e.config.maxDate,b!==void 0?b:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(k===void 0)return!1;const v=!!e.config.enable,N=(x=e.config.enable)!==null&&x!==void 0?x:e.config.disable;for(let $=0,T;$<N.length;$++){if(T=N[$],typeof T=="function"&&T(k))return v;if(T instanceof Date&&k!==void 0&&T.getTime()===k.getTime())return v;if(typeof T=="string"){const I=e.parseDate(T,void 0,!0);return I&&I.getTime()===k.getTime()?v:!v}else if(typeof T=="object"&&k!==void 0&&T.from&&T.to&&k.getTime()>=T.from.getTime()&&k.getTime()<=T.to.getTime())return v}return!v}function Wn(m){return e.daysContainer!==void 0?m.className.indexOf("hidden")===-1&&m.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(m):!1}function Oh(m){m.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&!(m.relatedTarget&&St(m.relatedTarget))&&e.setDate(e._input.value,!0,m.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Ih(m){const b=_e(m),x=e.config.wrap?n.contains(b):b===e._input,k=e.config.allowInput,v=e.isOpen&&(!k||!x),N=e.config.inline&&x&&!k;if(m.keyCode===13&&x){if(k)return e.setDate(e._input.value,!0,b===e.altInput?e.config.altFormat:e.config.dateFormat),b.blur();e.open()}else if(St(b)||v||N){const $=!!e.timeContainer&&e.timeContainer.contains(b);switch(m.keyCode){case 13:$?(m.preventDefault(),l(),Zr()):ri(m);break;case 27:m.preventDefault(),Zr();break;case 8:case 46:x&&!e.config.allowInput&&(m.preventDefault(),e.clear());break;case 37:case 39:if(!$&&!x){if(m.preventDefault(),e.daysContainer!==void 0&&(k===!1||document.activeElement&&Wn(document.activeElement))){const I=m.keyCode===39?1:-1;m.ctrlKey?(m.stopPropagation(),lt(I),F(B(1),0)):F(void 0,I)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:m.preventDefault();const T=m.keyCode===40?1:-1;e.daysContainer&&b.$i!==void 0||b===e.input||b===e.altInput?m.ctrlKey?(m.stopPropagation(),qn(e.currentYear-T),F(B(1),0)):$||F(void 0,T*7):b===e.currentYearElement?qn(e.currentYear-T):e.config.enableTime&&(!$&&e.hourElement&&e.hourElement.focus(),l(m),e._debouncedChange());break;case 9:if($){const I=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(G=>G),j=I.indexOf(b);if(j!==-1){const G=I[j+(m.shiftKey?-1:1)];m.preventDefault(),(G||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(b)&&m.shiftKey&&(m.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&b===e.amPM)switch(m.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],u(),Qe();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],u(),Qe();break}(x||St(b))&&ee("onKeyDown",m)}function Xr(m){if(e.selectedDates.length!==1||m&&(!m.classList.contains("flatpickr-day")||m.classList.contains("flatpickr-disabled")))return;const b=m?m.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),x=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),k=Math.min(b,e.selectedDates[0].getTime()),v=Math.max(b,e.selectedDates[0].getTime());let N=!1,$=0,T=0;for(let I=k;I<v;I+=nd.DAY)ct(new Date(I),!0)||(N=N||I>k&&I<v,I<x&&(!$||I>$)?$=I:I>x&&(!T||I<T)&&(T=I));for(let I=0;I<e.config.showMonths;I++){const j=e.daysContainer.children[I];for(let G=0,Me=j.children.length;G<Me;G++){const pe=j.children[G],We=pe.dateObj.getTime(),Kt=$>0&&We<$||T>0&&We>T;if(Kt){pe.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(Gt=>{pe.classList.remove(Gt)});continue}else if(N&&!Kt)continue;["startRange","inRange","endRange","notAllowed"].forEach(Gt=>{pe.classList.remove(Gt)}),m!==void 0&&(m.classList.add(b<=e.selectedDates[0].getTime()?"startRange":"endRange"),x<b&&We===x?pe.classList.add("startRange"):x>b&&We===x&&pe.classList.add("endRange"),We>=$&&(T===0||We<=T)&&td(We,x,b)&&pe.classList.add("inRange"))}}}function Lh(){e.isOpen&&!e.config.static&&!e.config.inline&&Yn()}function Fh(m,b=e._positionElement){if(e.isMobile===!0){if(m){m.preventDefault();const k=_e(m);k&&k.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),ee("onOpen");return}else if(e._input.disabled||e.config.inline)return;const x=e.isOpen;e.isOpen=!0,x||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),ee("onOpen"),Yn(b)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(m===void 0||!e.timeContainer.contains(m.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)}function Qs(m){return b=>{const x=e.config[`_${m}Date`]=e.parseDate(b,e.config.dateFormat),k=e.config[`_${m==="min"?"max":"min"}Date`];x!==void 0&&(e[m==="min"?"minDateHasTime":"maxDateHasTime"]=x.getHours()>0||x.getMinutes()>0||x.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(v=>ct(v)),!e.selectedDates.length&&m==="min"&&f(x),Qe()),e.daysContainer&&(ni(),x!==void 0?e.currentYearElement[m]=x.getFullYear().toString():e.currentYearElement.removeAttribute(m),e.currentYearElement.disabled=!!k&&x!==void 0&&k.getFullYear()===x.getFullYear())}}function jh(){const m=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],b=Object.assign(Object.assign({},JSON.parse(JSON.stringify(n.dataset||{}))),r),x={};e.config.parseDate=b.parseDate,e.config.formatDate=b.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:N=>{e.config._enable=ai(N)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:N=>{e.config._disable=ai(N)}});const k=b.mode==="time";if(!b.dateFormat&&(b.enableTime||k)){const N=re.defaultConfig.dateFormat||Ct.dateFormat;x.dateFormat=b.noCalendar||k?"H:i"+(b.enableSeconds?":S":""):N+" H:i"+(b.enableSeconds?":S":"")}if(b.altInput&&(b.enableTime||k)&&!b.altFormat){const N=re.defaultConfig.altFormat||Ct.altFormat;x.altFormat=b.noCalendar||k?"h:i"+(b.enableSeconds?":S K":" K"):N+` h:i${b.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:Qs("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:Qs("max")});const v=N=>$=>{e.config[N==="min"?"_minTime":"_maxTime"]=e.parseDate($,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:v("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:v("max")}),b.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,x,b);for(let N=0;N<m.length;N++)e.config[m[N]]=e.config[m[N]]===!0||e.config[m[N]]==="true";Vr.filter(N=>e.config[N]!==void 0).forEach(N=>{e.config[N]=Tr(e.config[N]||[]).map(s)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let N=0;N<e.config.plugins.length;N++){const $=e.config.plugins[N](e)||{};for(const T in $)Vr.indexOf(T)>-1?e.config[T]=Tr($[T]).map(s).concat(e.config[T]):typeof b[T]>"u"&&(e.config[T]=$[T])}b.altInputClass||(e.config.altInputClass=ei().className+" "+e.config.altInputClass),ee("onParseConfig")}function ei(){return e.config.wrap?n.querySelector("[data-input]"):n}function ti(){typeof e.config.locale!="object"&&typeof re.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},re.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?re.l10ns[e.config.locale]:void 0),Br.K=`(${e.l10n.amPM[0]}|${e.l10n.amPM[1]}|${e.l10n.amPM[0].toLowerCase()}|${e.l10n.amPM[1].toLowerCase()})`,Object.assign(Object.assign({},r),JSON.parse(JSON.stringify(n.dataset||{}))).time_24hr===void 0&&re.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=ls(e),e.parseDate=Mr({config:e.config,l10n:e.l10n})}function Yn(m){if(typeof e.config.position=="function")return void e.config.position(e,m);if(e.calendarContainer===void 0)return;ee("onPreCalendarPosition");const b=m||e._positionElement,x=Array.prototype.reduce.call(e.calendarContainer.children,(Jt,to)=>Jt+to.offsetHeight,0),k=e.calendarContainer.offsetWidth,v=e.config.position.split(" "),N=v[0],$=v.length>1?v[1]:null,T=b.getBoundingClientRect(),I=window.innerHeight-T.bottom,j=N==="above"||N!=="below"&&I<x&&T.top>x,G=window.pageYOffset+T.top+(j?-x-2:b.offsetHeight+2);if(ge(e.calendarContainer,"arrowTop",!j),ge(e.calendarContainer,"arrowBottom",j),e.config.inline)return;let Me=window.pageXOffset+T.left,pe=!1,Jn=!1;$==="center"?(Me-=(k-T.width)/2,pe=!0):$==="right"&&(Me-=k-T.width,Jn=!0),ge(e.calendarContainer,"arrowLeft",!pe&&!Jn),ge(e.calendarContainer,"arrowCenter",pe),ge(e.calendarContainer,"arrowRight",Jn);const We=window.document.body.offsetWidth-(window.pageXOffset+T.right),Kt=Me+k>window.document.body.offsetWidth,Gt=We+k>window.document.body.offsetWidth;if(ge(e.calendarContainer,"rightMost",Kt),!e.config.static)if(e.calendarContainer.style.top=`${G}px`,!Kt)e.calendarContainer.style.left=`${Me}px`,e.calendarContainer.style.right="auto";else if(!Gt)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${We}px`;else{const Jt=Hh();if(Jt===void 0)return;const to=window.document.body.offsetWidth,Qh=Math.max(0,to/2-k/2),eg=".flatpickr-calendar.centerMost:before",tg=".flatpickr-calendar.centerMost:after",ng=Jt.cssRules.length,rg=`{left:${T.left}px;right:auto;}`;ge(e.calendarContainer,"rightMost",!1),ge(e.calendarContainer,"centerMost",!0),Jt.insertRule(`${eg},${tg}${rg}`,ng),e.calendarContainer.style.left=`${Qh}px`,e.calendarContainer.style.right="auto"}}function Hh(){let m=null;for(let b=0;b<document.styleSheets.length;b++){const x=document.styleSheets[b];try{x.cssRules}catch{continue}m=x;break}return m??Uh()}function Uh(){const m=document.createElement("style");return document.head.appendChild(m),m.sheet}function ni(){e.config.noCalendar||e.isMobile||(oe(),Gn(),te())}function Zr(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function ri(m){m.preventDefault(),m.stopPropagation();const b=$=>$.classList&&$.classList.contains("flatpickr-day")&&!$.classList.contains("flatpickr-disabled")&&!$.classList.contains("notAllowed"),x=is(_e(m),b);if(x===void 0)return;const k=x,v=e.latestSelectedDateObj=new Date(k.dateObj.getTime()),N=(v.getMonth()<e.currentMonth||v.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=k,e.config.mode==="single")e.selectedDates=[v];else if(e.config.mode==="multiple"){const $=eo(v);$?e.selectedDates.splice(parseInt($),1):e.selectedDates.push(v)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=v,e.selectedDates.push(v),ve(v,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(($,T)=>$.getTime()-T.getTime()));if(u(),N){const $=e.currentYear!==v.getFullYear();e.currentYear=v.getFullYear(),e.currentMonth=v.getMonth(),$&&(ee("onYearChange"),oe()),ee("onMonthChange")}if(Gn(),te(),Qe(),!N&&e.config.mode!=="range"&&e.config.showMonths===1?L(k):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){const $=e.config.mode==="single"&&!e.config.enableTime,T=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;($||T)&&Zr()}y()}const Kn={locale:[ti,K],showMonths:[Wt,i,Be],minDate:[C],maxDate:[C],clickOpens:[()=>{e.config.clickOpens===!0?(h(e._input,"focus",e.open),h(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function zh(m,b){if(m!==null&&typeof m=="object"){Object.assign(e.config,m);for(const x in m)Kn[x]!==void 0&&Kn[x].forEach(k=>k())}else e.config[m]=b,Kn[m]!==void 0?Kn[m].forEach(x=>x()):Vr.indexOf(m)>-1&&(e.config[m]=Tr(b));e.redraw(),Qe(!0)}function oi(m,b){let x=[];if(m instanceof Array)x=m.map(k=>e.parseDate(k,b));else if(m instanceof Date||typeof m=="number")x=[e.parseDate(m,b)];else if(typeof m=="string")switch(e.config.mode){case"single":case"time":x=[e.parseDate(m,b)];break;case"multiple":x=m.split(e.config.conjunction).map(k=>e.parseDate(k,b));break;case"range":x=m.split(e.l10n.rangeSeparator).map(k=>e.parseDate(k,b));break}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(m)}`));e.selectedDates=e.config.allowInvalidPreload?x:x.filter(k=>k instanceof Date&&ct(k,!1)),e.config.mode==="range"&&e.selectedDates.sort((k,v)=>k.getTime()-v.getTime())}function qh(m,b=!1,x=e.config.dateFormat){if(m!==0&&!m||m instanceof Array&&m.length===0)return e.clear(b);oi(m,x),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),C(void 0,b),f(),e.selectedDates.length===0&&e.clear(!1),Qe(b),b&&ee("onChange")}function ai(m){return m.slice().map(b=>typeof b=="string"||typeof b=="number"||b instanceof Date?e.parseDate(b,void 0,!0):b&&typeof b=="object"&&b.from&&b.to?{from:e.parseDate(b.from,void 0),to:e.parseDate(b.to,void 0)}:b).filter(b=>b)}function Wh(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const m=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);m&&oi(m,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function Yh(){if(e.input=ei(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=U(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),e._positionElement=e.config.positionElement||e._input}function Kh(){const m=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=U("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=m,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=m==="datetime-local"?"Y-m-d\\TH:i:S":m==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}h(e.mobileInput,"change",b=>{e.setDate(_e(b).value,!1,e.mobileFormatStr),ee("onChange"),ee("onClose")})}function Gh(m){if(e.isOpen===!0)return e.close();e.open(m)}function ee(m,b){if(e.config===void 0)return;const x=e.config[m];if(x!==void 0&&x.length>0)for(let k=0;x[k]&&k<x.length;k++)x[k](e.selectedDates,e.input.value,e,b);m==="onChange"&&(e.input.dispatchEvent(Qr("change")),e.input.dispatchEvent(Qr("input")))}function Qr(m){const b=document.createEvent("Event");return b.initEvent(m,!0,!0),b}function eo(m){for(let b=0;b<e.selectedDates.length;b++)if(ve(e.selectedDates[b],m)===0)return""+b;return!1}function Jh(m){return e.config.mode!=="range"||e.selectedDates.length<2?!1:ve(m,e.selectedDates[0])>=0&&ve(m,e.selectedDates[1])<=0}function Gn(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach((m,b)=>{const x=new Date(e.currentYear,e.currentMonth,1);x.setMonth(e.currentMonth+b),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[b].textContent=$n(x.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=x.getMonth().toString(),m.value=x.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function si(m){return e.selectedDates.map(b=>e.formatDate(b,m)).filter((b,x,k)=>e.config.mode!=="range"||e.config.enableTime||k.indexOf(b)===x).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Qe(m=!0){e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=si(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=si(e.config.altFormat)),m!==!1&&ee("onValueUpdate")}function Xh(m){const b=_e(m),x=e.prevMonthNav.contains(b),k=e.nextMonthNav.contains(b);x||k?lt(x?-1:1):e.yearElements.indexOf(b)>=0?b.select():b.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):b.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Zh(m){m.preventDefault();const b=m.type==="keydown",x=_e(m),k=x;e.amPM!==void 0&&x===e.amPM&&(e.amPM.textContent=e.l10n.amPM[$e(e.amPM.textContent===e.l10n.amPM[0])]);const v=parseFloat(k.getAttribute("min")),N=parseFloat(k.getAttribute("max")),$=parseFloat(k.getAttribute("step")),T=parseInt(k.value,10),I=m.delta||(b?m.which===38?1:-1:0);let j=T+$*I;if(typeof k.value<"u"&&k.value.length===2){const G=k===e.hourElement,Me=k===e.minuteElement;j<v?(j=N+j+$e(!G)+($e(G)&&$e(!e.amPM)),Me&&S(void 0,-1,e.hourElement)):j>N&&(j=k===e.hourElement?j-N-$e(!e.amPM):v,Me&&S(void 0,1,e.hourElement)),e.amPM&&G&&($===1?j+T===23:Math.abs(j-T)>$)&&(e.amPM.textContent=e.l10n.amPM[$e(e.amPM.textContent===e.l10n.amPM[0])]),k.value=Ce(j)}}return a(),e}function Et(n,r){const e=Array.prototype.slice.call(n).filter(a=>a instanceof HTMLElement),o=[];for(let a=0;a<e.length;a++){const s=e[a];try{if(s.getAttribute("data-fp-omit")!==null)continue;s._flatpickr!==void 0&&(s._flatpickr.destroy(),s._flatpickr=void 0),s._flatpickr=od(s,r||{}),o.push(s._flatpickr)}catch(i){console.error(i)}}return o.length===1?o[0]:o}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return Et(this,n)},HTMLElement.prototype.flatpickr=function(n){return Et([this],n)});var re=function(n,r){return typeof n=="string"?Et(window.document.querySelectorAll(n),r):n instanceof Node?Et([n],r):Et(n,r)};re.defaultConfig={},re.l10ns={en:Object.assign({},Ft),default:Object.assign({},Ft)},re.localize=n=>{re.l10ns.default=Object.assign(Object.assign({},re.l10ns.default),n)},re.setDefaults=n=>{re.defaultConfig=Object.assign(Object.assign({},re.defaultConfig),n)},re.parseDate=Mr({}),re.formatDate=ls({}),re.compareDates=ve,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Et(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))},typeof window<"u"&&(window.flatpickr=re);const ad=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder"],Bn=t.defineComponent({inheritAttrs:!1,__name:"DateRangePicker",props:t.mergeModels(t.mergeDefaults({modelValue:{},maxDate:{},maxRange:{},startDate:{},label:{},help:{},placeholder:{}},{...Ae,maxDate:()=>new Date,maxRange:0,placeholder:"mm-dd-yyyy range",startDate:0}),{modelValue:{...J,default:{maxDate:0,minDate:0}},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",{...J,default:{maxDate:0,minDate:0}}),{aria:o,errorState:a,inputID:s,isRequired:i,onInvalid:l,validate:c}=Ve(r),d=u=>{e.value=u};return t.onMounted(()=>{const u={allowInput:!0,dateFormat:"m-d-Y",mode:"range",maxDate:r.maxDate,minDate:r.startDate,onClose:f=>{f.length===2?d({minDate:f[0].setUTCHours(0,0,0,0)/1e3,maxDate:Math.floor(f[1].setUTCHours(23,59,59,999)/1e3)}):f.length===0&&d({minDate:0,maxDate:0})}};e.value&&e.value.minDate!=0&&e.value.maxDate!=0&&(u.defaultDate=[e.value.minDate*1e3,e.value.maxDate*1e3]),r.maxRange&&(u.onChange=(f,p,g)=>{if(f.length===1){var h=new Date(f[0].getTime()),y=new Date(f[0].getTime());h.setDate(h.getDate()+r.maxRange),y.setDate(y.getDate()-r.maxRange);const w=new Date;h>w&&(h=w),g.set("minDate",y),g.set("maxDate",h)}}),re(`#${s.value}`,u)}),(u,f)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(he,{id:t.unref(o).labelledby,class:"mb-2",for:t.unref(s),label:u.label,required:t.unref(i)},null,8,["id","for","label","required"]),t.createElementVNode("input",t.mergeProps({id:t.unref(s),"aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(a)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:u.placeholder},u.$attrs,{type:"text",onInput:f[0]||(f[0]=(...p)=>t.unref(c)&&t.unref(c)(...p)),onInvalid:f[1]||(f[1]=(...p)=>t.unref(l)&&t.unref(l)(...p))}),null,16,ad),t.createVNode(ie,{id:t.unref(o).describedby,class:"mt-1",text:u.help},null,8,["id","text"]),t.createVNode(Se,{id:t.unref(o).errormessage,class:"mt-0.5",text:t.unref(a)},null,8,["id","text"])]))}}),sd=["id","aria-labelledby","aria-describedby","aria-errormessage"],id=["textContent"],ld=["value","disabled","textContent"],Mn=t.defineComponent({inheritAttrs:!1,__name:"Select",props:t.mergeModels(t.mergeDefaults({modelValue:{},options:{},label:{},help:{},placeholder:{}},{...Ae,placeholder:"Select an option"}),{modelValue:J,modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,inputID:a,isRequired:s,validate:i,errorState:l,onInvalid:c}=Ve(r);return(d,u)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(he,{id:t.unref(o).labelledby,class:"mb-2",for:t.unref(a),label:d.label,required:t.unref(s)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("select",t.mergeProps({id:t.unref(a),"onUpdate:modelValue":u[0]||(u[0]=f=>e.value=f),"aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6 pl-3 pr-10","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200 disabled:opacity-100",t.unref(l)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"]},d.$attrs,{onChange:u[1]||(u[1]=(...f)=>t.unref(i)&&t.unref(i)(...f)),onInvalid:u[2]||(u[2]=(...f)=>t.unref(c)&&t.unref(c)(...f))}),[t.createElementVNode("option",{value:"",disabled:"",selected:"",textContent:t.toDisplayString(d.placeholder)},null,8,id),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.options,f=>(t.openBlock(),t.createElementBlock("option",{key:f.value,value:f.value,disabled:f.disabled,textContent:t.toDisplayString(f.label)},null,8,ld))),128))],16,sd),[[t.vModelSelect,e.value]]),t.createVNode(ie,{id:t.unref(o).describedby,class:"mt-1",text:d.help},null,8,["id","text"]),t.createVNode(Se,{id:t.unref(o).errormessage,class:"mt-0.5",text:t.unref(l)},null,8,["id","text"])]))}}),Ar=t.defineComponent({__name:"DateFilter",props:{dateRange:{},sortDir:{}},emits:["sort-dir-changed","date-range-changed"],setup(n,{emit:r}){const e=n,o=t.ref(e.dateRange),a=t.ref(e.sortDir),s=[{label:"Newest-Oldest",value:"desc"},{label:"Oldest-Newest",value:"asc"}],i=r,l=d=>{(d==="asc"||d==="desc")&&i("sort-dir-changed",d)},c=d=>{d&&i("date-range-changed",d)};return(d,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Mn,{modelValue:a.value,"onUpdate:modelValue":[u[0]||(u[0]=f=>a.value=f),l],options:s},null,8,["modelValue"]),t.createVNode(Bn,{modelValue:o.value,"onUpdate:modelValue":[u[1]||(u[1]=f=>o.value=f),c],class:"ml-3"},null,8,["modelValue"])],64))}});function kt(n,r="GET",e={}){const o=t.ref(),a=t.shallowRef(),s=t.ref(!1),i=t.ref(!1),l=t.ref(!1),c=t.ref(!1);let d=0,u;const f=()=>{u!==void 0&&u.abort()},p=(g={},h={})=>{d++;const y=d;u=new AbortController,c.value=!1,i.value=!1,l.value=!0;const w={data:["PATCH","patch","POST","post","PUT","put"].includes(r)?g:{},method:r,params:["GET","get"].includes(r)?g:{},signal:u.signal,url:n};return ft(w,{...e,...h}).then(C=>(o.value=C,a.value=void 0,c.value=!1,C),C=>{throw a.value=C,zo(C)&&(c.value=!0),C}).finally(()=>{y==d&&(i.value=!0,l.value=!1),s.value=!0})};return e!=null&&e.immediate&&e.immediate===!0&&p(),{result:o,error:a,isFinished:i,isLoading:l,isAborted:c,hasFetched:s,abort:f,execute:p}}function cd(n,r={}){return kt(n,"GET",r)}function dd(n,r={}){return kt(n,"DELETE",r)}function ud(n,r={}){return kt(n,"PATCH",r)}function fd(n,r={}){return kt(n,"POST",r)}function pd(n,r={}){return kt(n,"PUT",r)}const cs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",md={CreateIdAttribute:(n=8)=>{let r="";for(let e=0;e<n;e++)r+=cs.charAt(Math.floor(Math.random()*cs.length));return r}};function ds(n={}){const r=t.ref(new Map);let e={removeDelay:1e4,email:""};const o=p=>{e={...e,...p}},a=p=>{r.value.delete(p)},s=p=>{const g=md.CreateIdAttribute();return r.value.set(g,p),(p.persistent===void 0||!p.persistent)&&setTimeout(()=>a(g),e.removeDelay),g},i=p=>s(p),l=(p,g=!1)=>s({message:p,persistent:g,type:"error"}),c=(p,g=!1)=>s({message:p,persistent:g,type:"info"}),d=(p,g=!1)=>s({message:p,persistent:g,type:"success"}),u=(p,g=!1)=>s({message:p,persistent:g,type:"warning"}),f=(p="",g=!1)=>{const h=p||e.email,y=h?`Whoops! Something went wrong, please reach out to
|
|
15
15
|
<a class="underline text-xy-blue" href="mailto:${h}">${h}</a>
|
|
16
|
-
if the issue persists.`:"Whoops! Something went wrong.";return i({message:y,persistent:g,type:"error"})};return o(n||{}),{flasher:{add:i,remove:a,flash:s,error:l,warning:u,info:c,success:d,genericError:f},flashes:r,configure:o}}const pd=n=>{if(window.Flashes)for(const r of window.Flashes){if(typeof r.type>"u"){const e=r.message.split(": ");n.add({type:e[0],message:e[1]});continue}n.add(r)}};let Ar;function st(){return Ar===void 0&&(Ar=si()),Ar}const Rr={error(n,r){st().flasher.error(n,r)},info(n,r){st().flasher.info(n,r)},success(n,r){st().flasher.success(n,r)},warning(n,r){st().flasher.warning(n,r)},genericError(n,r){st().flasher.genericError(n,r)}},md=(n,r)=>{var d;const e=t.ref(n),o={initial:((d=e==null?void 0:e.value[0])==null?void 0:d.value)||"",paramName:(r==null?void 0:r.paramName)||"tab"},a=t.ref(o.initial),i=u=>!!e.value.find(f=>f.value===u),s=u=>a.value===u,c=new URLSearchParams(window.location.search).get(o.paramName);return c&&i(c)&&(a.value=c),t.watch(a,u=>{const f=new URLSearchParams(window.location.search);f.set(o.paramName,u.toString());const p=f.toString()!==""?`?${f.toString()}`:"";window.history.replaceState({tab:u},document.title,`${window.location.pathname}${p}`)}),{activeTab:a,isActiveTab:s,tabs:e}},hd=n=>{const r=t.ref(n);return t.watch(r,e=>{const o=new URLSearchParams(window.location.search);for(const i in e){const s=e[i];if(s==null||s==null){o.delete(i);continue}if(Array.isArray(s)){o.delete(i),s.forEach(l=>{o.append(i,l.toString())});continue}!o.has(i)&&!s||o.set(i,s.toString())}const a=o.toString()!==""?`?${o.toString()}`:"";window.history.replaceState(t.toRaw(e),document.title,`${window.location.pathname}${a}`)},{deep:!0}),r},gd={class:"px-4 flex items-center justify-between sm:px-0"},bd={class:"w-0 flex-1 flex"},yd={class:"hidden md:flex"},wd=["onClick","textContent"],xd={class:"w-0 flex-1 flex justify-end"},$n=t.defineComponent({__name:"Paginator",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const r=t.useModel(n,"modelValue"),e=a=>{r.value={...r.value,page:a}},o=t.computed(()=>{const a=[];if(r.value.totalPages<=4){for(let s=0;s<r.value.totalPages;s++)a.push(s+1);return a}if(r.value.totalPages-r.value.page>=3){for(let s=0;s<4;s++)a.push(r.value.page+s);return a}for(let s=0;s<4;s++)a.unshift(r.value.totalPages-s);return a});return(a,i)=>(t.openBlock(),t.createElementBlock("div",gd,[t.createElementVNode("div",bd,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pr-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",r.value.page==1?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:i[0]||(i[0]=t.withModifiers(s=>e(r.value.page-1),["prevent"]))},i[2]||(i[2]=[t.createElementVNode("svg",{class:"mr-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1),t.createTextVNode(" Previous ")]),2)]),t.createElementVNode("div",yd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,s=>(t.openBlock(),t.createElementBlock("a",{key:s,href:"#",class:t.normalizeClass(["-mt-px border-t-2 pt-4 px-4 inline-flex items-center text-sm leading-5 font-medium",r.value.page===s?"border-blue-500 text-blue-600 focus:outline-none focus:text-blue-800 focus:border-blue-700":"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400"]),onClick:t.withModifiers(l=>e(s),["prevent"]),textContent:t.toDisplayString(s)},null,10,wd))),128))]),t.createElementVNode("div",xd,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pl-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",r.value.page>=r.value.totalPages?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:i[1]||(i[1]=t.withModifiers(s=>e(r.value.page+1),["prevent"]))},i[3]||(i[3]=[t.createTextVNode(" Next "),t.createElementVNode("svg",{class:"ml-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),2)])]))}}),Cd={key:0,class:"flex"},li=t.defineComponent({__name:"DetailList",props:{borderless:{type:Boolean,default:!1},defaultSort:{default:"created_at"},defaultSortDir:{default:"desc"},disableDate:{type:Boolean,default:!1},disableNavigation:{type:Boolean,default:!1},perPage:{default:10},url:{}},setup(n,{expose:r}){const e=n,o=t.ref({minDate:0,maxDate:0}),a=t.ref([]),i=t.ref({page:1,perPage:e.perPage,totalItems:0,totalPages:0}),s=t.ref(e.defaultSort),l=t.ref(e.defaultSortDir),c=()=>{const h={maxDate:o.value.maxDate,minDate:o.value.minDate,page:i.value.page,perPage:i.value.perPage,q:"",sort:s.value,sortDir:l.value};cr.get(e.url,{},h).then(y=>{i.value={page:y.data.page,perPage:y.data.perPage,totalItems:y.data.totalItems,totalPages:y.data.totalPages},a.value=y.data.items},()=>{Rr.genericError()})},d=t.computed(()=>!!a.value.length),u=t.computed(()=>!e.disableDate),f=t.computed(()=>!e.disableNavigation&&d),g={refresh:c,reset:()=>{i.value.page=1,c()}};return t.watch([l,o],()=>{c()}),r(g),c(),(h,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"mt-4 space-y-2":u.value})},[h.disableDate?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Cd,[t.createVNode(Pr,{"date-range":o.value,"sort-dir":l.value,onSortDirChanged:y[0]||(y[0]=w=>l.value=w),onDateRangeChanged:y[1]||(y[1]=w=>o.value=w)},null,8,["date-range","sort-dir"])])),d.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["overflow-hidden",{"shadow sm:rounded-md border":!h.borderless}])},[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(w,C)=>(t.openBlock(),t.createElementBlock("li",{key:C,class:t.normalizeClass({"border-t border-gray-200":C>0})},[t.renderSlot(h.$slots,"default",{item:w})],2))),128))])],2)):t.renderSlot(h.$slots,"empty",{key:2},()=>[y[4]||(y[4]=t.createTextVNode(" No items were found! "))]),f.value?(t.openBlock(),t.createBlock($n,{key:3,modelValue:i.value,"onUpdate:modelValue":[y[2]||(y[2]=w=>i.value=w),y[3]||(y[3]=w=>c())]},null,8,["modelValue"])):t.createCommentVNode("",!0)],2))}}),Ed=["href"],ci=t.defineComponent({__name:"DownloadCell",props:{propsData:{},attribute:{}},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("a",{href:r.propsData[r.attribute]},[t.createVNode(t.unref(yc),{class:"h-6 w-6 group-hover:text-gray-500 transition"})],8,Ed))}}),kd={class:"fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]"},Dd={class:"rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden"},Sd={class:"p-4"},Nd={class:"flex items-center"},_d={class:"w-0 flex-1 flex justify-between"},vd=["innerHTML"],Td={class:"ml-4 shrink-0 flex"},$d=["onClick"],Bn=t.defineComponent({__name:"Flash",setup(n){const{flasher:r,flashes:e}=st(),o=a=>{switch(a){case"warning":return"border-orange-500";case"error":return"border-red-500";case"info":return"border-blue-500";case"success":return"border-green-500"}};return t.onMounted(()=>{pd(r)}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(fr),null,{default:t.withCtx(()=>[t.createElementVNode("div",kd,[t.createVNode(t.TransitionGroup,{tag:"div",class:"max-w-sm space-y-2 w-full","enter-active-class":"ease-out duration-300","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),([s,l])=>(t.openBlock(),t.createElementBlock("div",{key:l.message,class:t.normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform z-10",[o(l.type)]])},[t.createElementVNode("div",Dd,[t.createElementVNode("div",Sd,[t.createElementVNode("div",Nd,[t.createElementVNode("div",_d,[t.createElementVNode("p",{class:"w-0 flex-1 text-sm leading-5 font-medium text-gray-900",innerHTML:l.message},null,8,vd)]),t.createElementVNode("div",Td,[t.createElementVNode("button",{class:"inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",onClick:c=>t.unref(r).remove(s)},i[0]||(i[0]=[t.createElementVNode("svg",{class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,$d)])])])])],2))),128))]),_:1})])]),_:1}))}});function Bd(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function Md(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h7"})])}function Vd(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})])}function di(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"})])}function jt(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})])}const Pd={class:"flex"},Ad={class:"flex-shrink-0"},Rd={class:"ml-2.5"},Od={key:0,role:"list",class:"list-disc space-y-1 pl-5"},Id={key:1},Ld={key:1,class:"mt-4"},Fd={class:"flex flex-col gap-y-1.5 -mx-2 sm:flex-row sm:gap-x-3 sm:items-center"},jd={key:0},Hd=["href","role"],Ud={key:1},zd=["href","role"],qd={key:0,class:"ml-auto pl-3"},Wd={class:"-mx-1.5 -my-1.5"},ui=t.defineComponent({__name:"InlineAlert",props:{btnLink:{default:""},btnText:{default:""},content:{},dismissable:{type:Boolean,default:!1},secondaryBtnLink:{default:""},secondaryBtnText:{default:""},title:{default:""},kind:{}},emits:["close","click","click:secondary"],setup(n,{emit:r}){const e=n,o=r,a=t.ref(!0),i=()=>{a.value=!1,o("close",!0)},s=t.computed(()=>{const c={bgColor:"",btnAction:"",btnClose:"",contentColor:"",iconColor:""};switch(e.kind){case"alert":c.bgColor="bg-red-50",c.btnAction="bg-red-50 text-red-900 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50",c.btnClose="bg-red-50 text-red-600 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50",c.contentColor="text-red-800",c.iconColor="text-red-400";break;case"info":c.bgColor="bg-blue-50",c.btnAction="bg-blue-50 text-blue-900 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50",c.btnClose="bg-blue-50 text-blue-600 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50",c.contentColor="text-blue-800",c.iconColor="text-blue-400";break;case"success":c.bgColor="bg-emerald-50",c.btnAction="bg-emerald-50 text-emerald-900 hover:bg-emerald-100 focus:ring-emerald-600 focus:ring-offset-emerald-50",c.btnClose="bg-emerald-50 text-emerald-600 hover:bg-emerald-100 focus:ring-emerald-600 focus:ring-offset-emerald-50",c.contentColor="text-emerald-800",c.iconColor="text-emerald-400";break;case"warn":c.bgColor="bg-amber-50",c.btnAction="bg-amber-50 text-amber-900 hover:bg-amber-100 focus:ring-amber-600 focus:ring-offset-amber-50",c.btnClose="bg-amber-50 text-amber-600 hover:bg-amber-100 focus:ring-amber-600 focus:ring-offset-amber-50",c.contentColor="text-amber-800",c.iconColor="text-amber-400";break}return c}),l=t.computed(()=>{let c=null;switch(e.kind){case"alert":c=Cc;break;case"info":c=xc;break;case"success":c=_a;break;case"warn":c=wc;break}return c});return(c,d)=>a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["rounded-xy p-4",s.value.bgColor])},[t.createElementVNode("div",Pd,[t.createElementVNode("div",Ad,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value),{class:t.normalizeClass(["h-5 w-5",s.value.iconColor]),"aria-hidden":"true"},null,8,["class"]))]),t.createElementVNode("div",Rd,[c.title?(t.openBlock(),t.createElementBlock("h3",{key:0,class:t.normalizeClass(["text-sm leading-snug font-semibold mb-1.5",s.value.contentColor])},t.toDisplayString(c.title),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["text-sm",s.value.contentColor])},[Array.isArray(c.content)?(t.openBlock(),t.createElementBlock("ul",Od,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.content,(u,f)=>(t.openBlock(),t.createElementBlock("li",{key:f},t.toDisplayString(u),1))),128))])):(t.openBlock(),t.createElementBlock("p",Id,t.toDisplayString(c.content),1))],2),c.btnText||c.secondaryBtnText?(t.openBlock(),t.createElementBlock("div",Ld,[t.createElementVNode("div",Fd,[c.btnText?(t.openBlock(),t.createElementBlock("div",jd,[t.createElementVNode("a",{class:t.normalizeClass(["inline-flex rounded-3xl px-2.5 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2",s.value.btnAction]),href:c.btnLink,role:c.btnLink?"link":"button",onClick:d[0]||(d[0]=u=>c.$emit("click",u))},t.toDisplayString(c.btnText),11,Hd)])):t.createCommentVNode("",!0),c.secondaryBtnText?(t.openBlock(),t.createElementBlock("div",Ud,[t.createElementVNode("a",{class:t.normalizeClass(["inline-flex rounded-3xl px-2.5 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2",s.value.btnAction]),href:c.secondaryBtnLink,role:c.secondaryBtnLink?"link":"button",onClick:d[1]||(d[1]=u=>c.$emit("click:secondary",u))},t.toDisplayString(c.secondaryBtnText),11,zd)])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]),c.dismissable?(t.openBlock(),t.createElementBlock("div",qd,[t.createElementVNode("div",Wd,[t.createElementVNode("button",{class:t.normalizeClass(["inline-flex rounded-md p-1.5 focus:outline-none focus:ring-2 focus:ring-offset-2",s.value.btnClose]),type:"button",onClick:i},[d[2]||(d[2]=t.createElementVNode("span",{class:"sr-only"},"close",-1)),t.createVNode(t.unref(jt),{class:"h-4 w-4"})],2)])])):t.createCommentVNode("",!0)])],2)):t.createCommentVNode("",!0)}}),Yd={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Kd={class:"block absolute top-0 right-0 pt-4 pr-4 sm:pt-6 sm:pr-8"},Gd={class:"bg-white px-4 pt-5 pb-4 sm:p-8 sm:pb-6"},Jd={class:"mt-3 sm:mt-0 sm:text-left"},Xd={class:"mt-2"},Zd={key:0,class:"bg-gray-50 px-4 py-3 sm:py-4 sm:px-8 sm:flex sm:flex-row-reverse"},Qd=["disabled","textContent"],fi=t.defineComponent({__name:"Modal",props:t.mergeModels({destructive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},wide:{type:Boolean,default:!1},submitText:{default:""},title:{default:""}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:t.mergeModels(["close","submit"],["update:modelValue"]),setup(n,{emit:r}){const e=t.useModel(n,"modelValue"),o=r,a=()=>{o("submit")};return t.watch(e,i=>{i||o("close")}),(i,s)=>(t.openBlock(),t.createBlock(t.unref(At),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(mn),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:e.value,onClose:s[3]||(s[3]=l=>e.value=!1)},{default:t.withCtx(()=>[t.createElementVNode("div",Yd,[t.createVNode(t.unref(Ye),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(hn),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),s[5]||(s[5]=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1)),t.createVNode(t.unref(Ye),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["inline-block align-bottom bg-white rounded-xy text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:rounded-xy-lg w-full",i.wide?"sm:max-w-6xl":"sm:max-w-2xl"])},[t.createElementVNode("div",Kd,[t.createElementVNode("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",onClick:s[0]||(s[0]=l=>e.value=!1)},[s[4]||(s[4]=t.createElementVNode("span",{class:"sr-only"},"Close",-1)),t.createVNode(t.unref(jt),{class:"h-6 w-6","aria-hidden":"true"})])]),t.createElementVNode("div",Gd,[t.createElementVNode("div",Jd,[t.createVNode(t.unref(hr),{as:"h3",class:"text-center text-lg leading-6 font-medium text-gray-900"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.title),1)]),_:1}),t.createElementVNode("div",Xd,[t.renderSlot(i.$slots,"default")])])]),i.submitText?(t.openBlock(),t.createElementBlock("div",Zd,[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["xy-btn w-full sm:ml-3 sm:w-auto sm:text-sm",[i.destructive?"xy-btn-red":"xy-btn"]]),disabled:i.disabled,onClick:s[1]||(s[1]=l=>a()),textContent:t.toDisplayString(i.submitText)},null,10,Qd),t.createElementVNode("button",{type:"button",class:"xy-btn-neutral mt-3 w-full sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:s[2]||(s[2]=l=>e.value=!1)}," Cancel ")])):t.createCommentVNode("",!0),t.renderSlot(i.$slots,"buttons")],2)]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"]))}}),eu={class:"aspect-square overflow-hidden"},tu={class:"flex justify-center relative"},nu={class:"sr-only"},Or=t.defineComponent({__name:"XYSpinner",setup(n){const r=t.useAttrs();return(e,o)=>{var a,i;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass((a=t.unref(r))!=null&&a.class?(i=t.unref(r))==null?void 0:i.class:"h-20 w-20"),role:"status"},[t.createElementVNode("div",eu,[t.createElementVNode("div",tu,[t.createElementVNode("p",nu,[t.renderSlot(e.$slots,"default",{},()=>[o[0]||(o[0]=t.createTextVNode("loading"))])]),o[1]||(o[1]=t.createStaticVNode('<div class="animate-spin-gear drop-shadow-sm"><svg class="h-full w-full text-xy-green-300" viewBox="0 0 129 129" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><polygon id="path-1" points="0.000248076923 0.48676924 128.472837 0.48676924 128.472837 128.800648 0.000248076923 128.800648"></polygon></defs><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-6-Copy-3"><g id="Group-3"><mask id="mask-2" fill="white"><use xlink:href="#path-1"></use></mask><g id="Clip-2"></g><path id="Fill-1" d="M86.3955173,100.279324 C86.3955173,100.279324 79.4778923,106.213874 64.2360462,106.755809 C48.9954404,106.213874 42.0778154,100.279324 42.0778154,100.279324 C11.8756904,81.4963011 25.2309115,49.088357 25.2309115,49.088357 C36.5680269,24.1350542 59.1839596,22.5554236 63.8105942,22.4983139 L63.8105942,22.5043894 C63.8105942,22.5043894 63.9681231,22.4983139 64.2360462,22.4958837 C64.5052096,22.4983139 64.6627385,22.5043894 64.6627385,22.5043894 L64.6627385,22.4983139 C69.2881327,22.5554236 91.9053058,24.1350542 103.241181,49.088357 C103.241181,49.088357 116.596402,81.4963011 86.3955173,100.279324 L86.3955173,100.279324 Z M128.473085,68.8191581 L128.473085,60.4677727 L117.036738,58.80187 L115.10794,49.3726905 L124.970238,43.4186983 L121.675777,35.7307578 L110.49619,38.6214817 L106.161046,32.1486416 L113.220075,23.080347 L107.361738,17.0716753 L97.9645846,23.7437918 L89.14545,17.842049 L91.8693346,6.72144964 L84.04995,3.59378109 L78.2114596,13.4628269 L69.5907865,11.8127205 L67.908825,0.48676924 L64.6627385,0.48676924 L63.8105942,0.48676924 L60.5645077,0.48676924 L58.8813058,11.8127205 L50.2618731,13.4628269 L44.4233827,3.59378109 L36.6039981,6.72144964 L39.3278827,17.842049 L30.5087481,23.7437918 L21.1103538,17.0716753 L15.2520173,23.080347 L22.3122865,32.1486416 L17.9771423,38.6214817 L6.79755577,35.7307578 L3.50185385,43.4186983 L13.3641519,49.3726905 L11.4365942,58.80187 L0.000248076923,60.4677727 L0.000248076923,68.8191581 L11.4365942,70.4850608 L13.1036712,79.0223566 L3.13718077,84.8050196 L6.29644038,92.5488548 L17.5244019,89.8513318 L23.4832096,98.5854738 L16.7466808,107.893143 L22.8134019,113.695248 L31.9699212,106.70356 L38.5067481,110.99651 L35.5881231,122.068505 L43.35045,125.332265 L49.3625942,115.565287 L58.8813058,117.47421 L60.5645077,128.801377 L63.6927577,128.801377 L64.780575,128.801377 L67.908825,128.801377 L69.5907865,117.47421 L79.1107385,115.565287 L85.1228827,125.332265 L92.8852096,122.068505 L89.9665846,110.99651 L96.5034115,106.70356 L105.659931,113.695248 L111.725412,107.893143 L104.988883,98.5854738 L110.94769,89.8513318 L122.175652,92.5488548 L125.334912,84.8050196 L115.369662,79.0223566 L117.035498,70.4850608 L128.473085,68.8191581 Z" fill="currentColor" mask="url(#mask-2)"></path></g></g></g></svg></div><div class="absolute top-0 left-0 right-0 bottom-0 flex justify-center items-center transform scale-50"><svg viewBox="0 0 280 280" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path class="fill-xy-green" d="m17.57,94.37c-3.36,13.54-5.07,28.73-5.07,45.63,0,32.02,6.04,58,18.1,77.95,3.81,4.98,7.46,9.94,10.95,14.66,21.21,23.24,54.01,34.89,98.45,34.89.71,0,1.39-.03,2.09-.03-3.62-46.93-22.27-88.31-54.36-124.11-19.79-22.07-42.96-38.86-70.16-48.99Z"></path><path class="fill-xy-blue" d="m267.5,140c0-85-42.5-127.5-127.5-127.5-55.06,0-92.27,17.86-111.66,53.53,28.32,8.48,56.67,16.85,84.98,25.37,27.05,8.14,54.01,16.55,81.06,24.67,5.45,1.64,7.5,4.76,6.63,10.27-.69,4.35-1.04,8.75-1.57,13.13-4.95,40.77-8.32,81.74-12.43,122.61,53.64-13.88,80.49-54.56,80.49-122.08Z"></path></svg></div>',2))])])],2)}}}),ru={key:0,class:"fixed top-0 left-0 flex flex-col items-center justify-center w-full h-full cursor-not-allowed z-40 bg-gray-50 bg-opacity-60"},ou={class:"mt-2"},Mn=t.defineComponent({__name:"Spinner",setup(n){const{idx:r,loading:e,maxIdx:o,messages:a,msg:i,showMsg:s}=Io(),l=()=>{r.value++,r.value>o.value&&(r.value=0),a.value&&(i.value=a.value[r.value]),s.value=!0},c=()=>{window.setTimeout(()=>{s.value=!1},2500)};return(d,u)=>(t.openBlock(),t.createBlock(t.unref(fr),null,{default:t.withCtx(()=>[t.unref(e)?(t.openBlock(),t.createElementBlock("div",ru,[t.createVNode(Or,{class:"w-32 h-32"}),t.withDirectives(t.createElementVNode("div",ou,[t.createVNode(t.Transition,{appear:"","enter-active-class":"ease-out duration-1000","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-500","leave-from-class":"opacity-100","leave-to-class":"opacity-0",onAfterEnter:c,onAfterLeave:l},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{class:"container font-medium text-lg leading-snug text-center transition-opacity"},t.toDisplayString(t.unref(i)),513),[[t.vShow,t.unref(s)]])]),_:1})],512),[[t.vShow,t.unref(a)]])])):t.createCommentVNode("",!0)]),_:1}))}}),au={class:"h-screen flex overflow-hidden bg-gray-50"},iu={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white"},su={class:"absolute top-0 right-0 -mr-12 pt-2"},lu={class:"shrink-0 flex justify-center px-4"},cu=["src"],du={class:"mt-5 flex flex-col flex-1 h-0 overflow-y-auto"},uu={class:"flex-1 px-2"},fu={class:"space-y-1"},pu=["href","target"],mu={key:0,class:"mt-auto"},hu={class:"mt-6 px-2"},gu={class:"hidden lg:flex lg:shrink-0"},bu={class:"flex flex-col w-64"},yu={class:"flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"},wu={class:"flex justify-center shrink-0 px-4"},xu=["src"],Cu={class:"mt-5 grow flex flex-col"},Eu={class:"flex-1 px-2 bg-white"},ku={class:"space-y-1"},Du=["href","target"],Su={key:0,class:"mt-atuo"},Nu={class:"mt-6 px-2"},_u={class:"flex flex-col w-0 flex-1 overflow-hidden"},vu={class:"relative z-10 shrink-0 flex h-16 bg-xy-blue shadow"},Tu={class:"flex-1 px-4 flex justify-between"},$u={class:"flex-1 flex"},Bu={class:"flex items-center text-base leading-snug sm:text-2xl text-white"},Mu={class:"ml-4 flex items-center lg:ml-6"},Vu=["href"],Pu={class:"flex-1 relative overflow-y-auto focus:outline-none"},Au={class:"mx-auto"},pi=t.defineComponent({__name:"SidebarLayout",props:{activeUrl:{default:""},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=t.ref(!1),o=a=>r.activeUrl===a;return(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",au,[t.createVNode(t.unref(At),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(mn),{as:"div",static:"",class:"fixed inset-0 flex z-10 lg:hidden",open:e.value,onClose:i[1]||(i[1]=s=>e.value=!1)},{default:t.withCtx(()=>[t.createVNode(t.unref(Ye),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(hn),{class:"fixed inset-0 bg-gray-600 bg-opacity-75"})]),_:1}),t.createVNode(t.unref(Ye),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:t.withCtx(()=>[t.createElementVNode("div",iu,[t.createVNode(t.unref(Ye),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createElementVNode("div",su,[t.createElementVNode("button",{class:"ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",onClick:i[0]||(i[0]=s=>e.value=!1)},[i[3]||(i[3]=t.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1)),t.createVNode(t.unref(jt),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),t.createElementVNode("div",lu,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,cu)]),t.createElementVNode("div",du,[t.createElementVNode("div",uu,[t.renderSlot(a.$slots,"sidebar-nav",{},()=>[t.createElementVNode("nav",fu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,s=>(t.openBlock(),t.createElementBlock("a",{key:s.name,href:s.url,class:t.normalizeClass([o(s.url)?"bg-gray-100 text-gray-900":"text-gray-700 hover:bg-gray-50 hover:text-gray-900","group flex items-center px-2 py-2 text-base font-semibold rounded-md"]),target:s.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.icon),{class:t.normalizeClass([o(s.url)?"text-gray-600":"text-gray-500 group-hover:text-gray-600","mr-4 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(s.name),1)],10,pu))),128))])])]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",mu,[t.createElementVNode("div",hu,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])]),_:3}),i[4]||(i[4]=t.createElementVNode("div",{class:"shrink-0 w-14","aria-hidden":"true"},null,-1))]),_:3},8,["open"])]),_:3},8,["show"]),t.createElementVNode("div",gu,[t.createElementVNode("div",bu,[t.createElementVNode("div",yu,[t.createElementVNode("div",wu,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,xu)]),t.createElementVNode("div",Cu,[t.createElementVNode("div",Eu,[t.renderSlot(a.$slots,"sidebar-nav",{},()=>[t.createElementVNode("nav",ku,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,s=>(t.openBlock(),t.createElementBlock("a",{key:s.name,href:s.url,class:t.normalizeClass([o(s.url)?"bg-gray-100 text-gray-900":"text-gray-800 hover:bg-gray-100 hover:text-gray-900","group flex items-center px-2 py-2 text-sm font-semibold rounded-md"]),target:s.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.icon),{class:t.normalizeClass([o(s.url)?"text-gray-600":"text-gray-400 group-hover:text-gray-600","mr-3 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(s.name),1)],10,Du))),128))])])]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",Su,[t.createElementVNode("div",Nu,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])])]),t.createElementVNode("div",_u,[t.createElementVNode("div",vu,[t.createElementVNode("button",{class:"px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500 lg:hidden",onClick:i[2]||(i[2]=s=>e.value=!0)},[i[5]||(i[5]=t.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1)),t.createVNode(t.unref(Md),{class:"h-6 w-6","aria-hidden":"true"})]),t.createElementVNode("div",Tu,[t.createElementVNode("div",$u,[t.createElementVNode("h1",Bu,[t.renderSlot(a.$slots,"header")])]),t.createElementVNode("div",Mu,[t.createVNode(t.unref(gr),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(br),{class:"max-w-xs flex items-center text-sm text-white rounded-full hover:bg-blue-900 hover:text-gray-50 focus:outline-none focus:ring focus:text-white"},{default:t.withCtx(()=>[i[6]||(i[6]=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1)),t.createVNode(t.unref(gc),{class:"h-8 w-8",fill:"currentColor"})]),_:1})]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createVNode(t.unref(yr),{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.userNavigation,s=>(t.openBlock(),t.createBlock(t.unref(wr),{key:s.name},{default:t.withCtx(({active:l})=>[t.createElementVNode("a",{href:s.url,class:t.normalizeClass([l?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(s.name),11,Vu)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),t.createElementVNode("main",Pu,[t.createElementVNode("div",Au,[t.renderSlot(a.$slots,"default")])])])]),t.createVNode(Bn),t.createVNode(Mn)],64))}}),Ht=t.defineComponent({__name:"Popover",props:{as:{default:"div"},position:{default:"auto"}},setup(n){const r=n,e=t.useTemplateRef("trigger"),o=t.useTemplateRef("wrapper"),a=t.computed(()=>{const l=[Mc(5),Pc()];return r.position==="auto"&&l.push(Bc()),l}),i=t.computed(()=>{if(r.position!=="auto")return r.position}),{floatingStyles:s}=ei(e,o,{middleware:a,placement:i,strategy:"fixed",whileElementsMounted:Ja});return(l,c)=>(t.openBlock(),t.createBlock(t.unref(ha),{as:l.as,class:"relative"},{default:t.withCtx(({open:d,close:u})=>[t.createVNode(t.unref(rc),{ref:"trigger"},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"button",{open:d,close:u})]),_:2},1536),t.createElementVNode("div",{ref:"wrapper",class:"z-[5]",style:t.normalizeStyle(t.unref(s))},[t.createVNode(t.unref(oc),null,{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default",{open:d,close:u})]),_:2},1024)],4)]),_:3},8,["as"]))}}),Ru=(n,r)=>{const e=n.__vccOpts||n;for(const[o,a]of r)e[o]=a;return e},Ou={},Iu={class:"w-full max-w-xs bg-white rounded-xy p-2 border border-gray-100 shadow-md"};function Lu(n,r){return t.openBlock(),t.createElementBlock("div",Iu,[t.renderSlot(n.$slots,"default")])}const mi=Ru(Ou,[["render",Lu]]),Fu={class:"absolute inset-0 overflow-hidden"},ju={class:"fixed inset-y-0 right-0 pl-10 max-w-full flex"},Hu={class:"w-screen max-w-md"},Uu={class:"h-full flex flex-col bg-white shadow-xl overflow-y-scroll"},zu={class:"py-6 px-4 bg-xy-blue-700 sm:px-6"},qu={class:"flex items-center justify-between"},Wu={class:"ml-3 h-7 flex items-center"},Yu={class:"mt-1"},Ku=["textContent"],Gu={class:"relative flex-1 py-6 px-4 sm:px-6"},hi=t.defineComponent({__name:"Slideover",props:t.mergeModels({header:{},description:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:t.mergeModels(["close"],["update:modelValue"]),setup(n,{emit:r}){const e=t.useModel(n,"modelValue"),o=r;return t.watch(e,a=>{a||o("close")}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(At),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(mn),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-hidden bg-black bg-opacity-50",open:e.value,onClose:i[1]||(i[1]=s=>e.value=!1)},{default:t.withCtx(()=>[t.createElementVNode("div",Fu,[t.createVNode(t.unref(hn),{class:"absolute inset-0"}),t.createElementVNode("div",ju,[t.createVNode(t.unref(Ye),{as:"template",enter:"transform transition ease-in-out duration-500 sm:duration-700","enter-from":"translate-x-full","enter-to":"translate-x-0",leave:"transform transition ease-in-out duration-500 sm:duration-700","leave-from":"translate-x-0","leave-to":"translate-x-full"},{default:t.withCtx(()=>[t.createElementVNode("div",Hu,[t.createElementVNode("div",Uu,[t.createElementVNode("div",zu,[t.createElementVNode("div",qu,[t.createVNode(t.unref(hr),{as:"h3",class:"text-white"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.header),1)]),_:1}),t.createElementVNode("div",Wu,[t.createElementVNode("button",{class:"bg-xy-blue-600 rounded-md text-gray-50 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",onClick:i[0]||(i[0]=s=>e.value=!1)},[i[2]||(i[2]=t.createElementVNode("span",{class:"sr-only"},"Close panel",-1)),t.createVNode(t.unref(jt),{class:"h-6 w-6","aria-hidden":"true"})])])]),t.createElementVNode("div",Yu,[t.createElementVNode("p",{class:"text-gray-50 text-base font-medium",textContent:t.toDisplayString(a.description)},null,8,Ku)])]),t.createElementVNode("div",Gu,[t.renderSlot(a.$slots,"default")]),t.renderSlot(a.$slots,"footer")])])]),_:3})])])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Ju=["onMouseover","onMouseleave"],Xu=["onMouseleave"],Zu={class:"max-w-xs"},gi=t.defineComponent({__name:"Tooltip",props:{as:{default:"span"},position:{default:"auto"}},setup(n){var r=!1,e=null;const o=i=>{r=!1,e&&clearTimeout(e),e=setTimeout(()=>{r||i()},100)},a=(i,s)=>{r=!0,!s&&i.target&&i.target.click()};return(i,s)=>(t.openBlock(),t.createBlock(Ht,{position:i.position,as:i.as},{button:t.withCtx(({open:l,close:c})=>[t.createElementVNode("div",{class:"leading-none relative w-4 h-4",onMouseover:d=>a(d,l),onMouseleave:d=>o(c)},[t.createVNode(t.unref(Bd)),s[1]||(s[1]=t.createElementVNode("div",{class:"p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},null,-1))],40,Ju)]),default:t.withCtx(({close:l})=>[t.createElementVNode("div",{class:"sm:min-w-max bg-white rounded-xy px-3.5 py-2.5 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium",onMouseover:s[0]||(s[0]=t.withModifiers(c=>t.isRef(r)?r.value=!0:r=!0,["prevent"])),onMouseleave:t.withModifiers(c=>o(l),["prevent"])},[t.createElementVNode("div",Zu,[t.renderSlot(i.$slots,"default")])],40,Xu)]),_:3},8,["position","as"]))}}),Qu={class:"min-h-screen bg-gray-50"},ef={class:"mx-auto px-4 sm:px-6 lg:px-8"},tf={class:"flex justify-between h-16"},nf={class:"flex"},rf={class:"shrink-0 flex items-center"},of=["src"],af={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},sf=["href","aria-current"],lf={class:"hidden sm:ml-6 sm:flex sm:items-center"},cf=["href"],df={class:"-mr-2 flex items-center sm:hidden"},uf={class:"pt-2 pb-3 space-y-1"},ff=["href","aria-current"],pf={class:"pt-4 pb-3 border-t border-gray-200"},mf={class:"flex items-center px-4"},hf={class:"shrink-0"},gf={class:"ml-3"},bf=["textContent"],yf=["textContent"],wf={class:"mt-3 space-y-1"},xf=["href"],Cf={class:"mx-auto sm:px-6 lg:px-8"},Ef={class:"px-4 py-8 sm:px-0"},bi=t.defineComponent({__name:"StackedLayout",props:{activeUrl:{default:""},currentUser:{},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=o=>r.activeUrl===o;return(o,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Qu,[t.createVNode(t.unref(Gl),{as:"nav",class:"bg-white shadow-sm"},{default:t.withCtx(({open:i})=>[t.createElementVNode("div",ef,[t.createElementVNode("div",tf,[t.createElementVNode("div",nf,[t.createElementVNode("div",rf,[t.createElementVNode("img",{class:"block h-8 w-auto",src:o.iconUrl,alt:"XY Trees"},null,8,of)]),t.createElementVNode("div",af,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,s=>(t.openBlock(),t.createElementBlock("a",{key:s.name,href:s.url,class:t.normalizeClass([e(s.url)?"border-blue-500 text-gray-900":"border-transparent text-gray-700 hover:text-gray-900 hover:border-blue-500","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-semibold"]),"aria-current":e(s.url)?"page":void 0},t.toDisplayString(s.name),11,sf))),128))])]),t.createElementVNode("div",lf,[t.createVNode(t.unref(gr),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(br),{class:"bg-white flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[a[0]||(a[0]=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1)),t.createVNode(t.unref(di),{class:"text-gray-500 h-8 w-8 rounded-full"})]),_:1})]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createVNode(t.unref(yr),{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,s=>(t.openBlock(),t.createBlock(t.unref(wr),{key:s.name},{default:t.withCtx(({active:l})=>[t.createElementVNode("a",{href:s.url,class:t.normalizeClass([l?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(s.name),11,cf)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),t.createElementVNode("div",df,[t.createVNode(t.unref(Jl),{class:"bg-white inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[a[1]||(a[1]=t.createElementVNode("span",{class:"sr-only"},"Open main menu",-1)),i?(t.openBlock(),t.createBlock(t.unref(jt),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(t.openBlock(),t.createBlock(t.unref(Vd),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),t.createVNode(t.unref(Xl),{class:"sm:hidden"},{default:t.withCtx(()=>[t.createElementVNode("div",uf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,s=>(t.openBlock(),t.createElementBlock("a",{key:s.name,href:s.url,class:t.normalizeClass([e(s.url)?"bg-blue-50 border-blue-500 text-blue-700":"border-transparent text-gray-700 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-900","block pl-3 pr-4 py-2 border-l-4 text-base font-semibold"]),"aria-current":e(s.url)?"page":void 0},t.toDisplayString(s.name),11,ff))),128))]),t.createElementVNode("div",pf,[t.createElementVNode("div",mf,[t.createElementVNode("div",hf,[t.createVNode(t.unref(di),{class:"text-gray-500 h-10 w-10 rounded-full"})]),t.createElementVNode("div",gf,[o.currentUser.name?(t.openBlock(),t.createElementBlock("div",{key:0,class:"text-base font-medium text-gray-800",textContent:t.toDisplayString(o.currentUser.name)},null,8,bf)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"text-sm font-medium text-gray-500",textContent:t.toDisplayString(o.currentUser.email)},null,8,yf)])]),t.createElementVNode("div",wf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,s=>(t.openBlock(),t.createElementBlock("a",{key:s.name,href:s.url,class:"block px-4 py-2 text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-100"},t.toDisplayString(s.name),9,xf))),128))])])]),_:1})]),_:1}),t.renderSlot(o.$slots,"header"),t.createElementVNode("main",null,[t.createElementVNode("div",Cf,[t.createElementVNode("div",Ef,[t.renderSlot(o.$slots,"default")])])])]),t.createVNode(Bn),t.createVNode(Mn)],64))}}),kf=n=>n==null,Df={clearSelection(){console.warn("deselectAll() was called on a static table, did you mean to use DynamicTable?")},refresh(){console.warn("refresh() was called on a static table, did you mean to use DynamicTable?")},reset(){console.warn("reset() was called on a static table, did you mean to use DynamicTable?")}},yi=(n,r,e,o=Df)=>{const a=t.ref(r),i=t.ref(n),s=t.ref(e),l=t.computed(()=>s.value.actions.length>0),c=t.computed(()=>a.value.filter(u=>u.show??!0).map(u=>{let f="";switch((u==null?void 0:u.alignment)||"left"){case"left":f="text-left";break;case"right":f="text-right";break;case"center":f="text-center";break}return{...u,alignment:f}})),d=t.computed(()=>i.value.map((u,f)=>({actions:s.value.actions.map(p=>({...p,disabled:typeof p.disabled=="function"?p.disabled.apply(void 0,[u,f]):p.disabled,onClick:()=>p.onClick(u,f,o),show:typeof p.show=="function"?p.show.apply(void 0,[u,f]):p.show})),rowData:u,cells:c.value.map(p=>{const g=typeof p.render=="function"?p.render.apply(void 0,[u,f]):u[p.render],h=(p==null?void 0:p.classNames)||"";return{...p,isComponent:t.isVNode(g),classNames:typeof h=="function"?h.apply(void 0,[u,f]):h,val:g}})})));return{columns:c,hasActions:l,isEmptyCellValue:kf,rows:d}},Sf={key:0,class:"flex items-center space-x-2 justify-end"},Nf={class:"isolate inline-flex rounded-md shadow-sm"},_f=["disabled","onClick"],vf={class:"relative inline-flex items-center gap-x-1.5"},Ir=t.defineComponent({__name:"TableActionButtons",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Ta(t.toRef(r,"actions"));return(a,i)=>t.unref(o)?(t.openBlock(),t.createElementBlock("div",Sf,[t.createElementVNode("span",Nf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(s,l)=>(t.openBlock(),t.createElementBlock("button",{key:l,type:"button",class:t.normalizeClass(["group relative inline-flex items-center bg-white px-3 py-2 text-sm font-semibold text-gray-700 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 disabled:text-gray-400 disabled:cursor-not-allowed",{"rounded-l-md":l===0,"-ml-px":l>0,"rounded-r-md":l===t.unref(e).length-1}]),disabled:s.disabled,onClick:t.withModifiers(s.onClick,["stop"])},[t.createElementVNode("span",vf,[s.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.icon),{key:0,class:t.normalizeClass(["-ml-0.5 h-4 w-4 group-disabled:text-gray-300",s.label?"text-gray-400":"text-gray-600"]),"aria-hidden":"true"},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(s.label),1)])],10,_f))),128))])])):t.createCommentVNode("",!0)}}),Tf={class:"flex flex-col"},$f={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},Bf={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},Mf={class:"overflow-hidden border-b border-gray-200 shadow sm:rounded-lg"},Vf={class:"min-w-full divide-y divide-gray-200"},Pf={class:"bg-gray-100"},Af={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4"},Rf={class:"bg-white"},Of={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},If={key:0},Lf=["colspan"],wi=t.defineComponent({__name:"DataTable",props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:{},tableData:{}},setup(n){const r=n,{columns:e,hasActions:o,isEmptyCellValue:a,rows:i}=yi(t.toRef(r,"tableData"),t.toRef(r,"tableColumns"),t.toRef(r,"tableActions"));return(s,l)=>(t.openBlock(),t.createElementBlock("div",Tf,[t.createElementVNode("div",$f,[t.createElementVNode("div",Bf,[t.createElementVNode("div",Mf,[t.createElementVNode("table",Vf,[t.createElementVNode("thead",Pf,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(c,d)=>(t.openBlock(),t.createElementBlock("th",{key:d,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4",c.alignment])},t.toDisplayString(c.title),3))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("th",Af)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",Rf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),(c,d)=>(t.openBlock(),t.createElementBlock("tr",{key:d,class:"even:bg-gray-50"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.cells,(u,f)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:f,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",u.alignment])},{default:t.withCtx(()=>[u.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(u.classNames)},t.toDisplayString(t.unref(a)(u.val)?"-":String(u.val)),3))]),_:2},1032,["class"]))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("td",Of,[s.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(Sn),{key:0,actions:c.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Ir,{key:1,actions:c.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)]))),128)),t.unref(i).length===0?(t.openBlock(),t.createElementBlock("tr",If,[t.createElementVNode("td",{colspan:t.unref(e).length+(t.unref(o)?1:0),class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,Lf)])):t.createCommentVNode("",!0)])])])])])]))}}),Ff={class:"flex items-center justify-center space-x-8"},jf={class:"font-medium"},Hf={class:"flex items-center space-x-5"},Uf={key:0,class:"block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"},zf={key:1,class:"relative flex items-center justify-center"},qf={key:2,href:"#",class:"block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"},Wf={key:0,class:"flex shrink-0"},Yf={key:0,class:"inline-flex rounded-md shadow-sm"},Kf=["textContent"],Gf={class:"ml-3 inline-flex rounded-md shadow-sm"},Jf=["textContent"],xi=t.defineComponent({__name:"Steps",props:{hideActions:{type:Boolean,default:!1},hidePrevious:{type:Boolean,default:!1},nextText:{default:"Next"},previousText:{default:"Back"},step:{},total:{}},emits:["next","previous"],setup(n,{emit:r}){const e=r,o=()=>{e("next")},a=()=>{e("previous")};return(i,s)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("nav",Ff,[t.createElementVNode("p",jf,"Step "+t.toDisplayString(i.step)+" of "+t.toDisplayString(i.total),1),t.createElementVNode("ul",Hf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.total,l=>(t.openBlock(),t.createElementBlock("li",{key:l},[i.step>l?(t.openBlock(),t.createElementBlock("span",Uf)):i.step===l?(t.openBlock(),t.createElementBlock("div",zf,s[0]||(s[0]=[t.createElementVNode("span",{class:"absolute w-5 h-5 p-px flex"},[t.createElementVNode("span",{class:"w-full h-full rounded-full bg-green-100"})],-1),t.createElementVNode("span",{class:"relative block w-2.5 h-2.5 bg-xy-green rounded-full"},null,-1)]))):(t.openBlock(),t.createElementBlock("span",qf))]))),128))])]),i.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Wf,[i.hidePrevious?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Yf,[t.createElementVNode("button",{type:"button",class:"xy-btn-secondary",onClick:a,textContent:t.toDisplayString(i.previousText)},null,8,Kf)])),t.createElementVNode("span",Gf,[t.createElementVNode("button",{type:"button",class:"xy-btn",onClick:o,textContent:t.toDisplayString(i.nextText)},null,8,Jf)])]))]))}}),Xf={class:"flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"},Zf={key:0,class:"w-full max-w-lg lg:max-w-xs"},Qf={class:"flex items-center gap-x-2"},ep={class:"flex-1"},tp={key:1,class:"w-full max-w-lg lg:max-w-xs"},np={class:"flex items-center gap-x-2"},rp={class:"flex-1"},op={class:"relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto"},ap={class:"min-w-full divide-y divide-gray-200"},ip={class:"bg-gray-100"},sp={key:0,scope:"col",class:"pl-6 w-4 leading-none"},lp=["checked","indeterminate"],cp=["onClick"],dp={key:0},up={key:1},fp={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-5 inline"},pp={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},mp={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},hp={key:1,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4"},gp={key:0},bp={colspan:"100%",class:"px-6 py-3 border-t bg-neutral-50"},yp={class:"flex items-center space-x-3"},wp={key:0,class:"text-sm font-semibold"},xp={key:1,class:"text-sm font-semibold"},Cp={class:"bg-white"},Ep=["onClick"],kp={key:0,class:"pl-6 w-4 leading-none"},Dp=["disabled","value"],Sp={key:1,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},Np={key:0},_p=["colspan"],Ci=t.defineComponent({__name:"DynamicTable",props:t.mergeModels({tableActions:{default:()=>({type:"dropdown",actions:[]})},tableBulkActions:{default:()=>({actions:[]})},tableColumns:{},tableOptions:{}},{selected:{required:!1,default:[]},selectedModifiers:{}}),emits:t.mergeModels(["click:row"],["update:selected"]),setup(n,{expose:r}){const e=n,o=()=>{const H={minDate:d.value.minDate,maxDate:d.value.maxDate,page:u.value.page,perPage:u.value.perPage,sort:l.value,sortDir:c.value,q:f.value};w.value||C(),cr.get(e.tableOptions.url,{skipLoader:!1},H).then(R=>{u.value={page:R.data.page,perPage:R.data.perPage,totalItems:R.data.totalItems,totalPages:R.data.totalPages},s.value=R.data.items},()=>{Rr.genericError()})},a=()=>{u.value.page=1,o()},i=()=>{if(h.value.maxRange){const H=new Date,R=H.setDate(H.getDate()-h.value.maxRange),Me=new Date;d.value={minDate:Math.floor(R/1e3),maxDate:Math.floor(Me.getTime()/1e3)}}},s=t.ref([]),l=t.ref(e.tableOptions.defaultSort?e.tableOptions.defaultSort:""),c=t.ref(e.tableOptions.defaultSortDirection?e.tableOptions.defaultSortDirection:"desc"),d=t.ref({minDate:0,maxDate:0}),u=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),f=t.ref(""),p=H=>{H&&(u.value.page=1,d.value=H,o())},g=H=>{l.value==H?c.value=c.value==="desc"?"asc":"desc":(l.value=H,c.value="desc"),o()},h=t.computed(()=>typeof e.tableOptions.dateSearch=="object"?e.tableOptions.dateSearch:{}),y=t.computed(()=>!!Hn.value.length),w=t.computed(()=>e.tableBulkActions.persistent??!1),C=()=>{D.value=[]},D=t.useModel(n,"selected"),N=t.computed(()=>s.value.filter(H=>D.value.includes(H.id))),I=t.computed(()=>D.value.filter(H=>$.value.includes(H)).length),V=t.computed(()=>e.tableBulkActions.actions.filter(H=>H.show??!0).map(H=>({...H,disabled:D.value.length===0||H.disabled,onClick:()=>H.onClick.apply(void 0,[D.value,N.value,ee])}))),j=t.computed(()=>V.value.length>0),$=t.computed(()=>s.value.filter(H=>!!(e.tableBulkActions.isSelectable===void 0||e.tableBulkActions.isSelectable(H))).map(H=>H.id)),ce=t.computed(()=>D.value.length>0&&D.value.length===$.value.length),L=t.computed(()=>D.value.length>0&&D.value.length<$.value.length),Y=H=>{const R=H.target.checked;if(w.value&&R){D.value=[...D.value,...$.value.map(Me=>Me)];return}if(w.value&&!R){D.value=D.value.filter(Me=>!$.value.includes(Me));return}if(R){D.value=$.value.map(Me=>Me);return}C()},ee={clearSelection:C,refresh:o,reset:a},{columns:oe,hasActions:ie,isEmptyCellValue:jn,rows:Hn}=yi(s,t.toRef(e,"tableColumns"),t.toRef(e,"tableActions"),ee);return t.watch(()=>e.tableOptions.refreshTrigger,()=>{o()}),t.watch(()=>e.tableOptions.reloadTrigger,()=>{a()}),r(ee),i(),o(),(H,R)=>{const Me=t.resolveComponent("BaseInput");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Xf,[H.tableOptions.search?(t.openBlock(),t.createElementBlock("div",Zf,[R[7]||(R[7]=t.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1)),t.createElementVNode("div",Qf,[R[6]||(R[6]=t.createElementVNode("div",{"aria-hidden":"true",class:"shrink-0 aspect-square rounded-full bg-gray-50 text-gray-400 h-10 w-10 flex items-center justify-center pointer-events-none"},[t.createElementVNode("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1)),t.createElementVNode("div",ep,[t.createVNode(Me,{id:"table-search",modelValue:f.value,"onUpdate:modelValue":R[0]||(R[0]=K=>f.value=K),modelModifiers:{trim:!0},type:"search",placeholder:"Search",onChange:R[1]||(R[1]=K=>a())},null,8,["modelValue"])])])])):t.createCommentVNode("",!0),H.tableOptions.dateSearch?(t.openBlock(),t.createElementBlock("div",tp,[R[9]||(R[9]=t.createElementVNode("label",{for:"table-date-range",class:"sr-only"},"Date Range",-1)),t.createElementVNode("div",np,[R[8]||(R[8]=t.createElementVNode("div",{"aria-hidden":"true",class:"shrink-0 aspect-square rounded-full bg-gray-50 text-gray-400 h-10 w-10 flex items-center justify-center pointer-events-none"},[t.createElementVNode("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])],-1)),t.createElementVNode("div",rp,[t.createVNode(Tn,t.mergeProps({id:"table-date-range",modelValue:d.value,"onUpdate:modelValue":R[2]||(R[2]=K=>d.value=K)},{...h.value},{"onUpdate:modelValue":p}),null,16,["modelValue"])])])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",op,[t.createElementVNode("table",ap,[t.createElementVNode("thead",ip,[t.createElementVNode("tr",null,[j.value?(t.openBlock(),t.createElementBlock("th",sp,[t.createElementVNode("input",{class:t.normalizeClass(["h-4 w-4 rounded cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50","border-gray-300 focus:ring-xy-blue-500"]),checked:ce.value,indeterminate:L.value,type:"checkbox",onChange:Y},null,40,lp)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(oe),(K,lt)=>(t.openBlock(),t.createElementBlock("th",{key:lt,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4",K.alignment])},[t.createElementVNode("div",{class:t.normalizeClass(["inline-flex items-center gap-2",{"cursor-pointer":K.sort}]),onClick:t.withModifiers(Ve=>K.sort?g(K.sort):void 0,["prevent"])},[K.title?(t.openBlock(),t.createElementBlock("span",dp,t.toDisplayString(K.title),1)):t.createCommentVNode("",!0),K.sort?(t.openBlock(),t.createElementBlock("span",up,[l.value!==K.sort?(t.openBlock(),t.createElementBlock("svg",fp,R[10]||(R[10]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},null,-1)]))):c.value=="desc"?(t.openBlock(),t.createElementBlock("svg",pp,R[11]||(R[11]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"},null,-1)]))):(t.openBlock(),t.createElementBlock("svg",mp,R[12]||(R[12]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)])))])):t.createCommentVNode("",!0)],10,cp)],2))),128)),t.unref(ie)?(t.openBlock(),t.createElementBlock("th",hp)):t.createCommentVNode("",!0)]),j.value&&D.value.length>0?(t.openBlock(),t.createElementBlock("tr",gp,[t.createElementVNode("td",bp,[t.createElementVNode("div",yp,[w.value?(t.openBlock(),t.createElementBlock("div",wp," Selected: "+t.toDisplayString(I.value)+" ("+t.toDisplayString(D.value.length)+" total) ",1)):(t.openBlock(),t.createElementBlock("div",xp,t.toDisplayString(D.value.length)+" selected ",1)),t.createVNode(Ir,{actions:V.value},null,8,["actions"])])])])):t.createCommentVNode("",!0)]),t.createElementVNode("tbody",Cp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(Hn),(K,lt)=>(t.openBlock(),t.createElementBlock("tr",{key:lt,class:"even:bg-gray-50",onClick:Ve=>H.$emit("click:row",K.rowData)},[j.value?(t.openBlock(),t.createElementBlock("td",kp,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":R[3]||(R[3]=Ve=>D.value=Ve),class:t.normalizeClass(["h-4 w-4 rounded cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50","border-gray-300 focus:ring-xy-blue-500"]),disabled:!$.value.includes(K.rowData.id),type:"checkbox",value:K.rowData.id},null,8,Dp),[[t.vModelCheckbox,D.value]])])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.cells,(Ve,qr)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:qr,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",Ve.alignment])},{default:t.withCtx(()=>[Ve.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(Ve.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(Ve.classNames)},t.toDisplayString(t.unref(jn)(Ve.val)?"-":String(Ve.val)),3))]),_:2},1032,["class"]))),128)),t.unref(ie)?(t.openBlock(),t.createElementBlock("td",Sp,[H.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(Sn),{key:0,actions:K.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Ir,{key:1,actions:K.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)],8,Ep))),128)),y.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Np,[t.createElementVNode("td",{colspan:t.unref(oe).length+(t.unref(ie)?1:0),class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,_p)]))])])]),y.value?(t.openBlock(),t.createBlock($n,{key:0,modelValue:u.value,"onUpdate:modelValue":[R[4]||(R[4]=K=>u.value=K),R[5]||(R[5]=K=>o())]},null,8,["modelValue"])):t.createCommentVNode("",!0)])}}}),vp={class:"hidden sm:block"},Tp=["onClick","textContent"],Ei=t.defineComponent({__name:"Tabs",props:t.mergeModels({pillDesign:{type:Boolean,default:!1},tabs:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue"),o=(i,s)=>{let l="";return r.pillDesign?(l="px-12 py-2 font-semibold text-md leading-5 rounded-t-md focus:outline-none ",e.value===i?l=l+"focus:bg-white text-gray-700 bg-white border-b-2 border-blue-500":l=l+"text-gray-700 hover:text-gray-900 focus:text-gray-900 focus:bg-gray-100 border border-gray-200",l):(l="px-1 py-4 text-sm font-semibold border-b-2 whitespace-nowrap leading-5 focus:outline-none ",e.value===i?l=l+"border-blue-500 text-xy-blue focus:text-blue-800 focus:border-blue-700":l=l+"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:text-gray-900 focus:border-gray-300",s&&(l=l+" ml-8"),l)},a=t.computed(()=>!r.pillDesign);return(i,s)=>{const l=t.resolveComponent("Select");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["sm:hidden",{"mb-4":i.pillDesign}])},[s[1]||(s[1]=t.createElementVNode("label",{for:"tabs",class:"sr-only"},"Select a tab",-1)),t.createVNode(l,{modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=c=>e.value=c),name:"tabs",options:i.tabs},null,8,["modelValue","options"])],2),t.createElementVNode("div",vp,[t.createElementVNode("div",{class:t.normalizeClass({"border-b border-gray-200":a.value})},[t.createElementVNode("nav",{class:t.normalizeClass(["flex",[i.pillDesign?"ml-8":"-mb-px"]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.tabs,(c,d)=>(t.openBlock(),t.createElementBlock("a",{key:d,href:"#",class:t.normalizeClass(o(c.value,d>0)),onClick:t.withModifiers(u=>e.value=c.value,["prevent"]),textContent:t.toDisplayString(c.label)},null,10,Tp))),128))],2)],2)])])}}}),$p={key:0,class:"sr-only"},Bp={class:"ml-3 mt-0.5"},ki=t.defineComponent({inheritAttrs:!1,__name:"Toggle",props:t.mergeModels({label:{default:""},help:{default:""}},{modelValue:{type:Boolean,...J},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=t.useModel(n,"modelValue",J),e=t.useAttrs(),o=t.computed(()=>dr(e,"disabled"));return(a,i)=>(t.openBlock(),t.createBlock(t.unref(sc),{as:"div",class:"flex items-start"},{default:t.withCtx(()=>[t.createVNode(t.unref(lc),{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=s=>r.value=s),class:t.normalizeClass([r.value?"bg-xy-blue":"bg-gray-200",o.value?"opacity-75 cursor-not-allowed":"cursor-pointer","relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500"]),disabled:o.value},{default:t.withCtx(()=>[a.label?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",$p,"Use")),t.createElementVNode("span",{"aria-hidden":"true",class:t.normalizeClass([r.value?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200"])},null,2)]),_:1},8,["modelValue","class","disabled"]),t.createElementVNode("div",Bp,[a.label?(t.openBlock(),t.createBlock(t.unref(cc),{key:0},{default:t.withCtx(()=>[t.createVNode(he,{label:a.label,class:t.normalizeClass(o.value?"cursor-not-allowed":"cursor-pointer")},null,8,["label","class"])]),_:1})):t.createCommentVNode("",!0),a.help?(t.openBlock(),t.createBlock(t.unref(dc),{key:1},{default:t.withCtx(()=>[t.createVNode(le,{text:a.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0)])]),_:1}))}}),Mp={"aria-label":"Progress"},Vp={role:"list",class:"flex items-center"},Pp={class:"absolute inset-0 flex items-center","aria-hidden":"true"},Ap=["aria-current"],Rp={key:1,class:"h-3 w-3 rounded-full bg-xy-blue","aria-hidden":"true"},Op={class:"sr-only"},Ip={key:2,class:"sr-only"},Di=t.defineComponent({__name:"ProgressCircles",props:{current:{},steps:{}},setup(n){const r=n,e=t.computed(()=>r.steps.map((o,a)=>{let i;return r.current>a?i="complete":r.current===a?i="current":i="incomplete",{name:o.name,description:(o==null?void 0:o.description)||"",status:i}}));return(o,a)=>(t.openBlock(),t.createElementBlock("nav",Mp,[t.createElementVNode("ol",Vp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.value,(i,s)=>(t.openBlock(),t.createElementBlock("li",{key:i.name,class:t.normalizeClass([s!==e.value.length-1?"pr-8":"","relative"])},[t.createElementVNode("div",Pp,[t.createElementVNode("div",{class:t.normalizeClass(["h-0.5 w-full",i.status==="complete"?"bg-xy-blue":"bg-gray-300"])},null,2)]),t.createElementVNode("div",{class:t.normalizeClass({"relative flex h-5 w-5 items-center justify-center rounded-full":!0,"bg-xy-blue":i.status==="complete","border-2 border-indigo-600 bg-white":i.status==="current","border-2 border-gray-300 bg-white":i.status==="incomplete"}),"aria-current":i.status==="current"?!0:void 0},[i.status==="complete"?(t.openBlock(),t.createBlock(t.unref(va),{key:0,class:"h-3 w-3 text-white","aria-hidden":"true"})):i.status==="current"?(t.openBlock(),t.createElementBlock("span",Rp)):t.createCommentVNode("",!0),t.createElementVNode("span",Op,t.toDisplayString(i.name),1),i.description?(t.openBlock(),t.createElementBlock("span",Ip,t.toDisplayString(i.description),1)):t.createCommentVNode("",!0)],10,Ap)],2))),128))])]))}}),Lp={"aria-label":"Progress"},Fp={role:"list",class:"overflow-hidden"},jp=["aria-current"],Hp={class:"flex h-9 items-center"},Up={key:1,class:"h-2.5 w-2.5 rounded-full bg-xy-blue"},zp={class:"ml-4 flex min-w-0 flex-col"},qp={key:0,class:"text-sm text-gray-600"},Si=t.defineComponent({__name:"ProgressCirclesLabeled",props:{current:{},steps:{}},setup(n){const r=n,e=t.computed(()=>r.steps.map((o,a)=>{let i;return r.current>a?i="complete":r.current===a?i="current":i="incomplete",{name:o.name,description:(o==null?void 0:o.description)||"",status:i}}));return(o,a)=>(t.openBlock(),t.createElementBlock("div",Lp,[t.createElementVNode("ol",Fp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.value,(i,s)=>(t.openBlock(),t.createElementBlock("li",{key:s,class:t.normalizeClass([s!==e.value.length-1?"pb-6":"","relative"])},[s!==e.value.length-1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["absolute left-3 top-3 -ml-px mt-0.5 h-full w-0.5",i.status==="complete"?"bg-xy-blue":"bg-gray-300"]),"aria-hidden":"true"},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"group relative flex items-start","aria-current":i.status==="current"?!0:void 0},[t.createElementVNode("span",Hp,[t.createElementVNode("span",{class:t.normalizeClass({"relative z-10 flex h-6 w-6 items-center justify-center rounded-full":!0,"bg-xy-blue ":i.status==="complete","border-2 border-xy-blue bg-white":i.status==="current","border-2 border-gray-300 bg-white":i.status==="incomplete"})},[i.status==="complete"?(t.openBlock(),t.createBlock(t.unref(va),{key:0,class:"h-4 w-4 text-white","aria-hidden":"true"})):i.status==="current"?(t.openBlock(),t.createElementBlock("span",Up)):t.createCommentVNode("",!0)],2)]),t.createElementVNode("span",zp,[t.createElementVNode("span",{class:t.normalizeClass({"text-sm font-bold":!0,"text-gray-800":i.status==="complete","text-xy-blue":i.status==="current","text-gray-600":i.status==="incomplete","mt-2":!i.description})},t.toDisplayString(i.name),3),i.description?(t.openBlock(),t.createElementBlock("span",qp,t.toDisplayString(i.description),1)):t.createCommentVNode("",!0)])],8,jp)],2))),128))])]))}}),Wp=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder","type"],Ni=t.defineComponent({inheritAttrs:!1,__name:"BaseInput",props:t.mergeModels(t.mergeDefaults({modelValue:{},type:{},label:{},help:{},placeholder:{}},Re),{modelValue:{...J,set:n=>props.type==="number"?ur(n):n},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:r}){const e=n,o=t.useModel(n,"modelValue",{...J,set:f=>e.type==="number"?ur(f):f}),a=t.useTemplateRef("input"),{errorState:i,inputID:s,isRequired:l,onInvalid:c,inputValidation:d}=Te(e);r({input:a});const u=t.computed(()=>{switch(e.type){case"number":return{max:Number.MAX_SAFE_INTEGER,min:Number.MIN_SAFE_INTEGER};case"email":return{pattern:Ho};case"tel":return{pattern:Uo};case"url":return{pattern:zo};default:return{}}});return(f,p)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(he,{id:`${t.unref(s)}-label`,class:"mb-2",for:t.unref(s),label:f.label,required:t.unref(l)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(s),ref:"input","onUpdate:modelValue":p[0]||(p[0]=g=>o.value=g),"aria-labelledby":f.label?`${t.unref(s)}-label`:void 0,"aria-describedby":f.help?`${t.unref(s)}-help`:void 0,"aria-errormessage":t.unref(i)?`${t.unref(s)}-error`:void 0,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(i)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:f.placeholder,type:f.type},{...u.value,...f.$attrs},{onInput:p[1]||(p[1]=(...g)=>t.unref(d)&&t.unref(d)(...g)),onInvalid:p[2]||(p[2]=(...g)=>t.unref(c)&&t.unref(c)(...g))}),null,16,Wp),[[t.vModelDynamic,o.value,void 0,{trim:!0}]]),t.createVNode(le,{id:`${t.unref(s)}-help`,class:"mt-1",text:f.help},null,8,["id","text"]),t.createVNode(Ne,{id:`${t.unref(s)}-error`,class:"mt-0.5",text:t.unref(i)},null,8,["id","text"])]))}}),Yp={class:"relative flex items-start"},Kp={class:"flex items-center h-5"},Gp=["id","aria-labelledby","aria-describedby","aria-errormessage","checked"],Jp={class:"ml-3"},_i=t.defineComponent({inheritAttrs:!1,__name:"Checkbox",props:t.mergeModels(t.mergeDefaults({modelValue:{type:[Boolean,null]},label:{},help:{},placeholder:{}},Re),{modelValue:{type:[Boolean,null],...J},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,inputID:a,isDisabled:i,isRequired:s,errorState:l,validate:c,onInvalid:d}=Te(r);return(u,f)=>(t.openBlock(),t.createElementBlock("div",Yp,[t.createElementVNode("div",Kp,[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(a),"onUpdate:modelValue":f[0]||(f[0]=p=>e.value=p),"aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage,checked:e.value||void 0,class:["h-4 w-4 rounded text-xy-blue cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(l)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],type:"checkbox"},u.$attrs,{onChange:f[1]||(f[1]=(...p)=>t.unref(c)&&t.unref(c)(...p)),onInvalid:f[2]||(f[2]=(...p)=>t.unref(d)&&t.unref(d)(...p))}),null,16,Gp),[[t.vModelCheckbox,e.value]])]),t.createElementVNode("div",Jp,[t.createVNode(he,{id:t.unref(o).labelledby,for:t.unref(a),label:u.label,class:t.normalizeClass(t.unref(i)?"cursor-not-allowed":"cursor-pointer"),required:t.unref(s)},null,8,["id","for","label","class","required"]),t.createVNode(le,{id:t.unref(o).describedby,text:u.help},null,8,["id","text"]),t.createVNode(Ne,{id:t.unref(o).errormessage,class:"mt-0.5",text:t.unref(l)},null,8,["id","text"])])]))}}),Xp=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder"],vi=t.defineComponent({inheritAttrs:!1,__name:"DateTimeInput",props:t.mergeModels(t.mergeDefaults({modelValue:{},label:{},help:{},placeholder:{}},Re),{modelValue:{...J,get:n=>n&&qo(n),set:n=>n&&new Date(n).toISOString()},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",{...J,get:c=>c&&qo(c),set:c=>c&&new Date(c).toISOString()}),{errorState:o,inputID:a,isRequired:i,onInvalid:s,inputValidation:l}=Te(r);return(c,d)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(he,{id:`${t.unref(a)}-label`,class:"mb-2",for:t.unref(a),label:c.label,required:t.unref(i)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(a),"onUpdate:modelValue":d[0]||(d[0]=u=>e.value=u),"aria-labelledby":c.label?`${t.unref(a)}-label`:void 0,"aria-describedby":c.help?`${t.unref(a)}-help`:void 0,"aria-errormessage":t.unref(o)?`${t.unref(a)}-error`:void 0,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(o)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:c.placeholder,type:"datetime-local"},c.$attrs,{onInput:d[1]||(d[1]=(...u)=>t.unref(l)&&t.unref(l)(...u)),onInvalid:d[2]||(d[2]=(...u)=>t.unref(s)&&t.unref(s)(...u))}),null,16,Xp),[[t.vModelText,e.value]]),t.createVNode(le,{id:`${t.unref(a)}-help`,class:"mt-1",text:c.help},null,8,["id","text"]),t.createVNode(Ne,{id:`${t.unref(a)}-error`,class:"mt-0.5",text:t.unref(o)},null,8,["id","text"])]))}}),Zp={key:0,class:"text-red-700/80"},Dt=t.defineComponent({__name:"FieldsetLegend",props:{label:{default:""},required:{type:Boolean,default:!1},tag:{default:"legend"}},setup(n){const r=n,e=t.computed(()=>r.required&&/\*$/gm.exec(r.label)!==null?r.label.substring(0,r.label.length-1):r.label);return(o,a)=>o.label?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tag),t.mergeProps({key:0,class:"block text-sm leading-6 font-semibold text-gray-800"},o.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.value)+" ",1),r.required?(t.openBlock(),t.createElementBlock("span",Zp,"*")):t.createCommentVNode("",!0)]),_:1},16)):t.createCommentVNode("",!0)}}),Qp=["aria-labelledby","aria-describedby","aria-errormessage"],em={key:0},tm={class:"flex"},nm={class:"flex items-center h-5"},rm=["id","aria-labelledby","aria-describedby","disabled","value"],om={class:"ml-3"},Ti=t.defineComponent({inheritAttrs:!1,__name:"MultiCheckboxes",props:t.mergeModels(t.mergeDefaults({max:{},min:{},modelValue:{},options:{},label:{},help:{},placeholder:{},columns:{}},Re),{modelValue:{...J,get:n=>Array.isArray(n)?n:[]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",{...J,get:g=>Array.isArray(g)?g:[]}),{aria:o,inputID:a,isDisabled:i,errorState:s,validate:l}=Te(r),c=t.computed(()=>r.min||null),d=t.computed(()=>r.max||null),u=t.computed(()=>{var h;const g=((h=e.value)==null?void 0:h.length)||0;return c.value!==null&&g<c.value?`Please select at least ${c.value} of these options.`:d.value!==null&&g>d.value?`Please limit your selection to ${d.value} of these options.`:c.value!==null&&d.value!==null&&(g<c.value||g>d.value)?`Please select between ${c.value} and ${d.value} of these options.`:""}),f=t.useTemplateRef("errorInput"),p=()=>{var g;s.value||(s.value=u.value,(g=f.value)==null||g.setCustomValidity(u.value))};return(g,h)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"relative space-y-6","aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage},[g.label?(t.openBlock(),t.createElementBlock("div",em,[t.createVNode(Dt,{id:t.unref(o).labelledby,label:g.label,required:!!c.value},null,8,["id","label","required"]),g.help?(t.openBlock(),t.createBlock(le,{key:0,id:t.unref(o).describedby,class:"mt-1",tag:"p",text:g.help},null,8,["id","text"])):t.createCommentVNode("",!0),t.createVNode(Ne,{id:t.unref(o).errormessage,class:"mt-1",text:t.unref(s)},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",tm,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-y-5",{"sm:grid sm:gap-x-10":g.columns!==void 0,"sm:grid-cols-2":g.columns===2,"sm:grid-cols-3":g.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.options,(y,w)=>(t.openBlock(),t.createElementBlock("div",{key:y.value,class:"flex items-start"},[t.createElementVNode("div",nm,[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:`${t.unref(a)}-${w}`,"onUpdate:modelValue":h[0]||(h[0]=C=>e.value=C),"aria-labelledby":`${t.unref(a)}-${w}-label`,"aria-describedby":y.help?`${t.unref(a)}-${w}-help`:void 0,disabled:y.disabled,class:["h-4 w-4 rounded cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(s)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],type:"checkbox",value:y.value,ref_for:!0},g.$attrs,{onChange:h[1]||(h[1]=(...C)=>t.unref(l)&&t.unref(l)(...C))}),null,16,rm),[[t.vModelCheckbox,e.value]])]),t.createElementVNode("div",om,[t.createVNode(he,{id:`${t.unref(a)}-${w}-label`,for:`${t.unref(a)}-${w}`,label:y.label,class:t.normalizeClass(t.unref(i)||y.disabled?"cursor-not-allowed":"cursor-pointer")},null,8,["id","for","label","class"]),t.createVNode(le,{id:`${t.unref(a)}-${w}-help`,text:y.help},null,8,["id","text"])])]))),128))],2)]),u.value?(t.openBlock(),t.createElementBlock("input",{key:1,ref:"errorInput",required:"",class:"sr-only top-1 left-1","aria-hidden":"",type:"checkbox",onInvalid:p},null,544)):t.createCommentVNode("",!0)],8,Qp))}});function $i(n){const{anchorOffset:r=0,focusOffset:e=0}=n.ownerDocument.getSelection()||{},o=Math.min(r,e),a=Math.max(r,e);return[o,a]}function am(n,[r,e]){var o,a,i,s;const l=n.ownerDocument,c=l.createRange();c.setStart(n.firstChild||n,Math.min(r,(a=(o=n.textContent)===null||o===void 0?void 0:o.length)!==null&&a!==void 0?a:0)),c.setEnd(n.lastChild||n,Math.min(e,(s=(i=n.textContent)===null||i===void 0?void 0:i.length)!==null&&s!==void 0?s:0));const d=l.getSelection();d&&(d.removeAllRanges(),d.addRange(c))}class im{constructor(r){this.element=r,this.maxLength=1/0}get value(){return this.element.innerText.replace(/\n\n$/,`
|
|
16
|
+
if the issue persists.`:"Whoops! Something went wrong.";return s({message:y,persistent:g,type:"error"})};return o(n||{}),{flasher:{add:s,remove:a,flash:i,error:l,warning:u,info:c,success:d,genericError:f},flashes:r,configure:o}}const hd=n=>{if(window.Flashes)for(const r of window.Flashes){if(typeof r.type>"u"){const e=r.message.split(": ");n.add({type:e[0],message:e[1]});continue}n.add(r)}};let Rr;function it(){return Rr===void 0&&(Rr=ds()),Rr}const Or={error(n,r){it().flasher.error(n,r)},info(n,r){it().flasher.info(n,r)},success(n,r){it().flasher.success(n,r)},warning(n,r){it().flasher.warning(n,r)},genericError(n,r){it().flasher.genericError(n,r)}},gd=(n,r)=>{var d;const e=t.ref(n),o={initial:((d=e==null?void 0:e.value[0])==null?void 0:d.value)||"",paramName:(r==null?void 0:r.paramName)||"tab"},a=t.ref(o.initial),s=u=>!!e.value.find(f=>f.value===u),i=u=>a.value===u,c=new URLSearchParams(window.location.search).get(o.paramName);return c&&s(c)&&(a.value=c),t.watch(a,u=>{const f=new URLSearchParams(window.location.search);f.set(o.paramName,u.toString());const p=f.toString()!==""?`?${f.toString()}`:"";window.history.replaceState({tab:u},document.title,`${window.location.pathname}${p}`)}),{activeTab:a,isActiveTab:i,tabs:e}},bd=n=>{const r=t.ref(n);return t.watch(r,e=>{const o=new URLSearchParams(window.location.search);for(const s in e){const i=e[s];if(i==null||i==null){o.delete(s);continue}if(Array.isArray(i)){o.delete(s),i.forEach(l=>{o.append(s,l.toString())});continue}!o.has(s)&&!i||o.set(s,i.toString())}const a=o.toString()!==""?`?${o.toString()}`:"";window.history.replaceState(t.toRaw(e),document.title,`${window.location.pathname}${a}`)},{deep:!0}),r},yd={class:"px-4 flex items-center justify-between sm:px-0"},wd={class:"w-0 flex-1 flex"},xd={class:"hidden md:flex"},Cd=["onClick","textContent"],Ed={class:"w-0 flex-1 flex justify-end"},Ir=t.defineComponent({__name:"Paginator",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const r=t.useModel(n,"modelValue"),e=a=>{r.value={...r.value,page:a}},o=t.computed(()=>{const a=[];if(r.value.totalPages<=4){for(let i=0;i<r.value.totalPages;i++)a.push(i+1);return a}if(r.value.totalPages-r.value.page>=3){for(let i=0;i<4;i++)a.push(r.value.page+i);return a}for(let i=0;i<4;i++)a.unshift(r.value.totalPages-i);return a});return(a,s)=>(t.openBlock(),t.createElementBlock("div",yd,[t.createElementVNode("div",wd,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pr-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",r.value.page==1?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:s[0]||(s[0]=t.withModifiers(i=>e(r.value.page-1),["prevent"]))},s[2]||(s[2]=[t.createElementVNode("svg",{class:"mr-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1),t.createTextVNode(" Previous ")]),2)]),t.createElementVNode("div",xd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,i=>(t.openBlock(),t.createElementBlock("a",{key:i,href:"#",class:t.normalizeClass(["-mt-px border-t-2 pt-4 px-4 inline-flex items-center text-sm leading-5 font-medium",r.value.page===i?"border-blue-500 text-blue-600 focus:outline-none focus:text-blue-800 focus:border-blue-700":"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400"]),onClick:t.withModifiers(l=>e(i),["prevent"]),textContent:t.toDisplayString(i)},null,10,Cd))),128))]),t.createElementVNode("div",Ed,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pl-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",r.value.page>=r.value.totalPages?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:s[1]||(s[1]=t.withModifiers(i=>e(r.value.page+1),["prevent"]))},s[3]||(s[3]=[t.createTextVNode(" Next "),t.createElementVNode("svg",{class:"ml-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),2)])]))}}),kd={key:0,class:"flex"},us=t.defineComponent({__name:"DetailList",props:{borderless:{type:Boolean,default:!1},defaultSort:{default:"created_at"},defaultSortDir:{default:"desc"},disableDate:{type:Boolean,default:!1},disableNavigation:{type:Boolean,default:!1},perPage:{default:10},url:{}},setup(n,{expose:r}){const e=n,o=t.ref({minDate:0,maxDate:0}),a=t.ref([]),s=t.ref({page:1,perPage:e.perPage,totalItems:0,totalPages:0}),i=t.ref(e.defaultSort),l=t.ref(e.defaultSortDir),c=()=>{const h={maxDate:o.value.maxDate,minDate:o.value.minDate,page:s.value.page,perPage:s.value.perPage,q:"",sort:i.value,sortDir:l.value};ur.get(e.url,{},h).then(y=>{s.value={page:y.data.page,perPage:y.data.perPage,totalItems:y.data.totalItems,totalPages:y.data.totalPages},a.value=y.data.items},()=>{Or.genericError()})},d=t.computed(()=>!!a.value.length),u=t.computed(()=>!e.disableDate),f=t.computed(()=>!e.disableNavigation&&d),g={refresh:c,reset:()=>{s.value.page=1,c()}};return t.watch([l,o],()=>{c()}),r(g),c(),(h,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"mt-4 space-y-2":u.value})},[h.disableDate?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",kd,[t.createVNode(Ar,{"date-range":o.value,"sort-dir":l.value,onSortDirChanged:y[0]||(y[0]=w=>l.value=w),onDateRangeChanged:y[1]||(y[1]=w=>o.value=w)},null,8,["date-range","sort-dir"])])),d.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["overflow-hidden",{"shadow sm:rounded-md border":!h.borderless}])},[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(w,C)=>(t.openBlock(),t.createElementBlock("li",{key:C,class:t.normalizeClass({"border-t border-gray-200":C>0})},[t.renderSlot(h.$slots,"default",{item:w})],2))),128))])],2)):t.renderSlot(h.$slots,"empty",{key:2},()=>[y[4]||(y[4]=t.createTextVNode(" No items were found! "))]),f.value?(t.openBlock(),t.createBlock(Ir,{key:3,modelValue:s.value,"onUpdate:modelValue":[y[2]||(y[2]=w=>s.value=w),y[3]||(y[3]=w=>c())]},null,8,["modelValue"])):t.createCommentVNode("",!0)],2))}}),Dd=["href"],fs=t.defineComponent({__name:"DownloadCell",props:{propsData:{},attribute:{}},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("a",{href:r.propsData[r.attribute]},[t.createVNode(t.unref(xc),{class:"h-6 w-6 group-hover:text-gray-500 transition"})],8,Dd))}}),Nd={class:"fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]"},Sd={class:"rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden"},_d={class:"p-4"},vd={class:"flex items-center"},Vd={class:"w-0 flex-1 flex justify-between"},Td=["innerHTML"],$d={class:"ml-4 shrink-0 flex"},Bd=["onClick"],Pn=t.defineComponent({__name:"Flash",setup(n){const{flasher:r,flashes:e}=it(),o=a=>{switch(a){case"warning":return"border-orange-500";case"error":return"border-red-500";case"info":return"border-blue-500";case"success":return"border-green-500"}};return t.onMounted(()=>{hd(r)}),(a,s)=>(t.openBlock(),t.createBlock(t.unref(mr),null,{default:t.withCtx(()=>[t.createElementVNode("div",Nd,[t.createVNode(t.TransitionGroup,{tag:"div",class:"max-w-sm space-y-2 w-full","enter-active-class":"ease-out duration-300","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),([i,l])=>(t.openBlock(),t.createElementBlock("div",{key:l.message,class:t.normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform z-10",[o(l.type)]])},[t.createElementVNode("div",Sd,[t.createElementVNode("div",_d,[t.createElementVNode("div",vd,[t.createElementVNode("div",Vd,[t.createElementVNode("p",{class:"w-0 flex-1 text-sm leading-5 font-medium text-gray-900",innerHTML:l.message},null,8,Td)]),t.createElementVNode("div",$d,[t.createElementVNode("button",{class:"inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",onClick:c=>t.unref(r).remove(i)},s[0]||(s[0]=[t.createElementVNode("svg",{class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,Bd)])])])])],2))),128))]),_:1})])]),_:1}))}});function Md(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function Pd(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h7"})])}function Ad(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})])}function ps(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"})])}function Ht(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})])}const Rd={class:"flex"},Od={class:"flex-shrink-0"},Id={class:"ml-2.5"},Ld={key:0,role:"list",class:"list-disc space-y-1 pl-5"},Fd={key:1},jd={key:1,class:"mt-4"},Hd={class:"flex flex-col gap-y-1.5 -mx-2 sm:flex-row sm:gap-x-3 sm:items-center"},Ud={key:0},zd=["href","role"],qd={key:1},Wd=["href","role"],Yd={key:0,class:"ml-auto pl-3"},Kd={class:"-mx-1.5 -my-1.5"},ms=t.defineComponent({__name:"InlineAlert",props:{btnLink:{default:""},btnText:{default:""},content:{},dismissable:{type:Boolean,default:!1},secondaryBtnLink:{default:""},secondaryBtnText:{default:""},title:{default:""},kind:{}},emits:["close","click","click:secondary"],setup(n,{emit:r}){const e=n,o=r,a=t.ref(!0),s=()=>{a.value=!1,o("close",!0)},i=t.computed(()=>{const c={bgColor:"",btnAction:"",btnClose:"",contentColor:"",iconColor:""};switch(e.kind){case"alert":c.bgColor="bg-red-50",c.btnAction="bg-red-50 text-red-900 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50",c.btnClose="bg-red-50 text-red-600 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50",c.contentColor="text-red-800",c.iconColor="text-red-400";break;case"info":c.bgColor="bg-blue-50",c.btnAction="bg-blue-50 text-blue-900 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50",c.btnClose="bg-blue-50 text-blue-600 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50",c.contentColor="text-blue-800",c.iconColor="text-blue-400";break;case"success":c.bgColor="bg-emerald-50",c.btnAction="bg-emerald-50 text-emerald-900 hover:bg-emerald-100 focus:ring-emerald-600 focus:ring-offset-emerald-50",c.btnClose="bg-emerald-50 text-emerald-600 hover:bg-emerald-100 focus:ring-emerald-600 focus:ring-offset-emerald-50",c.contentColor="text-emerald-800",c.iconColor="text-emerald-400";break;case"warn":c.bgColor="bg-amber-50",c.btnAction="bg-amber-50 text-amber-900 hover:bg-amber-100 focus:ring-amber-600 focus:ring-offset-amber-50",c.btnClose="bg-amber-50 text-amber-600 hover:bg-amber-100 focus:ring-amber-600 focus:ring-offset-amber-50",c.contentColor="text-amber-800",c.iconColor="text-amber-400";break}return c}),l=t.computed(()=>{let c=null;switch(e.kind){case"alert":c=kc;break;case"info":c=Ec;break;case"success":c=Ta;break;case"warn":c=Cc;break}return c});return(c,d)=>a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["rounded-xy p-4",i.value.bgColor])},[t.createElementVNode("div",Rd,[t.createElementVNode("div",Od,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value),{class:t.normalizeClass(["h-5 w-5",i.value.iconColor]),"aria-hidden":"true"},null,8,["class"]))]),t.createElementVNode("div",Id,[c.title?(t.openBlock(),t.createElementBlock("h3",{key:0,class:t.normalizeClass(["text-sm leading-snug font-semibold mb-1.5",i.value.contentColor])},t.toDisplayString(c.title),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["text-sm",i.value.contentColor])},[Array.isArray(c.content)?(t.openBlock(),t.createElementBlock("ul",Ld,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.content,(u,f)=>(t.openBlock(),t.createElementBlock("li",{key:f},t.toDisplayString(u),1))),128))])):(t.openBlock(),t.createElementBlock("p",Fd,t.toDisplayString(c.content),1))],2),c.btnText||c.secondaryBtnText?(t.openBlock(),t.createElementBlock("div",jd,[t.createElementVNode("div",Hd,[c.btnText?(t.openBlock(),t.createElementBlock("div",Ud,[t.createElementVNode("a",{class:t.normalizeClass(["inline-flex rounded-3xl px-2.5 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2",i.value.btnAction]),href:c.btnLink,role:c.btnLink?"link":"button",onClick:d[0]||(d[0]=u=>c.$emit("click",u))},t.toDisplayString(c.btnText),11,zd)])):t.createCommentVNode("",!0),c.secondaryBtnText?(t.openBlock(),t.createElementBlock("div",qd,[t.createElementVNode("a",{class:t.normalizeClass(["inline-flex rounded-3xl px-2.5 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2",i.value.btnAction]),href:c.secondaryBtnLink,role:c.secondaryBtnLink?"link":"button",onClick:d[1]||(d[1]=u=>c.$emit("click:secondary",u))},t.toDisplayString(c.secondaryBtnText),11,Wd)])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]),c.dismissable?(t.openBlock(),t.createElementBlock("div",Yd,[t.createElementVNode("div",Kd,[t.createElementVNode("button",{class:t.normalizeClass(["inline-flex rounded-md p-1.5 focus:outline-none focus:ring-2 focus:ring-offset-2",i.value.btnClose]),type:"button",onClick:s},[d[2]||(d[2]=t.createElementVNode("span",{class:"sr-only"},"close",-1)),t.createVNode(t.unref(Ht),{class:"h-4 w-4"})],2)])])):t.createCommentVNode("",!0)])],2)):t.createCommentVNode("",!0)}}),Gd={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Jd={class:"block absolute top-0 right-0 pt-4 pr-4 sm:pt-6 sm:pr-8"},Xd={class:"bg-white px-4 pt-5 pb-4 sm:p-8 sm:pb-6"},Zd={class:"mt-3 sm:mt-0 sm:text-left"},Qd={class:"mt-2"},eu={key:0,class:"bg-gray-50 px-4 py-3 sm:py-4 sm:px-8 sm:flex sm:flex-row-reverse"},tu=["disabled","textContent"],hs=t.defineComponent({__name:"Modal",props:t.mergeModels({destructive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},wide:{type:Boolean,default:!1},submitText:{default:""},title:{default:""}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:t.mergeModels(["close","submit"],["update:modelValue"]),setup(n,{emit:r}){const e=t.useModel(n,"modelValue"),o=r,a=()=>{o("submit")};return t.watch(e,s=>{s||o("close")}),(s,i)=>(t.openBlock(),t.createBlock(t.unref(Rt),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(bn),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:e.value,onClose:i[3]||(i[3]=l=>e.value=!1)},{default:t.withCtx(()=>[t.createElementVNode("div",Gd,[t.createVNode(t.unref(Ye),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(yn),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),i[5]||(i[5]=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1)),t.createVNode(t.unref(Ye),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["inline-block align-bottom bg-white rounded-xy text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:rounded-xy-lg w-full",s.wide?"sm:max-w-6xl":"sm:max-w-2xl"])},[t.createElementVNode("div",Jd,[t.createElementVNode("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",onClick:i[0]||(i[0]=l=>e.value=!1)},[i[4]||(i[4]=t.createElementVNode("span",{class:"sr-only"},"Close",-1)),t.createVNode(t.unref(Ht),{class:"h-6 w-6","aria-hidden":"true"})])]),t.createElementVNode("div",Xd,[t.createElementVNode("div",Zd,[t.createVNode(t.unref(br),{as:"h3",class:"text-center text-lg leading-6 font-medium text-gray-900"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.title),1)]),_:1}),t.createElementVNode("div",Qd,[t.renderSlot(s.$slots,"default")])])]),s.submitText?(t.openBlock(),t.createElementBlock("div",eu,[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["xy-btn w-full sm:ml-3 sm:w-auto sm:text-sm",[s.destructive?"xy-btn-red":"xy-btn"]]),disabled:s.disabled,onClick:i[1]||(i[1]=l=>a()),textContent:t.toDisplayString(s.submitText)},null,10,tu),t.createElementVNode("button",{type:"button",class:"xy-btn-neutral mt-3 w-full sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:i[2]||(i[2]=l=>e.value=!1)}," Cancel ")])):t.createCommentVNode("",!0),t.renderSlot(s.$slots,"buttons")],2)]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"]))}}),nu={class:"aspect-square overflow-hidden"},ru={class:"flex justify-center relative"},ou={class:"sr-only"},Lr=t.defineComponent({__name:"XYSpinner",setup(n){const r=t.useAttrs();return(e,o)=>{var a,s;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass((a=t.unref(r))!=null&&a.class?(s=t.unref(r))==null?void 0:s.class:"h-20 w-20"),role:"status"},[t.createElementVNode("div",nu,[t.createElementVNode("div",ru,[t.createElementVNode("p",ou,[t.renderSlot(e.$slots,"default",{},()=>[o[0]||(o[0]=t.createTextVNode("loading"))])]),o[1]||(o[1]=t.createStaticVNode('<div class="animate-spin-gear drop-shadow-sm"><svg class="h-full w-full text-xy-green-300" viewBox="0 0 129 129" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><polygon id="path-1" points="0.000248076923 0.48676924 128.472837 0.48676924 128.472837 128.800648 0.000248076923 128.800648"></polygon></defs><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-6-Copy-3"><g id="Group-3"><mask id="mask-2" fill="white"><use xlink:href="#path-1"></use></mask><g id="Clip-2"></g><path id="Fill-1" d="M86.3955173,100.279324 C86.3955173,100.279324 79.4778923,106.213874 64.2360462,106.755809 C48.9954404,106.213874 42.0778154,100.279324 42.0778154,100.279324 C11.8756904,81.4963011 25.2309115,49.088357 25.2309115,49.088357 C36.5680269,24.1350542 59.1839596,22.5554236 63.8105942,22.4983139 L63.8105942,22.5043894 C63.8105942,22.5043894 63.9681231,22.4983139 64.2360462,22.4958837 C64.5052096,22.4983139 64.6627385,22.5043894 64.6627385,22.5043894 L64.6627385,22.4983139 C69.2881327,22.5554236 91.9053058,24.1350542 103.241181,49.088357 C103.241181,49.088357 116.596402,81.4963011 86.3955173,100.279324 L86.3955173,100.279324 Z M128.473085,68.8191581 L128.473085,60.4677727 L117.036738,58.80187 L115.10794,49.3726905 L124.970238,43.4186983 L121.675777,35.7307578 L110.49619,38.6214817 L106.161046,32.1486416 L113.220075,23.080347 L107.361738,17.0716753 L97.9645846,23.7437918 L89.14545,17.842049 L91.8693346,6.72144964 L84.04995,3.59378109 L78.2114596,13.4628269 L69.5907865,11.8127205 L67.908825,0.48676924 L64.6627385,0.48676924 L63.8105942,0.48676924 L60.5645077,0.48676924 L58.8813058,11.8127205 L50.2618731,13.4628269 L44.4233827,3.59378109 L36.6039981,6.72144964 L39.3278827,17.842049 L30.5087481,23.7437918 L21.1103538,17.0716753 L15.2520173,23.080347 L22.3122865,32.1486416 L17.9771423,38.6214817 L6.79755577,35.7307578 L3.50185385,43.4186983 L13.3641519,49.3726905 L11.4365942,58.80187 L0.000248076923,60.4677727 L0.000248076923,68.8191581 L11.4365942,70.4850608 L13.1036712,79.0223566 L3.13718077,84.8050196 L6.29644038,92.5488548 L17.5244019,89.8513318 L23.4832096,98.5854738 L16.7466808,107.893143 L22.8134019,113.695248 L31.9699212,106.70356 L38.5067481,110.99651 L35.5881231,122.068505 L43.35045,125.332265 L49.3625942,115.565287 L58.8813058,117.47421 L60.5645077,128.801377 L63.6927577,128.801377 L64.780575,128.801377 L67.908825,128.801377 L69.5907865,117.47421 L79.1107385,115.565287 L85.1228827,125.332265 L92.8852096,122.068505 L89.9665846,110.99651 L96.5034115,106.70356 L105.659931,113.695248 L111.725412,107.893143 L104.988883,98.5854738 L110.94769,89.8513318 L122.175652,92.5488548 L125.334912,84.8050196 L115.369662,79.0223566 L117.035498,70.4850608 L128.473085,68.8191581 Z" fill="currentColor" mask="url(#mask-2)"></path></g></g></g></svg></div><div class="absolute top-0 left-0 right-0 bottom-0 flex justify-center items-center transform scale-50"><svg viewBox="0 0 280 280" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path class="fill-xy-green" d="m17.57,94.37c-3.36,13.54-5.07,28.73-5.07,45.63,0,32.02,6.04,58,18.1,77.95,3.81,4.98,7.46,9.94,10.95,14.66,21.21,23.24,54.01,34.89,98.45,34.89.71,0,1.39-.03,2.09-.03-3.62-46.93-22.27-88.31-54.36-124.11-19.79-22.07-42.96-38.86-70.16-48.99Z"></path><path class="fill-xy-blue" d="m267.5,140c0-85-42.5-127.5-127.5-127.5-55.06,0-92.27,17.86-111.66,53.53,28.32,8.48,56.67,16.85,84.98,25.37,27.05,8.14,54.01,16.55,81.06,24.67,5.45,1.64,7.5,4.76,6.63,10.27-.69,4.35-1.04,8.75-1.57,13.13-4.95,40.77-8.32,81.74-12.43,122.61,53.64-13.88,80.49-54.56,80.49-122.08Z"></path></svg></div>',2))])])],2)}}}),au={key:0,class:"fixed top-0 left-0 flex flex-col items-center justify-center w-full h-full cursor-not-allowed z-40 bg-gray-50 bg-opacity-60"},su={class:"mt-2"},An=t.defineComponent({__name:"Spinner",setup(n){const{idx:r,loading:e,maxIdx:o,messages:a,msg:s,showMsg:i}=Ho(),l=()=>{r.value++,r.value>o.value&&(r.value=0),a.value&&(s.value=a.value[r.value]),i.value=!0},c=()=>{window.setTimeout(()=>{i.value=!1},2500)};return(d,u)=>(t.openBlock(),t.createBlock(t.unref(mr),null,{default:t.withCtx(()=>[t.unref(e)?(t.openBlock(),t.createElementBlock("div",au,[t.createVNode(Lr,{class:"w-32 h-32"}),t.withDirectives(t.createElementVNode("div",su,[t.createVNode(t.Transition,{appear:"","enter-active-class":"ease-out duration-1000","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-500","leave-from-class":"opacity-100","leave-to-class":"opacity-0",onAfterEnter:c,onAfterLeave:l},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{class:"container font-medium text-lg leading-snug text-center transition-opacity"},t.toDisplayString(t.unref(s)),513),[[t.vShow,t.unref(i)]])]),_:1})],512),[[t.vShow,t.unref(a)]])])):t.createCommentVNode("",!0)]),_:1}))}}),iu={class:"h-screen flex overflow-hidden bg-gray-50"},lu={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white"},cu={class:"absolute top-0 right-0 -mr-12 pt-2"},du={class:"shrink-0 flex justify-center px-4"},uu=["src"],fu={class:"mt-5 flex flex-col flex-1 h-0 overflow-y-auto"},pu={class:"flex-1 px-2"},mu={class:"space-y-1"},hu=["href","target"],gu={key:0,class:"mt-auto"},bu={class:"mt-6 px-2"},yu={class:"hidden lg:flex lg:shrink-0"},wu={class:"flex flex-col w-64"},xu={class:"flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"},Cu={class:"flex justify-center shrink-0 px-4"},Eu=["src"],ku={class:"mt-5 grow flex flex-col"},Du={class:"flex-1 px-2 bg-white"},Nu={class:"space-y-1"},Su=["href","target"],_u={key:0,class:"mt-atuo"},vu={class:"mt-6 px-2"},Vu={class:"flex flex-col w-0 flex-1 overflow-hidden"},Tu={class:"relative z-10 shrink-0 flex h-16 bg-xy-blue shadow"},$u={class:"flex-1 px-4 flex justify-between"},Bu={class:"flex-1 flex"},Mu={class:"flex items-center text-base leading-snug sm:text-2xl text-white"},Pu={class:"ml-4 flex items-center lg:ml-6"},Au=["href"],Ru={class:"flex-1 relative overflow-y-auto focus:outline-none"},Ou={class:"mx-auto"},gs=t.defineComponent({__name:"SidebarLayout",props:{activeUrl:{default:""},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=t.ref(!1),o=a=>r.activeUrl===a;return(a,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",iu,[t.createVNode(t.unref(Rt),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(bn),{as:"div",static:"",class:"fixed inset-0 flex z-10 lg:hidden",open:e.value,onClose:s[1]||(s[1]=i=>e.value=!1)},{default:t.withCtx(()=>[t.createVNode(t.unref(Ye),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(yn),{class:"fixed inset-0 bg-gray-600 bg-opacity-75"})]),_:1}),t.createVNode(t.unref(Ye),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:t.withCtx(()=>[t.createElementVNode("div",lu,[t.createVNode(t.unref(Ye),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createElementVNode("div",cu,[t.createElementVNode("button",{class:"ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",onClick:s[0]||(s[0]=i=>e.value=!1)},[s[3]||(s[3]=t.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1)),t.createVNode(t.unref(Ht),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),t.createElementVNode("div",du,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,uu)]),t.createElementVNode("div",fu,[t.createElementVNode("div",pu,[t.renderSlot(a.$slots,"sidebar-nav",{},()=>[t.createElementVNode("nav",mu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,i=>(t.openBlock(),t.createElementBlock("a",{key:i.name,href:i.url,class:t.normalizeClass([o(i.url)?"bg-gray-100 text-gray-900":"text-gray-700 hover:bg-gray-50 hover:text-gray-900","group flex items-center px-2 py-2 text-base font-semibold rounded-md"]),target:i.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.icon),{class:t.normalizeClass([o(i.url)?"text-gray-600":"text-gray-500 group-hover:text-gray-600","mr-4 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(i.name),1)],10,hu))),128))])])]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",gu,[t.createElementVNode("div",bu,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])]),_:3}),s[4]||(s[4]=t.createElementVNode("div",{class:"shrink-0 w-14","aria-hidden":"true"},null,-1))]),_:3},8,["open"])]),_:3},8,["show"]),t.createElementVNode("div",yu,[t.createElementVNode("div",wu,[t.createElementVNode("div",xu,[t.createElementVNode("div",Cu,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,Eu)]),t.createElementVNode("div",ku,[t.createElementVNode("div",Du,[t.renderSlot(a.$slots,"sidebar-nav",{},()=>[t.createElementVNode("nav",Nu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,i=>(t.openBlock(),t.createElementBlock("a",{key:i.name,href:i.url,class:t.normalizeClass([o(i.url)?"bg-gray-100 text-gray-900":"text-gray-800 hover:bg-gray-100 hover:text-gray-900","group flex items-center px-2 py-2 text-sm font-semibold rounded-md"]),target:i.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.icon),{class:t.normalizeClass([o(i.url)?"text-gray-600":"text-gray-400 group-hover:text-gray-600","mr-3 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(i.name),1)],10,Su))),128))])])]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",_u,[t.createElementVNode("div",vu,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])])]),t.createElementVNode("div",Vu,[t.createElementVNode("div",Tu,[t.createElementVNode("button",{class:"px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500 lg:hidden",onClick:s[2]||(s[2]=i=>e.value=!0)},[s[5]||(s[5]=t.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1)),t.createVNode(t.unref(Pd),{class:"h-6 w-6","aria-hidden":"true"})]),t.createElementVNode("div",$u,[t.createElementVNode("div",Bu,[t.createElementVNode("h1",Mu,[t.renderSlot(a.$slots,"header")])]),t.createElementVNode("div",Pu,[t.createVNode(t.unref(yr),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(wr),{class:"max-w-xs flex items-center text-sm text-white rounded-full hover:bg-blue-900 hover:text-gray-50 focus:outline-none focus:ring focus:text-white"},{default:t.withCtx(()=>[s[6]||(s[6]=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1)),t.createVNode(t.unref(yc),{class:"h-8 w-8",fill:"currentColor"})]),_:1})]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createVNode(t.unref(xr),{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.userNavigation,i=>(t.openBlock(),t.createBlock(t.unref(Cr),{key:i.name},{default:t.withCtx(({active:l})=>[t.createElementVNode("a",{href:i.url,class:t.normalizeClass([l?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(i.name),11,Au)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),t.createElementVNode("main",Ru,[t.createElementVNode("div",Ou,[t.renderSlot(a.$slots,"default")])])])]),t.createVNode(Pn),t.createVNode(An)],64))}}),Ut=t.defineComponent({__name:"Popover",props:{as:{default:"div"},position:{default:"auto"}},setup(n){const r=n,e=t.useTemplateRef("trigger"),o=t.useTemplateRef("wrapper"),a=t.computed(()=>{const l=[Pc(5),Rc()];return r.position==="auto"&&l.push(Mc()),l}),s=t.computed(()=>{if(r.position!=="auto")return r.position}),{floatingStyles:i}=rs(e,o,{middleware:a,placement:s,strategy:"fixed",whileElementsMounted:Qa});return(l,c)=>(t.openBlock(),t.createBlock(t.unref(ya),{as:l.as,class:"relative"},{default:t.withCtx(({open:d,close:u})=>[t.createVNode(t.unref(ac),{ref:"trigger"},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"button",{open:d,close:u})]),_:2},1536),t.createElementVNode("div",{ref:"wrapper",class:"z-[5]",style:t.normalizeStyle(t.unref(i))},[t.createVNode(t.unref(sc),null,{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default",{open:d,close:u})]),_:2},1024)],4)]),_:3},8,["as"]))}}),Iu=(n,r)=>{const e=n.__vccOpts||n;for(const[o,a]of r)e[o]=a;return e},Lu={},Fu={class:"w-full max-w-xs bg-white rounded-xy p-2 border border-gray-100 shadow-md"};function ju(n,r){return t.openBlock(),t.createElementBlock("div",Fu,[t.renderSlot(n.$slots,"default")])}const bs=Iu(Lu,[["render",ju]]),Hu={class:"absolute inset-0 overflow-hidden"},Uu={class:"fixed inset-y-0 right-0 pl-10 max-w-full flex"},zu={class:"w-screen max-w-md"},qu={class:"h-full flex flex-col bg-white shadow-xl overflow-y-scroll"},Wu={class:"py-6 px-4 bg-xy-blue-700 sm:px-6"},Yu={class:"flex items-center justify-between"},Ku={class:"ml-3 h-7 flex items-center"},Gu={class:"mt-1"},Ju=["textContent"],Xu={class:"relative flex-1 py-6 px-4 sm:px-6"},ys=t.defineComponent({__name:"Slideover",props:t.mergeModels({header:{},description:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:t.mergeModels(["close"],["update:modelValue"]),setup(n,{emit:r}){const e=t.useModel(n,"modelValue"),o=r;return t.watch(e,a=>{a||o("close")}),(a,s)=>(t.openBlock(),t.createBlock(t.unref(Rt),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(bn),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-hidden bg-black bg-opacity-50",open:e.value,onClose:s[1]||(s[1]=i=>e.value=!1)},{default:t.withCtx(()=>[t.createElementVNode("div",Hu,[t.createVNode(t.unref(yn),{class:"absolute inset-0"}),t.createElementVNode("div",Uu,[t.createVNode(t.unref(Ye),{as:"template",enter:"transform transition ease-in-out duration-500 sm:duration-700","enter-from":"translate-x-full","enter-to":"translate-x-0",leave:"transform transition ease-in-out duration-500 sm:duration-700","leave-from":"translate-x-0","leave-to":"translate-x-full"},{default:t.withCtx(()=>[t.createElementVNode("div",zu,[t.createElementVNode("div",qu,[t.createElementVNode("div",Wu,[t.createElementVNode("div",Yu,[t.createVNode(t.unref(br),{as:"h3",class:"text-white"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.header),1)]),_:1}),t.createElementVNode("div",Ku,[t.createElementVNode("button",{class:"bg-xy-blue-600 rounded-md text-gray-50 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",onClick:s[0]||(s[0]=i=>e.value=!1)},[s[2]||(s[2]=t.createElementVNode("span",{class:"sr-only"},"Close panel",-1)),t.createVNode(t.unref(Ht),{class:"h-6 w-6","aria-hidden":"true"})])])]),t.createElementVNode("div",Gu,[t.createElementVNode("p",{class:"text-gray-50 text-base font-medium",textContent:t.toDisplayString(a.description)},null,8,Ju)])]),t.createElementVNode("div",Xu,[t.renderSlot(a.$slots,"default")]),t.renderSlot(a.$slots,"footer")])])]),_:3})])])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Zu=["onMouseover","onMouseleave"],Qu=["onMouseleave"],ef={class:"max-w-xs"},ws=t.defineComponent({__name:"Tooltip",props:{as:{default:"span"},position:{default:"auto"}},setup(n){var r=!1,e=null;const o=s=>{r=!1,e&&clearTimeout(e),e=setTimeout(()=>{r||s()},100)},a=(s,i)=>{r=!0,!i&&s.target&&s.target.click()};return(s,i)=>(t.openBlock(),t.createBlock(Ut,{position:s.position,as:s.as},{button:t.withCtx(({open:l,close:c})=>[t.createElementVNode("div",{class:"leading-none relative w-4 h-4",onMouseover:d=>a(d,l),onMouseleave:d=>o(c)},[t.createVNode(t.unref(Md)),i[1]||(i[1]=t.createElementVNode("div",{class:"p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},null,-1))],40,Zu)]),default:t.withCtx(({close:l})=>[t.createElementVNode("div",{class:"sm:min-w-max bg-white rounded-xy px-3.5 py-2.5 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium",onMouseover:i[0]||(i[0]=t.withModifiers(c=>t.isRef(r)?r.value=!0:r=!0,["prevent"])),onMouseleave:t.withModifiers(c=>o(l),["prevent"])},[t.createElementVNode("div",ef,[t.renderSlot(s.$slots,"default")])],40,Qu)]),_:3},8,["position","as"]))}}),tf={class:"min-h-screen bg-gray-50"},nf={class:"mx-auto px-4 sm:px-6 lg:px-8"},rf={class:"flex justify-between h-16"},of={class:"flex"},af={class:"shrink-0 flex items-center"},sf=["src"],lf={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},cf=["href","aria-current"],df={class:"hidden sm:ml-6 sm:flex sm:items-center"},uf=["href"],ff={class:"-mr-2 flex items-center sm:hidden"},pf={class:"pt-2 pb-3 space-y-1"},mf=["href","aria-current"],hf={class:"pt-4 pb-3 border-t border-gray-200"},gf={class:"flex items-center px-4"},bf={class:"shrink-0"},yf={class:"ml-3"},wf=["textContent"],xf=["textContent"],Cf={class:"mt-3 space-y-1"},Ef=["href"],kf={class:"mx-auto sm:px-6 lg:px-8"},Df={class:"px-4 py-8 sm:px-0"},xs=t.defineComponent({__name:"StackedLayout",props:{activeUrl:{default:""},currentUser:{},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=o=>r.activeUrl===o;return(o,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",tf,[t.createVNode(t.unref(Xl),{as:"nav",class:"bg-white shadow-sm"},{default:t.withCtx(({open:s})=>[t.createElementVNode("div",nf,[t.createElementVNode("div",rf,[t.createElementVNode("div",of,[t.createElementVNode("div",af,[t.createElementVNode("img",{class:"block h-8 w-auto",src:o.iconUrl,alt:"XY Trees"},null,8,sf)]),t.createElementVNode("div",lf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,i=>(t.openBlock(),t.createElementBlock("a",{key:i.name,href:i.url,class:t.normalizeClass([e(i.url)?"border-blue-500 text-gray-900":"border-transparent text-gray-700 hover:text-gray-900 hover:border-blue-500","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-semibold"]),"aria-current":e(i.url)?"page":void 0},t.toDisplayString(i.name),11,cf))),128))])]),t.createElementVNode("div",df,[t.createVNode(t.unref(yr),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(wr),{class:"bg-white flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[a[0]||(a[0]=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1)),t.createVNode(t.unref(ps),{class:"text-gray-500 h-8 w-8 rounded-full"})]),_:1})]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createVNode(t.unref(xr),{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,i=>(t.openBlock(),t.createBlock(t.unref(Cr),{key:i.name},{default:t.withCtx(({active:l})=>[t.createElementVNode("a",{href:i.url,class:t.normalizeClass([l?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(i.name),11,uf)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),t.createElementVNode("div",ff,[t.createVNode(t.unref(Zl),{class:"bg-white inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[a[1]||(a[1]=t.createElementVNode("span",{class:"sr-only"},"Open main menu",-1)),s?(t.openBlock(),t.createBlock(t.unref(Ht),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(t.openBlock(),t.createBlock(t.unref(Ad),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),t.createVNode(t.unref(Ql),{class:"sm:hidden"},{default:t.withCtx(()=>[t.createElementVNode("div",pf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,i=>(t.openBlock(),t.createElementBlock("a",{key:i.name,href:i.url,class:t.normalizeClass([e(i.url)?"bg-blue-50 border-blue-500 text-blue-700":"border-transparent text-gray-700 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-900","block pl-3 pr-4 py-2 border-l-4 text-base font-semibold"]),"aria-current":e(i.url)?"page":void 0},t.toDisplayString(i.name),11,mf))),128))]),t.createElementVNode("div",hf,[t.createElementVNode("div",gf,[t.createElementVNode("div",bf,[t.createVNode(t.unref(ps),{class:"text-gray-500 h-10 w-10 rounded-full"})]),t.createElementVNode("div",yf,[o.currentUser.name?(t.openBlock(),t.createElementBlock("div",{key:0,class:"text-base font-medium text-gray-800",textContent:t.toDisplayString(o.currentUser.name)},null,8,wf)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"text-sm font-medium text-gray-500",textContent:t.toDisplayString(o.currentUser.email)},null,8,xf)])]),t.createElementVNode("div",Cf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,i=>(t.openBlock(),t.createElementBlock("a",{key:i.name,href:i.url,class:"block px-4 py-2 text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-100"},t.toDisplayString(i.name),9,Ef))),128))])])]),_:1})]),_:1}),t.renderSlot(o.$slots,"header"),t.createElementVNode("main",null,[t.createElementVNode("div",kf,[t.createElementVNode("div",Df,[t.renderSlot(o.$slots,"default")])])])]),t.createVNode(Pn),t.createVNode(An)],64))}}),Nf=n=>n==null,Sf={clearSelection(){console.warn("deselectAll() was called on a static table, did you mean to use DynamicTable?")},refresh(){console.warn("refresh() was called on a static table, did you mean to use DynamicTable?")},reset(){console.warn("reset() was called on a static table, did you mean to use DynamicTable?")}},Cs=(n,r,e,o=Sf)=>{const a=t.ref(r),s=t.ref(n),i=t.ref(e),l=t.computed(()=>i.value.actions.length>0),c=t.computed(()=>a.value.filter(u=>u.show??!0).map(u=>{let f="";switch((u==null?void 0:u.alignment)||"left"){case"left":f="text-left";break;case"right":f="text-right";break;case"center":f="text-center";break}return{...u,alignment:f}})),d=t.computed(()=>s.value.map((u,f)=>({actions:i.value.actions.map(p=>({...p,disabled:typeof p.disabled=="function"?p.disabled.apply(void 0,[u,f]):p.disabled,onClick:()=>p.onClick(u,f,o),show:typeof p.show=="function"?p.show.apply(void 0,[u,f]):p.show})),rowData:u,cells:c.value.map(p=>{const g=typeof p.render=="function"?p.render.apply(void 0,[u,f]):u[p.render],h=(p==null?void 0:p.classNames)||"";return{...p,isComponent:t.isVNode(g),classNames:typeof h=="function"?h.apply(void 0,[u,f]):h,val:g}})})));return{columns:c,hasActions:l,isEmptyCellValue:Nf,rows:d}},_f={key:0,class:"flex items-center space-x-2 justify-end"},vf={class:"isolate inline-flex rounded-md shadow-sm"},Vf=["disabled","onClick"],Tf={class:"relative inline-flex items-center gap-x-1.5"},Fr=t.defineComponent({__name:"TableActionButtons",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Ba(t.toRef(r,"actions"));return(a,s)=>t.unref(o)?(t.openBlock(),t.createElementBlock("div",_f,[t.createElementVNode("span",vf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(i,l)=>(t.openBlock(),t.createElementBlock("button",{key:l,type:"button",class:t.normalizeClass(["group relative inline-flex items-center bg-white px-3 py-2 text-sm font-semibold text-gray-700 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 disabled:text-gray-400 disabled:cursor-not-allowed",{"rounded-l-md":l===0,"-ml-px":l>0,"rounded-r-md":l===t.unref(e).length-1}]),disabled:i.disabled,onClick:t.withModifiers(i.onClick,["stop"])},[t.createElementVNode("span",Tf,[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.icon),{key:0,class:t.normalizeClass(["-ml-0.5 h-4 w-4 group-disabled:text-gray-300",i.label?"text-gray-400":"text-gray-600"]),"aria-hidden":"true"},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(i.label),1)])],10,Vf))),128))])])):t.createCommentVNode("",!0)}}),$f={class:"flex flex-col"},Bf={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},Mf={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},Pf={class:"overflow-hidden border-b border-gray-200 shadow sm:rounded-lg"},Af={class:"min-w-full divide-y divide-gray-200"},Rf={class:"bg-gray-100"},Of={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4"},If={class:"bg-white"},Lf={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},Ff={key:0},jf=["colspan"],Es=t.defineComponent({__name:"DataTable",props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:{},tableData:{}},setup(n){const r=n,{columns:e,hasActions:o,isEmptyCellValue:a,rows:s}=Cs(t.toRef(r,"tableData"),t.toRef(r,"tableColumns"),t.toRef(r,"tableActions"));return(i,l)=>(t.openBlock(),t.createElementBlock("div",$f,[t.createElementVNode("div",Bf,[t.createElementVNode("div",Mf,[t.createElementVNode("div",Pf,[t.createElementVNode("table",Af,[t.createElementVNode("thead",Rf,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(c,d)=>(t.openBlock(),t.createElementBlock("th",{key:d,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4",c.alignment])},t.toDisplayString(c.title),3))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("th",Of)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",If,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(c,d)=>(t.openBlock(),t.createElementBlock("tr",{key:d,class:"even:bg-gray-50"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.cells,(u,f)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:f,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",u.alignment])},{default:t.withCtx(()=>[u.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(u.classNames)},t.toDisplayString(t.unref(a)(u.val)?"-":String(u.val)),3))]),_:2},1032,["class"]))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("td",Lf,[i.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(vn),{key:0,actions:c.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Fr,{key:1,actions:c.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)]))),128)),t.unref(s).length===0?(t.openBlock(),t.createElementBlock("tr",Ff,[t.createElementVNode("td",{colspan:t.unref(e).length+(t.unref(o)?1:0),class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,jf)])):t.createCommentVNode("",!0)])])])])])]))}}),Hf={class:"flex items-center justify-center space-x-8"},Uf={class:"font-medium"},zf={class:"flex items-center space-x-5"},qf={key:0,class:"block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"},Wf={key:1,class:"relative flex items-center justify-center"},Yf={key:2,href:"#",class:"block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"},Kf={key:0,class:"flex shrink-0"},Gf={key:0,class:"inline-flex rounded-md shadow-sm"},Jf=["textContent"],Xf={class:"ml-3 inline-flex rounded-md shadow-sm"},Zf=["textContent"],ks=t.defineComponent({__name:"Steps",props:{hideActions:{type:Boolean,default:!1},hidePrevious:{type:Boolean,default:!1},nextText:{default:"Next"},previousText:{default:"Back"},step:{},total:{}},emits:["next","previous"],setup(n,{emit:r}){const e=r,o=()=>{e("next")},a=()=>{e("previous")};return(s,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("nav",Hf,[t.createElementVNode("p",Uf,"Step "+t.toDisplayString(s.step)+" of "+t.toDisplayString(s.total),1),t.createElementVNode("ul",zf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.total,l=>(t.openBlock(),t.createElementBlock("li",{key:l},[s.step>l?(t.openBlock(),t.createElementBlock("span",qf)):s.step===l?(t.openBlock(),t.createElementBlock("div",Wf,i[0]||(i[0]=[t.createElementVNode("span",{class:"absolute w-5 h-5 p-px flex"},[t.createElementVNode("span",{class:"w-full h-full rounded-full bg-green-100"})],-1),t.createElementVNode("span",{class:"relative block w-2.5 h-2.5 bg-xy-green rounded-full"},null,-1)]))):(t.openBlock(),t.createElementBlock("span",Yf))]))),128))])]),s.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Kf,[s.hidePrevious?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Gf,[t.createElementVNode("button",{type:"button",class:"xy-btn-secondary",onClick:a,textContent:t.toDisplayString(s.previousText)},null,8,Jf)])),t.createElementVNode("span",Xf,[t.createElementVNode("button",{type:"button",class:"xy-btn",onClick:o,textContent:t.toDisplayString(s.nextText)},null,8,Zf)])]))]))}}),Qf={class:"flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"},ep={key:0,class:"w-full max-w-lg lg:max-w-xs"},tp={class:"flex items-center gap-x-2"},np={class:"flex-1"},rp={key:1,class:"w-full max-w-lg lg:max-w-xs"},op={class:"flex items-center gap-x-2"},ap={class:"flex-1"},sp={class:"relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto"},ip={class:"min-w-full divide-y divide-gray-200"},lp={class:"bg-gray-100"},cp={key:0,scope:"col",class:"pl-6 w-4 leading-none"},dp=["checked","indeterminate"],up=["onClick"],fp={key:0},pp={key:1},mp={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-5 inline"},hp={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},gp={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},bp={key:1,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4"},yp={key:0},wp={colspan:"100%",class:"px-6 py-2.5 border-t bg-neutral-50"},xp={class:"flex items-center gap-x-3"},Cp={class:"text-sm shrink-0"},Ep={class:"font-medium"},kp={class:"font-medium"},Dp={key:0},Np={class:"font-medium"},Sp={class:"bg-white"},_p=["onClick"],vp={key:0,class:"pl-6 w-4 leading-none"},Vp=["disabled","value"],Tp={key:1,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},$p={key:0},Bp=["colspan"],Mp={key:0,class:"mt-4"},Ds=t.defineComponent({__name:"DynamicTable",props:t.mergeModels({tableActions:{default:()=>({type:"dropdown",actions:[]})},tableBulkActions:{default:()=>({actions:[]})},tableColumns:{},tableOptions:{}},{selected:{required:!1,default:[]},selectedModifiers:{}}),emits:t.mergeModels(["click:row"],["update:selected"]),setup(n,{expose:r}){const e=n,o=()=>{const H={minDate:d.value.minDate,maxDate:d.value.maxDate,page:u.value.page,perPage:u.value.perPage,sort:l.value,sortDir:c.value,q:f.value};w.value||C(),ur.get(e.tableOptions.url,{skipLoader:!1},H).then(M=>{u.value={page:M.data.page,perPage:M.data.perPage,totalItems:M.data.totalItems,totalPages:M.data.totalPages},i.value=M.data.items},()=>{Or.genericError()})},a=()=>{u.value.page=1,o()},s=()=>{if(h.value.maxRange){const H=new Date,M=H.setDate(H.getDate()-h.value.maxRange),Be=new Date;d.value={minDate:Math.floor(M/1e3),maxDate:Math.floor(Be.getTime()/1e3)}}},i=t.ref([]),l=t.ref(e.tableOptions.defaultSort?e.tableOptions.defaultSort:""),c=t.ref(e.tableOptions.defaultSortDirection?e.tableOptions.defaultSortDirection:"desc"),d=t.ref({minDate:0,maxDate:0}),u=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),f=t.ref(""),p=H=>{H&&(u.value.page=1,d.value=H,o())},g=H=>{l.value==H?c.value=c.value==="desc"?"asc":"desc":(l.value=H,c.value="desc"),o()},h=t.computed(()=>typeof e.tableOptions.dateSearch=="object"?e.tableOptions.dateSearch:{}),y=t.computed(()=>!!Wt.value.length),w=t.computed(()=>e.tableBulkActions.persistent??!1),C=()=>{D.value=[]},D=t.useModel(n,"selected"),S=t.computed(()=>D.value.filter(H=>L.value.includes(H))),O=t.computed(()=>e.tableBulkActions.actions.filter(H=>H.show??!0).map(H=>({...H,disabled:D.value.length===0||H.disabled,onClick:()=>H.onClick.apply(void 0,[D.value,z])}))),P=t.computed(()=>O.value.length>0),L=t.computed(()=>i.value.filter(H=>H.id===void 0?!1:!!(e.tableBulkActions.isSelectable===void 0||e.tableBulkActions.isSelectable(H))).map(H=>H.id)),B=t.computed(()=>S.value.length>0&&S.value.length===L.value.length),le=t.computed(()=>S.value.length>0&&S.value.length<L.value.length),F=H=>{const M=H.target.checked;if(w.value&&M){D.value=[...D.value,...L.value.map(Be=>Be)];return}if(w.value&&!M){D.value=D.value.filter(Be=>!L.value.includes(Be));return}if(M){D.value=L.value.map(Be=>Be);return}C()},z={clearSelection:C,refresh:o,reset:a},{columns:te,hasActions:oe,isEmptyCellValue:fe,rows:Wt}=Cs(i,t.toRef(e,"tableColumns"),t.toRef(e,"tableActions"),z);return t.watch(()=>e.tableOptions.refreshTrigger,()=>{o()}),t.watch(()=>e.tableOptions.reloadTrigger,()=>{a()}),r(z),s(),o(),(H,M)=>{const Be=t.resolveComponent("BaseInput");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Qf,[H.tableOptions.search?(t.openBlock(),t.createElementBlock("div",ep,[M[7]||(M[7]=t.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1)),t.createElementVNode("div",tp,[M[6]||(M[6]=t.createElementVNode("div",{"aria-hidden":"true",class:"shrink-0 aspect-square rounded-full bg-gray-50 text-gray-400 h-10 w-10 flex items-center justify-center pointer-events-none"},[t.createElementVNode("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1)),t.createElementVNode("div",np,[t.createVNode(Be,{id:"table-search",modelValue:f.value,"onUpdate:modelValue":M[0]||(M[0]=K=>f.value=K),modelModifiers:{trim:!0},type:"search",placeholder:"Search",onChange:M[1]||(M[1]=K=>a())},null,8,["modelValue"])])])])):t.createCommentVNode("",!0),H.tableOptions.dateSearch?(t.openBlock(),t.createElementBlock("div",rp,[M[9]||(M[9]=t.createElementVNode("label",{for:"table-date-range",class:"sr-only"},"Date Range",-1)),t.createElementVNode("div",op,[M[8]||(M[8]=t.createElementVNode("div",{"aria-hidden":"true",class:"shrink-0 aspect-square rounded-full bg-gray-50 text-gray-400 h-10 w-10 flex items-center justify-center pointer-events-none"},[t.createElementVNode("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])],-1)),t.createElementVNode("div",ap,[t.createVNode(Bn,t.mergeProps({id:"table-date-range",modelValue:d.value,"onUpdate:modelValue":M[2]||(M[2]=K=>d.value=K)},{...h.value},{"onUpdate:modelValue":p}),null,16,["modelValue"])])])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",sp,[t.createElementVNode("table",ip,[t.createElementVNode("thead",lp,[t.createElementVNode("tr",null,[P.value?(t.openBlock(),t.createElementBlock("th",cp,[t.createElementVNode("input",{class:t.normalizeClass(["h-4 w-4 rounded cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50","border-gray-300 focus:ring-xy-blue-500"]),checked:B.value,indeterminate:le.value,type:"checkbox",onChange:F},null,40,dp)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(te),(K,Yt)=>(t.openBlock(),t.createElementBlock("th",{key:Yt,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4",K.alignment])},[t.createElementVNode("div",{class:t.normalizeClass(["inline-flex items-center gap-2",{"cursor-pointer":K.sort}]),onClick:t.withModifiers(lt=>K.sort?g(K.sort):void 0,["prevent"])},[K.title?(t.openBlock(),t.createElementBlock("span",fp,t.toDisplayString(K.title),1)):t.createCommentVNode("",!0),K.sort?(t.openBlock(),t.createElementBlock("span",pp,[l.value!==K.sort?(t.openBlock(),t.createElementBlock("svg",mp,M[10]||(M[10]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},null,-1)]))):c.value=="desc"?(t.openBlock(),t.createElementBlock("svg",hp,M[11]||(M[11]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"},null,-1)]))):(t.openBlock(),t.createElementBlock("svg",gp,M[12]||(M[12]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)])))])):t.createCommentVNode("",!0)],10,up)],2))),128)),t.unref(oe)?(t.openBlock(),t.createElementBlock("th",bp)):t.createCommentVNode("",!0)]),P.value&&D.value.length>0?(t.openBlock(),t.createElementBlock("tr",yp,[t.createElementVNode("td",wp,[t.createElementVNode("div",xp,[t.createElementVNode("div",Cp,[M[15]||(M[15]=t.createTextVNode(" Selected ")),t.createElementVNode("span",Ep,t.toDisplayString(S.value.length),1),M[16]||(M[16]=t.createTextVNode(" of ")),t.createElementVNode("span",kp,t.toDisplayString(L.value.length),1),w.value?(t.openBlock(),t.createElementBlock("span",Dp,[M[13]||(M[13]=t.createTextVNode(" / ")),t.createElementVNode("span",Np,t.toDisplayString(D.value.length),1),M[14]||(M[14]=t.createTextVNode(" total "))])):t.createCommentVNode("",!0)]),t.createVNode(Fr,{actions:O.value},null,8,["actions"])])])])):t.createCommentVNode("",!0)]),t.createElementVNode("tbody",Sp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(Wt),(K,Yt)=>{var lt,zn;return t.openBlock(),t.createElementBlock("tr",{key:Yt,class:"even:bg-gray-50",onClick:He=>H.$emit("click:row",K.rowData)},[P.value?(t.openBlock(),t.createElementBlock("td",vp,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":M[3]||(M[3]=He=>D.value=He),class:t.normalizeClass(["h-4 w-4 rounded cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50","border-gray-300 focus:ring-xy-blue-500"]),disabled:!L.value.includes((lt=K.rowData)==null?void 0:lt.id),type:"checkbox",value:(zn=K.rowData)==null?void 0:zn.id},null,8,Vp),[[t.vModelCheckbox,D.value]])])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.cells,(He,Gr)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:Gr,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",He.alignment])},{default:t.withCtx(()=>[He.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(He.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(He.classNames)},t.toDisplayString(t.unref(fe)(He.val)?"-":String(He.val)),3))]),_:2},1032,["class"]))),128)),t.unref(oe)?(t.openBlock(),t.createElementBlock("td",Tp,[H.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(vn),{key:0,actions:K.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Fr,{key:1,actions:K.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)],8,_p)}),128)),y.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",$p,[t.createElementVNode("td",{colspan:t.unref(te).length+(t.unref(oe)?1:0),class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,Bp)]))])])]),y.value?(t.openBlock(),t.createElementBlock("div",Mp,[t.createVNode(t.unref(jr),{modelValue:u.value,"onUpdate:modelValue":[M[4]||(M[4]=K=>u.value=K),M[5]||(M[5]=K=>o())]},null,8,["modelValue"])])):t.createCommentVNode("",!0)])}}}),Pp={class:"flex flex-col items-center space-y-3.5 sm:flex-row sm:space-y-0 sm:gap-x-3 sm:justify-center"},Ap={class:"text-center text-sm text-neutral-700 sm:text-left sm:mr-auto"},Rp={class:"font-medium"},Op={class:"font-medium"},Ip={class:"font-medium"},Lp={class:"flex gap-3 items-center justify-center shrink-0"},Fp=["disabled"],jp={class:"max-w-[50px]"},Hp={class:"text-sm"},Up={class:"font-medium"},zp=["disabled"],qp={class:"max-w-[150px] sm:ml-auto"},jr=t.defineComponent({__name:"TablePaginator",props:t.mergeModels({pageOptions:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue"),o=t.computed({get:()=>e.value.page,set:u=>{e.value={...e.value,page:u}}}),a=t.computed({get:()=>e.value.perPage,set:u=>{e.value={...e.value,perPage:u}}}),s=t.computed(()=>r.pageOptions?r.pageOptions:[{label:"5 per page",value:5},{label:"10 per page",value:10},{label:"20 per page",value:20},{label:"50 per page",value:50}]),i=$t(u=>{u!==null&&u!==o.value&&(o.value=u)},350),l=$t(()=>{o.value<=1||(o.value=o.value-1)},250),c=$t(()=>{o.value>=e.value.totalPages||(o.value=o.value+1)},250),d=t.computed(()=>{const{page:u,perPage:f,totalItems:p}=e.value;return{start:p>0?(u-1)*f+1:0,end:Math.min(u*f,p)}});return(u,f)=>(t.openBlock(),t.createElementBlock("div",Pp,[t.createElementVNode("p",Ap,[f[3]||(f[3]=t.createTextVNode(" Showing ")),t.createElementVNode("span",Rp,t.toDisplayString(d.value.start),1),f[4]||(f[4]=t.createTextVNode(" to ")),t.createElementVNode("span",Op,t.toDisplayString(d.value.end),1),f[5]||(f[5]=t.createTextVNode(" of ")),t.createElementVNode("span",Ip,t.toDisplayString(e.value.totalItems),1),f[6]||(f[6]=t.createTextVNode(" results "))]),t.createElementVNode("div",Lp,[t.createElementVNode("button",{class:"xy-btn-neutral",disabled:o.value<=1,type:"button",onClick:f[0]||(f[0]=t.withModifiers(p=>o.value--,["prevent"]))},f[7]||(f[7]=[t.createTextVNode(" ← "),t.createElementVNode("span",{class:"sr-only"},"Previous",-1)]),8,Fp),t.createElementVNode("div",jp,[t.createVNode(t.unref(Kr),{"model-value":o.value,min:1,max:e.value.totalPages,type:"number","onUpdate:modelValue":t.unref(i),onKeydown:[t.withKeys(t.unref(l),["down"]),t.withKeys(t.unref(c),["up"])]},null,8,["model-value","max","onUpdate:modelValue","onKeydown"])]),t.createElementVNode("div",Hp,[f[8]||(f[8]=t.createTextVNode(" of ")),t.createElementVNode("span",Up,t.toDisplayString(e.value.totalPages),1)]),t.createElementVNode("button",{class:"xy-btn-neutral",disabled:o.value>=e.value.totalPages,type:"button",onClick:f[1]||(f[1]=t.withModifiers(p=>o.value++,["prevent"]))},f[9]||(f[9]=[t.createElementVNode("span",{class:"sr-only"},"Next",-1),t.createTextVNode(" → ")]),8,zp)]),t.createElementVNode("div",qp,[t.createVNode(t.unref(Mn),{modelValue:a.value,"onUpdate:modelValue":f[2]||(f[2]=p=>a.value=p),options:s.value},null,8,["modelValue","options"])])]))}}),Wp={class:"hidden sm:block"},Yp=["onClick","textContent"],Ns=t.defineComponent({__name:"Tabs",props:t.mergeModels({pillDesign:{type:Boolean,default:!1},tabs:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue"),o=(s,i)=>{let l="";return r.pillDesign?(l="px-12 py-2 font-semibold text-md leading-5 rounded-t-md focus:outline-none ",e.value===s?l=l+"focus:bg-white text-gray-700 bg-white border-b-2 border-blue-500":l=l+"text-gray-700 hover:text-gray-900 focus:text-gray-900 focus:bg-gray-100 border border-gray-200",l):(l="px-1 py-4 text-sm font-semibold border-b-2 whitespace-nowrap leading-5 focus:outline-none ",e.value===s?l=l+"border-blue-500 text-xy-blue focus:text-blue-800 focus:border-blue-700":l=l+"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:text-gray-900 focus:border-gray-300",i&&(l=l+" ml-8"),l)},a=t.computed(()=>!r.pillDesign);return(s,i)=>{const l=t.resolveComponent("Select");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["sm:hidden",{"mb-4":s.pillDesign}])},[i[1]||(i[1]=t.createElementVNode("label",{for:"tabs",class:"sr-only"},"Select a tab",-1)),t.createVNode(l,{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=c=>e.value=c),name:"tabs",options:s.tabs},null,8,["modelValue","options"])],2),t.createElementVNode("div",Wp,[t.createElementVNode("div",{class:t.normalizeClass({"border-b border-gray-200":a.value})},[t.createElementVNode("nav",{class:t.normalizeClass(["flex",[s.pillDesign?"ml-8":"-mb-px"]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.tabs,(c,d)=>(t.openBlock(),t.createElementBlock("a",{key:d,href:"#",class:t.normalizeClass(o(c.value,d>0)),onClick:t.withModifiers(u=>e.value=c.value,["prevent"]),textContent:t.toDisplayString(c.label)},null,10,Yp))),128))],2)],2)])])}}}),Kp={key:0,class:"sr-only"},Gp={class:"ml-3 mt-0.5"},Ss=t.defineComponent({inheritAttrs:!1,__name:"Toggle",props:t.mergeModels({label:{default:""},help:{default:""}},{modelValue:{type:Boolean,...J},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=t.useModel(n,"modelValue",J),e=t.useAttrs(),o=t.computed(()=>fr(e,"disabled"));return(a,s)=>(t.openBlock(),t.createBlock(t.unref(cc),{as:"div",class:"flex items-start"},{default:t.withCtx(()=>[t.createVNode(t.unref(dc),{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=i=>r.value=i),class:t.normalizeClass([r.value?"bg-xy-blue":"bg-gray-200",o.value?"opacity-75 cursor-not-allowed":"cursor-pointer","relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500"]),disabled:o.value},{default:t.withCtx(()=>[a.label?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Kp,"Use")),t.createElementVNode("span",{"aria-hidden":"true",class:t.normalizeClass([r.value?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200"])},null,2)]),_:1},8,["modelValue","class","disabled"]),t.createElementVNode("div",Gp,[a.label?(t.openBlock(),t.createBlock(t.unref(uc),{key:0},{default:t.withCtx(()=>[t.createVNode(he,{label:a.label,class:t.normalizeClass(o.value?"cursor-not-allowed":"cursor-pointer")},null,8,["label","class"])]),_:1})):t.createCommentVNode("",!0),a.help?(t.openBlock(),t.createBlock(t.unref(fc),{key:1},{default:t.withCtx(()=>[t.createVNode(ie,{text:a.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0)])]),_:1}))}}),Jp={"aria-label":"Progress"},Xp={role:"list",class:"flex items-center"},Zp={class:"absolute inset-0 flex items-center","aria-hidden":"true"},Qp=["aria-current"],em={key:1,class:"h-3 w-3 rounded-full bg-xy-blue","aria-hidden":"true"},tm={class:"sr-only"},nm={key:2,class:"sr-only"},_s=t.defineComponent({__name:"ProgressCircles",props:{current:{},steps:{}},setup(n){const r=n,e=t.computed(()=>r.steps.map((o,a)=>{let s;return r.current>a?s="complete":r.current===a?s="current":s="incomplete",{name:o.name,description:(o==null?void 0:o.description)||"",status:s}}));return(o,a)=>(t.openBlock(),t.createElementBlock("nav",Jp,[t.createElementVNode("ol",Xp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.value,(s,i)=>(t.openBlock(),t.createElementBlock("li",{key:s.name,class:t.normalizeClass([i!==e.value.length-1?"pr-8":"","relative"])},[t.createElementVNode("div",Zp,[t.createElementVNode("div",{class:t.normalizeClass(["h-0.5 w-full",s.status==="complete"?"bg-xy-blue":"bg-gray-300"])},null,2)]),t.createElementVNode("div",{class:t.normalizeClass({"relative flex h-5 w-5 items-center justify-center rounded-full":!0,"bg-xy-blue":s.status==="complete","border-2 border-indigo-600 bg-white":s.status==="current","border-2 border-gray-300 bg-white":s.status==="incomplete"}),"aria-current":s.status==="current"?!0:void 0},[s.status==="complete"?(t.openBlock(),t.createBlock(t.unref($a),{key:0,class:"h-3 w-3 text-white","aria-hidden":"true"})):s.status==="current"?(t.openBlock(),t.createElementBlock("span",em)):t.createCommentVNode("",!0),t.createElementVNode("span",tm,t.toDisplayString(s.name),1),s.description?(t.openBlock(),t.createElementBlock("span",nm,t.toDisplayString(s.description),1)):t.createCommentVNode("",!0)],10,Qp)],2))),128))])]))}}),rm={"aria-label":"Progress"},om={role:"list",class:"overflow-hidden"},am=["aria-current"],sm={class:"flex h-9 items-center"},im={key:1,class:"h-2.5 w-2.5 rounded-full bg-xy-blue"},lm={class:"ml-4 flex min-w-0 flex-col"},cm={key:0,class:"text-sm text-gray-600"},vs=t.defineComponent({__name:"ProgressCirclesLabeled",props:{current:{},steps:{}},setup(n){const r=n,e=t.computed(()=>r.steps.map((o,a)=>{let s;return r.current>a?s="complete":r.current===a?s="current":s="incomplete",{name:o.name,description:(o==null?void 0:o.description)||"",status:s}}));return(o,a)=>(t.openBlock(),t.createElementBlock("div",rm,[t.createElementVNode("ol",om,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.value,(s,i)=>(t.openBlock(),t.createElementBlock("li",{key:i,class:t.normalizeClass([i!==e.value.length-1?"pb-6":"","relative"])},[i!==e.value.length-1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["absolute left-3 top-3 -ml-px mt-0.5 h-full w-0.5",s.status==="complete"?"bg-xy-blue":"bg-gray-300"]),"aria-hidden":"true"},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"group relative flex items-start","aria-current":s.status==="current"?!0:void 0},[t.createElementVNode("span",sm,[t.createElementVNode("span",{class:t.normalizeClass({"relative z-10 flex h-6 w-6 items-center justify-center rounded-full":!0,"bg-xy-blue ":s.status==="complete","border-2 border-xy-blue bg-white":s.status==="current","border-2 border-gray-300 bg-white":s.status==="incomplete"})},[s.status==="complete"?(t.openBlock(),t.createBlock(t.unref($a),{key:0,class:"h-4 w-4 text-white","aria-hidden":"true"})):s.status==="current"?(t.openBlock(),t.createElementBlock("span",im)):t.createCommentVNode("",!0)],2)]),t.createElementVNode("span",lm,[t.createElementVNode("span",{class:t.normalizeClass({"text-sm font-bold":!0,"text-gray-800":s.status==="complete","text-xy-blue":s.status==="current","text-gray-600":s.status==="incomplete","mt-2":!s.description})},t.toDisplayString(s.name),3),s.description?(t.openBlock(),t.createElementBlock("span",cm,t.toDisplayString(s.description),1)):t.createCommentVNode("",!0)])],8,am)],2))),128))])]))}}),dm=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder","type"],Vs=t.defineComponent({inheritAttrs:!1,__name:"BaseInput",props:t.mergeModels(t.mergeDefaults({modelValue:{},type:{},label:{},help:{},placeholder:{}},Ae),{modelValue:{...J,set:n=>props.type==="number"?pr(n):n},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:r}){const e=n,o=t.useModel(n,"modelValue",{...J,set:f=>e.type==="number"?pr(f):f}),a=t.useTemplateRef("input"),{errorState:s,inputID:i,isRequired:l,onInvalid:c,inputValidation:d}=Ve(e);r({input:a});const u=t.computed(()=>{switch(e.type){case"number":return{max:Number.MAX_SAFE_INTEGER,min:Number.MIN_SAFE_INTEGER};case"email":return{pattern:qo};case"tel":return{pattern:Wo};case"url":return{pattern:Yo};default:return{}}});return(f,p)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(he,{id:`${t.unref(i)}-label`,class:"mb-2",for:t.unref(i),label:f.label,required:t.unref(l)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(i),ref:"input","onUpdate:modelValue":p[0]||(p[0]=g=>o.value=g),"aria-labelledby":f.label?`${t.unref(i)}-label`:void 0,"aria-describedby":f.help?`${t.unref(i)}-help`:void 0,"aria-errormessage":t.unref(s)?`${t.unref(i)}-error`:void 0,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(s)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:f.placeholder,type:f.type},{...u.value,...f.$attrs},{onInput:p[1]||(p[1]=(...g)=>t.unref(d)&&t.unref(d)(...g)),onInvalid:p[2]||(p[2]=(...g)=>t.unref(c)&&t.unref(c)(...g))}),null,16,dm),[[t.vModelDynamic,o.value,void 0,{trim:!0}]]),t.createVNode(ie,{id:`${t.unref(i)}-help`,class:"mt-1",text:f.help},null,8,["id","text"]),t.createVNode(Se,{id:`${t.unref(i)}-error`,class:"mt-0.5",text:t.unref(s)},null,8,["id","text"])]))}}),um={class:"relative flex items-start"},fm={class:"flex items-center h-5"},pm=["id","aria-labelledby","aria-describedby","aria-errormessage","checked"],mm={class:"ml-3"},Ts=t.defineComponent({inheritAttrs:!1,__name:"Checkbox",props:t.mergeModels(t.mergeDefaults({modelValue:{type:[Boolean,null]},label:{},help:{},placeholder:{}},Ae),{modelValue:{type:[Boolean,null],...J},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,inputID:a,isDisabled:s,isRequired:i,errorState:l,validate:c,onInvalid:d}=Ve(r);return(u,f)=>(t.openBlock(),t.createElementBlock("div",um,[t.createElementVNode("div",fm,[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(a),"onUpdate:modelValue":f[0]||(f[0]=p=>e.value=p),"aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage,checked:e.value||void 0,class:["h-4 w-4 rounded text-xy-blue cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(l)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],type:"checkbox"},u.$attrs,{onChange:f[1]||(f[1]=(...p)=>t.unref(c)&&t.unref(c)(...p)),onInvalid:f[2]||(f[2]=(...p)=>t.unref(d)&&t.unref(d)(...p))}),null,16,pm),[[t.vModelCheckbox,e.value]])]),t.createElementVNode("div",mm,[t.createVNode(he,{id:t.unref(o).labelledby,for:t.unref(a),label:u.label,class:t.normalizeClass(t.unref(s)?"cursor-not-allowed":"cursor-pointer"),required:t.unref(i)},null,8,["id","for","label","class","required"]),t.createVNode(ie,{id:t.unref(o).describedby,text:u.help},null,8,["id","text"]),t.createVNode(Se,{id:t.unref(o).errormessage,class:"mt-0.5",text:t.unref(l)},null,8,["id","text"])])]))}}),hm=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder"],$s=t.defineComponent({inheritAttrs:!1,__name:"DateTimeInput",props:t.mergeModels(t.mergeDefaults({modelValue:{},label:{},help:{},placeholder:{}},Ae),{modelValue:{...J,get:n=>n&&Ko(n),set:n=>n&&new Date(n).toISOString()},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",{...J,get:c=>c&&Ko(c),set:c=>c&&new Date(c).toISOString()}),{errorState:o,inputID:a,isRequired:s,onInvalid:i,inputValidation:l}=Ve(r);return(c,d)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(he,{id:`${t.unref(a)}-label`,class:"mb-2",for:t.unref(a),label:c.label,required:t.unref(s)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(a),"onUpdate:modelValue":d[0]||(d[0]=u=>e.value=u),"aria-labelledby":c.label?`${t.unref(a)}-label`:void 0,"aria-describedby":c.help?`${t.unref(a)}-help`:void 0,"aria-errormessage":t.unref(o)?`${t.unref(a)}-error`:void 0,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(o)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:c.placeholder,type:"datetime-local"},c.$attrs,{onInput:d[1]||(d[1]=(...u)=>t.unref(l)&&t.unref(l)(...u)),onInvalid:d[2]||(d[2]=(...u)=>t.unref(i)&&t.unref(i)(...u))}),null,16,hm),[[t.vModelText,e.value]]),t.createVNode(ie,{id:`${t.unref(a)}-help`,class:"mt-1",text:c.help},null,8,["id","text"]),t.createVNode(Se,{id:`${t.unref(a)}-error`,class:"mt-0.5",text:t.unref(o)},null,8,["id","text"])]))}}),gm={key:0,class:"text-red-700/80"},Dt=t.defineComponent({__name:"FieldsetLegend",props:{label:{default:""},required:{type:Boolean,default:!1},tag:{default:"legend"}},setup(n){const r=n,e=t.computed(()=>r.required&&/\*$/gm.exec(r.label)!==null?r.label.substring(0,r.label.length-1):r.label);return(o,a)=>o.label?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tag),t.mergeProps({key:0,class:"block text-sm leading-6 font-semibold text-gray-800"},o.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.value)+" ",1),r.required?(t.openBlock(),t.createElementBlock("span",gm,"*")):t.createCommentVNode("",!0)]),_:1},16)):t.createCommentVNode("",!0)}}),bm=["aria-labelledby","aria-describedby","aria-errormessage"],ym={key:0},wm={class:"flex"},xm={class:"flex items-center h-5"},Cm=["id","aria-labelledby","aria-describedby","disabled","value"],Em={class:"ml-3"},Bs=t.defineComponent({inheritAttrs:!1,__name:"MultiCheckboxes",props:t.mergeModels(t.mergeDefaults({max:{},min:{},modelValue:{},options:{},label:{},help:{},placeholder:{},columns:{}},Ae),{modelValue:{...J,get:n=>Array.isArray(n)?n:[]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",{...J,get:g=>Array.isArray(g)?g:[]}),{aria:o,inputID:a,isDisabled:s,errorState:i,validate:l}=Ve(r),c=t.computed(()=>r.min||null),d=t.computed(()=>r.max||null),u=t.computed(()=>{var h;const g=((h=e.value)==null?void 0:h.length)||0;return c.value!==null&&g<c.value?`Please select at least ${c.value} of these options.`:d.value!==null&&g>d.value?`Please limit your selection to ${d.value} of these options.`:c.value!==null&&d.value!==null&&(g<c.value||g>d.value)?`Please select between ${c.value} and ${d.value} of these options.`:""}),f=t.useTemplateRef("errorInput"),p=()=>{var g;i.value||(i.value=u.value,(g=f.value)==null||g.setCustomValidity(u.value))};return(g,h)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"relative space-y-6","aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage},[g.label?(t.openBlock(),t.createElementBlock("div",ym,[t.createVNode(Dt,{id:t.unref(o).labelledby,label:g.label,required:!!c.value},null,8,["id","label","required"]),g.help?(t.openBlock(),t.createBlock(ie,{key:0,id:t.unref(o).describedby,class:"mt-1",tag:"p",text:g.help},null,8,["id","text"])):t.createCommentVNode("",!0),t.createVNode(Se,{id:t.unref(o).errormessage,class:"mt-1",text:t.unref(i)},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",wm,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-y-5",{"sm:grid sm:gap-x-10":g.columns!==void 0,"sm:grid-cols-2":g.columns===2,"sm:grid-cols-3":g.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.options,(y,w)=>(t.openBlock(),t.createElementBlock("div",{key:y.value,class:"flex items-start"},[t.createElementVNode("div",xm,[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:`${t.unref(a)}-${w}`,"onUpdate:modelValue":h[0]||(h[0]=C=>e.value=C),"aria-labelledby":`${t.unref(a)}-${w}-label`,"aria-describedby":y.help?`${t.unref(a)}-${w}-help`:void 0,disabled:y.disabled,class:["h-4 w-4 rounded cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(i)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],type:"checkbox",value:y.value,ref_for:!0},g.$attrs,{onChange:h[1]||(h[1]=(...C)=>t.unref(l)&&t.unref(l)(...C))}),null,16,Cm),[[t.vModelCheckbox,e.value]])]),t.createElementVNode("div",Em,[t.createVNode(he,{id:`${t.unref(a)}-${w}-label`,for:`${t.unref(a)}-${w}`,label:y.label,class:t.normalizeClass(t.unref(s)||y.disabled?"cursor-not-allowed":"cursor-pointer")},null,8,["id","for","label","class"]),t.createVNode(ie,{id:`${t.unref(a)}-${w}-help`,text:y.help},null,8,["id","text"])])]))),128))],2)]),u.value?(t.openBlock(),t.createElementBlock("input",{key:1,ref:"errorInput",required:"",class:"sr-only top-1 left-1","aria-hidden":"",type:"checkbox",onInvalid:p},null,544)):t.createCommentVNode("",!0)],8,bm))}});function Ms(n){const{anchorOffset:r=0,focusOffset:e=0}=n.ownerDocument.getSelection()||{},o=Math.min(r,e),a=Math.max(r,e);return[o,a]}function km(n,[r,e]){var o,a,s,i;const l=n.ownerDocument,c=l.createRange();c.setStart(n.firstChild||n,Math.min(r,(a=(o=n.textContent)===null||o===void 0?void 0:o.length)!==null&&a!==void 0?a:0)),c.setEnd(n.lastChild||n,Math.min(e,(i=(s=n.textContent)===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0));const d=l.getSelection();d&&(d.removeAllRanges(),d.addRange(c))}class Dm{constructor(r){this.element=r,this.maxLength=1/0}get value(){return this.element.innerText.replace(/\n\n$/,`
|
|
17
17
|
`)}set value(r){this.element.innerHTML=r.replace(/\n$/,`
|
|
18
18
|
|
|
19
|
-
`)}get selectionStart(){return
|
|
19
|
+
`)}get selectionStart(){return Ms(this.element)[0]}get selectionEnd(){return Ms(this.element)[1]}setSelectionRange(r,e){km(this.element,[r??0,e??0])}select(){this.setSelectionRange(0,this.value.length)}}function Nm(n){const r=new Dm(n);return new Proxy(n,{get(e,o){if(o in r)return r[o];const a=e[o];return typeof a=="function"?a.bind(e):a},set(e,o,a,s){return Reflect.set(o in r?r:e,o,a,s)}})}const Sm=n=>n.isContentEditable?Nm(n):n.querySelector("input,textarea")||n,Hr={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"};class _m{constructor(){this.now=null,this.past=[],this.future=[]}undo(){const r=this.past.pop();r&&this.now&&(this.future.push(this.now),this.updateElement(r,"historyUndo"))}redo(){const r=this.future.pop();r&&this.now&&(this.past.push(this.now),this.updateElement(r,"historyRedo"))}updateHistory(r){if(!this.now){this.now=r;return}const e=this.now.value!==r.value,o=this.now.selection.some((a,s)=>a!==r.selection[s]);!e&&!o||(e&&(this.past.push(this.now),this.future=[]),this.now=r)}updateElement(r,e){this.now=r,this.updateElementState(r,{inputType:e,data:null})}}function vm(n,...r){return r.every(({value:e})=>e===n.value)}function Vm(n,...r){return r.every(({value:e,selection:o})=>e===n.value&&o[0]===n.selection[0]&&o[1]===n.selection[1])}function Tm({value:n,selection:r},e,o){const[a,s]=r,i=typeof o=="function"?o({value:n,selection:r}):o;return{value:n,selection:i==="replace"?[a,Math.max(a+e.length,s)]:[a,s]}}function Rn(n){return typeof n=="string"}function Ps(n,r,e,o){let a="";for(let s=r.length;s<n.length;s++){const i=n[s]||"",l=(o==null?void 0:o.value[s])===i;if(!Rn(i)||i===e&&!l)return a;a+=i}return a}function As(n,r){return Array.isArray(r)?n.length===r.length&&Array.from(n).every((e,o)=>{const a=r[o]||"";return Rn(a)?e===a:e.match(a)}):r.test(n)}function $m(n,r,e){let o=null,a=null;const s=Array.from(n.value).reduce((l,c,d)=>{const u=Ps(r,l,c,e),f=l+u,p=r[f.length]||"";return o===null&&d>=n.selection[0]&&(o=f.length),a===null&&d>=n.selection[1]&&(a=f.length),Rn(p)?f+p:c.match(p)?f+c:f},""),i=Ps(r,s,"",e);return{value:As(s+i,r)?s+i:s,selection:[o??s.length,a??s.length]}}function Bm({value:n,selection:r},e){const[o,a]=r;let s=o,i=a;const l=Array.from(n).reduce((c,d,u)=>{const f=c+d;return o===u&&(s=c.length),a===u&&(i=c.length),f.match(e)?f:c},"");return{value:l,selection:[Math.min(s,l.length),Math.min(i,l.length)]}}function On(n,r,e=null){if(As(n.value,r))return n;const{value:o,selection:a}=Array.isArray(r)?$m(n,r,e):Bm(n,r);return{selection:a,value:Array.isArray(r)?o.slice(0,r.length):o}}function Rs(n,r){if(!Array.isArray(r))return n;const[e,o]=n.selection,a=[],s=Array.from(n.value).reduce((i,l,c)=>{const d=r[c]||"";return c===e&&a.push(i.length),c===o&&a.push(i.length),Rn(d)&&d===l?i:i+l},"");return a.length<2&&a.push(...new Array(2-a.length).fill(s.length)),{value:s,selection:[a[0],a[1]]}}class Ur{constructor(r,e){this.initialElementState=r,this.maskOptions=e,this.value="",this.selection=[0,0];const{value:o,selection:a}=On(this.initialElementState,this.getMaskExpression(this.initialElementState));this.value=o,this.selection=a}addCharacters([r,e],o){const{value:a,maskOptions:s}=this,i=this.getMaskExpression({value:a.slice(0,r)+o+a.slice(e),selection:[r+o.length,r+o.length]}),l={value:a,selection:[r,e]},c=Rs(l,i),[d,u]=Tm(c,o,s.overwriteMode).selection,f=c.value.slice(0,d)+o,p=f.length,g=On({value:f+c.value.slice(u),selection:[p,p]},i,l);if(a.slice(0,r)===On({value:f,selection:[p,p]},i,l).value||Vm(this,g))throw new Error("Invalid mask value");this.value=g.value,this.selection=g.selection}deleteCharacters([r,e]){if(r===e||!e)return;const{value:o}=this,a=this.getMaskExpression({value:o.slice(0,r)+o.slice(e),selection:[r,r]}),s={value:o,selection:[r,e]},i=Rs(s,a),[l,c]=i.selection,d=i.value.slice(0,l)+i.value.slice(c),u=On({value:d,selection:[l,l]},a,s);this.value=u.value,this.selection=u.selection}getMaskExpression(r){const{mask:e}=this.maskOptions;return typeof e=="function"?e(r):e}}class Mm{constructor(r){this.element=r,this.listeners=[]}listen(r,e,o){const a=e;this.element.addEventListener(r,a,o),this.listeners.push(()=>this.element.removeEventListener(r,a,o))}destroy(){this.listeners.forEach(r=>r())}}const Fe={CTRL:1,ALT:2,SHIFT:4,META:8},zt={Y:89,Z:90};function qt(n,r,e){return n.ctrlKey===!!(r&Fe.CTRL)&&n.altKey===!!(r&Fe.ALT)&&n.shiftKey===!!(r&Fe.SHIFT)&&n.metaKey===!!(r&Fe.META)&&n.keyCode===e}function Pm(n){return qt(n,Fe.CTRL,zt.Y)||qt(n,Fe.CTRL|Fe.SHIFT,zt.Z)||qt(n,Fe.META|Fe.SHIFT,zt.Z)}function Am(n){return qt(n,Fe.CTRL,zt.Z)||qt(n,Fe.META,zt.Z)}function zr(n,r){var e;const o=n.value;if(typeof r=="string")n.value=r;else{const[a,s]=r.selection;n.value=r.value,n.matches(":focus")&&((e=n.setSelectionRange)===null||e===void 0||e.call(n,a,s))}n.value!==o&&n.dispatchEvent(new Event("input",{bubbles:!0}))}function Rm({value:n,selection:r},e){const[o,a]=r;if(o!==a)return[o,a];const s=e?n.slice(o).indexOf(`
|
|
20
20
|
`)+1||n.length:n.slice(0,a).lastIndexOf(`
|
|
21
|
-
`)+1;return[e?o:
|
|
22
|
-
`)}}const On=new Map,Hr=new Map;async function Ai(n,r){var e,o;const a=(e=r==null?void 0:r.elementPredicate)!==null&&e!==void 0?e:lm;Hr.set(n,a);const i=await a(n);Hr.get(n)===a&&((o=On.get(n))===null||o===void 0||o.destroy(),r&&On.set(n,new km(i,r)))}const Dm={unmounted:n=>{var r;(r=On.get(n))===null||r===void 0||r.destroy(),On.delete(n),Hr.delete(n)},mounted:async(n,{value:r})=>Ai(n,r),updated:async(n,{value:r,oldValue:e})=>{r!==e&&await Ai(n,r)}};function In(n,r,e){const o=Math.min(Number(e),Math.max(Number(r),Number(n)));return n instanceof Date?new Date(o):o}const Sm=[".",",","б","ю"],Nm=" ",_m="",Ri="–",Oi="—",Ln="-",Ur="−",Ii="ー",vm=[":","."];function St(n){return n}function Tm(){}const Li=/[\\^$.*+?()[\]{}|]/g,$m=new RegExp(Li.source);function be(n){return n&&$m.test(n)?n.replaceAll(Li,String.raw`\$&`):n}function He(n,{prefix:r,postfix:e}){var o,a;const i=new RegExp(`^${be(r)}`),s=new RegExp(`${be(e)}$`),[l=""]=(o=n.match(i))!==null&&o!==void 0?o:[],[c=""]=(a=n.match(s))!==null&&a!==void 0?a:[];return{extractedPrefix:l,extractedPostfix:c,cleanValue:l||c?n.slice(l.length,c.length?-c.length:1/0):n}}function Bm(n,r){let e="";for(let o=0;o<n.length;o++){if(n[o]!==r[o])return e;e+=n[o]}return e}function Fi(n){return n.replaceAll(/[0-9]/g,r=>String.fromCharCode(r.charCodeAt(0)-65248))}function Mm(){return({elementState:n,data:r})=>{const{value:e,selection:o}=n;return{elementState:{selection:o,value:Fi(e)},data:Fi(r)}}}new RegExp(`[${vm.map(be).join("")}]$`);function Vm(n){const r=new RegExp(`${be(n)}$`);return n?({value:e,selection:o},a)=>{if(!e&&!a.value.endsWith(n))return{value:e,selection:o};if(!e.endsWith(n)&&!a.value.endsWith(n))return{selection:o,value:e+n};const i=a.value.replace(r,""),s=a.selection[1]>i.length,l=Bm(i,e);return{selection:o,value:Array.from(n).reverse().reduce((c,d,u)=>{const f=c.length-1-u,p=l[f]===d&&s;return c[f]!==d||p?c.slice(0,f+1)+d+c.slice(f+1):c},e)}}:St}function Pm(n){return n?({value:r,selection:e},o)=>{if(r.startsWith(n)||!r&&!o.value.startsWith(n))return{value:r,selection:e};const[a,i]=e,s=Array.from(n).reduce((c,d,u)=>c[u]===d?c:c.slice(0,u)+d+c.slice(u),r),l=s.length-r.length;return{selection:[a+l,i+l],value:s}}:St}function zr(n,r,e){return(o,a)=>{const i=()=>r(o,a);return o.addEventListener(n,i,e),()=>o.removeEventListener(n,i,e)}}function Am({prefix:n,postfix:r}){return({elementState:e,data:o})=>{const{cleanValue:a}=He(o,{prefix:n,postfix:r});return{elementState:e,data:a}}}function ji({decimalSeparator:n,isNegativeAllowed:r,precision:e,thousandSeparator:o,prefix:a,postfix:i,decimalPseudoSeparators:s=[],pseudoMinuses:l=[],minusSign:c}){const d=Hi(a),u=String.raw`\d`,f=r?`[${c}${l.map(w=>`\\${w}`).join("")}]?`:"",p=o?`[${u}${be(o).replaceAll(/\s/g,String.raw`\s`)}]*`:`[${u}]*`,g=Number.isFinite(e)?e:"",h=e>0?`([${be(n)}${s.map(be).join("")}]${u}{0,${g}})?`:"",y=Hi(i);return new RegExp(`^${d}${f}${p}${h}${y}$`)}function Hi(n){return n?`${n.split("").map(r=>`${be(r)}?`).join("")}`:""}function Fn(n,r="."){const e=!!new RegExp(`^\\D*[${Ur}\\${Ln}${Ri}${Oi}${Ii}]`).exec(n),o=be(r),a=n.replaceAll(new RegExp(`${o}(?!\\d)`,"g"),"").replaceAll(new RegExp(`[^\\d${o}]`,"g"),"").replace(r,r&&".");return a?+`${e?Ln:""}${a}`:NaN}function Rm(n){var r;const e=String(n),[o="",a]=e.split("e-");let i=e;if(a){const[,s]=o.split("."),l=Number(a)+((r=s==null?void 0:s.length)!==null&&r!==void 0?r:0);i=n.toFixed(l)}return i}function Ui(n,{decimalSeparator:r,minusSign:e}){const[o="",a=""]=r?n.split(r):[n],i=be(e),[,s="",l=""]=new RegExp(`^(?:[^\\d${i}])?(${i})?(.*)`).exec(o)||[];return{minus:s,integerPart:l,decimalPart:a}}function Om({decimalSeparator:n,thousandSeparator:r,decimalPseudoSeparators:e=Sm}){return e.filter(o=>o!==r&&o!==n)}function Im({decimalSeparator:n,precision:r,decimalZeroPadding:e,prefix:o,postfix:a}){return r<=0||!e?St:({value:i,selection:s})=>{const{cleanValue:l,extractedPrefix:c,extractedPostfix:d}=He(i,{prefix:o,postfix:a});if(Number.isNaN(Fn(l,n)))return{value:i,selection:s};const[u,f=""]=l.split(n);return{value:c+u+n+f.padEnd(r,"0")+d,selection:s}}}function Lm({prefix:n,postfix:r,decimalSeparator:e,minusSign:o}){return({value:a,selection:i})=>{const[s]=i,{cleanValue:l,extractedPrefix:c,extractedPostfix:d}=He(a,{prefix:n,postfix:r}),{minus:u,integerPart:f,decimalPart:p}=Ui(l,{decimalSeparator:e,minusSign:o}),g=!f&&!p&&!!e&&l.includes(e);return!f&&!Number(p)&&s===(u+c).length||g?{selection:i,value:c+u+d}:{value:a,selection:i}}}function Fm({decimalSeparator:n,decimalPseudoSeparators:r,pseudoMinuses:e,prefix:o,postfix:a,minusSign:i}){let s=!0;const l=ji({decimalSeparator:n,decimalPseudoSeparators:r,pseudoMinuses:e,prefix:"",postfix:"",thousandSeparator:"",precision:1/0,isNegativeAllowed:!0,minusSign:i});return({elementState:c,data:d})=>{if(!s)return{elementState:c,data:d};s=!1;const{value:u,selection:f}=c,[p,g]=f,{extractedPrefix:h,cleanValue:y,extractedPostfix:w}=He(u,{prefix:o,postfix:a}),C=Rn({selection:[Math.max(p-h.length,0),In(g-h.length,0,y.length)],value:y},{mask:l}),[D,N]=C.selection;return{elementState:{selection:[D+h.length,N+h.length],value:h+C.value+w},data:d}}}function jm({decimalSeparator:n,thousandSeparator:r,prefix:e,postfix:o}){const a=s=>{const l=be(r);return s.replace(new RegExp(`^(\\D+)?[0${l}]+(?=0)`),"$1").replace(new RegExp(`^(\\D+)?[0${l}]+(?=[1-9])`),"$1")},i=(s,l)=>{const c=s.slice(0,l),d=s.slice(l).startsWith("0");return c.length-a(c).length+(d?1:0)};return({value:s,selection:l})=>{const[c,d]=l,{cleanValue:u,extractedPrefix:f,extractedPostfix:p}=He(s,{prefix:e,postfix:o}),g=!!n&&u.includes(n),[h="",y=""]=n?u.split(n):[u],w=a(h);if(h===w)return{value:s,selection:l};const C=c-i(s,c),D=d-i(s,d);return{value:f+w+(g?n:"")+y+p,selection:[Math.max(C,0),Math.max(D,0)]}}}function Hm({min:n,max:r,decimalSeparator:e,minusSign:o}){return({value:a,selection:i})=>{const s=Fn(a,e),l=s>0?Math.min(s,r):Math.max(s,n);if(s&&l!==s){const c=`${l}`.replace(".",e).replace(Ln,o);return{value:c,selection:[c.length,c.length]}}return{value:a,selection:i}}}function Um({decimalSeparator:n,thousandSeparator:r,decimalZeroPadding:e}){return({elementState:o,data:a},i)=>{const{value:s,selection:l}=o,[c,d]=l,u=s.slice(c,d),f=e?[n,r]:[r],p=e&&c>s.indexOf(n)&&!!u.match(/^0+$/gi);return i!=="deleteBackward"&&i!=="deleteForward"||!f.includes(u)&&!p?{elementState:o,data:a}:{elementState:{value:s,selection:i==="deleteForward"?[d,d]:[c,c]},data:a}}}function zm({decimalSeparator:n,precision:r,prefix:e,postfix:o}){const a=new RegExp(`^\\D*${be(n)}`);return({elementState:i,data:s})=>{const{value:l,selection:c}=i,{cleanValue:d,extractedPrefix:u}=He(l,{prefix:e,postfix:o}),[f,p]=c,g=In(f-u.length,0,d.length),h=In(p-u.length,0,d.length);if(r<=0||d.slice(0,g).includes(n)||d.slice(h).includes(n)||!s.match(a))return{elementState:i,data:s};const y=/\d+/.exec(d.slice(0,g));return{elementState:i,data:y?s:`0${s}`}}}function zi({validCharacter:n,pseudoCharacters:r,prefix:e,postfix:o}){const a=new RegExp(`[${r.join("")}]`,"gi");return({elementState:i,data:s})=>{const{value:l,selection:c}=i,{cleanValue:d,extractedPostfix:u,extractedPrefix:f}=He(l,{prefix:e,postfix:o});return{elementState:{selection:c,value:f+d.replace(a,n)+u},data:s.replace(a,n)}}}function qm({decimalSeparator:n,prefix:r,postfix:e}){return n?({elementState:o,data:a})=>{const{value:i,selection:s}=o,[l,c]=s,{cleanValue:d}=He(i,{prefix:r,postfix:e});return{elementState:o,data:!d.includes(n)||i.slice(l,c+1).includes(n)?a:a.replaceAll(new RegExp(be(n),"gi"),"")}}:St}function Wm({thousandSeparator:n,decimalSeparator:r,prefix:e,postfix:o,minusSign:a}){if(!n)return St;const i=(...s)=>s.every(l=>/\s/.test(l));return({value:s,selection:l})=>{const[c,d]=l;let[u,f]=l;const{cleanValue:p,extractedPostfix:g,extractedPrefix:h}=He(s,{prefix:e,postfix:o}),{minus:y,integerPart:w,decimalPart:C}=Ui(p,{decimalSeparator:r,minusSign:a}),D=r&&p.includes(r),N=p.length-(y+w+(D?r+C:"")).length;N>0&&c&&c<=N&&(u-=N),N>0&&d&&d<=N&&(f-=N);const I=Array.from(w).reduceRight((V,j,$)=>{const L=!(!$&&j===n)&&!!V.length&&(V.length+1)%4===0,Y=j===n||i(j,n);return L&&Y?n+V:!L&&Y?($&&$<=c&&u--,$&&$<=d&&f--,V):L?($<c&&u++,$<d&&f++,j+n+V):j+V},"");return{value:h+y+I+(D?r:"")+C+g,selection:[u,f]}}}function Ym({precision:n,decimalSeparator:r,prefix:e,postfix:o}){if(n>0||!r)return St;const a=new RegExp(`${be(r)}.*$`,"g");return({elementState:i,data:s})=>{const{value:l,selection:c}=i,{cleanValue:d,extractedPrefix:u,extractedPostfix:f}=He(l,{prefix:e,postfix:o}),[p,g]=c,h=u+d.replace(a,"")+f;return{elementState:{selection:[Math.min(p,h.length),Math.min(g,h.length)],value:h},data:s.replace(a,"")}}}const qi=[0,0];function Km({decimalSeparator:n,thousandSeparator:r,prefix:e,postfix:o}){const a=jm({decimalSeparator:n,thousandSeparator:r,prefix:e,postfix:o});return zr("blur",i=>{const s=a({value:i.value,selection:qi},{value:"",selection:qi}).value;jr(i,s)},{capture:!0})}function Gm({min:n,max:r,decimalSeparator:e}){return zr("blur",(o,a)=>{const i=Fn(o.value,e),s=In(i,n,r);!Number.isNaN(i)&&i!==s&&jr(o,Rn(Rm(s),a))},{capture:!0})}function Jm({decimalSeparator:n,prefix:r,postfix:e}){return n?zr("blur",o=>{const{cleanValue:a,extractedPostfix:i,extractedPrefix:s}=He(o.value,{prefix:r,postfix:e}),l=s+a.replace(new RegExp(`^(\\D+)?${be(n)}`),`$10${n}`)+i;jr(o,l)},{capture:!0}):Tm}function Xm({max:n=Number.MAX_SAFE_INTEGER,min:r=Number.MIN_SAFE_INTEGER,precision:e=0,thousandSeparator:o=Nm,decimalSeparator:a=".",decimalPseudoSeparators:i,decimalZeroPadding:s=!1,prefix:l="",postfix:c="",minusSign:d=Ur}={}){const u=[Ln,Ri,Oi,Ii,Ur].filter(h=>h!==o&&h!==a&&h!==d),f=Om({decimalSeparator:a,thousandSeparator:o,decimalPseudoSeparators:i}),p=l.endsWith(a)&&e>0?`${l}${_m}`:l,g=Fm({decimalSeparator:a,decimalPseudoSeparators:f,pseudoMinuses:u,prefix:p,postfix:c,minusSign:d});return a=e<=0&&a===o?"":a,Object.assign(Object.assign({},Lr),{mask:ji({decimalSeparator:a,precision:e,thousandSeparator:o,prefix:p,postfix:c,isNegativeAllowed:r<0,minusSign:d}),preprocessors:[Mm(),g,Am({prefix:p,postfix:c}),zi({validCharacter:d,pseudoCharacters:u,prefix:p,postfix:c}),zi({validCharacter:a,pseudoCharacters:f,prefix:p,postfix:c}),zm({decimalSeparator:a,precision:e,prefix:p,postfix:c}),Um({decimalSeparator:a,decimalZeroPadding:s,thousandSeparator:o}),Ym({precision:e,decimalSeparator:a,prefix:p,postfix:c}),qm({decimalSeparator:a,prefix:p,postfix:c})],postprocessors:[Hm({decimalSeparator:a,min:r,max:n,minusSign:d}),Pm(p),Vm(c),Wm({decimalSeparator:a,thousandSeparator:o,prefix:p,postfix:c,minusSign:d}),Im({decimalSeparator:a,decimalZeroPadding:s,precision:e,prefix:p,postfix:c}),Lm({prefix:p,postfix:c,decimalSeparator:a,minusSign:d})],plugins:[Km({decimalSeparator:a,thousandSeparator:o,prefix:p,postfix:c}),Jm({decimalSeparator:a,prefix:p,postfix:c}),Gm({min:r,max:n,decimalSeparator:a})],overwriteMode:s?({value:h,selection:[y]})=>y<=h.indexOf(a)?"shift":"replace":"shift"})}const Zm=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder"],Qm=["value","name","min","max","required"],Wi=t.defineComponent({inheritAttrs:!1,__name:"NumberInput",props:t.mergeModels(t.mergeDefaults({max:{},min:{},modelValue:{},precision:{},type:{},label:{},help:{},placeholder:{}},{...Re,max:Number.MAX_SAFE_INTEGER,min:Number.MIN_SAFE_INTEGER,precision:0,type:"number"}),{modelValue:J,modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:r}){const e=n,o=t.computed(()=>{const h={decimalSeparator:".",thousandSeparator:",",min:e.min,max:e.max,precision:e.precision,minusSign:"-"};switch(e.type){case"money":h.decimalZeroPadding=!0,h.precision=2,h.prefix="$";break}return Xm(h)}),a=t.useModel(n,"modelValue",J),i=t.computed({get:()=>{if(a.value===null||a.value===void 0)return"";let h=a.value;return e.type==="money"&&(h=h/100),Rn(h.toString(),o.value)},set:h=>{if(h===""){a.value=null;return}let y=Fn(h);if(isNaN(y)){a.value=null;return}if(e.type==="money"){let w=y.toString().split("."),C=parseInt(w[0],10),D=w.length>1?parseInt(w[1].padEnd(2,"0"),10):0;y=C*100+D}a.value=y}}),s=t.useTemplateRef("input"),{errorState:l,inputID:c,isRequired:d,nameAttr:u,onInvalid:f,inputValidation:p}=Te(e),g=t.computed(()=>{const h=t.useAttrs(),{name:y,...w}=h;return w});return r({input:s}),(h,y)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(he,{id:`${t.unref(c)}-label`,class:"mb-2",for:t.unref(c),label:h.label,required:t.unref(d)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(c),ref:"input","onUpdate:modelValue":y[0]||(y[0]=w=>i.value=w),"aria-labelledby":h.label?`${t.unref(c)}-label`:void 0,"aria-describedby":h.help?`${t.unref(c)}-help`:void 0,"aria-errormessage":t.unref(l)?`${t.unref(c)}-error`:void 0,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(l)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:h.placeholder,type:"text",inputmode:"decimal"},{...g.value},{onInput:y[1]||(y[1]=(...w)=>t.unref(p)&&t.unref(p)(...w))}),null,16,Zm),[[t.vModelText,i.value],[t.unref(Dm),o.value]]),t.createVNode(le,{id:`${t.unref(c)}-help`,class:"mt-1",text:h.help},null,8,["id","text"]),t.createVNode(Ne,{id:`${t.unref(c)}-error`,class:"mt-0.5",text:t.unref(l)},null,8,["id","text"]),t.createElementVNode("input",{value:a.value,class:"sr-only","aria-hidden":"true",name:t.unref(u),min:h.min,max:h.max,required:t.unref(d),tabindex:"-1",type:"number",onInvalid:y[2]||(y[2]=(...w)=>t.unref(f)&&t.unref(f)(...w))},null,40,Qm)]))}}),eh=["aria-labelledby","aria-describedby","aria-errormessage"],th={key:0},nh={class:"flex"},rh={class:"flex items-center h-5"},oh=["id","aria-describedby","aria-labelledby","disabled","name","value"],ah={class:"ml-3"},Yi=t.defineComponent({inheritAttrs:!1,__name:"Radio",props:t.mergeModels(t.mergeDefaults({modelValue:{},options:{},label:{},help:{},placeholder:{},columns:{}},Re),{modelValue:J,modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,errorState:a,inputID:i,isDisabled:s,isRequired:l,onInvalid:c,validate:d}=Te(r);return(u,f)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-6","aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage},[u.label?(t.openBlock(),t.createElementBlock("div",th,[t.createVNode(Dt,{id:t.unref(o).labelledby,label:u.label,required:t.unref(l)},null,8,["id","label","required"]),u.help?(t.openBlock(),t.createBlock(le,{key:0,id:t.unref(o).describedby,class:"mt-1",tag:"p",text:u.help},null,8,["id","text"])):t.createCommentVNode("",!0),t.createVNode(Ne,{id:t.unref(o).errormessage,class:"mt-1",text:t.unref(a)},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",nh,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-y-5",{"sm:grid sm:gap-x-10":u.columns!==void 0,"sm:grid-cols-2":u.columns===2,"sm:grid-cols-3":u.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,(p,g)=>(t.openBlock(),t.createElementBlock("div",{key:p.value,class:"flex items-start"},[t.createElementVNode("div",rh,[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${g}`,"onUpdate:modelValue":f[0]||(f[0]=h=>e.value=h),"aria-describedby":p.help?`${t.unref(i)}-${g}-help`:void 0,"aria-labelledby":`${t.unref(i)}-${g}-label`,class:["h-4 w-4 cursor-pointer text-xy-blue","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(a)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],disabled:p.disabled,name:t.unref(i),type:"radio",value:p.value,ref_for:!0},u.$attrs,{onChange:f[1]||(f[1]=(...h)=>t.unref(d)&&t.unref(d)(...h)),onInvalid:f[2]||(f[2]=(...h)=>t.unref(c)&&t.unref(c)(...h))}),null,16,oh),[[t.vModelRadio,e.value]])]),t.createElementVNode("div",ah,[t.createVNode(he,{id:`${t.unref(i)}-${g}-label`,for:`${t.unref(i)}-${g}`,label:p.label,class:t.normalizeClass(t.unref(s)||p.disabled?"cursor-not-allowed":"cursor-pointer")},null,8,["id","for","label","class"]),t.createVNode(le,{id:`${t.unref(i)}-${g}-help`,text:p.help},null,8,["id","text"])])]))),128))],2)])],8,eh))}}),ih={class:"flex-1 flex pr-1"},sh={class:"flex flex-col"},lh={key:1,class:"mt-auto mb-0"},ch=["checked","name","required","value"],Ki=t.defineComponent({inheritAttrs:!1,__name:"RadioCards",props:t.mergeModels(t.mergeDefaults({options:{},modelValue:{},label:{},help:{},placeholder:{},columns:{}},Re),{modelValue:J,modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,isDisabled:a,isRequired:i,nameAttr:s,errorState:l,onInvalid:c}=Te(r),d=u=>{u&&(l.value="")};return(u,f)=>(t.openBlock(),t.createBlock(t.unref(ac),{modelValue:e.value,"onUpdate:modelValue":[f[1]||(f[1]=p=>e.value=p),d],disabled:t.unref(a),"aria-invalid":t.unref(l)?"true":null,"aria-errormessage":t.unref(o).errormessage},{default:t.withCtx(()=>[u.label?(t.openBlock(),t.createBlock(t.unref(Ca),{key:0,class:"block"},{default:t.withCtx(()=>[t.createVNode(Dt,{tag:"div",label:u.label,required:t.unref(i)},null,8,["label","required"])]),_:1})):t.createCommentVNode("",!0),u.help?(t.openBlock(),t.createBlock(t.unref(Cr),{key:1,class:"mt-1"},{default:t.withCtx(()=>[t.createVNode(le,{text:u.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0),t.createVNode(Ne,{id:t.unref(o).errormessage,class:"mt-1",text:t.unref(l)},null,8,["id","text"]),t.createElementVNode("div",{class:t.normalizeClass(["mt-6 grid grid-cols-1 gap-y-5 gap-x-4 relative",{"sm:grid-cols-2":u.columns===2,"sm:grid-cols-3":u.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,p=>(t.openBlock(),t.createBlock(t.unref(ic),{key:p.value,as:"template",disabled:t.unref(a)||p.disabled,value:p.value},{default:t.withCtx(({active:g,checked:h,disabled:y})=>[t.createElementVNode("div",{class:t.normalizeClass(["relative border rounded-lg shadow-sm p-4 flex focus:outline-none",[y?"cursor-not-allowed bg-gray-50 border-gray-200 opacity-90":"cursor-pointer bg-white border-gray-300",t.unref(l)&&!y?"border-red-700":"",h?"border-transparent":"",g?"border-xy-blue ring-2 ring-xy-blue-500":""]])},[t.createElementVNode("div",ih,[t.createElementVNode("div",sh,[t.createVNode(t.unref(Ca),{as:"div"},{default:t.withCtx(()=>[t.createVNode(he,{tag:"div",class:"mt-auto mb-auto",label:p.label},null,8,["label"])]),_:2},1024),p.help?(t.openBlock(),t.createBlock(t.unref(Cr),{key:0,as:"div"},{default:t.withCtx(()=>[t.createVNode(le,{tag:"div",class:"mt-auto",text:p.help},null,8,["text"])]),_:2},1024)):t.createCommentVNode("",!0),p.sublabel||u.$slots.sublabel?(t.openBlock(),t.createElementBlock("div",lh,[t.createVNode(t.unref(Cr),{as:"div",class:"text-sm/5 font-medium mt-4 text-gray-800"},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"sublabel",{active:g,checked:h,disabled:y,option:p},()=>[t.createTextVNode(t.toDisplayString(p.sublabel),1)])]),_:2},1024)])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(_a),{class:t.normalizeClass([h?"":"invisible","h-5 w-5 text-xy-blue"]),"aria-hidden":"true"},null,8,["class"]),t.createElementVNode("div",{class:t.normalizeClass([g?"border":"border-2",h?"border-xy-blue":"border-transparent","absolute -inset-px rounded-lg pointer-events-none"]),"aria-hidden":"true"},null,2),t.createElementVNode("input",{class:"sr-only top-1 left-1","aria-hidden":"true",checked:h,name:t.unref(s),required:t.unref(i),tabindex:"-1",type:"radio",value:p.value,onInvalid:f[0]||(f[0]=(...w)=>t.unref(c)&&t.unref(c)(...w))},null,40,ch)],2)]),_:2},1032,["disabled","value"]))),128))],2)]),_:3},8,["modelValue","disabled","aria-invalid","aria-errormessage"]))}}),dh=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder"],Gi=t.defineComponent({inheritAttrs:!1,__name:"TextArea",props:t.mergeModels(t.mergeDefaults({modelValue:{},label:{},help:{},placeholder:{}},Re),{modelValue:J,modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,inputID:a,isRequired:i,errorState:s,onInvalid:l,inputValidation:c}=Te(r);return(d,u)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(he,{id:t.unref(o).labelledby,class:"mb-2",for:t.unref(a),label:d.label,required:t.unref(i)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("textarea",t.mergeProps({id:t.unref(a),"onUpdate:modelValue":u[0]||(u[0]=f=>e.value=f),"aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(s)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:d.placeholder},d.$attrs,{onInput:u[1]||(u[1]=(...f)=>t.unref(c)&&t.unref(c)(...f)),onInvalid:u[2]||(u[2]=(...f)=>t.unref(l)&&t.unref(l)(...f))}),null,16,dh),[[t.vModelText,e.value]]),t.createVNode(le,{id:t.unref(o).describedby,class:"mt-1",text:d.help},null,8,["id","text"]),t.createVNode(Ne,{id:t.unref(o).errormessage,class:"mt-0.5",text:t.unref(s)},null,8,["id","text"])]))}}),uh=["aria-labelledby","aria-describedby","aria-errormessage"],fh={key:0},ph=["for"],mh=["id","name"],hh=["for"],gh=["id","name"],Ji=t.defineComponent({inheritAttrs:!1,__name:"YesOrNoRadio",props:t.mergeModels(t.mergeDefaults({modelValue:{type:[Boolean,null]},label:{},help:{},placeholder:{}},Re),{modelValue:{type:[Boolean,null],...J},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,isDisabled:a,isRequired:i,nameAttr:s,errorState:l,onInvalid:c,validate:d}=Te(r);return(u,f)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-6","aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage},[u.label?(t.openBlock(),t.createElementBlock("div",fh,[t.createVNode(Dt,{id:t.unref(o).labelledby,class:"block my-auto",label:u.label,required:t.unref(i),tag:"legend"},null,8,["id","label","required"]),u.help?(t.openBlock(),t.createBlock(le,{key:0,id:t.unref(o).describedby,class:"mt-1",tag:"p",text:u.help},null,8,["id","text"])):t.createCommentVNode("",!0),t.createVNode(Ne,{id:t.unref(o).errormessage,class:"mt-1",text:t.unref(l)},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",null,[t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center group",t.unref(a)?"cursor-not-allowed":"cursor-pointer"]),for:`${t.unref(s)}-true`},[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:`${t.unref(s)}-true`,"onUpdate:modelValue":f[0]||(f[0]=p=>e.value=p),type:"radio",class:["h-4 w-4 text-xy-blue cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(l)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],name:t.unref(s),value:!0},u.$attrs,{onChange:f[1]||(f[1]=(...p)=>t.unref(d)&&t.unref(d)(...p)),onInvalid:f[2]||(f[2]=(...p)=>t.unref(c)&&t.unref(c)(...p))}),null,16,mh),[[t.vModelRadio,e.value]]),t.createVNode(he,{class:"ml-3",label:"Yes",tag:"span"})],10,ph),t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center ml-6",t.unref(a)?"cursor-not-allowed":"cursor-pointer"]),for:`${t.unref(s)}-false`},[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:`${t.unref(s)}-false`,"onUpdate:modelValue":f[3]||(f[3]=p=>e.value=p),type:"radio",class:["h-4 w-4 text-xy-blue cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(l)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],name:t.unref(s),value:!1},u.$attrs,{onChange:f[4]||(f[4]=(...p)=>t.unref(d)&&t.unref(d)(...p)),onInvalid:f[5]||(f[5]=(...p)=>t.unref(c)&&t.unref(c)(...p))}),null,16,gh),[[t.vModelRadio,e.value]]),t.createVNode(he,{class:"ml-3",label:"No",tag:"span"})],10,hh)])],8,uh))}}),bh=Object.freeze(Object.defineProperty({__proto__:null,ActionsDropdown:Sn,BaseInput:Ni,Cards:ti,Checkbox:_i,ContentModal:ni,DataTable:wi,DateFilter:Pr,DateRangePicker:Tn,DateTime:vi,DetailList:li,DownloadCell:ci,DynamicTable:Ci,FieldsetLegend:Dt,Flash:Bn,InlineAlert:ui,InputError:Ne,InputHelp:le,InputLabel:he,Modal:fi,MultiCheckboxes:Ti,NumberInput:Wi,Paginator:$n,Popover:Ht,PopoverContent:mi,PopoverPosition:Ht,ProgressCircles:Di,ProgressCirclesLabeled:Si,Radio:Yi,RadioCards:Ki,Select:Vr,SidebarLayout:pi,Slideover:hi,Spinner:Mn,StackedLayout:bi,Steps:xi,Tabs:Ei,TextArea:Gi,Toggle:ki,Tooltip:gi,XYSpinner:Or,YesOrNoRadio:Ji},Symbol.toStringTag,{value:"Module"})),yh=function(r){Object.entries(bh).forEach(([e,o])=>{r.component(e,o)})};_.ActionsDropdown=Sn,_.BaseAPI=cr,_.BaseInput=Ni,_.Cards=ti,_.Checkbox=_i,_.ContentModal=ni,_.DataTable=wi,_.DateFilter=Pr,_.DateRangePicker=Tn,_.DateTime=vi,_.DetailList=li,_.DownloadCell=ci,_.DynamicTable=Ci,_.FieldsetLegend=Dt,_.Flash=Bn,_.InlineAlert=ui,_.InputError=Ne,_.InputHelp=le,_.InputLabel=he,_.Modal=fi,_.MultiCheckboxes=Ti,_.NumberInput=Wi,_.Paginator=$n,_.Popover=Ht,_.PopoverContent=mi,_.PopoverPosition=Ht,_.ProgressCircles=Di,_.ProgressCirclesLabeled=Si,_.Radio=Yi,_.RadioCards=Ki,_.Select=Vr,_.SidebarLayout=pi,_.Slideover=hi,_.Spinner=Mn,_.StackedLayout=bi,_.Steps=xi,_.Tabs=Ei,_.TextArea=Gi,_.Toggle=ki,_.Tooltip=gi,_.XYSpinner=Or,_.YesOrNoRadio=Ji,_.debounceFn=jo,_.debounceLeading=Bl,_.default=yh,_.emailPattern=Ho,_.isHttpCancel=Fo,_.isHttpError=Lo,_.looseToNumber=ur,_.numericInputTypes=Vl,_.phonePattern=Uo,_.setBaseAPIDefaults=$l,_.textInputTypes=Ml,_.throttleFn=Pl,_.urlPattern=zo,_.useAppFlasher=Rr,_.useAppFlashes=st,_.useAppSpinner=lr,_.useBaseAPI=kt,_.useBaseAPIDelete=ld,_.useBaseAPIGet=sd,_.useBaseAPIPatch=cd,_.useBaseAPIPost=dd,_.useBaseAPIPut=ud,_.useFlashes=si,_.useInputField=Te,_.useSpinnerDisplay=Oo,_.useTabHistory=md,_.useUrlSearchParams=hd,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
21
|
+
`)+1;return[e?o:s,e?s:a]}function Om({value:n,selection:r},e){const[o,a]=r;return o!==a?[o,a]:(e?[o,a+1]:[o-1,a]).map(i=>Math.min(Math.max(i,0),n.length))}const Im=/\s+$/g,Lm=/^\s+/g,Os=/\s/;function Fm({value:n,selection:r},e){const[o,a]=r;if(o!==a)return[o,a];if(e){const c=n.slice(o),[d]=c.match(Lm)||[""],u=c.trimStart().search(Os);return[o,u!==-1?o+d.length+u:n.length]}const s=n.slice(0,a),[i]=s.match(Im)||[""],l=s.trimEnd().split("").reverse().findIndex(c=>Os.exec(c));return[l!==-1?a-i.length-l:0,a]}function In(n=[]){return(r,...e)=>n.reduce((o,a)=>Object.assign(Object.assign({},o),a(o,...e)),r)}function Ln(n,r){const e=Object.assign(Object.assign({},Hr),r),o=In(e.preprocessors),a=In(e.postprocessors),s=typeof n=="string"?{value:n,selection:[0,0]}:n,{elementState:i}=o({elementState:s,data:""},"validation"),l=new Ur(i,e),{value:c,selection:d}=a(l,s);return typeof n=="string"?c:{value:c,selection:d}}class jm extends _m{constructor(r,e){super(),this.element=r,this.maskitoOptions=e,this.isTextArea=this.element.nodeName==="TEXTAREA",this.eventListener=new Mm(this.element),this.options=Object.assign(Object.assign({},Hr),this.maskitoOptions),this.upcomingElementState=null,this.preprocessor=In(this.options.preprocessors),this.postprocessor=In(this.options.postprocessors),this.teardowns=this.options.plugins.map(o=>o(this.element,this.options)),this.updateHistory(this.elementState),this.eventListener.listen("keydown",o=>{if(Pm(o))return o.preventDefault(),this.redo();if(Am(o))return o.preventDefault(),this.undo()}),this.eventListener.listen("beforeinput",o=>{var a,s,i;const l=o.inputType.includes("Forward");switch(this.updateHistory(this.elementState),o.inputType){case"deleteByCut":case"deleteContentBackward":case"deleteContentForward":return this.handleDelete({event:o,isForward:l,selection:Om(this.elementState,l)});case"deleteHardLineBackward":case"deleteHardLineForward":case"deleteSoftLineBackward":case"deleteSoftLineForward":return this.handleDelete({event:o,isForward:l,selection:Rm(this.elementState,l),force:!0});case"deleteWordBackward":case"deleteWordForward":return this.handleDelete({event:o,isForward:l,selection:Fm(this.elementState,l),force:!0});case"historyRedo":return o.preventDefault(),this.redo();case"historyUndo":return o.preventDefault(),this.undo();case"insertCompositionText":return;case"insertLineBreak":case"insertParagraph":return this.handleEnter(o);case"insertReplacementText":return;case"insertFromDrop":case"insertFromPaste":case"insertText":default:return this.handleInsert(o,(i=(a=o.data)!==null&&a!==void 0?a:(s=o.dataTransfer)===null||s===void 0?void 0:s.getData("text/plain"))!==null&&i!==void 0?i:"")}}),this.eventListener.listen("input",()=>{this.upcomingElementState&&(this.updateElementState(this.upcomingElementState),this.upcomingElementState=null)},{capture:!0}),this.eventListener.listen("input",({inputType:o})=>{o!=="insertCompositionText"&&(this.ensureValueFitsMask(),this.updateHistory(this.elementState))}),this.eventListener.listen("compositionend",()=>{this.ensureValueFitsMask(),this.updateHistory(this.elementState)})}destroy(){this.eventListener.destroy(),this.teardowns.forEach(r=>r==null?void 0:r())}updateElementState({value:r,selection:e},o){const a=this.elementState.value;this.updateValue(r),this.updateSelectionRange(e),o&&a!==r&&this.dispatchInputEvent(o)}get elementState(){const{value:r,selectionStart:e,selectionEnd:o}=this.element;return{value:r,selection:[e??0,o??0]}}get maxLength(){const{maxLength:r}=this.element;return r===-1?1/0:r}updateSelectionRange([r,e]){var o;const{element:a}=this;a.matches(":focus")&&(a.selectionStart!==r||a.selectionEnd!==e)&&((o=a.setSelectionRange)===null||o===void 0||o.call(a,r,e))}updateValue(r){this.element.value=r}ensureValueFitsMask(){this.updateElementState(Ln(this.elementState,this.options),{inputType:"insertText",data:null})}dispatchInputEvent(r={inputType:"insertText",data:null}){globalThis.InputEvent&&this.element.dispatchEvent(new InputEvent("input",Object.assign(Object.assign({},r),{bubbles:!0,cancelable:!1})))}handleDelete({event:r,selection:e,isForward:o,force:a=!1}){const s={value:this.elementState.value,selection:e},[i,l]=s.selection,{elementState:c}=this.preprocessor({elementState:s,data:""},o?"deleteForward":"deleteBackward"),d=new Ur(c,this.options),[u,f]=c.selection;d.deleteCharacters([u,f]);const p=this.postprocessor(d,s);if(!(s.value.slice(0,i)+s.value.slice(l)===p.value&&!a&&!this.element.isContentEditable)){if(vm(s,c,d,p))return r.preventDefault(),this.updateSelectionRange(o?[f,f]:[u,u]);this.upcomingElementState=p}}handleInsert(r,e){const{options:o,maxLength:a,element:s,elementState:i}=this,{elementState:l,data:c=e}=this.preprocessor({data:e,elementState:i},"insert"),d=new Ur(l,o);try{d.addCharacters(l.selection,c)}catch{return r.preventDefault()}const[u,f]=l.selection,p=i.value.slice(0,u)+e+i.value.slice(f),g=this.postprocessor(d,i);if(g.value.length>a)return r.preventDefault();(p!==g.value||s.isContentEditable)&&(this.upcomingElementState=g,o.overwriteMode==="replace"&&p.length>a&&this.dispatchInputEvent({inputType:"insertText",data:e}))}handleEnter(r){(this.isTextArea||this.element.isContentEditable)&&this.handleInsert(r,`
|
|
22
|
+
`)}}const Fn=new Map,qr=new Map;async function Is(n,r){var e,o;const a=(e=r==null?void 0:r.elementPredicate)!==null&&e!==void 0?e:Sm;qr.set(n,a);const s=await a(n);qr.get(n)===a&&((o=Fn.get(n))===null||o===void 0||o.destroy(),r&&Fn.set(n,new jm(s,r)))}const Hm={unmounted:n=>{var r;(r=Fn.get(n))===null||r===void 0||r.destroy(),Fn.delete(n),qr.delete(n)},mounted:async(n,{value:r})=>Is(n,r),updated:async(n,{value:r,oldValue:e})=>{r!==e&&await Is(n,r)}};function jn(n,r,e){const o=Math.min(Number(e),Math.max(Number(r),Number(n)));return n instanceof Date?new Date(o):o}const Um=[".",",","б","ю"],zm=" ",qm="",Ls="–",Fs="—",Hn="-",Wr="−",js="ー",Wm=[":","."];function Nt(n){return n}function Ym(){}const Hs=/[\\^$.*+?()[\]{}|]/g,Km=new RegExp(Hs.source);function be(n){return n&&Km.test(n)?n.replaceAll(Hs,String.raw`\$&`):n}function je(n,{prefix:r,postfix:e}){var o,a;const s=new RegExp(`^${be(r)}`),i=new RegExp(`${be(e)}$`),[l=""]=(o=n.match(s))!==null&&o!==void 0?o:[],[c=""]=(a=n.match(i))!==null&&a!==void 0?a:[];return{extractedPrefix:l,extractedPostfix:c,cleanValue:l||c?n.slice(l.length,c.length?-c.length:1/0):n}}function Gm(n,r){let e="";for(let o=0;o<n.length;o++){if(n[o]!==r[o])return e;e+=n[o]}return e}function Us(n){return n.replaceAll(/[0-9]/g,r=>String.fromCharCode(r.charCodeAt(0)-65248))}function Jm(){return({elementState:n,data:r})=>{const{value:e,selection:o}=n;return{elementState:{selection:o,value:Us(e)},data:Us(r)}}}new RegExp(`[${Wm.map(be).join("")}]$`);function Xm(n){const r=new RegExp(`${be(n)}$`);return n?({value:e,selection:o},a)=>{if(!e&&!a.value.endsWith(n))return{value:e,selection:o};if(!e.endsWith(n)&&!a.value.endsWith(n))return{selection:o,value:e+n};const s=a.value.replace(r,""),i=a.selection[1]>s.length,l=Gm(s,e);return{selection:o,value:Array.from(n).reverse().reduce((c,d,u)=>{const f=c.length-1-u,p=l[f]===d&&i;return c[f]!==d||p?c.slice(0,f+1)+d+c.slice(f+1):c},e)}}:Nt}function Zm(n){return n?({value:r,selection:e},o)=>{if(r.startsWith(n)||!r&&!o.value.startsWith(n))return{value:r,selection:e};const[a,s]=e,i=Array.from(n).reduce((c,d,u)=>c[u]===d?c:c.slice(0,u)+d+c.slice(u),r),l=i.length-r.length;return{selection:[a+l,s+l],value:i}}:Nt}function Yr(n,r,e){return(o,a)=>{const s=()=>r(o,a);return o.addEventListener(n,s,e),()=>o.removeEventListener(n,s,e)}}function Qm({prefix:n,postfix:r}){return({elementState:e,data:o})=>{const{cleanValue:a}=je(o,{prefix:n,postfix:r});return{elementState:e,data:a}}}function zs({decimalSeparator:n,isNegativeAllowed:r,precision:e,thousandSeparator:o,prefix:a,postfix:s,decimalPseudoSeparators:i=[],pseudoMinuses:l=[],minusSign:c}){const d=qs(a),u=String.raw`\d`,f=r?`[${c}${l.map(w=>`\\${w}`).join("")}]?`:"",p=o?`[${u}${be(o).replaceAll(/\s/g,String.raw`\s`)}]*`:`[${u}]*`,g=Number.isFinite(e)?e:"",h=e>0?`([${be(n)}${i.map(be).join("")}]${u}{0,${g}})?`:"",y=qs(s);return new RegExp(`^${d}${f}${p}${h}${y}$`)}function qs(n){return n?`${n.split("").map(r=>`${be(r)}?`).join("")}`:""}function Un(n,r="."){const e=!!new RegExp(`^\\D*[${Wr}\\${Hn}${Ls}${Fs}${js}]`).exec(n),o=be(r),a=n.replaceAll(new RegExp(`${o}(?!\\d)`,"g"),"").replaceAll(new RegExp(`[^\\d${o}]`,"g"),"").replace(r,r&&".");return a?+`${e?Hn:""}${a}`:NaN}function eh(n){var r;const e=String(n),[o="",a]=e.split("e-");let s=e;if(a){const[,i]=o.split("."),l=Number(a)+((r=i==null?void 0:i.length)!==null&&r!==void 0?r:0);s=n.toFixed(l)}return s}function Ws(n,{decimalSeparator:r,minusSign:e}){const[o="",a=""]=r?n.split(r):[n],s=be(e),[,i="",l=""]=new RegExp(`^(?:[^\\d${s}])?(${s})?(.*)`).exec(o)||[];return{minus:i,integerPart:l,decimalPart:a}}function th({decimalSeparator:n,thousandSeparator:r,decimalPseudoSeparators:e=Um}){return e.filter(o=>o!==r&&o!==n)}function nh({decimalSeparator:n,precision:r,decimalZeroPadding:e,prefix:o,postfix:a}){return r<=0||!e?Nt:({value:s,selection:i})=>{const{cleanValue:l,extractedPrefix:c,extractedPostfix:d}=je(s,{prefix:o,postfix:a});if(Number.isNaN(Un(l,n)))return{value:s,selection:i};const[u,f=""]=l.split(n);return{value:c+u+n+f.padEnd(r,"0")+d,selection:i}}}function rh({prefix:n,postfix:r,decimalSeparator:e,minusSign:o}){return({value:a,selection:s})=>{const[i]=s,{cleanValue:l,extractedPrefix:c,extractedPostfix:d}=je(a,{prefix:n,postfix:r}),{minus:u,integerPart:f,decimalPart:p}=Ws(l,{decimalSeparator:e,minusSign:o}),g=!f&&!p&&!!e&&l.includes(e);return!f&&!Number(p)&&i===(u+c).length||g?{selection:s,value:c+u+d}:{value:a,selection:s}}}function oh({decimalSeparator:n,decimalPseudoSeparators:r,pseudoMinuses:e,prefix:o,postfix:a,minusSign:s}){let i=!0;const l=zs({decimalSeparator:n,decimalPseudoSeparators:r,pseudoMinuses:e,prefix:"",postfix:"",thousandSeparator:"",precision:1/0,isNegativeAllowed:!0,minusSign:s});return({elementState:c,data:d})=>{if(!i)return{elementState:c,data:d};i=!1;const{value:u,selection:f}=c,[p,g]=f,{extractedPrefix:h,cleanValue:y,extractedPostfix:w}=je(u,{prefix:o,postfix:a}),C=Ln({selection:[Math.max(p-h.length,0),jn(g-h.length,0,y.length)],value:y},{mask:l}),[D,S]=C.selection;return{elementState:{selection:[D+h.length,S+h.length],value:h+C.value+w},data:d}}}function ah({decimalSeparator:n,thousandSeparator:r,prefix:e,postfix:o}){const a=i=>{const l=be(r);return i.replace(new RegExp(`^(\\D+)?[0${l}]+(?=0)`),"$1").replace(new RegExp(`^(\\D+)?[0${l}]+(?=[1-9])`),"$1")},s=(i,l)=>{const c=i.slice(0,l),d=i.slice(l).startsWith("0");return c.length-a(c).length+(d?1:0)};return({value:i,selection:l})=>{const[c,d]=l,{cleanValue:u,extractedPrefix:f,extractedPostfix:p}=je(i,{prefix:e,postfix:o}),g=!!n&&u.includes(n),[h="",y=""]=n?u.split(n):[u],w=a(h);if(h===w)return{value:i,selection:l};const C=c-s(i,c),D=d-s(i,d);return{value:f+w+(g?n:"")+y+p,selection:[Math.max(C,0),Math.max(D,0)]}}}function sh({min:n,max:r,decimalSeparator:e,minusSign:o}){return({value:a,selection:s})=>{const i=Un(a,e),l=i>0?Math.min(i,r):Math.max(i,n);if(i&&l!==i){const c=`${l}`.replace(".",e).replace(Hn,o);return{value:c,selection:[c.length,c.length]}}return{value:a,selection:s}}}function ih({decimalSeparator:n,thousandSeparator:r,decimalZeroPadding:e}){return({elementState:o,data:a},s)=>{const{value:i,selection:l}=o,[c,d]=l,u=i.slice(c,d),f=e?[n,r]:[r],p=e&&c>i.indexOf(n)&&!!u.match(/^0+$/gi);return s!=="deleteBackward"&&s!=="deleteForward"||!f.includes(u)&&!p?{elementState:o,data:a}:{elementState:{value:i,selection:s==="deleteForward"?[d,d]:[c,c]},data:a}}}function lh({decimalSeparator:n,precision:r,prefix:e,postfix:o}){const a=new RegExp(`^\\D*${be(n)}`);return({elementState:s,data:i})=>{const{value:l,selection:c}=s,{cleanValue:d,extractedPrefix:u}=je(l,{prefix:e,postfix:o}),[f,p]=c,g=jn(f-u.length,0,d.length),h=jn(p-u.length,0,d.length);if(r<=0||d.slice(0,g).includes(n)||d.slice(h).includes(n)||!i.match(a))return{elementState:s,data:i};const y=/\d+/.exec(d.slice(0,g));return{elementState:s,data:y?i:`0${i}`}}}function Ys({validCharacter:n,pseudoCharacters:r,prefix:e,postfix:o}){const a=new RegExp(`[${r.join("")}]`,"gi");return({elementState:s,data:i})=>{const{value:l,selection:c}=s,{cleanValue:d,extractedPostfix:u,extractedPrefix:f}=je(l,{prefix:e,postfix:o});return{elementState:{selection:c,value:f+d.replace(a,n)+u},data:i.replace(a,n)}}}function ch({decimalSeparator:n,prefix:r,postfix:e}){return n?({elementState:o,data:a})=>{const{value:s,selection:i}=o,[l,c]=i,{cleanValue:d}=je(s,{prefix:r,postfix:e});return{elementState:o,data:!d.includes(n)||s.slice(l,c+1).includes(n)?a:a.replaceAll(new RegExp(be(n),"gi"),"")}}:Nt}function dh({thousandSeparator:n,decimalSeparator:r,prefix:e,postfix:o,minusSign:a}){if(!n)return Nt;const s=(...i)=>i.every(l=>/\s/.test(l));return({value:i,selection:l})=>{const[c,d]=l;let[u,f]=l;const{cleanValue:p,extractedPostfix:g,extractedPrefix:h}=je(i,{prefix:e,postfix:o}),{minus:y,integerPart:w,decimalPart:C}=Ws(p,{decimalSeparator:r,minusSign:a}),D=r&&p.includes(r),S=p.length-(y+w+(D?r+C:"")).length;S>0&&c&&c<=S&&(u-=S),S>0&&d&&d<=S&&(f-=S);const O=Array.from(w).reduceRight((P,L,B)=>{const F=!(!B&&L===n)&&!!P.length&&(P.length+1)%4===0,z=L===n||s(L,n);return F&&z?n+P:!F&&z?(B&&B<=c&&u--,B&&B<=d&&f--,P):F?(B<c&&u++,B<d&&f++,L+n+P):L+P},"");return{value:h+y+O+(D?r:"")+C+g,selection:[u,f]}}}function uh({precision:n,decimalSeparator:r,prefix:e,postfix:o}){if(n>0||!r)return Nt;const a=new RegExp(`${be(r)}.*$`,"g");return({elementState:s,data:i})=>{const{value:l,selection:c}=s,{cleanValue:d,extractedPrefix:u,extractedPostfix:f}=je(l,{prefix:e,postfix:o}),[p,g]=c,h=u+d.replace(a,"")+f;return{elementState:{selection:[Math.min(p,h.length),Math.min(g,h.length)],value:h},data:i.replace(a,"")}}}const Ks=[0,0];function fh({decimalSeparator:n,thousandSeparator:r,prefix:e,postfix:o}){const a=ah({decimalSeparator:n,thousandSeparator:r,prefix:e,postfix:o});return Yr("blur",s=>{const i=a({value:s.value,selection:Ks},{value:"",selection:Ks}).value;zr(s,i)},{capture:!0})}function ph({min:n,max:r,decimalSeparator:e}){return Yr("blur",(o,a)=>{const s=Un(o.value,e),i=jn(s,n,r);!Number.isNaN(s)&&s!==i&&zr(o,Ln(eh(i),a))},{capture:!0})}function mh({decimalSeparator:n,prefix:r,postfix:e}){return n?Yr("blur",o=>{const{cleanValue:a,extractedPostfix:s,extractedPrefix:i}=je(o.value,{prefix:r,postfix:e}),l=i+a.replace(new RegExp(`^(\\D+)?${be(n)}`),`$10${n}`)+s;zr(o,l)},{capture:!0}):Ym}function hh({max:n=Number.MAX_SAFE_INTEGER,min:r=Number.MIN_SAFE_INTEGER,precision:e=0,thousandSeparator:o=zm,decimalSeparator:a=".",decimalPseudoSeparators:s,decimalZeroPadding:i=!1,prefix:l="",postfix:c="",minusSign:d=Wr}={}){const u=[Hn,Ls,Fs,js,Wr].filter(h=>h!==o&&h!==a&&h!==d),f=th({decimalSeparator:a,thousandSeparator:o,decimalPseudoSeparators:s}),p=l.endsWith(a)&&e>0?`${l}${qm}`:l,g=oh({decimalSeparator:a,decimalPseudoSeparators:f,pseudoMinuses:u,prefix:p,postfix:c,minusSign:d});return a=e<=0&&a===o?"":a,Object.assign(Object.assign({},Hr),{mask:zs({decimalSeparator:a,precision:e,thousandSeparator:o,prefix:p,postfix:c,isNegativeAllowed:r<0,minusSign:d}),preprocessors:[Jm(),g,Qm({prefix:p,postfix:c}),Ys({validCharacter:d,pseudoCharacters:u,prefix:p,postfix:c}),Ys({validCharacter:a,pseudoCharacters:f,prefix:p,postfix:c}),lh({decimalSeparator:a,precision:e,prefix:p,postfix:c}),ih({decimalSeparator:a,decimalZeroPadding:i,thousandSeparator:o}),uh({precision:e,decimalSeparator:a,prefix:p,postfix:c}),ch({decimalSeparator:a,prefix:p,postfix:c})],postprocessors:[sh({decimalSeparator:a,min:r,max:n,minusSign:d}),Zm(p),Xm(c),dh({decimalSeparator:a,thousandSeparator:o,prefix:p,postfix:c,minusSign:d}),nh({decimalSeparator:a,decimalZeroPadding:i,precision:e,prefix:p,postfix:c}),rh({prefix:p,postfix:c,decimalSeparator:a,minusSign:d})],plugins:[fh({decimalSeparator:a,thousandSeparator:o,prefix:p,postfix:c}),mh({decimalSeparator:a,prefix:p,postfix:c}),ph({min:r,max:n,decimalSeparator:a})],overwriteMode:i?({value:h,selection:[y]})=>y<=h.indexOf(a)?"shift":"replace":"shift"})}const gh=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder"],bh=["value","name","min","max","required"],Kr=t.defineComponent({inheritAttrs:!1,__name:"NumberInput",props:t.mergeModels(t.mergeDefaults({max:{},min:{},modelValue:{},precision:{},type:{},label:{},help:{},placeholder:{}},{...Ae,max:Number.MAX_SAFE_INTEGER,min:Number.MIN_SAFE_INTEGER,precision:0,type:"number"}),{modelValue:J,modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:r}){const e=n,o=t.computed(()=>{const h={decimalSeparator:".",thousandSeparator:",",min:e.min,max:e.max,precision:e.precision,minusSign:"-"};switch(e.type){case"money":h.decimalZeroPadding=!0,h.precision=2,h.prefix="$";break}return hh(h)}),a=t.useModel(n,"modelValue",J),s=t.computed({get:()=>{if(a.value===null||a.value===void 0)return"";let h=a.value;return e.type==="money"&&(h=h/100),Ln(h.toString(),o.value)},set:h=>{if(h===""){a.value=null;return}let y=Un(h);if(isNaN(y)){a.value=null;return}if(e.type==="money"){let w=y.toString().split("."),C=parseInt(w[0],10),D=w.length>1?parseInt(w[1].padEnd(2,"0"),10):0;y=C*100+D}a.value=y}}),i=t.useTemplateRef("input"),{errorState:l,inputID:c,isRequired:d,nameAttr:u,onInvalid:f,inputValidation:p}=Ve(e),g=t.computed(()=>{const h=t.useAttrs(),{name:y,...w}=h;return w});return r({input:i}),(h,y)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(he,{id:`${t.unref(c)}-label`,class:"mb-2",for:t.unref(c),label:h.label,required:t.unref(d)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(c),ref:"input","onUpdate:modelValue":y[0]||(y[0]=w=>s.value=w),"aria-labelledby":h.label?`${t.unref(c)}-label`:void 0,"aria-describedby":h.help?`${t.unref(c)}-help`:void 0,"aria-errormessage":t.unref(l)?`${t.unref(c)}-error`:void 0,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(l)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:h.placeholder,type:"text",inputmode:"decimal"},{...g.value},{onInput:y[1]||(y[1]=(...w)=>t.unref(p)&&t.unref(p)(...w))}),null,16,gh),[[t.vModelText,s.value],[t.unref(Hm),o.value]]),t.createVNode(ie,{id:`${t.unref(c)}-help`,class:"mt-1",text:h.help},null,8,["id","text"]),t.createVNode(Se,{id:`${t.unref(c)}-error`,class:"mt-0.5",text:t.unref(l)},null,8,["id","text"]),t.createElementVNode("input",{value:a.value,class:"sr-only","aria-hidden":"true",name:t.unref(u),min:h.min,max:h.max,required:t.unref(d),tabindex:"-1",type:"number",onInvalid:y[2]||(y[2]=(...w)=>t.unref(f)&&t.unref(f)(...w))},null,40,bh)]))}}),yh=["aria-labelledby","aria-describedby","aria-errormessage"],wh={key:0},xh={class:"flex"},Ch={class:"flex items-center h-5"},Eh=["id","aria-describedby","aria-labelledby","disabled","name","value"],kh={class:"ml-3"},Gs=t.defineComponent({inheritAttrs:!1,__name:"Radio",props:t.mergeModels(t.mergeDefaults({modelValue:{},options:{},label:{},help:{},placeholder:{},columns:{}},Ae),{modelValue:J,modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,errorState:a,inputID:s,isDisabled:i,isRequired:l,onInvalid:c,validate:d}=Ve(r);return(u,f)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-6","aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage},[u.label?(t.openBlock(),t.createElementBlock("div",wh,[t.createVNode(Dt,{id:t.unref(o).labelledby,label:u.label,required:t.unref(l)},null,8,["id","label","required"]),u.help?(t.openBlock(),t.createBlock(ie,{key:0,id:t.unref(o).describedby,class:"mt-1",tag:"p",text:u.help},null,8,["id","text"])):t.createCommentVNode("",!0),t.createVNode(Se,{id:t.unref(o).errormessage,class:"mt-1",text:t.unref(a)},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",xh,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-y-5",{"sm:grid sm:gap-x-10":u.columns!==void 0,"sm:grid-cols-2":u.columns===2,"sm:grid-cols-3":u.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,(p,g)=>(t.openBlock(),t.createElementBlock("div",{key:p.value,class:"flex items-start"},[t.createElementVNode("div",Ch,[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:`${t.unref(s)}-${g}`,"onUpdate:modelValue":f[0]||(f[0]=h=>e.value=h),"aria-describedby":p.help?`${t.unref(s)}-${g}-help`:void 0,"aria-labelledby":`${t.unref(s)}-${g}-label`,class:["h-4 w-4 cursor-pointer text-xy-blue","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(a)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],disabled:p.disabled,name:t.unref(s),type:"radio",value:p.value,ref_for:!0},u.$attrs,{onChange:f[1]||(f[1]=(...h)=>t.unref(d)&&t.unref(d)(...h)),onInvalid:f[2]||(f[2]=(...h)=>t.unref(c)&&t.unref(c)(...h))}),null,16,Eh),[[t.vModelRadio,e.value]])]),t.createElementVNode("div",kh,[t.createVNode(he,{id:`${t.unref(s)}-${g}-label`,for:`${t.unref(s)}-${g}`,label:p.label,class:t.normalizeClass(t.unref(i)||p.disabled?"cursor-not-allowed":"cursor-pointer")},null,8,["id","for","label","class"]),t.createVNode(ie,{id:`${t.unref(s)}-${g}-help`,text:p.help},null,8,["id","text"])])]))),128))],2)])],8,yh))}}),Dh={class:"flex-1 flex pr-1"},Nh={class:"flex flex-col"},Sh={key:1,class:"mt-auto mb-0"},_h=["checked","name","required","value"],Js=t.defineComponent({inheritAttrs:!1,__name:"RadioCards",props:t.mergeModels(t.mergeDefaults({options:{},modelValue:{},label:{},help:{},placeholder:{},columns:{}},Ae),{modelValue:J,modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,isDisabled:a,isRequired:s,nameAttr:i,errorState:l,onInvalid:c}=Ve(r),d=u=>{u&&(l.value="")};return(u,f)=>(t.openBlock(),t.createBlock(t.unref(ic),{modelValue:e.value,"onUpdate:modelValue":[f[1]||(f[1]=p=>e.value=p),d],disabled:t.unref(a),"aria-invalid":t.unref(l)?"true":null,"aria-errormessage":t.unref(o).errormessage},{default:t.withCtx(()=>[u.label?(t.openBlock(),t.createBlock(t.unref(Da),{key:0,class:"block"},{default:t.withCtx(()=>[t.createVNode(Dt,{tag:"div",label:u.label,required:t.unref(s)},null,8,["label","required"])]),_:1})):t.createCommentVNode("",!0),u.help?(t.openBlock(),t.createBlock(t.unref(kr),{key:1,class:"mt-1"},{default:t.withCtx(()=>[t.createVNode(ie,{text:u.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0),t.createVNode(Se,{id:t.unref(o).errormessage,class:"mt-1",text:t.unref(l)},null,8,["id","text"]),t.createElementVNode("div",{class:t.normalizeClass(["mt-6 grid grid-cols-1 gap-y-5 gap-x-4 relative",{"sm:grid-cols-2":u.columns===2,"sm:grid-cols-3":u.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,p=>(t.openBlock(),t.createBlock(t.unref(lc),{key:p.value,as:"template",disabled:t.unref(a)||p.disabled,value:p.value},{default:t.withCtx(({active:g,checked:h,disabled:y})=>[t.createElementVNode("div",{class:t.normalizeClass(["relative border rounded-lg shadow-sm p-4 flex focus:outline-none",[y?"cursor-not-allowed bg-gray-50 border-gray-200 opacity-90":"cursor-pointer bg-white border-gray-300",t.unref(l)&&!y?"border-red-700":"",h?"border-transparent":"",g?"border-xy-blue ring-2 ring-xy-blue-500":""]])},[t.createElementVNode("div",Dh,[t.createElementVNode("div",Nh,[t.createVNode(t.unref(Da),{as:"div"},{default:t.withCtx(()=>[t.createVNode(he,{tag:"div",class:"mt-auto mb-auto",label:p.label},null,8,["label"])]),_:2},1024),p.help?(t.openBlock(),t.createBlock(t.unref(kr),{key:0,as:"div"},{default:t.withCtx(()=>[t.createVNode(ie,{tag:"div",class:"mt-auto",text:p.help},null,8,["text"])]),_:2},1024)):t.createCommentVNode("",!0),p.sublabel||u.$slots.sublabel?(t.openBlock(),t.createElementBlock("div",Sh,[t.createVNode(t.unref(kr),{as:"div",class:"text-sm/5 font-medium mt-4 text-gray-800"},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"sublabel",{active:g,checked:h,disabled:y,option:p},()=>[t.createTextVNode(t.toDisplayString(p.sublabel),1)])]),_:2},1024)])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(Ta),{class:t.normalizeClass([h?"":"invisible","h-5 w-5 text-xy-blue"]),"aria-hidden":"true"},null,8,["class"]),t.createElementVNode("div",{class:t.normalizeClass([g?"border":"border-2",h?"border-xy-blue":"border-transparent","absolute -inset-px rounded-lg pointer-events-none"]),"aria-hidden":"true"},null,2),t.createElementVNode("input",{class:"sr-only top-1 left-1","aria-hidden":"true",checked:h,name:t.unref(i),required:t.unref(s),tabindex:"-1",type:"radio",value:p.value,onInvalid:f[0]||(f[0]=(...w)=>t.unref(c)&&t.unref(c)(...w))},null,40,_h)],2)]),_:2},1032,["disabled","value"]))),128))],2)]),_:3},8,["modelValue","disabled","aria-invalid","aria-errormessage"]))}}),vh=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder"],Xs=t.defineComponent({inheritAttrs:!1,__name:"TextArea",props:t.mergeModels(t.mergeDefaults({modelValue:{},label:{},help:{},placeholder:{}},Ae),{modelValue:J,modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,inputID:a,isRequired:s,errorState:i,onInvalid:l,inputValidation:c}=Ve(r);return(d,u)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(he,{id:t.unref(o).labelledby,class:"mb-2",for:t.unref(a),label:d.label,required:t.unref(s)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("textarea",t.mergeProps({id:t.unref(a),"onUpdate:modelValue":u[0]||(u[0]=f=>e.value=f),"aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(i)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:d.placeholder},d.$attrs,{onInput:u[1]||(u[1]=(...f)=>t.unref(c)&&t.unref(c)(...f)),onInvalid:u[2]||(u[2]=(...f)=>t.unref(l)&&t.unref(l)(...f))}),null,16,vh),[[t.vModelText,e.value]]),t.createVNode(ie,{id:t.unref(o).describedby,class:"mt-1",text:d.help},null,8,["id","text"]),t.createVNode(Se,{id:t.unref(o).errormessage,class:"mt-0.5",text:t.unref(i)},null,8,["id","text"])]))}}),Vh=["aria-labelledby","aria-describedby","aria-errormessage"],Th={key:0},$h=["for"],Bh=["id","name"],Mh=["for"],Ph=["id","name"],Zs=t.defineComponent({inheritAttrs:!1,__name:"YesOrNoRadio",props:t.mergeModels(t.mergeDefaults({modelValue:{type:[Boolean,null]},label:{},help:{},placeholder:{}},Ae),{modelValue:{type:[Boolean,null],...J},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,isDisabled:a,isRequired:s,nameAttr:i,errorState:l,onInvalid:c,validate:d}=Ve(r);return(u,f)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-6","aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage},[u.label?(t.openBlock(),t.createElementBlock("div",Th,[t.createVNode(Dt,{id:t.unref(o).labelledby,class:"block my-auto",label:u.label,required:t.unref(s),tag:"legend"},null,8,["id","label","required"]),u.help?(t.openBlock(),t.createBlock(ie,{key:0,id:t.unref(o).describedby,class:"mt-1",tag:"p",text:u.help},null,8,["id","text"])):t.createCommentVNode("",!0),t.createVNode(Se,{id:t.unref(o).errormessage,class:"mt-1",text:t.unref(l)},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",null,[t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center group",t.unref(a)?"cursor-not-allowed":"cursor-pointer"]),for:`${t.unref(i)}-true`},[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-true`,"onUpdate:modelValue":f[0]||(f[0]=p=>e.value=p),type:"radio",class:["h-4 w-4 text-xy-blue cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(l)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],name:t.unref(i),value:!0},u.$attrs,{onChange:f[1]||(f[1]=(...p)=>t.unref(d)&&t.unref(d)(...p)),onInvalid:f[2]||(f[2]=(...p)=>t.unref(c)&&t.unref(c)(...p))}),null,16,Bh),[[t.vModelRadio,e.value]]),t.createVNode(he,{class:"ml-3",label:"Yes",tag:"span"})],10,$h),t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center ml-6",t.unref(a)?"cursor-not-allowed":"cursor-pointer"]),for:`${t.unref(i)}-false`},[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-false`,"onUpdate:modelValue":f[3]||(f[3]=p=>e.value=p),type:"radio",class:["h-4 w-4 text-xy-blue cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(l)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],name:t.unref(i),value:!1},u.$attrs,{onChange:f[4]||(f[4]=(...p)=>t.unref(d)&&t.unref(d)(...p)),onInvalid:f[5]||(f[5]=(...p)=>t.unref(c)&&t.unref(c)(...p))}),null,16,Ph),[[t.vModelRadio,e.value]]),t.createVNode(he,{class:"ml-3",label:"No",tag:"span"})],10,Mh)])],8,Vh))}}),Ah=Object.freeze(Object.defineProperty({__proto__:null,ActionsDropdown:vn,BaseInput:Vs,Cards:os,Checkbox:Ts,ContentModal:as,DataTable:Es,DateFilter:Ar,DateRangePicker:Bn,DateTime:$s,DetailList:us,DownloadCell:fs,DynamicTable:Ds,FieldsetLegend:Dt,Flash:Pn,InlineAlert:ms,InputError:Se,InputHelp:ie,InputLabel:he,Modal:hs,MultiCheckboxes:Bs,NumberInput:Kr,Paginator:Ir,Popover:Ut,PopoverContent:bs,PopoverPosition:Ut,ProgressCircles:_s,ProgressCirclesLabeled:vs,Radio:Gs,RadioCards:Js,Select:Mn,SidebarLayout:gs,Slideover:ys,Spinner:An,StackedLayout:xs,Steps:ks,TablePaginator:jr,Tabs:Ns,TextArea:Xs,Toggle:Ss,Tooltip:ws,XYSpinner:Lr,YesOrNoRadio:Zs},Symbol.toStringTag,{value:"Module"})),Rh=function(r){Object.entries(Ah).forEach(([e,o])=>{r.component(e,o)})};_.ActionsDropdown=vn,_.BaseAPI=ur,_.BaseInput=Vs,_.Cards=os,_.Checkbox=Ts,_.ContentModal=as,_.DataTable=Es,_.DateFilter=Ar,_.DateRangePicker=Bn,_.DateTime=$s,_.DetailList=us,_.DownloadCell=fs,_.DynamicTable=Ds,_.FieldsetLegend=Dt,_.Flash=Pn,_.InlineAlert=ms,_.InputError=Se,_.InputHelp=ie,_.InputLabel=he,_.Modal=hs,_.MultiCheckboxes=Bs,_.NumberInput=Kr,_.Paginator=Ir,_.Popover=Ut,_.PopoverContent=bs,_.PopoverPosition=Ut,_.ProgressCircles=_s,_.ProgressCirclesLabeled=vs,_.Radio=Gs,_.RadioCards=Js,_.Select=Mn,_.SidebarLayout=gs,_.Slideover=ys,_.Spinner=An,_.StackedLayout=xs,_.Steps=ks,_.TablePaginator=jr,_.Tabs=Ns,_.TextArea=Xs,_.Toggle=Ss,_.Tooltip=ws,_.XYSpinner=Lr,_.YesOrNoRadio=Zs,_.debounceFn=$t,_.debounceLeading=Ml,_.default=Rh,_.emailPattern=qo,_.isHttpCancel=zo,_.isHttpError=Uo,_.looseToNumber=pr,_.numericInputTypes=Al,_.phonePattern=Wo,_.setBaseAPIDefaults=Bl,_.textInputTypes=Pl,_.throttleFn=Rl,_.urlPattern=Yo,_.useAppFlasher=Or,_.useAppFlashes=it,_.useAppSpinner=dr,_.useBaseAPI=kt,_.useBaseAPIDelete=dd,_.useBaseAPIGet=cd,_.useBaseAPIPatch=ud,_.useBaseAPIPost=fd,_.useBaseAPIPut=pd,_.useFlashes=ds,_.useInputField=Ve,_.useSpinnerDisplay=jo,_.useTabHistory=gd,_.useUrlSearchParams=bd,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|